1!function(t){function e(e){for(var n,i,o=e[0],a=e[1],s=0,l=[];s<o.length;s++)i=o[s],r[i]&&l.push(r[i][0]),r[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n]);for(c&&c(e);l.length;)l.shift()()}var n={},i={5:0},r={5:0};function o(e){if(n[e])return n[e].exports;var i=n[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.e=function(t){var e=[];i[t]?e.push(i[t]):0!==i[t]&&{2:1,4:1,6:1,7:1,10:1,12:1}[t]&&e.push(i[t]=new Promise(function(e,n){for(var r=({0:"vendors~bohstock~ohlc~ohlc-quote-new~worldMoneyChart~worldMoneyChart2",1:"vendors~bohstock~ohlc~ohlc-quote-new",2:"bohstock",3:"converter",4:"history",6:"ohlc",7:"ohlc-quote-new",8:"portfolio",9:"tradingviewWidget",10:"widget-builder",11:"worldMoneyChart",12:"worldMoneyChart2"}[t]||t)+"."+{0:"31d6cfe0d16ae931b73c",1:"31d6cfe0d16ae931b73c",2:"4c015d7cf658cfa8facf",3:"31d6cfe0d16ae931b73c",4:"c77c139f1ea5dab4ea22",6:"4c015d7cf658cfa8facf",7:"4c015d7cf658cfa8facf",8:"31d6cfe0d16ae931b73c",9:"31d6cfe0d16ae931b73c",10:"2003a694af8172437434",11:"31d6cfe0d16ae931b73c",12:"efa36e4157884e09c23d"}[t]+".css",a=o.p+r,s=document.getElementsByTagName("link"),l=0;l<s.length;l++){var c=(d=s[l]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(c===r||c===a))return e()}var u=document.getElementsByTagName("style");for(l=0;l<u.length;l++){var d;if((c=(d=u[l]).getAttribute("data-href"))===r||c===a)return e()}var h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.onload=e,h.onerror=function(e){var r=e&&e.target&&e.target.src||a,o=new Error("Loading CSS chunk "+t+" failed.\n("+r+")");o.request=r,delete i[t],h.parentNode.removeChild(h),n(o)},h.href=a,document.getElementsByTagName("head")[0].appendChild(h)}).then(function(){i[t]=0}));var n=r[t];if(0!==n)if(n)e.push(n[2]);else{var a=new Promise(function(e,i){n=r[t]=[e,i]});e.push(n[2]=a);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.src=function(t){return o.p+""+({0:"vendors~bohstock~ohlc~ohlc-quote-new~worldMoneyChart~worldMoneyChart2",1:"vendors~bohstock~ohlc~ohlc-quote-new",2:"bohstock",3:"converter",4:"history",6:"ohlc",7:"ohlc-quote-new",8:"portfolio",9:"tradingviewWidget",10:"widget-builder",11:"worldMoneyChart",12:"worldMoneyChart2"}[t]||t)+"."+{0:"80f788e6e60997ac5d97",1:"21b714d2881422b40c81",2:"d2d3913986a924c9e045",3:"fb8f1f7c28bb40139807",4:"3cfd883b2947a8807d90",6:"5542cba5333740f5b4ac",7:"63aa906ee05d74c7f7a8",8:"ab742844e66a438e6bec",9:"4ab5d2036049a75872bf",10:"56384583cca498555772",11:"d88b86e812448cf1af31",12:"c7f19943c34ecc624533"}[t]+".js"}(t),s=function(e){l.onerror=l.onload=null,clearTimeout(c);var n=r[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src,a=new Error("Loading chunk "+t+" failed.\n("+i+": "+o+")");a.type=i,a.request=o,n[1](a)}r[t]=void 0}};var c=setTimeout(function(){s({type:"timeout",target:l})},12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(e)},o.m=t,o.c=n,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/public/app/",o.oe=function(t){throw console.error(t),t};var a=window.webpackJsonp=window.webpackJsonp||[],s=a.push.bind(a);a.push=e,a=a.slice();for(var l=0;l<a.length;l++)e(a[l]);var c=s;o(o.s=26)}([function(t,e,n){"use strict";n.d(e,"p",function(){return m}),n.d(e,"G",function(){return v}),n.d(e,"d",function(){return y}),n.d(e,"I",function(){return b}),n.d(e,"J",function(){return _}),n.d(e,"m",function(){return x}),n.d(e,"i",function(){return w}),n.d(e,"r",function(){return S}),n.d(e,"s",function(){return O}),n.d(e,"K",function(){return M}),n.d(e,"u",function(){return C}),n.d(e,"k",function(){return I}),n.d(e,"H",function(){return T}),n.d(e,"N",function(){return k}),n.d(e,"n",function(){return A}),n.d(e,"o",function(){return D}),n.d(e,"F",function(){return L}),n.d(e,"c",function(){return P}),n.d(e,"h",function(){return j}),n.d(e,"t",function(){return E}),n.d(e,"w",function(){return N}),n.d(e,"C",function(){return R}),n.d(e,"D",function(){return B}),n.d(e,"z",function(){return z}),n.d(e,"A",function(){return V}),n.d(e,"E",function(){return H}),n.d(e,"v",function(){return G}),n.d(e,"x",function(){return W}),n.d(e,"y",function(){return U}),n.d(e,"B",function(){return q}),n.d(e,"l",function(){return Y}),n.d(e,"O",function(){return $}),n.d(e,"P",function(){return X}),n.d(e,"Q",function(){return Z}),n.d(e,"S",function(){return K}),n.d(e,"M",function(){return J}),n.d(e,"b",function(){return Q}),n.d(e,"T",function(){return tt}),n.d(e,"R",function(){return nt}),n.d(e,"f",function(){return st}),n.d(e,"e",function(){return lt}),n.d(e,"g",function(){return ct}),n.d(e,"j",function(){return ut}),n.d(e,"q",function(){return dt}),n.d(e,"L",function(){return ht}),n.d(e,"a",function(){return pt});var i=n(6),r=k(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),o=k(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,c=s.filter,u=s.slice,d=s.map,h=function(){}.constructor,p=h?h.prototype:null,f="__proto__",g=2311;function m(){return g++}function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function y(t){if(null==t||"object"!=typeof t)return t;var e=t,n=a.call(t);if("[object Array]"===n){if(!it(t)){e=[];for(var i=0,s=t.length;i<s;i++)e[i]=y(t[i])}}else if(o[n]){if(!it(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(i=0,s=t.length;i<s;i++)e[i]=t[i]}}}else if(!r[n]&&!it(t)&&!G(t))for(var c in e={},t)t.hasOwnProperty(c)&&c!==f&&(e[c]=y(t[c]));return e}function b(t,e,n){if(!V(e)||!V(t))return n?y(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==f){var r=t[i],o=e[i];!V(o)||!V(r)||E(o)||E(r)||G(o)||G(r)||F(o)||F(r)||it(o)||it(r)?!n&&i in t||(t[i]=y(e[i])):b(r,o,n)}return t}function _(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=b(n,t[i],e);return n}function x(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==f&&(t[n]=e[n]);return t}function w(t,e,n){for(var i=L(e),r=0,o=i.length;r<o;r++){var a=i[r];
vendor: 4,903 bytes, lines 1-5
1(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}i.d.createCanvas;function S(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function O(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function M(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else w(t,e,n)}function C(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function I(t,e,n){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function T(t,e,n){if(!t)return[];if(!e)return K(t);if(t.map&&t.map===d)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function k(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function A(t,e,n){if(!t)return[];if(!e)return K(t);if(t.filter&&t.filter===c)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function D(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function L(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var P=p&&N(p.bind)?p.call.bind(p.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(u.call(arguments)))}};function j(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(u.call(arguments)))}}function E(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function N(t){return"function"==typeof t}function R(t){return"string"==typeof t}function B(t){return"[object String]"===a.call(t)}function z(t){return"number"==typeof t}function V(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function F(t){return!!r[a.call(t)]}function H(t){return!!o[a.call(t)]}function G(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function W(t){return null!=t.colorStops}function U(t){return null!=t.image}function q(t){return"[object RegExp]"===a.call(t)}function Y(t){return t!=t}function $(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function X(t,e){return null!=t?t:e}function Z(t,e,n){return null!=t?t:null!=e?e:n}function K(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return u.apply(t,e)}function J(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function Q(t,e){if(!t)throw new Error(e)}function tt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var et="__ec_primitive__";function nt(t){t[et]=!0}function it(t){return t[et]}var rt=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return L(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),ot="function"==typeof Map;var at=function(){function t(e){var n=E(e);this.data=ot?new Map:new rt;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&I(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},t.prototype.keys=function(){var t=this.data.keys();return ot?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function st(t){return new at(t)}function lt(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function ct(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&x(n,e),n}function ut(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function dt(t,e){return t.hasOwnProperty(e)}function ht(){}var pt=180/Math.PI},function(t,e,n){"use strict";(function(t){ 2/** 3* @vue/shared v3.5.16 4* (c) 2018-present Yuxi (Evan) You and Vue contributors 5* @license MIT
6**/ 7/*! #__NO_SIDE_EFFECTS__ */ 8function i(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return t=>t in e}n.d(e,"a",function(){return o}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return a}),n.d(e,"e",function(){return P}),n.d(e,"f",function(){return N}),n.d(e,"g",function(){return V}),n.d(e,"h",function(){return u}),n.d(e,"i",function(){return U}),n.d(e,"j",function(){return $}),n.d(e,"k",function(){return gt}),n.d(e,"l",function(){return W}),n.d(e,"m",function(){return B}),n.d(e,"n",function(){return p}),n.d(e,"o",function(){return E}),n.d(e,"p",function(){return ut}),n.d(e,"q",function(){return z}),n.d(e,"r",function(){return f}),n.d(e,"s",function(){return ct}),n.d(e,"t",function(){return A}),n.d(e,"u",function(){return b}),n.d(e,"v",function(){return q}),n.d(e,"w",function(){return it}),n.d(e,"x",function(){return T}),n.d(e,"y",function(){return dt}),n.d(e,"z",function(){return ht}),n.d(e,"A",function(){return g}),n.d(e,"B",function(){return ot}),n.d(e,"C",function(){return c}),n.d(e,"D",function(){return w}),n.d(e,"E",function(){return l}),n.d(e,"F",function(){return I}),n.d(e,"G",function(){return S}),n.d(e,"H",function(){return y}),n.d(e,"I",function(){return pt}),n.d(e,"J",function(){return k}),n.d(e,"K",function(){return rt}),n.d(e,"L",function(){return m}),n.d(e,"M",function(){return lt}),n.d(e,"N",function(){return _}),n.d(e,"O",function(){return x}),n.d(e,"P",function(){return at}),n.d(e,"Q",function(){return mt}),n.d(e,"R",function(){return vt}),n.d(e,"S",function(){return F}),n.d(e,"T",function(){return i}),n.d(e,"U",function(){return et}),n.d(e,"V",function(){return nt}),n.d(e,"W",function(){return X}),n.d(e,"X",function(){return Q}),n.d(e,"Y",function(){return d}),n.d(e,"Z",function(){return tt}),n.d(e,"ab",function(){return bt}),n.d(e,"bb",function(){return R}),n.d(e,"cb",function(){return H}),n.d(e,"db",function(){return C});const r={},o=[],a=()=>{},s=()=>!1,l=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),c=t=>t.startsWith("onUpdate:"),u=Object.assign,d=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},h=Object.prototype.hasOwnProperty,p=(t,e)=>h.call(t,e),f=Array.isArray,g=t=>"[object Map]"===M(t),m=t=>"[object Set]"===M(t),v=t=>"[object Date]"===M(t),y=t=>"[object RegExp]"===M(t),b=t=>"function"==typeof t,_=t=>"string"==typeof t,x=t=>"symbol"==typeof t,w=t=>null!==t&&"object"==typeof t,S=t=>(w(t)||b(t))&&b(t.then)&&b(t.catch),O=Object.prototype.toString,M=t=>O.call(t),C=t=>M(t).slice(8,-1),I=t=>"[object Object]"===M(t),T=t=>_(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,k=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),A=i("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),D=t=>{const e=Object.create(null);return n=>{return e[n]||(e[n]=t(n))}},L=/-(\w)/g,P=D(t=>t.replace(L,(t,e)=>e?e.toUpperCase():"")),j=/\B([A-Z])/g,E=D(t=>t.replace(j,"-$1").toLowerCase()),N=D(t=>t.charAt(0).toUpperCase()+t.slice(1)),R=D(t=>{return t?`on${N(t)}`:""}),B=(t,e)=>!Object.is(t,e),z=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},V=(t,e,n,i=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:i,value:n})},F=t=>{const e=parseFloat(t);return isNaN(e)?t:e},H=t=>{const e=_(t)?Number(t):NaN;return isNaN(e)?t:e};let G;const W=()=>G||(G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{});function U(t,e){return t+JSON.stringify(e,(t,e)=>"function"==typeof e?e.toString():e)}const q=i("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"),Y=2;function $(t,e=0,n=t.length){if((e=Math.max(0,Math.min(e,t.length)))>(n=Math.max(0,Math.min(n,t.length))))return"";let i=t.split(/(\r?\n)/);const r=i.filter((t,e)=>e%2==1);i=i.filter((t,e)=>e%2==0);let o=0;const a=[];for(let t=0;t<i.length;t++)if((o+=i[t].length+(r[t]&&r[t].length||0))>=e){for(let s=t-Y;s<=t+Y||n>o;s++){if(s<0||s>=i.length)continue;const l=s+1;a.push(`${l}${" ".repeat(Math.max(3-String(l).length,0))}| ${i[s]}`);const c=i[s].length,u=r[s]&&r[s].length||0;if(s===t){const t=e-(o-(c+u)),i=Math.max(1,n>o?c-t:n-e);a.push(" | "+" ".repeat(t)+"^".repeat(i))}else if(s>t){if(n>o){const t=Math.max(Math.min(n-o,c),1);a.push(" | "+"^".repeat(t))}o+=c+u}}break}return a.join("\n")}function X(t){if(f(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],r=_(i)?Q(i):X(i);if(r)for(const t in r)e[t]=r[t]}return e}if(_(t)||w(t))return t}const Z=/;(?![^(]*\))/g,K=/:([^]+)/,J=/\/\*[^]*?\*\//g;function Q(t){const e={};
8return t.replace(J,"").split(Z).forEach(t=>{if(t){const n=t.split(K);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function tt(t){if(!t)return"";if(_(t))return t;let e="";for(const n in t){const i=t[n];if(_(i)||"number"==typeof i){e+=`${n.startsWith("--")?n:E(n)}:${i};`}}return e}function et(t){let e="";if(_(t))e=t;else if(f(t))for(let n=0;n<t.length;n++){const i=et(t[n]);i&&(e+=i+" ")}else if(w(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function nt(t){if(!t)return null;let{class:e,style:n}=t;return e&&!_(e)&&(t.class=et(e)),n&&(t.style=X(n)),t}const it=i("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),rt=i("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),ot=i("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),at=i("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),st="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",lt=i(st),ct=i(st+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function ut(t){return!!t||""===t}const dt=i("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),ht=i("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radiu
8s,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function pt(t){if(null==t)return!1;const e=typeof t;return"string"===e||"number"===e||"boolean"===e}const ft=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function gt(t,e){return t.replace(ft,t=>e?'"'===t?'\\\\\\"':`\\\\${t}`:`\\${t}`)}function mt(t,e){if(t===e)return!0;let n=v(t),i=v(e);if(n||i)return!(!n||!i)&&t.getTime()===e.getTime();if(n=x(t),i=x(e),n||i)return t===e;if(n=f(t),i=f(e),n||i)return!(!n||!i)&&function(t,e){if(t.length!==e.length)return!1;let n=!0;for(let i=0;n&&i<t.length;i++)n=mt(t[i],e[i]);return n}(t,e);if(n=w(t),i=w(e),n||i){if(!n||!i)return!1;if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t){const i=t.hasOwnProperty(n),r=e.hasOwnProperty(n);if(i&&!r||!i&&r||!mt(t[n],e[n]))return!1}}return String(t)===String(e)}function vt(t,e){return t.findIndex(t=>mt(t,e))}const yt=t=>!(!t||!0!==t.__v_isRef),bt=t=>_(t)?t:null==t?"":f(t)||w(t)&&(t.toString===O||!b(t.toString))?yt(t)?bt(t.value):JSON.stringify(t,_t,2):String(t),_t=(t,e)=>yt(e)?_t(t,e.value):g(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[e,n],i)=>(t[xt(e,i)+" =>"]=n,t),{})}:m(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>xt(t))}:x(e)?xt(e):!w(e)||f(e)||I(e)?e:String(e),xt=(t,e="")=>{var n;return x(t)?`Symbol(${null!=(n=t.description)?n:e})`:t}}).call(this,n(10))},function(t,e,n){"use strict";n.d(e,"c",function(){return s}),n.d(e,"b",function(){return R}),n.d(e,"a",function(){return E}),n.d(e,"d",function(){return N});var i=function(){},r={},o=[],a=[];function s(t,e){var n,s,l,c,u=a;for(c=arguments.length;c-- >2;)o.push(arguments[c]);for(e&&null!=e.children&&(o.length||o.push(e.children),delete e.children);o.length;)if((s=o.pop())&&void 0!==s.pop)for(c=s.length;c--;)o.push(s[c]);else"boolean"==typeof s&&(s=null),(l="function"!=typeof t)&&(null==s?s="":"number"==typeof s?s=String(s):"string"!=typeof s&&(l=!1)),l&&n?u[u.length-1]+=s:u===a?u=[s]:u.push(s),n=l;var d=new i;return d.nodeName=t,d.children=u,d.attributes=null==e?void 0:e,d.key=null==e?void 0:e.key,void 0!==r.vnode&&r.vnode(d),d}function l(t,e){for(var n in e)t[n]=e[n];return t}function c(t,e){null!=t&&("function"==typeof t?t(e):t.current=e)}var u="function"==typeof Promise?Promise.resolve().then.bind(Prom
vendor: 7,557 bytes, line 8
8ise.resolve()):setTimeout;var d=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,h=[];function p(t){!t._dirty&&(t._dirty=!0)&&1==h.push(t)&&(r.debounceRendering||u)(f)}function f(){for(var t;t=h.pop();)t._dirty&&P(t)}function g(t,e){return t.normalizedNodeName===e||t.nodeName.toLowerCase()===e.toLowerCase()}function m(t){var e=l({},t.attributes);e.children=t.children;var n=t.nodeName.defaultProps;if(void 0!==n)for(var i in n)void 0===e[i]&&(e[i]=n[i]);return e}function v(t){var e=t.parentNode;e&&e.removeChild(t)}function y(t,e,n,i,r){if("className"===e&&(e="class"),"key"===e);else if("ref"===e)c(n,null),c(i,t);else if("class"!==e||r)if("style"===e){if(i&&"string"!=typeof i&&"string"!=typeof n||(t.style.cssText=i||""),i&&"object"==typeof i){if("string"!=typeof n)for(var o in n)o in i||(t.style[o]="");for(var o in i)t.style[o]="number"==typeof i[o]&&!1===d.test(o)?i[o]+"px":i[o]}}else if("dangerouslySetInnerHTML"===e)i&&(t.innerHTML=i.__html||"");else if("o"==e[0]&&"n"==e[1]){var a=e!==(e=e.replace(/Capture$/,""));e=e.toLowerCase().substring(2),i?n||t.addEventListener(e,b,a):t.removeEventListener(e,b,a),(t._listeners||(t._listeners={}))[e]=i}else if("list"!==e&&"type"!==e&&!r&&e in t){try{t[e]=null==i?"":i}catch(t){}null!=i&&!1!==i||"spellcheck"==e||t.removeAttribute(e)}else{var s=r&&e!==(e=e.replace(/^xlink:?/,""));null==i||!1===i?s?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.removeAttribute(e):"function"!=typeof i&&(s?t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),i):t.setAttribute(e,i))}else t.className=i||""}function b(t){return this._listeners[t.type](r.event&&r.event(t)||t)}var _=[],x=0,w=!1,S=!1;function O(){for(var t;t=_.shift();)r.afterMount&&r.afterMount(t),t.componentDidMount&&t.componentDidMount()}function M(t,e,n,i,r,o){x++||(w=null!=r&&void 0!==r.ownerSVGElement,S=null!=t&&!("__preactattr_"in t));var a=C(t,e,n,i,o);return r&&a.parentNode!==r&&r.appendChild(a),--x||(S=!1,o||O()),a}function C(t,e,n,i,r){var o=t,a=w;if(null!=e&&"boolean"!=typeof e||(e=""),"string"==typeof e||"number"==typeof e)return t&&void 0!==t.splitText&&t.parentNode&&(!t._component||r)?t.nodeValue!=e&&(t.nodeValue=e):(o=document.createTextNode(e),t&&(t.parentNode&&t.parentNode.replaceChild(o,t),I(t,!0))),o.__preactattr_=!0,o;var s,l,c=e.nodeName;if("function"==typeof c)return function(t,e,n,i){var r=t&&t._component,o=r,a=t,s=r&&t._componentConstructor===e.nodeName,l=s,c=m(e);for(;r&&!l&&(r=r._parentComponent);)l=r.constructor===e.nodeName;r&&l&&(!i||r._component)?(L(r,c,3,n,i),t=r.base):(o&&!s&&(j(o),t=a=null),r=A(e.nodeName,c,n),t&&!r.nextBase&&(r.nextBase=t,a=null),L(r,c,1,n,i),t=r.base,a&&t!==a&&(a._component=null,I(a,!1)));return t}(t,e,n,i);if(w="svg"===c||"foreignObject"!==c&&w,c=String(c),(!t||!g(t,c))&&(s=c,(l=w?document.createElementNS("http://www.w3.org/2000/svg",s):document.createElement(s)).normalizedNodeName=s,o=l,t)){for(;t.firstChild;)o.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(o,t),I(t,!0)}var u=o.firstChild,d=o.__preactattr_,h=e.children;if(null==d){d=o.__preactattr_={};for(var p=o.attributes,f=p.length;f--;)d[p[f].name]=p[f].value}return!S&&h&&1===h.length&&"string"==typeof h[0]&&null!=u&&void 0!==u.splitText&&null==u.nextSibling?u.nodeValue!=h[0]&&(u.nodeValue=h[0]):(h&&h.length||null!=u)&&function(t,e,n,i,r){var o,a,s,l,c,u=t.childNodes,d=[],h={},p=0,f=0,m=u.length,y=0,b=e?e.length:0;if(0!==m)for(var _=0;_<m;_++){var x=u[_],w=x.__preactattr_,S=b&&w?x._component?x._component.__key:w.key:null;null!=S?(p++,h[S]=x):(w||(void 0!==x.splitText?!r||x.nodeValue.trim():r))&&(d[y++]=x)}if(0!==b)for(var _=0;_<b;_++){l=e[_],c=null;var S=l.key;if(null!=S)p&&void 0!==h[S]&&(c=h[S],h[S]=void 0,p--);else if(f<y)for(o=f;o<y;o++)if(void 0!==d[o]&&(O=a=d[o],T=r,"string"==typeof(M=l)||"number"==typeof M?void 0!==O.splitText:"string"==typeof M.nodeName?!O._componentConstructor&&g(O,M.nodeName):T||O._componentConstructor===M.nodeName)){c=a,d[o]=void 0,o===y-1&&y--,o===f&&f++;break}c=C(c,l,n,i),s=u[_],c&&c!==t&&c!==s&&(null==s?t.appendChild(c):c===s.nextSibling?v(s):t.insertBefore(c,s))}var O,M,T;if(p)for(var _ in h)void 0!==h[_]&&I(h[_],!1);for(;f<=y;)void 0!==(c=d[y--])&&I(c,!1)}(o,h,n,i,S||null!=d.dangerouslySetInnerHTML),function(t,e,n){var i;for(i in n)e&&null!=e[i]||null==n[i]||y(t,i,n[i],n[i]=void 0,w);for(i in e)"children"===i||"innerHTML"===i||i in n&&e[i]===("value"===i||"checked"===i?t[i]:n[i])||y(t,i,n[i],n[i]=e[i],w)}(o,e.attributes,d),w=a,o}function I(t,e){var n=t._component;n?j(n):(null!=t.__preactattr_&&c(t.__preactattr_.ref,null),!1!==e&&null!=t.__preactattr_||v(t),T(t))}function T(t){for(t=t.lastChild;t;){var e=t.previousSibling;I(t,!0),t=e}}var k=[];function A(t,e,n){var i,r=k.length;for(t.prototype&&t.prototype.render?(i=new t(e,n),E.call(i,e,n)):((i=new E(e,n)).constructor=t,i.render=D);r--;)if(k[r].constructor===t)return i.nextBase=k[r].nextBase,k.splice(r,1),i;return i}function D(t,e,n){return this.constructor(t,n)}function L(t,e,n,i,o){t._disable||(t._disable=!0,t.__ref=e.ref,t.__key=e.key,delete e.ref,delete e.key,void 0===t.constructor.getDerivedStateFromProps&&(!t.base||o?t.componentWillMount&&t.componentWillMount():t.componentWillReceiveProps&&t.componentWillReceiveProps(e,i)),i&&i!==t.context&&(t.prevContext||(t.prevContext=t.context),t.context=i),t.prevProps||(t.prevProps=t.props),t.props=e,t._disable=!1,0!==n&&(1!==n&&!1===r.syncComponentUpdates&&t.base?p(t):P(t,1,o)),c(t.__ref,t))}function P(t,e,n,i){if(!t._disable){var o,a,s,c=t.props,u=t.state,d=t.context,h=t.prevProps||c,p=t.prevState||u,f=t.prevContext||d,g=t.base,v=t.nextBase,y=g||v,b=t._component,w=!1,S=f;if(t.constructor.getDerivedStateFromProps&&(u=l(l({},u),t.constructor.getDerivedStateFromProps(c,u)),t.state=u),g&&(t.props=h,t.state=p,t.context=f,2!==e&&t.shouldComponentUpdate&&!1===t.shouldComponentUpdate(c,u,d)?w=!0:t.componentWillUpdate&&t.componentWillUpdate(c,u,d),t.props=c,t.state=u,t.context=d),t.prevProps=t.prevState=t.prevContext=t.nextBase=null,t._dirty=!1,!w){o=t.render(c,u,d),t.getChildContext&&(d=l(l({},d),t.getChildContext())),g&&t.getSnapshotBeforeUpdate&&(S=t.getSnapshotBeforeUpdate(h,p));var C,T,k=o&&o.nodeName;if("function"==typeof k){var D=m(o);(a=b)&&a.constructor===k&&D.key==a.__key?L(a,D,1,d,!1):(C=a,t._component=a=A(k,D,d),a.nextBase=a.nextBase||v,a._parentComponent=t,L(a,D,0,d,!1),P(a,1,n,!0)),T=a.base}else s=y,(C=b)&&(s=t._component=null),(y||1===e)&&(s&&(s._component=null),T=M(s,o,d,n||!g,y&&y.parentNode,!0));if(y&&T!==y&&a!==b){var E=y.parentNode;E&&T!==E&&(E.replaceChild(T,y),C||(y._component=null,I(y,!1)))}if(C&&j(C),t.base=T,T&&!i){for(var N=t,R=t;R=R._parentComponent;)(N=R).base=T;T._component=N,T._componentConstructor=N.constructor}}for(!g||n?_.push(t):w||(t.componentDidUpdate&&t.componentDidUpdate(h,p,S),r.afterUpdate&&r.afterUpdate(t));t._renderCallbacks.length;)t._renderCallbacks.pop().call(t);x||i||O()}}function j(t){r.beforeUnmount&&r.beforeUnmount(t);var e=t.base;t._disable=!0,t.componentWillUnmount&&t.componentWillUnmount(),t.base=null;var n=t._component;n?j(n):e&&(null!=e.__preactattr_&&c(e.__preactattr_.ref,null),t.nextBase=e,v(e),k.push(t),T(e)),c(t.__ref,null)}function E(t,e){this._dirty=!0,this.context=e,this.props=t,this.state=this.state||{},this._renderCallbacks=[]}function N(t,e,n){return M(n,t,{},!1,e,!1)}function R(){return{}}l(E.prototype,{setState:function(t,e){this.prevState||(this.prevState=this.state),this.state=l(l({},this.state),"function"==typeof t?t(this.state,this.props):t),e&&this._renderCallbacks.push(e),p(this)}
vendor: 7,759 bytes, line 8
8,forceUpdate:function(t){t&&this._renderCallbacks.push(t),P(this,2)},render:function(){}})},function(t,e,n){"use strict";var i=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),r=new(function(){return function(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:!r.hasGlobalWindow||"Deno"in window?(r.node=!0,r.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,r),e.a=r},function(t,e,n){"use strict";n.d(e,"h",function(){return v}),n.d(e,"c",function(){return b}),n.d(e,"a",function(){return _}),n.d(e,"b",function(){return x}),n.d(e,"g",function(){return w}),n.d(e,"f",function(){return S}),n.d(e,"i",function(){return O}),n.d(e,"e",function(){return M}),n.d(e,"d",function(){return I});var i=n(7),r=n(0),o={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(t){return(t=Math.round(t))<0?0:t>255?255:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function c(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function d(t,e,n){return t+(e-t)*n}function h(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new i.a(20),g=null;function m(t,e){g&&p(g,e),g=f.put(t,g||e.slice())}function v(t,e){if(t){e=e||[];var n=f.get(t);if(n)return p(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in o)return p(e,o[i]),m(t,e),e;var r,a=i.length;if("#"===i.charAt(0))return 4===a||5===a?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(h(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===a?parseInt(i.slice(4),16)/15:1),m(t,e),e):void h(e,0,0,0,1):7===a||9===a?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(h(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===a?parseInt(i.slice(7),16)/255:1),m(t,e),e):void h(e,0,0,0,1):void 0;var s=i.indexOf("("),u=i.indexOf(")");if(-1!==s&&u+1===a){var d=i.substr(0,s),g=i.substr(s+1,u-(s+1)).split(","),v=1;switch(d){case"rgba":if(4!==g.length)return 3===g.length?h(e,+g[0],+g[1],+g[2],1):h(e,0,0,0,1);v=c(g.pop());case"rgb":return g.length>=3?(h(e,l(g[0]),l(g[1]),l(g[2]),3===g.length?v:c(g[3])),m(t,e),e):void h(e,0,0,0,1);case"hsla":return 4!==g.length?void h(e,0,0,0,1):(g[3]=c(g[3]),y(g,e),m(t,e),e);case"hsl":return 3!==g.length?void h(e,0,0,0,1):(y(g,e),m(t,e),e);default:return}}h(e,0,0,0,1)}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=c(t[1]),r=c(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return h(e=e||[],a(255*u(s,o,n+1/3)),a(255*u(s,o,n)),a(255*u(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t,e){var n=v(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return O(n,4===n.length?"rgba":"rgb")}}function _(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];
8var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),l=e[r],c=e[o],u=i-r;return n[0]=a(d(l[0],c[0],u)),n[1]=a(d(l[1],c[1],u)),n[2]=a(d(l[2],c[2],u)),n[3]=s(d(l[3],c[3],u)),n}}function x(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),l=v(e[r]),c=v(e[o]),u=i-r,h=O([a(d(l[0],c[0],u)),a(d(l[1],c[1],u)),a(d(l[2],c[2],u)),s(d(l[3],c[3],u))],"rgba");return n?{color:h,leftIndex:r,rightIndex:o,value:i}:h}}function w(t,e,n,i){var r,o=v(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,c=(s+a)/2;if(0===l)e=0,n=0;else{n=c<.5?l/(s+a):l/(2-s-a);var u=((s-i)/6+l/2)/l,d=((s-r)/6+l/2)/l,h=((s-o)/6+l/2)/l;i===s?e=h-d:r===s?e=1/3+u-h:o===s&&(e=2/3+d-u),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,c];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(o[1]=c(n)),null!=i&&(o[2]=c(i)),O(y(o),"rgba")}function S(t,e){var n=v(t);if(n&&null!=e)return n[3]=s(e),O(n,"rgba")}function O(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function M(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var C=new i.a(100);function I(t){if(Object(r.C)(t)){var e=C.get(t);return e||(e=b(t,-.1),C.put(t,e)),e}if(Object(r.x)(t)){var n=Object(r.m)({},t);return n.colorStops=Object(r.H)(t.colorStops,function(t){return{offset:t.offset,color:b(t.color,-.1)}}),n}return t}},function(t,e,n){"use strict";(function(t){n.d(e,"p",function(){return s}),n.d(e,"j",function(){return c}),n.d(e,"q",function(){return d}),n.d(e,"e",function(){return h}),n.d(e,"a",function(){return p}),n.d(e,"b",function(){return f}),n.d(e,"i",function(){return g}),n.d(e,"h",function(){return m}),n.d(e,"l",function(){return v}),n.d(e,"n",function(){return y}),n.d(e,"m",function(){return b}),n.d(e,"o",function(){return _}),n.d(e,"k",function(){return x}),n.d(e,"d",function(){return w}),n.d(e,"f",function(){return S}),n.d(e,"g",function(){return O}),n.d(e,"c",function(){return M});var i=n(0),r=n(4),o=n(3),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Object(r.h)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var l=1e-4;function c(t){return t<l&&t>-l}function u(t){return a(1e3*t)/1e3}function d(t){return a(1e4*t)/1e4}function h(t){return"matrix("+u(t[0])+","+u(t[1])+","+u(t[2])+","+u(t[3])+","+d(t[4])+","+d(t[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function m(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(t){return t&&!!t.image}function y(t){return v(t)||function(t){return t&&!!t.svgElement}(t)}function b(t){return"linear"===t.type}function _(t){return"radial"===t.type}function x(t){return t&&("linear"===t.type||"radial"===t.type)}function w(t){return"url(#"+t+")"}function S(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function O(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i.a,o=Object(i.P)(t.scaleX,1),s=Object(i.P)(t.scaleY,1),l=t.skewX||0,c=t.skewY||0,u=[];return(e||n)&&u.push("translate("+e+"px,"+n+"px)"),r&&u.push("rotate("+r+")"),1===o&&1===s||u.push("scale("+o+","+s+")"),(l||c)&&u.push("skew("+a(l*i.a)+"deg, "+a(c*i.a)+"deg)"),u.join(" ")}var M=o.a.hasGlobalWindow&&Object(i.w)(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:void 0!==t?function(e){return t.from(e).toString("base64")}:function(t){return null}}).call(this,n(20).Buffer)},function(t,e,n){"use strict";n.d(e,"c",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"a",function(){return o}),n.d(e,"d",function(){return d}),n.d(e,"e",function(){return h});var i=12,r="sans-serif",o=i+"px "+r,a=20,s=100;var l,c,u=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-a)/s;e[i]=r}return e}
8("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),d={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!l){var n=d.createCanvas();l=n&&n.getContext("2d")}if(l)return c!==e&&(c=l.font=e||o),l.measureText(t);t=t||"";var r=/((?:\d+)?\.?\d*)px/.exec(e=e||o),a=r&&+r[1]||i,s=0;if(e.indexOf("mono")>=0)s=a*t.length;else for(var h=0;h<t.length;h++){var p=u[t[h]];s+=null==p?a:p*a}return{width:s}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function h(t){for(var e in d)t[e]&&(d[e]=t[e])}},function(t,e,n){"use strict";var i=function(){return function(t){this.value=t}}(),r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,o=null;if(null==r[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e.a=o},function(t,e,n){"use strict";e.a=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},,function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var i,r;r=this,void 0===(i=function(){return r.Chartist=(t={version:"0.11.0"},function(t,e,n){"use strict";n.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},n.noop=function(t){return t},n.alphaNumerate=function(t){return String.fromCharCode(97+t%26)},n.extend=function(t){var e,i,r;for(t=t||{},e=1;e<arguments.length;e++)for(var o in i=arguments[e])"object"!=typeof(r=i[o])||null===r||r instanceof Array?t[o]=r:t[o]=n.extend(t[o],r);return t},n.replaceAll=function(t,e,n){return t.replace(new RegExp(e,"g"),n)},n.ensureUnit=function(t,e){return"number"==typeof t&&(t+=e),t},n.quantity=function(t){if("string"==typeof t){var e=/^(\d+)\s*(.*)$/g.exec(t);return{value:+e[1],unit:e[2]||void 0}}return{value:t}},n.querySelector=function(t){return t instanceof Node?t:e.querySelector(t)},n.times=function(t){return Array.apply(null,new Array(t))},n.sum=function(t,e){return t+(e||0)},n.mapMultiply=function(t){return function(e){return e*t}},n.mapAdd=function(t){return function(e){return e+t}},n.serialMap=function(t,e){var i=[],r=Math.max.apply(null,t.map(function(t){return t.length}));return n.times(r).forEach(function(n,r){var o=t.map(function(t){return t[r]});i[r]=e.apply(null,o)}),i},n.roundWithPrecision=function(t,e){var i=Math.pow(10,e||n.precision);return Math.round(t*i)/i},n.precision=8,n.escapingMap={"&":"&","<":"<",">":">",'"':""","'":"'"},n.serialize=function(t){return null==t?t:("number"==typeof t?t=""+t:"object"==typeof t&&(t=JSON.stringify({data:t})),Object.keys(n.escapingMap).reduce(function(t,e){return n.replaceAll(t,e,n.escapingMap[e])},t))},n.deserialize=function(t){if("string"!=typeof t)return t;t=Object.keys(n.escapingMap).reduce(function(t,e){return n.replaceAll(t,n.escapingMap[e],e)},t);try{t=void 0!==(t=JSON.parse(t)).data?t.data:t}catch(t){}return t}
8,n.createSvg=function(t,e,i,r){var o;return e=e||"100%",i=i||"100%",Array.prototype.slice.call(t.querySelectorAll("svg")).filter(function(t){return t.getAttributeNS(n.namespaces.xmlns,"ct")}).forEach(function(e){t.removeChild(e)}),(o=new n.Svg("svg").attr({width:e,height:i}).addClass(r))._node.style.width=e,o._node.style.height=i,t.appendChild(o._node),o},n.normalizeData=function(t,e,i){var r,o={raw:t,normalized:{}};return o.normalized.series=n.getDataArray({series:t.series||[]},e,i),r=o.normalized.series.every(function(t){return t instanceof Array})?Math.max.apply(null,o.normalized.series.map(function(t){return t.length})):o.normalized.series.length,o.normalized.labels=(t.labels||[]).slice(),Array.prototype.push.apply(o.normalized.labels,n.times(Math.max(0,r-o.normalized.labels.length)).map(function(){return""})),e&&n.reverseData(o.normalized),o},n.safeHasProperty=function(t,e){return null!==t&&"object"==typeof t&&t.hasOwnProperty(e)},n.isDataHoleValue=function(t){return null==t||"number"==typeof t&&isNaN(t)},n.reverseData=function(t){t.labels.reverse(),t.series.reverse();for(var e=0;e<t.series.length;e++)"object"==typeof t.series[e]&&void 0!==t.series[e].data?t.series[e].data.reverse():t.series[e]instanceof Array&&t.series[e].reverse()},n.getDataArray=function(t,e,i){return t.series.map(function t(e){if(n.safeHasProperty(e,"value"))return t(e.value);if(n.safeHasProperty(e,"data"))return t(e.data);if(e instanceof Array)return e.map(t);if(!n.isDataHoleValue(e)){if(i){var r={};return"string"==typeof i?r[i]=n.getNumberOrUndefined(e):r.y=n.getNumberOrUndefined(e),r.x=e.hasOwnProperty("x")?n.getNumberOrUndefined(e.x):r.x,r.y=e.hasOwnProperty("y")?n.getNumberOrUndefined(e.y):r.y,r}return n.getNumberOrUndefined(e)}})},n.normalizePadding=function(t,e){return e=e||0,"number"==typeof t?{top:t,right:t,bottom:t,left:t}:{top:"number"==typeof t.top?t.top:e,right:"number"==typeof t.right?t.right:e,bottom:"number"==typeof t.bottom?t.bottom:e,left:"number"==typeof t.left?t.left:e}},n.getMetaData=function(t,e){var n=t.data?t.data[e]:t[e];return n?n.meta:void 0},n.orderOfMagnitude=function(t){return Math.floor(Math.log(Math.abs(t))/Math.LN10)},n.projectLength=function(t,e,n){return e/n.range*t},n.getAvailableHeight=function(t,e){return Math.max((n.quantity(e.height).value||t.height())-(e.chartPadding.top+e.chartPadding.bottom)-e.axisX.offset,0)},n.getHighLow=function(t,e,i){var r={high:void 0===(e=n.extend({},e,i?e["axis"+i.toUpperCase()]:{})).high?-Number.MAX_VALUE:+e.high,low:void 0===e.low?Number.MAX_VALUE:+e.low},o=void 0===e.high,a=void 0===e.low;return(o||a)&&function t(e){if(void 0!==e)if(e instanceof Array)for(var n=0;n<e.length;n++)t(e[n]);else{var s=i?+e[i]:+e;o&&s>r.high&&(r.high=s),a&&s<r.low&&(r.low=s)}}(t),(e.referenceValue||0===e.referenceValue)&&(r.high=Math.max(e.referenceValue,r.high),r.low=Math.min(e.referenceValue,r.low)),r.high<=r.low&&(0===r.low?r.high=1:r.low<0?r.high=0:r.high>0?r.low=0:(r.high=1,r.low=0)),r},n.isNumeric=function(t){return null!==t&&isFinite(t)},n.isFalseyButZero=function(t){return!t&&0!==t},n.getNumberOrUndefined=function(t){return n.isNumeric(t)?+t:void 0},n.isMultiValue=function(t){return"object"==typeof t&&("x"in t||"y"in t)},n.getMultiValue=function(t,e){return n.isMultiValue(t)?n.getNumberOrUndefined(t[e||"y"]):n.getNumberOrUndefined(t)},n.rho=function(t){if(1===t)return t;function e(t,n){return t%n==0?n:e(n,t%n)}function n(t){return t*t+1}var i,r=2,o=2;if(t%2==0)return 2;do{r=n(r)%t,o=n(n(o))%t,i=e(Math.abs(r-o),t)}while(1===i);return i},n.getBounds=function(t,e,i,r){var o,a,s,l=0,c={high:e.high,low:e.low};c.valueRange=c.high-c.low,c.oom=n.orderOfMagnitude(c.valueRange),c.step=Math.pow(10,c.oom),c.min=Math.floor(c.low/c.step)*c.step,c.max=Math.ceil(c.high/c.step)*c.step,c.range=c.max-c.min,c.numberOfSteps=Math.round(c.range/c.step);var u=n.projectLength(t,c.step,c)<i,d=r?n.rho(c.range):0;if(r&&n.projectLength(t,1,c)>=i)c.step=1;else if(r&&d<c.step&&n.projectLength(t,d,c)>=i)c.step=d;else for(;;){if(u&&n.projectLength(t,c.step,c)<=i)c.step*=2;else{if(u||!(n.projectLength(t,c.step/2,c)>=i))break;if(c.step/=2,r&&c.step%1!=0){c.step*=2;break}}if(l++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}var h=2.221e-16;function p(t,e){return t===(t+=e)&&(t*=1+(e>0?h:-h)),t}for(c.step=Math.max(c.step,h),a=c.min,s=c.max;a+c.step<=c.low;)a=p(a,c.step);for(;s-c.step>=c.high;)s=p(s,-c.step);c.min=a,c.max=s,c.range=c.max-c.min;var f=[];for(o=c.min;o<=c.max;o=p(o,c.step)){var g=n.roundWithPrecision(o);g!==f[f.length-1]&&f.push(g)}return c.values=f,c},n.polarToCartesian=function(t,e,n,i){var r=(i-90)*Math.PI/180;return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}
8,n.createChartRect=function(t,e,i){var r=!(!e.axisX&&!e.axisY),o=r?e.axisY.offset:0,a=r?e.axisX.offset:0,s=t.width()||n.quantity(e.width).value||0,l=t.height()||n.quantity(e.height).value||0,c=n.normalizePadding(e.chartPadding,i);s=Math.max(s,o+c.left+c.right),l=Math.max(l,a+c.top+c.bottom);var u={padding:c,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return r?("start"===e.axisX.position?(u.y2=c.top+a,u.y1=Math.max(l-c.bottom,u.y2+1)):(u.y2=c.top,u.y1=Math.max(l-c.bottom-a,u.y2+1)),"start"===e.axisY.position?(u.x1=c.left+o,u.x2=Math.max(s-c.right,u.x1+1)):(u.x1=c.left,u.x2=Math.max(s-c.right-o,u.x1+1))):(u.x1=c.left,u.x2=Math.max(s-c.right,u.x1+1),u.y2=c.top,u.y1=Math.max(l-c.bottom,u.y2+1)),u},n.createGrid=function(t,e,i,r,o,a,s,l){var c={};c[i.units.pos+"1"]=t,c[i.units.pos+"2"]=t,c[i.counterUnits.pos+"1"]=r,c[i.counterUnits.pos+"2"]=r+o;var u=a.elem("line",c,s.join(" "));l.emit("draw",n.extend({type:"grid",axis:i,index:e,group:a,element:u},c))},n.createGridBackground=function(t,e,n,i){var r=t.elem("rect",{x:e.x1,y:e.y2,width:e.width(),height:e.height()},n,!0);i.emit("draw",{type:"gridBackground",group:t,element:r})},n.createLabel=function(t,i,r,o,a,s,l,c,u,d,h){var p,f={};if(f[a.units.pos]=t+l[a.units.pos],f[a.counterUnits.pos]=l[a.counterUnits.pos],f[a.units.len]=i,f[a.counterUnits.len]=Math.max(0,s-10),d){var g=e.createElement("span");g.className=u.join(" "),g.setAttribute("xmlns",n.namespaces.xhtml),g.innerText=o[r],g.style[a.units.len]=Math.round(f[a.units.len])+"px",g.style[a.counterUnits.len]=Math.round(f[a.counterUnits.len])+"px",p=c.foreignObject(g,n.extend({style:"overflow: visible;"},f))}else p=c.elem("text",f,u.join(" ")).text(o[r]);h.emit("draw",n.extend({type:"label",axis:a,index:r,group:c,element:p,text:o[r]},f))},n.getSeriesOption=function(t,e,n){if(t.name&&e.series&&e.series[t.name]){var i=e.series[t.name];return i.hasOwnProperty(n)?i[n]:e[n]}return e[n]},n.optionsProvider=function(e,i,r){var o,a,s=n.extend({},e),l=[];function c(e){var l=o;if(o=n.extend({},s),i)for(a=0;a<i.length;a++)t.matchMedia(i[a][0]).matches&&(o=n.extend(o,i[a][1]));r&&e&&r.emit("optionsChanged",{previousOptions:l,currentOptions:o})}
8if(!t.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(i)for(a=0;a<i.length;a++){var u=t.matchMedia(i[a][0]);u.addListener(c),l.push(u)}return c(),{removeMediaQueryListeners:function(){l.forEach(function(t){t.removeListener(c)})},getCurrentOptions:function(){return n.extend({},o)}}},n.splitIntoSegments=function(t,e,i){i=n.extend({},{increasingX:!1,fillHoles:!1},i);for(var r=[],o=!0,a=0;a<t.length;a+=2)void 0===n.getMultiValue(e[a/2].value)?i.fillHoles||(o=!0):(i.increasingX&&a>=2&&t[a]<=t[a-2]&&(o=!0),o&&(r.push({pathCoordinates:[],valueData:[]}),o=!1),r[r.length-1].pathCoordinates.push(t[a],t[a+1]),r[r.length-1].valueData.push(e[a/2]));return r}}(window,document,t),function(t,e,n){"use strict";n.Interpolation={},n.Interpolation.none=function(t){return t=n.extend({},{fillHoles:!1},t),function(e,i){for(var r=new n.Svg.Path,o=!0,a=0;a<e.length;a+=2){var s=e[a],l=e[a+1],c=i[a/2];void 0!==n.getMultiValue(c.value)?(o?r.move(s,l,!1,c):r.line(s,l,!1,c),o=!1):t.fillHoles||(o=!0)}return r}},n.Interpolation.simple=function(t){t=n.extend({},{divisor:2,fillHoles:!1},t);var e=1/Math.max(1,t.divisor);return function(i,r){for(var o,a,s,l=new n.Svg.Path,c=0;c<i.length;c+=2){var u=i[c],d=i[c+1],h=(u-o)*e,p=r[c/2];void 0!==p.value?(void 0===s?l.move(u,d,!1,p):l.curve(o+h,a,u-h,d,u,d,!1,p),o=u,a=d,s=p):t.fillHoles||(o=u=s=void 0)}return l}},n.Interpolation.cardinal=function(t){t=n.extend({},{tension:1,fillHoles:!1},t);var e=Math.min(1,Math.max(0,t.tension)),i=1-e;return function r(o,a){var s=n.splitIntoSegments(o,a,{fillHoles:t.fillHoles});if(s.length){if(s.length>1){var l=[];return s.forEach(function(t){l.push(r(t.pathCoordinates,t.valueData))}),n.Svg.Path.join(l)}if(o=s[0].pathCoordinates,a=s[0].valueData,o.length<=4)return n.Interpolation.none()(o,a);for(var c=(new n.Svg.Path).move(o[0],o[1],!1,a[0]),u=0,d=o.length;d-2>u;u+=2){var h=[{x:+o[u-2],y:+o[u-1]},{x:+o[u],y:+o[u+1]},{x:+o[u+2],y:+o[u+3]},{x:+o[u+4],y:+o[u+5]}];d-4===u?h[3]=h[2]:u||(h[0]={x:+o[u],y:+o[u+1]}),c.curve(e*(-h[0].x+6*h[1].x+h[2].x)/6+i*h[2].x,e*(-h[0].y+6*h[1].y+h[2].y)/6+i*h[2].y,e*(h[1].x+6*h[2].x-h[3].x)/6+i*h[2].x,e*(h[1].y+6*h[2].y-h[3].y)/6+i*h[2].y,h[2].x,h[2].y,!1,a[(u+2)/2])}return c}return n.Interpolation.none()([])}},n.Interpolation.monotoneCubic=function(t){return t=n.extend({},{fillHoles:!1},t),function e(i,r){var o=n.splitIntoSegments(i,r,{fillHoles:t.fillHoles,increasingX:!0});if(o.length){if(o.length>1){var a=[];return o.forEach(function(t){a.push(e(t.pathCoordinates,t.valueData))}),n.Svg.Path.join(a)}if(i=o[0].pathCoordinates,r=o[0].valueData,i.length<=4)return n.Interpolation.none()(i,r);var s,l,c=[],u=[],d=i.length/2,h=[],p=[],f=[],g=[];for(s=0;s<d;s++)c[s]=i[2*s],u[s]=i[2*s+1];for(s=0;s<d-1;s++)f[s]=u[s+1]-u[s],g[s]=c[s+1]-c[s],p[s]=f[s]/g[s];for(h[0]=p[0],h[d-1]=p[d-2],s=1;s<d-1;s++)0===p[s]||0===p[s-1]||p[s-1]>0!=p[s]>0?h[s]=0:(h[s]=3*(g[s-1]+g[s])/((2*g[s]+g[s-1])/p[s-1]+(g[s]+2*g[s-1])/p[s]),isFinite(h[s])||(h[s]=0));for(l=(new n.Svg.Path).move(c[0],u[0],!1,r[0]),s=0;s<d-1;s++)l.curve(c[s]+g[s]/3,u[s]+h[s]*g[s]/3,c[s+1]-g[s]/3,u[s+1]-h[s+1]*g[s]/3,c[s+1],u[s+1],!1,r[s+1]);return l}return n.Interpolation.none()([])}},n.Interpolation.step=function(t){return t=n.extend({},{postpone:!0,fillHoles:!1},t),function(e,i){for(var r,o,a,s=new n.Svg.Path,l=0;l<e.length;l+=2){var c=e[l],u=e[l+1],d=i[l/2];void 0!==d.value?(void 0===a?s.move(c,u,!1,d):(t.postpone?s.line(c,o,!1,a):s.line(r,u,!1,d),s.line(c,u,!1,d)),r=c,o=u,a=d):t.fillHoles||(r=o=a=void 0)}return s}}}(window,document,t),function(t,e,n){"use strict";n.EventEmitter=function(){var t=[];return{addEventHandler:function(e,n){t[e]=t[e]||[],t[e].push(n)},removeEventHandler:function(e,n){t[e]&&(n?(t[e].splice(t[e].indexOf(n),1),0===t[e].length&&delete t[e]):delete t[e])},emit:function(e,n){t[e]&&t[e].forEach(function(t){t(n)}),t["*"]&&t["*"].forEach(function(t){t(e,n)})}}}}(window,document,t),function(t,e,n){"use strict";n.Class={extend:function(t,e){var i=e||this.prototype||n.Class,r=Object.create(i);n.Class.cloneDefinitions(r,t);var o=function(){var t,e=r.constructor||function(){};return t=this===n?Object.create(r):this,e.apply(t,Array.prototype.slice.call(arguments,0)),t};return o.prototype=r,o.super=i,o.extend=this.extend,o},cloneDefinitions:function(){var t=function(t){var e=[];
8if(t.length)for(var n=0;n<t.length;n++)e.push(t[n]);return e}(arguments),e=t[0];return t.splice(1,t.length-1).forEach(function(t){Object.getOwnPropertyNames(t).forEach(function(n){delete e[n],Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}),e}}}(window,document,t),function(t,e,n){"use strict";n.Base=n.Class.extend({constructor:function(e,i,r,o,a){this.container=n.querySelector(e),this.data=i||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.defaultOptions=r,this.options=o,this.responsiveOptions=a,this.eventEmitter=n.EventEmitter(),this.supportsForeignObject=n.Svg.isSupported("Extensibility"),this.supportsAnimations=n.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=function(){this.update()}.bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout(function(){t.addEventListener("resize",this.resizeListener),this.optionsProvider=n.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",function(){this.update()}.bind(this)),this.options.plugins&&this.options.plugins.forEach(function(t){t instanceof Array?t[0](this,t[1]):t(this)}.bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}.bind(this),0)},optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:function(t,e,i){return t&&(this.data=t||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),e&&(this.options=n.extend({},i?this.options:this.defaultOptions,e),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=n.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this},detach:function(){return this.initializeTimeoutId?t.clearTimeout(this.initializeTimeoutId):(t.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this},on:function(t,e){return this.eventEmitter.addEventHandler(t,e),this},off:function(t,e){return this.eventEmitter.removeEventHandler(t,e),this},version:n.version,supportsForeignObject:!1})}(window,document,t),function(t,e,n){"use strict";n.Svg=n.Class.extend({constructor:function(t,i,r,o,a){t instanceof Element?this._node=t:(this._node=e.createElementNS(n.namespaces.svg,t),"svg"===t&&this.attr({"xmlns:ct":n.namespaces.ct})),i&&this.attr(i),r&&this.addClass(r),o&&(a&&o._node.firstChild?o._node.insertBefore(this._node,o._node.firstChild):o._node.appendChild(this._node))},attr:function(t,e){return"string"==typeof t?e?this._node.getAttributeNS(e,t):this._node.getAttribute(t):(Object.keys(t).forEach(function(e){if(void 0!==t[e])if(-1!==e.indexOf(":")){var i=e.split(":");this._node.setAttributeNS(n.namespaces[i[0]],e,t[e])}else this._node.setAttribute(e,t[e])}.bind(this)),this)},elem:function(t,e,i,r){return new n.Svg(t,e,i,this,r)},parent:function(){return this._node.parentNode instanceof SVGElement?new n.Svg(this._node.parentNode):null},root:function(){for(var t=this._node;"svg"!==t.nodeName;)t=t.parentNode;return new n.Svg(t)},querySelector:function(t){var e=this._node.querySelector(t);return e?new n.Svg(e):null},querySelectorAll:function(t){var e=this._node.querySelectorAll(t);return e.length?new n.Svg.List(e):null},getNode:function(){return this._node},foreignObject:function(t,i,r,o){if("string"==typeof t){var a=e.createElement("div");a.innerHTML=t,t=a.firstChild}t.setAttribute("xmlns",n.namespaces.xmlns);var s=this.elem("foreignObject",i,r,o);return s._node.appendChild(t),s},text:function(t){return this._node.appendChild(e.createTextNode(t)),this},empty:function(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this},remove:function(){return this._node.parentNode.removeChild(this._node),this.parent()},replace:function(t){return this._node.parentNode.replaceChild(t._node,this._node),t},append:function(t,e){return e&&this._node.firstChild?this._node.insertBefore(t._node,this._node.firstChild):this._node.appendChild(t._node),this},classes:function(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]},addClass:function(t){return this._node.setAttribute("class",this.classes(this._node).concat(t.trim().split(/\s+/)).filter(function(t,e,n){return n.indexOf(t)===e}).join(" ")),this},removeClass:function(t){var e=t.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter(function(t){return-1===e.indexOf(t)}).join(" ")),this},removeAllClasses:function(){return this._node.setAttribute("class",""),this},height:function(){return this._node.getBoundingClientRect().height},width:function(){return this._node.getBoundingClientRect().width}
8,animate:function(t,e,i){return void 0===e&&(e=!0),Object.keys(t).forEach(function(r){function o(t,e){var o,a,s,l={};t.easing&&(s=t.easing instanceof Array?t.easing:n.Svg.Easing[t.easing],delete t.easing),t.begin=n.ensureUnit(t.begin,"ms"),t.dur=n.ensureUnit(t.dur,"ms"),s&&(t.calcMode="spline",t.keySplines=s.join(" "),t.keyTimes="0;1"),e&&(t.fill="freeze",l[r]=t.from,this.attr(l),a=n.quantity(t.begin||0).value,t.begin="indefinite"),o=this.elem("animate",n.extend({attributeName:r},t)),e&&setTimeout(function(){try{o._node.beginElement()}catch(e){l[r]=t.to,this.attr(l),o.remove()}}.bind(this),a),i&&o._node.addEventListener("beginEvent",function(){i.emit("animationBegin",{element:this,animate:o._node,params:t})}.bind(this)),o._node.addEventListener("endEvent",function(){i&&i.emit("animationEnd",{element:this,animate:o._node,params:t}),e&&(l[r]=t.to,this.attr(l),o.remove())}.bind(this))}t[r]instanceof Array?t[r].forEach(function(t){o.bind(this)(t,!1)}.bind(this)):o.bind(this)(t[r],e)}.bind(this)),this}}),n.Svg.isSupported=function(t){return e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+t,"1.1")},n.Svg.Easing={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},n.Svg.List=n.Class.extend({constructor:function(t){var e=this;this.svgElements=[];for(var i=0;i<t.length;i++)this.svgElements.push(new n.Svg(t[i]));Object.keys(n.Svg.prototype).filter(function(t){return-1===["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(t)}).forEach(function(t){e[t]=function(){var i=Array.prototype.slice.call(arguments,0);return e.svgElements.forEach(function(e){n.Svg.prototype[t].apply(e,i)}),e}})}})}(window,document,t),function(t,e,n){"use strict";var i={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},r={accuracy:3};function o(t,e,i,r,o,a){var s=n.extend({command:o?t.toLowerCase():t.toUpperCase()},e,a?{data:a}:{});i.splice(r,0,s)}function a(t,e){t.forEach(function(n,r){i[n.command.toLowerCase()].forEach(function(i,o){e(n,i,r,o,t)})})}n.Svg.Path=n.Class.extend({constructor:function(t,e){this.pathElements=[],this.pos=0,this.close=t,this.options=n.extend({},r,e)},position:function(t){return void 0!==t?(this.pos=Math.max(0,Math.min(this.pathElements.length,t)),this):this.pos},remove:function(t){return this.pathElements.splice(this.pos,t),this},move:function(t,e,n,i){return o("M",{x:+t,y:+e},this.pathElements,this.pos++,n,i),this},line:function(t,e,n,i){return o("L",{x:+t,y:+e},this.pathElements,this.pos++,n,i),this},curve:function(t,e,n,i,r,a,s,l){return o("C",{x1:+t,y1:+e,x2:+n,y2:+i,x:+r,y:+a},this.pathElements,this.pos++,s,l),this},arc:function(t,e,n,i,r,a,s,l,c){return o("A",{rx:+t,ry:+e,xAr:+n,lAf:+i,sf:+r,x:+a,y:+s},this.pathElements,this.pos++,l,c),this},scale:function(t,e){return a(this.pathElements,function(n,i){n[i]*="x"===i[0]?t:e}),this},translate:function(t,e){return a(this.pathElements,function(n,i){n[i]+="x"===i[0]?t:e}),this},transform:function(t){return a(this.pathElements,function(e,n,i,r,o){var a=t(e,n,i,r,o);(a||0===a)&&(e[n]=a)}),this},parse:function(t){var e=t.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce(function(t,e){return e.match(/[A-Za-z]/)&&t.push([]),t[t.length-1].push(e),t},[]);"Z"===e[e.length-1][0].toUpperCase()&&e.pop();var r=e.map(function(t){var e=t.shift(),r=i[e.toLowerCase()];return n.extend({command:e},r.reduce(function(e,n,i){return e[n]=+t[i],e},{}))}),o=[this.pos,0];return Array.prototype.push.apply(o,r),Array.prototype.splice.apply(this.pathElements,o),this.pos+=r.length,this},stringify:function(){var t=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(e,n){var r=i[n.command.toLowerCase()].map(function(e){return this.options.accuracy?Math.round(n[e]*t)/t:n[e]}.bind(this));return e+n.command+r.join(",")}.bind(this),"")+(this.close?"Z":"")},clone:function(t){var e=new n.Svg.Path(t||this.close);return e.pos=this.pos,e.pathElements=this.pathElements.slice().map(function(t){return n.extend({},t)}),e.options=n.extend({},this.options),e},splitByCommand:function(t){var e=[new n.Svg.Path];
8return this.pathElements.forEach(function(i){i.command===t.toUpperCase()&&0!==e[e.length-1].pathElements.length&&e.push(new n.Svg.Path),e[e.length-1].pathElements.push(i)}),e}}),n.Svg.Path.elementDescriptions=i,n.Svg.Path.join=function(t,e,i){for(var r=new n.Svg.Path(e,i),o=0;o<t.length;o++)for(var a=t[o],s=0;s<a.pathElements.length;s++)r.pathElements.push(a.pathElements[s]);return r}}(window,document,t),function(t,e,n){"use strict";var i={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};n.Axis=n.Class.extend({constructor:function(t,e,n,r){this.units=t,this.counterUnits=t===i.x?i.y:i.x,this.chartRect=e,this.axisLength=e[t.rectEnd]-e[t.rectStart],this.gridOffset=e[t.rectOffset],this.ticks=n,this.options=r},createGridAndLabels:function(t,e,i,r,o){var a=r["axis"+this.units.pos.toUpperCase()],s=this.ticks.map(this.projectValue.bind(this)),l=this.ticks.map(a.labelInterpolationFnc);s.forEach(function(c,u){var d,h={x:0,y:0};d=s[u+1]?s[u+1]-c:Math.max(this.axisLength-c,30),n.isFalseyButZero(l[u])&&""!==l[u]||("x"===this.units.pos?(c=this.chartRect.x1+c,h.x=r.axisX.labelOffset.x,"start"===r.axisX.position?h.y=this.chartRect.padding.top+r.axisX.labelOffset.y+(i?5:20):h.y=this.chartRect.y1+r.axisX.labelOffset.y+(i?5:20)):(c=this.chartRect.y1-c,h.y=r.axisY.labelOffset.y-(i?d:0),"start"===r.axisY.position?h.x=i?this.chartRect.padding.left+r.axisY.labelOffset.x:this.chartRect.x1-10:h.x=this.chartRect.x2+r.axisY.labelOffset.x+10),a.showGrid&&n.createGrid(c,u,this,this.gridOffset,this.chartRect[this.counterUnits.len](),t,[r.classNames.grid,r.classNames[this.units.dir]],o),a.showLabel&&n.createLabel(c,d,u,l,this,a.offset,h,e,[r.classNames.label,r.classNames[this.units.dir],"start"===a.position?r.classNames[a.position]:r.classNames.end],i,o))}.bind(this))},projectValue:function(t,e,n){throw new Error("Base axis can't be instantiated!")}}),n.Axis.units=i}(window,document,t),function(t,e,n){"use strict";n.AutoScaleAxis=n.Axis.extend({constructor:function(t,e,i,r){var o=r.highLow||n.getHighLow(e,r,t.pos);this.bounds=n.getBounds(i[t.rectEnd]-i[t.rectStart],o,r.scaleMinSpace||20,r.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},n.AutoScaleAxis.super.constructor.call(this,t,i,this.bounds.values,r)},projectValue:function(t){return this.axisLength*(+n.getMultiValue(t,this.units.pos)-this.bounds.min)/this.bounds.range}})}(window,document,t),function(t,e,n){"use strict";n.FixedScaleAxis=n.Axis.extend({constructor:function(t,e,i,r){var o=r.highLow||n.getHighLow(e,r,t.pos);this.divisor=r.divisor||1,this.ticks=r.ticks||n.times(this.divisor).map(function(t,e){return o.low+(o.high-o.low)/this.divisor*e}.bind(this)),this.ticks.sort(function(t,e){return t-e}),this.range={min:o.low,max:o.high},n.FixedScaleAxis.super.constructor.call(this,t,i,this.ticks,r),this.stepLength=this.axisLength/this.divisor},projectValue:function(t){return this.axisLength*(+n.getMultiValue(t,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}})}(window,document,t),function(t,e,n){"use strict";n.StepAxis=n.Axis.extend({constructor:function(t,e,i,r){n.StepAxis.super.constructor.call(this,t,i,r.ticks,r);var o=Math.max(1,r.ticks.length-(r.stretch?1:0));this.stepLength=this.axisLength/o},projectValue:function(t,e){return this.stepLength*e}})}(window,document,t),function(t,e,n){"use strict";var i={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackgroun
8d:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};n.Line=n.Base.extend({constructor:function(t,e,r,o){n.Line.super.constructor.call(this,t,e,i,n.extend({},i,r),o)},createChart:function(t){var e=n.normalizeData(this.data,t.reverseData,!0);this.svg=n.createSvg(this.container,t.width,t.height,t.classNames.chart);var r,o,a=this.svg.elem("g").addClass(t.classNames.gridGroup),s=this.svg.elem("g"),l=this.svg.elem("g").addClass(t.classNames.labelGroup),c=n.createChartRect(this.svg,t,i.padding);r=void 0===t.axisX.type?new n.StepAxis(n.Axis.units.x,e.normalized.series,c,n.extend({},t.axisX,{ticks:e.normalized.labels,stretch:t.fullWidth})):t.axisX.type.call(n,n.Axis.units.x,e.normalized.series,c,t.axisX),o=void 0===t.axisY.type?new n.AutoScaleAxis(n.Axis.units.y,e.normalized.series,c,n.extend({},t.axisY,{high:n.isNumeric(t.high)?t.high:t.axisY.high,low:n.isNumeric(t.low)?t.low:t.axisY.low})):t.axisY.type.call(n,n.Axis.units.y,e.normalized.series,c,t.axisY),r.createGridAndLabels(a,l,this.supportsForeignObject,t,this.eventEmitter),o.createGridAndLabels(a,l,this.supportsForeignObject,t,this.eventEmitter),t.showGridBackground&&n.createGridBackground(a,c,t.classNames.gridBackground,this.eventEmitter),e.raw.series.forEach(function(i,a){var l=s.elem("g");l.attr({"ct:series-name":i.name,"ct:meta":n.serialize(i.meta)}),l.addClass([t.classNames.series,i.className||t.classNames.series+"-"+n.alphaNumerate(a)].join(" "));var u=[],d=[];e.normalized.series[a].forEach(function(t,s){var l={x:c.x1+r.projectValue(t,s,e.normalized.series[a]),y:c.y1-o.project
8Value(t,s,e.normalized.series[a])};u.push(l.x,l.y),d.push({value:t,valueIndex:s,meta:n.getMetaData(i,s)})}.bind(this));var h={lineSmooth:n.getSeriesOption(i,t,"lineSmooth"),showPoint:n.getSeriesOption(i,t,"showPoint"),showLine:n.getSeriesOption(i,t,"showLine"),showArea:n.getSeriesOption(i,t,"showArea"),areaBase:n.getSeriesOption(i,t,"areaBase")},p=("function"==typeof h.lineSmooth?h.lineSmooth:h.lineSmooth?n.Interpolation.monotoneCubic():n.Interpolation.none())(u,d);if(h.showPoint&&p.pathElements.forEach(function(e){var s=l.elem("line",{x1:e.x,y1:e.y,x2:e.x+.01,y2:e.y},t.classNames.point).attr({"ct:value":[e.data.value.x,e.data.value.y].filter(n.isNumeric).join(","),"ct:meta":n.serialize(e.data.meta)});this.eventEmitter.emit("draw",{type:"point",value:e.data.value,index:e.data.valueIndex,meta:e.data.meta,series:i,seriesIndex:a,axisX:r,axisY:o,group:l,element:s,x:e.x,y:e.y})}.bind(this)),h.showLine){var f=l.elem("path",{d:p.stringify()},t.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:e.normalized.series[a],path:p.clone(),chartRect:c,index:a,series:i,seriesIndex:a,seriesMeta:i.meta,axisX:r,axisY:o,group:l,element:f})}if(h.showArea&&o.range){var g=Math.max(Math.min(h.areaBase,o.range.max),o.range.min),m=c.y1-o.project
8Value(g);p.splitByCommand("M").filter(function(t){return t.pathElements.length>1}).map(function(t){var e=t.pathElements[0],n=t.pathElements[t.pathElements.length-1];return t.clone(!0).position(0).remove(1).move(e.x,m).line(e.x,e.y).position(t.pathElements.length+1).line(n.x,m)}).forEach(function(n){var s=l.elem("path",{d:n.stringify()},t.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:e.normalized.series[a],path:n.clone(),series:i,seriesIndex:a,axisX:r,axisY:o,chartRect:c,index:a,group:l,element:s})}.bind(this))}}.bind(this)),this.eventEmitter.emit("created",{bounds:o.bounds,chartRect:c,axisX:r,axisY:o,svg:this.svg,options:t})}})}(window,document,t),function(t,e,n){"use strict";var i={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};n.Bar=n.Base.extend({constructor:function(t,e,r,o){n.Bar.super.constructor.call(this,t,e,i,n.extend({},i,r),o)},createChart:function(t){var e,r;t.distributeSeries?(e=n.normalizeData(this.data,t.reverseData,t.horizontalBars?"x":"y")).normalized.series=e.normalized.series.map(function(t){return[t]}):e=n.normalizeData(this.data,t.reverseData,t.horizontalBars?"x":"y"),this.svg=n.createSvg(this.container,t.width,t.height,t.classNames.chart+(t.horizontalBars?" "+t.classNames.horizontalBars:""));var o=this.svg.elem("g").addClass(t.classNames.gridGroup),a=this.svg.elem("g"),s=this.svg.elem("g").addClass(t.classNames.labelGroup);if(t.stackBars&&0!==e.normalized.series.length){var l=n.serialMap(e.normalized.series,function(){return Array.prototype.slice.call(arguments).map(function(t){return t}).reduce(function(t,e){return{x:t.x+(e&&e.x)||0,y:t.y+(e&&e.y)||0}},{x:0,y:0})});r=n.getHighLow([l],t,t.horizontalBars?"x":"y")}else r=n.getHighLow(e.normalized.series,t,t.horizontalBars?"x":"y");r.high=+t.high||(0===t.high?0:r.high),r.low=+t.low||(0===t.low?0:r.low);var c,u,d,h,p,f=n.createChartRect(this.svg,t,i.padding);u=t.distributeSeries&&t.stackBars?e.normalized.labels.slice(0,1):e.normalized.labels,t.horizontalBars?(c=h=void 0===t.axisX.type?new n.AutoScaleAxis(n.Axis.units.x,e.normalized.series,f,n.extend({},t.axisX,{highLow:r,referenceValue:0})):t.axisX.type.call(n,n.Axis.units.x,e.normalized.series,f,n.extend({},t.axisX,{highLow:r,referenceValue:0})),d=p=void 0===t.axisY.type?new n.StepAxis(n.Axis.units.y,e.normalized.series,f,{ticks:u}):t.axisY.type.call(n,n.Axis.units.y,e.normalized.series,f,t.axisY)):(d=h=void 0===t.axisX.type?new n.StepAxis(n.Axis.units.x,e.normalized.series,f,{ticks:u}):t.axisX.type.call(n,n.Axis.units.x,e.normalized.series,f,t.axisX),c=p=void 0===t.axisY.type?new n.AutoScaleAxis(n.Axis.units.y,e.normalized.series,f,n.extend({},t.axisY,{highLow:r,referenceValue:0})):t.axisY.type.call(n,n.Axis.units.y,e.normalized.series,f,n.extend({},t.axisY,{highLow:r,referenceValue:0})));var g=t.horizontalBars?f.x1+c.projectValue(0):f.y1-c.projectValue(0),m=[];d.createGridAndLabels(o,s,this.supportsForeignObject,t,this.eventEmitter),c.createGridAndLabels(o,s,this.supportsForeignObject,t,this.eventEmitter),t.showGridBackground&&n.createGridBackground(o,f,t.classNames.gridBackground,this.eventEmitter),e.raw.series.forEach(function(i,r){var o,s,l=r-(e.raw.series.length-1)/2;o=t.distributeSeries&&!t.stackBars?d.axisLength/e.normalized.series.length/2:t.distributeSeries&&t.stackBars?d.axisLength/2:d.axisLength/e.normalized.series[r].length/2,(s=a.elem("g")).attr({"ct:series-name":i.name,"ct:meta":n.serialize(i.meta)}),s.addClass([t.classNames.series,i.className||t.classNames.series+"-"+n.alphaNumerate(r)].join(" ")),e.normalized.series[r].forEach(function(a,u){var v,y,b,_;if(_=t.distributeSeries&&!t.stackBars?r:t.distributeSeries&&t.stackBars?0:u,v=t.horizontalBars?{x:f.x1+c.project
8Value(a&&a.x?a.x:0,u,e.normalized.series[r]),y:f.y1-d.projectValue(a&&a.y?a.y:0,_,e.normalized.series[r])}:{x:f.x1+d.projectValue(a&&a.x?a.x:0,_,e.normalized.series[r]),y:f.y1-c.projectValue(a&&a.y?a.y:0,u,e.normalized.series[r])},d instanceof n.StepAxis&&(d.options.stretch||(v[d.units.pos]+=o*(t.horizontalBars?-1:1)),v[d.units.pos]+=t.stackBars||t.distributeSeries?0:l*t.seriesBarDistance*(t.horizontalBars?-1:1)),b=m[u]||g,m[u]=b-(g-v[d.counterUnits.pos]),void 0!==a){var x={};x[d.units.pos+"1"]=v[d.units.pos],x[d.units.pos+"2"]=v[d.units.pos],!t.stackBars||"accumulate"!==t.stackMode&&t.stackMode?(x[d.counterUnits.pos+"1"]=g,x[d.counterUnits.pos+"2"]=v[d.counterUnits.pos]):(x[d.counterUnits.pos+"1"]=b,x[d.counterUnits.pos+"2"]=m[u]),x.x1=Math.min(Math.max(x.x1,f.x1),f.x2),x.x2=Math.min(Math.max(x.x2,f.x1),f.x2),x.y1=Math.min(Math.max(x.y1,f.y2),f.y1),x.y2=Math.min(Math.max(x.y2,f.y2),f.y1);var w=n.getMetaData(i,u);y=s.elem("line",x,t.classNames.bar).attr({"ct:value":[a.x,a.y].filter(n.isNumeric).join(","),"ct:meta":n.serialize(w)}),this.eventEmitter.emit("draw",n.extend({type:"bar",value:a,index:u,meta:w,series:i,seriesIndex:r,axisX:h,axisY:p,chartRect:f,group:s,element:y},x))}}.bind(this))}.bind(this)),this.eventEmitter.emit("created",{bounds:c.bounds,chartRect:f,axisX:h,axisY:p,svg:this.svg,options:t})}})}(window,document,t),function(t,e,n){"use strict";var i={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutSolid:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:n.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1};function r(t,e,n){var i=e.x>t.x;return i&&"explode"===n||!i&&"implode"===n?"start":i&&"implode"===n||!i&&"explode"===n?"end":"middle"}n.Pie=n.Base.extend({constructor:function(t,e,r,o){n.Pie.super.constructor.call(this,t,e,i,n.extend({},i,r),o)},createChart:function(t){var e,o,a,s,l,c=n.normalizeData(this.data),u=[],d=t.startAngle;this.svg=n.createSvg(this.container,t.width,t.height,t.donut?t.classNames.chartDonut:t.classNames.chartPie),o=n.createChartRect(this.svg,t,i.padding),a=Math.min(o.width()/2,o.height()/2),l=t.total||c.normalized.series.reduce(function(t,e){return t+e},0);var h=n.quantity(t.donutWidth);"%"===h.unit&&(h.value*=a/100),a-=t.donut&&!t.donutSolid?h.value/2:0,s="outside"===t.labelPosition||t.donut&&!t.donutSolid?a:"center"===t.labelPosition?0:t.donutSolid?a-h.value/2:a/2,s+=t.labelOffset;var p={x:o.x1+o.width()/2,y:o.y2+o.height()/2},f=1===c.raw.series.filter(function(t){return t.hasOwnProperty("value")?0!==t.value:0!==t}).length;c.raw.series.forEach(function(t,e){u[e]=this.svg.elem("g",null,null)}.bind(this)),t.showLabel&&(e=this.svg.elem("g",null,null)),c.raw.series.forEach(function(i,o){if(0!==c.normalized.series[o]||!t.ignoreEmptyValues){u[o].attr({"ct:series-name":i.name}),u[o].addClass([t.classNames.series,i.className||t.classNames.series+"-"+n.alphaNumerate(o)].join(" "));var g=l>0?d+c.normalized.series[o]/l*360:0,m=Math.max(0,d-(0===o||f?0:.2));g-m>=359.99&&(g=m+359.99);var v,y,b,_=n.polarToCartesian(p.x,p.y,a,m),x=n.polarToCartesian(p.x,p.y,a,g),w=new n.Svg.Path(!t.donut||t.donutSolid).move(x.x,x.y).arc(a,a,0,g-d>180,0,_.x,_.y);t.donut?t.donutSolid&&(b=a-h.value,v=n.polarToCartesian(p.x,p.y,b,d-(0===o||f?0:.2)),y=n.polarToCartesian(p.x,p.y,b,g),w.line(v.x,v.y),w.arc(b,b,0,g-d>180,1,y.x,y.y)):w.line(p.x,p.y);var S=t.classNames.slicePie;t.donut&&(S=t.classNames.sliceDonut,t.donutSolid&&(S=t.classNames.sliceDonutSolid));var O=u[o].elem("path",{d:w.stringify()},S);if(O.attr({"ct:value":c.normalized.series[o],"ct:meta":n.serialize(i.meta)}),t.donut&&!t.donutSolid&&(O._node.style.strokeWidth=h.value+"px"),this.eventEmitter.emit("draw",{type:"slice",value:c.normalized.series[o],totalDataSum:l,index:o,meta:i.meta,series:i,group:u[o],element:O,path:w.clone(),center:p,radius:a,startAngle:d,endAngle:g}),t.showLabel){var M,C;M=1===c.raw.series.length?{x:p.x,y:p.y}:n.polarToCartesian(p.x,p.y,s,d+(g-d)/2),C=c.normalized.labels&&!n.isFalseyButZero(c.normalized.labels[o])?c.normalized.labels[o]:c.normalized.series[o];var I=t.labelInterpolationFnc(C,o);if(I||0===I){var T=e.elem("text",{dx:M.x,dy:M.y,"text-anchor":r(p,M,t.labelDirection)},t.classNames.label).text(""+I);this.eventEmitter.emit("draw",{type:"label",index:o,group:e,element:T,text:""+I,x:M.x,y:M.y})}}d=g}}.bind(this)),this.eventEmitter.emit("created",{chartRect:o,svg:this.svg,options:t})},determineAnchorPosition:r})}(window,document,t),t);var t}.apply(e,[]))||(t.exports=i)},function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(10))},function(t,e,n){ 9/*! lozad.js - v1.7.0 - 2018-11-08
10* https://github.com/ApoorvSaxena/lozad.js 11* Copyright (c) 2018 Apoorv Saxena; Licensed MIT */ 12t.exports=function(){"use strict";var t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},e="undefined"!=typeof document&&document.documentMode,n={rootMargin:"0px",threshold:0,load:function(t){if("picture"===t.nodeName.toLowerCase()){var n=document.createElement("img");e&&t.getAttribute("data-iesrc")&&(n.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(n.alt=t.getAttribute("data-alt")),t.appendChild(n)}t.getAttribute("data-src")&&(t.src=t.getAttribute("data-src")),t.getAttribute("data-srcset")&&t.setAttribute("srcset",t.getAttribute("data-srcset")),t.getAttribute("data-background-image")&&(t.style.backgroundImage="url('"+t.getAttribute("data-background-image")+"')"),t.getAttribute("data-toggle-class")&&t.classList.toggle(t.getAttribute("data-toggle-class"))},loaded:function(){}};function i(t){t.setAttribute("data-loaded",!0)}var r=function(t){return"true"===t.getAttribute("data-loaded")};return function(){var e,o,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},l=t({},n,s),c=l.root,u=l.rootMargin,d=l.threshold,h=l.load,p=l.loaded,f=void 0;return window.IntersectionObserver&&(f=new IntersectionObserver((e=h,o=p,function(t,n){t.forEach(function(t){(0<t.intersectionRatio||t.isIntersecting)&&(n.unobserve(t.target),r(t.target)||(e(t.target),i(t.target),o(t.target)))})}),{root:c,rootMargin:u,threshold:d})),{observe:function(){for(var t=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return t instanceof Element?[t]:t instanceof NodeList?t:e.querySelectorAll(t)}(a,c),e=0;e<t.length;e++)r(t[e])||(f?f.observe(t[e]):(h(t[e]),i(t[e]),p(t[e])))},triggerLoad:function(t){r(t)||(h(t),i(t),p(t))},observer:f}}}()},function(t,e,n){"use strict";var i=n(8),r=n(12),o="object"==typeof self&&self&&self.Object===Object&&self,a=r.a||o||Function("return this")(),s=function(){return a.Date.now()},l=a.Symbol,c=Object.prototype,u=c.hasOwnProperty,d=c.toString,h=l?l.toStringTag:void 0;var p=function(t){var e=u.call(t,h),n=t[h];try{t[h]=void 0;var i=!0}catch(t){}var r=d.call(t);return i&&(e?t[h]=n:delete t[h]),r},f=Object.prototype.toString;var g=function(t){return f.call(t)},m="[object Null]",v="[object Undefined]",y=l?l.toStringTag:void 0;var b=function(t){return null==t?void 0===t?v:m:y&&y in Object(t)?p(t):g(t)};var _=function(t){return null!=t&&"object"==typeof t},x="[object Symbol]";var w=function(t){return"symbol"==typeof t||_(t)&&b(t)==x},S=NaN,O=/^\s+|\s+$/g,M=/^[-+]0x[0-9a-f]+$/i,C=/^0b[01]+$/i,I=/^0o[0-7]+$/i,T=parseInt;var k=function(t){if("number"==typeof t)return t;if(w(t))return S;if(Object(i.a)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Object(i.a)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(O,"");var n=C.test(t);return n||I.test(t)?T(t.slice(2),n?2:8):M.test(t)?S:+t},A="Expected a function",D=Math.max,L=Math.min;e.a=function(t,e,n){var r,o,a,l,c,u,d=0,h=!1,p=!1,f=!0;if("function"!=typeof t)throw new TypeError(A);function g(e){var n=r,i=o;return r=o=void 0,d=e,l=t.apply(i,n)}function m(t){var n=t-u;return void 0===u||n>=e||n<0||p&&t-d>=a}function v(){var t=s();if(m(t))return y(t);c=setTimeout(v,function(t){var n=e-(t-u);return p?L(n,a-(t-d)):n}(t))}function y(t){return c=void 0,f&&r?g(t):(r=o=void 0,l)}function b(){var t=s(),n=m(t);if(r=arguments,o=this,u=t,n){if(void 0===c)return function(t){return d=t,c=setTimeout(v,e),h?g(t):l}(u);if(p)return c=setTimeout(v,e),g(u)}return void 0===c&&(c=setTimeout(v,e)),l}return e=k(e)||0,Object(i.a)(n)&&(h=!!n.leading,a=(p="maxWait"in n)?D(k(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==c&&clearTimeout(c),d=0,r=u=o=c=void 0},b.flush=function(){return void 0===c?l:y(s())},b}},,,function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";(function(t){ 13/*! 14 * The buffer module from node.js, for the browser. 15 * 16 * @author Feross Aboukhadijeh <[email protected]> <http://feross.org> 17 * @license MIT 18 */ 19var i=n(21),r=n(22),o=n(23);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return c(this,t,e,n)}function c(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=h(t,e);return t}(t,e,n,i):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|f(e,n),r=(t=s(t,i)).write(e,n);
vendor: 19,079 bytes, line 19
19r!==i&&(t=t.slice(0,r));return t}(t,e,n):function(t,e){if(l.isBuffer(e)){var n=0|p(e.length);return 0===(t=s(t,n)).length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?s(t,0):h(t,e);if("Buffer"===e.type&&o(e.data))return h(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e){if(u(e),t=s(t,e<0?0:0|p(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e){var n=e.length<0?0:0|p(e.length);t=s(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function p(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function f(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(t).length;default:if(i)return V(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function m(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:v(t,e,n,i,r);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,i,r){var o,a=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var u=-1;for(o=n;o<s;o++)if(c(t,o)===c(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(t,o+h)!==c(e,h)){d=!1;break}if(d)return o}return-1}function y(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function b(t,e,n,i){return H(V(e,t.length-n),t,n,i)}function _(t,e,n,i){return H(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function x(t,e,n,i){return _(t,e,n,i)}function w(t,e,n,i){return H(F(e),t,n,i)}function S(t,e,n,i){return H(function(t,e){for(var n,i,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(e,t.length-n),t,n,i)}function O(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function M(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o,a,s,l,c=t[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=t[r+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return function(t){var e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=C));return n}(i)}e.Buffer=l,e.SlowBuffer=function(t){+t!=t&&(t=0);return l.alloc(+t)},e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return c(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return function(t,e,n,i){return u(e),e<=0?s(t,e):void 0!==n?"string"==typeof i?s(t,e).fill(n,i):s(t,e).fill(n):s(t,e)}(null,t,e,n)},l.allocUnsafe=function(t){return d(null,t)},l.allocUnsafeSlow=function(t){return d(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,o=Math.min(n,i);r<o;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=l.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var a=t[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?M(this,0,t):function(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,n);case"utf8":case"utf-8":return M(this,e,n);case"ascii":return I(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return O(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,i,r){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(i>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(i,r),u=t.slice(e,n),d=0;d<s;++d)if(c[d]!==u[d]){o=c[d],a=u[d];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return m(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return m(this,t,e,n,!1)},l.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return w(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function I(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function T(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function k(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o<n;++o)r+=z(t[o]);return r}function A(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function D(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,i,r,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function P(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r<o;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function j(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r<o;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function E(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,i,o){return o||E(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function R(t,e,n,i,o){return o||E(t,0,n,8),r.write(t,e,n,i,52,8),n+8}l.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=l.prototype;else{var r=e-t;n=new l(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+t]}return n},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},l.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||L(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o<n&&(r*=256);)this[e+o]=t/r&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||L(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);L(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);L(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return R(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return R(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,o=i-n;if(this===t&&n<e&&e<i)for(r=o-1;r>=0;--r)t[r+e]=this[r+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},l.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=l.isBuffer(t)?t:V(new l(t,i).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function z(t){return t<16?"0"+t.toString(16):t.toString(16)}function V(t,e){var n;e=e||1/0;for(var i=t.length,r=null,o=[],a=0;a<i;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}}).call(this,n(10))},function(t,e,n){"use strict";e.byteLength=function(t){var e=c(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){for(var e,n=c(t),i=n[0],a=n[1],s=new o(function(t,e,n){return 3*(e+n)/4-n}(0,i,a)),l=0,u=a>0?i-4:i,d=0;d<u;d+=4)e=r[t.charCodeAt(d)]<<18|r[t.charCodeAt(d+1)]<<12|r[t.charCodeAt(d+2)]<<6|r[t.charCodeAt(d+3)],s[l++]=e>>16&255,s[l++]=e>>8&255,s[l++]=255&e;2===a&&(e=r[t.charCodeAt(d)]<<2|r[t.charCodeAt(d+1)]>>4,s[l++]=255&e);1===a&&(e=r[t.charCodeAt(d)]<<10|r[t.charCodeAt(d+1)]<<4|r[t.charCodeAt(d+2)]>>2,s[l++]=e>>8&255,s[l++]=255&e);return s},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,o=[],a=0,s=n-r;a<s;a+=16383)o.push(u(t,a,a+16383>
19s?s:a+16383));1===r?(e=t[n-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)i[s]=a[s],r[a.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,n){for(var r,o,a=[],s=e;s<n;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?r-1:0,h=n?-1:1,p=t[e+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+t[e+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+t[e+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),o-=c}return(p?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,l,c=8*o-r-1,u=(1<<c)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,f=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(e*l-1)*Math.pow(2,r),a+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;t[n+p]=255&s,p+=f,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;t[n+p]=255&a,p+=f,a/=256,c-=8);t[n+p-f]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!t)throw TypeError("Cannot convert undefined or null to object");for(var i=function(e){e&&Object.keys(e).forEach(function(n){return t[n]=e[n]})},r=0,o=e;r<o.length;r++){i(o[r])}return t})},function(t,e,n){},function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"Transition",function(){return Qa}),n.d(i,"TransitionGroup",function(){return $s}),n.d(i,"VueElement",function(){return Vs}),n.d(i,"createApp",function(){return Ml}),n.d(i,"createSSRApp",function(){return Cl}),n.d(i,"defineCustomElement",function(){return Rs}),n.d(i,"defineSSRCustomElement",function(){return Bs}),n.d(i,"hydrate",function(){return Ol}),n.d(i,"initDirectivesForSSR",function(){return Al}),n.d(i,"render",function(){return Sl}),n.d(i,"useCssModule",function(){return Gs}),n.d(i,"useCssVars",function(){return ys}),n.d(i,"useHost",function(){return Fs}),n.d(i,"useShadowRoot",function(){return Hs}),n.d(i,"vModelCheckbox",function(){return il}),n.d(i,"vModelDynamic",function(){return ul}),n.d(i,"vModelRadio",function(){return ol}),n.d(i,"vModelSelect",function(){return al}),n.d(i,"vModelText",function(){return nl}),n.d(i,"vShow",function(){return gs}),n.d(i,"withKeys",function(){return vl}),n.d(i,"withModifiers",function(){return gl}),n.d(i,"EffectScope",function(){return x}),n.d(i,"ReactiveEffect",function(){return C}),n.d(i,"TrackOpTypes",function(){return ue}),n.d(i,"TriggerOpTypes",function(){return de}),n.d(i,"customRef",function(){return ie}),n.d(i,"effect",function(){return z}),n.d(i,"effectScope",function(){return w}),n.d(i,"getCurrentScope",function(){return S}),n.d(i,"getCurrentWatcher",function(){return ge}),n.d(i,"isProxy",function(){return Ft}),n.d(i,"isReactive",function(){return Bt}),n.d(i,"isReadonly",function(){return zt}),n.d(i,"isRef",function(){return qt}),n.d(i,"isShallow",function(){return Vt}),n.d(i,"markRaw",function(){return Gt}),n.d(i,"onScopeDispose",function(){return O}),n.d(i,"onWatcherCleanup",function(){return me}),n.d(i,"proxyRefs",function(){return ee}),n.d(i,"reactive",function(){return Pt}),n.d(i,"readonly",function(){return Et}),n.d(i,"ref",function(){return Yt}),n.d(i,"shallowReactive",function(){return jt}),n.d(i,"shallowReadonly",function(){return Nt}),n.d(i,"shallowRef",function(){return $t}),n.d(i,"stop",function(){return V}),n.d(i,"toRaw",function(){return Ht}),n.d(i,"toRef",function(){return se}),n.d(i,"toRefs",function(){return re}),n.d(i,"toValue",function(){return Qt}),n.d(i,"triggerRef",function(){return Kt}),n.d(i,"unref",function(){return Jt}),n.d(i,"camelize",function(){return y.e}),n.d(i,"capitalize",function(){return y.f}),n.d(i,"normalizeClass",function(){return y.U}),n.d(i,"normalizeProps",function(){return y.V}),n.d(i,"normalizeStyle",function(){return y.W}),n.d(i,"toDisplayString",function(){return y.ab}),n.d(i,"toHandlerKey",function(){return y.bb}),n.d(i,"BaseTransition",function(){return Tn}),n.d(i,"BaseTransitionPropsValidators",function(){return Mn}),n.d(i,"Comment",function(){return Co}),n.d(i,"DeprecationTypes",function(){return Fa}),n.d(i,"ErrorCodes",function(){return Se}),n.d(i,"ErrorTypeStrings",function(){return Ea}),n.d(i,"Fragment",function(){return Oo}),n.d(i,"KeepAlive",function(){return si}
19),n.d(i,"Static",function(){return Io}),n.d(i,"Suspense",function(){return yo}),n.d(i,"Teleport",function(){return yn}),n.d(i,"Text",function(){return Mo}),n.d(i,"assertNumber",function(){return we}),n.d(i,"callWithAsyncErrorHandling",function(){return Ce}),n.d(i,"callWithErrorHandling",function(){return Me}),n.d(i,"cloneVNode",function(){return Yo}),n.d(i,"compatUtils",function(){return Va}),n.d(i,"computed",function(){return Ta}),n.d(i,"createBlock",function(){return Ro}),n.d(i,"createCommentVNode",function(){return Zo}),n.d(i,"createElementBlock",function(){return No}),n.d(i,"createElementVNode",function(){return Go}),n.d(i,"createHydrationRenderer",function(){return Gr}),n.d(i,"createPropsRestProxy",function(){return rr}),n.d(i,"createRenderer",function(){return Hr}),n.d(i,"createSlots",function(){return Ni}),n.d(i,"createStaticVNode",function(){return Xo}),n.d(i,"createTextVNode",function(){return $o}),n.d(i,"createVNode",function(){return Wo}),n.d(i,"defineAsyncComponent",function(){return ri}),n.d(i,"defineComponent",function(){return En}),n.d(i,"defineEmits",function(){return qi}),n.d(i,"defineExpose",function(){return Yi}),n.d(i,"defineModel",function(){return Zi}),n.d(i,"defineOptions",function(){return $i}),n.d(i,"defineProps",function(){return Ui}),n.d(i,"defineSlots",function(){return Xi}),n.d(i,"devtools",function(){return Na}),n.d(i,"getCurrentInstance",function(){return aa}),n.d(i,"getTransitionRawChildren",function(){return jn}),n.d(i,"guardReactiveProps",function(){return qo}),n.d(i,"h",function(){return ka}),n.d(i,"handleError",function(){return Ie}),n.d(i,"hasInjectionContext",function(){return Or}),n.d(i,"hydrateOnIdle",function(){return Qn}),n.d(i,"hydrateOnInteraction",function(){return ni}),n.d(i,"hydrateOnMediaQuery",function(){return ei}),n.d(i,"hydrateOnVisible",function(){return ti}),n.d(i,"initCustomFormatter",function(){return Aa}),n.d(i,"inject",function(){return Sr}),n.d(i,"isMemoSame",function(){return La}),n.d(i,"isRuntimeOnly",function(){return ya}),n.d(i,"isVNode",function(){return Bo}),n.d(i,"mergeDefaults",function(){return nr}),n.d(i,"mergeModels",function(){return ir}),n.d(i,"mergeProps",function(){return ta}),n.d(i,"nextTick",function(){return Ee}),n.d(i,"onActivated",function(){return ci}),n.d(i,"onBeforeMount",function(){return vi}),n.d(i,"onBeforeUnmount",function(){return xi}),n.d(i,"onBeforeUpdate",function(){return bi}),n.d(i,"onDeactivated",function(){return ui}),n.d(i,"onErrorCaptured",function(){return Ci}),n.d(i,"onMounted",function(){return yi}),n.d(i,"onRenderTracked",function(){return Mi}),n.d(i,"onRenderTriggered",function(){return Oi}),n.d(i,"onServerPrefetch",function(){return Si}),n.d(i,"onUnmounted",function(){return wi}),n.d(i,"onUpdated",function(){return _i}),n.d(i,"openBlock",function(){return Ao}),n.d(i,"popScopeId",function(){return rn}),n.d(i,"provide",function(){return wr}),n.d(i,"pushScopeId",function(){return nn}),n.d(i,"queuePostFlushCb",function(){return Be}),n.d(i,"registerRuntimeCompiler",function(){return va}),n.d(i,"renderList",function(){return Ei}),n.d(i,"renderSlot",function(){return Ri}),n.d(i,"resolveComponent",function(){return ki}),n.d(i,"resolveDirective",function(){return Li}),n.d(i,"resolveDynamicComponent",function(){return Di}),n.d(i,"resolveFilter",function(){return za}),n.d(i,"resolveTransitionHooks",function(){return An}),n.d(i,"setBlockTracking",function(){return jo}),n.d(i,"setDevtoolsHook",function(){return Ra}),n.d(i,"setTransitionHooks",function(){return Pn}),n.d(i,"ssrContextKey",function(){return Zr}),n.d(i,"ssrUtils",function(){return Ba}),n.d(i,"toHandlers",function(){return zi}),n.d(i,"transformVNodeArgs",function(){return Vo}),n.d(i,"useAttrs",function(){return Qi}),n.d(i,"useId",function(){return Nn}),n.d(i,"useModel",function(){return ro}),n.d(i,"useSSRContext",function(){return Kr}),n.d(i,"useSlots",function(){return Ji}),n.d(i,"useTemplateRef",function(){return Bn}),n.d(i,"useTransitionState",function(){return Sn}),n.d(i,"version",function(){return Pa}),n.d(i,"warn",function(){return ja}),n.d(i,"watch",function(){return eo}),n.d(i,"watchEffect",function(){return Jr}),n.d(i,"watchPostEffect",function(){return Qr}),n.d(i,"watchSyncEffect",function(){return to}),n.d(i,"withAsyncContext",function(){return or}),n.d(i,"withCtx",function(){return an}),n.d(i,"withDefaults",function(){return Ki}),n.d(i,"withDirectives",function(){return sn}),n.d(i,"withMemo",function(){return Da}),n.d(i,"withScopeId",function(){return on});var r={};n.r(r),n.d(r,"updateProps",function(){return x_}),n.d(r,"initProps",function(){return w_}),n.d(r,"removeElement",function(){return O_}
19),n.d(r,"removeElementWithFadeOut",function(){return C_}),n.d(r,"isElementRemoved",function(){return S_}),n.d(r,"extendShape",function(){return IC}),n.d(r,"extendPath",function(){return kC}),n.d(r,"registerShape",function(){return AC}),n.d(r,"getShapeClass",function(){return DC}),n.d(r,"makePath",function(){return LC}),n.d(r,"makeImage",function(){return PC}),n.d(r,"mergePath",function(){return EC}),n.d(r,"resizePath",function(){return NC}),n.d(r,"subPixelOptimizeLine",function(){return RC}),n.d(r,"subPixelOptimizeRect",function(){return BC}),n.d(r,"subPixelOptimize",function(){return zC}),n.d(r,"getTransform",function(){return VC}),n.d(r,"applyTransform",function(){return FC}),n.d(r,"transformDirection",function(){return HC}),n.d(r,"groupTransition",function(){return WC}),n.d(r,"clipPointsByRect",function(){return UC}),n.d(r,"clipRectByRect",function(){return qC}),n.d(r,"createIcon",function(){return YC}),n.d(r,"linePolygonIntersect",function(){return $C}),n.d(r,"lineLineIntersect",function(){return XC}),n.d(r,"setTooltipConfig",function(){return KC}),n.d(r,"traverseElements",function(){return QC}),n.d(r,"Group",function(){return Qg}),n.d(r,"Image",function(){return Uy}),n.d(r,"Text",function(){return gb}),n.d(r,"Circle",function(){return MM}),n.d(r,"Ellipse",function(){return TM}),n.d(r,"Sector",function(){return WM}),n.d(r,"Ring",function(){return YM}),n.d(r,"Polygon",function(){return KM}),n.d(r,"Polyline",function(){return tC}),n.d(r,"Rect",function(){return Qy}),n.d(r,"Line",function(){return rC}),n.d(r,"BezierCurve",function(){return cC}),n.d(r,"Arc",function(){return hC}),n.d(r,"IncrementalDisplayable",function(){return SC}),n.d(r,"CompoundPath",function(){return pC}),n.d(r,"LinearGradient",function(){return gC}),n.d(r,"RadialGradient",function(){return mC}),n.d(r,"BoundingRect",function(){return kp}),n.d(r,"OrientedBoundingRect",function(){return xC}),n.d(r,"Point",function(){return _p}),n.d(r,"Path",function(){return By});var o=n(2),a=(n(17),n(18),n(14));n(19);class s extends o.a{constructor(){super(),this.state={query:"",isLoading:!1,results:{friends:[],coins:[],exchanges:[],stocks:[],indexes:[],commodities:[]}},this.handleChange=this.handleChange.bind(this),this.fetch=Object(a.a)(this.fetch.bind(this),250)}componentDidMount(){document.addEventListener("keyup",this.handleEscKey.bind(this)),document.addEventListener("mousedown",this.handleClickOutside.bind(this)),this.searchField.addEventListener("focus",t=>{this.containerRef.classList.add("search-active"),document.body.classList.add("overflow-hidden"),this.showResults()}),this.searchField.addEventListener("blur",t=>{})}handleEscKey(t){27===t.keyCode&&this.hideResults()}handleClickOutside(t){this.containerRef&&!this.containerRef.contains(t.target)?this.hideResults():this.showResults()}showResults(){this.setState({displayResults:!0})}hideResults(){this.setState({displayResults:!1})}handleChange(t){this.setState({query:t.target.value}),this.fetch()}fetch(){let t=document.documentElement.lang;const e=new URL(`/${t}/search`,window.location.origin);e.searchParams.append("q",this.state.query),this.setState({isLoading:!0},()=>{fetch(e).then(t=>t.json()).then(t=>{this.setState({results:t,isLoading:!1}),this.showResults()}).catch(t=>console.log(t)).finally(()=>{this.setState({isLoading:!1})})})}handleClickClose(){this.containerRef.classList.remove("search-active"),document.body.classList.remove("overflow-hidden"),this.hideResults()}render(){return Object(o.c)("div",{class:"search",ref:t=>this.containerRef=t},Object(o.c)("div",{class:"search-wrapper"},Object(o.c)("div",{class:"search-field",ref:t=>this.searchRef=t},Object(o.c)("input",{ref:t=>this.searchField=t,onInput:this.handleChange,type:"text",placeholder:"Search"}),Object(o.c)("button",{class:`search-run${this.state.isLoading?"":" icon-search"}`,type:"button"},this.state.isLoading&&Object(o.c)("span",{className:"lds-dual-ring"})),Object(o.c)("span",{onClick:this.handleClickClose.bind(this),class:"search-close"},Object(o.c)("i",null))),this.renderResults()))}renderResults(){let t=["searchbox"];
19return this.state.displayResults&&t.push("searchbox--opened"),Object(o.c)("div",{className:"search-results"},Object(o.c)("div",{className:t.join(" "),style:"margin-top: 0;"},Object(o.c)("div",{className:"searchbox-body"},this.renderGroup(this.state.results.friends),this.renderGroup(this.state.results.coins,this.props.coinsTitle),this.renderGroup(this.state.results.exchanges,this.props.exchangesTitle),this.renderGroup(this.state.results.stocks,"Stocks"),this.renderGroup(this.state.results.indexes,this.props.indexesTitle),this.renderGroup(this.state.results.commodities,this.props.commoditiesTitle))))}renderGroup(t,e){if(!Array.isArray(t)||0===t.length)return null;let n=t.map(t=>Object(o.c)("li",null,t.isFriend&&Object(o.c)("a",{href:"#",onClick:e=>{e.preventDefault(),window.openUrl(t.url,t.gtag_event_label,t.gtag_event_category)}},Object(o.c)("img",{width:"16",heigh:"16",src:t.icon,alt:""}),Object(o.c)("span",null,t.label),t.isFriend&&Object(o.c)("span",{className:"is-friend"},"Sponsor")),!t.isFriend&&Object(o.c)("a",{href:t.url},t.icon&&Object(o.c)("img",{width:"16",heigh:"16",src:t.icon,alt:""}),t.country&&Object(o.c)("span",{class:"f16",style:{marginRight:5}},Object(o.c)("span",{class:`flag ${t.country}`})),Object(o.c)("span",null,t.label))));return Object(o.c)("div",{className:"searchbox-group"},e&&Object(o.c)("div",{className:"searchbox-group-heading"},e),Object(o.c)("div",{className:"searchbox-group-content"},Object(o.c)("ul",{className:"searchbox-items"},n)))}}var l=n(13),c=n.n(l),u=n(11),d=n.n(u),h=n(8),p="Expected a function";var f=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError(p);return Object(h.a)(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Object(a.a)(t,e,{leading:i,maxWait:e,trailing:r})};class g{constructor(t){this.items=[],this.url=t,this.cache={},this.fetch=f(this.fetch.bind(this),500);let e=["https:"===window.location.protocol?"wss://":"ws://","ws."+window.location.host].join("");this.ws=new WebSocket(e),this.ws.onmessage=(t=>{if("string"==typeof t.data){let e=t.data.match(/sparkline:(\w+)/);if(null!==e){let t=e[1];void 0!==this.cache[t]&&this.updateChart(t)}}}),this.ws.onopen=(()=>{this.ws.send("sparkline")})}updateChart(t){fetch(this.url,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({tickers:[t]})}).then(t=>t.json()).then(e=>{let n=e[t].split(",").map(t=>parseFloat(t));this.cache[t]=n;let i=document.querySelector(".sparkline[data-ticker="+t+"]");i&&(i.innerHTML="",this.renderChart(i,n))})}fetch(){let t=this.items;this.items=[],fetch(this.url,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({tickers:t.map(t=>t.dataset.ticker)})}).then(t=>t.json()).then(e=>{t.forEach(t=>{let n=t.dataset.ticker;if(void 0===e[n])return;let i=e[n].split(",").map(t=>parseFloat(t));this.cache[n]=i,this.renderChart(t,i)})})}pushElement(t){let e=t.dataset.ticker;t.dataset.sparkline;void 0!==this.cache[e]?this.renderChart(t,this.cache[e]):(this.items.push(t),this.fetch())}renderChart(t,e){if(1!==e.length){var n={series:[e]};new d.a.Line(t,n,{height:"47px",width:"140px",showPoint:!1,fullWidth:!0,chartPadding:{top:0,right:0,bottom:0,left:0},axisX:{showGrid:!1,showLabel:!1,offset:0},axisY:{showGrid:!1,showLabel:!1,offset:0}})}else t.innerHTML="â"}}var m=function(t,e){let n;const i=t.querySelector(".table-responsive");(n=i.cloneNode(!0))&&n.remove(),n.classList.add("table--sticky"),n.querySelector("tbody").remove(),i.parentNode.insertBefore(n,i),this.updateWidth=function(){n.style.marginBottom=`-${i.querySelector("thead").offsetHeight}px`,n.querySelector("table").style.width=i.querySelector("table").offsetWidth+"px";let t=n.querySelectorAll("th"),e=0;const r={};i.querySelectorAll("thead tr th").forEach((n,i)=>{t[i].setAttribute("style",""),t[i].style.width=n.offsetWidth+1+"px",t[i].setAttribute("data-table-attr",n.getAttribute("data-table-attr")),t[i].setAttribute("data-table-sort",n.getAttribute("data-table-sort")),0===e?t[i].classList.add("table--sticky-first"):t[i].classList.add("table--sticky-cell"),void 0!==n.dataset.f
19ixed&&(t[i].style.position="sticky",t[i].style.left=`${e}px`,t[i].style.zIndex=2,r[i]=e,e+=n.offsetWidth)}),i.querySelectorAll("tbody tr").forEach(t=>{t.querySelectorAll("td").forEach((t,e)=>{void 0!==r[e]&&(t.style.position="sticky",t.style.left=`${r[e]}px`,t.style.zIndex=1,0===r[e]?t.classList.add("table--sticky-first"):t.classList.add("table--sticky-cell"))})})};let r=void 0;const o=Object(a.a)(t=>{switch(r=void 0,t){case"sticky":n.scrollLeft=i.scrollLeft;break;case"default":default:i.scrollLeft=n.scrollLeft}},100),s=()=>{r||(r="handleScroll"),"handleScroll"===r&&(n.scrollLeft=i.scrollLeft),o()},l=()=>{r||(r="handleScroll2"),"handleScroll2"===r&&(i.scrollLeft=n.scrollLeft),o()};i.addEventListener("scroll",s),n.addEventListener("scroll",l);const c=()=>{this.updateWidth(t)};window.addEventListener("resize",c),this.destroy=function(){i.removeEventListener("scroll",s),n.removeEventListener("scroll",l),window.removeEventListener("resize",c),n&&n.remove()},this.updateWidth(t)};class v extends o.a{constructor(t){super(t),this.sparklineLoader=new g(this.props.sparkUrl);let e={attr:null,direction:null};this.defaultRef=Object(o.b)(),this.stickyRef=Object(o.b)(),this.adaptBind=this.adapt.bind(this);let n=void 0;const i=Object(a.a)(t=>{switch(n=void 0,t){case"sticky":this.defaultRef.current.scrollLeft=this.stickyRef.current.scrollLeft;break;case"default":default:this.stickyRef.current.scrollLeft=this.defaultRef.current.scrollLeft,i()}},100);this.handleScroll=(()=>{n||(n="handleScroll2"),"handleScroll2"===n&&(this.stickyRef.current.scrollLeft=this.defaultRef.current.scrollLeft),i("default")}),this.handleScrollSticky=(()=>{n||(n="handleScroll"),"handleScroll"===n&&(this.defaultRef.current.scrollLeft=this.stickyRef.current.scrollLeft),i("sticky")}),this.props.sortAttr?(e.attr=this.props.sortAttr,e.direction=this.props.sortDirection):e=this.props.columns.reduce((t,e)=>(null!==e.direction&&(t.attr=e.attr,t.direction=e.direction),t),e),this.props.saveScrollPosition&&(this.scrollPosition=document.documentElement.scrollTop),this.state={display:!1,friends:[],data:[],page:parseInt(this.props.page),pageCount:1,sortAttr:e.attr,sortDirection:e.direction,query:this.props.search},this.fetchDebounce=Object(a.a)(this.fetch.bind(this),250),this.goToNextPage=Object(a.a)(this.goToNextPage.bind(this),250,{leading:!0}),this.goToPrevPage=Object(a.a)(this.goToPrevPage.bind(this),250,{leading:!0}),this.goToPage=Object(a.a)(this.goToPage.bind(this),250,{leading:!0}),this.initObsorver()}initObsorver(){this.observer=new IntersectionObserver((t,e)=>{t.forEach(t=>{const{isIntersecting:n,target:i}=t;if(n){if("IMG"===i.tagName){var r=new Image;r.src=i.dataset.src,r.addEventListener("load",t=>{i.src=i.dataset.src}),r.addEventListener("error",function(t){i.src="/image-placeholder.svg"},!1),e.unobserve(i)}i.classList.contains("sparkline")&&(this.initSpark(i),e.unobserve(i))}})},{rootMargin:"0px",threshold:1})}initSpark(t){this.sparklineLoader.pushElement(t)}componentDidUpdate(){let t=this.props.containerElement;t.children.length>1&&(t.removeChild(t.firstElementChild),this.setState({display:!0}),this.props.search&&this.searchField.focus()),this.scrollPosition&&(document.documentElement.scrollTop=this.scrollPosition,this.scrollPosition=null),this.initObsorver(),document.querySelectorAll("[data-src]").forEach((t,e)=>{this.observer.observe(t)}),document.querySelectorAll(".sparkline").forEach(t=>{this.observer.observe(t)}),this.adapt()}adapt(){if(this.defaultRef.current&&this.stickyRef.current){const{current:t}=this.defaultRef,{current:e}=this.stickyRef;e.style.marginBottom=`-${t.querySelector("thead").offsetHeight}px`,e.querySelector("table").style.width=`${t.querySelector("table").offsetWidth}px`;let n=e.querySelectorAll("th"),i=0;const r={};t.querySelectorAll("thead tr th").forEach((t,e)=>{n[e].setAttribute("style",""),n[e].style.width=t.offsetWidth+"px",n[e].setAttribute("data-table-attr",t.getAttribute("data-table-attr")),n[e].setAttribute("data-table-sort",t.getAttribute("data-table-sort")),void 0!==t.dataset.fixed&&(0===i?n[e].classList.add("table--sticky-first"):n[e].classList.add("table--sticky-cell"),n[e].style.position="sticky",n[e].style.left=`${i}px`,n[e].style.zIndex=2,r[e]=i,i+=t.offsetWidth)}),t.querySelectorAll("tbody tr").forEach(t=>{t.querySelectorAll("td").forEach((t,e)=>{void 0!==r[e]&&(t.style.position="sticky",t.style.left=`${r[e]}px`,t.style.zIndex=1,0===r[e]?t.classList.add("table--sticky-first"):t.classList.add("table--sticky-cell"))})})}}render(){let t="visibility: hidden;";return!0===this.state.display&&(t="visibility: visible;"),Object(o.c)("div",{className:"grid",style:t},this.renderControls(!0),Object(o.c)("div",{className:"grid-cell-12"},Object(o.c)("div",{className:"table-responsive table--sticky",ref:this.stickyRef,onScroll:this.handleScrollSticky},Object(o.c)("table",{className:"table"},this.renderHead())),Object(o.c)("div",{className:"table-responsive",ref:this.defaultRef,onScroll:this.handleScroll},Object(o.c)("table",{className:"table"},this.renderHead(),this.renderBody()))),this.renderControls(!1))}componentWillMount(){window.addEventListener("resize",this.adaptBind),this.fetch(this.props.more)}componentWillUnmount(){window.removeEventListener("resize",this.adaptBind)}fetch(t=!1){let e=new URL(this.props.url,window.location.origin),n=e.searchParams;if(n.append("page",this.state.page),!0===t&&(this.setState({page:2}),n.append("per-page",200),this.scrollPosition=document.documentElement.scrollTop),this.state.sortAttr&&this.state.sortDirection){let t="desc"===this.state.sortDirection?"-":"";n.append("sort",t+this.state.sortAttr)}return this.state.query&&n.append("q",this.state.query),this.sparklineElements&&this.sparklineElements.forEac
19h(t=>{this.observer.unobserve(t)}),fetch(e.href,{method:"GET"}).then(t=>t.json()).then(t=>{let e=t.data;this.state.page>1&&!0===this.props.more&&(e=this.state.data.concat(e)),this.setState({friends:"friends"in t?t.friends:[],data:e,pageCount:t.pageCount})}).catch(t=>console.log(t))}doSort(t){let e="desc";t===this.state.sortAttr&&(e="asc"===this.state.sortDirection?"desc":"asc"),this.setState({sortAttr:t,sortDirection:e,page:null===this.props.viewAll?1:this.state.page}),this.fetch()}renderHead(){let t=this.props.columns.map(t=>{let e="";this.state.sortAttr===t.attr&&(e=this.state.sortDirection);let n=!0===t.sort?this.doSort.bind(this,t.attr):null;return Object(o.c)("th",{onClick:n,className:e,style:t.style,"data-table-attr":t.attr,"data-table-sort":n?"":"0","data-fixed":t.fixed?"":void 0},t.label)});return Object(o.c)("thead",null,Object(o.c)("tr",null,t))}renderBody(){let t=this.state.friends.map(t=>this.renderAd(t)),e=this.state.data.map(t=>this.renderRow(t));return Object(o.c)("tbody",null,t,e)}renderAd(t){return Object(o.c)("tr",{key:t.name},Object(o.c)("td",null),Object(o.c)("td",{colspan:"9"},Object(o.c)("div",{className:"table-coin"},t.logo&&Object(o.c)("div",{className:"table-coin_left"},Object(o.c)("img",{className:"lozad",width:"21",src:"/image-placeholder.svg","data-src":t.logo,alt:t.name,title:t.name})),Object(o.c)("div",{className:"table-coin_right"},Object(o.c)("div",{className:"table-coin-link--name friend friend-link",onClick:()=>{window.openUrl(t.url,t.gtag_event_label,t.gtag_event_category)}},t.name),Object(o.c)("div",{className:"table-coin-link--ticker friend friend-link",onClick:()=>{window.openUrl(t.url,t.gtag_event_label,t.gtag_event_category)}},t.name),Object(o.c)("span",{className:"table-coin-ticker friend friend-link"},"Sponsor")))))}renderRow(t){let e=this.props.columns.map(e=>{let n=t[e.attr];switch(e.attr){case"country_flag":return Object(o.c)("span",{class:"f32"},Object(o.c)("span",{class:`flag ${n}`}));case"actions":return t.actions.map((t,e)=>Object(o.c)("a",{className:"table-action",href:t.url},Object(o.c)("img",{src:t.img,alt:t.alt})));case"logo":return Object(o.c)("img",{"data-src":n,width:"21",src:"/image-placeholder.svg"});case"name":return Object(o.c)("a",{href:t.url},t.name);case"nameShort":return Object(o.c)("a",{"data-title":t.name,href:t.url},t.nameShort);case"volume_24hShort":return Object(o.c)("span",{"data-title":t.volume_24h},t.volume_24hShort);case"exchange":return Object(o.c)("a",{href:t.exchange_url},t.exchange);case"coin":return Object(o.c)("a",{href:t.coin_url},t.coin);case"coin_extended":return Object(o.c)("div",{className:"table-coin"},Object(o.c)("div",{className:"table-coin_left"},Object(o.c)("img",{className:"lozad",width:"21",src:"/image-placeholder.svg","data-src":t.logo,alt:t.name,title:t.name})),Object(o.c)("div",{className:"table-coin_right"},Object(o.c)("a",{className:"table-coin-link--name",href:t.url},t.name),Object(o.c)("a",{className:"table-coin-link--ticker",href:t.url},t.ticker),Object(o.c)("span",{className:"table-coin-ticker"},t.ticker)));case"change_24h_pct":return Object(o.c)("span",{"data-number-sign":t.change_24h_pct_raw,"data-after":"%","data-title":t.change_24h_pct_raw},n);case"price_fiat":return Object(o.c)("span",{"data-title":t.price_fiat_raw},n);case"price":return Object(o.c)("span",{className:"no-wrap","data-title":t.price_raw},n);case"high_24h":return Object(o.c)("span",{"data-title":t.high_24h_raw},n);case"low_24h":return Object(o.c)("span",{"data-title":t.low_24h_raw},n);case"sparkline":return Object(o.c)("div",{className:"sparkline","data-ticker":t.id});default:return n}}).map(t=>Object(o.c)("td",null,t));return Object(o.c)("tr",{key:t.id},e)}goToNextPage(t){this.setState({page:this.state.page+1}),this.fetch(),!1===this.props.more&&document.documentElement.scrollTop>700&&(this.scrollPosition=this.props.containerElement.offsetTop)}goToPrevPage(t){this.setState({page:this.state.page-1}),this.fetch(),document.documentElement.scrollTop>700&&(this.scrollPosition=this.props.containerElement.offsetTop)}goToPage(t){this.setState({page:t}),this.fetch(),document.documentElement.scrollTop>700&&(this.scrollPosition=this.props.containerElement.offsetTop)}handleNext(t){t.preventDefault(),this.goToNextPage()}handlePrev(t){t.preventDefault(),this.goToPrevPage()}handleSearchQueryField(t){this.setState({page:1,query:t.target.value}),this.fetchDebounce()}renderControls(t){return 0==this.props.controls?null:Object(o.c)("div",{className:"grid-cell-12"},Object(o.c)("div",{class:"filter"},t?Object(o.c)("div",{class:"filter-search"},Object(o.c)("div",{class:"search-field"},Object(o.c)("input",{ref:t=>this.searchField=t,onInput:this.handleSearchQueryField.bind(this),value:this.state.query,autocomplete:"off",type:"text",placeholder:this.props.searchPlaceholder}),Object(o.c)("button",{type:"submit",class:"icon-search"}))):null,t||null===this.props.viewAll?null:this.renderPagination(),Object(o.c)("div",{class:"filter-control
19s"},this.state.page>1&&null!==this.props.viewAll?Object(o.c)("a",{class:"button button--primary filter-controls--prev",onClick:this.handlePrev.bind(this),href:""},"100 Prev"):null,this.state.pageCount>this.state.page&&null!==this.props.viewAll?Object(o.c)("a",{class:"button button--primary filter-controls--next",onClick:this.handleNext.bind(this),href:""},"Next 100"):null,!t&&this.state.pageCount>this.state.page&&null===this.props.viewAll?Object(o.c)("a",{class:"button button--primary",onClick:this.handleNext.bind(this),href:"#"},"Load more"):null,null!==this.props.viewPagi&&Object(o.c)("a",{class:"button",href:this.props.viewPagi.url},this.props.viewPagi.label),null!==this.props.viewAll&&Object(o.c)("a",{class:"button",href:this.props.viewAll.url},this.props.viewAll.label))))}handleClickPage(t,e){e.preventDefault(),this.goToPage(t)}pages(){let t=this.state.page,e=this.state.pageCount,n=t-Math.floor(4.5),i=t+Math.ceil(4.5);return n<1&&(n=1),1===n&&(i=10),n>e-9+1&&(n=e-9+1),n<1&&(n=1),i<9&&(i=9),i>e&&(i=e+1),Array.from({length:i-n},(t,e)=>n+e)}renderPagination(){let t=this.pages();const e=this.state.pageCount;return Object(o.c)("div",{className:"filter-pagination"},Object(o.c)("ul",{class:"pagination"},-1===t.indexOf(1)&&[Object(o.c)("li",{onClick:this.handleClickPage.bind(this,1)},Object(o.c)("a",{href:"#page"},"1")),Object(o.c)("li",{class:"last disabled"},Object(o.c)("span",null,"..."))],t.map(t=>Object(o.c)("li",{onClick:this.handleClickPage.bind(this,t),className:t===this.state.page?"active":null},Object(o.c)("a",{href:"#page"},t))),-1===t.indexOf(e)&&[Object(o.c)("li",{class:"last disabled"},Object(o.c)("span",null,"...")),Object(o.c)("li",{onClick:this.handleClickPage.bind(this,e)},Object(o.c)("a",{href:"#page"},e))]))}}var y=n(1); 20/** 21* @vue/reactivity v3.5.16 22* (c) 2018-present Yuxi (Evan) You and Vue contributors 23* @license MIT
24**/let b,_;class x{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=b,!t&&b&&(this.index=(b.scopes||(b.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let t,e;if(this._isPaused=!0,this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].pause();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){let t,e;if(this._isPaused=!1,this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].resume();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].resume()}}run(t){if(this._active){const e=b;try{return b=this,t()}finally{b=e}}else 0}on(){1==++this._on&&(this.prevScope=b,b=this)}off(){this._on>0&&0==--this._on&&(b=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){let e,n;for(this._active=!1,e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(this.effects.length=0,e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.cleanups.length=0,this.scopes){for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0}}}function w(t){return new x(t)}function S(){return b}function O(t,e=!1){b&&b.cleanups.push(t)}const M=new WeakSet;class C{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,b&&b.active&&b.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,M.has(this)&&(M.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||A(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,U(this),P(this);const t=_,e=F;_=this,F=!0;try{return this.fn()}finally{0,j(this),_=t,F=e,this.flags&=-3}}stop(){if(1&this.flags){for(let t=this.deps;t;t=t.nextDep)R(t);this.deps=this.depsTail=void 0,U(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?M.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){E(this)&&this.run()}get dirty(){return E(this)}}let I,T,k=0;function A(t,e=!1){if(t.flags|=8,e)return t.next=T,void(T=t);t.next=I,I=t}function D(){k++}function L(){if(--k>0)return;if(T){let t=T;for(T=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let t;for(;I;){let e=I;for(I=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,1&e.flags)try{e.trigger()}catch(e){t||(t=e)}e=n}}if(t)throw t}function P(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function j(t){let e,n=t.depsTail,i=n;for(;i;){const t=i.prevDep;-1===i.version?(i===n&&(n=t),R(i),B(i)):e=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=t}t.deps=e,t.depsTail=n}function E(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(N(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function N(t){if(4&t.flags&&!(16&t.flags))return;if(t.flags&=-17,t.globalVersion===q)return;if(t.globalVersion=q,!t.isSSR&&128&t.flags&&(!t.deps&&!t._dirty||!E(t)))return;t.flags|=2;const e=t.dep,n=_,i=F;_=t,F=!0;try{P(t);const r=t.fn(t._value);(0===e.version||Object(y.m)(r,t._value))&&(t.flags|=128,t._value=r,e.version++)}catch(t){throw e.version++,t}finally{_=n,F=i,j(t),t.flags&=-3}}function R(t,e=!1){const{dep:n,prevSub:i,nextSub:r}=t;if(i&&(i.nextSub=r,t.prevSub=void 0),r&&(r.prevSub=i,t.nextSub=void 0),n.subs===t&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let t=n.computed.deps;t;t=t.nextDep)R(t,!0)}e||--n.sc||!n.map||n.map.delete(n.key)}function B(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}function z(t,e){t.effect instanceof C&&(t=t.effect.fn);const n=new C(t);e&&Object(y.h)(n,e);try{n.run()}catch(t){throw n.stop(),t}const i=n.run.bind(n);return i.effect=n,i}function V(t){t.effect.stop()}let F=!0;const H=[];function G(){H.push(F),F=!1}function W(){const t=H.pop();F=void 0===t||t}function U(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const t=_;_=void 0;try{e()}finally{_=t}}}let q=0;class Y{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ${constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!_||!F||_===this.computed)return;let e=this.activeLink;if(void 0===e||e.sub!==_)e=this.activeLink=new Y(_,this),_.deps?(e.prevDep=_.depsTail,_.depsTail.nextDep=e,_.depsTail=e):_.deps=_.depsTail=e,function t(e){e.dep.sc++;if(4&e.sub.flags){const n=e.dep.computed;if(n&&!e.dep.subs){n.flags|=20;for(let e=n.deps;e;e=e.nextDep)t(e)}const i=e.dep.subs;i!==e&&(e.prevSub=i,i&&(i.nextSub=e)),e.dep.subs=e}}(e);else if(-1===e.version&&(e.version=this.version,e.nextDep)){const t=e.nextDep;t.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=t),e.prevDep=_.depsTail,e.nextDep=void 0,_.depsTail.nextDep=e,_.depsTail=e,_.deps===e&&(_.deps=t)}return e}trigger(t){this.version++,q++,this.notify(t)}notify(t){D();try{0;for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{L()}}}const X=new WeakMap,Z=Symbol(""),K=Symbol(""),J=Symbol("");function Q(t,e,n){if(F&&_){let e=X.get(t);
24e||X.set(t,e=new Map);let i=e.get(n);i||(e.set(n,i=new $),i.map=e,i.key=n),i.track()}}function tt(t,e,n,i,r,o){const a=X.get(t);if(!a)return void q++;const s=t=>{t&&t.trigger()};if(D(),"clear"===e)a.forEach(s);else{const r=Object(y.r)(t),o=r&&Object(y.x)(n);if(r&&"length"===n){const t=Number(i);a.forEach((e,n)=>{("length"===n||n===J||!Object(y.O)(n)&&n>=t)&&s(e)})}else switch((void 0!==n||a.has(void 0))&&s(a.get(n)),o&&s(a.get(J)),e){case"add":r?o&&s(a.get("length")):(s(a.get(Z)),Object(y.A)(t)&&s(a.get(K)));break;case"delete":r||(s(a.get(Z)),Object(y.A)(t)&&s(a.get(K)));break;case"set":Object(y.A)(t)&&s(a.get(Z))}}L()}function et(t){const e=Ht(t);return e===t?e:(Q(e,0,J),Vt(t)?e:e.map(Wt))}function nt(t){return Q(t=Ht(t),0,J),t}const it={__proto__:null,[Symbol.iterator](){return rt(this,Symbol.iterator,Wt)},concat(...t){return et(this).concat(...t.map(t=>Object(y.r)(t)?et(t):t))},entries(){return rt(this,"entries",t=>(t[1]=Wt(t[1]),t))},every(t,e){return at(this,"every",t,e,void 0,arguments)},filter(t,e){return at(this,"filter",t,e,t=>t.map(Wt),arguments)},find(t,e){return at(this,"find",t,e,Wt,arguments)},findIndex(t,e){return at(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return at(this,"findLast",t,e,Wt,arguments)},findLastIndex(t,e){return at(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return at(this,"forEach",t,e,void 0,arguments)},includes(...t){return lt(this,"includes",t)},indexOf(...t){return lt(this,"indexOf",t)},join(t){return et(this).join(t)},lastIndexOf(...t){return lt(this,"lastIndexOf",t)},map(t,e){return at(this,"map",t,e,void 0,arguments)},pop(){return ct(this,"pop")},push(...t){return ct(this,"push",t)},reduce(t,...e){return st(this,"reduce",t,e)},reduceRight(t,...e){return st(this,"reduceRight",t,e)},shift(){return ct(this,"shift")},some(t,e){return at(this,"some",t,e,void 0,arguments)},splice(...t){return ct(this,"splice",t)},toReversed(){return et(this).toReversed()},toSorted(t){return et(this).toSorted(t)},toSpliced(...t){return et(this).toSpliced(...t)},unshift(...t){return ct(this,"unshift",t)},values(){return rt(this,"values",Wt)}};function rt(t,e,n){const i=nt(t),r=i[e]();return i===t||Vt(t)||(r._next=r.next,r.next=(()=>{const t=r._next();return t.value&&(t.value=n(t.value)),t})),r}const ot=Array.prototype;function at(t,e,n,i,r,o){const a=nt(t),s=a!==t&&!Vt(t),l=a[e];if(l!==ot[e]){const e=l.apply(t,o);return s?Wt(e):e}let c=n;a!==t&&(s?c=function(e,i){return n.call(this,Wt(e),i,t)}:n.length>2&&(c=function(e,i){return n.call(this,e,i,t)}));const u=l.call(a,c,i);return s&&r?r(u):u}function st(t,e,n,i){const r=nt(t);let o=n;return r!==t&&(Vt(t)?n.length>3&&(o=function(e,i,r){return n.call(this,e,i,r,t)}):o=function(e,i,r){return n.call(this,e,Wt(i),r,t)}),r[e](o,...i)}function lt(t,e,n){const i=Ht(t);Q(i,0,J);const r=i[e](...n);return-1!==r&&!1!==r||!Ft(n[0])?r:(n[0]=Ht(n[0]),i[e](...n))}function ct(t,e,n=[]){G(),D();const i=Ht(t)[e].apply(t,n);return L(),W(),i}const ut=Object(y.T)("__proto__,__v_isRef,__isVue"),dt=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>"arguments"!==t&&"caller"!==t).map(t=>Symbol[t]).filter(y.O));function ht(t){Object(y.O)(t)||(t=String(t));const e=Ht(this);return Q(e,0,t),e.hasOwnProperty(t)}class pt{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){if("__v_skip"===e)return t.__v_skip;const i=this._isReadonly,r=this._isShallow;if("__v_isReactive"===e)return!i;if("__v_isReadonly"===e)return i;if("__v_isShallow"===e)return r;if("__v_raw"===e)return n===(i?r?Lt:Dt:r?At:kt).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=Object(y.r)(t);if(!i){let t;if(o&&(t=it[e]))return t;if("hasOwnProperty"===e)return ht}const a=Reflect.get(t,e,qt(t)?t:n);return(Object(y.O)(e)?dt.has(e):ut(e))?a:(i||Q(t,0,e),r?a:qt(a)?o&&Object(y.x)(e)?a:a.value:Object(y.D)(a)?i?Et(a):Pt(a):a)}}class ft extends pt{constructor(t=!1){super(!1,t)}set(t,e,n,i){let r=t[e];if(!this._isShallow){const e=zt(r);if(Vt(n)||zt(n)||(r=Ht(r),n=Ht(n)),!Object(y.r)(t)&&qt(r)&&!qt(n))return!e&&(r.value=n,!0)}const o=Object(y.r)(t)&&Object(y.x)(e)?Number(e)<t.length:Object(y.n)(t,e),a=Reflect.set(t,e,n,qt(t)?t:i);return t===Ht(i)&&(o?Object(y.m)(n,r)&&tt(t,"set",e,n):tt(t,"add",e,n)),a}deleteProperty(t,e){const n=Object(y.n)(t,e),i=(t[e],Reflect.deleteProperty(t,e));return i&&n&&tt(t,"delete",e,void 0),i}has(t,e){const n=Reflect.has(t,e);return Object(y.O)(e)&&dt.has(e)||Q(t,0,e),n}
24ownKeys(t){return Q(t,0,Object(y.r)(t)?"length":Z),Reflect.ownKeys(t)}}class gt extends pt{constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}const mt=new ft,vt=new gt,yt=new ft(!0),bt=new gt(!0),_t=t=>t,xt=t=>Reflect.getPrototypeOf(t);function wt(t){return function(...e){return"delete"!==t&&("clear"===t?void 0:this)}}function St(t,e){const n={get(n){const i=this.__v_raw,r=Ht(i),o=Ht(n);t||(Object(y.m)(n,o)&&Q(r,0,n),Q(r,0,o));const{has:a}=xt(r),s=e?_t:t?Ut:Wt;return a.call(r,n)?s(i.get(n)):a.call(r,o)?s(i.get(o)):void(i!==r&&i.get(n))},get size(){const e=this.__v_raw;return!t&&Q(Ht(e),0,Z),Reflect.get(e,"size",e)},has(e){const n=this.__v_raw,i=Ht(n),r=Ht(e);return t||(Object(y.m)(e,r)&&Q(i,0,e),Q(i,0,r)),e===r?n.has(e):n.has(e)||n.has(r)},forEach(n,i){const r=this,o=r.__v_raw,a=Ht(o),s=e?_t:t?Ut:Wt;return!t&&Q(a,0,Z),o.forEach((t,e)=>n.call(i,s(t),s(e),r))}};return Object(y.h)(n,t?{add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear")}:{add(t){e||Vt(t)||zt(t)||(t=Ht(t));const n=Ht(this);return xt(n).has.call(n,t)||(n.add(t),tt(n,"add",t,t)),this},set(t,n){e||Vt(n)||zt(n)||(n=Ht(n));const i=Ht(this),{has:r,get:o}=xt(i);let a=r.call(i,t);a||(t=Ht(t),a=r.call(i,t));const s=o.call(i,t);return i.set(t,n),a?Object(y.m)(n,s)&&tt(i,"set",t,n):tt(i,"add",t,n),this},delete(t){const e=Ht(this),{has:n,get:i}=xt(e);let r=n.call(e,t);r||(t=Ht(t),r=n.call(e,t));i&&i.call(e,t);const o=e.delete(t);return r&&tt(e,"delete",t,void 0),o},clear(){const t=Ht(this),e=0!==t.size,n=t.clear();return e&&tt(t,"clear",void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=function(t,e,n){return function(...i){const r=this.__v_raw,o=Ht(r),a=Object(y.A)(o),s="entries"===t||t===Symbol.iterator&&a,l="keys"===t&&a,c=r[t](...i),u=n?_t:e?Ut:Wt;return!e&&Q(o,0,l?K:Z),{next(){const{value:t,done:e}=c.next();return e?{value:t,done:e}:{value:s?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}(i,t,e)}),n}function Ot(t,e){const n=St(t,e);return(e,i,r)=>"__v_isReactive"===i?!t:"__v_isReadonly"===i?t:"__v_raw"===i?e:Reflect.get(Object(y.n)(n,i)&&i in e?n:e,i,r)}const Mt={get:Ot(!1,!1)},Ct={get:Ot(!1,!0)},It={get:Ot(!0,!1)},Tt={get:Ot(!0,!0)};const kt=new WeakMap,At=new WeakMap,Dt=new WeakMap,Lt=new WeakMap;function Pt(t){return zt(t)?t:Rt(t,!1,mt,Mt,kt)}function jt(t){return Rt(t,!1,yt,Ct,At)}function Et(t){return Rt(t,!0,vt,It,Dt)}function Nt(t){return Rt(t,!0,bt,Tt,Lt)}function Rt(t,e,n,i,r){if(!Object(y.D)(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const o=(a=t).__v_skip||!Object.isExtensible(a)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Object(y.db)(a));var a;if(0===o)return t;const s=r.get(t);if(s)return s;const l=new Proxy(t,2===o?i:n);return r.set(t,l),l}function Bt(t){return zt(t)?Bt(t.__v_raw):!(!t||!t.__v_isReactive)}function zt(t){return!(!t||!t.__v_isReadonly)}function Vt(t){return!(!t||!t.__v_isShallow)}function Ft(t){return!!t&&!!t.__v_raw}function Ht(t){const e=t&&t.__v_raw;return e?Ht(e):t}function Gt(t){return!Object(y.n)(t,"__v_skip")&&Object.isExtensible(t)&&Object(y.g)(t,"__v_skip",!0),t}const Wt=t=>Object(y.D)(t)?Pt(t):t,Ut=t=>Object(y.D)(t)?Et(t):t;function qt(t){return!!t&&!0===t.__v_isRef}function Yt(t){return Xt(t,!1)}function $t(t){return Xt(t,!0)}function Xt(t,e){return qt(t)?t:new Zt(t,e)}class Zt{constructor(t,e){this.dep=new $,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Ht(t),this._value=e?t:Wt(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||Vt(t)||zt(t);t=n?t:Ht(t),Object(y.m)(t,e)&&(this._rawValue=t,this._value=n?t:Wt(t),this.dep.trigger())}}function Kt(t){t.dep&&t.dep.trigger()}function Jt(t){return qt(t)?t.value:t}function Qt(t){return Object(y.u)(t)?t():Jt(t)}const te={get:(t,e,n)=>"__v_raw"===e?t:Jt(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const r=t[e];return qt(r)&&!qt(n)?(r.value=n,!0):Reflect.set(t,e,n,i)}};function ee(t){return Bt(t)?t:new Proxy(t,te)}class ne{constructor(t){this.__v_isRef=!0,this._value=void 0;const e=this.dep=new $,{get:n,set:i}=t(e.track.bind(e),e.trigger.bind(e));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function ie(t){return new ne(t)}function re(t){const e=Object(y.r)(t)?new Array(t.length):{};for(const n in t)e[n]=le(t,n);return e}class oe{constructor(t,e,n){this._object=t,this._key=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return function(t,e){const n=X.get(t);return n&&n.get(e)}(Ht(this._object),this._key)}}class ae{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function se(t,e,n){return qt(t)?t:Object(y.u)(t)?new ae(t):Object(y.D)(t)&&arguments.length>1?le(t,e,n):Yt(t)}function le(t,e,n){const i=t[e];return qt(i)?i:new oe(t,e,n)}class ce{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new $(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=q-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||_===this))return A(this,!0),!0}get value(){const t=this.dep.track();return N(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}const ue={GET:"get",HAS:"has",ITERATE:"iterate"},de={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},he={},pe=new WeakMap;let fe=void 0;function ge(){return fe}function me(t,e=!1,n=fe){if(n){let e=pe.get(n);e||pe.set(n,e=[]),e.push(t)}else 0}function ve(t,e=1/0,n){if(e<=0||!Object(y.D)(t)||t.__v_skip)return t;if((n=n||new Set).has(t))return t;if(n.add(t),e--,qt(t))ve(t.value,e,n);else if(Object(y.r)(t))for(let i=0;i<t.length;i++)ve(t[i],e,n);else if(Object(y.L)(t)||Object(y.A)(t))t.forEach(t=>{ve(t,e,n)});else if(Object(y.F)(t)){for(const i in t)ve(t[i],e,n);for(const i of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,i)&&ve(t[i],e,n)}return t} 25/** 26* @vue/runtime-core v3.5.16 27* (c) 2018-present Yuxi (Evan) You and Vue contributors 28* @license MIT
29**/const ye=[];let be=!1;function _e(t,...e){if(be)return;be=!0,G();const n=ye.length?ye[ye.length-1].component:null,i=n&&n.appContext.config.warnHandler,r=function(){let t=ye[ye.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const i=t.component&&t.component.parent;t=i&&i.vnode}return e}();if(i)Me(i,n,11,[t+e.map(t=>{var e,n;return null!=(n=null==(e=t.toString)?void 0:e.call(t))?n:JSON.stringify(t)}).join(""),n&&n.proxy,r.map(({vnode:t})=>`at <${Ca(n,t.type)}>`).join("\n"),r]);else{const n=[`[Vue warn]: ${t}`,...e];r.length&&n.push("\n",...function(t){const e=[];return t.forEach((t,n)=>{e.push(...0===n?[]:["\n"],...function({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",i=!!t.component&&null==t.component.parent,r=` at <${Ca(t.component,t.type,i)}`,o=">"+n;return t.props?[r,...xe(t.props),o]:[r+o]}(t))}),e}(r)),console.warn(...n)}W(),be=!1}function xe(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(n=>{e.push(...function t(e,n,i){return Object(y.N)(n)?(n=JSON.stringify(n),i?n:[`${e}=${n}`]):"number"==typeof n||"boolean"==typeof n||null==n?i?n:[`${e}=${n}`]:qt(n)?(n=t(e,Ht(n.value),!0),i?n:[`${e}=Ref<`,n,">"]):Object(y.u)(n)?[`${e}=fn${n.name?`<${n.name}>`:""}`]:(n=Ht(n),i?n:[`${e}=`,n])}(n,t[n]))}),n.length>3&&e.push(" ..."),e}function we(t,e){}const Se={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},Oe={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Me(t,e,n,i){try{return i?t(...i):t()}catch(t){Ie(t,e,n)}}function Ce(t,e,n,i){if(Object(y.u)(t)){const r=Me(t,e,n,i);return r&&Object(y.G)(r)&&r.catch(t=>{Ie(t,e,n)}),r}if(Object(y.r)(t)){const r=[];for(let o=0;o<t.length;o++)r.push(Ce(t[o],e,n,i));return r}}function Ie(t,e,n,i=!0){e&&e.vnode;const{errorHandler:r,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||y.b;if(e){let i=e.parent;const o=e.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const e=i.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,o,a))return;i=i.parent}if(r)return G(),Me(r,null,10,[t,o,a]),void W()}!function(t,e,n,i=!0,r=!1){if(r)throw t;console.error(t)}(t,0,0,i,o)}const Te=[];let ke=-1;const Ae=[];let De=null,Le=0;const Pe=Promise.resolve();let je=null;function Ee(t){const e=je||Pe;return t?e.then(this?t.bind(this):t):e}function Ne(t){if(!(1&t.flags)){const e=Fe(t),n=Te[Te.length-1];!n||!(2&t.flags)&&e>=Fe(n)?Te.push(t):Te.splice(function(t){let e=ke+1,n=Te.length;for(;e<n;){const i=e+n>>>1,r=Te[i],o=Fe(r);o<t||o===t&&2&r.flags?e=i+1:n=i}return e}(e),0,t),t.flags|=1,Re()}}function Re(){je||(je=Pe.then(He))}function Be(t){Object(y.r)(t)?Ae.push(...t):De&&-1===t.id?De.splice(Le+1,0,t):1&t.flags||(Ae.push(t),t.flags|=1),Re()}function ze(t,e,n=ke+1){for(0;n<Te.length;n++){const e=Te[n];if(e&&2&e.flags){if(t&&e.id!==t.uid)continue;0,Te.splice(n,1),n--,4&e.flags&&(e.flags&=-2),e(),4&e.flags||(e.flags&=-2)}}}function Ve(t){if(Ae.length){const t=[...new Set(Ae)].sort((t,e)=>Fe(t)-Fe(e));if(Ae.length=0,De)return void De.push(...t);for(De=t,Le=0;Le<De.length;Le++){const t=De[Le];0,4&t.flags&&(t.flags&=-2),8&t.flags||t(),t.flags&=-2}De=null,Le=0}}const Fe=t=>null==t.id?2&t.flags?-1:1/0:t.id;function He(t){y.d;try{for(ke=0;ke<Te.length;ke++){const t=Te[ke];!t||8&t.flags||(4&t.flags&&(t.flags&=-2),Me(t,t.i,t.i?15:14),4&t.flags||(t.flags&=-2))}}finally{for(;ke<Te.length;ke++){const t=Te[ke];t&&(t.flags&=-2)}ke=-1,Te.length=0,Ve(),je=null,(Te.length||Ae.length)&&He(t)}}let Ge,We=[],Ue=!1;function qe(t,...e){Ge?Ge.emit(t,...e):Ue||We.push({event:t,args:e})}function Ye(t,e){var n,i;if(Ge=t)Ge.enabled=!0,We.forEach(({event:t,args:e})=>Ge.emit(t,...e)),We=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(i=null==(n=window.navigator)?void 0:n.userAgent)?void 0:i.includes("jsdom"))){(e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(t=>{Ye(t,e)}),setTimeout(()=>{Ge||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ue=!0,We=[])},3e3)}else Ue=!0,We=[]}const $e=Je("component:added"),Xe=Je("component:updated"),Ze=Je("component:removed"),Ke=t=>{Ge&&"function"==typeof Ge.cleanupBuffer&&!Ge.cleanupBuffer(t)&&Ze(t)}; 30/*! #__NO_SIDE_EFFECTS__ */ 31function Je(t){return e=>{qe(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}let Qe=null,tn=null;function en(t){const e=Qe;return Qe=t,tn=t&&t.type.__scopeId||null,e}function nn(t){tn=t}function rn(){tn=null}const on=t=>an;function an(t,e=Qe,n){if(!e)return t;if(t._n)return t;const i=(...n)=>{i._d&&jo(-1);const r=en(e);let o;try{o=t(...n)}finally{en(r),i._d&&jo(1)}return __VUE_PROD_DEVTOOLS__&&Xe(e),o};return i._n=!0,i._c=!0,i._d=!0,i}function sn(t,e){if(null===Qe)return t;const n=wa(Qe),i=t.dirs||(t.dirs=[]);for(let t=0;t<e.length;t++){let[r,o,a,s=y.b]=e[t];r&&(Object(y.u)(r)&&(r={mounted:r,updated:r}),r.deep&&ve(o),i.push({dir:r,instance:n,value:o,oldValue:void 0,arg:a,modifiers:s}))}return t}function ln(t,e,n,i){const r=t.dirs,o=e&&e.dirs;for(let a=0;a<r.length;a++){const s=r[a];o&&(s.oldValue=o[a].value);let l=s.dir[i];l&&(G(),Ce(l,n,8,[t.el,s,t,e]),W())}}const cn=Symbol("_vte"),un=t=>t.__isTeleport,dn=t=>t&&(t.disabled||""===t.disabled),hn=t=>t&&(t.defer||""===t.defer),pn=t=>"undefined"!=typeof SVGElement&&t instanceof SVGElement,fn=t=>"function"==typeof MathMLElement&&t instanceof MathMLElement,gn=(t,e)=>{const n=t&&t.to;if(Object(y.N)(n)){if(e){return e(n)}return null}return n},mn={name:"Teleport",__isTeleport:!0,process(t,e,n,i,r,o,a,s,l,c){const{mc:u,pc:d,pbc:h,o:{insert:p,querySelector:f,createText:g,createComment:m}}=c,v=dn(e.props);let{shapeFlag:y,children:b,dynamicChildren:_}=e;if(null==t){const t=e.el=g(""),c=e.anchor=g("");p(t,n,i),p(c,n,i);const d=(t,e)=>{16&y&&(r&&r.isCE&&(r.ce._teleportTarget=t),u(b,t,e,r,o,a,s,l))},h=()=>{const t=e.target=gn(e.props,f),n=_n(t,e,g,p);t&&("svg"!==a&&pn(t)?a="svg":"mathml"!==a&&fn(t)&&(a="mathml"),v||(d(t,n),bn(e,!1)))};v&&(d(n,c),bn(e,!0)),hn(e.props)?(e.el.__isMounted=!1,Fr(()=>{h(),delete e.el.__isMounted},o)):h()}else{if(hn(e.props)&&!1===t.el.__isMounted)return void Fr(()=>{mn.process(t,e,n,i,r,o,a,s,l,c)},o);e.el=t.el,e.targetStart=t.targetStart;const u=e.anchor=t.anchor,p=e.target=t.target,g=e.targetAnchor=t.targetAnchor,m=dn(t.props),y=m?n:p,b=m?u:g;if("svg"===a||pn(p)?a="svg":("mathml"===a||fn(p))&&(a="mathml"),_?(h(t.dynamicChildren,_,y,r,o,a,s),$r(t,e,!0)):l||d(t,e,y,b,r,o,a,s,!1),v)m?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):vn(e,n,u,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const t=e.target=gn(e.props,f);t&&vn(e,t,null,c,0)}else m&&vn(e,p,g,c,1);bn(e,v)}},remove(t,e,n,{um:i,o:{remove:r}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=t;if(d&&(r(c),r(u)),o&&r(l),16&a){const t=o||!dn(h);for(let r=0;r<s.length;r++){const o=s[r];i(o,e,n,t,!!o.dynamicChildren)}}},move:vn,hydrate:function(t,e,n,i,r,o,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:c,createText:u}},d){const h=e.target=gn(e.props,l);if(h){const l=dn(e.props),p=h._lpa||h.firstChild;if(16&e.shapeFlag)if(l)e.anchor=d(a(t),e,s(t),n,i,r,o),e.targetStart=p,e.targetAnchor=p&&a(p);else{e.anchor=a(t);let s=p;for(;s;){if(s&&8===s.nodeType)if("teleport start anchor"===s.data)e.targetStart=s;else if("teleport anchor"===s.data){e.targetAnchor=s,h._lpa=e.targetAnchor&&a(e.targetAnchor);break}s=a(s)}e.targetAnchor||_n(h,e,u,c),d(p&&a(p),e,h,n,i,r,o)}bn(e,l)}return e.anchor&&a(e.anchor)}};function vn(t,e,n,{o:{insert:i},m:r},o=2){0===o&&i(t.targetAnchor,e,n);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=t,d=2===o;if(d&&i(a,e,n),(!d||dn(u))&&16&l)for(let t=0;t<c.length;t++)r(c[t],e,n,2);d&&i(s,e,n)}const yn=mn;function bn(t,e){const n=t.ctx;if(n&&n.ut){let i,r;for(e?(i=t.el,r=t.anchor):(i=t.targetStart,r=t.targetAnchor);i&&i!==r;)1===i.nodeType&&i.setAttribute("data-v-owner",n.uid),i=i.nextSibling;n.ut()}}function _n(t,e,n,i){const r=e.targetStart=n(""),o=e.targetAnchor=n("");return r[cn]=o,t&&(i(r,t),i(o,t)),o}const xn=Symbol("_leaveCb"),wn=Symbol("_enterCb");function Sn(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leav
31ingVNodes:new Map};return yi(()=>{t.isMounted=!0}),xi(()=>{t.isUnmounting=!0}),t}const On=[Function,Array],Mn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:On,onEnter:On,onAfterEnter:On,onEnterCancelled:On,onBeforeLeave:On,onLeave:On,onAfterLeave:On,onLeaveCancelled:On,onBeforeAppear:On,onAppear:On,onAfterAppear:On,onAppearCancelled:On},Cn=t=>{const e=t.subTree;return e.component?Cn(e.component):e};function In(t){let e=t[0];if(t.length>1){let n=!1;for(const i of t)if(i.type!==Co){0,e=i,n=!0;break}}return e}const Tn={name:"BaseTransition",props:Mn,setup(t,{slots:e}){const n=aa(),i=Sn();return()=>{const r=e.default&&jn(e.default(),!0);if(!r||!r.length)return;const o=In(r),a=Ht(t),{mode:s}=a;if(i.isLeaving)return Dn(o);const l=Ln(o);if(!l)return Dn(o);let c=An(l,a,i,n,t=>c=t);l.type!==Co&&Pn(l,c);let u=n.subTree&&Ln(n.subTree);if(u&&u.type!==Co&&!zo(l,u)&&Cn(n).type!==Co){let t=An(u,a,i,n);if(Pn(u,t),"out-in"===s&&l.type!==Co)return i.isLeaving=!0,t.afterLeave=(()=>{i.isLeaving=!1,8&n.job.flags||n.update(),delete t.afterLeave,u=void 0}),Dn(o);"in-out"===s&&l.type!==Co?t.delayLeave=((t,e,n)=>{kn(i,u)[String(u.key)]=u,t[xn]=(()=>{e(),t[xn]=void 0,delete c.delayedLeave,u=void 0}),c.delayedLeave=(()=>{n(),delete c.delayedLeave,u=void 0})}):u=void 0}else u&&(u=void 0);return o}}};function kn(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function An(t,e,n,i,r){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:m,onAppear:v,onAfterAppear:b,onAppearCancelled:_}=e,x=String(t.key),w=kn(n,t),S=(t,e)=>{t&&Ce(t,i,9,e)},O=(t,e)=>{const n=e[1];S(t,e),Object(y.r)(t)?t.every(t=>t.length<=1)&&n():t.length<=1&&n()},M={mode:a,persisted:s,beforeEnter(e){let i=l;if(!n.isMounted){if(!o)return;i=m||l}e[xn]&&e[xn](!0);const r=w[x];r&&zo(t,r)&&r.el[xn]&&r.el[xn](),S(i,[e])},enter(t){let e=c,i=u,r=d;if(!n.isMounted){if(!o)return;e=v||c,i=b||u,r=_||d}let a=!1;const s=t[wn]=(e=>{a||(a=!0,S(e?r:i,[t]),M.delayedLeave&&M.delayedLeave(),t[wn]=void 0)});e?O(e,[t,s]):s()},leave(e,i){const r=String(t.key);if(e[wn]&&e[wn](!0),n.isUnmounting)return i();S(h,[e]);let o=!1;const a=e[xn]=(n=>{o||(o=!0,i(),S(n?g:f,[e]),e[xn]=void 0,w[r]===t&&delete w[r])});w[r]=t,p?O(p,[e,a]):a()},clone(t){const o=An(t,e,n,i,r);return r&&r(o),o}};return M}function Dn(t){if(ai(t))return(t=Yo(t)).children=null,t}function Ln(t){if(!ai(t))return un(t.type)&&t.children?In(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(16&e)return n[0];if(32&e&&Object(y.u)(n.default))return n.default()}}function Pn(t,e){6&t.shapeFlag&&t.component?(t.transition=e,Pn(t.component.subTree,e)):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function jn(t,e=!1,n){let i=[],r=0;for(let o=0;o<t.length;o++){let a=t[o];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:o);a.type===Oo?(128&a.patchFlag&&r++,i=i.concat(jn(a.children,e,s))):(e||a.type!==Co)&&i.push(null!=s?Yo(a,{key:s}):a)}if(r>1)for(let t=0;t<i.length;t++)i[t].patchFlag=-2;return i} 32/*! #__NO_SIDE_EFFECTS__ */function En(t,e){return Object(y.u)(t)?(()=>Object(y.h)({name:t.name},e,{setup:t}))():t}function Nn(){const t=aa();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function Rn(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function Bn(t){const e=aa(),n=$t(null);if(e){const i=e.refs===y.b?e.refs={}:e.refs;Object.defineProperty(i,t,{enumerable:!0,get:()=>n.value,set:t=>n.value=t})}else 0;return n}function zn(t,e,n,i,r=!1){if(Object(y.r)(t))return void t.forEach((t,o)=>zn(t,e&&(Object(y.r)(e)?e[o]:e),n,i,r));if(ii(i)&&!r)return void(512&i.shapeFlag&&i.type.__asyncResolved&&i.component.subTree.component&&zn(t,e,n,i.component.subTree));const o=4&i.shapeFlag?wa(i.component):i.el,a=r?null:o,{i:s,r:l}=t;const c=e&&e.r,u=s.refs===y.b?s.refs={}:s.refs,d=s.setupState,h=Ht(d),p=d===y.b?()=>!1:t=>Object(y.n)(h,t);if(null!=c&&c!==l&&(Object(y.N)(c)?(u[c]=null,p(c)&&(d[c]=null)):qt(c)&&(c.value=null)),Object(y.u)(l))Me(l,s,12,[a,u]);else{const e=Object(y.N)(l),i=qt(l);if(e||i){const s=()=>
32{if(t.f){const n=e?p(l)?d[l]:u[l]:l.value;r?Object(y.r)(n)&&Object(y.Y)(n,o):Object(y.r)(n)?n.includes(o)||n.push(o):e?(u[l]=[o],p(l)&&(d[l]=u[l])):(l.value=[o],t.k&&(u[t.k]=l.value))}else e?(u[l]=a,p(l)&&(d[l]=a)):i&&(l.value=a,t.k&&(u[t.k]=a))};a?(s.id=-1,Fr(s,n)):s()}else 0}}let Vn=!1;const Fn=()=>{Vn||(console.error("Hydration completed but contains mismatches."),Vn=!0)},Hn=t=>{if(1===t.nodeType)return(t=>t.namespaceURI.includes("svg")&&"foreignObject"!==t.tagName)(t)?"svg":(t=>t.namespaceURI.includes("MathML"))(t)?"mathml":void 0},Gn=t=>8===t.nodeType;function Wn(t){const{mt:e,p:n,o:{patchProp:i,createText:r,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:c}}=t,u=(n,i,s,c,b,_=!1)=>{_=_||!!i.dynamicChildren;const x=Gn(n)&&"["===n.data,w=()=>f(n,i,s,c,b,x),{type:S,ref:O,shapeFlag:M,patchFlag:C}=i;let I=n.nodeType;i.el=n,__VUE_PROD_DEVTOOLS__&&(Object(y.g)(n,"__vnode",i,!0),Object(y.g)(n,"__vueParentComponent",s,!0)),-2===C&&(_=!1,i.dynamicChildren=null);let T=null;switch(S){case Mo:3!==I?""===i.children?(l(i.el=r(""),a(n),n),T=n):T=w():(n.data!==i.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&_e("Hydration text mismatch in",n.parentNode,`\n - rendered on server: ${JSON.stringify(n.data)}\n - expected on client: ${JSON.stringify(i.children)}`),Fn(),n.data=i.children),T=o(n));break;case Co:v(n)?(T=o(n),m(i.el=n.content.firstChild,n,s)):T=8!==I||x?w():o(n);break;case Io:if(x&&(I=(n=o(n)).nodeType),1===I||3===I){T=n;const t=!i.children.length;for(let e=0;e<i.staticCount;e++)t&&(i.children+=1===T.nodeType?T.outerHTML:T.data),e===i.staticCount-1&&(i.anchor=T),T=o(T);return x?o(T):T}w();break;case Oo:T=x?p(n,i,s,c,b,_):w();break;default:if(1&M)T=1===I&&i.type.toLowerCase()===n.tagName.toLowerCase()||v(n)?d(n,i,s,c,b,_):w();else if(6&M){i.slotScopeIds=b;const t=a(n);if(T=x?g(n):Gn(n)&&"teleport start"===n.data?g(n,n.data,"teleport end"):o(n),e(i,t,null,s,c,Hn(t),_),ii(i)&&!i.type.__asyncResolved){let e;x?(e=Wo(Oo)).anchor=T?T.previousSibling:t.lastChild:e=3===n.nodeType?$o(""):Wo("div"),e.el=n,i.component.subTree=e}}else 64&M?T=8!==I?w():i.type.hydrate(n,i,s,c,b,_,t,h):128&M?T=i.type.hydrate(n,i,s,c,Hn(a(n)),b,_,t,u):__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&_e("Invalid HostVNode type:",S,`(${typeof S})`)}return null!=O&&zn(O,null,c,i),T},d=(t,e,n,r,o,a)=>{a=a||!!e.dynamicChildren;const{type:l,props:c,patchFlag:u,shapeFlag:d,dirs:p,transition:f}=e,g="input"===l||"option"===l;if(g||-1!==u){p&&ln(e,null,n,"created");let l,b=!1;if(v(t)){b=Yr(null,f)&&n&&n.vnode.props&&n.vnode.props.appear;const i=t.content.firstChild;if(b){const t=i.getAttribute("class");t&&(i.$cls=t),f.beforeEnter(i)}m(i,t,n),e.el=t=i}if(16&d&&(!c||!c.innerHTML&&!c.textContent)){let i=h(t.firstChild,e,t,n,r,o,a),l=!1;for(;i;){Zn(t,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!l&&(_e("Hydration children mismatch on",t,"\nServer rendered element contains more child nodes than client vdom."),l=!0),Fn());const e=i;i=i.nextSibling,s(e)}}else if(8&d){let n=e.children;"\n"!==n[0]||"PRE"!==t.tagName&&"TEXTAREA"!==t.tagName||(n=n.slice(1)),t.textContent!==n&&(Zn(t,0)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&_e("Hydration text content mismatch on",t,`\n - rendered on server: ${t.textContent}\n - expected on client: ${e.children}`),Fn()),t.textContent=e.children)}if(c)if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||g||!a||48&u){const r=t.tagName.includes("-");for(const o in c)!__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||p&&p.some(t=>t.dir.created)||!Un(t,o,c[o],e,n)||Fn(),(g&&(o.endsWith("value")||"indeterminate"===o)||Object(y.E)(o)&&!Object(y.J)(o)||"."===o[0]||r)&&i(t,o,null,c[o],void 0,n)}else if(c.onClick)i(t,"onClick",null,c.onClick,void 0,n);else if(4&u&&Bt(c.style))for(const t in c.style)c.style[t];(l=c&&c.onVnodeBeforeMount)&&ea(l,n,e),p&&ln(e,null,n,"beforeMount"),((l=c&&c.onVnodeMounted)||p||b)&&wo(()=>{l&&ea(l,n,e),b&&f.enter(t),p&&ln(e,null,n,"mounted")},r)}return t.nextSibling},h=(t,e,i,a,s,c,d)=>{d=d||!!e.dynamicChildren;const h=e.children,p=h.length;let f=!1;for(let e=0;e<p;e++){const g=d?h[e]:h[e]=Ko(h[e]),m=g.type===Mo;t?(m&&!d&&e+1<p&&Ko(h[e+1]).type===Mo&&(l(r(t.data.slice(g.children.length)),i,o(t)),t.data=g.children),t=u(t,g,a,s,c,d)):m&&!g.children?l(g.el=r(""),i):(Zn(i,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!f&&(_e("Hydration children mismatch on",i,"\nServer rendered element contains fewer child nodes than client vdom."),f=!0),Fn()),n(null,g,i,null,a,s,Hn(i),c))}return t},p=(t,e,n,i,r,s)=>{const{slotScopeIds:u}=e;u&&(r=r?r.concat(u):u);const d=a(t),p=h(o(t),e,d,n,i,r,s);return p&&Gn(p)&&"]"===p.data?o(e.anchor=p):(Fn(),l(e.anchor=c("]"),d,p),p)},f=(t,e,i,r,l,c)=>{if(Zn(t.parentElement,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&_e("Hydration node mismatch:\n- rendered on server:",t,3===t.nodeType?"(text)":Gn(t)&&"["===t.data?"(start of fragment)":"","\n- expected on client:",e.type),Fn()),e.el=null,c){const e=g(t);for(;;){const n=o(t);if(!n||n===e)break;s(n)}}const u=o(t),d=a(t);return s(t),n(null,e,d,u,i,r,Hn(d),l),i&&(i.vnode.el=e.el,go(i,e.el)),u},g=(t,e="[",n="]")=>{let i=0;for(;t;)if((t=o(t))&&Gn(t)&&(t.data===e&&i++,t.data===n)){if(0===i)return o(t);i--}return t},m=(t,e,n)=>{const i=e.parentNode;i&&i.replaceChild(t,e);let r=n;for(;r;)r.vnode.el===e&&(r.vnode.el=r.subTree.el=t),r=r.parent},v=t=>1===t.nodeType&&"TEMPLATE"===t.tagName;return[(t,e)=>{if(!e.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&_e("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,t,e),Ve(),void(e._vnode=t);u(e.firstChild,t,null,null,null),Ve(),e._vnode=t},u]}function Un(t,e,n,i,r){let o,a,s,l;if("class"===e)t.$cls?(s=t.$cls,delete t.$cls):s=t.getAttribute("class"),l=Object(y.U)(n),function(t,e){if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0}(qn(s||""),qn(l))||(o=2,a="class");else if("style"===e){s=t.getAttribute("style")||"",l=Object(y.N)(n)?n:Object(y.Z)(Object(y.W)(n));const e=Yn(s),c=Yn(l);if(i.dirs)for(const{dir:t,value:e}of i.dirs)"show"!==t.name||e||c.set("display","none");r&&function t(e,n,i){const r=e.subTree;if(e.getCssVars&&(n===r||r&&r.type===Oo&&r.children.includes(n))){const t=e.getCssVars();for(const e in t)i.set(`--${Object(y.k)(e,!1)}`,String(t[e]))}n===r&&e.parent&&t(e.parent,e.vnode,i)}(r,i,c),function(t,e){if(t.size!==e.size)return!1;for(const[n,i]of t)if(i!==e.get(n))return!1;return!0}(e,c)||(o=3,a="style")}else(t instanceof SVGElement&&Object(y.z)(e)||t instanceof HTMLElement&&(Object(y.s)(e)||Object(y.y)(e)))&&(Object(y.s)(e)?(s=t.hasAttribute(e),l=Object(y.p)(n)):null==n?(s=t.hasAttribute(e),l=!1):(s=t.hasAttribute(e)?t.getAttribute(e):"value"===e&&"TEXTAREA"===t.tagName&&t.value,l=!!Object(y.I)(n)&&String(n)),s!==l&&(o=4,a=e));if(null!=o&&!Zn(t,o)){const e=t=>!1===t?"(not rendered)":`${a}="${t}"`;return _e(`Hydration ${Xn[o]} mismatch on`,t,`\n - rendered on server: ${e(s)}\n - expected on client: ${e(l)}\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.`),!0}return!1}function qn(t){return new Set(t.trim().split(/\s+/))}function Yn(t){const e=new Map;for(const n of t.split(";")){let[t,i]=n.split(":");t=t.trim(),i=i&&i.trim(),t&&i&&e.set(t,i)}return e}const $n="data-allow-mismatch",Xn={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Zn(t,e){if(0===e||1===e)for(;t&&!t.hasAttribute($n);)t=t.parentElement;const n=t&&t.getAttribute($n);if(null==n)return!1;if(""===n)return!0;{const t=n.split(",");return!(0!==e||!t.includes("children"))||n.split(",").includes(Xn[e])}}const Kn=Object(y.l)().requestIdleCallback||(t=>setTimeout(t,1)),Jn=Object(y.l)().cancelIdleCallback||(t=>clearTimeout(t)),Qn=(t=1e4)=>e=>{const n=Kn(e,{timeout:t});return()=>Jn(n)};const ti=t=>(e,n)=>{const i=new IntersectionObserver(t=>{for(const n of t)if(n.isIntersecting){i.disconnect(),e();break}},t);return n(t=>{if(t instanceof Element)return function(t){const{top:e,left:n,bottom:i,right:r}=t.getBoundingClientRect(),{innerHeight:o,innerWidth:a}=window;return(e>0&&e<o||i>0&&i<o)&&(n>0&&n<a||r>0&&r<a)}(t)?(e(),i.disconnect(),!1):void i.observe(t)}),()=>i.disconnect()},ei=t=>e=>{if(t){const n=matchMedia(t);if(!n.matches)return n.addEventListener("change",e,{once:!0}),()=>n.removeEventListener("change",e);e()}},ni=(t=[])=>(e,n)=>{Object(y.N)(t)&&(t=[t]);let i=!1;const r=t=>{i||(i=!0,o(),e(),t.target.dispatchEvent(new t.constructor(t.type,t)))},o=()=>{n(e=>{for(const n of t)e.removeEventListener(n,r)})};return n(e=>{for(const n of t)e.addEventListener(n,r,{once:!0})}),o};const ii=t=>!!t.type.__asyncLoader; 33/*! #__NO_SIDE_EFFECTS__ */function ri(t){Object(y.u)(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:i,delay:r=200,hydrate:o,timeout:a,suspensible:s=!0,onError:l}=t;
33let c,u=null,d=0;const h=()=>{let t;return u||(t=u=e().catch(t=>{if(t=t instanceof Error?t:new Error(String(t)),l)return new Promise((e,n)=>{l(t,()=>e((()=>(d++,u=null,h()))()),()=>n(t),d+1)});throw t}).then(e=>t!==u&&u?u:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),c=e,e)))};return En({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(t,e,n){let i=!1;const r=o?()=>{const r=o(()=>{n()},e=>(function(t,e){if(Gn(t)&&"["===t.data){let n=1,i=t.nextSibling;for(;i;){if(1===i.nodeType){if(!1===e(i))break}else if(Gn(i))if("]"===i.data){if(0==--n)break}else"["===i.data&&n++;i=i.nextSibling}}else e(t)})(t,e));r&&(e.bum||(e.bum=[])).push(r),(e.u||(e.u=[])).push(()=>i=!0)}:n;c?r():h().then(()=>!e.isUnmounted&&r())},get __asyncResolved(){return c},setup(){const t=oa;if(Rn(t),c)return()=>oi(c,t);const e=e=>{u=null,Ie(e,t,13,!i)};if(s&&t.suspense||fa)return h().then(e=>()=>oi(e,t)).catch(t=>(e(t),()=>i?Wo(i,{error:t}):null));const o=Yt(!1),l=Yt(),d=Yt(!!r);return r&&setTimeout(()=>{d.value=!1},r),null!=a&&setTimeout(()=>{if(!o.value&&!l.value){const t=new Error(`Async component timed out after ${a}ms.`);e(t),l.value=t}},a),h().then(()=>{o.value=!0,t.parent&&ai(t.parent.vnode)&&t.parent.update()}).catch(t=>{e(t),l.value=t}),()=>o.value&&c?oi(c,t):l.value&&i?Wo(i,{error:l.value}):n&&!d.value?Wo(n):void 0}})}function oi(t,e){const{ref:n,props:i,children:r,ce:o}=e.vnode,a=Wo(t,i,r);return a.ref=n,a.ce=o,delete e.vnode.ce,a}const ai=t=>t.type.__isKeepAlive,si={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=aa(),i=n.ctx;if(!i.renderer)return()=>{const t=e.default&&e.default();return t&&1===t.length?t[0]:t};const r=new Map,o=new Set;let a=null;__VUE_PROD_DEVTOOLS__&&(n.__v_cache=r);const s=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=i,h=d("div");function p(t){pi(t),u(t,n,s,!0)}function f(t){r.forEach((e,n)=>{const i=Ma(e.type);i&&!t(i)&&g(n)})}function g(t){const e=r.get(t);!e||a&&zo(e,a)?a&&pi(a):p(e),r.delete(t),o.delete(t)}i.activate=((t,e,n,i,r)=>{const o=t.component;c(t,e,n,0,s),l(o.vnode,t,e,n,o,s,i,t.slotScopeIds,r),Fr(()=>{o.isDeactivated=!1,o.a&&Object(y.q)(o.a);const e=t.props&&t.props.onVnodeMounted;e&&ea(e,o.parent,t)},s),__VUE_PROD_DEVTOOLS__&&$e(o)}),i.deactivate=(t=>{const e=t.component;Xr(e.m),Xr(e.a),c(t,h,null,1,s),Fr(()=>{e.da&&Object(y.q)(e.da);const n=t.props&&t.props.onVnodeUnmounted;n&&ea(n,e.parent,t),e.isDeactivated=!0},s),__VUE_PROD_DEVTOOLS__&&$e(e)}),eo(()=>[t.include,t.exclude],([t,e])=>{t&&f(e=>li(t,e)),e&&f(t=>!li(e,t))},{flush:"post",deep:!0});let m=null;const v=()=>{null!=m&&(mo(n.subTree.type)?Fr(()=>{r.set(m,fi(n.subTree))},n.subTree.suspense):r.set(m,fi(n.subTree)))};return yi(v),_i(v),xi(()=>{r.forEach(t=>{const{subTree:e,suspense:i}=n,r=fi(e);if(t.type!==r.type||t.key!==r.key)p(t);else{pi(r);const t=r.component.da;t&&Fr(t,i)}})}),()=>{if(m=null,!e.default)return a=null;const n=e.default(),i=n[0];if(n.length>1)return a=null,n;if(!(Bo(i)&&(4&i.shapeFlag||128&i.shapeFlag)))return a=null,i;let s=fi(i);if(s.type===Co)return a=null,s;const l=s.type,c=Ma(ii(s)?s.type.__asyncResolved||{}:l),{include:u,exclude:d,max:h}=t;if(u&&(!c||!li(u,c))||d&&c&&li(d,c))return s.shapeFlag&=-257,a=s,i;const p=null==s.key?l:s.key,f=r.get(p);return s.el&&(s=Yo(s),128&i.shapeFlag&&(i.ssContent=s)),m=p,f?(s.el=f.el,s.component=f.component,s.transition&&Pn(s,s.transition),s.shapeFlag|=512,o.delete(p),o.add(p)):(o.add(p),h&&o.size>parseInt(h,10)&&g(o.values().next().value)),s.shapeFlag|=256,a=s,mo(i.type)?i:s}}};function li(t,e){return Object(y.r)(t)?t.some(t=>li(t,e)):Object(y.N)(t)?t.split(",").includes(e):!!Object(y.H)(t)&&(t.lastIndex=0,t.test(e))}function ci(t,e){di(t,"a",e)}function ui(t,e){di(t,"da",e)}function di(t,e,n=oa){const i=t.__wdc||(t.__wdc=(()=>{let e=n;for(;e;){if(e.isDeactivated)return;e=e.parent}return t()}));if(gi(e,i,n),n){let t=n.parent;for(;t&&t.parent;)ai(t.parent.vnode)&&hi(i,e,n,t),t=t.parent}}function hi(t,e,n,i){const r=gi(e,t,i,!0);wi(()=>{Object(y.Y)(i[e],r)},n)}function pi(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function fi(t){return 128&t.shapeFlag?t.ssContent:t}function gi(t,e,n=oa,i=!1){if(n){const r=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=((...i)=>{G();const r=ca(n),o=Ce(e,n,t,i);return r(),W(),o}));return i?r.unshift(o):r.push(o),o}}const mi=t=>(e,n=oa)=>{fa&&"sp"!==t||gi(t,(...t)=>e(...t),n)},vi=mi("bm"),yi=mi("m"),bi=mi("bu"),_i=mi("u"),xi=mi("bum"),wi=mi("um"),Si=mi("sp"),Oi=mi("rtg"),Mi=mi("rtc");function Ci(t,e=oa){gi("ec",t,e)}const Ii="components",Ti="directives";function ki(t,e){return Pi(Ii,t,!0,e)||t}const Ai=Symbol.for("v-ndc");function Di(t){return Object(y.N)(t)?Pi(Ii,t,!1)||t:t||Ai}function Li(t){return Pi(Ti,t)}function Pi(t,e,n=!0,i=!1){const r=Qe||oa;if(r){const n=r.type;if(t===Ii){const t=Ma(n,!1);if(t&&(t===e||t===Object(y.e)(e)||t===Object(y.f)(Object(y.e)(e))))return n}const o=ji(r[t]||n[t],e)||ji(r.appContext[t],e);return!o&&i?n:o}}function ji(t,e){return t&&(t[e]||t[Object(y.e)(e)]||t[Object(y.f)(Object(y.e)(e))])}function Ei(t,e,n,i){let r;const o=n&&n[i],a=Object(y.r)(t);if(a||Object(y.N)(t)){let n=!1,i=!1;a&&Bt(t)&&(n=!Vt(t),i=zt(t),t=nt(t)),r=new Array(t.length);for(let a=0,s=t.length;a<s;
33a++)r[a]=e(n?i?Ut(Wt(t[a])):Wt(t[a]):t[a],a,void 0,o&&o[a])}else if("number"==typeof t){0,r=new Array(t);for(let n=0;n<t;n++)r[n]=e(n+1,n,void 0,o&&o[n])}else if(Object(y.D)(t))if(t[Symbol.iterator])r=Array.from(t,(t,n)=>e(t,n,void 0,o&&o[n]));else{const n=Object.keys(t);r=new Array(n.length);for(let i=0,a=n.length;i<a;i++){const a=n[i];r[i]=e(t[a],a,i,o&&o[i])}}else r=[];return n&&(n[i]=r),r}function Ni(t,e){for(let n=0;n<e.length;n++){const i=e[n];if(Object(y.r)(i))for(let e=0;e<i.length;e++)t[i[e].name]=i[e].fn;else i&&(t[i.name]=i.key?(...t)=>{const e=i.fn(...t);return e&&(e.key=i.key),e}:i.fn)}return t}function Ri(t,e,n={},i,r){if(Qe.ce||Qe.parent&&ii(Qe.parent)&&Qe.parent.ce)return"default"!==e&&(n.name=e),Ao(),Ro(Oo,null,[Wo("slot",n,i&&i())],64);let o=t[e];o&&o._c&&(o._d=!1),Ao();const a=o&&Bi(o(n)),s=n.key||a&&a.key,l=Ro(Oo,{key:(s&&!Object(y.O)(s)?s:`_${e}`)+(!a&&i?"_fb":"")},a||(i?i():[]),a&&1===t._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Bi(t){return t.some(t=>!Bo(t)||t.type!==Co&&!(t.type===Oo&&!Bi(t.children)))?t:null}function zi(t,e){const n={};for(const i in t)n[e&&/[A-Z]/.test(i)?`on:${i}`:Object(y.bb)(i)]=t[i];return n}const Vi=t=>t?da(t)?wa(t):Vi(t.parent):null,Fi=Object(y.h)(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Vi(t.parent),$root:t=>Vi(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>__VUE_OPTIONS_API__?ur(t):t.type,$forceUpdate:t=>t.f||(t.f=(()=>{Ne(t.update)})),$nextTick:t=>t.n||(t.n=Ee.bind(t.proxy)),$watch:t=>__VUE_OPTIONS_API__?function(t,e,n){const i=this.proxy,r=Object(y.N)(t)?t.includes(".")?io(i,t):()=>i[t]:t.bind(i,i);let o;Object(y.u)(e)?o=e:(o=e.handler,n=e);const a=ca(this),s=no(r,o.bind(i),n);return a(),s}.bind(t):y.d}),Hi=(t,e)=>t!==y.b&&!t.__isScriptSetup&&Object(y.n)(t,e),Gi={get({_:t},e){if("__v_skip"===e)return!0;const{ctx:n,setupState:i,data:r,props:o,accessCache:a,type:s,appContext:l}=t;let c;if("$"!==e[0]){const s=a[e];if(void 0!==s)switch(s){case 1:return i[e];case 2:return r[e];case 4:return n[e];case 3:return o[e]}else{if(Hi(i,e))return a[e]=1,i[e];if(r!==y.b&&Object(y.n)(r,e))return a[e]=2,r[e];if((c=t.propsOptions[0])&&Object(y.n)(c,e))return a[e]=3,o[e];if(n!==y.b&&Object(y.n)(n,e))return a[e]=4,n[e];__VUE_OPTIONS_API__&&!ar||(a[e]=0)}}const u=Fi[e];let d,h;return u?("$attrs"===e&&Q(t.attrs,0,""),u(t)):(d=s.__cssModules)&&(d=d[e])?d:n!==y.b&&Object(y.n)(n,e)?(a[e]=4,n[e]):(h=l.config.globalProperties,Object(y.n)(h,e)?h[e]:void 0)},set({_:t},e,n){const{data:i,setupState:r,ctx:o}=t;return Hi(r,e)?(r[e]=n,!0):i!==y.b&&Object(y.n)(i,e)?(i[e]=n,!0):!Object(y.n)(t.props,e)&&(!("$"===e[0]&&e.slice(1)in t)&&(o[e]=n,!0))},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:r,propsOptions:o}},a){let s;return!!n[a]||t!==y.b&&Object(y.n)(t,a)||Hi(e,a)||(s=o[0])&&Object(y.n)(s,a)||Object(y.n)(i,a)||Object(y.n)(Fi,a)||Object(y.n)(r.config.globalProperties,a)},defineProperty(t,e,n){return null!=n.get?t._.accessCache[e]=0:Object(y.n)(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};const Wi=Object(y.h)({},Gi,{get(t,e){if(e!==Symbol.unscopables)return Gi.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!Object(y.v)(e)});function Ui(){return null}function qi(){return null}function Yi(t){0}function $i(t){0}function Xi(){return null}function Zi(){0}function Ki(t,e){return null}function Ji(){return tr().slots}function Qi(){return tr().attrs}function tr(){const t=aa();return t.setupContext||(t.setupContext=xa(t))}function er(t){return Object(y.r)(t)?t.reduce((t,e)=>(t[e]=null,t),{}):t}function nr(t,e){const n=er(t);for(const t in e){if(t.startsWith("__skip"))continue;let i=n[t];i?Object(y.r)(i)||Object(y.u)(i)?i=n[t]={type:i,default:e[t]}:i.default=e[t]:null===i&&(i=n[t]={default:e[t]}),i&&e[`__skip_${t}`]&&(i.skipFactory=!0)}return n}function ir(t,e){return t&&e?Object(y.r)(t)&&Object(y.r)(e)?t.concat(e):Object(y.h)({},er(t),er(e)):t||e}function rr(t,e){const n={};for(const i in t)e.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>t[i]});return n}
33function or(t){const e=aa();let n=t();return ua(),Object(y.G)(n)&&(n=n.catch(t=>{throw ca(e),t})),[n,()=>ca(e)]}let ar=!0;function sr(t){const e=ur(t),n=t.proxy,i=t.ctx;ar=!1,e.beforeCreate&&lr(e.beforeCreate,t,"bc");const{data:r,computed:o,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:p,updated:f,activated:g,deactivated:m,beforeDestroy:v,beforeUnmount:b,destroyed:_,unmounted:x,render:w,renderTracked:S,renderTriggered:O,errorCaptured:M,serverPrefetch:C,expose:I,inheritAttrs:T,components:k,directives:A,filters:D}=e;if(c&&function(t,e,n=y.d){Object(y.r)(t)&&(t=fr(t));for(const n in t){const i=t[n];let r;qt(r=Object(y.D)(i)?"default"in i?Sr(i.from||n,i.default,!0):Sr(i.from||n):Sr(i))?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:t=>r.value=t}):e[n]=r}}(c,i,null),a)for(const t in a){const e=a[t];Object(y.u)(e)&&(i[t]=e.bind(n))}if(r){0;const e=r.call(n,n);0,Object(y.D)(e)&&(t.data=Pt(e))}if(ar=!0,o)for(const t in o){const e=o[t],r=Object(y.u)(e)?e.bind(n,n):Object(y.u)(e.get)?e.get.bind(n,n):y.d;0;const a=!Object(y.u)(e)&&Object(y.u)(e.set)?e.set.bind(n):y.d,s=Ta({get:r,set:a});Object.defineProperty(i,t,{enumerable:!0,configurable:!0,get:()=>s.value,set:t=>s.value=t})}if(s)for(const t in s)cr(s[t],i,n,t);if(l){const t=Object(y.u)(l)?l.call(n):l;Reflect.ownKeys(t).forEach(e=>{wr(e,t[e])})}function L(t,e){Object(y.r)(e)?e.forEach(e=>t(e.bind(n))):e&&t(e.bind(n))}if(u&&lr(u,t,"c"),L(vi,d),L(yi,h),L(bi,p),L(_i,f),L(ci,g),L(ui,m),L(Ci,M),L(Mi,S),L(Oi,O),L(xi,b),L(wi,x),L(Si,C),Object(y.r)(I))if(I.length){const e=t.exposed||(t.exposed={});I.forEach(t=>{Object.defineProperty(e,t,{get:()=>n[t],set:e=>n[t]=e})})}else t.exposed||(t.exposed={});w&&t.render===y.d&&(t.render=w),null!=T&&(t.inheritAttrs=T),k&&(t.components=k),A&&(t.directives=A),C&&Rn(t)}function lr(t,e,n){Ce(Object(y.r)(t)?t.map(t=>t.bind(e.proxy)):t.bind(e.proxy),e,n)}function cr(t,e,n,i){let r=i.includes(".")?io(n,i):()=>n[i];if(Object(y.N)(t)){const n=e[t];Object(y.u)(n)&&eo(r,n)}else if(Object(y.u)(t))eo(r,t.bind(n));else if(Object(y.D)(t))if(Object(y.r)(t))t.forEach(t=>cr(t,e,n,i));else{const i=Object(y.u)(t.handler)?t.handler.bind(n):e[t.handler];Object(y.u)(i)&&eo(r,i,t)}else 0}function ur(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=t.appContext,s=o.get(e);let l;return s?l=s:r.length||n||i?(l={},r.length&&r.forEach(t=>dr(l,t,a,!0)),dr(l,e,a)):l=e,Object(y.D)(e)&&o.set(e,l),l}function dr(t,e,n,i=!1){const{mixins:r,extends:o}=e;o&&dr(t,o,n,!0),r&&r.forEach(e=>dr(t,e,n,!0));
33for(const r in e)if(i&&"expose"===r);else{const i=hr[r]||n&&n[r];t[r]=i?i(t[r],e[r]):e[r]}return t}const hr={data:pr,props:vr,emits:vr,methods:mr,computed:mr,beforeCreate:gr,created:gr,beforeMount:gr,mounted:gr,beforeUpdate:gr,updated:gr,beforeDestroy:gr,beforeUnmount:gr,destroyed:gr,unmounted:gr,activated:gr,deactivated:gr,errorCaptured:gr,serverPrefetch:gr,components:mr,directives:mr,watch:function(t,e){if(!t)return e;if(!e)return t;const n=Object(y.h)(Object.create(null),t);for(const i in e)n[i]=gr(t[i],e[i]);return n},provide:pr,inject:function(t,e){return mr(fr(t),fr(e))}};function pr(t,e){return e?t?function(){return Object(y.h)(Object(y.u)(t)?t.call(this,this):t,Object(y.u)(e)?e.call(this,this):e)}:e:t}function fr(t){if(Object(y.r)(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function gr(t,e){return t?[...new Set([].concat(t,e))]:e}function mr(t,e){return t?Object(y.h)(Object.create(null),t,e):e}function vr(t,e){return t?Object(y.r)(t)&&Object(y.r)(e)?[...new Set([...t,...e])]:Object(y.h)(Object.create(null),er(t),er(null!=e?e:{})):e}function yr(){return{app:null,config:{isNativeTag:y.c,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let br=0;function _r(t,e){return function(n,i=null){Object(y.u)(n)||(n=Object(y.h)({},n)),null==i||Object(y.D)(i)||(i=null);const r=yr(),o=new WeakSet,a=[];let s=!1;const l=r.app={_uid:br++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Pa,get config(){return r.config},set config(t){0},use:(t,...e)=>(o.has(t)||(t&&Object(y.u)(t.install)?(o.add(t),t.install(l,...e)):Object(y.u)(t)&&(o.add(t),t(l,...e))),l),mixin:t=>(__VUE_OPTIONS_API__&&(r.mixins.includes(t)||r.mixins.push(t)),l),component:(t,e)=>e?(r.components[t]=e,l):r.components[t],directive:(t,e)=>e?(r.directives[t]=e,l):r.directives[t],mount(o,a,c){if(!s){0;const u=l._ceVNode||Wo(n,i);return u.appContext=r,!0===c?c="svg":!1===c&&(c=void 0),a&&e?e(u,o):t(u,o,c),s=!0,l._container=o,o.__vue_app__=l,__VUE_PROD_DEVTOOLS__&&(l._instance=u.component,function(t,e){qe("app:init",t,e,{Fragment:Oo,Text:Mo,Comment:Co,Static:Io})}(l,Pa)),wa(u.component)}},onUnmount(t){a.push(t)},unmount(){s&&(Ce(a,l._instance,16),t(null,l._container),__VUE_PROD_DEVTOOLS__&&(l._instance=null,function(t){qe("app:unmount",t)}(l)),delete l._container.__vue_app__)},provide:(t,e)=>(r.provides[t]=e,l),runWithContext(t){const e=xr;xr=l;try{return t()}finally{xr=e}}};return l}}let xr=null;function wr(t,e){if(oa){let n=oa.provides;const i=oa.parent&&oa.parent.provides;i===n&&(n=oa.provides=Object.create(i)),n[t]=e}else 0}function Sr(t,e,n=!1){const i=oa||Qe;if(i||xr){let r=xr?xr._context.provides:i?null==i.parent||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&t in r)return r[t];if(arguments.length>1)return n&&Object(y.u)(e)?e.call(i&&i.proxy):e}else 0}function Or(){return!!(oa||Qe||xr)}const Mr={},Cr=()=>Object.create(Mr),Ir=t=>Object.getPrototypeOf(t)===Mr;function Tr(t,e,n,i){const[r,o]=t.propsOptions;let a,s=!1;if(e)for(let l in e){if(Object(y.J)(l))continue;const c=e[l];let u;r&&Object(y.n)(r,u=Object(y.e)(l))?o&&o.includes(u)?(a||(a={}))[u]=c:n[u]=c:lo(t.emitsOptions,l)||l in i&&c===i[l]||(i[l]=c,s=!0)}if(o){const e=Ht(n),i=a||y.b;for(let a=0;a<o.length;a++){const s=o[a];n[s]=kr(r,e,s,i[s],t,!Object(y.n)(i,s))}}return s}function kr(t,e,n,i,r,o){const a=t[n];if(null!=a){const t=Object(y.n)(a,"default");if(t&&void 0===i){const t=a.default;if(a.type!==Function&&!a.skipFactory&&Object(y.u)(t)){const{propsDefaults:o}=r;if(n in o)i=o[n];else{const a=ca(r);i=o[n]=t.call(null,e),a()}}else i=t;r.ce&&r.ce._setProp(n,i)}a[0]&&(o&&!t?i=!1:!a[1]||""!==i&&i!==Object(y.o)(n)||(i=!0))}return i}const Ar=new WeakMap;function Dr(t,e,n=!1){const i=__VUE_OPTIONS_API__&&n?Ar:e.propsCache,r=i.get(t);if(r)return r;const o=t.props,a={},s=[];let l=!1;if(__VUE_OPTIONS_API__&&!Object(y.u)(t)){const i=t=>{l=!0;const[n,i]=Dr(t,e,!0);Object(y.h)(a,n),i&&s.push(...i)};!n&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!o&&!l)return Object(y.D)(t)&&i.set(t,y.a),y.a;if(Object(y.r)(o))for(let t=0;t<o.length;t++){0;const e=Object(y.e)(o[t]);Lr(e)&&(a[e]=y.b)}else if(o){0;for(const t in o){const e=Object(y.e)(t);if(Lr(e)){const n=o[t],i=a[e]=Object(y.r)(n)||Object(y.u)(n)?{type:n}:Object(y.h)({},n),r=i.type;let l=!1,c=!0;if(Object(y.r)(r))for(let t=0;t<r.length;++t){const e=r[t],n=Object(y.u)(e)&&e.name;if("Boolean"===n){l=!0;break}"String"===n&&(c=!1)}else l=Object(y.u)(r)&&"Boolean"===r.name;i[0]=l,i[1]=c,(l||Object(y.n)(i,"default"))&&s.push(e)}}}const c=[a,s];return Object(y.D)(t)&&i.set(t,c),c}function Lr(t){return"$"!==t[0]&&!Object(y.J)(t)}const Pr=t=>"_"===t[0]||"$stable"===t,jr=t=>Object(y.r)(t)?t.map(Ko):[Ko(t)],Er=(t,e,n)=>{if(e._n)return e;const i=an((...t)=>jr(e(...t)),n);return i._c=!1,i},Nr=(t,e,n)=>{const i=t._ctx;for(const n in t){if(Pr(n))continue;const r=t[n];
33if(Object(y.u)(r))e[n]=Er(0,r,i);else if(null!=r){0;const t=jr(r);e[n]=(()=>t)}}},Rr=(t,e)=>{const n=jr(e);t.slots.default=(()=>n)},Br=(t,e,n)=>{for(const i in e)!n&&Pr(i)||(t[i]=e[i])},zr=(t,e,n)=>{const i=t.slots=Cr();if(32&t.vnode.shapeFlag){const t=e._;t?(Br(i,e,n),n&&Object(y.g)(i,"_",t,!0)):Nr(e,i)}else e&&Rr(t,e)},Vr=(t,e,n)=>{const{vnode:i,slots:r}=t;let o=!0,a=y.b;if(32&i.shapeFlag){const t=e._;t?n&&1===t?o=!1:Br(r,e,n):(o=!e.$stable,Nr(e,r)),a=e}else e&&(Rr(t,e),a={default:1});if(o)for(const t in r)Pr(t)||null!=a[t]||delete r[t]};const Fr=wo;function Hr(t){return Wr(t)}function Gr(t){return Wr(t,Wn)}function Wr(t,e){"boolean"!=typeof __VUE_OPTIONS_API__&&(Object(y.l)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(Object(y.l)().__VUE_PROD_DEVTOOLS__=!1),"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(Object(y.l)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);const n=Object(y.l)();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&Ye(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:i,remove:r,patchProp:o,createElement:a,createText:s,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:p=y.d,insertStaticContent:f}=t,g=(t,e,n,i=null,r=null,o=null,a,s=null,l=!!e.dynamicChildren)=>{if(t===e)return;t&&!zo(t,e)&&(i=q(t),z(t,r,o,!0),t=null),-2===e.patchFlag&&(l=!1,e.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=e;switch(c){case Mo:m(t,e,n,i);break;case Co:v(t,e,n,i);break;case Io:null==t&&b(e,n,i,a);break;case Oo:k(t,e,n,i,r,o,a,s,l);break;default:1&d?x(t,e,n,i,r,o,a,s,l):6&d?A(t,e,n,i,r,o,a,s,l):64&d?c.process(t,e,n,i,r,o,a,s,l,X):128&d&&c.process(t,e,n,i,r,o,a,s,l,X)}null!=u&&r&&zn(u,t&&t.ref,o,e||t,!e)},m=(t,e,n,r)=>{if(null==t)i(e.el=s(e.children),n,r);else{const n=e.el=t.el;e.children!==t.children&&c(n,e.children)}},v=(t,e,n,r)=>{null==t?i(e.el=l(e.children||""),n,r):e.el=t.el},b=(t,e,n,i)=>{[t.el,t.anchor]=f(t.children,e,n,i,t.el,t.anchor)},_=({el:t,anchor:e})=>{let n;for(;t&&t!==e;)n=h(t),r(t),t=n;r(e)},x=(t,e,n,i,r,o,a,s,l)=>{"svg"===e.type?a="svg":"math"===e.type&&(a="mathml"),null==t?w(e,n,i,r,o,a,s,l):M(t,e,r,o,a,s,l)},w=(t,e,n,r,s,l,c,d)=>{let h,p;const{props:f,shapeFlag:g,transition:m,dirs:v}=t;if(h=t.el=a(t.type,l,f&&f.is,f),8&g?u(h,t.children):16&g&&O(t.children,h,null,r,s,Ur(t,l),c,d),v&&ln(t,null,r,"created"),S(h,t,t.scopeId,c,r),f){for(const t in f)"value"===t||Object(y.J)(t)||o(h,t,null,f[t],l,r);"value"in f&&o(h,"value",null,f.value,l),(p=f.onVnodeBeforeMount)&&ea(p,r,t)}__VUE_PROD_DEVTOOLS__&&(Object(y.g)(h,"__vnode",t,!0),Object(y.g)(h,"__vueParentComponent",r,!0)),v&&ln(t,null,r,"beforeMount");const b=Yr(s,m);b&&m.beforeEnter(h),i(h,e,n),((p=f&&f.onVnodeMounted)||b||v)&&Fr(()=>{p&&ea(p,r,t),b&&m.enter(h),v&&ln(t,null,r,"mounted")},s)},S=(t,e,n,i,r)=>{if(n&&p(t,n),i)for(let e=0;e<i.length;e++)p(t,i[e]);if(r){let n=r.subTree;if(e===n||mo(n.type)&&(n.ssContent===e||n.ssFallback===e)){const e=r.vnode;S(t,e,e.scopeId,e.slotScopeIds,r.parent)}}},O=(t,e,n,i,r,o,a,s,l=0)=>{for(let c=l;c<t.length;c++){const l=t[c]=s?Jo(t[c]):Ko(t[c]);g(null,l,e,n,i,r,o,a,s)}},M=(t,e,n,i,r,a,s)=>{const l=e.el=t.el;__VUE_PROD_DEVTOOLS__&&(l.__vnode=e);let{patchFlag:c,dynamicChildren:d,dirs:h}=e;c|=16&t.patchFlag;const p=t.props||y.b,f=e.props||y.b;let g;if(n&&qr(n,!1),(g=f.onVnodeBeforeUpdate)&&ea(g,n,e,t),h&&ln(e,t,n,"beforeUpdate"),n&&qr(n,!0),(p.innerHTML&&null==f.innerHTML||p.textContent&&null==f.textContent)&&u(l,""),d?I(t.dynamicChildren,d,l,n,i,Ur(e,r),a):s||E(t,e,l,null,n,i,Ur(e,r),a,!1),c>0){if(16&c)T(l,p,f,n,r);else if(2&c&&p.class!==f.class&&o(l,"class",null,f.class,r),4&c&&o(l,"style",p.style,f.style,r),8&c){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const i=t[e],a=p[i],s=f[i];s===a&&"value"!==i||o(l,i,a,s,r,n)}}1&c&&t.children!==e.children&&u(l,e.children)}else s||null!=d||T(l,p,f,n,r);((g=f.onVnodeUpdated)||h)&&Fr(()=>{g&&ea(g,n,e,t),h&&ln(e,t,n,"updated")},i)},I=(t,e,n,i,r,o,a)=>{for(let s=0;s<e.length;s++){const l=t[s],c=e[s],u=l.el&&(l.type===Oo||!zo(l,c)||198&l.shapeFlag)?d(l.el):n;g(l,c,u,null,i,r,o,a,!0)}},T=(t,e,n,i,r)=>{if(e!==n){if(e!==y.b)for(const a in e)Object(y.J)(a)||a in n||o(t,a,e[a
33],null,r,i);for(const a in n){if(Object(y.J)(a))continue;const s=n[a],l=e[a];s!==l&&"value"!==a&&o(t,a,l,s,r,i)}"value"in n&&o(t,"value",e.value,n.value,r)}},k=(t,e,n,r,o,a,l,c,u)=>{const d=e.el=t?t.el:s(""),h=e.anchor=t?t.anchor:s("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:g}=e;g&&(c=c?c.concat(g):g),null==t?(i(d,n,r),i(h,n,r),O(e.children||[],n,h,o,a,l,c,u)):p>0&&64&p&&f&&t.dynamicChildren?(I(t.dynamicChildren,f,n,o,a,l,c),(null!=e.key||o&&e===o.subTree)&&$r(t,e,!0)):E(t,e,n,h,o,a,l,c,u)},A=(t,e,n,i,r,o,a,s,l)=>{e.slotScopeIds=s,null==t?512&e.shapeFlag?r.ctx.activate(e,n,i,a,l):D(e,n,i,r,o,a,l):L(t,e,l)},D=(t,e,n,i,r,o,a)=>{const s=t.component=ra(t,i,r);if(ai(t)&&(s.ctx.renderer=X),ga(s,!1,a),s.asyncDep){if(r&&r.registerDep(s,P,a),!t.el){const t=s.subTree=Wo(Co);v(null,t,e,n)}}else P(s,t,e,n,r,o,a)},L=(t,e,n)=>{const i=e.component=t.component;if(function(t,e,n){const{props:i,children:r,component:o}=t,{props:a,children:s,patchFlag:l}=e,c=o.emitsOptions;0;if(e.dirs||e.transition)return!0;if(!(n&&l>=0))return!(!r&&!s||s&&s.$stable)||i!==a&&(i?!a||fo(i,a,c):!!a);if(1024&l)return!0;if(16&l)return i?fo(i,a,c):!!a;if(8&l){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const n=t[e];if(a[n]!==i[n]&&!lo(c,n))return!0}}return!1}(t,e,n)){if(i.asyncDep&&!i.asyncResolved)return void j(i,e,n);i.next=e,i.update()}else e.el=t.el,i.vnode=e},P=(t,e,n,i,r,o,a)=>{const s=()=>
33{if(t.isMounted){let{next:e,bu:n,u:i,parent:l,vnode:c}=t;{const n=function t(e){const n=e.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:t(n)}(t);if(n)return e&&(e.el=c.el,j(t,e,a)),void n.asyncDep.then(()=>{t.isUnmounted||s()})}let u,h=e;0,qr(t,!1),e?(e.el=c.el,j(t,e,a)):e=c,n&&Object(y.q)(n),(u=e.props&&e.props.onVnodeBeforeUpdate)&&ea(u,l,e,c),qr(t,!0);const p=co(t);0;const f=t.subTree;t.subTree=p,g(f,p,d(f.el),q(f),t,r,o),e.el=p.el,null===h&&go(t,p.el),i&&Fr(i,r),(u=e.props&&e.props.onVnodeUpdated)&&Fr(()=>ea(u,l,e,c),r),__VUE_PROD_DEVTOOLS__&&Xe(t)}else{let a;const{el:s,props:l}=e,{bm:c,m:u,parent:d,root:h,type:p}=t,f=ii(e);if(qr(t,!1),c&&Object(y.q)(c),!f&&(a=l&&l.onVnodeBeforeMount)&&ea(a,d,e),qr(t,!0),s&&K){const e=()=>{t.subTree=co(t),K(s,t.subTree,t,r,null)};f&&p.__asyncHydrate?p.__asyncHydrate(s,t,e):e()}else{h.ce&&h.ce._injectChildStyle(p);const a=t.subTree=co(t);0,g(null,a,n,i,t,r,o),e.el=a.el}if(u&&Fr(u,r),!f&&(a=l&&l.onVnodeMounted)){const t=e;Fr(()=>ea(a,d,t),r)}(256&e.shapeFlag||d&&ii(d.vnode)&&256&d.vnode.shapeFlag)&&t.a&&Fr(t.a,r),t.isMounted=!0,__VUE_PROD_DEVTOOLS__&&$e(t),e=n=i=null}};t.scope.on();const l=t.effect=new C(s);t.scope.off();const c=t.update=l.run.bind(l),u=t.job=l.runIfDirty.bind(l);u.i=t,u.id=t.uid,l.scheduler=(()=>Ne(u)),qr(t,!0),c()},j=(t,e,n)=>{e.component=t;const i=t.vnode.props;t.vnode=e,t.next=null,function(t,e,n,i){const{props:r,attrs:o,vnode:{patchFlag:a}}=t,s=Ht(r),[l]=t.propsOptions;let c=!1;if(!(i||a>0)||16&a){let i;Tr(t,e,r,o)&&(c=!0);for(const o in s)e&&(Object(y.n)(e,o)||(i=Object(y.o)(o))!==o&&Object(y.n)(e,i))||(l?!n||void 0===n[o]&&void 0===n[i]||(r[o]=kr(l,s,o,void 0,t,!0)):delete r[o]);if(o!==s)for(const t in o)e&&Object(y.n)(e,t)||(delete o[t],c=!0)}else if(8&a){const n=t.vnode.dynamicProps;for(let i=0;i<n.length;i++){let a=n[i];if(lo(t.emitsOptions,a))continue;const u=e[a];if(l)if(Object(y.n)(o,a))u!==o[a]&&(o[a]=u,c=!0);else{const e=Object(y.e)(a);r[e]=kr(l,s,e,u,t,!1)}else u!==o[a]&&(o[a]=u,c=!0)}}c&&tt(t.attrs,"set","")}(t,e.props,i,n),Vr(t,e.children,n),G(),ze(t),W()},E=(t,e,n,i,r,o,a,s,l=!1)=>{const c=t&&t.children,d=t?t.shapeFlag:0,h=e.children,{patchFlag:p,shapeFlag:f}=e;if(p>0){if(128&p)return void R(c,h,n,i,r,o,a,s,l);if(256&p)return void N(c,h,n,i,r,o,a,s,l)}8&f?(16&d&&U(c,r,o),h!==c&&u(n,h)):16&d?16&f?R(c,h,n,i,r,o,a,s,l):U(c,r,o,!0):(8&d&&u(n,""),16&f&&O(h,n,i,r,o,a,s,l))},N=(t,e,n,i,r,o,a,s,l)=>{t=t||y.a,e=e||y.a;const c=t.length,u=e.length,d=Math.min(c,u);let h;for(h=0;h<d;h++){const i=e[h]=l?Jo(e[h]):Ko(e[h]);g(t[h],i,n,null,r,o,a,s,l)}c>u?U(t,r,o,!0,!1,d):O(e,n,i,r,o,a,s,l,d)},R=(t,e,n,i,r,o,a,s,l)=>{let c=0;const u=e.length;let d=t.length-1,h=u-1;for(;c<=d&&c<=h;){const i=t[c],u=e[c]=l?Jo(e[c]):Ko(e[c]);if(!zo(i,u))break;g(i,u,n,null,r,o,a,s,l),c++}for(;c<=d&&c<=h;){const i=t[d],c=e[h]=l?Jo(e[h]):Ko(e[h]);if(!zo(i,c))break;g(i,c,n,null,r,o,a,s,l),d--,h--}if(c>d){if(c<=h){const t=h+1,d=t<u?e[t].el:i;for(;c<=h;)g(null,e[c]=l?Jo(e[c]):Ko(e[c]),n,d,r,o,a,s,l),c++}}else if(c>h)for(;c<=d;)z(t[c],r,o,!0),c++;else{const p=c,f=c,m=new Map;for(c=f;c<=h;c++){const t=e[c]=l?Jo(e[c]):Ko(e[c]);null!=t.key&&m.set(t.key,c)}let v,b=0;const _=h-f+1;let x=!1,w=0;const S=new Array(_);for(c=0;c<_;c++)S[c]=0;for(c=p;c<=d;c++){const i=t[c];if(b>=_){z(i,r,o,!0);continue}let u;if(null!=i.key)u=m.get(i.key);else for(v=f;v<=h;v++)if(0===S[v-f]&&zo(i,e[v])){u=v;break}void 0===u?z(i,r,o,!0):(S[u-f]=c+1,u>=w?w=u:x=!0,g(i,e[u],n,null,r,o,a,s,l),b++)}const O=x?function(t){const e=t.slice(),n=[0];let i,r,o,a,s;const l=t.length;for(i=0;i<l;i++){const l=t[i];if(0!==l){if(r=n[n.length-1],t[r]<l){e[i]=r,n.push(i);continue}for(o=0,a=n.length-1;o<a;)t[n[s=o+a>>1]]<l?o=s+1:a=s;l<t[n[o]]&&(o>0&&(e[i]=n[o-1]),n[o]=i)}}o=n.length,a=n[o-1];for(;o-- >0;)n[o]=a,a=e[a];return n}(S):y.a;for(v=O.length-1,c=_-1;c>=0;c--){const t=f+c,d=e[t],h=t+1<u?e[t+1].el:i;0===S[c]?g(null,d,n,h,r,o,a,s,l):x&&(v<0||c!==O[v]?B(d,n,h,2):v--)}}},B=(t,e,n,o,a=null)=>{const{el:s,type:l,transition:c,children:u,shapeFlag:d}=t;if(6&d)B(t.component.subTree,e,n,o);else if(128&d)t.suspense.move(e,n,o);else if(64&d)l.move(t,e,n,X);else if(l!==Oo)if(l!==Io)if(2!==o&&1&d&&c)if(0===o)c.beforeEnter(s),i(s,e,n),Fr(()=>c.enter(s),a);else{const{leave:o,delayLeave:a,afterLeave:l}=c,u=()=>{t.ctx.isUnmounted?r(s):i(s,e,n)},d=()=>{o(s,()=>{u(),l&&l()})};a?a(s,u,d):d()}else i(s,e,n);else(({el:t,anchor:e},n,r)=>{let o;for(;t&&t!==e;)o=h(t),i(t,n,r),t=o;i(e,n,r)})(t,e,n);else{i(s,e,n);for(let t=0;t<u.length;t++)B(u[t],e,n,o);i(t.anchor,e,n)}},z=(t,e,n,i=!1,r=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:h,cacheIndex:p}=t;if(-2===d&&(r=!1),null!=s&&(G(),zn(s,null,n,t,!0),W()),null!=p&&(e.renderCache[p]=void 0),256&u)return void e.ctx.deactivate(t);const f=1&u&&h,g=!ii(t);let m;if(g&&(m=a&&a.onVnodeBeforeUnmount)&&ea(m,e,t),6&u)H(t.component,n,i);else{if(128&u)return void t.suspense.unmount(n,i);f&&ln(t,null,e,"beforeUnmount"),64&u?t.type.remove(t,e,n,X,i):c&&!c.hasOnce&&(o!==Oo||d>0&&64&d)?U(c,e,n,!1,!0):(o===Oo&&384&d||!r&&16&u)&&U(l,e,n),i&&V(t)}(g&&(m=a&&a.onVnodeUnmounted)||f)&&Fr(()=>{m&&ea(m,e,t),f&&ln(t,null,e,"unmounted")},n)},V=t=>{const{type:e,el:n,anchor:i,transition:o}=t;if(e===Oo)return void F(n,i);if(e===Io)return void _(t);const a=()=>{r(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&t.shapeFlag&&o&&!o.persisted){const{leave:e,delayLeave:i}=o,r=()=>e(n,a);i?i(t.el,a,r):r()}else a()},F=(t,e)=>{let n;for(;t!==e;)n=h(t),r(t),t=n;r(e)},H=(t,e,n)=>{const{bum:i,scope:r,job:o,subTree:a,um:s,m:l,a:c,parent:u,slots:{__:d}}=t;Xr(l),Xr(c),i&&Object(y.q)(i),u&&Object(y.r)(d)&&d.forEach(t=>{u.renderCache[t]=void 0}),r.stop(),o&&(o.flags|=8,z(a,t,e,n)),s&&Fr(s,e),Fr(()=>{t.isUnmounted=!0},e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve()),__VUE_PROD_DEVTOOLS__&&Ke(t)},U=(t,e,n,i=!1,r=!1,o=0)=>{for(let a=o;a<t.length;a++)z(t[a],e,n,i,r)},q=t=>{if(6&t.shapeFlag)return q(t.component.subTree);if(128&t.shapeFlag)return t.suspense.next();const e=h(t.anchor||t.el),n=e&&e[cn];return n?h(n):e};let Y=!1;const $=(t,e,n)=>{null==t?e._vnode&&z(e._vnode,null,null,!0):g(e._vnode||null,t,e,null,null,null,n),e._vnode=t,Y||(Y=!0,ze(),Ve(),Y=!1)},X={p:g,um:z,m:B,r:V,mt:D,mc:O,pc:E,pbc:I,n:q,o:t};let Z,K;return e&&([Z,K]=e(X)),{render:$,hydrate:Z,createApp:_r($,Z)}}function Ur({type:t,props:e},n){return"svg"===n&&"foreignObject"===t||"mathml"===n&&"annotation-xml"===t&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function qr({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}
33function Yr(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function $r(t,e,n=!1){const i=t.children,r=e.children;if(Object(y.r)(i)&&Object(y.r)(r))for(let t=0;t<i.length;t++){const e=i[t];let o=r[t];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&((o=r[t]=Jo(r[t])).el=e.el),n||-2===o.patchFlag||$r(e,o)),o.type===Mo&&(o.el=e.el),o.type!==Co||o.el||(o.el=e.el)}}function Xr(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const Zr=Symbol.for("v-scx"),Kr=()=>{{const t=Sr(Zr);return t}};function Jr(t,e){return no(t,null,e)}function Qr(t,e){return no(t,null,{flush:"post"})}function to(t,e){return no(t,null,{flush:"sync"})}function eo(t,e,n){return no(t,e,n)}function no(t,e,n=y.b){const{immediate:i,deep:r,flush:o,once:a}=n;const s=Object(y.h)({},n);const l=e&&i||!e&&"post"!==o;let c;if(fa)if("sync"===o){const t=Kr();c=t.__watcherHandles||(t.__watcherHandles=[])}else if(!l){const t=()=>{};return t.stop=y.d,t.resume=y.d,t.pause=y.d,t}const u=oa;s.call=((t,e,n)=>Ce(t,u,e,n));let d=!1;"post"===o?s.scheduler
33=(t=>{Fr(t,u&&u.suspense)}):"sync"!==o&&(d=!0,s.scheduler=((t,e)=>{e?t():Ne(t)})),s.augmentJob=(t=>{e&&(t.flags|=4),d&&(t.flags|=2,u&&(t.id=u.uid,t.i=u))});const h=function(t,e,n=y.b){const{immediate:i,deep:r,once:o,scheduler:a,augmentJob:s,call:l}=n,c=t=>r?t:Vt(t)||!1===r||0===r?ve(t,1):ve(t);let u,d,h,p,f=!1,g=!1;if(qt(t)?(d=(()=>t.value),f=Vt(t)):Bt(t)?(d=(()=>c(t)),f=!0):Object(y.r)(t)?(g=!0,f=t.some(t=>Bt(t)||Vt(t)),d=(()=>t.map(t=>qt(t)?t.value:Bt(t)?c(t):Object(y.u)(t)?l?l(t,2):t():void 0))):d=Object(y.u)(t)?e?l?()=>l(t,2):t:()=>{if(h){G();try{h()}finally{W()}}const e=fe;fe=u;try{return l?l(t,3,[p]):t(p)}finally{fe=e}}:y.d,e&&r){const t=d,e=!0===r?1/0:r;d=(()=>ve(t(),e))}const m=S(),v=()=>{u.stop(),m&&m.active&&Object(y.Y)(m.effects,u)};if(o&&e){const t=e;e=((...e)=>{t(...e),v()})}let b=g?new Array(t.length).fill(he):he;const _=t=>{if(1&u.flags&&(u.dirty||t))if(e){const t=u.run();if(r||f||(g?t.some((t,e)=>Object(y.m)(t,b[e])):Object(y.m)(t,b))){h&&h();const n=fe;fe=u;try{const i=[t,b===he?void 0:g&&b[0]===he?[]:b,p];b=t,l?l(e,3,i):e(...i)}finally{fe=n}}}else u.run()};
33return s&&s(_),(u=new C(d)).scheduler=a?()=>a(_,!1):_,p=(t=>me(t,!1,u)),h=u.onStop=(()=>{const t=pe.get(u);if(t){if(l)l(t,4);else for(const e of t)e();pe.delete(u)}}),e?i?_(!0):b=u.run():a?a(_.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}(t,e,s);return fa&&(c?c.push(h):l&&h()),h}function io(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t<n.length&&e;t++)e=e[n[t]];return e}}function ro(t,e,n=y.b){const i=aa();const r=Object(y.e)(e);const o=Object(y.o)(e),a=oo(t,r),s=ie((a,s)=>{let l,c,u=y.b;return to(()=>{const e=t[r];Object(y.m)(l,e)&&(l=e,s())}),{get:()=>(a(),n.get?n.get(l):l),set(t){const a=n.set?n.set(t):t;if(!(Object(y.m)(a,l)||u!==y.b&&Object(y.m)(t,u)))return;const d=i.vnode.props;d&&(e in d||r in d||o in d)&&(`onUpdate:${e}`in d||`onUpdate:${r}`in d||`onUpdate:${o}`in d)||(l=t,s()),i.emit(`update:${e}`,a),Object(y.m)(t,a)&&Object(y.m)(t,u)&&!Object(y.m)(a,c)&&s(),u=t,c=a}}});return s[Symbol.iterator]=(()=>{let t=0;return{next:()=>t<2?{value:t++?a||y.b:s,done:!1}:{done:!0}}}),s}const oo=(t,e)=>"modelValue"===e||"model-value"===e?t.modelModifiers:t[`${e}Modifiers`]||t[`${Object(y.e)(e)}Modifiers`]||t[`${Object(y.o)(e)}Modifiers`];function ao(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||y.b;let r=n;const o=e.startsWith("update:"),a=o&&oo(i,e.slice(7));let s;a&&(a.trim&&(r=n.map(t=>Object(y.N)(t)?t.trim():t)),a.number&&(r=n.map(y.S))),__VUE_PROD_DEVTOOLS__&&function(t,e,n){qe("component:emit",t.appContext.app,t,e,n)}(t,e,r);let l=i[s=Object(y.bb)(e)]||i[s=Object(y.bb)(Object(y.e)(e))];!l&&o&&(l=i[s=Object(y.bb)(Object(y.o)(e))]),l&&Ce(l,t,6,r);const c=i[s+"Once"];if(c){if(t.emitted){if(t.emitted[s])return}else t.emitted={};t.emitted[s]=!0,Ce(c,t,6,r)}}function so(t,e,n=!1){const i=e.emitsCache,r=i.get(t);if(void 0!==r)return r;const o=t.emits;let a={},s=!1;if(__VUE_OPTIONS_API__&&!Object(y.u)(t)){const i=t=>{const n=so(t,e,!0);n&&(s=!0,Object(y.h)(a,n))};!n&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}return o||s?(Object(y.r)(o)?o.forEach(t=>a[t]=null):Object(y.h)(a,o),Object(y.D)(t)&&i.set(t,a),a):(Object(y.D)(t)&&i.set(t,null),null)}function lo(t,e){return!(!t||!Object(y.E)(e))&&(e=e.slice(2).replace(/Once$/,""),Object(y.n)(t,e[0].toLowerCase()+e.slice(1))||Object(y.n)(t,Object(y.o)(e))||Object(y.n)(t,e))}function co(t){const{type:e,vnode:n,proxy:i,withProxy:r,propsOptions:[o],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:d,data:h,setupState:p,ctx:f,inheritAttrs:g}=t,m=en(t);let v,b;try{if(4&n.shapeFlag){const t=r||i,e=t;v=Ko(c.call(e,t,u,d,p,h,f)),b=s}else{const t=e;0,v=Ko(t.length>1?t(d,{attrs:s,slots:a,emit:l}):t(d,null)),b=e.props?s:ho(s)}}catch(e){To.length=0,Ie(e,t,1),v=Wo(Co)}let _=v;if(b&&!1!==g){const t=Object.keys(b),{shapeFlag:e}=_;t.length&&7&e&&(o&&t.some(y.C)&&(b=po(b,o)),_=Yo(_,b,!1,!0))}return n.dirs&&((_=Yo(_,null,!1,!0)).dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&Pn(_,n.transition),v=_,en(m),v}function uo(t,e=!0){let n;for(let e=0;e<t.length;e++){const i=t[e];if(!Bo(i))return;if(i.type!==Co||"v-if"===i.children){if(n)return;n=i}}return n}const ho=t=>{let e;for(const n in t)("class"===n||"style"===n||Object(y.E)(n))&&((e||(e={}))[n]=t[n]);return e},po=(t,e)=>{const n={};for(const i in t)Object(y.C)(i)&&i.slice(9)in e||(n[i]=t[i]);return n};function fo(t,e,n){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let r=0;r<i.length;r++){const o=i[r];if(e[o]!==t[o]&&!lo(n,o))return!0}return!1}function go({vnode:t,parent:e},n){for(;e;){const i=e.subTree;if(i.suspense&&i.suspense.activeBranch===t&&(i.el=t.el),i!==t)break;(t=e.vnode).el=n,e=e.parent}}const mo=t=>t.__isSuspense;let vo=0;const yo={name:"Suspense",__isSuspense:!0,process(t,e,n,i,r,o,a,s,l,c){if(null==t)!function(t,e,n,i,r,o,a,s,l){const{p:c,o:{createElement:u}}=l,d=u("div"),h=t.suspense=_o(t,r,i,e,d,n,o,a,s,l);c(null,h.pendingBranch=t.ssContent,d,null,i,h,o,a),h.deps>0?(bo(t,"onPending"),bo(t,"onFallback"),c(null,t.ssFallback,e,n,i,null,o,a),So(h,t.ssFallback)):h.resolve(!1,!0)}(e,n,i,r,o,a,s,l,c);else{if(o&&o.deps>0&&!t.suspense.isInFallback)return e.suspense=t.suspense,e.suspense.vnode=e,void(e.el=t.el);!function(t,e,n,i,r,o,a,s,{p:l,um:c,o:{createElement:u}}){const d=e.suspense=t.suspense;d.vnode=e,e.el=t.el;const h=e.ssContent,p=e.ssFallback,{activeBranch:f,pendingBranch:g,isInFallback:m,isHydrating:v}=d;if(g)d.pendingBranch=h,zo(h,g)?(l(g,h,d.hiddenContainer,null,r,d,o,a,s),d.deps<=0?d.resolve():m&&(v||(l(f,p,n,i,r,null,o,a,s),So(d,p)))):(d.pendingId=vo++,v?(d.isHydrating=!1,d.activeBranch=g):c(g,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),m?(l(null,h,d.hiddenContainer,null,r,d,o,a,s),d.deps<=0?d.resolve():(l(f,p,n,i,r,null,o,a,s),So(d,p))):f&&zo(h,f)?(l(f,h,n,i,r,d,o,a,s),d.resolve(!0)):(l(null,h,d.hiddenContainer,null,r,d,o,a,s),d.deps<=0&&d.resolve()));else if(f&&zo(h,f))l(f,h,n,i,r,d,o,a,s),So(d,h);else if(bo(e,"onPending"),d.pendingBranch=h,512&h.shapeFlag?d.pendingId=h.component.suspenseId:d.pendingId=vo++,l(null,h,d.hiddenContainer,null,r,d,o,a,s),d.deps<=0)d.resolve();else{const{timeout:t,pendingId:e}=d;t>0?setTimeout(()=>
33{d.pendingId===e&&d.fallback(p)},t):0===t&&d.fallback(p)}}(t,e,n,i,r,a,s,l,c)}},hydrate:function(t,e,n,i,r,o,a,s,l){const c=e.suspense=_o(e,i,n,t.parentNode,document.createElement("div"),null,r,o,a,s,!0),u=l(t,c.pendingBranch=e.ssContent,n,c,o,a);0===c.deps&&c.resolve(!1,!0);return u},normalize:function(t){const{shapeFlag:e,children:n}=t,i=32&e;t.ssContent=xo(i?n.default:n),t.ssFallback=i?xo(n.fallback):Wo(Co)}};function bo(t,e){const n=t.props&&t.props[e];Object(y.u)(n)&&n()}function _o(t,e,n,i,r,o,a,s,l,c,u=!1){const{p:d,m:h,um:p,n:f,o:{parentNode:g,remove:m}}=c;let v;const b=function(t){const e=t.props&&t.props.suspensible;return null!=e&&!1!==e}(t);b&&e&&e.pendingBranch&&(v=e.pendingId,e.deps++);const _=t.props?Object(y.cb)(t.props.timeout):void 0;const x=o,w={vnode:t,parent:e,parentComponent:n,namespace:a,container:i,hiddenContainer:r,deps:0,pendingId:vo++,timeout:"number"==typeof _?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(t=!1,n=!1){const{vnode:i,activeBranch:r,pendingBranch:a,pendingId:s,effects:l,parentComponent:c,container:u}=w;let d=!1;w.isHydrating?w.isHydrating=!1:t||((d=r&&a.transition&&"out-in"===a.transition.mode)&&(r.transition.afterLeave=(()=>{s===w.pendingId&&(h(a,u,o===x?f(r):o,0),Be(l))})),r&&(g(r.el)===u&&(o=f(r)),p(r,c,w,!0)),d||h(a,u,o,0)),So(w,a),w.pendingBranch=null,w.isInFallback=!1;let m=w.parent,y=!1;for(;m;){if(m.pendingBranch){m.effects.push(...l),y=!0;break}m=m.parent}y||d||Be(l),w.effects=[],b&&e&&e.pendingBranch&&v===e.pendingId&&(e.deps--,0!==e.deps||n||e.resolve()),bo(i,"onResolve")},fallback(t){if(!w.pendingBranch)return;const{vnode:e,activeBranch:n,parentComponent:i,container:r,namespace:o}=w;bo(e,"onFallback");const a=f(n),c=()=>{w.isInFallback&&(d(null,t,r,a,i,null,o,s,l),So(w,t))},u=t.transition&&"out-in"===t.transition.mode;u&&(n.transition.afterLeave=c),w.isInFallback=!0,p(n,i,null,!0),u||c()},move(t,e,n){w.activeBranch&&h(w.activeBranch,t,e,n),w.container=t},next:()=>w.activeBranch&&f(w.activeBranch),registerDep(t,e,n){const i=!!w.pendingBranch;i&&w.deps++;const r=t.vnode.el;t.asyncDep.catch(e=>{Ie(e,t,0)}).then(o=>{if(t.isUnmounted||w.isUnmounted||w.pendingId!==t.suspenseId)return;t.asyncResolved=!0;const{vnode:s}=t;ma(t,o,!1),r&&(s.el=r);const l=!r&&t.subTree.el;e(t,s,g(r||t.subTree.el),r?null:f(t.subTree),w,a,n),l&&m(l),go(t,s.el),i&&0==--w.deps&&w.resolve()})},unmount(t,e){w.isUnmounted=!0,w.activeBranch&&p(w.activeBranch,n,t,e),w.pendingBranch&&p(w.pendingBranch,n,t,e)}};return w}function xo(t){let e;if(Object(y.u)(t)){const n=Po&&t._c;n&&(t._d=!1,Ao()),t=t(),n&&(t._d=!0,e=ko,Do())}if(Object(y.r)(t)){const e=uo(t);0,t=e}return t=Ko(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(e=>e!==t)),t}function wo(t,e){e&&e.pendingBranch?Object(y.r)(t)?e.effects.push(...t):e.effects.push(t):Be(t)}function So(t,e){t.activeBranch=e;const{vnode:n,parentComponent:i}=t;let r=e.el;for(;!r&&e.component;)r=(e=e.component.subTree).el;n.el=r,i&&i.subTree===n&&(i.vnode.el=r,go(i,r))}const Oo=Symbol.for("v-fgt"),Mo=Symbol.for("v-txt"),Co=Symbol.for("v-cmt"),Io=Symbol.for("v-stc"),To=[];let ko=null;function Ao(t=!1){To.push(ko=t?null:[])}function Do(){To.pop(),ko=To[To.length-1]||null}let Lo,Po=1;function jo(t,e=!1){Po+=t,t<0&&ko&&e&&(ko.hasOnce=!0)}function Eo(t){return t.dynamicChildren=Po>0?ko||y.a:null,Do(),Po>0&&ko&&ko.push(t),t}function No(t,e,n,i,r,o){return Eo(Go(t,e,n,i,r,o,!0))}function Ro(t,e,n,i,r){return Eo(Wo(t,e,n,i,r,!0))}function Bo(t){return!!t&&!0===t.__v_isVNode}function zo(t,e){return t.type===e.type&&t.key===e.key}function Vo(t){Lo=t}const Fo=({key:t})=>null!=t?t:null,Ho=({ref:t,ref_key:e,ref_for:n})=>("number"==typeof t&&(t=""+t),null!=t?Object(y.N)(t)||qt(t)||Object(y.u)(t)?{i:Qe,r:t,k:e,f:!!n}:t:null);function Go(t,e=null,n=null,i=0,r=null,o=(t===Oo?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Fo(e),ref:e&&Ho(e),scopeId:tn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Qe};return s?(Qo(l,n),128&o&&t.normalize(l)):n&&(l.shapeFlag|=Object(y.N)(n)?8:16),Po>0&&!a&&ko&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&ko.push(l),l}const Wo=Uo;function Uo(t,e=null,n=null,i=0,r=null,o=!1){if(t&&t!==Ai||(t=Co),Bo(t)){const i=Yo(t,e,!0);return n&&Qo(i,n),Po>0&&!o&&ko&&(6&i.shapeFlag?ko[ko.indexOf(t)]=i:ko.push(i)),i.patchFlag=-2,i}if(Ia(t)&&(t=t.__vccOpts),e){e=qo(e);let{class:t,style:n}=e;t&&!Object(y.N)(t)&&(e.class=Object(y.U)(t)),Object(y.D)(n)&&(Ft(n)&&!Object(y.r)(n)&&(n=Object(y.h)({},n)),e.style=Object(y.W)(n))}return Go(t,e,n,i,r,Object(y.N)(t)?1:mo(t)?128:un(t)?64:Object(y.D)(t)?4:Object(y.u)(t)?2:0,o,!0)}function qo(t){return t?Ft(t)||Ir(t)?Object(y.h)({},t):t:null}function Yo(t,e,n=!1,i=!1){const{props:r,ref:o,patchFlag:a,children:s,transition:l}=t,c=e?ta(r||{}
33,e):r,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Fo(c),ref:e&&e.ref?n&&o?Object(y.r)(o)?o.concat(Ho(e)):[o,Ho(e)]:Ho(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Oo?-1===a?16:16|a:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Yo(t.ssContent),ssFallback:t.ssFallback&&Yo(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&i&&Pn(u,l.clone(u)),u}function $o(t=" ",e=0){return Wo(Mo,null,t,e)}function Xo(t,e){const n=Wo(Io,null,t);return n.staticCount=e,n}function Zo(t="",e=!1){return e?(Ao(),Ro(Co,null,t)):Wo(Co,null,t)}function Ko(t){return null==t||"boolean"==typeof t?Wo(Co):Object(y.r)(t)?Wo(Oo,null,t.slice()):Bo(t)?Jo(t):Wo(Mo,null,String(t))}function Jo(t){return null===t.el&&-1!==t.patchFlag||t.memo?t:Yo(t)}function Qo(t,e){let n=0;const{shapeFlag:i}=t;if(null==e)e=null;else if(Object(y.r)(e))n=16;else if("object"==typeof e){if(65&i){const n=e.default;return void(n&&(n._c&&(n._d=!1),Qo(t,n()),n._c&&(n._d=!0)))}{n=32;const i=e._;i||Ir(e)?3===i&&Qe&&(1===Qe.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=Qe}}else Object(y.u)(e)?(e={default:e,_ctx:Qe},n=32):(e=String(e),64&i?(n=16,e=[$o(e)]):n=8);t.children=e,t.shapeFlag|=n}function ta(...t){const e={};for(let n=0;n<t.length;n++){const i=t[n];for(const t in i)if("class"===t)e.class!==i.class&&(e.class=Object(y.U)([e.class,i.class]));else if("style"===t)e.style=Object(y.W)([e.style,i.style]);else if(Object(y.E)(t)){const n=e[t],r=i[t];!r||n===r||Object(y.r)(n)&&n.includes(r)||(e[t]=n?[].concat(n,r):r)}else""!==t&&(e[t]=i[t])}return e}function ea(t,e,n,i=null){Ce(t,e,7,[n,i])}const na=yr();let ia=0;function ra(t,e,n){const i=t.type,r=(e?e.appContext:t.appContext)||na,o={uid:ia++,vnode:t,type:i,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new x(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Dr(i,r),emitsOptions:so(i,r),emit:null,emitted:null,propsDefaults:y.b,inheritAttrs:i.inheritAttrs,ctx:y.b,data:y.b,props:y.b,attrs:y.b,slots:y.b,refs:y.b,setupState:y.b,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=e?e.root:o,o.emit=ao.bind(null,o),t.ce&&t.ce(o),o}let oa=null;const aa=()=>oa||Qe;let sa,la;{const t=Object(y.l)(),e=(e,n)=>{let i;return(i=t[e])||(i=t[e]=[]),i.push(n),t=>{i.length>1?i.forEach(e=>e(t)):i[0](t)}};sa=e("__VUE_INSTANCE_SETTERS__",t=>oa=t),la=e("__VUE_SSR_SETTERS__",t=>fa=t)}const ca=t=>{const e=oa;return sa(t),t.scope.on(),()=>{t.scope.off(),sa(e)}},ua=()=>{oa&&oa.scope.off(),sa(null)};function da(t){return 4&t.vnode.shapeFlag}let ha,pa,fa=!1;function ga(t,e=!1,n=!1){e&&la(e);const{props:i,children:r}=t.vnode,o=da(t);!function(t,e,n,i=!1){const r={},o=Cr();t.propsDefaults=Object.create(null),Tr(t,e,r,o);for(const e in t.propsOptions[0])e in r||(r[e]=void 0);n?t.props=i?r:jt(r):t.type.props?t.props=r:t.props=o,t.attrs=o}(t,i,o,e),zr(t,r,n||e);const a=o?function(t,e){const n=t.type;0;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Gi),0;const{setup:i}=n;if(i){G();const n=t.setupContext=i.length>1?xa(t):null,r=ca(t),o=Me(i,t,0,[t.props,n]),a=Object(y.G)(o);if(W(),r(),!a&&!t.sp||ii(t)||Rn(t),a){if(o.then(ua,ua),e)return o.then(n=>{ma(t,n,e)}).catch(e=>{Ie(e,t,0)});t.asyncDep=o}else ma(t,o,e)}else ba(t,e)}(t,e):void 0;return e&&la(!1),a}function ma(t,e,n){Object(y.u)(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Object(y.D)(e)&&(__VUE_PROD_DEVTOOLS__&&(t.devtoolsRawSetupState=e),t.setupState=ee(e)),ba(t,n)}function va(t){ha=t,pa=(t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Wi))})}const ya=()=>!ha;function ba(t,e,n){const i=t.type;if(!t.render){if(!e&&ha&&!i.render){const e=i.template||__VUE_OPTIONS_API__&&ur(t).template;if(e){0;const{isCustomElement:n,compilerOptions:r}=t.appContext.config,{delimiters:o,compilerOptions:a}=i,s=Object(y.h)(Object(y.h)({isCustomElement:n,delimiters:o},r),a);i.render=ha(e,s)}}t.render=i.render||y.d,pa&&pa(t)}if(__VUE_OPTIONS_API__){const e=ca(t);G();try{sr(t)}finally{W(),e()}}}const _a={get:(t,e)=>(Q(t,0,""),t[e])};function xa(t){const e=e=>{t.exposed=e||{}};return{attrs:new Proxy(t.attrs,_a),slots:t.slots,emit:t.emit,expose:e}}function wa(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(ee(Gt(t.exposed)),{get:(e,n)=>n in e?e[n]:n in Fi?Fi[n](t):void 0,has:(t,e)=>e in t||e in Fi})):t.proxy}
33const Sa=/(?:^|[-_])(\w)/g,Oa=t=>t.replace(Sa,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ma(t,e=!0){return Object(y.u)(t)?t.displayName||t.name:t.name||e&&t.__name}function Ca(t,e,n=!1){let i=Ma(e);if(!i&&e.__file){const t=e.__file.match(/([^/\\]+)\.\w+$/);t&&(i=t[1])}if(!i&&t&&t.parent){const n=t=>{for(const n in t)if(t[n]===e)return n};i=n(t.components||t.parent.type.components)||n(t.appContext.components)}return i?Oa(i):n?"App":"Anonymous"}function Ia(t){return Object(y.u)(t)&&"__vccOpts"in t}const Ta=(t,e)=>{return function(t,e,n=!1){let i,r;return Object(y.u)(t)?i=t:(i=t.get,r=t.set),new ce(i,r,n)}(t,0,fa)};function ka(t,e,n){const i=arguments.length;return 2===i?Object(y.D)(e)&&!Object(y.r)(e)?Bo(e)?Wo(t,null,[e]):Wo(t,e):Wo(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&Bo(n)&&(n=[n]),Wo(t,e,n))}function Aa(){return void 0}function Da(t,e,n,i){const r=n[i];if(r&&La(r,t))return r;const o=e();return o.memo=t.slice(),o.cacheIndex=i,n[i]=o}function La(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(Object(y.m)(n[t],e[t]))return!1;return Po>0&&ko&&ko.push(t),!0}const Pa="3.5.16",ja=y.d,Ea=Oe,Na=Ge,Ra=Ye,Ba={createComponentInstance:ra,setupComponent:ga,renderComponentRoot:co,setCurrentRenderingInstance:en,isVNode:Bo,normalizeVNode:Ko,getComponentPublicInstance:wa,ensureValidVNode:Bi,pushWarningContext:function(t){ye.push(t)},popWarningContext:function(){ye.pop()}},za=null,Va=null,Fa=null; 34/** 35* @vue/runtime-dom v3.5.16 36* (c) 2018-present Yuxi (Evan) You and Vue contributors 37* @license MIT
38**/ 39let Ha=void 0;const Ga="undefined"!=typeof window&&window.trustedTypes;if(Ga)try{Ha=Ga.createPolicy("vue",{createHTML:t=>t})}catch(t){}const Wa=Ha?t=>Ha.createHTML(t):t=>t,Ua="undefined"!=typeof document?document:null,qa=Ua&&Ua.createElement("template"),Ya={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const r="svg"===e?Ua.createElementNS("http://www.w3.org/2000/svg",t):"mathml"===e?Ua.createElementNS("http://www.w3.org/1998/Math/MathML",t):n?Ua.createElement(t,{is:n}):Ua.createElement(t);return"select"===t&&i&&null!=i.multiple&&r.setAttribute("multiple",i.multiple),r},createText:t=>Ua.createTextNode(t),createComment:t=>Ua.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ua.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,r,o){const a=n?n.previousSibling:e.lastChild;if(r&&(r===o||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),n),r!==o&&(r=r.nextSibling););else{qa.innerHTML=Wa("svg"===i?`<svg>${t}</svg>`:"mathml"===i?`<math>${t}</math>`:t);const r=qa.content;if("svg"===i||"mathml"===i){const t=r.firstChild;for(;t.firstChild;)r.appendChild(t.firstChild);r.removeChild(t)}e.insertBefore(r,n)}return[a?a.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},$a="transition",Xa="animation",Za=Symbol("_vtc"),Ka={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ja=Object(y.h)({},Mn,Ka),Qa=(t=>(t.displayName="Transition",t.props=Ja,t))((t,{slots:e})=>ka(Tn,ns(t),e)),ts=(t,e=[])=>{Object(y.r)(t)?t.forEach(t=>t(...e)):t&&t(...e)},es=t=>!!t&&(Object(y.r)(t)?t.some(t=>t.length>1):t.length>1);function ns(t){const e={};for(const n in t)n in Ka||(e[n]=t[n]);if(!1===t.css)return e;const{name:n="v",type:i,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=t,f=function(t){if(null==t)return null;if(Object(y.D)(t))return[is(t.enter),is(t.leave)];{const e=is(t);return[e,e]}}(r),g=f&&f[0],m=f&&f[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:_,onLeave:x,onLeaveCancelled:w,onBeforeAppear:S=v,onAppear:O=b,onAppearCancelled:M=_}=e,C=(t,e,n,i)=>{t._enterCancelled=i,os(t,e?u:s),os(t,e?c:a),n&&n()},I=(t,e)=>{t._isLeaving=!1,os(t,d),os(t,p),os(t,h),e&&e()},T=t=>(e,n)=>{const r=t?O:b,a=()=>C(e,t,n);ts(r,[e,a]),as(()=>{os(e,t?l:o),rs(e,t?u:s),es(r)||ls(e,i,g,a)})};return Object(y.h)(e,{onBeforeEnter(t){ts(v,[t]),rs(t,o),rs(t,a)},onBeforeAppear(t){ts(S,[t]),rs(t,l),rs(t,c)},onEnter:T(!1),onAppear:T(!0),onLeave(t,e){t._isLeaving=!0;const n=()=>I(t,e);rs(t,d),t._enterCancelled?(rs(t,h),hs()):(hs(),rs(t,h)),as(()=>{t._isLeaving&&(os(t,d),rs(t,p),es(x)||ls(t,i,m,n))}),ts(x,[t,n])},onEnterCancelled(t){C(t,!1,void 0,!0),ts(_,[t])},onAppearCancelled(t){C(t,!0,void 0,!0),ts(M,[t])},onLeaveCancelled(t){I(t),ts(w,[t])}})}function is(t){return Object(y.cb)(t)}function rs(t,e){e.split(/\s+/).forEach(e=>e&&t.classList.add(e)),(t[Za]||(t[Za]=new Set)).add(e)}function os(t,e){e.split(/\s+/).forEach(e=>e&&t.classList.remove(e));const n=t[Za];n&&(n.delete(e),n.size||(t[Za]=void 0))}function as(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let ss=0;function ls(t,e,n,i){const r=t._endId=++ss,o=()=>{r===t._endId&&i()};if(null!=n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=cs(t,e);if(!a)return i();const c=a+"end";let u=0;const d=()=>{t.removeEventListener(c,h),o()},h=e=>{e.target===t&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},s+1),t.addEventListener(c,h)}function cs(t,e){const n=window.getComputedStyle(t),i=t=>(n[t]||"").split(", "),r=i(`${$a}Delay`),o=i(`${$a}Duration`),a=us(r,o),s=i(`${Xa}Delay`),l=i(`${Xa}Duration`),c=us(s,l);let u=null,d=0,h=0;return e===$a?a>0&&(u=$a,d=a,h=o.length):e===Xa?c>0&&(u=Xa,d=c,h=l.length):h=(u=(d=Math.max(a,c))>0?a>c?$a:Xa:null)?u===$a?o.length:l.length:0,{type:u,timeout:d,propCount:h,hasTransform:u===$a&&/\b(transform|all)(,|$)/.test(i(`${$a}Property`).toString())}}function us(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((e,n)=>ds(e)+ds(t[n])))}function ds(t){return"auto"===t?0:1e3*Number(t.slice(0,-1).replace(",","."))}function hs(){return document.body.offsetHeight}const ps=Symbol("_vod"),fs=Symbol("_vsh"),gs={beforeMount(t,{value:e},{transition:n}){t[ps]="none"===t.style.display?"":t.style.display,n&&e?n.beforeEnter(t):ms(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:i}){!e!=!n&&(i?e?(i.beforeEnter(t),ms(t,!0),i.enter(t)):i.leave(t,()=>{ms(t,!1)}
39):ms(t,e))},beforeUnmount(t,{value:e}){ms(t,e)}};function ms(t,e){t.style.display=e?t[ps]:"none",t[fs]=!e}const vs=Symbol("");function ys(t){const e=aa();if(!e)return;const n=e.ut=((n=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(t=>bs(t,n))});const i=()=>{const i=t(e.proxy);e.ce?bs(e.ce,i):function t(e,n){if(128&e.shapeFlag){const i=e.suspense;e=i.activeBranch,i.pendingBranch&&!i.isHydrating&&i.effects.push(()=>{t(i.activeBranch,n)})}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)bs(e.el,n);else if(e.type===Oo)e.children.forEach(e=>t(e,n));else if(e.type===Io){let{el:t,anchor:i}=e;for(;t&&(bs(t,n),t!==i);)t=t.nextSibling}}(e.subTree,i),n(i)};bi(()=>{Be(i)}),yi(()=>{eo(i,y.d,{flush:"post"});const t=new MutationObserver(i);t.observe(e.subTree.el.parentNode,{childList:!0}),wi(()=>t.disconnect())})}function bs(t,e){if(1===t.nodeType){const n=t.style;let i="";for(const t in e)n.setProperty(`--${t}`,e[t]),i+=`--${t}: ${e[t]};`;n[vs]=i}}const _s=/(^|;)\s*display\s*:/;const xs=/\s*!important$/;function ws(t,e,n){if(Object(y.r)(n))n.forEach(n=>ws(t,e,n));else if(null==n&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=function(t,e){const n=Os[e];if(n)return n;let i=Object(y.e)(e);if("filter"!==i&&i in t)return Os[e]=i;i=Object(y.f)(i);for(let n=0;n<Ss.length;n++){const r=Ss[n]+i;if(r in t)return Os[e]=r}return e}(t,e);xs.test(n)?t.setProperty(Object(y.o)(i),n.replace(xs,""),"important"):t[i]=n}}const Ss=["Webkit","Moz","ms"],Os={};const Ms="http://www.w3.org/1999/xlink";function Cs(t,e,n,i,r,o=Object(y.M)(e)){i&&e.startsWith("xlink:")?null==n?t.removeAttributeNS(Ms,e.slice(6,e.length)):t.setAttributeNS(Ms,e,n):null==n||o&&!Object(y.p)(n)?t.removeAttribute(e):t.setAttribute(e,o?"":Object(y.O)(n)?String(n):n)}function Is(t,e,n,i,r){if("innerHTML"===e||"textContent"===e)return void(null!=n&&(t[e]="innerHTML"===e?Wa(n):n));const o=t.tagName;if("value"===e&&"PROGRESS"!==o&&!o.includes("-")){const i="OPTION"===o?t.getAttribute("value")||"":t.value,r=null==n?"checkbox"===t.type?"on":"":String(n);return i===r&&"_value"in t||(t.value=r),null==n&&t.removeAttribute(e),void(t._value=n)}let a=!1;if(""===n||null==n){const i=typeof t[e];"boolean"===i?n=Object(y.p)(n):null==n&&"string"===i?(n="",a=!0):"number"===i&&(n=0,a=!0)}try{t[e]=n}catch(t){0}a&&t.removeAttribute(r||e)}function Ts(t,e,n,i){t.addEventListener(e,n,i)}const ks=Symbol("_vei");function As(t,e,n,i,r=null){const o=t[ks]||(t[ks]={}),a=o[e];if(i&&a)a.value=i;else{const[n,s]=function(t){let e;if(Ds.test(t)){let n;for(e={};n=t.match(Ds);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[":"===t[2]?t.slice(3):Object(y.o)(t.slice(2)),e]}(e);if(i){Ts(t,n,o[e]=function(t,e){const n=t=>{if(t._vts){if(t._vts<=n.attached)return}else t._vts=Date.now();Ce(function(t,e){if(Object(y.r)(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=(()=>{n.call(t),t._stopped=!0}),e.map(t=>e=>!e._stopped&&t&&t(e))}return e}(t,n.value),e,5,[t])};return n.value=t,n.attached=js(),n}(i,r),s)}else a&&(!function(t,e,n,i){t.removeEventListener(e,n,i)}(t,n,a,s),o[e]=void 0)}}const Ds=/(?:Once|Passive|Capture)$/;let Ls=0;const Ps=Promise.resolve(),js=()=>Ls||(Ps.then(()=>Ls=0),Ls=Date.now());const Es=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123;const Ns={}; 40/*! #__NO_SIDE_EFFECTS__ */function Rs(t,e,n){const i=En(t,e);Object(y.F)(i)&&Object(y.h)(i,e);class r extends Vs{constructor(t){super(i,t,n)}}return r.def=i,r} 41/*! #__NO_SIDE_EFFECTS__ */const Bs=(t,e)=>Rs(t,e,Cl),zs="undefined"!=typeof HTMLElement?HTMLElement:class{};class Vs extends zs{constructor(t,e={},n=Ml){super(),this._def=t,this._props=e,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==Ml?this._root=this.shadowRoot:!1!==t.shadowRoot?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Vs){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Ee(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}
41_resolveDef(){if(this._pendingResolve)return;for(let t=0;t<this.attributes.length;t++)this._setAttr(this.attributes[t].name);this._ob=new MutationObserver(t=>{for(const e of t)this._setAttr(e.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(t,e=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:i}=t;let r;if(n&&!Object(y.r)(n))for(const t in n){const e=n[t];(e===Number||e&&e.type===Number)&&(t in this._props&&(this._props[t]=Object(y.cb)(this._props[t])),(r||(r=Object.create(null)))[Object(y.e)(t)]=!0)}this._numberProps=r,this._resolveProps(t),this.shadowRoot&&this._applyStyles(i),this._mount(t)},e=this._def.__asyncLoader;e?this._pendingResolve=e().then(e=>t(this._def=e,!0)):t(this._def)}_mount(t){__VUE_PROD_DEVTOOLS__&&!t.name&&(t.name="VueElement"),this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const e=this._instance&&this._instance.exposed;if(e)for(const t in e)Object(y.n)(this,t)||Object.defineProperty(this,t,{get:()=>Jt(e[t])})}_resolveProps(t){const{props:e}=t,n=Object(y.r)(e)?e:Object.keys(e||{});for(const t of Object.keys(this))"_"!==t[0]&&n.includes(t)&&this._setProp(t,this[t]);for(const t of n.map(y.e))Object.defineProperty(this,t,{get(){return this._getProp(t)},set(e){this._setProp(t,e,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const e=this.hasAttribute(t);let n=e?this.getAttribute(t):Ns;const i=Object(y.e)(t);e&&this._numberProps&&this._numberProps[i]&&(n=Object(y.cb)(n)),this._setProp(i,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,e,n=!0,i=!1){if(e!==this._props[t]&&(e===Ns?delete this._props[t]:(this._props[t]=e,"key"===t&&this._app&&(this._app._ceVNode.key=e)),i&&this._instance&&this._update(),n)){const n=this._ob;n&&n.disconnect(),!0===e?this.setAttribute(Object(y.o)(t),""):"string"==typeof e||"number"==typeof e?this.setAttribute(Object(y.o)(t),e+""):e||this.removeAttribute(Object(y.o)(t)),n&&n.observe(this,{attributes:!0})}}
41_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Sl(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const e=Wo(this._def,Object(y.h)(t,this._props));return this._instance||(e.ce=(t=>{this._instance=t,t.ce=this,t.isCE=!0;const e=(t,e)=>{this.dispatchEvent(new CustomEvent(t,Object(y.F)(e[0])?Object(y.h)({detail:e},e[0]):{detail:e}))};t.emit=((t,...n)=>{e(t,n),Object(y.o)(t)!==t&&e(Object(y.o)(t),n)}),this._setParent()})),e}_applyStyles(t,e){if(!t)return;if(e){if(e===this._def||this._styleChildren.has(e))return;this._styleChildren.add(e)}const n=this._nonce;for(let e=t.length-1;e>=0;e--){const i=document.createElement("style");n&&i.setAttribute("nonce",n),i.textContent=t[e],this.shadowRoot.prepend(i)}}_parseSlots(){const t=this._slots={};let e;for(;e=this.firstChild;){const n=1===e.nodeType&&e.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(e),this.removeChild(e)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),e=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const i=t[n],r=i.getAttribute("name")||"default",o=this._slots[r],a=i.parentNode;if(o)for(const t of o){if(e&&1===t.nodeType){const n=e+"-s",i=document.createTreeWalker(t,1);let r;for(t.setAttribute(n,"");r=i.nextNode();)r.setAttribute(n,"")}a.insertBefore(t,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){0}}function Fs(t){const e=aa(),n=e&&e.ce;return n||null}function Hs(){const t=Fs();return t&&t.shadowRoot}function Gs(t="$style"){{const e=aa();if(!e)return y.b;const n=e.type.__cssModules;if(!n)return y.b;const i=n[t];return i||y.b}}const Ws=new WeakMap,Us=new WeakMap,qs=Symbol("_moveCb"),Ys=Symbol("_enterCb"),$s=(t=>(delete t.props.mode,t))({name:"TransitionGroup",props:Object(y.h)({},Ja,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=aa(),i=Sn();let r,o;return _i(()=>{if(!r.length)return;const e=t.moveClass||`${t.name||"v"}-move`;if(!function(t,e,n){const i=t.cloneNode(),r=t[Za];r&&r.forEach(t=>{t.split(/\s+/).forEach(t=>t&&i.classList.remove(t))});n.split(/\s+/).forEach(t=>t&&i.classList.add(t)),i.style.display="none";const o=1===e.nodeType?e:e.parentNode;o.appendChild(i);const{hasTransform:a}=cs(i);return o.removeChild(i),a}(r[0].el,n.vnode.el,e))return void(r=[]);r.forEach(Xs),r.forEach(Zs);const i=r.filter(Ks);hs(),i.forEach(t=>{const n=t.el,i=n.style;rs(n,e),i.transform=i.webkitTransform=i.transitionDuration="";const r=n[qs]=(t=>{t&&t.target!==n||t&&!/transform$/.test(t.propertyName)||(n.removeEventListener("transitionend",r),n[qs]=null,os(n,e))});n.addEventListener("transitionend",r)}),r=[]}),()=>{const a=Ht(t),s=ns(a);let l=a.tag||Oo;if(r=[],o)for(let t=0;t<o.length;t++){const e=o[t];e.el&&e.el instanceof Element&&(r.push(e),Pn(e,An(e,s,i,n)),Ws.set(e,e.el.getBoundingClientRect()))}o=e.default?jn(e.default()):[];for(let t=0;t<o.length;t++){const e=o[t];null!=e.key&&Pn(e,An(e,s,i,n))}return Wo(l,null,o)}}});function Xs(t){const e=t.el;e[qs]&&e[qs](),e[Ys]&&e[Ys]()}function Zs(t){Us.set(t,t.el.getBoundingClientRect())}function Ks(t){const e=Ws.get(t),n=Us.get(t),i=e.left-n.left,r=e.top-n.top;if(i||r){const e=t.el.style;return e.transform=e.webkitTransform=`translate(${i}px,${r}px)`,e.transitionDuration="0s",t}}const Js=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Object(y.r)(e)?t=>Object(y.q)(e,t):e};function Qs(t){t.target.composing=!0}function tl(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const el=Symbol("_assign"),nl={created(t,{modifiers:{lazy:e,trim:n,number:i}},r){t[el]=Js(r);const o=i||r.props&&"number"===r.props.type;Ts(t,e?"change":"input",e=>{if(e.target.composing)return;let i=t.value;n&&(i=i.trim()),o&&(i=Object(y.S)(i)),t[el](i)}),n&&Ts(t,"change",()=>{t.value=t.value.trim()}),e||(Ts(t,"compositionstart",Qs),Ts(t,"compositionend",tl),Ts(t,"change",tl))},mounted(t,{value:e}){t.value=null==e?"":e},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:i,trim:r,number:o}},a){if(t[el]=Js(a),t.composing)return;const s=null==e?"":e;if((!o&&"number"!==t.type||/^0\d/.test(t.value)?t.value:Object(y.S)(t.value))!==s){if(document.activeElement===t&&"range"!==t.type){if(i&&e===n)return;if(r&&t.value.trim()===s)return}t.value=s}}},il={deep:!0,created(t,e,n){t[el]=Js(n),Ts(t,"change",()=>{const e=t._modelValue,n=ll(t),i=t.checked,r=t[el];if(Object(y.r)(e)){const t=Object(y.R)(e,n),o=-1!==t;if(i&&!o)r(e.concat(n));else if(!i&&o){const n=[...e];n.splice(t,1),r(n)}}else if(Object(y.L)(e)){const t=new Set(e);i?t.add(n):t.delete(n),r(t)}else r(cl(t,i))})},mounted:rl,beforeUpdate(t,e,n){t[el]=Js(n),rl(t,e,n)}};function rl(t,{value:e,oldValue:n},i){let r;if(t._modelValue=e,Object(y.r)(e))r=Object(y.R)(e,i.props.value)>-1;else if(Object(y.L)(e))r=e.has(i.props.value);else{if(e===n)return;r=Object(y.Q)(e,cl(t,!0))}t.checked!==r&&(t.checked=r)}const ol={created(t,{value:e},n){t.checked=Object(y.Q)(e,n.props.value),t[el]=Js(n),Ts(t,"change",()=>{t[el](ll(t))})},beforeUpdate(t,{value:e,oldValue:n},i){t[el]=Js(i),e!==n&&(t.checked=Object(y.Q)(e,i.props.value))}},al={deep:!0,created(t,{value:e,modifiers:{number:n}},i){const r=Object(y.L)(e);Ts(t,"change",()=>{const e=Array.prototype.filter.call(t.options,t=>t.selected).map(t=>n?Object(y.S)(ll(t)):ll(t));t[el](t.multiple?r?new Set(e):e:e[0]),t._assigning=!0,Ee(()=>{t._assigning=!1})}),t[el]=Js(i)},mounted(t,{value:e}){sl(t,e)},beforeUpdate(t,e,n){t[el]=Js(n)},updated(t,{value:e}){t._assigning||sl(t,e)}};function sl(t,e){const n=t.multiple,i=Object(y.r)(e);if(!n||i||Object(y.L)(e)){for(let r=0,o=t.options.length;r<o;r++){const o=t.options[r],a=ll(o);if(n)if(i){const t=typeof a;o.selected="string"===t||"number"===t?e.some(t=>String(t)===String(a)):Object(y.R)(e,a)>-1}else o.selected=e.has(a);else if(Object(y.Q)(ll(o),e))return void(t.selectedIndex!==r&&(t.selectedIndex=r))}n||-1===t.selectedIndex||(t.selectedIndex=-1)}}function ll(t){return"_value"in t?t._value:t.value}function cl(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const ul={created(t,e,n){hl(t,e,n,null,"created")},mounted(t,e,n){hl(t,e,n,null,"mounted")},beforeUpdate(t,e,n,i){hl(t,e,n,i,"beforeUpdate")},updated(t,e,n,i){hl(t,e,n,i,"updated")}};function dl(t,e){switch(t){case"SELECT":return al;case"TEXTAREA":return nl;default:switch(e){case"checkbox":return il;case"radio":return ol;default:return nl}}}function hl(t,e,n,i,r){const o=dl(t.tagName,n.props&&n.props.type)[r];o&&o(t,e,n,i)}const pl=["ctrl","shift","alt","meta"],fl={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&0!==t.button,middle:t=>"button"in t&&1!==t.button,right:t=>"button"in t&&2!==t.button,exact:(t,e)=>pl.some(n=>t[`${n}Key`]&&!e.includes(n))},gl=(t,e)=>{const n=t._withMods||(t._withMods={}),i=e.join(".");return n[i]||(n[i]=((n,...i)=>{for(let t=0;t<e.length;t++){const i=fl[e[t]];if(i&&i(n,e))return}return t(n,...i)}))},ml={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},vl=(t,e)=>{const n=t._withKeys||(t._withKeys={}),i=e.join(".");return n[i]||(n[i]=(n=>{if(!("key"in n))return;const i=Object(y.o)(n.key);return e.some(t=>t===i||ml[t]===i)?t(n):void 0}))},yl=Object(y.h)({patchProp:(t,e,n,i,r,o)=>{const a="svg"===r;"class"===e?function(t,e,n){const i=t[Za];i&&(e=(e?[e,...i]:[...i]).join(" ")),null==e?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}(t,i,a):"style"===e?function(t,e,n){const i=t.style,r=Object(y.N)(n);let o=!1;if(n&&!r){if(e)if(Object(y.N)(e))for(const t of e.split(";")){const e=t.slice(0,t.indexOf(":")).trim();null==n[e]&&ws(i,e,"")}else for(const t in e)null==n[t]&&ws(i,t,"");for(const t in n)"display"===t&&(o=!0),ws(i,t,n[t])}else if(r){if(e!==n){const t=i[vs];t&&(n+=";"+t),i.cssText=n,o=_s.test(n)}}else e&&t.removeAttribute("style");
41ps in t&&(t[ps]=o?i.display:"",t[fs]&&(i.display="none"))}(t,n,i):Object(y.E)(e)?Object(y.C)(e)||As(t,e,0,i,o):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):function(t,e,n,i){if(i)return"innerHTML"===e||"textContent"===e||!!(e in t&&Es(e)&&Object(y.u)(n));if("spellcheck"===e||"draggable"===e||"translate"===e||"autocorrect"===e)return!1;if("form"===e)return!1;if("list"===e&&"INPUT"===t.tagName)return!1;if("type"===e&&"TEXTAREA"===t.tagName)return!1;if("width"===e||"height"===e){const e=t.tagName;if("IMG"===e||"VIDEO"===e||"CANVAS"===e||"SOURCE"===e)return!1}return(!Es(e)||!Object(y.N)(n))&&e in t}(t,e,i,a))?(Is(t,e,i),t.tagName.includes("-")||"value"!==e&&"checked"!==e&&"selected"!==e||Cs(t,e,i,a,0,"value"!==e)):!t._isVueCE||!/[A-Z]/.test(e)&&Object(y.N)(i)?("true-value"===e?t._trueValue=i:"false-value"===e&&(t._falseValue=i),Cs(t,e,i,a)):Is(t,Object(y.e)(e),i,0,e)}},Ya);let bl,_l=!1;function xl(){return bl||(bl=Hr(yl))}function wl(){return bl=_l?bl:Gr(yl),_l=!0,bl}const Sl=(...t)=>{xl().render(...t)},Ol=(...t)=>{wl().hydrate(...t)},Ml=(...t)=>{const e=xl().createApp(...t);const{mount:n}=e;return e.mount=(t=>{const i=Tl(t);if(!i)return;const r=e._component;Object(y.u)(r)||r.render||r.template||(r.template=i.innerHTML),1===i.nodeType&&(i.textContent="");const o=n(i,!1,Il(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o}),e},Cl=(...t)=>{const e=wl().createApp(...t);const{mount:n}=e;return e.mount=(t=>{const e=Tl(t);if(e)return n(e,!0,Il(e))}),e};function Il(t){return t instanceof SVGElement?"svg":"function"==typeof MathMLElement&&t instanceof MathMLElement?"mathml":void 0}function Tl(t){if(Object(y.N)(t)){return document.querySelector(t)}return t}let kl=!1;const Al=()=>{kl||(kl=!0,nl.getSSRProps=(({value:t})=>({value:t})),ol.getSSRProps=(({value:t},e)=>{if(e.props&&Object(y.Q)(e.props.value,t))return{checked:!0}}),il.getSSRProps=(({value:t},e)=>{if(Object(y.r)(t)){if(e.props&&Object(y.R)(t,e.props.value)>-1)return{checked:!0}}else if(Object(y.L)(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}}),ul.getSSRProps=((t,e)=>{if("string"!=typeof e.type)return;const n=dl(e.type.toUpperCase(),e.props&&e.props.type);return n.getSSRProps?n.getSSRProps(t,e):void 0}),gs.getSSRProps=(({value:t})=>{if(!t)return{style:{display:"none"}}}))},Dl=Symbol(""),Ll=Symbol(""),Pl=Symbol(""),jl=Symbol(""),El=Symbol(""),Nl=Symbol(""),Rl=Symbol(""),Bl=Symbol(""),zl=Symbol(""),Vl=Symbol(""),Fl=Symbol(""),Hl=Symbol(""),Gl=Symbol(""),Wl=Symbol(""),Ul=Symbol(""),ql=Symbol(""),Yl=Symbol(""),$l=Symbol(""),Xl=Symbol(""),Zl=Symbol(""),Kl=Symbol(""),Jl=Symbol(""),Ql=Symbol(""),tc=Symbol(""),ec=Symbol(""),nc=Symbol(""),ic=Symbol(""),rc=Symbol(""),oc=Symbol(""),ac=Symbol(""),sc=Symbol(""),lc=Symbol(""),cc=Symbol(""),uc=Symbol(""),dc=Symbol(""),hc=Symbol(""),pc=Symbol(""),fc=Symbol(""),gc=Symbol(""),mc={[Dl]:"Fragment",[Ll]:"Teleport",[Pl]:"Suspense",[jl]:"KeepAlive",[El]:"BaseTransition",[Nl]:"openBlock",[Rl]:"createBlock",[Bl]:"createElementBlock",[zl]:"createVNode",[Vl]:"createElementVNode",[Fl]:"createCommentVNode",[Hl]:"createTextVNode",[Gl]:"createStaticVNode",[Wl]:"resolveComponent",[Ul]:"resolveDynamicComponent",[ql]:"resolveDirective",[Yl]:"resolveFilter",[$l]:"withDirectives",[Xl]:"renderList",[Zl]:"renderSlot",[Kl]:"createSlots",[Jl]:"toDisplayString",[Ql]:"mergeProps",[tc]:"normalizeClass",[ec]:"normalizeStyle",[nc]:"normalizeProps",[ic]:"guardReactiveProps",[rc]:"toHandlers",[oc]:"camelize",[ac]:"capitalize",[sc]:"toHandlerKey",[lc]:"setBlockTracking",[cc]:"pushScopeId",[uc]:"popScopeId",[dc]:"withCtx",[hc]:"unref",[pc]:"isRef",[fc]:"withMemo",[gc]:"isMemoSame"}; 42/** 43* @vue/compiler-core v3.5.16 44* (c) 2018-present Yuxi (Evan) You and Vue contributors 45* @license MIT
46**/const vc={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function yc(t,e,n,i,r,o,a,s=!1,l=!1,c=!1,u=vc){return t&&(s?(t.helper(Nl),t.helper(Tc(t.inSSR,c))):t.helper(Ic(t.inSSR,c)),a&&t.helper($l)),{type:13,tag:e,props:n,children:i,patchFlag:r,dynamicProps:o,directives:a,isBlock:s,disableTracking:l,isComponent:c,loc:u}}function bc(t,e=vc){return{type:17,loc:e,elements:t}}function _c(t,e=vc){return{type:15,loc:e,properties:t}}function xc(t,e){return{type:16,loc:vc,key:Object(y.N)(t)?wc(t,!0):t,value:e}}function wc(t,e=!1,n=vc,i=0){return{type:4,loc:n,content:t,isStatic:e,constType:e?3:i}}function Sc(t,e=vc){return{type:8,loc:e,children:t}}function Oc(t,e=[],n=vc){return{type:14,loc:n,callee:t,arguments:e}}function Mc(t,e,n=!1,i=!1,r=vc){return{type:18,params:t,returns:e,newline:n,isSlot:i,loc:r}}function Cc(t,e,n,i=!0){return{type:19,test:t,consequent:e,alternate:n,newline:i,loc:vc}}function Ic(t,e){return t||e?zl:Vl}function Tc(t,e){return t||e?Rl:Bl}function kc(t,{helper:e,removeHelper:n,inSSR:i}){t.isBlock||(t.isBlock=!0,n(Ic(i,t.isComponent)),e(Nl),e(Tc(i,t.isComponent)))}const Ac=new Uint8Array([123,123]),Dc=new Uint8Array([125,125]);function Lc(t){return t>=97&&t<=122||t>=65&&t<=90}function Pc(t){return 32===t||10===t||9===t||12===t||13===t}function jc(t){return 47===t||62===t||Pc(t)}function Ec(t){const e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}const Nc={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};function Rc(t,{compatConfig:e}){const n=e&&e[t];return"MODE"===t?n||3:n}function Bc(t,e){const n=Rc("MODE",e),i=Rc(t,e);return 3===n?!0===i:!1!==i}function zc(t,e,n,...i){return Bc(t,e)}function Vc(t){throw t}function Fc(t){}function Hc(t,e,n,i){const r=new SyntaxError(String(`https://vuejs.org/error-reference/#compiler-${t}`));return r.code=t,r.loc=e,r}const Gc=t=>4===t.type&&t.isStatic;function Wc(t){switch(t){case"Teleport":case"teleport":return Ll;case"Suspense":case"suspense":return Pl;case"KeepAlive":case"keep-alive":return jl;case"BaseTransition":case"base-transition":return El}}const Uc=/^\d|[^\$\w\xA0-\uFFFF]/,qc=t=>!Uc.test(t),Yc=/[A-Za-z_$\xA0-\uFFFF]/,$c=/[\.\?\w$\xA0-\uFFFF]/,Xc=/\s+[.[]\s*|\s*[.[]\s+/g,Zc=t=>4===t.type?t.content:t.loc.source,Kc=(y.d,t=>{const e=Zc(t).trim().replace(Xc,t=>t.trim());let n=0,i=[],r=0,o=0,a=null;for(let t=0;t<e.length;t++){const s=e.charAt(t);switch(n){case 0:if("["===s)i.push(n),n=1,r++;else if("("===s)i.push(n),n=2,o++;else if(!(0===t?Yc:$c).test(s))return!1;break;case 1:"'"===s||'"'===s||"`"===s?(i.push(n),n=3,a=s):"["===s?r++:"]"===s&&(--r||(n=i.pop()));break;case 2:if("'"===s||'"'===s||"`"===s)i.push(n),n=3,a=s;else if("("===s)o++;else if(")"===s){if(t===e.length-1)return!1;--o||(n=i.pop())}break;case 3:s===a&&(n=i.pop(),a=null)}}return!r&&!o}),Jc=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Qc=(y.d,t=>Jc.test(Zc(t)));function tu(t,e,n=!1){for(let i=0;i<t.props.length;i++){const r=t.props[i];if(7===r.type&&(n||r.exp)&&(Object(y.N)(e)?r.name===e:e.test(r.name)))return r}}function eu(t,e,n=!1,i=!1){for(let r=0;r<t.props.length;r++){const o=t.props[r];if(6===o.type){if(n)continue;if(o.name===e&&(o.value||i))return o}else if("bind"===o.name&&(o.exp||i)&&nu(o.arg,e))return o}}function nu(t,e){return!(!t||!Gc(t)||t.content!==e)}function iu(t){return 5===t.type||2===t.type}function ru(t){return 7===t.type&&"slot"===t.name}function ou(t){return 1===t.type&&3===t.tagType}function au(t){return 1===t.type&&2===t.tagType}const su=new Set([nc,ic]);function lu(t,e,n){let i,r,o=13===t.type?t.props:t.arguments[2],a=[];if(o&&!Object(y.N)(o)&&14===o.type){const t=function t(e,n=[]){if(e&&!Object(y.N)(e)&&14===e.type){const i=e.callee;if(!Object(y.N)(i)&&su.has(i))return t(e.arguments[0],n.concat(e))}return[e,n]}(o);o=t[0],r=(a=t[1])[a.length-1]}if(null==o||Object(y.N)(o))i=_c([e]);else if(14===o.type){const t=o.arguments[0];Object(y.N)(t)||15!==t.type?o.callee===rc?i=Oc(n.helper(Ql),[_c([e]),o]
vendor: 13,675 bytes, line 46
46):o.arguments.unshift(_c([e])):cu(e,t)||t.properties.unshift(e),!i&&(i=o)}else 15===o.type?(cu(e,o)||o.properties.unshift(e),i=o):(i=Oc(n.helper(Ql),[_c([e]),o]),r&&r.callee===ic&&(r=a[a.length-2]));13===t.type?r?r.arguments[0]=i:t.props=i:r?r.arguments[0]=i:t.arguments[2]=i}function cu(t,e){let n=!1;if(4===t.key.type){const i=t.key.content;n=e.properties.some(t=>4===t.key.type&&t.key.content===i)}return n}function uu(t,e){return`_${e}_${t.replace(/[^\w]/g,(e,n)=>"-"===e?"_":t.charCodeAt(n).toString())}`}const du=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,hu={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:y.c,isPreTag:y.c,isIgnoreNewlineTag:y.c,isCustomElement:y.c,onError:Vc,onWarn:Fc,comments:!1,prefixIdentifiers:!1};let pu=hu,fu=null,gu="",mu=null,vu=null,yu="",bu=-1,_u=-1,xu=0,wu=!1,Su=null;const Ou=[],Mu=new class{constructor(t,e){this.stack=t,this.cbs=e,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Ac,this.delimiterClose=Dc,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Ac,this.delimiterClose=Dc}getPos(t){let e=1,n=t+1;for(let i=this.newlines.length-1;i>=0;i--){const r=this.newlines[i];if(t>r){e=i+2,n=t-r;break}}return{column:n,line:e,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){60===t?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||t!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const t=this.index+1-this.delimiterOpen.length;t>this.sectionStart&&this.cbs.ontext(this.sectionStart,t),this.state=3,this.sectionStart=t}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const e=this.sequenceIndex===this.currentSequence.length;if(e?jc(t):(32|t)===this.currentSequence[this.sequenceIndex]){if(!e)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(62===t||Pc(t)){const e=this.index-this.currentSequence.length;if(this.sectionStart<e){const t=this.index;this.index=e,this.cbs.ontext(this.sectionStart,e),this.index=t}return this.sectionStart=e+2,this.stateInClosingTagName(t),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|t)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===Nc.TitleEnd||this.currentSequence===Nc.TextareaEnd&&!this.inSFCRoot?this.inVPre||t!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===t)}stateCDATASequence(t){t===Nc.Cdata[this.sequenceIndex]?++this.sequenceIndex===Nc.Cdata.length&&(this.state=28,this.currentSequence=Nc.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);if(10===e&&this.newlines.push(this.index),e===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Nc.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,e){this.enterRCDATA(t,e),this.state=31}enterRCDATA(t,e){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=e}stateBeforeTagName(t){33===t?(this.state=22,this.sectionStart=this.index+1):63===t?(this.state=24,this.sectionStart=this.index+1):Lc(t)?(this.sectionStart=this.index,0===this.mode?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:this.state=116===t?30:115===t?29:6):47===t?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){jc(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(jc(t)){const e=this.buffer.slice(this.sectionStart,this.index);"template"!==e&&this.enterRCDATA(Ec("</"+e),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){Pc(t)||(62===t?(this.state=1,this.sectionStart=this.index+1):(this.state=Lc(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(62===t||Pc(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){62===t&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){62===t?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===t?this.state=7:60===t&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Pc(t)||this.handleAttrStart(t)}handleAttrStart(t){118===t&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===t||58===t||64===t||35===t?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){62===t?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Pc(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(61===t||jc(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){61===t||jc(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):58===t?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===t&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){61===t||jc(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):91===t?this.state=15:46===t&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){93===t?this.state=14:(61===t||jc(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){61===t||jc(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):46===t&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){61===t?this.state=18:47===t||62===t?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):Pc(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){34===t?(this.state=19,this.sectionStart=this.index+1):39===t?(this.state=20,this.sectionStart=this.index+1):Pc(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,e){(t===e||this.fastForwardTo(e))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===e?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){Pc(t)||62===t?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):39!==t&&60!==t&&61!==t&&96!==t||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){91===t?(this.state=26,this.sequenceIndex=0):this.state=45===t?25:23}stateInDeclaration(t){(62===t||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(62===t||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){45===t?(this.state=28,this.currentSequence=Nc.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(62===t||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Nc.ScriptEnd[3]?this.startSpecial(Nc.ScriptEnd,4):t===Nc.StyleEnd[3]?this.startSpecial(Nc.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Nc.TitleEnd[3]?this.startSpecial(Nc.TitleEnd,4):t===Nc.TextareaEnd[3]?this.startSpecial(Nc.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);switch(10===t&&this.newlines.push(this.index),this.state){case 1:this.stateText(t);break;case 2:this.stateInterpolationOpen(t);break;case 3:this.stateInterpolation(t);break;case 4:this.stateInterpolationClose(t);break;case 31:this.stateSpecialStartSequence(t);break;case 32:this.stateInRCDATA(t);break;case 26:this.stateCDATASequence(t);break;case 19:this.stateInAttrValueDoubleQuotes(t);break;case 12:this.stateInAttrName(t);break;case 13:this.stateInDirName(t);break;case 14:this.stateInDirArg(t);break;case 15:this.stateInDynamicDirArg(t);break;case 16:this.stateInDirModifier(t);break;case 28:this.stateInCommentLike(t);break;case 27:this.stateInSpecialComment(t);break;case 11:this.stateBeforeAttrName(t);break;case 6:this.stateInTagName(t);break;case 34:this.stateInSFCRootTagName(t);break;case 9:this.stateInClosingTagName(t);break;case 5:this.stateBeforeTagName(t);break;case 17:this.stateAfterAttrName(t);break;case 20:this.stateInAttrValueSingleQuotes(t);break;case 18:this.stateBeforeAttrValue(t);break;case 8:this.stateBeforeClosingTagName(t);break;case 10:this.stateAfterClosingTagName(t);break;case 29:this.stateBeforeSpecialS(t);break;case 30:this.stateBeforeSpecialT(t);break;case 21:this.stateInAttrValueNoQuotes(t);break;case 7:this.stateInSelfClosingTag(t);break;case 23:this.stateInDeclaration(t);break;case 22:this.stateBeforeDeclaration(t);break;case 25:this.stateBeforeComment(t);break;case 24:this.stateInProcessingInstruction(t);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(28===this.state?this.currentSequence===Nc.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,e){}}(Ou,{onerr:Uu,ontext(t,e){Au(Tu(t,e),t,e)},ontextentity(t,e,n){Au(t,e,n)},oninterpolation(t,e){if(wu)return Au(Tu(t,e),t,e);let n=t+Mu.delimiterOpen.length,i=e-Mu.delimiterClose.length;for(;Pc(gu.charCodeAt(n));)n++;for(;Pc(gu.charCodeAt(i-1));)i--;let r=Tu(n,i);r.includes("&")&&(r=pu.decodeEntities(r,!1)),Vu({type:5,content:Wu(r,!1,Fu(n,i)),loc:Fu(t,e)})},onopentagname(t,e){const n=Tu(t,e);mu={type:1,tag:n,ns:pu.getNamespace(n,Ou[0],pu.ns),tagType:0,props:[],children:[],loc:Fu(t-1,e),codegenNode:void 0}},onopentagend(t){ku(t)},onclosetag(t,e){const n=Tu(t,e);if(!pu.isVoidTag(n)){let i=!1;for(let t=0;t<Ou.length;t++){if(Ou[t].tag.toLowerCase()===n.toLowerCase()){i=!0,t>0&&Uu(24,Ou[0].loc.start.offset);for(let n=0;n<=t;n++){Du(Ou.shift(),e,n<t)}break}}i||Uu(23,Lu(t,60))}},onselfclosingtag(t){const e=mu.tag;mu.isSelfClosing=!0,ku(t),Ou[0]&&Ou[0].tag===e&&Du(Ou.shift(),t)},onattribname(t,e){vu={type:6,name:Tu(t,e),nameLoc:Fu(t,e),value:void 0,loc:Fu(t)}},ondirname(t,e){const n=Tu(t,e),i="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(wu||""!==i||Uu(26,t),wu||""===i)vu={type:6,name:n,nameLoc:Fu(t,e),value:void 0,loc:Fu(t)};else if(vu={type:7,name:i,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?[wc("prop")]:[],loc:Fu(t)},"pre"===i){wu=Mu.inVPre=!0,Su=mu;const t=mu.props;for(let e=0;e<t.length;e++)7===t[e].type&&(t[e]=Gu(t[e]))}},ondirarg(t,e){if(t===e)return;const n=Tu(t,e);
46if(wu)vu.name+=n,Hu(vu.nameLoc,e);else{const i="["!==n[0];vu.arg=Wu(i?n:n.slice(1,-1),i,Fu(t,e),i?3:0)}},ondirmodifier(t,e){const n=Tu(t,e);if(wu)vu.name+="."+n,Hu(vu.nameLoc,e);else if("slot"===vu.name){const t=vu.arg;t&&(t.content+="."+n,Hu(t.loc,e))}else{const i=wc(n,!0,Fu(t,e));vu.modifiers.push(i)}},onattribdata(t,e){yu+=Tu(t,e),bu<0&&(bu=t),_u=e},onattribentity(t,e,n){yu+=t,bu<0&&(bu=e),_u=n},onattribnameend(t){const e=vu.loc.start.offset,n=Tu(e,t);7===vu.type&&(vu.rawName=n),mu.props.some(t=>(7===t.type?t.rawName:t.name)===n)&&Uu(2,e)},onattribend(t,e){if(mu&&vu){if(Hu(vu.loc,e),0!==t)if(yu.includes("&")&&(yu=pu.decodeEntities(yu,!0)),6===vu.type)"class"===vu.name&&(yu=zu(yu).trim()),1!==t||yu||Uu(13,e),vu.value={type:2,content:yu,loc:1===t?Fu(bu,_u):Fu(bu-1,_u+1)},Mu.inSFCRoot&&"template"===mu.tag&&"lang"===vu.name&&yu&&"html"!==yu&&Mu.enterRCDATA(Ec("</template"),0);else{let t=0;vu.exp=Wu(yu,!1,Fu(bu,_u),0,t),"for"===vu.name&&(vu.forParseResult=function(t){const e=t.loc,n=t.content,i=n.match(du);if(!i)return;const[,r,o]=i,a=(t,n,i=!1)=>{const r=e.start.offset+n,o=r+t.length;return Wu(t,!1,Fu(r,o),0,i?1:0)},s={source:a(o.trim(),n.indexOf(o,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=r.trim().replace(Iu,"").trim();const c=r.indexOf(l),u=l.match(Cu);if(u){l=l.replace(Cu,"").trim();const t=u[1].trim();let e;if(t&&(e=n.indexOf(t,c+l.length),s.key=a(t,e,!0)),u[2]){const i=u[2].trim();i&&(s.index=a(i,n.indexOf(i,s.key?e+t.length:c+l.length),!0))}}l&&(s.value=a(l,c,!0));return s}(vu.exp));let e=-1;"bind"===vu.name&&(e=vu.modifiers.findIndex(t=>"sync"===t.content))>-1&&zc("COMPILER_V_BIND_SYNC",pu,vu.loc,vu.arg.loc.source)&&(vu.name="model",vu.modifiers.splice(e,1))}7===vu.type&&"pre"===vu.name||mu.props.push(vu)}yu="",bu=_u=-1},oncomment(t,e){pu.comments&&Vu({type:3,content:Tu(t,e),loc:Fu(t-4,e+3)})},onend(){const t=gu.length;for(let e=0;e<Ou.length;e++)Du(Ou[e],t-1),Uu(24,Ou[e].loc.start.offset)},oncdata(t,e){0!==Ou[0].ns?Au(Tu(t,e),t,e):Uu(1,t-9)},onprocessinginstruction(t){0===(Ou[0]?Ou[0].ns:pu.ns)&&Uu(21,t-1)}}),Cu=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Iu=/^\(|\)$/g;function Tu(t,e){return gu.slice(t,e)}function ku(t){Mu.inSFCRoot&&(mu.innerLoc=Fu(t+1,t+1)),Vu(mu);const{tag:e,ns:n}=mu;0===n&&pu.isPreTag(e)&&xu++,pu.isVoidTag(e)?Du(mu,t):(Ou.unshift(mu),1!==n&&2!==n||(Mu.inXML=!0)),mu=null}function Au(t,e,n){{const e=Ou[0]&&Ou[0].tag;"script"!==e&&"style"!==e&&t.includes("&")&&(t=pu.decodeEntities(t,!1))}const i=Ou[0]||fu,r=i.children[i.children.length-1];r&&2===r.type?(r.content+=t,Hu(r.loc,n)):i.children.push({type:2,content:t,loc:Fu(e,n)})}function Du(t,e,n=!1){Hu(t.loc,n?Lu(e,60):function(t,e){let n=t;for(;gu.charCodeAt(n)!==e&&n<gu.length-1;)n++;return n}(e,62)+1),Mu.inSFCRoot&&(t.children.length?t.innerLoc.end=Object(y.h)({},t.children[t.children.length-1].loc.end):t.innerLoc.end=Object(y.h)({},t.innerLoc.start),t.innerLoc.source=Tu(t.innerLoc.start.offset,t.innerLoc.end.offset));const{tag:i,ns:r,children:o}=t;if(wu||("slot"===i?t.tagType=2:ju(t)?t.tagType=3:function({tag:t,props:e}){if(pu.isCustomElement(t))return!1;if("component"===t||(n=t.charCodeAt(0),n>64&&n<91)||Wc(t)||pu.isBuiltInComponent&&pu.isBuiltInComponent(t)||pu.isNativeTag&&!pu.isNativeTag(t))return!0;var n;for(let t=0;t<e.length;t++){const n=e[t];if(6===n.type){if("is"===n.name&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(zc("COMPILER_IS_ON_ELEMENT",pu,n.loc))return!0}}else if("bind"===n.name&&nu(n.arg,"is")&&zc("COMPILER_IS_ON_ELEMENT",pu,n.loc))return!0}return!1}(t)&&(t.tagType=1)),Mu.inRCDATA||(t.children=Nu(o)),0===r&&pu.isIgnoreNewlineTag(i)){const t=o[0];t&&2===t.type&&(t.content=t.content.replace(/^\r?\n/,""))}0===r&&pu.isPreTag(i)&&xu--,Su===t&&(wu=Mu.inVPre=!1,Su=null),Mu.inXML&&0===(Ou[0]?Ou[0].ns:pu.ns)&&(Mu.inXML=!1);{const e=t.props;if(!Mu.inSFCRoot&&Bc("COMPILER_NATIVE_TEMPLATE",pu)&&"template"===t.tag&&!ju(t)){const e=Ou[0]||fu,n=e.children.indexOf(t);e.children.splice(n,1,...t.children)}const n=e.find(t=>6===t.type&&"inline-template"===t.name);n&&zc("COMPILER_INLINE_TEMPLATE",pu,n.loc)&&t.children.length&&(n.value={type:2,content:Tu(t.children[0].loc.start.offset,t.children[t.children.length-1].loc.end.offset),loc:n.loc})}}function Lu(t,e){let n=t;for(;gu.charCodeAt(n)!==e&&n>=0;)n--;return n}const Pu=new Set(["if","else","else-if","for","slot"]);function ju({tag:t,props:e}){if("template"===t)for(let t=0;t<e.length;t++)if(7===e[t].type&&Pu.has(e[t].name))return!0;return!1}const Eu=/\r\n/g;function Nu(t,e){const n="preserve"!==pu.whitespace;let i=!1;for(let e=0;e<t.length;e++){const r=t[e];if(2===r.type)if(xu)r.content=r.content.replace(Eu,"\n");else if(Ru(r.content)){const o=t[e-1]&&t[e-1].type,a=t[e+1]&&t[e+1].type;!o||!a||n&&(3===o&&(3===a||1===a)||1===o&&(3===a||1===a&&Bu(r.content)))?(i=!0,t[e]=null):r.content=" "}else n&&(r.content=zu(r.content))}return i?t.filter(Boolean):t}function Ru(t){for(let e=0;e<t.length;e++)if(!Pc(t.charCodeAt(e)))return!1;return!0}function Bu(t){for(let e=0;e<t.length;e++){const n=t.charCodeAt(e);if(10===n||13===n)return!0}return!1}function zu(t){let e="",n=!1;for(let i=0;i<t.length;i++)Pc(t.charCodeAt(i))?n||(e+=" ",n=!0):(e+=t[i],n=!1);return e}function Vu(t){(Ou[0]||fu).children.push(t)}function Fu(t,e){return{start:Mu.getPos(t),end:null==e?e:Mu.getPos(e),source:null==e?e:Tu(t,e)}}function Hu(t,e){t.end=Mu.getPos(e),t.source=Tu(t.start.offset,e)}function Gu(t){const e={type:6,name:t.rawName,nameLoc:Fu(t.loc.start.offset,t.loc.start.offset+t.rawName.length),value:void 0,loc:t.loc};if(t.exp){const n=t.exp.loc;n.end.offset<t.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),e.value={type:2,content:t.exp.content,loc:n}}return e}function Wu(t,e=!1,n,i=0,r=0){return wc(t,e,n,i)}function Uu(t,e,n){pu.onError(Hc(t,Fu(e,e)))}function qu(t,e){if(Mu.reset(),mu=null,vu=null,yu="",bu=-1,_u=-1,Ou.length=0,gu=t,pu=Object(y.h)({},hu),e){let t;for(t in e)null!=e[t]&&(pu[t]=e[t])}Mu.mode="html"===pu.parseMode?1:"sfc"===pu.parseMode?2:0,Mu.inXML=1===pu.ns||2===pu.ns;const n=e&&e.delimiters;n&&(Mu.delimiterOpen=Ec(n[0]),Mu.delimiterClose=Ec(n[1]));const i=fu=function(t,e=""){return{type:0,source:e,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:vc}}([],t);return Mu.parse(gu),i.loc=Fu(0,t.length),i.children=Nu(i.children),fu=null,i}function Yu(t,e){!function t(e,n,i,r=!1,o=!1){const{children:a}=e;const s=[];for(let n=0;n<a.length;n++){const l=a[n];if(1===l.type&&0===l.tagType){const t=r?0:Xu(l,i);if(t>0){if(t>=2){l.codegenNode.patchFlag=-1,s.push(l);continue}}else{const t=l.codegenNode;if(13===t.type){const e=t.patchFlag;if((void 0===e||512===e||1===e)&&Ju(l,i)>=2){const e=Qu(l);e&&(t.props=i.hoist(e))}t.dynamicProps&&(t.dynamicProps=i.hoist(t.dynamicProps))}}}else if(12===l.type){const t=r?0:Xu(l,i);if(t>=2){s.push(l);continue}}if(1===l.type){const n=1===l.tagType;n&&i.scopes.vSlot++,t(l,e,i,!1,o),n&&i.scopes.vSlot--}else if(11===l.type)t(l,e,i,1===l.children.length,!0);else if(9===l.type)for(let n=0;n<l.branches.length;n++)t(l.branches[n],e,i,1===l.branches[n].children.length,o)}let l=!1;const c=[];if(s.length===a.length&&1===e.type)if(0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&Object(y.r)(e.codegenNode.children))e.codegenNode.children=u(bc(e.codegenNode.children)),l=!0;else if(1===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&e.codegenNode.children&&!Object(y.r)(e.codegenNode.children)&&15===e.codegenNode.children.type){const t=d(e.codegenNode,"default");t&&(c.push(i.cached.length),t.returns=u(bc(t.returns)),l=!0)}else if(3===e.tagType&&n&&1===n.type&&1===n.tagType&&n.codegenNode&&13===n.codegenNode.type&&n.codegenNode.children&&!Object(y.r)(n.codegenNode.children)&&15===n.codegenNode.children.type){const t=tu(e,"slot",!0),r=t&&t.arg&&d(n.codegenNode,t.arg);r&&(c.push(i.cached.length),r.returns=u(bc(r.returns)),l=!0)}if(!l)for(const t of s)c.push(i.cached.length),t.codegenNode=i.cache(t.codegenNode);c.length&&1===e.type&&1===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&e.codegenNode.children&&!Object(y.r)(e.codegenNode.children)&&15===e.codegenNode.children.type&&e.codegenNode.children.properties.push(xc("__",wc(JSON.stringify(c),!1)));function u(t){const e=i.cache(t);return o&&i.hmr&&(e.needArraySpread=!0),e}function d(t,e){if(t.children&&!Object(y.r)(t.children)&&15===t.children.type){const n=t.children.properties.find(t=>t.key===e||t.key.content===e);return n&&n.value}}s.length&&i.transformHoist&&i.transformHoist(a,i,e)}(t,void 0,e,$u(t,t.children[0]))}function $u(t,e){const{children:n}=t;return 1===n.length&&1===e.type&&!au(e)}function Xu(t,e){const{constantCache:n}=e;switch(t.type){case 1:if(0!==t.tagType)return 0;const i=n.get(t);if(void 0!==i)return i;const r=t.codegenNode;if(13!==r.type)return 0;if(r.isBlock&&"svg"!==t.tag&&"foreignObject"!==t.tag&&"math"!==t.tag)return 0;if(void 0===r.patchFlag){let i=3;const o=Ju(t,e);if(0===o)return n.set(t,0),0;o<i&&(i=o);for(let r=0;r<t.children.length;r++){const o=Xu(t.children[r],e);if(0===o)return n.set(t,0),0;o<i&&(i=o)}if(i>1)for(let r=0;r<t.props.length;r++){const o=t.props[r];if(7===o.type&&"bind"===o.name&&o.exp){const r=Xu(o.exp,e);if(0===r)return n.set(t,0),0;r<i&&(i=r)}}if(r.isBlock){for(let e=0;e<t.props.length;e++){if(7===t.props[e].type)return n.set(t,0),0}e.removeHelper(Nl),e.removeHelper(Tc(e.inSSR,r.isComponent)),r.isBlock=!1,e.helper(Ic(e.inSSR,r.isComponent))}return n.set(t,i),i}return n.set(t,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Xu(t.content,e);case 4:return t.constType;case 8:let o=3;for(let n=0;n<t.children.length;n++){const i=t.children[n];if(Object(y.N)(i)||Object(y.O)(i))continue;const r=Xu(i,e);if(0===r)return 0;r<o&&(o=r)}return o;case 20:return 2;default:return 0}}const Zu=new Set([tc,ec,nc,ic]);function Ku(t,e){if(14===t.type&&!Object(y.N)(t.callee)&&Zu.has(t.callee)){const n=t.arguments[0];if(4===n.type)return Xu(n,e);if(14===n.type)return Ku(n,e)}return 0}function Ju(t,e){let n=3;const i=Qu(t);if(i&&15===i.type){const{properties:t}=i;for(let i=0;i<t.length;i++){const{key:r,value:o}=t[i],a=Xu(r,e);if(0===a)return a;let s;if(a<n&&(n=a),0===(s=4===o.type?Xu(o,e):14===o.type?Ku(o,e):0))return s;s<n&&(n=s)}}return n}function Qu(t){const e=t.codegenNode;if(13===e.type)return e.props}function td(t,{filename:e="",prefixIdentifiers:n=!1,hoistStatic:i=!1,hmr:r=!1,cacheHandlers:o=!1,nodeTransforms:a=[],directiveTransforms:s={}
46,transformHoist:l=null,isBuiltInComponent:c=y.d,isCustomElement:u=y.d,expressionPlugins:d=[],scopeId:h=null,slotted:p=!0,ssr:f=!1,inSSR:g=!1,ssrCssVars:m="",bindingMetadata:v=y.b,inline:b=!1,isTS:_=!1,onError:x=Vc,onWarn:w=Fc,compatConfig:S}){const O=e.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),M={filename:e,selfName:O&&Object(y.f)(Object(y.e)(O[1])),prefixIdentifiers:n,hoistStatic:i,hmr:r,cacheHandlers:o,nodeTransforms:a,directiveTransforms:s,transformHoist:l,isBuiltInComponent:c,isCustomElement:u,expressionPlugins:d,scopeId:h,slotted:p,ssr:f,inSSR:g,ssrCssVars:m,bindingMetadata:v,inline:b,isTS:_,onError:x,onWarn:w,compatConfig:S,root:t,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:t,childIndex:0,inVOnce:!1,helper(t){const e=M.helpers.get(t)||0;return M.helpers.set(t,e+1),t},removeHelper(t){const e=M.helpers.get(t);if(e){const n=e-1;n?M.helpers.set(t,n):M.helpers.delete(t)}},helperString:t=>`_${mc[M.helper(t)]}`,replaceNode(t){M.parent.children[M.childIndex]=M.currentNode=t},removeNode(t){const e=M.parent.children,n=t?e.indexOf(t):M.currentNode?M.childIndex:-1;t&&t!==M.currentNode?M.childIndex>n&&(M.childIndex--,M.onNodeRemoved()):(M.currentNode=null,M.onNodeRemoved()),M.parent.children.splice(n,1)},onNodeRemoved:y.d,addIdentifiers(t){},removeIdentifiers(t){},hoist(t){Object(y.N)(t)&&(t=wc(t)),M.hoists.push(t);const e=wc(`_hoisted_${M.hoists.length}`,!1,t.loc,2);return e.hoisted=t,e},cache(t,e=!1,n=!1){const i=function(t,e,n=!1,i=!1){return{type:20,index:t,value:e,needPauseTracking:n,inVOnce:i,needArraySpread:!1,loc:vc}}(M.cached.length,t,e,n);return M.cached.push(i),i}};return M.filters=new Set,M}function ed(t,e){const n=td(t,e);nd(t,n),e.hoistStatic&&Yu(t,n),e.ssr||function(t,e){const{helper:n}=e,{children:i}=t;if(1===i.length){const n=i[0];if($u(t,n)&&n.codegenNode){const i=n.codegenNode;13===i.type&&kc(i,e),t.codegenNode=i}else t.codegenNode=n}else if(i.length>1){let i=64;0,t.codegenNode=yc(e,n(Dl),void 0,t.children,i,void 0,void 0,!0,void 0,!1)}}(t,n),t.helpers=new Set([...n.helpers.keys()]),t.components=[...n.components],t.directives=[...n.directives],t.imports=n.imports,t.hoists=n.hoists,t.temps=n.temps,t.cached=n.cached,t.transformed=!0,t.filters=[...n.filters]}function nd(t,e){e.currentNode=t;const{nodeTransforms:n}=e,i=[];for(let r=0;r<n.length;r++){const o=n[r](t,e);if(o&&(Object(y.r)(o)?i.push(...o):i.push(o)),!e.currentNode)return;t=e.currentNode}switch(t.type){case 3:e.ssr||e.helper(Fl);break;case 5:e.ssr||e.helper(Jl);break;case 9:for(let n=0;n<t.branches.length;n++)nd(t.branches[n],e);break;case 10:case 11:case 1:case 0:!function(t,e){let n=0;const i=()=>{n--};for(;n<t.children.length;n++){const r=t.children[n];Object(y.N)(r)||(e.grandParent=e.parent,e.parent=t,e.childIndex=n,e.onNodeRemoved=i,nd(r,e))}}(t,e)}e.currentNode=t;let r=i.length;for(;r--;)i[r]()}function id(t,e){const n=Object(y.N)(t)?e=>e===t:e=>t.test(e);return(t,i)=>{if(1===t.type){const{props:r}=t;if(3===t.tagType&&r.some(ru))return;const o=[];for(let a=0;a<r.length;a++){const s=r[a];if(7===s.type&&n(s.name)){r.splice(a,1),a--;const n=e(t,s,i);n&&o.push(n)}}return o}}}const rd="/*@__PURE__*/",od=t=>`${mc[t]}: _${mc[t]}`;function ad(t,e={}){const n=function(t,{mode:e="function",prefixIdentifiers:n="module"===e,sourceMap:i=!1,filename:r="template.vue.html",scopeId:o=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:h=!1}){const p={mode:e,prefixIdentifiers:n,sourceMap:i,filename:r,scopeId:o,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:h,source:t.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:t=>`_${mc[t]}`,push(t,e=-2,n){p.code+=t},indent(){f(++p.indentLevel)},deindent(t=!1){t?--p.indentLevel:f(--p.indentLevel)},newline(){f(p.indentLevel)}};function f(t){p.push("\n"+" ".repeat(t),0)}return p}(t,e);e.onContextCreated&&e.onContextCreated(n);const{mode:i,push:r,prefixIdentifiers:o,indent:a,deindent:s,newline:l,scopeId:c,ssr:u}=n,d=Array.from(t.helpers),h=d.length>0,p=!o&&"module"!==i;if(function(t,e){const{ssr:n,prefixIdentifiers:i,push:r,newline:o,runtimeModuleName:a,runtimeGlobalName:s,ssrRuntimeModuleName:l}=e,c=s,u=Array.from(t.helpers);if(u.length>0&&(r(`const _Vue = ${c}\n`,-1),t.hoists.length)){const t=[zl,Vl,Fl,Hl,Gl].filter(t=>u.includes(t)).map(od).join(", ");r(`const { ${t} } = _Vue\n`,-1)}(function(t,e){if(!t.length)return;e.pure=!0;const{push:n,newline:i}=e;i();for(let r=0;r<t.length;r++){const o=t[r];o&&(n(`const _hoisted_${r+1} = `),ud(o,e),i())}e.pure=!1})(t.hoists,e),o(),r("return ")}(t,n),r(`function ${u?"ssrRender":"render"}(${(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),a(),p&&(r("with (_ctx) {"),a(),h&&(r(`const { ${d.map(od).join(", ")} } = _Vue\n`,-1),l())),t.components.length&&(sd(t.components,"component",n),(t.directives.length||t.temps>0)&&l()),t.directives.length&&(sd(t.directives,"directive",n),t.temps>0&&l()),t.filters&&t.filters.length&&(l(),sd(t.filters,"filter",n),l()),t.temps>0){r("let ");for(let e=0;e<t.temps;e++)r(`${e>0?", ":""}_temp${e}`)}return(t.components.length||t.directives.length||t.temps)&&(r("\n",0),l()),u||r("return "),t.codegenNode?ud(t.codegenNode,n):r("null"),p&&(s(),r("}")),s(),r("}"),{ast:t,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function sd(t,e,{helper:n,push:i,newline:r,isTS:o}){const a=n("filter"===e?Yl:"component"===e?Wl:ql);for(let n=0;n<t.length;n++){let s=t[n];const l=s.endsWith("__self");l&&(s=s.slice(0,-6)),i(`const ${uu(s,e)} = ${a}(${JSON.stringify(s)}${l?", true":""})${o?"!":""}`),n<t.length-1&&r()}}function ld(t,e){const n=t.length>3||!1;e.push("["),n&&e.indent(),cd(t,e,n),n&&e.deindent(),e.push("]")}function cd(t,e,n=!1,i=!0){const{push:r,newline:o}=e;for(let a=0;a<t.length;a++){const s=t[a];Object(y.N)(s)?r(s,-3):Object(y.r)(s)?ld(s,e):ud(s,e),a<t.length-1&&(n?(i&&r(","),o()):i&&r(", "))}}
46function ud(t,e){if(Object(y.N)(t))e.push(t,-3);else if(Object(y.O)(t))e.push(e.helper(t));else switch(t.type){case 1:case 9:case 11:ud(t.codegenNode,e);break;case 2:!function(t,e){e.push(JSON.stringify(t.content),-3,t)}(t,e);break;case 4:dd(t,e);break;case 5:!function(t,e){const{push:n,helper:i,pure:r}=e;r&&n(rd);n(`${i(Jl)}(`),ud(t.content,e),n(")")}(t,e);break;case 12:ud(t.codegenNode,e);break;case 8:hd(t,e);break;case 3:!function(t,e){const{push:n,helper:i,pure:r}=e;r&&n(rd);n(`${i(Fl)}(${JSON.stringify(t.content)})`,-3,t)}(t,e);break;case 13:!function(t,e){const{push:n,helper:i,pure:r}=e,{tag:o,props:a,children:s,patchFlag:l,dynamicProps:c,directives:u,isBlock:d,disableTracking:h,isComponent:p}=t;let f;l&&(f=String(l));u&&n(i($l)+"(");d&&n(`(${i(Nl)}(${h?"true":""}), `);r&&n(rd);const g=d?Tc(e.inSSR,p):Ic(e.inSSR,p);n(i(g)+"(",-2,t),cd(function(t){let e=t.length;for(;e--&&null==t[e];);return t.slice(0,e+1).map(t=>t||"null")}([o,a,s,f,c]),e),n(")"),d&&n(")");u&&(n(", "),ud(u,e),n(")"))}(t,e);break;case 14:!function(t,e){const{push:n,helper:i,pure:r}=e,o=Object(y.N)(t.callee)?t.callee:i(t.callee);r&&n(rd);n(o+"(",-2,t),cd(t.arguments,e),n(")")}(t,e);break;case 15:!function(t,e){const{push:n,indent:i,deindent:r,newline:o}=e,{properties:a}=t;if(!a.length)return void n("{}",-2,t);const s=a.length>1||!1;n(s?"{":"{ "),s&&i();for(let t=0;t<a.length;t++){const{key:i,value:r}=a[t];pd(i,e),n(": "),ud(r,e),t<a.length-1&&(n(","),o())}s&&r(),n(s?"}":" }")}(t,e);break;case 17:!function(t,e){ld(t.elements,e)}(t,e);break;case 18:!function(t,e){const{push:n,indent:i,deindent:r}=e,{params:o,returns:a,body:s,newline:l,isSlot:c}=t;c&&n(`_${mc[dc]}(`);n("(",-2,t),Object(y.r)(o)?cd(o,e):o&&ud(o,e);n(") => "),(l||s)&&(n("{"),i());a?(l&&n("return "),Object(y.r)(a)?ld(a,e):ud(a,e)):s&&ud(s,e);(l||s)&&(r(),n("}"));c&&(t.isNonScopedSlot&&n(", undefined, true"),n(")"))}(t,e);break;case 19:!function(t,e){const{test:n,consequent:i,alternate:r,newline:o}=t,{push:a,indent:s,deindent:l,newline:c}=e;if(4===n.type){const t=!qc(n.content);t&&a("("),dd(n,e),t&&a(")")}else a("("),ud(n,e),a(")");o&&s(),e.indentLevel++,o||a(" "),a("? "),ud(i,e),e.indentLevel--,o&&c(),o||a(" "),a(": ");const u=19===r.type;u||e.indentLevel++;ud(r,e),u||e.indentLevel--;o&&l(!0)}(t,e);break;case 20:!function(t,e){const{push:n,helper:i,indent:r,deindent:o,newline:a}=e,{needPauseTracking:s,needArraySpread:l}=t;l&&n("[...(");n(`_cache[${t.index}] || (`),s&&(r(),n(`${i(lc)}(-1`),t.inVOnce&&n(", true"),n("),"),a(),n("("));n(`_cache[${t.index}] = `),ud(t.value,e),s&&(n(`).cacheIndex = ${t.index},`),a(),n(`${i(lc)}(1),`),a(),n(`_cache[${t.index}]`),o());n(")"),l&&n(")]")}(t,e);break;case 21:cd(t.body,e,!0,!1);break;case 22:case 23:case 24:case 25:case 26:case 10:break;default:0}}function dd(t,e){const{content:n,isStatic:i}=t;e.push(i?JSON.stringify(n):n,-3,t)}function hd(t,e){for(let n=0;n<t.children.length;n++){const i=t.children[n];Object(y.N)(i)?e.push(i,-3):ud(i,e)}}function pd(t,e){const{push:n}=e;if(8===t.type)n("["),hd(t,e),n("]");else if(t.isStatic){n(qc(t.content)?t.content:JSON.stringify(t.content),-2,t)}else n(`[${t.content}]`,-3,t)}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const fd=id(/^(if|else|else-if)$/,(t,e,n)=>(function(t,e,n,i){if(!("else"===e.name||e.exp&&e.exp.content.trim())){const i=e.exp?e.exp.loc:t.loc;n.onError(Hc(28,e.loc)),e.exp=wc("true",!1,i)}0;if("if"===e.name){const o=gd(t,e),a={type:9,loc:(r=t.loc,Fu(r.start.offset,r.end.offset)),branches:[o]};if(n.replaceNode(a),i)return i(a,o,!0)}else{const r=n.parent.children;let o=r.indexOf(t);for(;o-- >=-1;){const a=r[o];if(a&&3===a.type)n.removeNode(a);else{if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){"else-if"===e.name&&void 0===a.branches[a.branches.length-1].condition&&n.onError(Hc(30,t.loc)),n.removeNode();const r=gd(t,e);0,a.branches.push(r);const o=i&&i(a,r,!1);nd(r,n),o&&o(),n.currentNode=null}else n.onError(Hc(30,t.loc));break}n.removeNode(a)}}}var r})(t,e,n,(t,e,i)=>{const r=n.parent.children;let o=r.indexOf(t),a=0;for(;o-- >=0;){const t=r[o];t&&9===t.type&&(a+=t.branches.length)}return()=>{if(i)t.codegenNode=md(e,a,n);else{(function(t){for(;;)if(19===t.type){if(19!==t.alternate.type)return t;t=t.alternate}else 20===t.type&&(t=t.value)}(t.codegenNode)).alternate=md(e,a+t.branches.length-1,n)}}}));function gd(t,e){const n=3===t.tagType;return{type:10,loc:t.loc,condition:"else"===e.name?void 0:e.exp,children:n&&!tu(t,"for")?t.children:[t],userKey:eu(t,"key"),isTemplateIf:n}}function md(t,e,n){return t.condition?Cc(t.condition,vd(t,e,n),Oc(n.helper(Fl),['""',"true"])):vd(t,e,n)}function vd(t,e,n){const{helper:i}=n,r=xc("key",wc(`${e}`,!1,vc,2)),{children:o}=t,a=o[0];if(1!==o.length||1!==a.type){if(1===o.length&&11===a.type){const t=a.codegenNode;return lu(t,r,n),t}{let e=64;
46return yc(n,i(Dl),_c([r]),o,e,void 0,void 0,!0,!1,!1,t.loc)}}{const t=a.codegenNode,e=14===(s=t).type&&s.callee===fc?s.arguments[1].returns:s;return 13===e.type&&kc(e,n),lu(e,r,n),t}var s}const yd=(t,e,n)=>{const{modifiers:i,loc:r}=t,o=t.arg;let{exp:a}=t;if(a&&4===a.type&&!a.content.trim()&&(a=void 0),!a){if(4!==o.type||!o.isStatic)return n.onError(Hc(52,o.loc)),{props:[xc(o,wc("",!0,r))]};bd(t),a=t.exp}return 4!==o.type?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),i.some(t=>"camel"===t.content)&&(4===o.type?o.isStatic?o.content=Object(y.e)(o.content):o.content=`${n.helperString(oc)}(${o.content})`:(o.children.unshift(`${n.helperString(oc)}(`),o.children.push(")"))),n.inSSR||(i.some(t=>"prop"===t.content)&&_d(o,"."),i.some(t=>"attr"===t.content)&&_d(o,"^")),{props:[xc(o,a)]}},bd=(t,e)=>{const n=t.arg,i=Object(y.e)(n.content);t.exp=wc(i,!1,n.loc)},_d=(t,e)=>{4===t.type?t.isStatic?t.content=e+t.content:t.content=`\`${e}\${${t.content}}\``:(t.children.unshift(`'${e}' + (`),t.children.push(")"))},xd=id("for",(t,e,n)=>{const{helper:i,removeHelper:r}=n;return function(t,e,n,i){if(!e.exp)return void n.onError(Hc(31,e.loc));const r=e.forParseResult;if(!r)return void n.onError(Hc(32,e.loc));wd(r,n);const{addIdentifiers:o,removeIdentifiers:a,scopes:s}=n,{source:l,value:c,key:u,index:d}=r,h={type:11,loc:e.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:r,children:ou(t)?t.children:[t]};n.replaceNode(h),s.vFor++;const p=i&&i(h);return()=>{s.vFor--,p&&p()}}(t,e,n,e=>{const o=Oc(i(Xl),[e.source]),a=ou(t),s=tu(t,"memo"),l=eu(t,"key",!1,!0);l&&7===l.type&&!l.exp&&bd(l);let c=l&&(6===l.type?l.value?wc(l.value.content,!0):void 0:l.exp);const u=l&&c?xc("key",c):null,d=4===e.source.type&&e.source.constType>0,h=d?64:l?128:256;return e.codegenNode=yc(n,i(Dl),void 0,o,h,void 0,void 0,!0,!d,!1,t.loc),()=>{let l;const{children:h}=e;const p=1!==h.length||1!==h[0].type,f=au(t)?t:a&&1===t.children.length&&au(t.children[0])?t.children[0]:null;if(f?(l=f.codegenNode,a&&u&&lu(l,u,n)):p?l=yc(n,i(Dl),u?_c([u]):void 0,t.children,64,void 0,void 0,!0,void 0,!1):(l=h[0].codegenNode,a&&u&&lu(l,u,n),l.isBlock!==!d&&(l.isBlock?(r(Nl),r(Tc(n.inSSR,l.isComponent))):r(Ic(n.inSSR,l.isComponent))),l.isBlock=!d,l.isBlock?(i(Nl),i(Tc(n.inSSR,l.isComponent))):i(Ic(n.inSSR,l.isComponent))),s){const t=Mc(Sd(e.parseResult,[wc("_cached")]));
46t.body=function(t){return{type:21,body:t,loc:vc}}([Sc(["const _memo = (",s.exp,")"]),Sc(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(gc)}(_cached, _memo)) return _cached`]),Sc(["const _item = ",l]),wc("_item.memo = _memo"),wc("return _item")]),o.arguments.push(t,wc("_cache"),wc(String(n.cached.length))),n.cached.push(null)}else o.arguments.push(Mc(Sd(e.parseResult),l,!0))}})});function wd(t,e){t.finalized||(t.finalized=!0)}function Sd({value:t,key:e,index:n},i=[]){return function(t){let e=t.length;for(;e--&&!t[e];);return t.slice(0,e+1).map((t,e)=>t||wc("_".repeat(e+1),!1))}([t,e,n,...i])}const Od=wc("undefined",!1),Md=(t,e)=>{if(1===t.type&&(1===t.tagType||3===t.tagType)){const n=tu(t,"slot");if(n)return n.exp,e.scopes.vSlot++,()=>{e.scopes.vSlot--}}},Cd=(t,e,n,i)=>Mc(t,n,!1,!0,n.length?n[0].loc:i);function Id(t,e,n=Cd){e.helper(dc);const{children:i,loc:r}=t,o=[],a=[];let s=e.scopes.vSlot>0||e.scopes.vFor>0;const l=tu(t,"slot",!0);if(l){const{arg:t,exp:e}=l;t&&!Gc(t)&&(s=!0),o.push(xc(t||wc("default",!0),n(e,void 0,i,r)))}let c=!1,u=!1;const d=[],h=new Set;let p=0;for(let t=0;t<i.length;t++){const r=i[t];let f;if(!ou(r)||!(f=tu(r,"slot",!0))){3!==r.type&&d.push(r);continue}if(l){e.onError(Hc(37,f.loc));break}c=!0;const{children:g,loc:m}=r,{arg:v=wc("default",!0),exp:y,loc:b}=f;let _;Gc(v)?_=v?v.content:"default":s=!0;const x=tu(r,"for"),w=n(y,x,g,m);let S,O;if(S=tu(r,"if"))s=!0,a.push(Cc(S.exp,Td(v,w,p++),Od));else if(O=tu(r,/^else(-if)?$/,!0)){let n,r=t;for(;r--&&3===(n=i[r]).type;);if(n&&ou(n)&&tu(n,/^(else-)?if$/)){let t=a[a.length-1];for(;19===t.alternate.type;)t=t.alternate;t.alternate=O.exp?Cc(O.exp,Td(v,w,p++),Od):Td(v,w,p++)}else e.onError(Hc(30,O.loc))}else if(x){s=!0;const t=x.forParseResult;t?(wd(t),a.push(Oc(e.helper(Xl),[t.source,Mc(Sd(t),Td(v,w),!0)]))):e.onError(Hc(32,x.loc))}else{if(_){if(h.has(_)){e.onError(Hc(38,b));continue}h.add(_),"default"===_&&(u=!0)}o.push(xc(v,w))}}if(!l){const t=(t,i)=>{const o=n(t,void 0,i,r);return e.compatConfig&&(o.isNonScopedSlot=!0),xc("default",o)};c?d.length&&d.some(t=>(function t(e){if(2!==e.type&&12!==e.type)return!0;return 2===e.type?!!e.content.trim():t(e.content)})(t))&&(u?e.onError(Hc(39,d[0].loc)):o.push(t(void 0,d))):o.push(t(void 0,i))}const f=s?2:function t(e){for(let n=0;n<e.length;n++){const i=e[n];switch(i.type){case 1:if(2===i.tagType||t(i.children))return!0;break;case 9:if(t(i.branches))return!0;break;case 10:case 11:if(t(i.children))return!0}}return!1}(t.children)?3:1;let g=_c(o.concat(xc("_",wc(f+"",!1))),r);return a.length&&(g=Oc(e.helper(Kl),[g,bc(a)])),{slots:g,hasDynamicSlots:s}}function Td(t,e,n){const i=[xc("name",t),xc("fn",e)];return null!=n&&i.push(xc("key",wc(String(n),!0))),_c(i)}const kd=new WeakMap,Ad=(t,e)=>(function(){if(1!==(t=e.currentNode).type||0!==t.tagType&&1!==t.tagType)return;const{tag:n,props:i}=t,r=1===t.tagType;let o=r?function(t,e,n=!1){let{tag:i}=t;const r=jd(i),o=eu(t,"is",!1,!0);if(o)if(r||Bc("COMPILER_IS_ON_ELEMENT",e)){let t;if(6===o.type?t=o.value&&wc(o.value.content,!0):(t=o.exp)||(t=wc("is",!1,o.arg.loc)),t)return Oc(e.helper(Ul),[t])}else 6===o.type&&o.value.content.startsWith("vue:")&&(i=o.value.content.slice(4));const a=Wc(i)||e.isBuiltInComponent(i);if(a)return n||e.helper(a),a;return e.helper(Wl),e.components.add(i),uu(i,"component")}(t,e):`"${n}"`;const a=Object(y.D)(o)&&o.callee===Ul;let s,l,c,u,d,h=0,p=a||o===Ll||o===Pl||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(i.length>0){const n=Dd(t,e,void 0,r,a);s=n.props,h=n.patchFlag,u=n.dynamicPropNames;const i=n.directives;d=i&&i.length?bc(i.map(t=>(function(t,e){const n=[],i=kd.get(t);i?n.push(e.helperString(i)):(e.helper(ql),e.directives.add(t.name),n.push(uu(t.name,"directive")));const{loc:r}=t;t.exp&&n.push(t.exp);t.arg&&(t.exp||n.push("void 0"),n.push(t.arg));if(Object.keys(t.modifiers).length){t.arg||(t.exp||n.push("void 0"),n.push("void 0"));const e=wc("true",!1,r);n.push(_c(t.modifiers.map(t=>xc(t,e)),r))}return bc(n,t.loc)})(t,e))):void 0,n.shouldUseBlock&&(p=!0)}if(t.children.length>0){if(o===jl&&(p=!0,h|=1024),r&&o!==Ll&&o!==jl){const{slots:n,hasDynamicSlots:i}=Id(t,e);l=n,i&&(h|=1024)}else if(1===t.children.length&&o!==Ll){const n=t.children[0],i=n.type,r=5===i||8===i;r&&0===Xu(n,e)&&(h|=1),l=r||2===i?n:t.children}else l=t.children}u&&u.length&&(c=function(t){let e="[";for(let n=0,i=t.length;n<i;n++)e+=JSON.stringify(t[n]),n<i-1&&(e+=", ");return e+"]"}(u)),t.codegenNode=yc(e,o,s,l,0===h?void 0:h,c,d,!!p,!1,r,t.loc)});function Dd(t,e,n=t.props,i,r,o=!1){const{tag:a,loc:s,children:l}=t;
46let c=[];const u=[],d=[],h=l.length>0;let p=!1,f=0,g=!1,m=!1,v=!1,b=!1,_=!1,x=!1;const w=[],S=t=>{c.length&&(u.push(_c(Ld(c),s)),c=[]),t&&u.push(t)},O=()=>{e.scopes.vFor>0&&c.push(xc(wc("ref_for",!0),wc("true")))},M=({key:t,value:n})=>{if(Gc(t)){const o=t.content,a=Object(y.E)(o);if(!a||i&&!r||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||Object(y.J)(o)||(b=!0),a&&Object(y.J)(o)&&(x=!0),a&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&Xu(n,e)>0)return;"ref"===o?g=!0:"class"===o?m=!0:"style"===o?v=!0:"key"===o||w.includes(o)||w.push(o),!i||"class"!==o&&"style"!==o||w.includes(o)||w.push(o)}else _=!0};for(let r=0;r<n.length;r++){const l=n[r];if(6===l.type){const{loc:t,name:n,nameLoc:i,value:r}=l;let o=!0;if("ref"===n&&(g=!0,O()),"is"===n&&(jd(a)||r&&r.content.startsWith("vue:")||Bc("COMPILER_IS_ON_ELEMENT",e)))continue;c.push(xc(wc(n,!0,i),wc(r?r.content:"",o,r?r.loc:t)))}else{const{name:n,arg:r,exp:g,loc:m,modifiers:v}=l,b="bind"===n,x="on"===n;if("slot"===n){i||e.onError(Hc(40,m));continue}if("once"===n||"memo"===n)continue;if("is"===n||b&&nu(r,"is")&&(jd(a)||Bc("COMPILER_IS_ON_ELEMENT",e)))continue;if(x&&o)continue;if((b&&nu(r,"key")||x&&h&&nu(r,"vue:before-update"))&&(p=!0),b&&nu(r,"ref")&&O(),!r&&(b||x)){if(_=!0,g)if(b){if(S(),Bc("COMPILER_V_BIND_OBJECT_ORDER",e)){u.unshift(g);continue}O(),S(),u.push(g)}else S({type:14,loc:m,callee:e.helper(rc),arguments:i?[g]:[g,"true"]});else e.onError(Hc(b?34:35,m));continue}b&&v.some(t=>"prop"===t.content)&&(f|=32);const w=e.directiveTransforms[n];if(w){const{props:n,needRuntime:i}=w(l,t,e);!o&&n.forEach(M),x&&r&&!Gc(r)?S(_c(n,s)):c.push(...n),i&&(d.push(l),Object(y.O)(i)&&kd.set(l,i))}else Object(y.t)(n)||(d.push(l),h&&(p=!0))}}let C=void 0;if(u.length?(S(),C=u.length>1?Oc(e.helper(Ql),u,s):u[0]):c.length&&(C=_c(Ld(c),s)),_?f|=16:(m&&!i&&(f|=2),v&&!i&&(f|=4),w.length&&(f|=8),b&&(f|=32)),p||0!==f&&32!==f||!(g||x||d.length>0)||(f|=512),!e.inSSR&&C)switch(C.type){case 15:let t=-1,n=-1,i=!1;for(let e=0;e<C.properties.length;e++){const r=C.properties[e].key;Gc(r)?"class"===r.content?t=e:"style"===r.content&&(n=e):r.isHandlerKey||(i=!0)}const r=C.properties[t],o=C.properties[n];i?C=Oc(e.helper(nc),[C]):(r&&!Gc(r.value)&&(r.value=Oc(e.helper(tc),[r.value])),o&&(v||4===o.value.type&&"["===o.value.content.trim()[0]||17===o.value.type)&&(o.value=Oc(e.helper(ec),[o.value])));break;case 14:break;default:C=Oc(e.helper(nc),[Oc(e.helper(ic),[C])])}return{props:C,directives:d,patchFlag:f,dynamicPropNames:w,shouldUseBlock:p}}function Ld(t){const e=new Map,n=[];for(let i=0;i<t.length;i++){const r=t[i];if(8===r.key.type||!r.key.isStatic){n.push(r);continue}const o=r.key.content,a=e.get(o);a?("style"===o||"class"===o||Object(y.E)(o))&&Pd(a,r):(e.set(o,r),n.push(r))}return n}function Pd(t,e){17===t.value.type?t.value.elements.push(e.value):t.value=bc([t.value,e.value],t.loc)}function jd(t){return"component"===t||"Component"===t}const Ed=(t,e)=>{if(au(t)){const{children:n,loc:i}=t,{slotName:r,slotProps:o}=function(t,e){let n='"default"',i=void 0;const r=[];for(let e=0;e<t.props.length;e++){const i=t.props[e];if(6===i.type)i.value&&("name"===i.name?n=JSON.stringify(i.value.content):(i.name=Object(y.e)(i.name),r.push(i)));else if("bind"===i.name&&nu(i.arg,"name")){if(i.exp)n=i.exp;else if(i.arg&&4===i.arg.type){const t=Object(y.e)(i.arg.content);n=i.exp=wc(t,!1,i.arg.loc)}}else"bind"===i.name&&i.arg&&Gc(i.arg)&&(i.arg.content=Object(y.e)(i.arg.content)),r.push(i)}if(r.length>0){const{props:n,directives:o}=Dd(t,e,r,!1,!1);i=n,o.length&&e.onError(Hc(36,o[0].loc))}return{slotName:n,slotProps:i}}(t,e),a=[e.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let s=2;o&&(a[2]=o,s=3),n.length&&(a[3]=Mc([],n,!1,!1,i),s=4),e.scopeId&&!e.slotted&&(s=5),a.splice(s),t.codegenNode=Oc(e.helper(Zl),a,i)}};const Nd=(t,e,n,i)=>{const{loc:r,modifiers:o,arg:a}=t;let s;if(t.exp||o.length||n.onError(Hc(35,r)),4===a.type)if(a.isStatic){let t=a.content;0,t.startsWith("vue:")&&(t=`vnode-${t.slice(4)}`),s=wc(0!==e.tagType||t.startsWith("vnode")||!/[A-Z]/.test(t)?Object(y.bb)(Object(y.e)(t)):`on:${t}`,!0,a.loc)}else s=Sc([`${n.helperString(sc)}(`,a,")"]);else(s=a).children.unshift(`${n.helperString(sc)}(`),s.children.push(")");let l=t.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const t=Kc(l),e=!(t||Qc(l)),n=l.content.includes(";");0,(e||c&&t)&&(l=Sc([`${e?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[xc(s,l||wc("() => {}",!1,r))]};return i&&(u=i(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(t=>t.key.isHandlerKey=!0),u},Rd=(t,e)=>{if(0===t.type||1===t.type||11===t.type||10===t.type)return()=>{const n=t.children;let i=void 0,r=!1;for(let t=0;t<n.length;t++){const e=n[t];if(iu(e)){r=!0;for(let r=t+1;r<n.length;r++){const o=n[r];if(!iu(o)){i=void 0;break}i||(i=n[t]=Sc([e],e.loc)),i.children.push(" + ",o),n.splice(r,1),r--}}}if(r&&(1!==n.length||0!==t.type&&(1!==t.type||0!==t.tagType||t.props.find(t=>7===t.type&&!e.directiveTransforms[t.name])||"template"===t.tag)))for(let t=0;t<n.length;t++){const i=n[t];
46if(iu(i)||8===i.type){const r=[];2===i.type&&" "===i.content||r.push(i),e.ssr||0!==Xu(i,e)||r.push("1"),n[t]={type:12,content:i,loc:i.loc,codegenNode:Oc(e.helper(Hl),r)}}}}},Bd=new WeakSet,zd=(t,e)=>{if(1===t.type&&tu(t,"once",!0)){if(Bd.has(t)||e.inVOnce||e.inSSR)return;return Bd.add(t),e.inVOnce=!0,e.helper(lc),()=>{e.inVOnce=!1;const t=e.currentNode;t.codegenNode&&(t.codegenNode=e.cache(t.codegenNode,!0,!0))}}},Vd=(t,e,n)=>{const{exp:i,arg:r}=t;if(!i)return n.onError(Hc(41,t.loc)),Fd();const o=i.loc.source.trim(),a=4===i.type?i.content:o,s=n.bindingMetadata[o];if("props"===s||"props-aliased"===s)return n.onError(Hc(44,i.loc)),Fd();if(!a.trim()||!Kc(i))return n.onError(Hc(42,i.loc)),Fd();const l=r||wc("modelValue",!0),c=r?Gc(r)?`onUpdate:${Object(y.e)(r.content)}`:Sc(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Sc([`${n.isTS?"($event: any)":"$event"} => ((`,i,") = $event)"]);const d=[xc(l,t.exp),xc(c,u)];if(t.modifiers.length&&1===e.tagType){const e=t.modifiers.map(t=>t.content).map(t=>(qc(t)?t:JSON.stringify(t))+": true").join(", "),n=r?Gc(r)?`${r.content}Modifiers`:Sc([r,' + "Modifiers"']):"modelModifiers";d.push(xc(n,wc(`{ ${e} }`,!1,t.loc,2)))}return Fd(d)};function Fd(t=[]){return{props:t}}const Hd=/[\w).+\-_$\]]/,Gd=(t,e)=>{Bc("COMPILER_FILTERS",e)&&(5===t.type?Wd(t.content,e):1===t.type&&t.props.forEach(t=>{7===t.type&&"for"!==t.name&&t.exp&&Wd(t.exp,e)}))};function Wd(t,e){if(4===t.type)Ud(t,e);else for(let n=0;n<t.children.length;n++){const i=t.children[n];"object"==typeof i&&(4===i.type?Ud(i,e):8===i.type?Wd(t,e):5===i.type&&Wd(i.content,e))}}function Ud(t,e){const n=t.content;let i,r,o,a,s=!1,l=!1,c=!1,u=!1,d=0,h=0,p=0,f=0,g=[];for(o=0;o<n.length;o++)if(r=i,i=n.charCodeAt(o),s)39===i&&92!==r&&(s=!1);else if(l)34===i&&92!==r&&(l=!1);else if(c)96===i&&92!==r&&(c=!1);else if(u)47===i&&92!==r&&(u=!1);else if(124!==i||124===n.charCodeAt(o+1)||124===n.charCodeAt(o-1)||d||h||p){switch(i){case 34:l=!0;break;case 39:s=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:h++;break;case 93:h--;break;case 123:d++;break;case 125:d--}if(47===i){let t,e=o-1;for(;e>=0&&" "===(t=n.charAt(e));e--);t&&Hd.test(t)||(u=!0)}}else void 0===a?(f=o+1,a=n.slice(0,o).trim()):m();function m(){g.push(n.slice(f,o).trim()),f=o+1}if(void 0===a?a=n.slice(0,o).trim():0!==f&&m(),g.length){for(o=0;o<g.length;o++)a=qd(a,g[o],e);t.content=a,t.ast=void 0}}function qd(t,e,n){n.helper(Yl);const i=e.indexOf("(");if(i<0)return n.filters.add(e),`${uu(e,"filter")}(${t})`;{const r=e.slice(0,i),o=e.slice(i+1);return n.filters.add(r),`${uu(r,"filter")}(${t}${")"!==o?","+o:o}`}}const Yd=new WeakSet,$d=(t,e)=>{if(1===t.type){const n=tu(t,"memo");if(!n||Yd.has(t))return;return Yd.add(t),()=>{const i=t.codegenNode||e.currentNode.codegenNode;i&&13===i.type&&(1!==t.tagType&&kc(i,e),t.codegenNode=Oc(e.helper(fc),[n.exp,Mc(void 0,i),"_cache",String(e.cached.length)]),e.cached.push(null))}}};function Xd(t,e={}){const n=e.onError||Vc,i="module"===e.mode;!0===e.prefixIdentifiers?n(Hc(47)):i&&n(Hc(48));e.cacheHandlers&&n(Hc(49)),e.scopeId&&!i&&n(Hc(50));const r=Object(y.h)({},e,{prefixIdentifiers:!1}),o=Object(y.N)(t)?qu(t,r):t,[a,s]=[[zd,fd,$d,xd,...[Gd],...[],Ed,Ad,Md,Rd],{on:Nd,bind:yd,model:Vd}];return ed(o,Object(y.h)({},r,{nodeTransforms:[...a,...e.nodeTransforms||[]],directiveTransforms:Object(y.h)({},s,e.directiveTransforms||{})})),ad(o,r)}const Zd=Symbol(""),Kd=Symbol(""),Jd=Symbol(""),Qd=Symbol(""),th=Symbol(""),eh=Symbol(""),nh=Symbol(""),ih=Symbol(""),rh=Symbol(""),oh=Symbol("");var ah;let sh;ah={[Zd]:"vModelRadio",[Kd]:"vModelCheckbox",[Jd]:"vModelText",[Qd]:"vModelSelect",[th]:"vModelDynamic",[eh]:"withModifiers",[nh]:"withKeys",[ih]:"vShow",[rh]:"Transition",[oh]:"TransitionGroup"},Object.getOwnPropertySymbols(ah).forEach(t=>{mc[t]=ah[t]});const lh={parseMode:"html",isVoidTag:y.P,isNativeTag:t=>Object(y.w)(t)||Object(y.K)(t)||Object(y.B)(t),isPreTag:t=>"pre"===t,isIgnoreNewlineTag:t=>"pre"===t||"textarea"===t,decodeEntities:function(t,e=!1){return sh||(sh=document.createElement("div")),e?(sh.innerHTML=`<div foo="${t.replace(/"/g,""")}">
46`,sh.children[0].getAttribute("foo")):(sh.innerHTML=t,sh.textContent)},isBuiltInComponent:t=>"Transition"===t||"transition"===t?rh:"TransitionGroup"===t||"transition-group"===t?oh:void 0,getNamespace(t,e,n){let i=e?e.ns:n;if(e&&2===i)if("annotation-xml"===e.tag){if("svg"===t)return 1;e.props.some(t=>6===t.type&&"encoding"===t.name&&null!=t.value&&("text/html"===t.value.content||"application/xhtml+xml"===t.value.content))&&(i=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&"mglyph"!==t&&"malignmark"!==t&&(i=0);else e&&1===i&&("foreignObject"!==e.tag&&"desc"!==e.tag&&"title"!==e.tag||(i=0));if(0===i){if("svg"===t)return 1;if("math"===t)return 2}return i}},ch=(t,e)=>{const n=Object(y.X)(t);return wc(JSON.stringify(n),!1,e,3)};function uh(t,e){return Hc(t,e)}const dh=Object(y.T)("passive,once,capture"),hh=Object(y.T)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),ph=Object(y.T)("left,right"),fh=Object(y.T)("onkeyup,onkeydown,onkeypress"),gh=(t,e)=>{return Gc(t)&&"onclick"===t.content.toLowerCase()?wc(e,!0):4!==t.type?Sc(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t};const mh=(t,e)=>{1!==t.type||0!==t.tagType||"script"!==t.tag&&"style"!==t.tag||e.removeNode()};const vh=[t=>{1===t.type&&t.props.forEach((e,n)=>{6===e.type&&"style"===e.name&&e.value&&(t.props[n]={type:7,name:"bind",arg:wc("style",!0,e.loc),exp:ch(e.value.content,e.loc),modifiers:[],loc:e.loc})})},...[]],yh={cloak:()=>({props:[]}),html:(t,e,n)=>{const{exp:i,loc:r}=t;return i||n.onError(uh(53,r)),e.children.length&&(n.onError(uh(54,r)),e.children.length=0),{props:[xc(wc("innerHTML",!0,r),i||wc("",!0))]}},text:(t,e,n)=>{const{exp:i,loc:r}=t;return i||n.onError(uh(55,r)),e.children.length&&(n.onError(uh(56,r)),e.children.length=0),{props:[xc(wc("textContent",!0),i?Xu(i,n)>0?i:Oc(n.helperString(Jl),[i],r):wc("",!0))]}},model:(t,e,n)=>{const i=Vd(t,e,n);if(!i.props.length||1===e.tagType)return i;t.arg&&n.onError(uh(58,t.arg.loc));const{tag:r}=e,o=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||o){let a=Jd,s=!1;if("input"===r||o){const i=eu(e,"type");if(i){if(7===i.type)a=th;else if(i.value)switch(i.value.content){case"radio":a=Zd;break;case"checkbox":a=Kd;break;case"file":s=!0,n.onError(uh(59,t.loc))}}else(function(t){return t.props.some(t=>!(7!==t.type||"bind"!==t.name||t.arg&&4===t.arg.type&&t.arg.isStatic))})(e)&&(a=th)}else"select"===r&&(a=Qd);s||(i.needRuntime=n.helper(a))}else n.onError(uh(57,t.loc));return i.props=i.props.filter(t=>!(4===t.key.type&&"modelValue"===t.key.content)),i},on:(t,e,n)=>Nd(t,e,n,e=>{const{modifiers:i}=t;if(!i.length)return e;let{key:r,value:o}=e.props[0];const{keyModifiers:a,nonKeyModifiers:s,eventOptionModifiers:l}=((t,e,n,i)=>{const r=[],o=[],a=[];for(let i=0;i<e.length;i++){const s=e[i].content;"native"===s&&zc("COMPILER_V_ON_NATIVE",n)?a.push(s):dh(s)?a.push(s):ph(s)?Gc(t)?fh(t.content.toLowerCase())?r.push(s):o.push(s):(r.push(s),o.push(s)):hh(s)?o.push(s):r.push(s)}return{keyModifiers:r,nonKeyModifiers:o,eventOptionModifiers:a}})(r,i,n,t.loc);if(s.includes("right")&&(r=gh(r,"onContextmenu")),s.includes("middle")&&(r=gh(r,"onMouseup")),s.length&&(o=Oc(n.helper(eh),[o,JSON.stringify(s)])),!a.length||Gc(r)&&!fh(r.content.toLowerCase())||(o=Oc(n.helper(nh),[o,JSON.stringify(a)])),l.length){const t=l.map(y.f).join("");r=Gc(r)?wc(`${r.content}${t}`,!0):Sc(["(",r,`) + "${t}"`])}return{props:[xc(r,o)]}}),show:(t,e,n)=>{const{exp:i,loc:r}=t;return i||n.onError(uh(61,r)),{props:[],needRuntime:n.helper(ih)}}};const bh=Object.create(null);va(function(t,e){if(!Object(y.N)(t)){if(!t.nodeType)return y.d;t=t.innerHTML}const n=Object(y.i)(t,e),r=bh[n];if(r)return r;if("#"===t[0]){const e=document.querySelector(t);t=e?e.innerHTML:""}const o=Object(y.h)({hoistStatic:!0,onError:void 0,onWarn:y.d},e);o.isCustomElement||"undefined"==typeof customElements||(o.isCustomElement=(t=>!!customElements.get(t)));const{code:a}=function(t,e={}){return Xd(t,Object(y.h)({},lh,e,{nodeTransforms:[mh,...vh,...e.nodeTransforms||[]],directiveTransforms:Object(y.h)({},yh,e.directiveTransforms||{}),transformHoist:null}))}(t,o),s=new Function("Vue",a)(i);return s._rc=!0,bh[n]=s}); 47/*! ***************************************************************************** 48Copyright (c) Microsoft Corporation. 49 50Permission to use, copy, modify, and/or distribute this software for any 51purpose with or without fee is hereby granted. 52 53THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 54REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 55AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 56INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 57LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 58OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 59PERFORMANCE OF THIS SOFTWARE. 60***************************************************************************** */
vendor: 12,367 bytes, line 61
61var _h=function(t,e){return(_h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function xh(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}_h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var wh=n(3),Sh=n(0);function Oh(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Mh(t,e){return t[0]=e[0],t[1]=e[1],t}function Ch(t){return[t[0],t[1]]}function Ih(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Th(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function kh(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Ah(t){return Math.sqrt(Dh(t))}function Dh(t){return t[0]*t[0]+t[1]*t[1]}function Lh(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Ph(t,e){var n=Ah(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function jh(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Eh=jh;var Nh=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function Rh(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function Bh(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function zh(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Vh(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Fh=function(){return function(t,e){this.target=t,this.topTarget=e&&e.topTarget}}(),Hh=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Fh(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new Fh(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Fh(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Fh(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Fh(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Fh(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Gh=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,c=r[t][l];return c&&c.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var c=i[l];if(!r||!r.filter||null==c.query||r.filter(t,c.query))switch(o){case 0:c.h.call(a);break;case 1:c.h.call(a,e[0]);break;case 2:c.h.call(a,e[0],e[1]);break;default:c.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),Wh=Math.log(2);function Uh(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/Wh);return t[n][l]}for(var c=i|1<<n,u=n+1;i&1<<u;)u++;for(var d=0,h=0,p=0;h<s;h++){var f=1<<h;f&r||(d+=(p%2?-1:1)*t[n][h]*Uh(t,e-1,u,c,r|f,o),p++)}return o[a]=d,d}function qh(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=Uh(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Uh(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var Yh="___zrEVENTSAVED",$h=[];function Xh(t,e,n,i,r){if(e.getBoundingClientRect&&wh.a.domSupported&&!Zh(e)){var o=e[Yh]||(e[Yh]={}),a=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=t[c].getBoundingClientRect(),d=2*c,h=u.left,p=u.top;a.push(h,p),l=l&&o&&h===o[d]&&p===o[d+1],s.push(t[c].offsetLeft,t[c].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?qh(s,a):qh(a,s))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,c=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[c]+":0",i[1-l]+":auto",r[1-c]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),o,r);if(a)return a(t,n,i),!0}return!1}function Zh(t){return"CANVAS"===t.nodeName.toUpperCase()}var Kh=/([&<>"'])/g,Jh={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qh(t){return null==t?"":(t+"").replace(Kh,function(t,e){return Jh[e]})}var tp=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ep=[],np=wh.a.browser.firefox&&+wh.a.browser.version.split(".")[0]<39;function ip(t,e,n,i){return n=n||{},i?rp(t,e,n):np&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):rp(t,e,n),n}function rp(t,e,n){if(wh.a.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Zh(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(Xh(ep,t,i,r))return n.zrX=ep[0],void(n.zrY=ep[1])}n.zrX=n.zrY=0}function op(t){return t||window.event}function ap(t,e,n){if(null!=(e=op(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ip(t,r,e,n)}else{ip(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&tp.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function sp(t,e,n,i){t.addEventListener(e,n,i)}var lp=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function cp(t){return 2===t.which||3===t.which}var up=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=ip(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in hp)if(hp.hasOwnProperty(e)){var n=hp[e](this._track,t);if(n)return n}},t}();function dp(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var hp={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=dp(r)/dp(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function pp(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function fp(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function gp(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function mp(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function vp(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],c=e[5],u=Math.sin(n),d=Math.cos(n);return t[0]=r*d+s*u,t[1]=-r*u+s*d,t[2]=o*d+l*u,t[3]=-o*u+d*l,t[4]=d*(a-i[0])+u*(c-i[1])+i[0],t[5]=d*(c-i[1])-u*(a-i[0])+i[1],t}function yp(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function bp(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}var _p=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),xp=Math.min,wp=Math.max,Sp=new _p,Op=new _p,Mp=new _p,Cp=new _p,Ip=new _p,Tp=new _p,kp=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=xp(t.x,this.x),n=xp(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=wp(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=wp(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.he
61ight,r=[1,0,0,1,0,0];return mp(r,r,[-e.x,-e.y]),yp(r,r,[n,i]),mp(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,c=e.x+e.width,u=e.y,d=e.y+e.height,h=!(o<l||c<r||s<u||d<a);if(n){var p=1/0,f=0,g=Math.abs(o-l),m=Math.abs(c-r),v=Math.abs(s-u),y=Math.abs(d-a),b=Math.min(g,m),_=Math.min(v,y);o<l||c<r?b>f&&(f=b,g<m?_p.set(Tp,-g,0):_p.set(Tp,m,0)):b<p&&(p=b,g<m?_p.set(Ip,g,0):_p.set(Ip,-m,0)),s<u||d<a?_>f&&(f=_,v<y?_p.set(Tp,0,-v):_p.set(Tp,0,y)):b<p&&(p=b,v<y?_p.set(Ip,0,v):_p.set(Ip,0,-y))}return n&&_p.copy(n,h?Ip:Tp),h},t.prototype.contain=function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Sp.x=Mp.x=n.x,Sp.y=Cp.y=n.y,Op.x=Cp.x=n.x+n.width,Op.y=Mp.y=n.y+n.height,Sp.transform(i),Cp.transform(i),Op.transform(i),Mp.transform(i),e.x=xp(Sp.x,Op.x,Mp.x,Cp.x),e.y=xp(Sp.y,Op.y,Mp.y,Cp.y);var l=wp(Sp.x,Op.x,Mp.x,Cp.x),c=wp(Sp.y,Op.y,Mp.y,Cp.y);e.width=l-e.x,e.height=c-e.y}else e!==n&&t.copy(e,n)},t}(),Ap="silent";function Dp(){lp(this.event)}var Lp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return xh(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Gh),Pp=function(){return function(t,e){this.x=t,this.y=e}}(),jp=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ep=new kp(0,0,0,0),Np=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new Pp(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new Lp,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new Hh(a),a}return xh(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(Sh.k(jp,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=zp(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new Pp(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Pp(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Dp}}
vendor: 4,776 bytes, line 61
61(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new Pp(t,e);if(Bp(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new kp(t-s,e-s,a,a),c=i.length-1;c>=0;c--){var u=i[c];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(Ep.copy(u.getBoundingRect()),u.transform&&Ep.applyTransform(u.transform),Ep.intersect(l)&&o.push(u))}if(o.length)for(var d=Math.PI/12,h=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<h;f+=d){if(Bp(o,r,t+p*Math.cos(f),e+p*Math.sin(f),n),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new up);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new Pp;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(Gh);function Rp(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s||i.parent}return!r||Ap}return!1}function Bp(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Rp(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Ap)){e.target=a;break}}}function zp(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}Sh.k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Np.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=zp(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Eh(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var Vp=Np,Fp=32,Hp=7;function Gp(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){n--;for(;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function Wp(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var c=i-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;c>0;)t[s+c]=t[s+c-1],c--}t[s]=a}}function Up(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var c=a;a=r-l,l=r-c}for(a++;a<l;){var u=a+(l-a>>>1);o(t,e[n+u])>0?a=u+1:l=u}return l}function qp(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var c=a;a=r-l,l=r-c}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var u=a+(l-a>>>1);o(t,e[n+u])<0?l=u:a=u+1}return l}function Yp(t,e){var n,i,r=Hp,o=0,a=[];function s(s){var l=n[s],c=i[s],u=n[s+1],d=i[s+1];i[s]=c+d,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var h=qp(t[u],t,l,c,0,e);l+=h,0!==(c-=h)&&0!==(d=Up(t[l+c-1],t,u,d,d-1,e))&&(c<=d?function(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=t[n+l];var c=0,u=o,d=n;if(t[d++]=t[u++],0==--s){for(l=0;l<i;l++)t[d+l]=a[c+l];return}if(1===i){for(l=0;l<s;l++)t[d+l]=t[u+l];return void(t[d+s]=a[c])}var h,p,f,g=r;for(;;){h=0,p=0,f=!1;do{if(e(t[u],a[c])<0){if(t[d++]=t[u++],p++,h=0,0==--s){f=!0;break}}else if(t[d++]=a[c++],h++,p=0,1==--i){f=!0;break}}while((h|p)<g);if(f)break;do{if(0!==(h=qp(t[u],a,c,i,0,e))){for(l=0;l<h;l++)t[d+l]=a[c+l];if(d+=h,c+=h,(i-=h)<=1){f=!0;break}}if(t[d++]=t[u++],0==--s){f=!0;break}if(0!==(p=Up(a[c],t,u,s,0,e))){for(l=0;l<p;l++)t[d+l]=t[u+l];if(d+=p,u+=p,0===(s-=p)){f=!0;break}}if(t[d++]=a[c++],1==--i){f=!0;break}g--}while(h>=Hp||p>=Hp);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)t[d+l]=t[u+l];t[d+s]=a[c]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[d+l]=a[c+l]}}(l,c,u,d):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var c=n+i-1,u=s-1,d=o+s-1,h=0,p=0;if(t[d--]=t[c--],0==--i){for(h=d-(s-1),l=0;l<s;l++)t[h+l]=a[l];return}if(1===s){for(p=(d-=i)+1,h=(c-=i)+1,l=i-1;l>=0;l--)t[p+l]=t[h+l];return void(t[d]=a[u])}var f=r;for(;;){var g=0,m=0,v=!1;do{if(e(a[u],t[c])<0){if(t[d--]=t[c--],g++,m=0,0==--i){v=!0;break}}else if(t[d--]=a[u--],m++,g=0,1==--s){v=!0;break}}while((g|m)<f);if(v)break;
vendor: 16,670 bytes, line 61
61do{if(0!==(g=i-qp(a[u],t,n,i,i-1,e))){for(i-=g,p=(d-=g)+1,h=(c-=g)+1,l=g-1;l>=0;l--)t[p+l]=t[h+l];if(0===i){v=!0;break}}if(t[d--]=a[u--],1==--s){v=!0;break}if(0!==(m=s-Up(t[c],a,0,s,s-1,e))){for(s-=m,p=(d-=m)+1,h=(u-=m)+1,l=0;l<m;l++)t[p+l]=a[h+l];if(s<=1){v=!0;break}}if(t[d--]=t[c--],0==--i){v=!0;break}f--}while(g>=Hp||m>=Hp);if(v)break;f<0&&(f=0),f+=2}(r=f)<1&&(r=1);if(1===s){for(p=(d-=i)+1,h=(c-=i)+1,l=i-1;l>=0;l--)t[p+l]=t[h+l];t[d]=a[u]}else{if(0===s)throw new Error;for(h=d-(s-1),l=0;l<s;l++)t[h+l]=a[l]}}(l,c,u,d))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}function $p(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<Fp)Wp(t,n,i,n+(o=Gp(t,n,i,e)),e);else{var a=Yp(t,e),s=function(t){for(var e=0;t>=Fp;)e|=1&t,t>>=1;return t+e}(r);do{if((o=Gp(t,n,i,e))<s){var l=r;l>s&&(l=s),Wp(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var Xp=1,Zp=4,Kp=!1;function Jp(){Kp||(Kp=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Qp(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var tf=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Qp}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,$p(n,Qp)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Xp),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var c=t;e&&e.length?c.__clipPaths=e:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(Jp(),c.z=0),isNaN(c.z2)&&(Jp(),c.z2=0),isNaN(c.zlevel)&&(Jp(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=t.getDecalElement&&t.getDecalElement();u&&this._updateAndAddDisplayable(u,e,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,e,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=Sh.r(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),ef=wh.a.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},nf={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-nf.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*nf.bounceIn(2*t):.5*nf.bounceOut(2*t-1)+.5}},rf=nf,of=Math.pow,af=Math.sqrt,sf=1e-8,lf=1e-4,cf=af(3),uf=1/3,df=Oh(),hf=Oh(),pf=Oh();function ff(t){return t>-sf&&t<sf}function gf(t){return t>sf||t<-sf}function mf(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function vf(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function yf(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),c=t-r,u=s*s-3*a*l,d=s*l-9*a*c,h=l*l-3*s*c,p=0;if(ff(u)&&ff(d)){if(ff(s))o[0]=0;else(O=-l/s)>=0&&O<=1&&(o[p++]=O)}else{var f=d*d-4*u*h;if(ff(f)){var g=d/u,m=-g/2;(O=-s/a+g)>=0&&O<=1&&(o[p++]=O),m>=0&&m<=1&&(o[p++]=m)}else if(f>0){var v=af(f),y=u*s+1.5*a*(-d+v),b=u*s+1.5*a*(-d-v);(O=(-s-((y=y<0?-of(-y,uf):of(y,uf))+(b=b<0?-of(-b,uf):of(b,uf))))/(3*a))>=0&&O<=1&&(o[p++]=O)}else{var _=(2*u*s-3*a*d)/(2*af(u*u*u)),x=Math.acos(_)/3,w=af(u),S=Math.cos(x),O=(-s-2*w*S)/(3*a),M=(m=(-s+w*(S+cf*Math.sin(x)))/(3*a),(-s+w*(S-cf*Math.sin(x)))/(3*a));O>=0&&O<=1&&(o[p++]=O),m>=0&&m<=1&&(o[p++]=m),M>=0&&M<=1&&(o[p++]=M)}}return p}function bf(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(ff(a)){if(gf(o))(u=-s/o)>=0&&u<=1&&(r[l++]=u)}else{var c=o*o-4*a*s;if(ff(c))r[0]=-o/(2*a);else if(c>0){var u,d=af(c),h=(-o-d)/(2*a);(u=(-o+d)/(2*a))>=0&&u<=1&&(r[l++]=u),h>=0&&h<=1&&(r[l++]=h)}}return l}function _f(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,c=(s-a)*r+a,u=(l-s)*r+s,d=(u-c)*r+c;o[0]=t,o[1]=a,o[2]=c,o[3]=d,o[4]=d,o[5]=u,o[6]=l,o[7]=i}function xf(t,e,n,i,r,o,a,s,l,c,u){var d,h,p,f,g,m=.005,v=1/0;df[0]=l,df[1]=c;for(var y=0;y<1;y+=.05)hf[0]=mf(t,n,r,a,y),hf[1]=mf(e,i,o,s,y),(f=Nh(df,hf))<v&&(d=y,v=f);v=1/0;for(var b=0;b<32&&!(m<lf);b++)h=d-m,p=d+m,hf[0]=mf(t,n,r,a,h),hf[1]=mf(e,i,o,s,h),f=Nh(hf,df),h>=0&&f<v?(d=h,v=f):(pf[0]=mf(t,n,r,a,p),pf[1]=mf(e,i,o,s,p),g=Nh(pf,df),p<=1&&g<v?(d=p,v=g):m*=.5);return u&&(u[0]=mf(t,n,r,a,d),u[1]=mf(e,i,o,s,d)),af(v)}function wf(t,e,n,i,r,o,a,s,l){for(var c=t,u=e,d=0,h=1/l,p=1;p<=l;p++){var f=p*h,g=mf(t,n,r,a,f),m=mf(e,i,o,s,f),v=g-c,y=m-u;d+=Math.sqrt(v*v+y*y),c=g,u=m}return d}function Sf(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function Of(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Mf(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Cf(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function If(t,e,n,i,r,o,a,s,l){var c,u=.005,d=1/0;df[0]=a,df[1]=s;for(var h=0;h<1;h+=.05){hf[0]=Sf(t,n,r,h),hf[1]=Sf(e,i,o,h),(m=Nh(df,hf))<d&&(c=h,d=m)}d=1/0;for(var p=0;p<32&&!(u<lf);p++){var f=c-u,g=c+u;hf[0]=Sf(t,n,r,f),hf[1]=Sf(e,i,o,f);var m=Nh(hf,df);if(f>=0&&m<d)c=f,d=m;else{pf[0]=Sf(t,n,r,g),pf[1]=Sf(e,i,o,g);var v=Nh(pf,df);g<=1&&v<d?(c=g,d=v):u*=.5}}return l&&(l[0]=Sf(t,n,r,c),l[1]=Sf(e,i,o,c)),af(d)}function Tf(t,e,n,i,r,o,a){for(var s=t,l=e,c=0,u=1/a,d=1;d<=a;d++){var h=d*u,p=Sf(t,n,r,h),f=Sf(e,i,o,h),g=p-s,m=f-l;c+=Math.sqrt(g*g+m*m),s=p,l=f}return c}var kf=/cubic-bezier\(([0-9,\.e ]+)\)/;function Af(t){var e=t&&kf.exec(t);if(e){var n=e[1].split(","),i=+Object(Sh.T)(n[0]),r=+Object(Sh.T)(n[1]),o=+Object(Sh.T)(n[2]),a=+Object(Sh.T)(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:yf(0,i,o,1,t,s)&&mf(0,r,a,1,s[0])}}}var Df=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Sh.L,this.ondestroy=t.ondestroy||Sh.L,this.onrestart=t.onrestart||Sh.L,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(Sh.w)(t)?t:rf[t]||Af(t)},t}(),Lf=n(4),Pf=n(5),jf=Array.prototype.slice;function Ef(t,e,n){return(e-t)*n+t}function Nf(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=Ef(e[o],n[o],i);return t}function Rf(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Bf(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function zf(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Vf(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:jf.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var c=0;c<l;c++)isNaN(i[s][c])&&(i[s][c]=r[s][c])}}function Ff(t){if(Object(Sh.u)(t)){var e=t.length;if(Object(Sh.u)(t[0])){for(var n=[],i=0;i<e;i++)n.push(jf.call(t[i]));return n}return jf.call(t)}return t}function Hf(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}var Gf=1,Wf=2,Uf=4,qf=5;function Yf(t){return t===Uf||t===qf}function $f(t){return t===Gf||t===Wf}var Xf=[0,0,0,0],Zf=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(Object(Sh.u)(e)){var l=function(t){return Object(Sh.u)(t&&t[0])?2:1}(e);a=l,(1===l&&!Object(Sh.z)(e[0])||2===l&&!Object(Sh.z)(e[0][0]))&&(o=!0)}else if(Object(Sh.z)(e)&&!Object(Sh.l)(e))a=0;else if(Object(Sh.C)(e))if(isNaN(+e)){var c=Lf.h(e);c&&(s=c,a=3)}else a=0;else if(Object(Sh.x)(e)){var u=Object(Sh.m)({},s);u.colorStops=Object(Sh.H)(e.colorStops,function(t){return{offset:t.offset,color:Lf.h(t.color)}}),Object(Pf.m)(e)?a=Uf:Object(Pf.o)(e)&&(a=qf),s=u}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var d={time:t,value:s,rawValue:e,percent:0};return n&&(d.easing=n,d.easingFunc=Object(Sh.w)(n)?n:rf[n]||Af(n)),i.push(d),d},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=$f(i),l=Yf(i),c=0;c<r;c++){var u=n[c],d=u.value,h=o.value;u.percent=u.time/t,a||(s&&c!==r-1?Vf(d,h,i):l&&zf(d.colorStops,h.colorStops))}if(!a&&i!==qf&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var p=n[0].value;for(c=0;c<r;c++)0===i?n[c].additiveValue=n[c].value-p:3===i?n[c].additiveValue=Rf([],n[c].value,p,-1):$f(i)&&(n[c].additiveValue=i===Gf?Rf([],n[c].value,p,-1):Bf([],n[c].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,c=l.length,u=this.propName,d=3===s,h=this._lastFr,p=Math.min;if(1===c)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=p(h+1,c-1);n>=0&&!(l[n].percent<=e);n--);n=p(n,c-2)}else{for(n=h;n<c&&!(l[n].percent>e);n++);n=p(n-1,c-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:p((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var m=o?this._additiveValue:d?Xf:t[u];if(!$f(s)&&!d||m||(m=this._additiveValue=[]),this.discrete)t[u]=g<1?i.rawValue:r.rawValue;else if($f(s))s===Gf?Nf(m,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Ef(e[a][s],n[a][s],i)}}(m,i[a],r[a],g);else if(Yf(s)){var v=i[a],y=r[a],b=s===Uf;t[u]={type:b?"linear":"radial",x:Ef(v.x,y.x,g),y:Ef(v.y,y.y,g),colorStops:Object(Sh.H)(v.colorStops,function(t,e){var n=y.colorStops[e];return{offset:Ef(t.offset,n.offset,g),color:Hf(Nf([],t.color,n.color,g))}}),global:y.global},b?(t[u].x2=Ef(v.x2,y.x2,g),t[u].y2=Ef(v.y2,y.y2,g)):t[u].r=Ef(v.r,y.r,g)}else if(d)Nf(m,i[a],r[a],g),o||(t[u]=Hf(m));else{var _=Ef(i[a],r[a],g);o?this._additiveValue=_:t[u]=_}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(Lf.h(t[n],Xf),Rf(Xf,Xf,i,1),t[n]=Hf(Xf)):e===Gf?Rf(t[n],t[n],i,1):e===Wf&&Bf(t[n],t[n],i,1)},t}(),Kf=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?Object(Sh.G)("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(Sh.F)(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new Zf(a);var l=void 0,c=this._getAdditiveTrack(a);if(c){var u=c.keyframes,d=u[u.length-1];l=d&&d.value,3===c.valType&&l&&(l=Hf(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Ff(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Ff(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;
vendor: 5,505 bytes, line 61
61for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,c=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var u=l[c-1];u&&(e._target[a.propName]=u.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var d=new Df({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Object(Sh.H)(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=Ff(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(Sh.F)(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function Jf(){return(new Date).getTime()}var Qf,tg,eg=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return xh(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=Jf()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,ef(function e(){t._running&&(ef(e),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=Jf(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Jf(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Jf()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Kf(t,e.loop);return this.addAnimator(n),n},e}(Gh),ng=wh.a.domSupported,ig=(tg={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Qf=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:Sh.H(Qf,function(t){var e=t.replace("mouse","pointer");return tg.hasOwnProperty(e)?e:t})}),rg={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},og=!1;function ag(t){var e=t.pointerType;return"pen"===e||"touch"===e}function sg(t){t&&(t.zrByTouch=!0)}function lg(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var cg=function(){return function(t,e){this.stopPropagation=Sh.L,this.stopImmediatePropagation=Sh.L,this.preventDefault=Sh.L,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}}(),ug={mousedown:function(t){t=ap(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ap(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ap(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){lg(this,(t=ap(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventC
61ontrol="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){og=!0,t=ap(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){og||(t=ap(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){sg(t=ap(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),ug.mousemove.call(this,t),ug.mousedown.call(this,t)},touchmove:function(t){sg(t=ap(this.dom,t)),this.handler.processGesture(t,"change"),ug.mousemove.call(this,t)},touchend:function(t){sg(t=ap(this.dom,t)),this.handler.processGesture(t,"end"),ug.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&ug.click.call(this,t)},pointerdown:function(t){ug.mousedown.call(this,t)},pointermove:function(t){ag(t)||ug.mousemove.call(this,t)},pointerup:function(t){ug.mouseup.call(this,t)},pointerout:function(t){ag(t)||ug.mouseout.call(this,t)}};Sh.k(["click","dblclick","contextmenu"],function(t){ug[t]=function(e){e=ap(this.dom,e),this.trigger(t,e)}});var dg={pointermove:function(t){ag(t)||dg.mousemove.call(this,t)},pointerup:function(t){dg.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function hg(t,e){var n=e.domHandlers;wh.a.pointerEventsSupported?Sh.k(ig.pointer,function(i){fg(e,i,function(e){n[i].call(t,e)})}):(wh.a.touchEventsSupported&&Sh.k(ig.touch,function(i){fg(e,i,function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(e)})}),Sh.k(ig.mouse,function(i){fg(e,i,function(r){r=op(r),e.touching||n[i].call(t,r)})}))}function pg(t,e){function n(n){fg(e,n,function(i){i=op(i),lg(t,i.target)||(i=function(t,e){return ap(t.dom,new cg(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}wh.a.pointerEventsSupported?Sh.k(rg.pointer,n):wh.a.touchEventsSupported||Sh.k(rg.mouse,n)}function fg(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,sp(t.domTarget,e,n,i)}function gg(t){var e,n,i,r,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,i=o[a],r=t.listenerOpts[a],e.removeEventListener(n,i,r));t.mounted={}}var mg=function(){return function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}}(),vg=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new mg(e,ug),ng&&(i._globalHandlerScope=new mg(document,dg)),hg(i,i._localHandlerScope),i}return xh(e,t),e.prototype.dispose=function(){gg(this._localHandlerScope),ng&&gg(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,ng&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?pg(this,e):gg(e)}},e}(Gh),yg=1;wh.a.hasGlobalWindow&&(yg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var bg=yg,_g=.4,xg=pp,wg=5e-5;function Sg(t){return t>wg||t<-wg}var Og=[],Mg=[],Cg=[1,0,0,1,0,0],Ig=Math.abs,Tg=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Sg(this.rotation)||Sg(this.x)||Sg(this.y)||Sg(this.scaleX-1)||Sg(this.scaleY-1)||Sg(this.skewX)||Sg(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):xg(n),t&&(e?gp(n,t,n):fp(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(xg(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Og);var n=Og[0]<0?-1:1,i=Og[1]<0?-1:1,r=((Og[0]-n)*e+n)/Og[0]||0,o=((Og[1]-i)*e+i)/Og[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],bp(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);
61n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],gp(Mg,t.invTransform,e),e=Mg);var n=this.originX,i=this.originY;(n||i)&&(Cg[4]=n,Cg[5]=i,gp(Mg,e,Cg),Mg[4]-=n,Mg[5]-=i,e=Mg),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Bh(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Bh(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Ig(t[0]-1)>1e-10&&Ig(t[3]-1)>1e-10?Math.sqrt(Ig(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Ag(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,c=t.x,u=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;e[4]=-p*r-d*f*o,e[5]=-f*o-h*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=h*r,e[2]=d*o,l&&vp(e,e,l),e[4]+=n+c,e[5]+=i+u,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),kg=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ag(t,e){for(var n=0;n<kg.length;n++){var i=kg[n];t[i]=e[i]}}var Dg=Tg,Lg=n(7),Pg=n(6),jg={};function Eg(t,e){e=e||Pg.a;var n=jg[e];n||(n=jg[e]=new Lg.a(500));var i=n.get(t);return null==i&&(i=Pg.d.measureText(t,e).width,n.put(t,i)),i}function Ng(t,e,n,i){var r=Eg(t,e),o=Vg(e),a=Bg(0,r,n),s=zg(0,o,i);return new kp(a,s,r,o)}function Rg(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return Ng(r[0],e,n,i);for(var o=new kp(0,0,0,0),a=0;a<r.length;a++){var s=Ng(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function Bg(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function zg(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Vg(t){return Eg("å½",t)}function Fg(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Hg(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,c=n.y,u="left",d="top";if(i instanceof Array)l+=Fg(i[0],n.width),c+=Fg(i[1],n.height),u=null,d=null;else switch(i){case"left":l-=r,c+=s,u="right",d="middle";break;case"right":l+=r+a,c+=s,d="middle";break;case"top":l+=a/2,c-=r,u="center",d="bottom";break;case"bottom":l+=a/2,c+=o+r,u="center";break;case"inside":l+=a/2,c+=s,u="center",d="middle";break;case"insideLeft":l+=r,c+=s,d="middle";break;case"insideRight":l+=a-r,c+=s,u="right",d="middle";break;case"insideTop":l+=a/2,c+=r,u="center";break;case"insideBottom":l+=a/2,c+=o-r,u="center",d="bottom";break;case"insideTopLeft":l+=r,c+=r;break;case"insideTopRight":l+=a-r,c+=r,u="right";break;case"insideBottomLeft":l+=r,c+=o-r,d="bottom";break;case"insideBottomRight":l+=a-r,c+=o-r,u="right",d="bottom"}return(t=t||{}).x=l,t.y=c,t.align=u,t.verticalAlign=d,t}var Gg=kg.concat(["ignore"]),Wg=Object(Sh.N)(kg,function(t,e){return t[e]=!0,t},{ignore:!1}),Ug={},qg=new kp(0,0,0,0),Yg=function(){function t(t){this.id=Object(Sh.p)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var c=qg;
61n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ug,n,c):Hg(Ug,n,c),r.x=Ug.x,r.y=Ug.y,o=Ug.align,a=Ug.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var d=void 0,h=void 0;"center"===u?(d=.5*c.width,h=.5*c.height):(d=Fg(u[0],c.width),h=Fg(u[1],c.height)),l=!0,r.originX=-r.x+d+(i?0:c.x),r.originY=-r.y+h+(i?0:c.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;f&&this.canBeInsideText()?(m=n.insideFill,v=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,v=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),y=!0)),(m=m||"#000")===g.fill&&v===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=v,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Xp,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?"#ccc":"#333"},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Object(Lf.h)(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Object(Lf.i)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(Sh.m)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Object(Sh.A)(t))for(var n=t,i=Object(Sh.F)(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&"__zr_normal__"!==r)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Gg)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState("__zr_normal__",!1,t)},t.prototype.useState=function(t,e,n,i){var r="__zr_normal__"===t;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(Object(Sh.r)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,u=this._textGuide;return c&&c.useState(t,e,n,l),u&&u.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xp),s}Object(Sh.G)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],c=void 0;this.stateProxy&&(c=this.stateProxy(l,t)),c||(c=this.states[l]),c&&i.push(c)}var u=i[o-1],d=!!(u&&u.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,d),g&&g.useStates(t,e,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xp)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Object(Sh.r)(this.currentStates,t);
61if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=Object(Sh.r)(i,t),o=Object(Sh.r)(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];Object(Sh.m)(n,r),r.textConfig&&(e=e||{},Object(Sh.m)(e,r.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=Object(Sh.m)({},i?this.textConfig:n.textConfig),Object(Sh.m)(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,c=0;c<Gg.length;c++){var u=Gg[c],d=r&&Wg[u];e&&null!=e[u]?d?(l=!0,s[u]=e[u]):this[u]=e[u]:a&&null!=n[u]&&(d?(l=!0,s[u]=n[u]):this[u]=n[u])}if(!r)for(c=0;c<this.animators.length;c++){var h=this.animators[c],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(e||n)[p]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Dg,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(Sh.m)(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Xp;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this;var r=new Kf(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=Object(Sh.r)(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){$g(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){$g(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=$g(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Xp;function n(t,n,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function $g(t,e,n,i,r){var o=[];!function t(e,n,i,r,o,a,s,l){var c=Object(Sh.F)(r);var u=o.duration;var d=o.delay;var h=o.additive;var p=o.setToFinal;var f=!Object(Sh.A)(a);var g=e.animators;var m=[];for(var v=0;v<c.length;v++){var y=c[v],b=r[y];if(null!=b&&null!=i[y]&&(f||a[y]))if(!Object(Sh.A)(b)||Object(Sh.u)(b)||Object(Sh.x)(b))m.push(y);else{if(n){l||(i[y]=b,e.updateDuringAnimation(n));continue}t(e,y,i[y],b,o,a&&a[y],s,l)}else l||(i[y]=b,e.updateDuringAnimation(n),m.push(y))}var _=m.length;
61if(!h&&_)for(var x=0;x<g.length;x++){var w=g[x];if(w.targetName===n){var S=w.stopTracks(m);if(S){var O=Object(Sh.r)(g,w);g.splice(O,1)}}}o.force||(m=Object(Sh.n)(m,function(t){return e=r[t],n=i[t],!(e===n||Object(Sh.u)(e)&&Object(Sh.u)(n)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,n));var e,n}),_=m.length);if(_>0||o.force&&!s.length){var M=void 0,C=void 0,I=void 0;if(l){C={},p&&(M={});for(var x=0;x<_;x++){var y=m[x];C[y]=i[y],p?M[y]=r[y]:i[y]=r[y]}}else if(p){I={};for(var x=0;x<_;x++){var y=m[x];I[y]=Ff(i[y]),Zg(i,r,y)}}var w=new Kf(i,!1,!1,h?Object(Sh.n)(g,function(t){return t.targetName===n}):null);w.targetName=n,o.scope&&(w.scope=o.scope),p&&M&&w.whenWithKeys(0,M,m),I&&w.whenWithKeys(0,I,m),w.whenWithKeys(null==u?500:u,l?C:r,m).delay(d||0),e.addAnimator(w,n),s.push(w)}}(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,c=n.aborted,u=function(){s=!0,--a<=0&&(s?l&&l():c&&c())},d=function(){--a<=0&&(s?l&&l():c&&c())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var h=0;h<o.length;h++){var p=o[h];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Xg(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Zg(t,e,n){if(Object(Sh.u)(e[n]))if(Object(Sh.u)(t[n])||(t[n]=[]),Object(Sh.E)(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Xg(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(c=r,Object(Sh.u)(c[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?Xg(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Xg(o,r,a);o.length=r.length}else t[n]=e[n];var c}Object(Sh.K)(Yg,Gh),Object(Sh.K)(Yg,Dg);var Kg=Yg,Jg=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return xh(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=Sh.r(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=Sh.r(n,t);return i<0?this:(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new kp(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(kp.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(Kg);Jg.prototype.type="group";var Qg=Jg,tm={},em={}; 62/*! 63* ZRender, a high performance 2d drawing library. 64* 65* Copyright (c) 2013, Baidu Inc. 66* All rights reserved. 67* 68* LICENSE 69* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt 70*/var nm,im=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var r=new tf,o=n.renderer||"canvas";tm[o]||(o=Sh.F(tm)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new tm[o](e,r,n,t),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l,c=wh.a.node||wh.a.worker||s?null:new vg(a.getViewportRoot(),a.root),u=n.useCo
70arsePointer;(null==u||"auto"===u?wh.a.touchEventsSupported:!!u)&&(l=Sh.P(n.pointerSize,44)),this.handler=new Vp(r,a,c,a.root,l),this.animation=new eg({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Object(Lf.e)(t,1)<_g;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=Object(Lf.e)(e[r].color,1);return(n/=i)<_g}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=Jf();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=Jf();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Qg&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete em[t])},t}();function rm(t,e){var n=new im(Sh.p(),t,e);return em[n.id]=n,n}var om=1e-4,am=20;function sm(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,c=s-a;if(0===l)return 0===c?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;
70if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*c+a}function lm(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return Sh.C(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function cm(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),am),t=(+t).toFixed(e),n?t:+t}function um(t){return t.sort(function(t,e){return t-e}),t}function dm(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return function(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}(t)}function hm(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function pm(t,e){var n=Sh.N(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),r=Sh.H(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,a=Sh.H(r,function(t){return Math.floor(t)}),s=Sh.N(a,function(t,e){return t+e},0),l=Sh.H(r,function(t,e){return t-a[e]});s<o;){for(var c=Number.NEGATIVE_INFINITY,u=null,d=0,h=l.length;d<h;++d)l[d]>c&&(c=l[d],u=d);++a[u],l[u]=0,++s}return Sh.H(a,function(t){return t/i})}function fm(t,e){var n=Math.max(dm(t),dm(e)),i=t+e;return n>am?i:cm(i,n)}var gm=9007199254740991;function mm(t){var e=2*Math.PI;return(t%e+e)%e}function vm(t){return t>-om&&t<om}var ym=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function bm(t){if(t instanceof Date)return t;if(Sh.C(t)){var e=ym.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function _m(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function xm(t,e){var n=_m(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function wm(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function Sm(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t}function Om(t){var e=parseFloat(t);return e==t&&(0!==e||!Sh.C(t)||t.indexOf("x")<=0)?e:NaN}function Mm(t){return!isNaN(Om(t))}function Cm(){return Math.round(9*Math.random())}function Im(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function Tm(t,e,n){return(e-t)*n+t}var km="series\0",Am="\0_ec_\0";function Dm(t){return t instanceof Array?t:null==t?[]:[t]}function Lm(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Pm=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function jm(t){return!Object(Sh.A)(t)||Object(Sh.t)(t)||t instanceof Date?t:t.value}function Em(t){return Object(Sh.A)(t)&&!(t instanceof Array)}function Nm(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Object(Sh.f)();Object(Sh.k)(e,function(t,n){Object(Sh.A)(t)||(e[n]=null)});var s,l,c=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||Fm(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,a,n);return(i||r)&&function(t,e,n,i){Object(Sh.k)(i,function(r,o){if(r&&null!=r.id){var a=Bm(r.id),s=n.get(a);if(null!=s){var l=t[s];Object(Sh.b)(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}})}
70(c,t,a,e),i&&function(t,e){Object(Sh.k)(e,function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!Fm(n)&&!Fm(o)&&Rm("name",o,n))return t[r].newOption=n,void(e[i]=null)}})}(c,e),i||r?function(t,e,n){Object(Sh.k)(e,function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||Fm(i.existing)||i.existing&&null!=e.id&&!Rm("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}})}(c,e,r):o&&function(t,e){Object(Sh.k)(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}(c,e),s=c,l=Object(Sh.f)(),Object(Sh.k)(s,function(t){var e=t.existing;e&&l.set(e.id,t)}),Object(Sh.k)(s,function(t){var e=t.newOption;Object(Sh.b)(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})}),Object(Sh.k)(s,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(Object(Sh.A)(i)){if(r.name=null!=i.name?Bm(i.name):n?n.name:km+e,n)r.id=Bm(n.id);else if(null!=i.id)r.id=Bm(i.id);else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(l.get(r.id))}l.set(r.id,t)}}),c}function Rm(t,e,n){var i=zm(e[t],null),r=zm(n[t],null);return null!=i&&null!=r&&i===r}function Bm(t){return zm(t,"")}function zm(t,e){return null==t?e:Object(Sh.C)(t)?t:Object(Sh.z)(t)||Object(Sh.D)(t)?t+"":e}function Vm(t){var e=t.name;return!(!e||!e.indexOf(km))}function Fm(t){return t&&null!=t.id&&0===Bm(t.id).indexOf(Am)}function Hm(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(Sh.t)(e.dataIndex)?Object(Sh.H)(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?Object(Sh.t)(e.name)?Object(Sh.H)(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Gm(){var t="__ec_inner_"+Wm++;return function(e){return e[t]||(e[t]={})}}var Wm=Cm();function Um(t,e,n){var i=qm(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(e,i){var r=Xm(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]}),a}function qm(t,e){var n;if(Object(Sh.C)(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=Object(Sh.f)(),o={},a=!1;return Object(Sh.k)(n,function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&Object(Sh.r)(e.includeMainTypes,s)<0))a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t}else o[n]=t}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var Ym={useDefault:!0,enableAll:!1,enableNone:!1},$m={useDefault:!1,enableAll:!0,enableNone:!0};function Xm(t,e,n,i){i=i||Ym;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(Object(Sh.b)(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(Object(Sh.b)(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function Zm(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Km(t,e){var n=Object(Sh.f)(),i=[];return Object(Sh.k)(t,function(t){var r=e(t);(n.get(r)||(i.push(r),n.set(r,[]))).push(t)}),{keys:i,buckets:n}}function Jm(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;
70if(Object(Sh.z)(i))return cm(f=Tm(n||0,i,r),o?Math.max(dm(n||0),dm(i)):e);if(Object(Sh.C)(i))return r<1?n:i;for(var a=[],s=n,l=i,c=Math.max(s?s.length:0,l.length),u=0;u<c;++u){var d=t.getDimensionInfo(u);if(d&&"ordinal"===d.type)a[u]=(r<1&&s?s:l)[u];else{var h=s&&s[u]?s[u]:0,p=l[u],f=Tm(h,p,r);a[u]=cm(f,o?Math.max(dm(h),dm(p)):e)}}return a}var Qm=".",tv="___EC__COMPONENT__CONTAINER___",ev="___EC__EXTENDED_CLASS___";function nv(t){var e={main:"",sub:""};if(t){var n=t.split(Qm);e.main=n[0]||"",e.sub=n[1]||""}return e}function iv(t,e){t.$constructor=t,t.extend=function(t){var e,n,i=this;return n=i,Sh.w(n)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return xh(e,t),e}(i):(e=function(){(t.$constructor||i).apply(this,arguments)},Sh.s(e,this)),Sh.m(e.prototype,t),e[ev]=!0,e.extend=this.extend,e.superCall=av,e.superApply=sv,e.superClass=i,e}}function rv(t,e){t.extend=e.extend}var ov=Math.round(10*Math.random());function av(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function sv(t,e,n){return this.superClass.prototype[e].apply(t,n)}function lv(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){n=i,Sh.b(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=i;var r=nv(i);if(r.sub){if(r.sub!==tv){(function(t){var n=e[t.main];n&&n[tv]||((n=e[t.main]={})[tv]=!0);return n}(r))[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[tv]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=nv(t),i=[],r=e[n.main];return r&&r[tv]?Sh.k(r,function(t,e){e!==tv&&i.push(t)}):i.push(r),i},t.hasClass=function(t){var n=nv(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return Sh.k(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=nv(t),i=e[n.main];return i&&i[tv]}}function cv(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&Sh.r(i,s)>=0||r&&Sh.r(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var uv=cv([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),dv=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return uv(this,t,e)},t}(),hv=new Lg.a(50);function pv(t){if("string"==typeof t){var e=hv.get(t);return e&&e.image}return t}function fv(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=hv.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!mv(e=o.image)&&o.pending.push(a):((e=Pg.d.loadImage(t,gv,gv)).__zrImageSrc=t,hv.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function gv(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function mv(t){return t&&t.width&&t.height}var vv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function yv(t,e,n,i,r,o){if(!n)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=bv(n,i,r,o);for(var s=!1,l={},c=0,u=a.length;c<u;c++)_v(l,a[c],o),a[c]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function bv(t,e,n,i){i=i||{};var r=Object(Sh.m)({},i);r.font=e,n=Object(Sh.P)(n,"..."),r.maxIterations=Object(Sh.P)(i.maxIterations,2);var o=r.minChar=Object(Sh.P)(i.minChar,0);r.cnCharWidth=Eg("å½",e);var a=r.ascCharWidth=Eg("a",e);r.placeholder=Object(Sh.P)(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var c=Eg(n,e);return c>s&&(n="",c=0),s=t-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=s,r.containerWidth=t,r}function _v(t,e,n){var i=n.containerWidth,r=n.font,o=n.contentWidth;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=Eg(e,r);if(a<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=o||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?xv(e,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(e.length*o/a):0;a=Eg(e=e.substr(0,l),r)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function xv(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}var wv=function(){return function(){}}(),Sv=function(){return function(t){this.tokens=[],t&&(this.tokens=t)}}(),Ov=function(){return function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}}();function Mv(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},c=t.lines,u=l.font||n.font,d=!1;if(i){var h=l.padding,p=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var f=Fg(l.width,i.width)+p;c.length>0&&f+i.accumWidth>i.width&&(o=e.split("\n"),d=!0),i.accumWidth=f}else{var g=Tv(e,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var m=0;m<o.length;m++){var v=o[m],y=new wv;if(y.styleName=r,y.text=v,y.isLineHolder=!v&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[m]:Eg(v,u),m||d)c.push(new Sv([y]));else{var b=(c[c.length-1]||(c[0]=new Sv)).tokens,_=b.length;1===_&&b[0].isLineHolder?b[0]=y:(v||!_||s)&&b.push(y)}}}var Cv=Object(Sh.N)(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Iv(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Cv[t]}function Tv(t,e,n,i,r){for(var o=[],a=[],s="",l="",c=0,u=0,d=0;d<t.length;d++){var h=t.charAt(d);if("\n"!==h){var p=Eg(h,e),f=!i&&!Iv(h);(o.length?u+p>n:r+u+p>n)?u?(s||l)&&(f?(s||(s=l,l="",u=c=0),o.push(s),a.push(u-c),l+=h,s="",u=c+=p):(l&&(s+=l,l="",c=0),o.push(s),a.push(u),s=h,u=p)):f?(o.push(l),a.push(c),l=h,c=p):(o.push(h),a.push(p)):(u+=p,f?(l+=h,c+=p):(l&&(s+=l,l="",c=0),s+=h))}else l&&(s+=l,u+=c),o.push(s),a.push(u),s="",l="",c=0,u=0}return o.length||s||(s=t,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(u)),1===o.length&&(u+=r),{accumWidth:u,lines:o,linesWidths:a}}var kv="__zr_style_"+Math.round(10*Math.random()),Av={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Dv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Av[kv]=!0;var Lv=["z","z2","invisible"],Pv=["invisible"],jv=function(t){function e(e){return t.call(this,e)||this}var n;return xh(e,t),e.prototype._init=function(e){for(var n=Object(Sh.F)(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){Ev.copy(t.getBoundingRect
vendor: 5,079 bytes, line 70
70()),t.transform&&Ev.applyTransform(t.transform);return Nv.width=e,Nv.height=n,!Ev.intersect(Nv)}(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new kp(0,0,0,0)),e?kp.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new kp(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:Object(Sh.m)(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return Object(Sh.g)(Av,t)},e.prototype.useStyle=function(t){t[kv]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[kv]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Lv)},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var u=Object(Sh.F)(c),d=0;d<u.length;d++){(p=u[d])in s&&(s[p]=s[p],this.style[p]=c[p])}var h=Object(Sh.F)(s);for(d=0;d<h.length;d++){var p=h[d];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?Pv:Lv;for(d=0;d<f.length;d++){p=f[d];n&&null!=n[p]?this[p]=n[p]:l&&null!=i[p]&&(this[p]=i[p])}},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return Object(Sh.m)(t,e),t},e.prototype.getAnimationStyleProps=function(){return Dv},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=2|Xp)),e}(Kg),Ev=new kp(0,0,0,0),Nv=new kp(0,0,0,0);var Rv=jv,Bv=Math.min,zv=Math.max,Vv=Math.sin,Fv=Math.cos,Hv=2*Math.PI,Gv=Oh(),Wv=Oh(),Uv=Oh();function qv(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<t.length;l++)i=t[l],r=Bv(r,i[0]),o=zv(o,i[0]),a=Bv(a,i[1]),s=zv(s,i[1]);e[0]=r,e[1]=a,n[0]=o,n[1]=s}}function Yv(t,e,n,i,r,o){r[0]=Bv(t,n),r[1]=Bv(e,i),o[0]=zv(t,n),o[1]=zv(e,i)}var $v=[],Xv=[];function Zv(t,e,n,i,r,o,a,s,l,c){var u=bf,d=mf,h=u(t,n,r,a,$v);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var p=0;p<h;p++){var f=d(t,n,r,a,$v[p]);l[0]=Bv(f,l[0]),c[0]=zv(f,c[0])}h=u(e,i,o,s,Xv);for(p=0;p<h;p++){var g=d(e,i,o,s,Xv[p]);l[1]=Bv(g,l[1]),c[1]=zv(g,c[1])}l[0]=Bv(t,l[0]),c[0]=zv(t,c[0]),l[0]=Bv(a,l[0]),c[0]=zv(a,c[0]),l[1]=Bv(e,l[1]),c[1]=zv(e,c[1]),l[1]=Bv(s,l[1]),c[1]=zv(s,c[1])}function Kv(t,e,n,i,r,o,a,s){var l=Mf,c=Sf,u=zv(Bv(l(t,n,r),1),0),d=zv(Bv(l(e,i,o),1),0),h=c(t,n,r,u),p=c(e,i,o,d);a[0]=Bv(t,r,h),a[1]=Bv(e,o,p),s[0]=zv(t,r,h),s[1]=zv(e,o,p)}function Jv(t,e,n,i,r,o,a,s,l){var c=zh,u=Vh,d=Math.abs(r-o);if(d%Hv<1e-4&&d>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Gv[0]=Fv(r)*n+t,Gv[1]=Vv(r)*i+e,Wv[0]=Fv(o)*n+t,Wv[1]=Vv(o)*i+e,c(s,Gv,Wv),u(l,Gv,Wv),(r%=Hv)<0&&(r+=Hv),(o%=Hv)<0&&(o+=Hv),r>
vendor: 8,288 bytes, line 70
70o&&!a?o+=Hv:r<o&&a&&(r+=Hv),a){var h=o;o=r,r=h}for(var p=0;p<o;p+=Math.PI/2)p>r&&(Uv[0]=Fv(p)*n+t,Uv[1]=Vv(p)*i+e,c(s,Uv,s),u(l,Uv,l))}var Qv={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ty=[],ey=[],ny=[],iy=[],ry=[],oy=[],ay=Math.min,sy=Math.max,ly=Math.cos,cy=Math.sin,uy=Math.abs,dy=Math.PI,hy=2*dy,py="undefined"!=typeof Float32Array,fy=[];function gy(t){return Math.round(t/dy*1e8)/1e8%2*dy}function my(t,e){var n=gy(t[0]);n<0&&(n+=hy);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=hy?r=n+hy:e&&n-r>=hy?r=n-hy:!e&&n>r?r=n+(hy-gy(n-r)):e&&n<r&&(r=n-(hy-gy(r-n))),t[0]=n,t[1]=r}var vy=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=uy(n/bg/t)||0,this._uy=uy(n/bg/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Qv.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=uy(t-this._xi),i=uy(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Qv.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Qv.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Qv.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),fy[0]=i,fy[1]=r,my(fy,o),i=fy[0];var a=(r=fy[1])-i;return this.addData(Qv.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=ly(r)*n+t,this._yi=cy(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Qv.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Qv.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!py||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();py&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var u=0;u<arguments.length;u++)c[this._len++]=arguments[u]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,py&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){ny[0]=ny[1]=ry[0]=ry[1]=Number.MAX_VALUE,iy[0]=iy[1]=oy[0]=oy[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(r=n=e[t],o=i=e[t+1]),a){case Qv.M:n=r=e[t++],i=o=e[t++],ry[0]=r,ry[1]=o,oy[0]=r,oy[1]=o;break;case Qv.L:Yv(n,i,e[t],e[t+1],ry,oy),n=e[t++],i=e[t++];break;case Qv.C:Zv(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],ry,oy),n=e[t++],i=e[t++];break;case Qv.Q:Kv(n,i,e[t++],e[t++],e[t],e[t+1],ry,oy),n=e[t++],i=e[t++];break;case Qv.A:var l=e[t++],c=e[t++],u=e[t++],d=e[t++],h=e[t++],p=e[t++]+h;t+=1;var f=!e[t++];s&&(r=ly(h)*u+l,o=cy(h)*d+c),Jv(l,c,u,d,h,p,f,ry,oy),n=ly(p)*u+l,i=cy(p)*d+c;break;case Qv.R:Yv(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],ry,oy);break;case Qv.Z:n=r,i=o}zh(ny,ny,ry),Vh(iy,iy,oy)}return 0===t&&(ny[0]=ny[1]=iy[0]=iy[1]=0),new kp(ny[0],ny[1],iy[0]-ny[0],iy[1]-ny[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,c=0,u=0,d=0;d<e;){var h=t[d++],p=1===d;p&&(a=r=t[d],s=o=t[d+1]);var f=-1;switch(h){case Qv.M:r=a=t[d++],o=s=t[d++];break;case Qv.L:var g=t[d++],m=(b=t[d++])-o;(uy(k=g-r)>n||uy(m)>i||d===e-1)&&(f=Math.sqrt(k*k+m*m),r=g,o=b);break;case Qv.C:var v=t[d++],y=t[d++],b=(g=t[d++],t[d++]),_=t[d++],x=t[d++];f=wf(r,o,v,y,g,b,_,x,10),r=_,o=x;break;case Qv.Q:f=Tf(r,o,v=t[d++],y=t[d++],g=t[d++],b=t[d++],10),r=g,o=b;break;case Qv.A:var w=t[d++],S=t[d++],O=t[d++],M=t[d++],C=t[d++],I=t[d++],T=I+C;d+=1,p&&(a=ly(C)*O+w,s=cy(C)*M+S),f=sy(O,M)*ay(hy,Math.abs(I)),r=ly(T)*O+w,o=cy(T)*M+S;break;case Qv.R:a=r=t[d++],s=o=t[d++],f=2*t[d++]+2*t[d++];break;case Qv.Z:var k=a-r;m=s-o;f=Math.sqrt(k*k+m*m),r=a,o=s}f>=0&&(l[u++]=f,c+=f)}return this._pathLen=c,c},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,c,u,d,h=this.data,p=this._ux,f=this._uy,g=this._len,m=e<1,v=0,y=0,b=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=e*this._pathLen))t:for(var _=0;_<g;){var x=h[_++],w=1===_;switch(w&&(n=r=h[_],i=o=h[_+1]),x!==Qv.L&&b>0&&(t.lineTo(u,d),b=0),x){case Qv.M:n=r=h[_++],i=o=h[_++],t.moveTo(r,o);break;case Qv.L:a=h[_++],s=h[_++];var S=uy(a-r),O=uy(s-o);if(S>p||O>f){if(m){if(v+($=l[y++])>c){var M=(c-v)/$;t.lineTo(r*(1-M)+a*M,o*(1-M)+s*M);break t}v+=$}t.lineTo(a,s),r=a,o=s,b=0}else{var C=S*S+O*O;C>b&&(u=a,d=s,b=C)}break;case Qv.C:var I=h[_++],T=h[_++],k=h[_++],A=h[_++],D=h[_++],L=h[_++];if(m){if(v+($=l[y++])>c){_f(r,I,k,D,M=(c-v)/$,ty),_f(o,T,A,L,M,ey),t.bezierCurveTo(ty[1],ey[1],ty[2],ey[2],ty[3],ey[3]);break t}v+=$}t.bezierCurveTo(I,T,k,A,D,L),r=D,o=L;break;case Qv.Q:I=h[_++],T=h[_++],k=h[_++],A=h[_++];if(m){if(v+($=l[y++])>c){Cf(r,I,k,M=(c-v)/$,ty),Cf(o,T,A,M,ey),t.quadraticCurveTo(ty[1],ey[1],ty[2],ey[2]);break t}v+=$}t.quadraticCurveTo(I,T,k,A),r=k,o=A;break;case Qv.A:var P=h[_++],j=h[_++],E=h[_++],N=h[_++],R=h[_++],B=h[_++],z=h[_++],V=!h[_++],F=E>N?E:N,H=uy(E-N)>.001,G=R+B,W=!1;if(m)v+($=l[y++])>c&&(G=R+B*(c-v)/$,W=!0),v+=$;if(H&&t.ellipse?t.ellipse(P,j,E,N,z,R,G,V):t.arc(P,j,F,R,G,V),W)break t;w&&(n=ly(R)*E+P,i=cy(R)*N+j),r=ly(G)*E+P,o=cy(G)*N+j;break;case Qv.R:n=r=h[_],i=o=h[_+1],a=h[_++],s=h[_++];var U=h[_++],q=h[_++];if(m){if(v+($=l[y++])>c){var Y=c-v;t.moveTo(a,s),t.lineTo(a+ay(Y,U),s),(Y-=U)>0&&t.lineTo(a+U,s+ay(Y,q)),(Y-=q)>0&&t.lineTo(a+sy(U-Y,0),s+q),(Y-=U)>0&&t.lineTo(a,s+sy(q-Y,0));break t}v+=$}t.rect(a,s,U,q);break;case Qv.Z:if(m){var $;if(v+($=l[y++])>c){M=(c-v)/$;t.lineTo(r*(1-M)+n*M,o*(1-M)+i*M);break t}v+=$}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=Qv,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();function yy(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||a<e-s&&a<i-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var c=(l=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return c*c/(l*l+1)<=s/2*s/2}function by(t,e,n,i,r,o,a,s,l,c,u){if(0===l)return!1;var d=l;return!(u>e+d&&u>i+d&&u>o+d&&u>s+d||u<e-d&&u<i-d&&u<o-d&&u<s-d||c>t+d&&c>n+d&&c>r+d&&c>
vendor: 5,892 bytes, line 70
70a+d||c<t-d&&c<n-d&&c<r-d&&c<a-d)&&xf(t,e,n,i,r,o,a,s,c,u,null)<=d/2}function _y(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var c=a;return!(l>e+c&&l>i+c&&l>o+c||l<e-c&&l<i-c&&l<o-c||s>t+c&&s>n+c&&s>r+c||s<t-c&&s<n-c&&s<r-c)&&If(t,e,n,i,r,o,s,l,null)<=c/2}var xy=2*Math.PI;function wy(t){return(t%=xy)<0&&(t+=xy),t}var Sy=2*Math.PI;function Oy(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var c=a;s-=t,l-=e;var u=Math.sqrt(s*s+l*l);if(u-c>n||u+c<n)return!1;if(Math.abs(i-r)%Sy<1e-4)return!0;if(o){var d=i;i=wy(r),r=wy(d)}else i=wy(i),r=wy(r);i>r&&(r+=Sy);var h=Math.atan2(l,s);return h<0&&(h+=Sy),h>=i&&h<=r||h+Sy>=i&&h+Sy<=r}function My(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var Cy=vy.CMD,Iy=2*Math.PI,Ty=1e-4;var ky=[-1,-1,-1],Ay=[-1,-1];function Dy(t,e,n,i,r,o,a,s,l,c){if(c>e&&c>i&&c>o&&c>s||c<e&&c<i&&c<o&&c<s)return 0;var u,d=yf(e,i,o,s,c,ky);if(0===d)return 0;for(var h=0,p=-1,f=void 0,g=void 0,m=0;m<d;m++){var v=ky[m],y=0===v||1===v?.5:1;mf(t,n,r,a,v)<l||(p<0&&(p=bf(e,i,o,s,Ay),Ay[1]<Ay[0]&&p>1&&(u=void 0,u=Ay[0],Ay[0]=Ay[1],Ay[1]=u),f=mf(e,i,o,s,Ay[0]),p>1&&(g=mf(e,i,o,s,Ay[1]))),2===p?v<Ay[0]?h+=f<e?y:-y:v<Ay[1]?h+=g<f?y:-y:h+=s<g?y:-y:v<Ay[0]?h+=f<e?y:-y:h+=s<f?y:-y)}return h}function Ly(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(ff(o))gf(a)&&(u=-s/a)>=0&&u<=1&&(r[l++]=u);else{var c=a*a-4*o*s;if(ff(c))(u=-a/(2*o))>=0&&u<=1&&(r[l++]=u);else if(c>0){var u,d=af(c),h=(-a-d)/(2*o);(u=(-a+d)/(2*o))>=0&&u<=1&&(r[l++]=u),h>=0&&h<=1&&(r[l++]=h)}}return l}(e,i,o,s,ky);if(0===l)return 0;var c=Mf(e,i,o);if(c>=0&&c<=1){for(var u=0,d=Sf(e,i,o,c),h=0;h<l;h++){var p=0===ky[h]||1===ky[h]?.5:1;Sf(t,n,r,ky[h])<a||(ky[h]<c?u+=d<e?p:-p:u+=o<d?p:-p)}return u}p=0===ky[0]||1===ky[0]?.5:1;return Sf(t,n,r,ky[0])<a?0:o<e?p:-p}function Py(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ky[0]=-l,ky[1]=l;var c=Math.abs(i-r);if(c<1e-4)return 0;if(c>=Iy-1e-4){i=0,r=Iy;var u=o?1:-1;return a>=ky[0]+t&&a<=ky[1]+t?u:0}if(i>r){var d=i;i=r,r=d}i<0&&(i+=Iy,r+=Iy);for(var h=0,p=0;p<2;p++){var f=ky[p];if(f+t>a){var g=Math.atan2(s,f);u=o?1:-1;g<0&&(g=Iy+g),(g>=i&&g<=r||g+Iy>=i&&g+Iy<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),h+=u)}}return h}function jy(t,e,n,i,r){for(var o,a,s,l,c=t.data,u=t.len(),d=0,h=0,p=0,f=0,g=0,m=0;m<u;){var v=c[m++],y=1===m;switch(v===Cy.M&&m>1&&(n||(d+=My(h,p,f,g,i,r))),y&&(f=h=c[m],g=p=c[m+1]),v){case Cy.M:h=f=c[m++],p=g=c[m++];break;case Cy.L:if(n){if(yy(h,p,c[m],c[m+1],e,i,r))return!0}else d+=My(h,p,c[m],c[m+1],i,r)||0;h=c[m++],p=c[m++];break;case Cy.C:if(n){if(by(h,p,c[m++],c[m++],c[m++],c[m++],c[m],c[m+1],e,i,r))return!0}else d+=Dy(h,p,c[m++],c[m++],c[m++],c[m++],c[m],c[m+1],i,r)||0;h=c[m++],p=c[m++];break;case Cy.Q:if(n){if(_y(h,p,c[m++],c[m++],c[m],c[m+1],e,i,r))return!0}else d+=Ly(h,p,c[m++],c[m++],c[m],c[m+1],i,r)||0;h=c[m++],p=c[m++];break;case Cy.A:var b=c[m++],_=c[m++],x=c[m++],w=c[m++],S=c[m++],O=c[m++];m+=1;var M=!!(1-c[m++]);o=Math.cos(S)*x+b,a=Math.sin(S)*w+_,y?(f=o,g=a):d+=My(h,p,o,a,i,r);var C=(i-b)*w/x+b;if(n){if(Oy(b,_,w,S,S+O,M,e,C,r))return!0}else d+=Py(b,_,w,S,S+O,M,C,r);h=Math.cos(S+O)*x+b,p=Math.sin(S+O)*w+_;break;case Cy.R:if(f=h=c[m++],g=p=c[m++],o=f+c[m++],a=g+c[m++],n){if(yy(f,g,o,g,e,i,r)||yy(o,g,o,a,e,i,r)||yy(o,a,f,a,e,i,r)||yy(f,a,f,g,e,i,r))return!0}else d+=My(o,g,o,a,i,r),d+=My(f,a,f,g,i,r);break;case Cy.Z:if(n){if(yy(h,p,f,g,e,i,r))return!0}else d+=My(h,p,f,g,i,r);h=f,p=g}}return n||(s=p,l=g,Math.abs(s-l)<Ty)||(d+=My(h,p,f,g,i,r)||0),0!==d}var Ey=Object(Sh.i)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Av),Ny={style:Object(Sh.i)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Dv.style)},Ry=kg.concat(["invisible","culling","z","z2","zlevel","parent"]),By=function(t){function e(e){return t.call(this,e)||this}var n;return xh(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<Ry.length;++s)r[Ry[s]]=this[Ry[s]];r.__dirty|=Xp}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Object(Sh.F)(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?Object(Sh.m)(this.style,a):this.useStyle(a):"shape"===o?Object(Sh.m)(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Object(Sh.C)(t)){var e=Object(Lf.e)(t,0);return e>.5?"#333":e>.2?"#eee":"#ccc"}if(t)return"#ccc"}return"#333"},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(Sh.C)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Object(Lf.e)(t,0)<_g)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Zp},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new vy(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;
70return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&Zp)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return jy(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return jy(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Zp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:Object(Sh.m)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Zp)},e.prototype.createStyle=function(t){return Object(Sh.g)(Ey,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(Sh.m)({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=Object(Sh.m)({},i.shape),Object(Sh.m)(s,n.shape)):(s=Object(Sh.m)({},r?this.shape:i.shape),Object(Sh.m)(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=Object(Sh.m)({},this.shape);for(var c={},u=Object(Sh.F)(s),d=0;d<u.length;d++){var h=u[d];"object"==typeof s[h]?this.shape[h]=s[h]:c[h]=s[h]}this._transitionState(e,{shape:c},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return Ny},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return xh(n,e),n.prototype.getDefaultStyle=function(){return Object(Sh.d)(t.style)},n.prototype.getDefaultShape=function(){return Object(Sh.d)(t.shape)},n}(e);for(var i in t)"function"==typeof t[i]&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=2|Xp|Zp)),e}(Rv),zy=Object(Sh.i)({strokeFirst:!0,font:Pg.a,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ey),Vy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Object(Sh.g)(zy,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Rg(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Rv);Vy.prototype.type="tspan";var Fy=Vy,Hy=Object(Sh.i)({x:0,y:0},Av),Gy={style:Object(Sh.i)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Dv.style)}
vendor: 2,306 bytes, line 70
70;var Wy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.createStyle=function(t){return Object(Sh.g)(Hy,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Gy},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new kp(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Rv);Wy.prototype.type="image";var Uy=Wy;var qy=Math.round;function Yy(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(qy(2*i)===qy(2*r)&&(t.x1=t.x2=Xy(i,s,!0)),qy(2*o)===qy(2*a)&&(t.y1=t.y2=Xy(o,s,!0)),t):t}}function $y(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Xy(i,s,!0),t.y=Xy(r,s,!0),t.width=Math.max(Xy(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Xy(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Xy(t,e,n){if(!e)return t;var i=qy(2*t);return(i+qy(e))%2==0?i/2:(i+(n?1:-1))/2}var Zy=function(){return function(){this.x=0,this.y=0,this.width=0,this.height=0}}(),Ky={},Jy=function(t){function e(e){return t.call(this,e)||this}return xh(e,t),e.prototype.getDefaultShape=function(){return new Zy},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=$y(Ky,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,c=e.width,u=e.height,d=e.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"==typeof d?n=i=r=o=d:d instanceof Array?1===d.length?n=i=r=o=d[0]:2===d.length?(n=r=d[0],i=o=d[1]):3===d.length?(n=d[0],i=o=d[1],r=d[2]):(n=d[0],i=d[1],r=d[2],o=d[3]):n=i=r=o=0,n+i>c&&(n*=c/(a=n+i),i*=c/a),r+o>c&&(r*=c/(a=r+o),o*=c/a),i+r>u&&(i*=u/(a=i+r),r*=u/a),n+o>u&&(n*=u/(a=n+o),o*=u/a),t.moveTo(s+n,l),t.lineTo(s+c-i,l),0!==i&&t.arc(s+c-i,l+i,i,-Math.PI/2,0),t.lineTo(s+c,l+u-r),0!==r&&t.arc(s+c-r,l+u-r,r,0,Math.PI/2),t.lineTo(s+o,l
70+u),0!==o&&t.arc(s+o,l+u-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(By);Jy.prototype.type="rect";var Qy=Jy,tb={fill:"#000"},eb={style:Object(Sh.i)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Dv.style)},nb=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=tb,n.attr(e),n}return xh(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,cb(t=this.style),Object(Sh.k)(t.rich,cb),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new kp(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||tb},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return Object(Sh.m)(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=Object(Sh.F)(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},Object(Sh.m)(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return eb},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||Pg.a,n=t.padding,i=function(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=Vg(o),l=Object(Sh.P)(e.lineHeight,s),c=!!e.backgroundColor,u="truncate"===e.lineOverflow,d=!1,h=e.width,p=(n=null==h||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?Tv(t,e.font,h,"breakAll"===i,0).lines:[]).length*l,f=Object(Sh.P)(e.height,p);if(p>f&&u){var g=Math.floor(f/l);d=d||n.length>g,n=n.slice(0,g)}if(t&&a&&null!=h)for(var m=bv(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v={},y=0;y<n.length;y++)_v(v,n[y],m),n[y]=v.textLine,d=d||v.isTruncated;var b=f,_=0;for(y=0;y<n.length;y++)_=Math.max(Eg(n[y],o),_);null==h&&(h=_);var x=_;return r&&(b+=r[0]+r[2],x+=r[1]+r[3],h+=r[1]+r[3]),c&&(x=h),{lines:n,height:f,outerWidth:x,outerHeight:b,lineHeight:l,calculatedLineHeight:s,contentWidth:_,contentHeight:p,width:h,isTruncated:d}}(pb(t),t),r=fb(t),o=!!t.backgroundColor,a=i.outerHeight,s=i.outerWidth,l=i.contentWidth,c=i.lines,u=i.lineHeight,d=this._defaultStyle;this.isTruncated=!!i.isTruncated;var h=t.x||0,p=t.y||0,f=t.align||d.align||"left",g=t.verticalAlign||d.verticalAlign||"top",m=h,v=zg(p,i.contentHeight,g);if(r||n){var y=Bg(h,s,f),b=zg(p,a,g);
70r&&this._renderBackground(t,t,y,b,s,a)}v+=u/2,n&&(m=hb(h,f,n),"top"===g?v+=n[0]:"bottom"===g&&(v-=n[2]));for(var _=0,x=!1,w=(db("fill"in t?t.fill:(x=!0,d.fill))),S=(ub("stroke"in t?t.stroke:o||d.autoStroke&&!x?null:(_=2,d.stroke))),O=t.textShadowBlur>0,M=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,I=0;I<c.length;I++){var T=this._getOrCreateChild(Fy),k=T.createStyle();T.useStyle(k),k.text=c[I],k.x=m,k.y=v,f&&(k.textAlign=f),k.textBaseline="middle",k.opacity=t.opacity,k.strokeFirst=!0,O&&(k.shadowBlur=t.textShadowBlur||0,k.shadowColor=t.textShadowColor||"transparent",k.shadowOffsetX=t.textShadowOffsetX||0,k.shadowOffsetY=t.textShadowOffsetY||0),k.stroke=S,k.fill=w,S&&(k.lineWidth=t.lineWidth||_,k.lineDash=t.lineDash,k.lineDashOffset=t.lineDashOffset||0),k.font=e,sb(k,t),v+=u,M&&T.setBoundingRect(new kp(Bg(k.x,l,k.textAlign),zg(k.y,C,k.textBaseline),l,C))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var n=new Ov;if(null!=t&&(t+=""),!t)return n;for(var i,r=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},l=vv.lastIndex=0;null!=(i=vv.exec(t));){var c=i.index;c>l&&Mv(n,t.substring(l,c),e,s),Mv(n,i[2],e,s,i[1]),l=vv.lastIndex}l<t.length&&Mv(n,t.substring(l,t.length),e,s);var u=[],d=0,h=0,p=e.padding,f="truncate"===a,g="truncate"===e.lineOverflow,m={};function v(t,e,n){t.width=e,t.lineHeight=n,d+=n,h=Math.max(h,e)}t:for(var y=0;y<n.lines.length;y++){for(var b=n.lines[y],_=0,x=0,w=0;w<b.tokens.length;w++){var S=(j=b.tokens[w]).styleName&&e.rich[j.styleName]||{},O=j.textPadding=S.padding,M=O?O[1]+O[3]:0,C=j.font=S.font||e.font;j.contentHeight=Vg(C);var I=Object(Sh.P)(S.height,j.contentHeight);if(j.innerHeight=I,O&&(I+=O[0]+O[2]),j.height=I,j.lineHeight=Object(Sh.Q)(S.lineHeight,e.lineHeight,I),j.align=S&&S.align||e.align,j.verticalAlign=S&&S.verticalAlign||"middle",g&&null!=o&&d+j.lineHeight>o){var T=n.lines.length;w>0?(b.tokens=b.tokens.slice(0,w),v(b,x,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y),n.isTruncated=n.isTruncated||n.lines.length<T;break t}var k=S.width,A=null==k||"auto"===k;if("string"==typeof k&&"%"===k.charAt(k.length-1))j.percentWidth=k,u.push(j),j.contentWidth=Eg(j.text,C);else{if(A){var D=S.backgroundColor,L=D&&D.image;L&&mv(L=pv(L))&&(j.width=Math.max(j.width,L.width*I/L.height))}var P=f&&null!=r?r-x:null;null!=P&&P<j.width?!A||P<M?(j.text="",j.width=j.contentWidth=0):(yv(m,j.text,P-M,C,e.ellipsis,{minChar:e.truncateMinChar}),j.text=m.text,n.isTruncated=n.isTruncated||m.isTruncated,j.width=j.contentWidth=Eg(j.text,C)):j.contentWidth=Eg(j.text,C)}j.width+=M,x+=j.width,S&&(_=Math.max(_,j.lineHeight))}v(b,x,_)}for(n.outerWidth=n.width=Object(Sh.P)(r,h),n.outerHeight=n.height=Object(Sh.P)(o,d),n.contentHeight=d,n.contentWidth=h,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]),y=0;y<u.length;y++){var j,E=(j=u[y]).percentWidth;j.width=parseInt(E,10)/100*n.width}return n}(pb(t),t),n=e.width,i=e.outerWidth,r=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,c=t.align||l.align,u=t.verticalAlign||l.verticalAlign;this.isTruncated=!!e.isTruncated;var d=Bg(a,i,c),h=zg(s,r,u),p=d,f=h;o&&(p+=o[3],f+=o[0]);var g=p+n;fb(t)&&this._renderBackground(t,t,d,h,i,r);for(var m=!!t.backgroundColor,v=0;v<e.lines.length;v++){for(var y=e.lines[v],b=y.tokens,_=b.length,x=y.lineHeight,w=y.width,S=0,O=p,M=g,C=_-1,I=void 0;S<_&&(!(I=b[S]).align||"left"===I.align);)this._placeToken(I,t,x,f,O,"left",m),w-=I.width,O+=I.width,S++;for(;C>=0&&"right"===(I=b[C]).align;)this._placeToken(I,t,x,f,M,"right",m),w-=I.width,M-=I.width,C--;for(O+=(n-(O-p)-(g-M)-w)/2;S<=C;)I=b[S],this._placeToken(I,t,x,f,O+I.width/2,"center",m),O+=I.width,S++;f+=x}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,c=i+n/2;"top"===l?c=i+t.height/2:"bottom"===l&&(c=i+n-t.height/2),!t.isLineHolder&&fb(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,c-t.height/2,t.width,t.height);var u=!!s.backgroundColor,d=t.textPadding;
70d&&(r=hb(r,o,d),c-=t.height/2-d[0]-t.innerHeight/2);var h=this._getOrCreateChild(Fy),p=h.createStyle();h.useStyle(p);var f=this._defaultStyle,g=!1,m=0,v=db("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),y=ub("stroke"in s?s.stroke:"stroke"in e?e.stroke:u||a||f.autoStroke&&!g?null:(m=2,f.stroke)),b=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=r,p.y=c,b&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||Pg.a,p.opacity=Object(Sh.Q)(s.opacity,e.opacity,1),sb(p,s),y&&(p.lineWidth=Object(Sh.Q)(s.lineWidth,e.lineWidth,m),p.lineDash=Object(Sh.P)(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=y),v&&(p.fill=v);var _=t.contentWidth,x=t.contentHeight;h.setBoundingRect(new kp(Bg(p.x,_,p.textAlign),zg(p.y,x,p.textBaseline),_,x))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,c=t.backgroundColor,u=t.borderWidth,d=t.borderColor,h=c&&c.image,p=c&&!h,f=t.borderRadius,g=this;if(p||t.lineHeight||u&&d){(a=this._getOrCreateChild(Qy)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=i,m.width=r,m.height=o,m.r=f,a.dirtyShape()}if(p)(l=a.style).fill=c||null,l.fillOpacity=Object(Sh.P)(t.fillOpacity,1);else if(h){(s=this._getOrCreateChild(Uy)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=c.image,v.x=n,v.y=i,v.width=r,v.height=o}u&&d&&((l=a.style).lineWidth=u,l.stroke=d,l.strokeOpacity=Object(Sh.P)(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=Object(Sh.Q)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return lb(t)&&(e=[t.fontStyle,t.fontWeight,ab(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(Sh.T)(e)||t.textFont||t.font},e}(Rv),ib={left:!0,right:1,center:1},rb={top:1,bottom:1,middle:1},ob=["fontStyle","fontWeight","fontSize","fontFamily"];function ab(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Pg.c+"px":t+"px":t}function sb(t,e){for(var n=0;n<ob.length;n++){var i=ob[n],r=e[i];null!=r&&(t[i]=r)}}function lb(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function cb(t){if(t){t.font=nb.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||ib[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||rb[n]?n:"top",t.padding&&(t.padding=Object(Sh.M)(t.padding))}}function ub(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function db(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function hb(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function pb(t){var e=t.text;return null!=e&&(e+=""),e}function fb(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var gb=nb,mb=Gm(),vb=function(t,e,n,i){if(i){var r=mb(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===i.type&&i.traverse(function(i){var r=mb(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"})}},yb=1,bb={},_b=Gm(),xb=Gm(),wb=0,Sb=1,Ob=2,Mb=["emphasis","blur","select"],Cb=["normal","emphasis","blur","select"],Ib=10,Tb=9,kb="highlight",Ab="downplay",Db="select",Lb="unselect",Pb="toggleSelect";function jb(t){return null!=t&&"none"!==t}function Eb(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Nb(t){Eb(t,"emphasis",Ob)}function Rb(t){t.hoverState===Ob&&Eb(t,"normal",wb)}function Bb(t){Eb(t,"blur",Sb)}function zb(t){t.hoverState===Sb&&Eb(t,"normal",wb)}function Vb(t){t.selected=!0}function Fb(t){t.selected=!1}function Hb(t,e,n){e(t,n)}function Gb(t,e,n){Hb(t,e,n),t.isGroup&&t.traverse(function(t){Hb(t,e,n)})}function Wb(t,e){switch(e){case"emphasis":t.hoverState=Ob;break;case"normal":t.hoverState=wb;break;case"blur":t.hoverState=Sb;break;case"select":t.selected=!0}}function Ub(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&Object(Sh.r)(n,"select")>=0,o=!1;if(t instanceof By){var a=_b(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(jb(s)||jb(l)){var c=(i=i||{}).style||{};"inherit"===c.fill?(o=!0,i=Object(Sh.m)({},i),(c=Object(Sh.m)({},c)).fill=s):!jb(c.fill)&&jb(s)?(o=!0,i=Object(Sh.m)({},i),(c=Object(Sh.m)({},c)).fill=Object(Lf.d)(s)):!jb(c.stroke)&&jb(l)&&(o||(i=Object(Sh.m)({},i),c=Object(Sh.m)({},c)),c.stroke=Object(Lf.d)(l)),i.style=c}}if(i&&null==i.z2){o||(i=Object(Sh.m)({},i));var u=t.z2EmphasisLift;i.z2=t.z2+(null!=u?u:Ib)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=Object(Sh.r)(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var c=t.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&"style"===c.targetName&&c.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=Object(Sh.m)({},n),a=Object(Sh.m)({opacity:i?r:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=Object(Sh.m)({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:Tb)}return n}(this,0,n)}return n}function qb(t){t.stateProxy=Ub;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Ub),n&&(n.stateProxy=Ub)}function Yb(t,e){!e_(t,e)&&!t.__highByOuter&&Gb(t,Nb)}function $b(t,e){!e_(t,e)&&!t.__highByOuter&&Gb(t,Rb)}function Xb(t,e){t.__highByOuter|=1<<(e||0),Gb(t,Nb)}function Zb(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Gb(t,Rb)}function Kb(t){Gb(t,Bb)}function Jb(t){Gb(t,zb)}function Qb(t){Gb(t,Vb)}function t_(t){Gb(t,Fb)}function e_(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function n_(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=xb(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse(function(t){zb(t)}),a&&n.push(r)),o.isBlured=!1}),Object(Sh.k)(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function i_(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&Jb(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(t){var r=a===t,c=t.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!r||"coordinateSystem"===n&&!(c&&s?c===s:r)||"series"===e&&r)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&r&&"self"===e||Bb(t)}),Object(Sh.u)(e))o(t.getData(),e);else if(Object(Sh.A)(e))for(var u=Object(Sh.F)(e),d=0;d<u.length;d++)o(t.getData(u[d]),e[u[d]]);l.push(t),xb(t).isBlured=!0}}),r.eachComponent(function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}})}}function r_(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){xb(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(t){Bb(t)})}}}function o_(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),c=0;c<l.length;c++)if("self"===mb(l[c]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function a_(t){var e=t.getAllData();Object(Sh.k)(e,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?Qb(e):t_(e)}
vendor: 4,529 bytes, line 70
70)})}function s_(t){var e=[];return t.eachSeries(function(t){var n=t.getAllData();Object(Sh.k)(n,function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function l_(t,e,n){f_(t,!0),Gb(t,qb),u_(t,e,n)}function c_(t,e,n,i){i?function(t){f_(t,!1)}(t):l_(t,e,n)}function u_(t,e,n){var i=mb(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var d_=["emphasis","blur","select"],h_={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function p_(t,e,n,i){n=n||"itemStyle";for(var r=0;r<d_.length;r++){var o=d_[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[h_[n]]()}}function f_(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function g_(t){return!(!t||!t.__highDownDispatcher)}function m_(t){var e=t.type;return e===Db||e===Lb||e===Pb}function v_(t){var e=t.type;return e===kb||e===Ab}var y_=Gm();function b_(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,c=void 0,u=void 0;return i?(l=Object(Sh.P)(i.duration,200),c=Object(Sh.P)(i.easing,"cubicOut"),u=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),c=e.getShallow(s?"animationEasingUpdate":"animationEasing"),u=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(u=o.delay)),Object(Sh.w)(u)&&(u=u(n,r)),Object(Sh.w)(l)&&(l=l(n)),{duration:l||0,delay:u,easing:c}}return null}function __(t,e,n,i,r,o,a){var s,l=!1;Object(Sh.w)(r)?(a=o,o=r,r=null):Object(Sh.A)(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var c="leave"===t;c||e.stopAnimation("leave");var u=b_(t,i,r,c?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(u&&u.duration>0){var d={duration:u.duration,delay:u.delay||0,easing:u.easing,done:o,force:!!o||!!a,setToFinal:!c,scope:t,during:a};l?e.animateFrom(n,d):e.animateTo(n,d)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function x_(t,e,n,i,r,o){__("update",t,e,n,i,r,o)}function w_(t,e,n,i,r,o){__("enter",t,e,n,i,r,o)}function S_(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function O_(t,e,n,i,r,o){S_(t)||__("leave",t,e,n,i,r,o)}function M_(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),O_(t,{style:{opacity:0}},e,n,i)}function C_(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||M_(t,e,n,i)}):M_(t,e,n,i)}function I_(t){y_(t).oldStyle=t.style}var T_={};function k_(t,e){for(var n=0;n<Mb.length;n++){var i=Mb[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function A_(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=Object(Sh.w)(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},c=0;c<Mb.length;c++){var u=Mb[c],d=e[u];l[u]=Object(Sh.P)(r?r.getFormattedLabel(o,u,null,a,d&&d.get("formatter")):null,i)}return l}function D_(t,e,n,i){n=n||T_;for(var r=t instanceof gb,o=!1,a=0;a<Cb.length;a++){if((h=e[Cb[a]])&&h.getShallow("show")){o=!0;break}}var s=r?t:t.getTextContent();if(o){r||(s||(s=new gb,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=A_(n,e),c=e.normal,u=!!c.getShallow("show"),d=P_(c,i&&i.normal,n,!1,!r);d.text=l.normal,r||t.setTextConfig(j_(c,n,!1));for(a=0;a<Mb.length;a++){var h,p=Mb[a];if(h=e[p]){var f=s.ensureState(p),g=!!Object(Sh.P)(h.getShallow("show"),u);if(g!==u&&(f.ignore=!g),f.style=P_(h,i&&i[p],n,!0,!r),f.style.text=l[p],!r)t.ensureState(p).textConfig=j_(h,n,!0)}}s.silent=!!c.getShallow("silent"),null!=s.style.x&&(d.x=s.style.x),null!=s.style.y&&(d.y=s.style.y),s.ignore=!u,s.useStyle(d),s.dirty(),n.enableTextSetter&&(V_(s).setLabelText=function(t){var i=A_(n,e,t);k_(s,i)})}else s&&(s.ignore=!0);t.dirty()}function L_(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<Mb.length;i++){var r=Mb[i];n[r]=t.getModel([r,e])}return n}function P_(t,e,n,i,r){var o={};return function(t,e,n,i,r){n=n||T_;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){var e;
70for(;t&&t!==t.ecModel;){var n=(t.option||T_).rich;if(n){e=e||{};for(var i=Object(Sh.F)(n),r=0;r<i.length;r++){var o=i[r];e[o]=1}}t=t.parentModel}return e}(e);if(l)for(var c in o={},l)if(l.hasOwnProperty(c)){var u=e.getModel(["rich",c]);B_(o[c]={},u,s,n,i,r,!1,!0)}o&&(t.rich=o);var d=e.get("overflow");d&&(t.overflow=d);var h=e.get("minMargin");null!=h&&(t.margin=h);B_(t,e,s,n,i,r,!0,!1)}(o,t,n,i,r),e&&Object(Sh.m)(o,e),o}function j_(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=Object(Sh.P)(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}var E_=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],N_=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],R_=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function B_(t,e,n,i,r,o,a,s){n=!r&&n||T_;var l=i&&i.inheritColor,c=e.getShallow("color"),u=e.getShallow("textBorderColor"),d=Object(Sh.P)(e.getShallow("opacity"),n.opacity);"inherit"!==c&&"auto"!==c||(c=l||null),"inherit"!==u&&"auto"!==u||(u=l||null),o||(c=c||n.color,u=u||n.textBorderColor),null!=c&&(t.fill=c),null!=u&&(t.stroke=u);var h=Object(Sh.P)(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(t.lineWidth=h);var p=Object(Sh.P)(e.getShallow("textBorderType"),n.textBorderType);null!=p&&(t.lineDash=p);var f=Object(Sh.P)(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(t.lineDashOffset=f),r||null!=d||s||(d=i&&i.defaultOpacity),null!=d&&(t.opacity=d),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var g=0;g<E_.length;g++){var m=E_[g];null!=(y=Object(Sh.P)(e.getShallow(m),n[m]))&&(t[m]=y)}for(g=0;g<N_.length;g++){m=N_[g];null!=(y=e.getShallow(m))&&(t[m]=y)}if(null==t.verticalAlign){var v=e.getShallow("baseline");null!=v&&(t.verticalAlign=v)}if(!a||!i.disableBox){for(g=0;g<R_.length;g++){var y;m=R_[g];null!=(y=e.getShallow(m))&&(t[m]=y)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function z_(t,e){var n=e&&e.getModel("textStyle");return Object(Sh.T)([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var V_=Gm();function F_(t,e,n,i){if(t){var r=V_(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function H_(t,e,n,i,r){var o=V_(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=Object(Sh.P)(o.interpolatedValue,o.prevValue),l=o.value;t.percent=0,(null==o.prevValue?w_:x_)(t,{percent:1},i,e,null,function(i){var c=Jm(n,o.precision,s,l,i);o.interpolatedValue=1===i?null:c;var u=A_({labelDataIndex:e,labelFetcher:r,defaultText:a?a(c):c+""},o.statesModels,c);k_(t,u)})}}var G_,W_,U_=["textStyle","color"],q_=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Y_=new gb,$_=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(U_):null)},t.prototype.getFont=function(){return z_({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<q_.length;n++)e[q_[n]]=this.getShallow(q_[n]);
vendor: 5,758 bytes, line 70
70return Y_.useStyle(e),Y_.update(),Y_.getBoundingRect()},t}(),X_=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Z_=cv(X_),K_=function(){function t(){}return t.prototype.getLineStyle=function(t){return Z_(this,t)},t}(),J_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Q_=cv(J_),tx=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Q_(this,t,e)},t}(),ex=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){Object(Sh.I)(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(Object(Sh.d)(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!wh.a.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();iv(ex),G_=ex,W_=["__\0is_clz",ov++].join("_"),G_.prototype[W_]=!0,G_.isInstance=function(t){return!(!t||!t[W_])},Object(Sh.K)(ex,K_),Object(Sh.K)(ex,tx),Object(Sh.K)(ex,dv),Object(Sh.K)(ex,$_);var nx=ex,ix=Math.round(10*Math.random());function rx(t){return[t||"",ix++].join("_")}function ox(t,e){return Sh.I(Sh.I({},t,!0),e,!0)}var ax="ZH",sx="EN",lx=sx,cx={},ux={},dx=wh.a.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||lx).toUpperCase().indexOf(ax)>-1?ax:lx;function hx(t,e){t=t.toUpperCase(),ux[t]=new nx(e),cx[t]=e}function px(t){return ux[t]}hx(sx,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),hx(ax,{time:{month:["䏿","äºæ","䏿","åæ","äºæ","å
æ","䏿","å
«æ","乿","åæ","å䏿","åäºæ"],monthAbbr:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"],dayOfWeek:["æææ¥","ææä¸","ææäº","ææä¸","ææå","ææäº","ææå
"],dayOfWeekAbbr:["æ¥","ä¸","äº","ä¸","å","äº","å
"]},legend:{selector:{all:"å
¨é",inverse:"åé"}},toolbox:{brush:{title:{rect:"ç©å½¢éæ©",polygon:"åé",lineX:"横åéæ©",lineY:"纵åéæ©",keep:"ä¿æéæ©",clear:"æ¸
é¤éæ©"}},dataView:{title:"æ°æ®è§å¾",lang:["æ°æ®è§å¾","å
³é","å·æ°"]},dataZoom:{title:{zoom:"åºå缩æ¾",back:"åºå缩æ¾è¿å"}},magicType:{title:{line:"åæ¢ä¸ºæçº¿å¾",bar:"åæ¢ä¸ºæ±ç¶å¾",stack:"åæ¢ä¸ºå å ",tiled:"åæ¢ä¸ºå¹³éº"}},restore:{title:"è¿å"}
70,saveAsImage:{title:"ä¿å为å¾ç",lang:["å³é®å¦å为å¾ç"]}},series:{typeNames:{pie:"饼å¾",bar:"æ±ç¶å¾",line:"æçº¿å¾",scatter:"æ£ç¹å¾",effectScatter:"æ¶æ¼ªæ£ç¹å¾",radar:"é·è¾¾å¾",tree:"æ å¾",treemap:"ç©å½¢æ å¾",boxplot:"ç®±åå¾",candlestick:"K线å¾",k:"K线å¾",heatmap:"çåå¾",map:"å°å¾",parallel:"å¹³è¡åæ å¾",lines:"线å¾",graph:"å
³ç³»å¾",sankey:"æ¡åºå¾",funnel:"æ¼æå¾",gauge:"仪表çå¾",pictorialBar:"象形æ±å¾",themeRiver:"䏻颿²³æµå¾",sunburst:"ææ¥å¾",custom:"èªå®ä¹å¾è¡¨",chart:"å¾è¡¨"}},aria:{general:{withTitle:"è¿æ¯ä¸ä¸ªå
³äºâ{title}âçå¾è¡¨ã",withoutTitle:"è¿æ¯ä¸ä¸ªå¾è¡¨ï¼"},series:{single:{prefix:"",withName:"å¾è¡¨ç±»åæ¯{seriesType}ï¼è¡¨ç¤º{seriesName}ã",withoutName:"å¾è¡¨ç±»åæ¯{seriesType}ã"},multiple:{prefix:"å®ç±{seriesCount}个å¾è¡¨ç³»åç»æã",withName:"第{seriesId}ä¸ªç³»åæ¯ä¸ä¸ªè¡¨ç¤º{seriesName}ç{seriesType}ï¼",withoutName:"第{seriesId}ä¸ªç³»åæ¯ä¸ä¸ª{seriesType}ï¼",separator:{middle:"ï¼",end:"ã"}}},data:{allData:"å
¶æ°æ®æ¯ââ",partialData:"å
¶ä¸ï¼å{displayCnt}项æ¯ââ",withName:"{name}çæ°æ®æ¯{value}",withoutName:"{value}",separator:{middle:"ï¼",end:""}}}});var fx=1e3,gx=60*fx,mx=60*gx,vx=24*mx,yx=365*vx,bx={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},_x={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+bx.hour,minute:"{yyyy}-{MM}-{dd} "+bx.minute,second:"{yyyy}-{MM}-{dd} "+bx.second,millisecond:bx.none},xx=["year","month","day","hour","minute","second","millisecond"],wx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Sx(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ox(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Mx(t,e,n,i){var r=bm(t),o=r[Tx(n)](),a=r[kx(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[Ax(n)](),c=r["get"+(n?"UTC":"")+"Day"](),u=r[Dx(n)](),d=(u-1)%12+1,h=r[Lx(n)](),p=r[Px(n)](),f=r[jx(n)](),g=u>=12?"pm":"am",m=g.toUpperCase(),v=(i instanceof nx?i:px(i||dx)||ux[lx]).getModel("time"),y=v.get("month"),b=v.get("monthAbbr"),_=v.get("dayOfWeek"),x=v.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Sx(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,b[a-1]).replace(/{MM}/g,Sx(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Sx(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[c]).replace(/{ee}/g,x[c]).replace(/{e}/g,c+"").replace(/{HH}/g,Sx(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Sx(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Sx(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Sx(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Sx(f,3)).replace(/{S}/g,f+"")}function Cx(t,e){var n=bm(t),i=n[kx(e)]()+1,r=n[Ax(e)](),o=n[Dx(e)](),a=n[Lx(e)](),s=n[Px(e)](),l=0===n[jx(e)](),c=l&&0===s,u=c&&0===a,d=u&&0===o,h=d&&1===r;return h&&1===i?"year":h?"month":d?"day":u?"hour":c?"minute":l?"second":"millisecond"}function Ix(t,e,n){var i=Sh.z(t)?bm(t):t;switch(e=e||Cx(t,n)){case"year":return i[Tx(n)]();case"half-year":return i[kx(n)]()>=6?1:0;case"quarter":return Math.floor((i[kx(n)]()+1)/4);case"month":return i[kx(n)]();case"day":return i[Ax(n)]();case"half-day":return i[Dx(n)]()/24;case"hour":return i[Dx(n)]();case"minute":return i[Lx(n)]();case"second":return i[Px(n)]();case"millisecond":return i[jx(n)]()}}function Tx(t){return t?"getUTCFullYear":"getFullYear"}function kx(t){return t?"getUTCMonth":"getMonth"}function Ax(t){return t?"getUTCDate":"getDate"}function Dx(t){return t?"getUTCHours":"getHours"}function Lx(t){return t?"getUTCMinutes":"getMinutes"}function Px(t){return t?"getUTCSeconds":"getSeconds"}function jx(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Ex(t){return t?"setUTCFullYear":"setFullYear"}function Nx(t){return t?"setUTCMonth":"setMonth"}function Rx(t){return t?"setUTCDate":"setDate"}function Bx(t){return t?"setUTCHours":"setHours"}function zx(t){return t?"setUTCMinutes":"setMinutes"}function Vx(t){return t?"setUTCSeconds":"setSeconds"}function Fx(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Hx(t){if(!Mm(t))return Sh.C(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Gx(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Wx=Sh.M;function Ux(t,e,n){function i(t){return t&&Sh.T(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?bm(t):t;if(!isNaN(+s))return Mx(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return Sh.D(t)?i(t):Sh.z(t)&&r(t)?t+"":"-";var l=Om(t);return r(l)?Hx(l):Sh.D(t)?i(t):"boolean"==typeof t?t+"":"-"}var qx=["a","b","c","d","e","f","g"],Yx=function(t,e){return"{"+t+(null==e?"":e)+"}"};function $x(t,e,n){Sh.t(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=qx[o];t=t.replace(Yx(a),Yx(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var c=e[s][r[l]];t=t.replace(Yx(qx[l],s),n?Qh(c):c)}return t}function Xx(t,e){return e=e||"transparent",Sh.C(t)?t:Sh.A(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Zx(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Kx=Sh.k,Jx=["left","right","top","bottom","width","height"],Qx=[["width","left","right"],["height","top","bottom"]];function tw(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;
vendor: 4,963 bytes, line 70
70e.eachChild(function(l,c){var u,d,h=l.getBoundingRect(),p=e.childAt(c+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=h.width+(f?-f.x+h.x:0);(u=o+g)>i||l.newline?(o=0,u=g,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var m=h.height+(f?-f.y+h.y:0);(d=a+m)>r||l.newline?(o+=s+n,a=0,d=m,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=u+n:a=d+n)})}var ew=tw;Sh.h(tw,"vertical"),Sh.h(tw,"horizontal");function nw(t,e,n){n=Wx(n||0);var i=e.width,r=e.height,o=lm(t.left,i),a=lm(t.top,r),s=lm(t.right,i),l=lm(t.bottom,r),c=lm(t.width,i),u=lm(t.height,r),d=n[2]+n[0],h=n[1]+n[3],p=t.aspect;switch(isNaN(c)&&(c=i-s-h-o),isNaN(u)&&(u=r-l-d-a),null!=p&&(isNaN(c)&&isNaN(u)&&(p>i/r?c=.8*i:u=.8*r),isNaN(c)&&(c=p*u),isNaN(u)&&(u=c/p)),isNaN(o)&&(o=i-s-c-h),isNaN(a)&&(a=r-l-u-d),t.left||t.right){case"center":o=i/2-c/2-n[3];break;case"right":o=i-c-h}switch(t.top||t.bottom){case"middle":case"center":a=r/2-u/2-n[0];break;case"bottom":a=r-u-d}o=o||0,a=a||0,isNaN(c)&&(c=i-h-o-(s||0)),isNaN(u)&&(u=r-d-a-(l||0));var f=new kp(o+n[3],a+n[0],c,u);return f.margin=n,f}function iw(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],c=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===c)a="group"===t.type?new kp(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();(a=a.clone()).applyTransform(u)}var d=nw(Sh.i({width:a.width,height:a.height},e),n,i),h=s?d.x-a.x:0,p=l?d.y-a.y:0;return"raw"===c?(o.x=h,o.y=p):(o.x+=h,o.y+=p),o===t&&t.markRedraw(),!0}function rw(t){var e=t.layoutMode||t.constructor.layoutMode;return Sh.A(e)?e:e?{type:e}:null}function ow(t,e,n){var i=n&&n.ignoreSize;!Sh.t(i)&&(i=[i,i]);var r=a(Qx[0],0),o=a(Qx[1],1);function a(n,r){var o={},a=0,c={},u=0;if(Kx(n,function(e){c[e]=t[e]}),Kx(n,function(t){s(e,t)&&(o[t]=c[t]=e[t]),l(o,t)&&a++,l(c,t)&&u++}),i[r])return l(e,n[1])?c[n[2]]=null:l(e,n[2])&&(c[n[1]]=null),c;if(2!==u&&a){if(a>=2)return o;for(var d=0;d<n.length;d++){var h=n[d];if(!s(o,h)&&s(t,h)){o[h]=t[h];break}}return o}return c}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function c(t,e,n){Kx(t,function(t){e[t]=n[t]})}c(Qx[0],t,r),c(Qx[1],t,o)}function aw(t){return sw({},t)}function sw(t,e){return e&&t&&Kx(Jx,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var lw=Gm(),cw=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=rx("ec_cpt_model"),r}var n;return xh(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=rw(this),i=n?aw(t):{},r=e.getTheme();Sh.I(t,r.get(this.mainType)),Sh.I(t,this.getDefaultOption()),n&&ow(t,i,n)},e.prototype.mergeOption=function(t,e){Sh.I(this.option,t,!0);var n=rw(this);n&&ow(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[ev])}(t))return t.defaultOption;var e=lw(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=Sh.I(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Xm(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(nx);rv(cw,nx),lv(cw),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=nv(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=nv(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(cw),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return Sh.k(t,function(o){var a=n(i,o),s=function(t,e){var n=[];return Sh.k(t,function(t){Sh.r(e,t)>=0&&n.push(t)}),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),Sh.k(s,function(t){Sh.r(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);Sh.r(e.successor,t)<0&&e.successor.push(o)})}),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,c={};for(Sh.k(t,function(t){c[t]=!0});l.length;){var u=l.pop(),d=s[u],h=!!c[u];h&&(r.call(o,u,d.originalDeps.slice()),delete c[u]),Sh.k(d.successor,h?f:p)}Sh.k(c,function(){throw new Error("")})}function p(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){c[t]=!0,p(t)}}}(cw,function(t){var e=[];Sh.k(cw.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.depen
70dencies||[])}),e=Sh.H(e,function(t){return nv(t).main}),"dataset"!==t&&Sh.r(e,"dataset")<=0&&e.unshift("dataset");return e});var uw=cw,dw="";"undefined"!=typeof navigator&&(dw=navigator.platform||"");var hw="rgba(0, 0, 0, 0.2)",pw={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:hw,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:hw,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:hw,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:hw,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:hw,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:hw,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:dw.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},fw=Object(Sh.f)(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),gw="original",mw="arrayRows",vw="objectRows",yw="keyedColumns",bw="typedArray",_w="unknown",xw="column",ww="row",Sw={Must:1,Might:2,Not:3},Ow=Gm();function Mw(t,e,n){var i={},r=Iw(e);if(!r||!t)return i;var o,a,s=[],l=[],c=e.ecModel,u=Ow(c).datasetMap,d=r.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(Sh.k)(t,function(e,n){var r=Object(Sh.A)(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]});var h=u.get(d)||u.set(d,{categoryWayDim:a,valueWayDim:0});function p(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function f(t){var e=t.dimsDef;return e?e.length:1}return Object(Sh.k)(t,function(t,e){var n=t.name,r=f(t);if(null==o){var a=h.valueWayDim;p(i[n],a,r),p(l,a,r),h.valueWayDim+=r}else if(o===e)p(i[n],0,r),p(s,0,r);else{a=h.categoryWayDim;p(i[n],a,r),p(l,a,r),h.categoryWayDim+=r}}),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function Cw(t,e,n){var i={};if(!Iw(t))return i;var r,o=e.sourceFormat,a=e.dimensionsDefine;o!==vw&&o!==yw||Object(Sh.k)(a,function(t,e){"name"===(Object(Sh.A)(t)?t.name:t)&&(r=e)});var s=function(){for(var t={},i={},s=[],l=0,c=Math.min(5,n);l<c;l++){var u=kw(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(u);var d=u===Sw.Not;if(d&&null==t.v&&l!==r&&(t.v=l),(null==t.n||t.n===t.v||!d&&s[t.n]===Sw.Not)&&(t.n=l),h(t)&&s[t.n]!==Sw.Not)return t;d||(u===Sw.Might&&null==i.v&&l!==r&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function h(t){return null!=t.v&&null!=t.n}return h(t)?t:h(i)?i:null}();if(s){i.value=[s.v];var l=null!=r?r:s.n;i.itemName=[l],i.seriesName=[l]}return i}function Iw(t){if(!t.get("data",!0))return Xm(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Ym).models[0]}function Tw(t,e){return kw(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function kw(t,e,n,i,r,o){var a,s,l;if(Object(Sh.E)(t))return Sw.Not;if(i){var c=i[o];Object(Sh.A)(c)?(s=c.name,l=c.type):Object(Sh.C)(c)&&(s=c)}if(null!=l)return"ordinal"===l?Sw.Must:Sw.Not;if(e===mw){var u=t;if(n===ww){for(var d=u[o],h=0;h<(d||[]).length&&h<5;h++)if(null!=(a=b(d[r+h])))return a}else for(h=0;h<u.length&&h<5;h++){var p=u[r+h];if(p&&null!=(a=b(p[o])))return a}}else if(e===vw){var f=t;if(!s)return Sw.Not;for(h=0;h<f.length&&h<5;h++){if((v=f[h])&&null!=(a=b(v[s])))return a}}else if(e===yw){var g=t;if(!s)return Sw.Not;if(!(d=g[s])||Object(Sh.E)(d))return Sw.Not;for(h=0;h<d.length&&h<5;h++)if(null!=(a=b(d[h])))return a}else if(e===gw){var m=t;for(h=0;h<m.length&&h<5;h++){var v,y=jm(v=m[h]);if(!Object(Sh.t)(y))return Sw.Not;if(null!=(a=b(y[o])))return a}}function b(t){var e=Object(Sh.C)(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?Sw.Might:Sw.Not:e&&"-"!==t?Sw.Must:void 0}return Sw.Not}var Aw=Object(Sh.f)();var Dw=Gm(),Lw=Gm(),Pw=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=Dm(this.get("color",!0)),r=this.get("colorLayer",!0);return Ew(this,Dw,i,r,t,e,n)},t.prototype.clearColorPalette=function(){var t,e;(e=Dw)(t=this).paletteIdx=0,e(t).paletteNameMap={}},t}();function jw(t,e,n,i){var r=Dm(t.get(["aria","decal","decals"]));return Ew(t,Lw,r,null,e,n,i)}function Ew(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(r))return c[r];var u=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((u=u||n)&&u.length){var d=u[l];return r&&(c[r]=d),s.paletteIdx=(l+1)%u.length,d}}var Nw,Rw,Bw;"undefined"!=typeof console&&console.warn&&console.log;function zw(t){0}function Vw(t){throw new Error(t)}var Fw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new nx(i),this._locale=new nx(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=Ww(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Ww(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Bw(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&Object(Sh.k)(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Object(Sh.f)(),s=e&&e.replaceMergeMainTypeMap;Ow(this).datasetMap=Object(Sh.f)(),Object(Sh.k)(t,function(t,e){null!=t&&(uw.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(Sh.d)(t):Object(Sh.I)(n[e],t,!0))}),s&&s.each(function(t,e){uw.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),uw.topologicalTravel(o,uw.getAllClassMainTypes(),function(e){var o=function(t,e,n){var i=Aw.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,Dm(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=Nm(a,o,l);(function(t,e,n){Object(Sh.k)(t,function(t){var i=t.newOption;
70Object(Sh.A)(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))})})(c,e,uw),n[e]=null,i.set(e,null),r.set(e,0);var u,d=[],h=[],p=0;Object(Sh.k)(c,function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=uw.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(u)return;u=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=Object(Sh.m)({componentIndex:n},t.keyInfo);i=new a(r,this,this,s),Object(Sh.m)(i,s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(d.push(i.option),h.push(i),p++):(d.push(void 0),h.push(void 0))},this),n[e]=d,i.set(e,h),r.set(e,p),"series"===e&&Nw(this)},this),this._seriesIndices||Nw(this)},e.prototype.getOption=function(){var t=Object(Sh.d)(this.option);return Object(Sh.k)(t,function(e,n){if(uw.hasClass(n)){for(var i=Dm(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Fm(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t["\0_ec_inner"],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],Object(Sh.k)(Dm(i),function(t){a[t]&&n.push(a[t])})):n=null!=r?Hw("id",r,a):null!=o?Hw("name",o,a):Object(Sh.n)(a,function(t){return!!t}),Gw(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(e=a)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]}),c=l?this.queryComponents(l):Object(Sh.n)(this._componentsMap.get(s),function(t){return!!t});return o=Gw(c,t),t.filter?Object(Sh.n)(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(Object(Sh.w)(t)){var r=e,o=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}})}else for(var a=Object(Sh.C)(t)?i.get(t):Object(Sh.A)(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=zm(t,null);return Object(Sh.n)(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Object(Sh.n)(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return Object(Sh.n)(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Rw(this),Object(Sh.k)(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},e.prototype.eachRawSeries=function(t,e){Object(Sh.k)(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){Rw(this),Object(Sh.k)(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Object(Sh.k)(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Rw(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Rw(this);var n=[];Object(Sh.k)(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=Object(Sh.f)(n)},e.prototype.restoreData=function(t){Nw(this);var e=this._componentsMap,n=[];e.each(function(t,e){uw.hasClass(e)&&n.push(e)}),uw.topologicalTravel(n,uw.getAllClassMainTypes(),function(n){Object(Sh.k)(e.get(n),function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t)||e.restoreData()})})},e.internalField=(Nw=function(t){var e=t._seriesIndices=[];Object(Sh.k)(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=Object(Sh.f)(e)},Rw=function(t){},void(Bw=function(t,e){t.option={},t.option["\0_ec_inner"]=1,t._componentsMap=Object(Sh.f)({series:[]}),t._componentsCount=Object(Sh.f)();var n,i,r,o=e.aria;Object(Sh.A)(o)&&null==o.enabled&&(o.enabled=!0),n=e,i=t._theme.option,r=n.color&&!n.colorLayer,Object(Sh.k)(i,function(t,e){"colorLayer"===e&&r||uw.hasClass(e)||("object"==typeof t?n[e]=n[e]?Object(Sh.I)(n[e],t,!1):Object(Sh.d)(t):null==n[e]&&(n[e]=t))}),Object(Sh.I)(e,pw,!1),t._mergeOption(e,null)})),e}(nx);function Hw(t,e,n){if(Object(Sh.t)(e)){var i=Object(Sh.f)();return Object(Sh.k)(e,function(t){null!=t&&(null!=zm(t,null)&&i.set(t,!0))}),Object(Sh.n)(n,function(e){return e&&i.get(e[t])})}var r=zm(e,null);return Object(Sh.n)(n,function(e){return e&&null!=r&&e[t]===r})}function Gw(t,e){return e.hasOwnProperty("subType")?Object(Sh.n)(t,function(t){return t&&t.subType===e.subType}):t}function Ww(t){var e=Object(Sh.f)();return t&&Object(Sh.k)(Dm(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}
70Object(Sh.K)(Fw,Pw);var Uw=Fw,qw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Yw=function(){return function(t){Sh.k(qw,function(e){this[e]=Sh.c(t[e],t)},this)}}(),$w={},Xw=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];Sh.k($w,function(i,r){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(t,e){Sh.k(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){$w[t]=e},t.get=function(t){return $w[t]},t}(),Zw=/^(min|max)?(.+)$/;function Kw(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return Object(Sh.k)(t,function(t,e){var n=e.match(Zw);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}}),r}var Jw=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Object(Sh.k)(Dm(t.series),function(t){t&&t.data&&Object(Sh.E)(t.data)&&Object(Sh.R)(t.data)}),Object(Sh.k)(Dm(t.dataset),function(t){t&&t.source&&Object(Sh.E)(t.source)&&Object(Sh.R)(t.source)})),t=Object(Sh.d)(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,c=t.media,u=!!t.media,d=!!(l||s||a&&a.timeline);a?(r=a).timeline||(r.timeline=s):((d||u)&&(t.options=t.media=null),r=t);u&&Object(Sh.t)(c)&&Object(Sh.k)(c,function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))});function h(t){Object(Sh.k)(e,function(e){e(t,n)})}return h(r),Object(Sh.k)(l,function(t){return h(t)}),Object(Sh.k)(o,function(t){return h(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(Sh.d)(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=Object(Sh.d)(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var c=0,u=o.length;c<u;c++)Kw(o[c].query,i,r)&&s.push(c);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=Object(Sh.H)(s,function(t){return Object(Sh.d)(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}(),Qw=Sh.k,tS=Sh.A,eS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function nS(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=eS.length;n<i;n++){var r=eS[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?Sh.I(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?Sh.I(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function iS(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,Sh.i(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function rS(t){iS(t,"itemStyle"),iS(t,"lineStyle"),iS(t,"areaStyle"),iS(t,"label"),iS(t,"labelLine"),iS(t,"upperLabel"),iS(t,"edgeLabel")}function oS(t,e){var n=tS(t)&&t[e],i=tS(n)&&n.textStyle;if(i){0;for(var r=0,o=Pm.length;r<o;r++){var a=Pm[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function aS(t){t&&(rS(t),oS(t,"label"),t.emphasis&&oS(t.emphasis,"label"))}function sS(t){return Sh.t(t)?t:t?[t]:[]}function lS(t){return(Sh.t(t)?t[0]:t)||{}}function cS(t,e){Qw(sS(t.series),function(t){tS(t)&&function(t){if(tS(t)){nS(t),rS(t),oS(t,"label"),oS(t,"upperLabel"),oS(t,"edgeLabel"),t.emphasis&&(oS(t.emphasis,"label"),oS(t.emphasis,"upperLabel"),oS(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(nS(e),aS(e));var n=t.markLine;n&&(nS(n),aS(n));var i=t.markArea;i&&aS(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!Sh.E(o))for(var a=0;a<o.length;a++)aS(o[a]);Sh.k(t.categories,function(t){rS(t)})}if(r&&!Sh.E(r))for(a=0;a<r.length;a++)aS(r[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)aS(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)Sh.t(l[a])?(aS(l[a][0]),aS(l[a][1])):aS(l[a])}"gauge"===t.type?(oS(t,"axisLabel"),oS(t,"title"),oS(t,"detail")):"treemap"===t.type?(iS(t.breadcrumb,"itemStyle"),Sh.k(t.levels,function(t){rS(t)})):"tree"===t.type&&rS(t.leaves)}}(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Qw(n,function(e){Qw(sS(t[e]),function(t){t&&(oS(t,"axisLabel"),oS(t.axisPointer,"label"))})}),Qw(sS(t.parallel),function(t){var e=t&&t.parallelAxisDefault;oS(e,"axisLabel"),oS(e&&e.axisPointer,"label")}),Qw(sS(t.calendar),function(t){iS(t,"itemStyle"),oS(t,"dayLabel"),oS(t,"monthLabel"),oS(t,"yearLabel")}),Qw(sS(t.radar),function(t){oS(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}
70),Qw(sS(t.geo),function(t){tS(t)&&(aS(t),Qw(sS(t.regions),function(t){aS(t)}))}),Qw(sS(t.timeline),function(t){aS(t),iS(t,"label"),iS(t,"itemStyle"),iS(t,"controlStyle",!0);var e=t.data;Sh.t(e)&&Sh.k(e,function(t){Sh.A(t)&&(iS(t,"label"),iS(t,"itemStyle"))})}),Qw(sS(t.toolbox),function(t){iS(t,"iconStyle"),Qw(t.feature,function(t){iS(t,"iconStyle")})}),oS(lS(t.axisPointer),"label"),oS(lS(t.tooltip).axisPointer,"label")}function uS(t){t&&Object(Sh.k)(dS,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var dS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],hS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],pS=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function fS(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<pS.length;n++){var i=pS[n][1],r=pS[n][0];null!=e[i]&&(e[r]=e[i])}}function gS(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function mS(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function vS(t,e){cS(t,e),t.series=Dm(t.series),Object(Sh.k)(t.series,function(t){if(Object(Sh.A)(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),gS(t.label),(o=t.data)&&!Object(Sh.E)(o))for(var i=0;i<o.length;i++)gS(o[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===n){var r=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");null!=r&&function(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[r=o[s]]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",r)}else if("bar"===n){var o;if(fS(t),fS(t.backgroundStyle),fS(t.emphasis),(o=t.data)&&!Object(Sh.E)(o))for(i=0;i<o.length;i++)"object"==typeof o[i]&&(fS(o[i]),fS(o[i]&&o[i].emphasis))}else if("sunburst"===n){var a=t.highlightPolicy;a&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),mS(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,mS)}else"graph"===n||"sankey"===n?(e=t)&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency")):"map"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(Sh.i)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),uS(t)}}),t.dataRange&&(t.visualMap=t.dataRange),Object(Sh.k)(hS,function(e){var n=t[e];n&&(Object(Sh.t)(n)||(n=[n]),Object(Sh.k)(n,function(t){uS(t)}))})}function yS(t){Object(Sh.k)(t,function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,c,u){var d,h,p=a.get(e.stackedDimension,u);if(isNaN(p))return r;s?h=a.getRawIndex(u):d=a.get(e.stackedByDimension,u);for(var f=NaN,g=n-1;g>=0;g--){var m=t[g];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,d)),h>=0){var v=m.data.getByRawIndex(m.stackResultDimension,h);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=fm(p,v),f=v;break}}}return i[0]=p,i[1]=f,i})})}var bS,_S,xS,wS,SS,OS=function(){return function(t){this.data=t.data||(t.sourceFormat===yw?{}:[]),this.sourceFormat=t.sourceFormat||_w,this.seriesLayoutBy=t.seriesLayoutBy||xw,this.startIndex=t.startIndex||
700,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&Tw(this,n)===Sw.Must&&(i.type="ordinal")}}}();function MS(t){return t instanceof OS}function CS(t,e,n){n=n||TS(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:kS(r),startIndex:a,dimensionsDetectedCount:o};if(e===mw){var s=t;"auto"===i||null==i?AS(function(t){null!=t&&"-"!==t&&(Object(Sh.C)(t)?null==a&&(a=1):a=0)},n,s,10):a=Object(Sh.z)(i)?i:i?1:0,r||1!==a||(r=[],AS(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===ww?s.length:s[0]?s[0].length:null}else if(e===vw)r||(r=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return Object(Sh.F)(e)}(t));else if(e===yw)r||(r=[],Object(Sh.k)(t,function(t,e){r.push(e)}));else if(e===gw){var l=jm(t[0]);o=Object(Sh.t)(l)&&l.length||1}return{startIndex:a,dimensionsDefine:kS(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new OS({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:Object(Sh.d)(e)})}function IS(t){return new OS({data:t,sourceFormat:Object(Sh.E)(t)?bw:gw})}function TS(t){var e=_w;if(Object(Sh.E)(t))e=bw;else if(Object(Sh.t)(t)){0===t.length&&(e=mw);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(Object(Sh.t)(r)||Object(Sh.E)(r)){e=mw;break}if(Object(Sh.A)(r)){e=vw;break}}}}else if(Object(Sh.A)(t))for(var o in t)if(Object(Sh.q)(t,o)&&Object(Sh.u)(t[o])){e=yw;break}return e}function kS(t){if(t){var e=Object(Sh.f)();return Object(Sh.H)(t,function(t,n){var i={name:(t=Object(Sh.A)(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i})}}function AS(t,e,n,i){if(e===ww)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}function DS(t){var e=t.sourceFormat;return e===vw||e===yw}var LS=function(){function t(t,e){var n=MS(t)?t:IS(t);this._source=n;var i=this._data=n.data;n.sourceFormat===bw&&(this._offset=0,this._dimSize=e,this._data=i),SS(this,i,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;SS=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,c=o.dimensionsDefine,u=wS[HS(a,s)];if(Object(Sh.m)(t,u),a===bw)t.getItem=e,t.count=i,t.fillStorage=n;else{var d=ES(a,s);t.getItem=Object(Sh.c)(d,null,r,l,c);var h=BS(a,s);t.count=Object(Sh.c)(h,null,r,l,c)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],c=null==s[1]?-1/0:s[1],u=e-t,d=n[a],h=0;h<u;h++){var p=r[h*o+a];d[t+h]=p,p<l&&(l=p),p>c&&(c=p)}s[0]=l,s[1]=c}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[mw+"_"+xw]={pure:!0,appendData:r},t[mw+"_"+ww]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[vw]={pure:!0,appendData:r},t[yw]={pure:!0,appendData:function(t){var e=this._data;Object(Sh.k)(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},t[gw]={appendData:r},t[bw]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},wS=t}(),t}(),PS=function(t,e,n,i){return t[i]},jS=((bS={})[mw+"_"+xw]=function(t,e,n,i){return t[i+e]},bS[mw+"_"+ww]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},bS[vw]=PS,bS[yw]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){0;var s=t[n[a].name];o[a]=s?s[i]:null}return o},bS[gw]=PS,bS);function ES(t,e){return jS[HS(t,e)]}var NS=function(t,e,n){return t.length},RS=((_S={})[mw+"_"+xw]=function(t,e,n){return Math.max(0,t.length-e)},_S[mw+"_"+ww]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},_S[vw]=NS,_S[yw]=function(t,e,n){var i=t[n[0].name];return i?i.length:0},_S[gw]=NS,_S);function BS(t,e){return RS[HS(t,e)]}var zS=function(t,e,n){return t[e]},VS=((xS={})[mw]=zS,xS[vw]=function(t,e,n){return t[n]},xS[yw]=zS,xS[gw]=function(t,e,n){var i=jm(t);return i instanceof Array?i[e]:i},xS[bw]=zS,xS);function FS(t){return VS[t]}function HS(t,e){return t===mw?t+"_"+e:t}function GS(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return FS(o)(i,a,s)}var l=i;return o===gw&&(l=jm(i)),l}}}var WS=/\{@(.+?)\}/g,US=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],c=s&&s.stroke,u=this.mainType,d="series"===u,h=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,
70seriesName:d?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);(o&&(s.value=o.interpolatedValue),null!=i&&Sh.t(s.value)&&(s.value=s.value[i]),r)||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return Sh.w(r)?(s.status=e,s.dimensionIndex=i,r(s)):Sh.C(r)?$x(r,s).replace(WS,function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=GS(a,t,r);if(o&&Sh.t(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return GS(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function qS(t){var e,n;return Sh.A(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function YS(t){return new $S(t)}var $S=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=u(this._modBy),s=this._modDataCount||0,l=u(t&&t.modBy),c=t&&t.modDataCount||0;function u(t){return!(t>=1)&&(t=1),t}a===l&&s===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=c;var d=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(o||h<p)){var f=this._progress;if(Object(Sh.t)(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],h,p,l,c);else this._doProgress(f,h,p,l,c)}this._dueIndex=p;var m=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){XS.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:XS.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Object(Sh.t)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),XS=function(){var t,e,n,i,r,o={reset:function(l,c,u,d){e=l,t=c,n=u,i=d,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}();function ZS(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(Sh.z)(t)||null==t||"-"===t||(t=+bm(t)),null==t||""===t?NaN:Number(t))}var KS=Object(Sh.f)({number:function(t){return parseFloat(t)},time:function(t){return+bm(t)},trim:function(t){return Object(Sh.C)(t)?Object(Sh.T)(t):t}});function JS(t){return KS.get(t)}var QS={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},tO=function(){function t(t,e){if(!Object(Sh.z)(e)){0,Vw("")}this._opFn=QS[t],this._rvalFloat=Om(e)}return t.prototype.evaluate=function(t){return Object(Sh.z)(t)?this._opFn(t,this._rvalFloat):this._opFn(Om(t),this._rvalFloat)},t}(),eO=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(Sh.z)(t)?t:Om(t),i=Object(Sh.z)(e)?e:Om(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=Object(Sh.C)(t),s=Object(Sh.C)(e);a&&(n=s?t:0),s&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),nO=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Om(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Om(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function iO(t,e){return"eq"===t||"ne"===t?new nO("eq"===t,e):Object(Sh.q)(QS,t)?new tO(t,e):null}var rO=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return ZS(t,e)},t}();function oO(t){if(!dO(t.sourceFormat)){0,Vw("")}return t.data}function aO(t){var e=t.sourceFormat,n=t.data;if(!dO(e)){0,Vw("")}if(e===mw){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===vw){for(i=[],r=0,o=n.length;r<o;r++)i.push(Object(Sh.m)({},n[r]));return i}}
70function sO(t,e,n){if(null!=n)return Object(Sh.z)(n)||!isNaN(n)&&!Object(Sh.q)(e,n)?t[n]:Object(Sh.q)(e,n)?e[n]:void 0}function lO(t){return Object(Sh.d)(t)}var cO=Object(Sh.f)();function uO(t,e,n,i){e.length||Vw(""),Object(Sh.A)(t)||Vw("");var r=t.type,o=cO.get(r);o||Vw("");var a=Object(Sh.H)(e,function(t){return function(t,e){var n=new rO,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==xw&&Vw("");var a=[],s={},l=t.dimensionsDefine;if(l)Object(Sh.k)(l,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};a.push(i),null!=n&&(Object(Sh.q)(s,n)&&Vw(""),s[n]=i)});else for(var c=0;c<t.dimensionsDetectedCount;c++)a.push({index:c});var u=ES(r,xw);e.__isBuiltIn&&(n.getRawDataItem=function(t){return u(i,o,a,t)},n.getRawData=Object(Sh.c)(oO,null,t)),n.cloneRawData=Object(Sh.c)(aO,null,t);var d=BS(r,xw);n.count=Object(Sh.c)(d,null,i,o,a);var h=FS(r);n.retrieveValue=function(t,e){var n=u(i,o,a,t);return p(n,e)};var p=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?h(t,e,n.name):void 0}};return n.getDimensionInfo=Object(Sh.c)(sO,null,a,s),n.cloneAllDimensionInfo=Object(Sh.c)(lO,null,a),n}(t,o)}),s=Dm(o.transform({upstream:a[0],upstreamList:a,config:Object(Sh.d)(t.config)}));return Object(Sh.H)(s,function(t,n){var i;Object(Sh.A)(t)||Vw(""),t.data||Vw(""),dO(TS(t.data))||Vw("");var r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:xw,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:xw,sourceHeader:0,dimensions:t.dimensions};return CS(t.data,i,null)})}function dO(t){return t===mw||t===vw}var hO,pO="undefined"==typeof Uint32Array?Array:Uint32Array,fO="undefined"==typeof Uint16Array?Array:Uint16Array,gO="undefined"==typeof Int32Array?Array:Int32Array,mO="undefined"==typeof Float64Array?Array:Float64Array,vO={float:mO,int:gO,ordinal:Array,number:Array,time:mO};function yO(t){return t>65535?pO:fO}function bO(t,e,n,i,r){var o=vO[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),c=0;c<s;c++)l[c]=a[c];t[e]=l}}else t[e]=new o(i)}var _O=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(Sh.f)()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=hO[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];DS(i);this._dimensions=Object(Sh.H)(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new vO[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=[1/0,-1/0]);for(var s=r[t],l=o;l<a;l++){var c=n[l]=e.parseAndCollect(n[l]);isNaN(c)||(s[0]=Math.min(c,s[0]),s[1]=Math.max(c,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++){bO(n,l,(p=i[l]).type,s,!0)}for(var c=[],u=a;u<s;u++)for(var d=u-a,h=0;h<r;h++){var p=i[h],f=hO.arrayRows.call(this,t[d]||c,p.property,d,h);n[h][u]=f;var g=o[h];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(Sh.H)(o,function(t){return t.property}),c=0;c<a;c++){var u=o[c];s[c]||(s[c]=[1/0,-1/0]),bO(r,c,u.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var d=[],h=t;h<e;h++){d=i.getItem(h,d);for(var p=0;p<a;p++){var f=r[p],g=this._dimValueGetter(d,l[p],h,p);f[h]=g;var m=s[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,c=this.count();l<c;l++){var u=e-i[this.getRawIndex(l)],d=Math.abs(u);d<=n&&((d<o||d===o&&u>=0&&a<0)&&(o=d,a=u,s=0),u===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{t=new(n=yO(this._rawCount))(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(yO(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],c=n._chunks,u=0;u<i;u++){var d=void 0,h=n.getRawIndex(u);if(0===a)d=e(u);else if(1===a){d=e(c[l][h],u)}else{for(var p=0;p<a;p++)o[p]=c[t[p]][h];o[p]=u,d=e.apply(null,o)}d&&(r[s++]=h)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=Object(Sh.F)(t),r=i.length;if(!r)return this;var o=e.count(),a=new(yO(e._rawCount))(o),s=0,l=i[0],c=t[l][0],u=t[l][1],d=e._chunks,h=!1;if(!e._indices){var p=0;if(1===r){for(var f=d[i[0]],g=0;g<n;g++){((b=f[g])>
70=c&&b<=u||isNaN(b))&&(a[s++]=p),p++}h=!0}else if(2===r){f=d[i[0]];var m=d[i[1]],v=t[i[1]][0],y=t[i[1]][1];for(g=0;g<n;g++){var b=f[g],_=m[g];(b>=c&&b<=u||isNaN(b))&&(_>=v&&_<=y||isNaN(_))&&(a[s++]=p),p++}h=!0}}if(!h)if(1===r)for(g=0;g<o;g++){var x=e.getRawIndex(g);((b=d[i[0]][x])>=c&&b<=u||isNaN(b))&&(a[s++]=x)}else for(g=0;g<o;g++){for(var w=!0,S=(x=e.getRawIndex(g),0);S<r;S++){var O=i[S];((b=d[O][x])<t[O][0]||b>t[O][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,c=0;c<e.length;c++)l[e[c]]=[1/0,-1/0];for(var u=0;u<a;u++){for(var d=t.getRawIndex(u),h=0;h<o;h++)s[h]=i[e[h]][d];s[o]=u;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(r[0]=p,p=r);for(c=0;c<p.length;c++){var f=e[c],g=p[c],m=l[f],v=i[f];v&&(v[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,c=Math.floor(1/e),u=this.getRawIndex(0),d=new(yO(this._rawCount))(Math.min(2*(Math.ceil(s/c)+2),s));d[l++]=u;for(var h=1;h<s-1;h+=c){for(var p=Math.min(h+c,s-1),f=Math.min(h+2*c,s),g=(f+p)/2,m=0,v=p;v<f;v++){var y=a[M=this.getRawIndex(v)];isNaN(y)||(m+=y)}m/=f-p;var b=h,_=Math.min(h+c,s),x=h-1,w=a[u];n=-1,r=b;var S=-1,O=0;for(v=b;v<_;v++){var M;y=a[M=this.getRawIndex(v)];isNaN(y)?(O++,S<0&&(S=M)):(i=Math.abs((x-g)*(y-w)-(x-v)*(m-w)))>n&&(n=i,r=M)}O>0&&O<_-b&&(d[l++]=Math.min(S,r),r=Math.max(S,r)),d[l++]=r,u=r}return d[l++]=this.getRawIndex(s-1),o._count=l,o._indices=d,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),o=i[t],a=this.count(),s=new(yO(this._rawCount))(2*Math.ceil(a/r)),l=0,c=0;c<a;c+=r){var u=c,d=o[this.getRawIndex(u)],h=c,p=o[this.getRawIndex(h)],f=r;c+r>a&&(f=a-c);for(var g=0;g<f;g++){var m=o[this.getRawIndex(c+g)];m<d&&(d=m,u=c+g),m>p&&(p=m,h=c+g)}var v=this.getRawIndex(u),y=this.getRawIndex(h);u<h?(s[l++]=v,s[l++]=y):(s[l++]=y,s[l++]=v)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],c=this.count(),u=r._rawExtent[t]=[1/0,-1/0],d=new(yO(this._rawCount))(Math.ceil(c/s)),h=0,p=0;p<c;p+=s){s>c-p&&(s=c-p,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var m=n(a),v=this.getRawIndex(Math.min(p+i(a,m)||0,c-1));l[v]=m,m<u[0]&&(u[0]=m),m>u[1]&&(u[1]=m),d[h++]=v}return r._count=h,r._indices=d,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i,r,o=new t,a=this._chunks,s=e&&Object(Sh.N)(e,function(t,e){return t[e]=!0,t},{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(i=a[l],r=void 0,(r=i.constructor)===Array?i.slice():new r(i)):a[l];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Object(Sh.d)(this._extent),t._rawExtent=Object(Sh.d)(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;
70e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return ZS(t[i],this._dimensions[i])}hO={arrayRows:t,objectRows:function(t,e,n,i){return ZS(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return ZS(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),xO=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(SO(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var c=i[0];c.prepareSource(),a=(l=c.getSource()).data,s=l.sourceFormat,e=[c._getVersionSign()]}else a=o.get("data",!0),s=Object(Sh.E)(a)?bw:gw,e=[];var u=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},h=Object(Sh.P)(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=Object(Sh.P)(u.sourceHeader,d.sourceHeader),f=Object(Sh.P)(u.dimensions,d.dimensions);t=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||f?[CS(a,{seriesLayoutBy:h,sourceHeader:p,dimensions:f},s)]:[]}else{var g=n;if(r){var m=this._applyTransform(i);t=m.sourceList,e=m.upstreamSignList}else{t=[CS(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){1!==t.length&&OO("")}var o,a=[],s=[];return Object(Sh.k)(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||OO(""),a.push(e),s.push(t._getVersionSign())}),i?e=function(t,e,n){var i=Dm(t),r=i.length;r||Vw("");for(var o=0,a=r;o<a;o++)e=uO(i[o],e),o!==a-1&&(e.length=Math.max(e.length,1));return e}(i,a,n.componentIndex):null!=r&&(e=[(o=a[0],new OS({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:Object(Sh.d)(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];SO(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new _O).initData(new LS(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(SO(t)){var e=Iw(t);return e?[e.getSourceManager()]:[]}return Object(Sh.H)(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Xm(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Ym).models:[]}(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(SO(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function wO(t){t.option.transform&&Object(Sh.R)(t.option.transform)}function SO(t){return"series"===t.mainType}function OO(t){throw new Error(t)}var MO="line-height:1";function CO(t){var e=t.lineHeight;return null==e?MO:"line-height:"+Qh(e+"")+"px"}function IO(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Qh(i+"")+"px;color:"+Qh(n)+";font-weight:"+Qh(r+""),valueStyle:"font-size:"+Qh(a+"")+"px;color:"+Qh(o)+";font-weight:"+Qh(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var TO=[0,10,20,30],kO=["","\n","\n\n","\n\n\n"];function AO(t,e){return e.type=t,e}function DO(t){return"section"===t.type}function LO(t){return DO(t)?PO:jO}function PO(t,e,n,i){var r,o=e.noHeader,a=(r=function t(e){if(DO(e)){var n=0,i=e.blocks.length,r=i>1||i>0&&!e.noHeader;return Object(Sh.k)(e.blocks,function(e){var i=t(e);i>=n&&(n=i+ +(r&&(!i||DO(e)&&!e.noHeader)))}),n}return 0}(e),{html:TO[r],richText:kO[r]}),s=[],l=e.blocks||[];Object(Sh.b)(!l||Object(Sh.t)(l)),l=l||[];var c=t.orderMode;if(e.sortBlocks&&c){l=l.slice();var u={valueAsc:"asc",valueDesc:"desc"};
70if(Object(Sh.q)(u,c)){var d=new eO(u[c],null);l.sort(function(t,e){return d.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===c&&l.reverse()}Object(Sh.k)(l,function(n,r){var o=e.valueFormatter,l=LO(n)(o?Object(Sh.m)(Object(Sh.m)({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)});var h="richText"===t.renderMode?s.join(a.richText):NO(i,s.join(""),o?n:a.html);if(o)return h;var p=Ux(e.header,"ordinal",t.useUTC),f=IO(i,t.renderMode).nameStyle,g=CO(i);return"richText"===t.renderMode?RO(t,p,f)+a.richText+h:NO(i,'<div style="'+f+";"+g+';">'+Qh(p)+"</div>"+h,n)}function jO(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,c=t.useUTC,u=e.valueFormatter||t.valueFormatter||function(t){return t=Object(Sh.t)(t)?t:[t],Object(Sh.H)(t,function(t,e){return Ux(t,Object(Sh.t)(p)?p[e]:p,c)})};if(!o||!a){var d=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),h=o?"":Ux(l,"ordinal",c),p=e.valueType,f=a?[]:u(e.value,e.dataIndex),g=!s||!o,m=!s&&o,v=IO(i,r),y=v.nameStyle,b=v.valueStyle;return"richText"===r?(s?"":d)+(o?"":RO(t,h,y))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(Sh.t)(e)?e.join(" "):e,o)}(t,f,g,m,b)):NO(i,(s?"":d)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Qh(t)+"</span>"}(h,!s,y))+(a?"":function(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=Object(Sh.t)(t)?t:[t],'<span style="'+o+";"+i+'">'+Object(Sh.H)(t,function(t){return Qh(t)}).join(" ")+"</span>"}(f,g,m,b)),n)}}function EO(t,e,n,i,r,o){if(t)return LO(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function NO(t,e,n){return'<div style="'+("margin: "+n+"px 0 0")+";"+CO(t)+';">'+e+'<div style="clear:both"></div></div>'}function RO(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function BO(t,e){return Xx(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function zO(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var VO=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Cm()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=function(t,e){var n=Sh.C(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Qh(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Qh(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}({color:e,type:t,renderMode:n,markerId:i});return Object(Sh.C)(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(Sh.t)(e)?Object(Sh.k)(e,function(t){return Object(Sh.m)(n,t)}):Object(Sh.m)(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function FO(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),c=l.mapDimensionsAll("defaultedTooltip"),u=c.length,d=o.getRawValue(a),h=Object(Sh.t)(d),p=BO(o,a);if(u>1||h&&!u){var f=function(t,e,n,i,r){var o=e.getData(),a=Object(Sh.N)(t,function(t,e,n){var i=o.getDimensionInfo(n);return t=t||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],c=[];function u(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?c.push(AO("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?Object(Sh.k)(i,function(t){u(GS(o,n,t),t)}):Object(Sh.k)(t,u),{inlineValues:s,inlineValueTypes:l,blocks:c}}(d,o,a,c,p);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(u){var g=l.getDimensionInfo(c[0]);r=e=GS(l,a,c[0]),n=g.type}else r=e=h?d[0]:d;var m=Vm(o),v=m&&o.name||"",y=l.getName(a),b=s?v:y;
vendor: 16,322 bytes, line 70
70return AO("section",{header:v,noHeader:s||!m,sortParam:r,blocks:[AO("nameValue",{markerType:"item",markerColor:p,name:b,noName:!Object(Sh.T)(b),value:e,valueType:n,dataIndex:a})].concat(i||[])})}var HO=Gm();function GO(t,e){return t.getName(e)||t.getId(e)}var WO="__universalTransitionEnabled",UO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return xh(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=YS({count:YO,reset:$O}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(HO(this).sourceManager=new xO(this)).prepareSource();var i=this.getInitialData(t,n);ZO(i,this),this.dataTask.context.data=i,HO(this).dataBeforeProcessed=i,qO(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=rw(this),i=n?aw(t):{},r=this.subType;uw.hasClass(r)&&(r+="Series"),Sh.I(t,e.getTheme().get(this.subType)),Sh.I(t,this.getDefaultOption()),Lm(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ow(t,i,n)},e.prototype.mergeOption=function(t,e){t=Sh.I(this.option,t,!0),this.fillDataTextStyle(t.data);var n=rw(this);n&&ow(this.option,t,n);var i=HO(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);ZO(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,HO(this).dataBeforeProcessed=r,qO(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!Sh.E(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Lm(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=JO(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return HO(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=JO(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}HO(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Sh.f(t)},e.prototype.getSourceManager=function(){return HO(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return HO(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return FO({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(wh.a.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=Pw.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=GO(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=Sh.F(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[GO(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[WO])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){Sh.A(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var c=e[l];s[d=GO(t,c)]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(c)}}else if("single"===o||!0===o){var u=e[a-1],d=GO(t,u);r.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((i={})[d]=t.getRawIndex(u),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return uw.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(uw);function qO(t){var e=t.name;Vm(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return Sh.k(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}(t)||e)}function YO(t){return t.model.getRawData().count()}function $O(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),XO}function XO(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ZO(t,e){Sh.k(Sh.e(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,Sh.h(KO,e))})}function KO(t,e){var n=JO(t);return n&&n.setOutputEnd((e||this).count()),e}function JO(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}Sh.K(UO,US),Sh.K(UO,Pw),rv(UO,uw);var QO=UO,tM=function(){function t(){this.group=new Qg,this.uid=rx("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();iv(tM),lv(tM);var eM=tM;function nM(){var t=Gm();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var iM=vy.CMD,rM=[[],[],[]],oM=Math.sqrt,aM=Math.atan2;function sM(t,e){if(e){var n,i,r,o,a,s,l=t.data,c=t.len(),u=iM.M,d=iM.C,h=iM.L,p=iM.R,f=iM.A,g=iM.Q;for(r=0,o=0;r<c;){switch(n=l[r++],o=r,i=0,n){case u:case h:i=1;break;case d:i=3;break;case g:i=2;break;case f:var m=e[4],v=e[5],y=oM(e[0]*e[0]+e[1]*e[1]),b=oM(e[2]*e[2]+e[3]*e[3]),_=aM(-e[1]/b,e[0]/y);l[r]*=y,l[r++]+=m,l[r]*=b,l[r++]+=v,l[r++]*=y,l[r++]*=b,l[r++]+=_,l[r++]+=_,o=r+=2;break;case p:s[0]=l[r++],s[1]=l[r++],Bh(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],Bh(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var x=rM[a];x[0]=l[r++],x[1]=l[r++],Bh(x,x,e),l[o++]=x[0],l[o++]=x[1]}}t.increaseVersion()}}var lM=Math.sqrt,cM=Math.sin,uM=Math.cos,dM=Math.PI;function hM(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function pM(t,e){return(t[0]*e[0]+t[1]*e[1])/(hM(t)*hM(e))}function fM(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(pM(t,e))}function gM(t,e,n,i,r,o,a,s,l,c,u){var d=l*(dM/180),h=uM(d)*(t-n)/2+cM(d)*(e-i)/2,p=-1*cM(d)*(t-n)/2+uM(d)*(e-i)/2,f=h*h/(a*a)+p*p/(s*s);f>1&&(a*=lM(f),s*=lM(f));var g=(r===o?-1:1)*lM((a*a*(s*s)-a*a*(p*p)-s*s*(h*h))/(a*a*(p*p)+s*s*(h*h)))||0,m=g*a*p/s,v=g*-s*h/a,y=(t+n)/2+uM(d)*m-cM(d)*v,b=(e+i)/2+cM(d)*m+uM(d)*v,_=fM([1,0],[(h-m)/a,(p-v)/s]),x=[(h-m)/a,(p-v)/s],w=[(-1*h-m)/a,(-1*p-v)/s],S=fM(x,w);if(pM(x,w)<=-1&&(S=dM),pM(x,w)>=1&&(S=0),S<0){var O=Math.round(S/dM*1e6)/1e6;S=2*dM+O%2*dM}u.addData(c,y,b,a,s,_,S,d,o)}var mM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,vM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var yM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.applyTransform=function(t){},e}(By);function bM(t){return null!=t.setData}function _M(t,e){var n=function(t){var e=new vy;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=vy.CMD,l=t.match(mM);if(!l)return e;for(var c=0;c<l.length;c++){for(var u=l[c],d=u.charAt(0),h=void 0,p=u.match(vM)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);for(var m=0;m<f;){var v=void 0,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0,S=void 0,O=i,M=r,C=void 0,I=void 0;switch(d){case"l":i+=p[m++],r+=p[m++],h=s.L,e.addData(h,i,r);break;case"L":i=p[m++],r=p[m++],h=s.L,e.addData(h,i,r);break;case"m":i+=p[m++],r+=p[m++],h=s.M,e.addData(h,i,r),o=i,a=r,d="l";break;case"M":i=p[m++],r=p[m++],h=s.M,e.addData(h,i,r),o=i,a=r,d="L";break;case"h":i+=p[m++],h=s.L,e.addData(h,i,r);break;case"H":i=p[m++],h=s.L,e.addData(h,i,r);break;case"v":r+=p[m++],h=s.L,e.addData(h,i,r);break;case"V":r=p[m++],h=s.L,e.addData(h,i,r);break;case"C":h=s.C,e.addData(h,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),i=p[m-2],r=p[m-1];break;case"c":h=s.C,e.addData(h,p[m++]+i,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i,p[m++]+r),i+=p[m-2],r+=p[m-1];break;case"S":v=i,y=r,C=e.len(),I=e.data,n===s.C&&(v+=i-I[C-4],y+=r-I[C-3]),h=s.C,O=p[m++],M=p[m++],i=p[m++],r=p[m++],e.addData(h,v,y,O,M,i,r);break;case"s":v=i,y=r,C=e.len(),I=e.data,n===s.C&&(v+=i-I[C-4],y+=r-I[C-3]),h=s.C,O=i+p[m++],M=r+p[m++],i+=p[m++],r+=p[m++],e.addData(h,v,y,O,M,i,r);break;case"Q":O=p[m++],M=p[m++],i=p[m++],r=p[m++],h=s.Q,e.addData(h,O,M,i,r);break;case"q":O=p[m++]+i,M=p[m++]+r,i+=p[m++],r+=p[m++],h=s.Q,e.addData(h,O,M,i,r);break;case"T":v=i,y=r,C=e.len(),I=e.data,n===s.Q&&(v+=i-I[C-4],y+=r-I[C-3]),i=p[m++],r=p[m++],h=s.Q,e.addData(h,v,y,i,r);break;case"t":v=i,y=r,C=e.len(),I=e.data,n===s.Q&&(v+=i-I[C-4],y+=r-I[C-3]),i+=p[m++],r+=p[m++],h=s.Q,e.addData(h,v,y,i,r);break;case"A":b=p[m++],_=p[m++],x=p[m++],w=p[m++],S=p[m++],gM(O=i,M=r,i=p[m++],r=p[m++],w,S,b,_,x,h=s.A,e);break;case"a":b=p[m++],_=p[m++],x=p[m++],w=p[m++],S=p[m++],gM(O=i,M=r,i+=p[m++],r+=p[m++],w,S,b,_,x,h=s.A,e)}}"z"!==d&&"Z"!==d||(h=s.Z,e.addData(h),i=o,r=a),n=h}return e.toStatic(),e}(t),i=Object(Sh.m)({},e);return i.buildPath=function(t){if(bM(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){sM(n,t),this.dirtyShape()},i}function xM(t,e){return new yM(_M(t,e))}function wM(t,e){e=e||{};var n=new By;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?sM(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var SM=function(){return function(){this.cx=0,this.cy=0,this.r=0}}(),OM=function(t){function e(e){return t.call(this,e)||this}return xh(e,t),e.prototype.getDefaultShape=function(){return new SM},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(By);OM.prototype.type="circle";var MM=OM,CM=function(){return function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),IM=function(t){function e(e){return t.call(this,e)||this}return xh(e,t),e.prototype.getDefaultShape=function(){return new CM},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(By);IM.prototype.type="ellipse";var TM=IM,kM=Math.PI,AM=2*kM,DM=Math.sin,LM=Math.cos,PM=Math.acos,jM=Math.atan2,EM=Math.abs,NM=Math.sqrt,RM=Math.max,BM=Math.min,zM=1e-4;function VM(t,e,n,i,r,o,a){var s=t-n,l=e-i,c=(a?o:-o)/NM(s*s+l*l),u=c*l,d=-c*s,h=t+u,p=e+d,f=n+u,g=i+d,m=(h+f)/2,v=(p+g)/2,y=f-h,b=g-p,_=y*y+b*b,x=r-o,w=h*g-f*p,S=(b<0?-1:1)*NM(RM(0,x*x*_-w*w)),O=(w*b-y*S)/_,M=(-w*y-b*S)/_,C=(w*b+y*S)/_,I=(-w*y+b*S)/_,T=O-m,k=M-v,A=C-m,D=I-v;return T*T+k*k>A*A+D*D&&(O=C,M=I),{cx:O,cy:M,x0:-u,y0:-d,x1:O*(r/x-1),y1:M*(r/x-1)}}function FM(t,e){var n,i=RM(e.r,0),r=RM(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var c=e.cx,u=e.cy,d=!!e.clockwise,h=EM(l-s),p=h>AM&&h%AM;if(p>zM&&(h=p),i>zM)if(h>AM-zM)t.moveTo(c+i*LM(s),u+i*DM(s)),t.arc(c,u,i,s,l,!d),r>zM&&(t.moveTo(c+r*LM(l),u+r*DM(l)),t.arc(c,u,r,l,s,d));else{var f=void 0,g=void 0,m=void 0,v=void 0,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0,S=void 0,O=void 0,M=void 0,C=void 0,I=void 0,T=void 0,k=void 0,A=i*LM(s),D=i*DM(s),L=r*LM(l),P=r*DM(l),j=h>zM;if(j){var E=e.cornerRadius;E&&(f=(n=function(t){var e;if(Object(Sh.t)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(E))[0],g=n[1],m=n[2],v=n[3]);var N=EM(i-r)/2;if(y=BM(N,m),b=BM(N,v),_=BM(N,f),x=BM(N,g),O=w=RM(y,b),M=S=RM(_,x),(w>zM||S>zM)&&(C=i*LM(l),I=i*DM(l),T=r*LM(s),k=r*DM(s),h<kM)){var R=function(t,e,n,i,r,o,a,s){var l=n-t,c=i-e,u=a-r,d=s-o,h=d*l-u*c;if(!(h*h<zM))return[t+(h=(u*(e-o)-d*(t-r))/h)*l,e+h*c]}(A,D,T,k,C,I,L,P);if(R){var B=A-R[0],z=D-R[1],V=C-R[0],F=I-R[1],H=1/DM(PM((B*V+z*F)/(NM(B*B+z*z)*NM(V*V+F*F)))/2),G=NM(R[0]*R[0]+R[1]*R[1]);O=BM(w,(i-G)/(H+1)),M=BM(S,(r-G)/(H-1))}}}if(j)if(O>zM){var W=BM(m,O),U=BM(v,O),q=VM(T,k,A,D,i,W,d),Y=VM(C,I,L,P,i,U,d);t.moveTo(c+q.cx+q.x0,u+q.cy+q.y0),O<w&&W===U?t.arc(c+q.cx,u+q.cy,O,jM(q.y0,q.x0),jM(Y.y0,Y.x0),!d):(W>0&&t.arc(c+q.cx,u+q.cy,W,jM(q.y0,q.x0),jM(q.y1,q.x1),!d),t.arc(c,u,i,jM(q.cy+q.y1,q.cx+q.x1),jM(Y.cy+Y.y1,Y.cx+Y.x1),!d),U>0&&t.arc(c+Y.cx,u+Y.cy,U,jM(Y.y1,Y.x1),jM(Y.y0,Y.x0),!d))}else t.moveTo(c+A,u+D),t.arc(c,u,i,s,l,!d);else t.moveTo(c+A,u+D);if(r>zM&&j)if(M>zM){W=BM(f,M),q=VM(L,P,C,I,r,-(U=BM(g,M)),d),Y=VM(A,D,T,k,r,-W,d);t.lineTo(c+q.cx+q.x0,u+q.cy+q.y0),M<S&&W===U?t.arc(c+q.cx,u+q.cy,M,jM(q.y0,q.x0),jM(Y.y0,Y.x0),!d):(U>0&&t.arc(c+q.cx,u+q.cy,U,jM(q.y0,q.x0),jM(q.y1,q.x1),!d),t.arc(c,u,r,jM(q.cy+q.y1,q.cx+q.x1),jM(Y.cy+Y.y1,Y.cx+Y.x1),d),W>0&&t.arc(c+Y.cx,u+Y.cy,W,jM(Y.y1,Y.x1),jM(Y.y0,Y.x0),!d))}else t.lineTo(c+L,u+P),t.arc(c,u,r,l,s,d);else t.lineTo(c+L,u+P)}else t.moveTo(c,u);t.closePath()}}}var HM=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}}(),GM=function(t){function e(e){return t.call(this,e)||this}return xh(e,t),e.prototype.getDefaultShape=function(){return new HM},e.prototype.buildPath=function(t,e){FM(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(By);GM.prototype.type="sector";var WM=GM,UM=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),qM=function(t){function e(e){return t.call(this,e)||this}return xh(e,t),e.prototype.getDefaultShape=function(){return new UM},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(By);qM.prototype.type="ring";var YM=qM;function $M(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],c=[],u=[],d=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,p=t.length;h<p;h++)zh(a,a,t[h]),Vh(s,s,t[h]);zh(a,a,i[0]),Vh(s,s,i[1])}for(h=0,p=t.length;h<p;h++){var f=t[h];if(n)r=t[h?h-1:p-1],o=t[(h+1)%p];else{if(0===h||h===p-1){l.push(Ch(t[h]));continue}r=t[h-1],o=t[h+1]}kh(c,o,r),Lh(c,c,e);var g=jh(f,r),m=jh(f,o),v=g+m;0!==v&&(g/=v,m/=v),Lh(u,c,-g),Lh(d,c,m);var y=Ih([],f,u),b=Ih([],f,d);i&&(Vh(y,y,a),zh(y,y,s),Vh(b,b,a),zh(b,b,s)),l.push(y),l.push(b)}return n&&l.push(l.shift()),l}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],c=o[2*s+1],u=r[(s+1)%a];
70t.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{t.moveTo(r[0][0],r[0][1]);s=1;for(var d=r.length;s<d;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var XM=function(){return function(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),ZM=function(t){function e(e){return t.call(this,e)||this}return xh(e,t),e.prototype.getDefaultShape=function(){return new XM},e.prototype.buildPath=function(t,e){$M(t,e,!0)},e}(By);ZM.prototype.type="polygon";var KM=ZM,JM=function(){return function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),QM=function(t){function e(e){return t.call(this,e)||this}return xh(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new JM},e.prototype.buildPath=function(t,e){$M(t,e,!1)},e}(By);QM.prototype.type="polyline";var tC=QM,eC={},nC=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),iC=function(t){function e(e){return t.call(this,e)||this}return xh(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nC},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Yy(eC,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(By);iC.prototype.type="line";var rC=iC,oC=[],aC=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}();function sC(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?vf:mf)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?vf:mf)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Of:Sf)(t.x1,t.cpx1,t.x2,e),(n?Of:Sf)(t.y1,t.cpy1,t.y2,e)]}var lC=function(t){function e(e){return t.call(this,e)||this}return xh(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new aC},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,c=e.cpy2,u=e.percent;0!==u&&(t.moveTo(n,i),null==l||null==c?(u<1&&(Cf(n,a,r,u,oC),a=oC[1],r=oC[2],Cf(i,s,o,u,oC),s=oC[1],o=oC[2]),t.quadraticCurveTo(a,s,r,o)):(u<1&&(_f(n,a,l,r,u,oC),a=oC[1],l=oC[2],r=oC[3],_f(i,s,c,o,u,oC),s=oC[1],c=oC[2],o=oC[3]),t.bezierCurveTo(a,s,l,c,r,o)))},e.prototype.pointAt=function(t){return sC(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=sC(this.shape,t,!0);return Ph(e,e)},e}(By);lC.prototype.type="bezier-curve";var cC=lC,uC=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),dC=function(t){function e(e){return t.call(this,e)||this}return xh(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new uC},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),c=Math.sin(o);t.moveTo(l*r+n,c*r+i),t.arc(n,i,r,o,a,!s)},e}(By);dC.prototype.type="arc";var hC=dC,pC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return xh(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),By.prototype.getBoundingRect.call(this)},e}(By),fC=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),gC=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return xh(e,t),e}(fC),mC=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return xh(e,t),e}(fC),vC=[0,0],yC=[0,0],bC=new _p,_C=new _p,xC=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new _p;for(n=0;n<2;n++)this._axes[n]=new _p;
70t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);_p.sub(i[0],n[1],n[0]),_p.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return bC.set(1/0,1/0),_C.set(0,0),!this._intersectCheckOneSide(this,t,bC,_C,i,1)&&(n=!1,i)?n:!this._intersectCheckOneSide(t,this,bC,_C,i,-1)&&(n=!1,i)?n:(i||_p.copy(e,n?bC:_C),n)},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,vC),this._getProjMinMaxOnAxis(s,e._corners,yC),vC[1]<yC[0]||vC[0]>yC[1]){if(a=!1,r)return a;var c=Math.abs(yC[0]-vC[1]),u=Math.abs(vC[0]-yC[1]);Math.min(c,u)>i.len()&&(c<u?_p.scale(i,l,-c*o):_p.scale(i,l,u*o))}else if(n){c=Math.abs(yC[0]-vC[1]),u=Math.abs(vC[0]-yC[1]);Math.min(c,u)<n.len()&&(c<u?_p.scale(n,l,c*o):_p.scale(n,l,-u*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var c=e[l].dot(i)+r[t];a=Math.min(c,a),s=Math.max(c,s)}n[0]=a,n[1]=s},t}(),wC=[],SC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return xh(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new kp(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();
70n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(wC)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(t,e))return!0}return!1},e}(Rv),OC=Math.max,MC=Math.min,CC={};function IC(t){return By.extend(t)}var TC=function(t,e){var n=_M(t,e);return function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return xh(e,t),e}(yM)};function kC(t,e){return TC(t,e)}function AC(t,e){CC[t]=e}function DC(t){if(CC.hasOwnProperty(t))return CC[t]}function LC(t,e,n,i){var r=xM(t,e);return n&&("center"===i&&(n=jC(n,r.getBoundingRect())),NC(r,n)),r}function PC(t,e,n){var i=new Uy({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(jC(e,r))}}});return i}function jC(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var EC=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new By(e);return a.createPathProxy(),a.buildPath=function(t){if(bM(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function NC(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function RC(t,e){return Yy(t,t,{lineWidth:e}),t}function BC(t){return $y(t.shape,t.shape,t.style),t}var zC=Xy;function VC(t,e){for(var n=pp([]);t&&t!==e;)gp(n,t.getLocalTransform(),n),t=t.parent;return n}function FC(t,e,n){return e&&!Object(Sh.u)(e)&&(e=Dg.getLocalTransform(e)),n&&(e=bp([],e)),Bh([],t,e)}function HC(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=FC(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function GC(t){return!t.isGroup}function WC(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){GC(t)&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(GC(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),x_(t,i,n,mb(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=Object(Sh.m)({},t.shape)),e}}function UC(t,e){return Object(Sh.H)(t,function(t){var n=t[0];n=OC(n,e.x),n=MC(n,e.x+e.width);var i=t[1];return i=OC(i,e.y),[n,i=MC(i,e.y+e.height)]})}function qC(t,e){var n=OC(t.x,e.x),i=MC(t.x+t.width,e.x+e.width),r=OC(t.y,e.y),o=MC(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function YC(t,e,n){var i=Object(Sh.m)({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Object(Sh.i)(r,n),new Uy(i)):LC(t.replace("path://",""),i,n,"center")}function $C(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(XC(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function XC(t,e,n,i,r,o,a,s){var l,c=n-t,u=i-e,d=a-r,h=s-o,p=ZC(d,h,c,u);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,m=ZC(f,g,c,u)/p;if(m<0||m>1)return!1;var v=ZC(f,g,d,h)/p;return!(v<0||v>1)}function ZC(t,e,n,i){return t*i-n*e}function KC(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=Object(Sh.C)(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(Sh.k)(Object(Sh.F)(l),function(t){Object(Sh.q)(s,t)||(s[t]=l[t],s.$vars.push(t))});var c=mb(t.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:i,option:Object(Sh.i)({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function JC(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function QC(t,e){if(t)if(Object(Sh.t)(t))for(var n=0;n<t.length;n++)JC(t[n],e);else JC(t,e)}AC("circle",MM),AC("ellipse",TM),AC("sector",WM),AC("ring",YM),AC("pol
70ygon",KM),AC("polyline",tC),AC("rect",Qy),AC("line",rC),AC("bezierCurve",cC),AC("arc",hC);var tI=Gm(),eI=nM(),nI=function(){function t(){this.group=new Qg,this.uid=rx("viewChart"),this.renderTask=YS({plan:oI,reset:aI}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){0},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&rI(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&rI(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){QC(this.group,t)},t.markUpdateMethod=function(t,e){tI(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function iI(t,e,n){t&&g_(t)&&("emphasis"===e?Xb:Zb)(t,n)}function rI(t,e,n){var i=Hm(t,e),r=e&&null!=e.highlightKey?function(t){var e=bb[t];return null==e&&yb<=32&&(e=bb[t]=yb++),e}(e.highlightKey):null;null!=i?Object(Sh.k)(Dm(i),function(e){iI(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){iI(t,n,r)})}function oI(t){return eI(t.model)}function aI(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&tI(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),sI[l]}iv(nI),lv(nI);var sI={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},lI=nI,cI="\0__throttleOriginMethod",uI="\0__throttleRate",dI="\0__throttleType";function hI(t,e,n){var i,r,o,a,s,l=0,c=0,u=null;function d(){c=(new Date).getTime(),u=null,t.apply(o,a||[])}e=e||0;var h=function(){for(var t=[],h=0;h<arguments.length;h++)t[h]=arguments[h];i=(new Date).getTime(),o=this,a=t;var p=s||e,f=s||n;s=null,r=i-(f?l:c)-p,clearTimeout(u),f?u=setTimeout(d,p):r>=0?d():u=setTimeout(d,-r),l=i};return h.clear=function(){u&&(clearTimeout(u),u=null)},h.debounceNextCall=function(t){s=t},h}function pI(t,e,n,i){var r=t[e];if(r){var o=r[cI]||r,a=r[dI];if(r[uI]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=hI(o,n,"debounce"===i))[cI]=o,r[dI]=i,r[uI]=n}return r}}function fI(t,e){var n=t[e];n&&n[cI]&&(n.clear&&n.clear(),t[e]=n[cI])}var gI=Gm(),mI={itemStyle:cv(J_,!0),lineStyle:cv(X_,!0)},vI={lineStyle:"stroke",itemStyle:"fill"};function yI(t,e){var n=t.visualStyleMapper||mI[e];return n||(console.warn("Unknown style type '"+e+"'."),mI.itemStyle)}function bI(t,e){var n=t.visualDrawType||vI[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var _I={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=yI(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=bI(t,i),l=o[s],c=Object(Sh.w)(l)?l:null,u="auto"===o.fill||"auto"===o.stroke;if(!o[s]||c||u){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=d,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Object(Sh.w)(o.fill)?d:o.fill,o.stroke="auto"===o.stroke||Object(Sh.w)(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=Object(Sh.m)({},o);r[s]=c(i),e.setItemVisual(n,"style",r)}}}},xI=new nx,wI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=yI(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){xI.option=n[i];var a=r(xI),s=t.ensureUniqueItemVisual(e,"style");Object(Sh.m)(s,a),xI.option.decal&&(t.setItemVisual(e,"decal",xI.option.decal),xI.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},SI={performRawSeries:!0,overallReset:function(t){var e=Object(Sh.f)();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),gI(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=gI(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=bI(e,a);r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",u=n.count();l[s]=e.getColorFromPalette(c,o,u)}})}})}},OI=Math.PI;var MI=function(){function t(t,e,n,i){this._stageTaskMap=Object(Sh.f)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRen
70der)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(Sh.f)();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(Sh.k)(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});Object(Sh.b)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(Sh.k)(t,function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var d,h=u.agentStubMap;h.each(function(t){a(i,t)&&(t.dirty(),d=!0)}),d&&u.dirty(),o.updatePayload(u,n);var p=o.getPerformArgs(u,i.block);h.each(function(t){t.perform(p)}),u.perform(p)&&(r=!0)}else c&&c.each(function(s,l){a(i,s)&&s.dirty();var c=o.getPerformArgs(s,i.block);c.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(c)&&(r=!0)})}}),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(Sh.f)(),s=t.seriesType,l=t.getTargetSeries;function c(e){var s=e.uid,l=a.set(s,o&&o.get(s)||YS({plan:AI,reset:DI,count:jI}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}
70t.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):l&&l(n,i).each(c)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||YS({reset:CI});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=Object(Sh.f)(),l=t.seriesType,c=t.getTargetSeries,u=!0,d=!1;function h(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(d=!0,YS({reset:II,onDirty:kI})));n.context={model:t,overallProgress:u},n.agent=o,n.__block=u,r._pipe(t,n)}Object(Sh.b)(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,h):c?c(n,i).each(h):(u=!1,Object(Sh.k)(n.getSeries(),h)),d&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return Object(Sh.w)(t)&&(t={overallReset:t,seriesType:EI(t)}),t.uid=rx("stageHandler"),e&&(t.visualType=e),t},t}();function CI(t){t.overallReset(t.ecModel,t.api,t.payload)}function II(t){return t.overallProgress&&TI}function TI(){this.agent.dirty(),this.getDownstream().dirty()}function kI(){this.agent&&this.agent.dirty()}function AI(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function DI(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Dm(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(Sh.H)(e,function(t,e){return PI(e)}):LI}var LI=PI(0);function PI(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function jI(t){return t.data.count()}function EI(t){NI=null;try{t(RI,BI)}catch(t){}return NI}var NI,RI={},BI={};function zI(t,e){for(var n in e.prototype)t[n]=Sh.L}zI(RI,Uw),zI(BI,Yw),RI.eachSeriesByType=RI.eachRawSeriesByType=function(t){NI=t},RI.eachComponent=function(t){"series"===t.mainType&&t.subType&&(NI=t.subType)};var VI=MI,FI=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],HI={color:FI,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],FI]},GI=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],WI={darkMode:!0,color:GI,backgroundColor:"#100C2A",axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:"#B9B8CE"},pageTextStyle:{color:"#B9B8CE"}},textStyle:{color:"#B9B8CE"},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:"#B9B8CE"}},dataZoom:{borderColor:"#71708A",textStyle:{color:"#B9B8CE"},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:"#B9B8CE"}},timeline:{lineStyle:{color:"#B9B8CE"},label:{color:"#B9B8CE"},controlStyle:{color:"#B9B8CE",borderColor:"#B9B8CE"}},calendar:{itemStyle:{color:"#100C2A"},dayLabel:{color:"#B9B8CE"},monthLabel:{color:"#B9B8CE"},yearLabel:{color:"#B9B8CE"}},timeAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},logAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},valueAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}
70,categoryAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},line:{symbol:"circle"},graph:{color:GI},gauge:{title:{color:"#B9B8CE"},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:"#B9B8CE"},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};WI.categoryAxis.splitLine.show=!1;var UI=WI,qI=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(Sh.C(t)){var r=nv(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};Sh.k(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var c=o[l],u=r.lastIndexOf(c);if(u>0&&u===r.length-c.length){var d=r.slice(0,u);"data"!==d&&(e.mainType=d,e[c.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return c(s,o,"mainType")&&c(s,o,"subType")&&c(s,o,"index","componentIndex")&&c(s,o,"name")&&c(s,o,"id")&&c(l,r,"name")&&c(l,r,"dataIndex")&&c(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function c(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),YI=["symbol","symbolSize","symbolRotate","symbolOffset"],$I=YI.concat(["symbolKeepAspect"]),XI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<YI.length;a++){var s=YI[a],l=t.get(s);Object(Sh.w)(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(Object(Sh.m)({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var c=Object(Sh.F)(r);return{dataEach:o?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}},ZI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<$I.length;i++){var r=$I[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function KI(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function JI(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function QI(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i);break;default:0}}function tT(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},function(t){i.push(t.seriesIndex)}),i}Object(Sh.k)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(t){e(t[0],function(e,i,r){e=Object(Sh.m)({},e),r.dispatchAction(Object(Sh.m)(e,{type:t[1],seriesIndex:n(i,e)}))})})}function eT(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),c=Hm(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:Object(Sh.t)(c)?l.getName(c[0]):l.getName(c),selected:Object(Sh.C)(i)?i:Object(Sh.m)({},i)})}})}function nT(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var iT=Math.round(9*Math.random()),rT="function"==typeof Object.defineProperty,oT=function(){function t(){this._id="__ec_inner_"+iT++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return rT?Object.defineProperty(n,this._id,{value:e,enumerable:!1,
vendor: 4,253 bytes, line 70
70configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),aT=By.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),sT=By.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),lT=By.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,c=Math.asin(s/a),u=Math.cos(c)*a,d=Math.sin(c),h=Math.cos(c),p=.6*a,f=.7*a;t.moveTo(n-u,l+s),t.arc(n,l,a,Math.PI-c,2*Math.PI+c),t.bezierCurveTo(n+u-d*p,l+s+h*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-u+d*p,l+s+h*p,n-u,l+s),t.closePath()}}),cT=By.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),uT={line:rC,rect:Qy,roundRect:Qy,square:Qy,circle:MM,diamond:sT,pin:lT,arrow:cT,triangle:aT},dT={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},hT={};Object(Sh.k)(uT,function(t,e){hT[e]=new t});var pT=By.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=Hg(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=hT[i];r||(r=hT[i="rect"]),dT[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function fT(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function gT(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?PC(t.slice(8),new kp(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?LC(t.slice(7),{},new kp(e,n,i,r),a?"center":"cover"):new pT({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=fT,o&&s.setColor(o),s}function mT(t){return Object(Sh.t)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function vT(t,e){if(null!=t)return Object(Sh.t)(t)||(t=[t,t]),[lm(t[0],e[0])||0,lm(Object(Sh.P)(t[1],t[0]),e[1])||0]}function yT(t){return isFinite(t)}function bT(t,e,n){for(var i="radial"===e.type?function(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=yT(a)?a:.5,s=yT(s)?s:.5,l=l>=0&&yT(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=yT(i)?i:0,r=yT(r)?r:1,o=yT(o)?o:0,a=yT(a)?a:0,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function _T(t){return parseInt(t,10)}function xT(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);
70return(t[r]||_T(s[i])||_T(t.style[i]))-(_T(s[o])||0)-(_T(s[a])||0)|0}function wT(t){var e,n,i=t.style,r=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:Object(Sh.z)(e)?[e]:Object(Sh.t)(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=Object(Sh.H)(r,function(t){return t/a}),o/=a)}return[r,o]}var ST=new vy(!0);function OT(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function MT(t){return"string"==typeof t&&"none"!==t}function CT(t){var e=t.fill;return null!=e&&"none"!==e}function IT(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function TT(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function kT(t,e,n){var i=fv(e.image,e.__image,n);if(mv(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*Sh.a),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var AT=["shadowBlur","shadowOffsetX","shadowOffsetY"],DT=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function LT(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){zT(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Av.opacity:a}(i||e.blend!==n.blend)&&(o||(zT(t,r),o=!0),t.globalCompositeOperation=e.blend||Av.blend);for(var s=0;s<AT.length;s++){var l=AT[s];(i||e[l]!==n[l])&&(o||(zT(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(zT(t,r),o=!0),t.shadowColor=e.shadowColor||Av.shadowColor),o}function PT(t,e,n,i,r){var o=VT(e,r.inHover),a=i?null:n&&VT(n,r.inHover)||{};if(o===a)return!1;var s=LT(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(zT(t,r),s=!0),MT(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(zT(t,r),s=!0),MT(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(zT(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(zT(t,r),s=!0),t.lineWidth=l)}for(var c=0;c<DT.length;c++){var u=DT[c],d=u[0];(i||o[d]!==a[d])&&(s||(zT(t,r),s=!0),t[d]=o[d]||u[1])}return s}function jT(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}var ET=1,NT=2,RT=3,BT=4;function zT(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function VT(t,e){return e&&t.__hoverStyle||t.style}function FT(t,e){HT(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function HT(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~Xp,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,a)||(a&&a.length&&(zT(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(zT(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),jT(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var c=n.prevEl;c||(l=s=!0);var u,d,h=e instanceof By&&e.autoBatch&&function(t){var e=CT(t),n=OT(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||(u=r,d=c.transform,u&&d?u[0]!==d[0]||u[1]!==d[1]||u[2]!==d[2]||u[3]!==d[3]||u[4]!==d[4]||u[5]!==d[5]:u||d)?(zT(t,n),jT(t,e)):h||zT(t,n);var p=VT(e,n.inHover);e instanceof By?(n.lastDrawType!==ET&&(l=!0,n.lastDrawType=ET),PT(t,e,c,l,n),h&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,o=OT(n),a=CT(n),s=n.strokePercent,l=s<1,c=!e.path;e.silent&&!l||!c||e.createPathProxy();var u=e.path||ST,d=e.__dirty;if(!i){var h=n.fill,p=n.stroke,f=a&&!!h.colorStops,g=o&&!!p.colorStops,m=a&&!!h.image,v=o&&!!p.image,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0;
70(f||g)&&(w=e.getBoundingRect()),f&&(y=d?bT(t,h,w):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(b=d?bT(t,p,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),m&&(_=d||!e.__canvasFillPattern?kT(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=_),v&&(x=d||!e.__canvasStrokePattern?kT(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?t.fillStyle=y:m&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=b:v&&(x?t.strokeStyle=x:o=!1)}var S,O,M=e.getGlobalScale();u.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(r=wT(e))[0],O=r[1]);var C=!0;(c||d&Zp)&&(u.setDPR(t.dpr),l?u.setContext(null):(u.setContext(t),C=!1),u.reset(),e.buildPath(u,e.shape,i),u.toStatic(),e.pathUpdated()),C&&u.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=O),i||(n.strokeFirst?(o&&TT(t,n),a&&IT(t,n)):(a&&IT(t,n),o&&TT(t,n))),S&&t.setLineDash([])}(t,e,p,h),h&&(n.batchFill=p.fill||"",n.batchStroke=p.stroke||"")):e instanceof Fy?(n.lastDrawType!==RT&&(l=!0,n.lastDrawType=RT),PT(t,e,c,l,n),function(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||Pg.a,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(i=wT(e))[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(OT(n)&&t.strokeText(r,n.x,n.y),CT(n)&&t.fillText(r,n.x,n.y)):(CT(n)&&t.fillText(r,n.x,n.y),OT(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}(t,e,p)):e instanceof Uy?(n.lastDrawType!==NT&&(l=!0,n.lastDrawType=NT),function(t,e,n,i,r){LT(t,VT(e,r.inHover),n&&VT(n,r.inHover),i,r)}(t,e,c,l,n),function(t,e,n){var i=e.__image=fv(n.image,e.__image,e,e.onload);if(i&&mv(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;t.drawImage(i,c,u,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var d=a-(c=n.sx),h=s-(u=n.sy);t.drawImage(i,c,u,d,h,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,p)):e.getTemporalDisplayables&&(n.lastDrawType!==BT&&(l=!0,n.lastDrawType=BT),function(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;o<a;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),HT(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var c=0,u=r.length;c<u;c++){var l=r[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),HT(t,l,s,c===u-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),h&&i&&zT(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var GT=new oT,WT=new Lg.a(100),UT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function qT(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&>.delete(t);var o=GT.get(t);if(o)return o;var a=Object(Sh.i)(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o=[n],s=!0,l=0;l<UT.length;++l){var c=a[UT[l]];if(null!=c&&!Object(Sh.t)(c)&&!Object(Sh.C)(c)&&!Object(Sh.z)(c)&&"boolean"!=typeof c){s=!1;break}o.push(c)}if(s){e=o.join(",")+(r?"-svg":"");var u=WT.get(e);u&&(r?t.svgElement=u:t.image=u)}var d,h=function t(e){if(!e||0===e.length)return[[0,0]];if(Object(Sh.z)(e)){var n=Math.ceil(e);return[[n,n]]}var i=!0;for(var r=0;r<e.length;++r)if(!Object(Sh.z)(e[r])){i=!1;break}if(i)return t([e]);var o=[];for(var r=0;r<e.length;++r)if(Object(Sh.z)(e[r])){var n=Math.ceil(e[r]);o.push([n,n])}else{var n=Object(Sh.H)(e[r],function(t){return Math.ceil(t)});n.length%2==1?o.push(n.concat(n)):o.push(n)}return o}(a.dashArrayX),p=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Object(Sh.z)(t)){var e=Math.ceil(t);return[e,e]}var n=Object(Sh.H)(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(a.dashArrayY),f=function t(e){if(!e||0===e.length)return[["rect"]];if(Object(Sh.C)(e))return[[e]];var n=!0;for(var i=0;i<e.length;++i)if(!Object(Sh.C)(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(var i=0;i<e.length;++i)Object(Sh.C)(e[i])?r.push([e[i]]):r.push(e[i]);return r}(a.symbol),g=(_=h,Object(Sh.H)(_,function(t){return YT(t)})),m=YT(p),v=!r&&Pg.d.createCanvas(),y=r&&{tag:"g",attrs:{},key:"dcl",children:[]},b=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=Im(t,g[e]);for(var i=1,e=0,n=f.length;e<n;++e)i=Im(i,f[e].length);t*=i;var r=m*g.length*f.length;0;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();var _;
70v&&(v.width=b.width*n,v.height=b.height*n,d=v.getContext("2d"));(function(){d&&(d.clearRect(0,0,v.width,v.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,v.width,v.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(!(t<=0))for(var o=-m,s=0,l=0,c=0;o<b.height;){if(s%2==0){for(var u=l/2%f.length,g=0,_=0,x=0;g<2*b.width;){for(var w=0,e=0;e<h[c].length;++e)w+=h[c][e];if(w<=0)break;if(_%2==0){var S=.5*(1-a.symbolSize),O=g+h[c][_]*S,M=o+p[s]*S,C=h[c][_]*a.symbolSize,I=p[s]*a.symbolSize,T=x/2%f[u].length;k(O,M,C,I,f[u][T])}g+=h[c][_],++x,++_===h[c].length&&(_=0)}++c===h.length&&(c=0)}o+=p[s],++l,++s===p.length&&(s=0)}function k(t,e,o,s,l){var c=r?1:n,u=gT(l,t*c,e*c,o*c,s*c,a.color,a.symbolKeepAspect);if(r){var h=i.painter.renderOneToVNode(u);h&&y.children.push(h)}else FT(d,u)}})(),s&&WT.put(e,v||y);t.image=v,t.svgElement=y,t.svgWidth=b.width,t.svgHeight=b.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,GT.set(t,s),t.dirty=!1,s}function YT(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var $T=new Gh,XT={};function ZT(t){return XT[t]}var KT=2e3,JT=1e3,QT=3e3,tk={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:JT,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:QT,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},ek=/^[a-zA-Z0-9_]+$/,nk="__connectUpdateStatus";function ik(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return ok(this,t,e);kk(this.id)}}function rk(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return ok(this,t,e)}}function ok(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Gh.prototype[e].apply(t,n)}var ak,sk,lk,ck,uk,dk,hk,pk,fk,gk,mk,vk,yk,bk,_k,xk,wk,Sk,Ok=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e}(Gh),Mk=Ok.prototype;Mk.on=rk("on"),Mk.off=rk("off");var Ck=function(t){function e(e,n,i){var r=t.call(this,new qI)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},Object(Sh.C)(n)&&(n=Ek[n]),r._dom=e;i.ssr&&(nm=function(t){var e=mb(t),n=e.dataIndex;if(null!=n){var i=Object(Sh.f)();return i.set("series_index",e.seriesIndex),i.set("data_index",n),e.ssrType&&i.set("ssr_type",e.ssrType),i}});var o=r._zr=rm(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Object(Sh.P)(i.useDirtyRect,!1),useCoarsePointer:Object(Sh.P)(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=hI(Object(Sh.c)(o.flush,o),17),(n=Object(Sh.d)(n))&&vS(n,!0),r._theme=n,r._locale=function(t){if(Object(Sh.C)(t)){var e=cx[t.toUpperCase()]||{};return t===ax||t===sx?Object(Sh.d)(e):Object(Sh.I)(Object(Sh.d)(e),Object(Sh.d)(cx[lx]),!1)}return Object(Sh.I)(Object(Sh.d)(t),Object(Sh.d)(cx[lx]),!1)}(i.locale||dx),r._coordSysMgr=new Xw;var a=r._api=_k(r);function s(t,e){return t.__prio-e.__prio}return $p(jk,s),$p(Lk,s),r._scheduler=new VI(r,a,Lk,jk),r._messageCenter=new Ok,r._initEvents(),r.resize=Object(Sh.c)(r.resize,r),o.animation.on("frame",r._onframe,r),gk(o,r),mk(o,r),Object(Sh.R)(r),r}return xh(e,t),e.prototype._onframe=function(){if(!this._disposed){Sk(this);var t=this._scheduler;if(this.__pendingUpdate){var e=this.__pendingUpdate.silent;this.__flagInMainProcess=!0;try{ak(this),ck.update.call(this,null,this.__pendingUpdate.updateParams)}catch(t){throw this.__flagInMainProcess=!1,this.__pendingUpdate=null,t}this._zr.flush(),this.__flagInMainProcess=!1,this.__pendingUpdate=null,pk.call(this,e),fk.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),dk(this,i),t.performVisualTasks(i),bk(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this.__flagInMainProcess)if(this._disposed)kk(this.id);else{var i,r,o;
70if(Object(Sh.A)(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var a=new Jw(this._api),s=this._theme,l=this._model=new Uw;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},Pk);var c={seriesTransition:o,optionChanged:!0};if(n)this.__pendingUpdate={silent:i,updateParams:c},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{ak(this),ck.update.call(this,null,c)}catch(t){throw this.__pendingUpdate=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,pk.call(this,i),fk.call(this,i)}}},e.prototype.setTheme=function(){zw()},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||wh.a.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(wh.a.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(Sh.k)(e,function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;Object(Sh.k)(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(Sh.k)(i,function(t){t.group.ignore=!1}),o}kk(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max;if(Bk[n]){var o=1/0,a=1/0,s=-1/0,l=-1/0,c=[],u=t&&t.pixelRatio||this.getDevicePixelRatio();Object(Sh.k)(Rk,function(u,d){if(u.group===n){var h=e?u.getZr().painter.getSvgDom().innerHTML:u.renderToCanvas(Object(Sh.d)(t)),p=u.getDom().getBoundingClientRect();o=i(p.left,o),a=i(p.top,a),s=r(p.right,s),l=r(p.bottom,l),c.push({dom:h,left:p.left,top:p.top})}});var d=(s*=u)-(o*=u),h=(l*=u)-(a*=u),p=Pg.d.createCanvas(),f=rm(p,{renderer:e?"svg":"canvas"});if(f.resize({width:d,height:h}),e){var g="";return Object(Sh.k)(c,function(t){var e=t.left-o,n=t.top-a;g+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=g,t.connectedBackgroundColor&&f.painter.setBackgroundColor(t.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()}return t.connectedBackgroundColor&&f.add(new Qy({shape:{x:0,y:0,width:d,height:h},style:{fill:t.connectedBackgroundColor}})),Object(Sh.k)(c,function(t){var e=new Uy({style:{x:t.left*u-o,y:t.top*u-a,image:t.dom}});f.add(e)}),f.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}kk(this.id)},e.prototype.convertToPixel=function(t,e){return uk(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return uk(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=Um(this._model,t);return Object(Sh.k)(i,function(t,i){i.indexOf("Models")>=0&&Object(Sh.k)(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0},this)},this),!!n}kk(this.id)},e.prototype.getVisual=function(t,e){var n=Um(this._model,t,{defaultMainType:"series"});var i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?KI(i,r,e):JI(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n,i=this;Object(Sh.k)(Tk,function(t){var e=function(e){var n,r=i.getModel(),o=e.target;if("globalout"===t?n={}:o&&nT(o,function(t){var e=mb(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=Object(Sh.m)({},e.eventData),!0},!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),c=l&&i["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];0,n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:c},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)}),Object(Sh.k)(Dk,function(t,e){i._messageCenter.on(e,function(t){this.trigger(e,t)},i)}),Object(Sh.k)(["selectchanged"],function(t){i._messageCenter.on(t,function(e){this.trigger(t,e)},i)}),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(eT("map","selectchanged",e,i,t),eT("pie","selectchanged",e,i,t)):"select"===t.fromAction?(eT("map","selected",e,i,t),eT("pie","selected",e,i,t)):"unselect"===t.fromAction&&(eT("map","unselected",e,i,t),eT("pie","unselected",e,i,t))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?kk(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)kk(this.id);else{this._disposed=!0,this.getDom()&&Zm(this.getDom(),Vk,"");var t=this._api,e=this._model;Object(Sh.k)(this._componentsViews,function(n){n.dispose(e,t)}),Object(Sh.k)(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler
70=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete Rk[this.id]}},e.prototype.resize=function(t){if(!this.__flagInMainProcess)if(this._disposed)kk(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this.__pendingUpdate&&(null==i&&(i=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{n&&ak(this),ck.update.call(this,{type:"resize",animation:Object(Sh.m)({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,pk.call(this,i),fk.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)kk(this.id);else if(Object(Sh.A)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Nk[t]){var n=Nk[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?kk(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(Sh.m)({},t);return e.type=Dk[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)kk(this.id);else if(Object(Sh.A)(e)||(e={silent:!!e}),Ak[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;hk.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&wh.a.browser.weChat&&this._throttledZrFlush(),pk.call(this,n),fk.call(this,n)}},e.prototype.updateLabelLayout=function(){$T.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)kk(this.id);else{var e=t.seriesIndex;0,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Ob&&t.states.emphasis?e.push("emphasis"):t.hoverState===Sb&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered(function(t){return function t(e,n,i,r){var o=e.getTextContent();var a=e.getTextGuideLine();var s=e.isGroup;if(s)for(var l=e.childrenRef(),c=0;c<l.length;c++)r=Math.max(t(l[c],n,i,r),r);else e.z=n,e.zlevel=i,r=Math.max(e.z2,r);o&&(o.z=n,o.zlevel=i,isFinite(r)&&(o.z2=r+2));if(a){var u=e.textGuideLineConfig;a.z=n,a.zlevel=i,isFinite(r)&&(a.z2=r+(u&&u.showAbove?1:-1))}return r}(t,n,i,-1/0),!0})}}function i(t,e){e.eachRendered(function(t){if(!S_(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function r(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis){if(S_(t))return;if(t instanceof By&&function(t){var e=_b(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}})}ak=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),sk(t,!0),sk(t,!1),e.plan()},sk=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function c(t){var l=t.__requireNewView;t.__requireNewView=!1;var c="_ec_"+t.id+"_"+t.type,u=!l&&o[c];if(!u){var d=nv(t.type);0,(u=new(e?eM.getClass(d.main,d.sub):lI.getClass(d.sub))).init(n,s),o[c]=u,r.push(u),a.add(u.group)}t.__viewId=u.__id=c,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(u,t,n,s)}
70e?n.eachComponent(function(t,e){"series"!==t&&c(e)}):n.eachSeries(c);for(l=0;l<r.length;){var u=r[l];u.__alive?l++:(!e&&u.renderTask.dispose(),a.remove(u.group),u.dispose(n,s),r.splice(l,1),o[u.__id]===u&&delete o[u.__id],u.__id=u.group.__ecComponentInfo=null)}},lk=function(t,e,n,i,r){var o=t._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,c=n.excludeSeriesId;null!=c&&(l=Object(Sh.f)(),Object(Sh.k)(Dm(c),function(t){var e=zm(t,null);null!=e&&l.set(e,!0)})),o&&o.eachComponent(s,function(e){if(!(l&&null!=l.get(e.id)))if(v_(n))if(e instanceof QO)n.type!==kb||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=Hm(r,e);o=(Object(Sh.t)(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var c=mb(a);i_(i,c.focus,c.blurScope,n)}else{var u=t.get(["emphasis","focus"]),d=t.get(["emphasis","blurScope"]);null!=u&&i_(i,u,d,n)}}}(e,n,t._api);else{var i=o_(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;n.type===kb&&r&&!n.notBlur&&r_(e.mainType,e.componentIndex,t._api),o&&Object(Sh.k)(o,function(t){n.type===kb?Xb(t):Zb(t)})}else m_(n)&&e instanceof QO&&(!function(t,e,n){if(m_(e)){var i=e.dataType,r=Hm(t.getData(i),e);Object(Sh.t)(r)||(r=[r]),t[e.type===Pb?"toggleSelect":e.type===Db?"select":"unselect"](r,i)}}(e,n,t._api),a_(e),wk(t))},t),o&&o.eachComponent(s,function(e){l&&null!=l.get(e.id)||u(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else Object(Sh.k)([].concat(t._componentsViews).concat(t._chartsViews),u);function u(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}},ck={prepareAndUpdate:function(t){ak(this),ck.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),dk(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),vk(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",c=i.get("darkMode");o.setBackgroundColor(l),null!=c&&"auto"!==c&&o.setDarkMode(c),$T.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent(function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=Object(Sh.f)();i.eachSeries(function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),bk(this,i,r,e,{},a),$T.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),lI.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),vk(this,n,this._api,e,{}),$T.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries(function(t){t.getData().clearAllVisual()}),lI.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent(function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}}),i.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)}),$T.trigger("afterupdate",i,this._api))},updateLayout:function(t){ck.update.call(this,t)}},uk=function(t,e,n,i){if(t._disposed)kk(t.id);else{for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=Um(o,n),l=0;l<a.length;l++){var c=a[l];if(c[e]&&null!=(r=c[e](o,s,i)))return r}0}},dk=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},hk=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=Ak[r],s=a.actionInfo,l=(s.update||"update").split(":"),c=l.pop(),u=null!=l[0]&&nv(l[0]);this.__flagInMainProcess=!0;var d=[t],h=!1;t.batch&&(h=!0,d=Object(Sh.H)(t.batch,function(e){return(e=Object(Sh.i)(Object(Sh.m)({},e),t)).batch=null,e}));var p,f=[],g=m_(t),m=v_(t);if(m&&n_(this._api),Object(Sh.k)(d,function(e){if((p=(p=a.action(e,n._model,n._api))||Object(Sh.m)({},e)).type=s.event||p.type,f.push(p),m){var i=qm(t),r=i.queryOptionMap,o=i.mainTypeSpecified?r.keys()[0]:"series";lk(n,c,e,o),wk(n)}else g?(lk(n,c,e,"series"),wk(n)):u&&lk(n,c,e,u.main,u.sub)}),"none"!==c&&!m&&!g&&!u)try{this.__pendingUpdate?(ak(this),ck.update.call(this,t),this.__pendingUpdate=null):ck[c].call(this,t)}catch(t){throw this.__flagInMainProcess=!1,t}if(p=h?{type:s.event||r,escapeConnect:o,batch:f}:f[0],this.__flagInMainProcess=!1,!e){var v=this._messageCenter;if(v.trigger(p.type,p),g){var y={type:"selectchanged",escapeConnect:o,selected:s_(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};v.trigger(y.type,y)}}}
70,pk=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();hk.call(this,n,t)}},fk=function(t){!t&&this.trigger("updated")},gk=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e.__pendingUpdate||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},mk=function(t,e){t.on("mouseover",function(t){var n=nT(t.target,g_);n&&(!function(t,e,n){var i=mb(t),r=o_(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&r_(i.componentMainType,i.componentIndex,n),Object(Sh.k)(o,function(t){return Yb(t,e)})):(i_(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&r_(i.componentMainType,i.componentIndex,n),Yb(t,e))}(n,t,e._api),wk(e))}).on("mouseout",function(t){var n=nT(t.target,g_);n&&(!function(t,e,n){n_(n);var i=mb(t),r=o_(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?Object(Sh.k)(r,function(t){return $b(t,e)}):$b(t,e)}(n,t,e._api),wk(e))}).on("click",function(t){var n=nT(t.target,function(t){return null!=mb(t).dataIndex},!0);if(n){var i=n.selected?"unselect":"select",r=mb(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},vk=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);$p(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),Object(Sh.k)(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)})}}(e),yk(t,e,n,i,r),Object(Sh.k)(t._chartsViews,function(t){t.__alive=!1}),bk(t,e,n,i,r),Object(Sh.k)(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},yk=function(t,e,o,a,s,l){Object(Sh.k)(l||t._componentsViews,function(t){var s=t.__model;i(s,t),t.render(s,e,o,a),n(s,t),r(s,t)})},bk=function(t,e,o,a,s,l){var c=t._scheduler;s=Object(Sh.m)(s||{},{updatedSeries:e.getSeries()}),$T.trigger("series:beforeupdate",e,o,s);var u=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;c.updatePayload(r,a),i(e,n),l&&l.get(e.uid)&&r.dirty(),r.perform(c.getPerformArgs(r))&&(u=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}(e,n),a_(e)}),c.unfinished=u||c.unfinished,$T.trigger("series:layoutlabels",e,o,s),$T.trigger("series:transition",e,o,s),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];n(e,i),r(e,i)}),function(t,e){var n=t._zr.storage,i=0;n.traverse(function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!wh.a.node&&!wh.a.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}(t,e),$T.trigger("series:afterupdate",e,o,s)},wk=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},Sk=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse(function(t){S_(t)||e(t)}),t.__needsUpdateStatus=!1)},_k=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return xh(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Xb(e,n),wk(t)},n.prototype.leaveEmphasis=function(e,n){Zb(e,n),wk(t)},n.prototype.enterBlur=function(e){Kb(e),wk(t)},n.prototype.leaveBlur=function(e){Jb(e),wk(t)},n.prototype.enterSelect=function(e){Qb(e),wk(t)},n.prototype.leaveSelect=function(e){t_(e),wk(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(Yw))(t)},xk=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][nk]=e}}Object(Sh.k)(Dk,function(n,i){t._messageCenter.on(i,function(n){if(Bk[t.group]&&0!==t[nk]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];Object(Sh.k)(Rk,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),Object(Sh.k)(r,function(t){1!==t[nk]&&t.dispatchAction(i)}),e(r,2)}})})}}(),e}(Gh),Ik=Ck.prototype;Ik.on=ik("on"),Ik.off=ik("off"),Ik.one=function(t,e,n){var i=this;zw(),this.on.call(this,t,function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)},n)};var Tk=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function kk(t){0}var Ak={},Dk={},Lk=[],Pk=[],jk=[],Ek={},Nk={},Rk={},Bk={},zk=+new Date-0,Vk=(new Date,"_echarts_instance_");function Fk(t,e,n){var i=!(n&&n.ssr);if(i){0;var r=Hk(t);if(r)return r;0}var o=new Ck(t,e,n);return o.id="ec_"+zk++,Rk[o.id]=o,i&&Zm(t,Vk,o.id),xk(o),$T.trigger("afterinit",o),o}function Hk(t){return Rk[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,Vk)]}function Gk(t,e){Ek[t]=e}function Wk(t){Object(Sh.r)(Pk,t)<0&&Pk.push(t)}function Uk(t,e){Zk(Lk,t,e,KT)}function qk(t,e){$T.on(t,e)}function Yk(t,e,n){Object(Sh.w)(e)&&(n=e,e="");var i=Object(Sh.A)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,Dk[e]||(Object(Sh.b)(ek.test(i)&&ek.test(e)),Ak[i]||(Ak[i]={action:n,actionInfo:t}),Dk[e]=i)}function $k(t,e){Zk(jk,t,e,QT,"visual")}var Xk=[];function Zk(t,e,n,i,r){if((Object(Sh.w)(e)||Object(Sh.A)(e))&&(n=e,e=i),!(Object(Sh.r)(Xk,n)>=0)){Xk.push(n);var o=VI.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function Kk(t,e){Nk[t]=e}var Jk=function(t){var e=(t=Object(Sh.d)(t)).type;e||Vw("");var n=e.split(":");2!==n.length&&Vw("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,cO.set(e,t)};$k(2e3,_I),$k(4500,wI),$k(4500,SI),$k(2e3,XI),$k(4500,ZI),$k(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=qT(n,e))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=qT(r,e))}})}),Wk(vS),Uk(900,function(t){var e=Object(Sh.f)();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(yS)}),Kk("default",function(t,e){e=e||{},Sh.i(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",
vendor: 4,493 bytes, line 70
70spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Qg,i=new Qy({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new gb({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Qy({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new hC({shape:{startAngle:-OI/2,endAngle:-OI/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*OI/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*OI/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),c=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:c}),a.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),Yk({type:kb,event:kb,update:kb},Sh.L),Yk({type:Ab,event:Ab,update:Ab},Sh.L),Yk({type:Db,event:Db,update:Db},Sh.L),Yk({type:Lb,event:Lb,update:Lb},Sh.L),Yk({type:Pb,event:Pb,update:Pb},Sh.L),Gk("light",HI),Gk("dark",UI);var Qk=[],tA={registerPreprocessor:Wk,registerProcessor:Uk,registerPostInit:function(t){qk("afterinit",t)},registerPostUpdate:function(t){qk("afterupdate",t)},registerUpdateLifecycle:qk,registerAction:Yk,registerCoordinateSystem:function(t,e){Xw.register(t,e)},registerLayout:function(t,e){Zk(jk,t,e,JT,"layout")},registerVisual:$k,registerTransform:Jk,registerLoading:Kk,registerMap:function(t,e,n){var i=ZT("registerMap");i&&i(t,e,n)},registerImpl:function(t,e){XT[t]=e},PRIORITY:tk,ComponentModel:uw,ComponentView:eM,SeriesModel:QO,ChartView:lI,registerComponentModel:function(t){uw.registerClass(t)},registerComponentView:function(t){eM.registerClass(t)},registerSeriesModel:function(t){QO.registerClass(t)},registerChartView:function(t){lI.registerClass(t)},registerSubTypeDefaulter:function(t,e){uw.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,tm[t]=n}};function eA(t){Object(Sh.t)(t)?Object(Sh.k)(t,function(t){eA(t)}):Object(Sh.r)(Qk,t)>=0||(Qk.push(t),Object(Sh.w)(t)&&(t={install:t}),t.install(tA))}var nA=2*Math.PI,iA=vy.CMD,rA=["top","right","bottom","left"];function oA(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function aA(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var c=Math.sqrt(a*a+s*s),u=(a/=c)*n+t,d=(s/=c)*n+e;if(Math.abs(i-r)%nA<1e-4)return l[0]=u,l[1]=d,c-n;if(o){var h=i;i=wy(r),r=wy(h)}else i=wy(i),r=wy(r);i>r&&(r+=nA);var p=Math.atan2(s,a);if(p<0&&(p+=nA),p>=i&&p<=r||p+nA>=i&&p+nA<=r)return l[0]=u,l[1]=d,c-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,m=n*Math.cos(r)+t,v=n*Math.sin(r)+e,y=(f-a)*(f-a)+(g-s)*(g-s),b=(m-a)*(m-a)+(v-s)*(v-s);return y<b?(l[0]=f,l[1]=g,Math.sqrt(y)):(l[0]=m,l[1]=v,Math.sqrt(b))}function sA(t,e,n,i,r,o,a,s){var l=r-t,c=o-e,u=n-t,d=i-e,h=Math.sqrt(u*u+d*d),p=(l*(u/=h)+c*(d/=h))/h;s&&(p=Math.min(Math.max(p,0),1)),p*=h;var f=a[0]=t+p*u,g=a[1]=e+p*d;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}function lA(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,c=a[0]=Math.min(Math.max(r,t),s),u=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((c-r)*(c-r)+(u-o)*(u-o))}var cA=[];function uA(t,e,n){var i=lA(e.x,e.y,e.width,e.height,t.x,t.y,cA);return n.set(cA[0],cA[1]),i}function dA(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,c=1/0,u=e.data,d=t.x,h=t.y,p=0;p<u.length;){var f=u[p++];1===p&&(s=o=u[p],l=a=u[p+1]);var g=c;switch(f){case iA.M:o=s=u[p++],a=l=u[p++];break;case iA.L:g=sA(o,a,u[p],u[p+1],d,h,cA,!0),o=u[p++],a=u[p++];break;case iA.C:g=xf(o,a,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,h,cA),o=u[p++],a=u[p++];break;case iA.Q:g=If(o,a,u[p++],u[p++],u[p],u[p+1],d,h,cA),o=u[p++],a=u[p++];break;case iA.A:var m=u[p++],v=u[p++],y=u[p++],b=u[p++],_=u[p++],x=u[p++];p+=1;var w=!!(1-u[p++]);i=Math.cos(_)*y+m,r=Math.sin(_)*b+v,p<=1&&(s=i,l=r),g=aA(m,v,b,_,_+x,w,(d-m)*b/y+m,h,cA),o=Math.cos(_+x)*y+m,a=Math.sin(_+x)*b+v;break;case iA.R:g=lA(s=o=u[p++],l=a=u[p++],u[p++],u[p++],d,h,cA);break;case iA.Z:g=sA(o,a,s,l,d,h,cA,!0),o=s,a=l}g<c&&(c=g,n.set(cA[0],cA[1]))}return c}
70var hA=new _p,pA=new _p,fA=new _p,gA=new _p,mA=new _p;function vA(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||rA,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,c=r.anchor,u=t.getComputedTransform(),d=u&&bp([],u),h=e.get("length2")||0;c&&fA.copy(c);for(var p=0;p<a.length;p++){oA(a[p],0,s,hA,gA),_p.scaleAndAdd(pA,hA,gA,h),pA.transform(d);var f=t.getBoundingRect(),g=c?c.distance(pA):t instanceof By?dA(pA,t.path,fA):uA(pA,f,fA);g<l&&(l=g,pA.transform(u),fA.transform(u),fA.toArray(o[0]),pA.toArray(o[1]),hA.toArray(o[2]))}_A(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var yA=[],bA=new _p;function _A(t,e){if(e<=180&&e>0){e=e/180*Math.PI,hA.fromArray(t[0]),pA.fromArray(t[1]),fA.fromArray(t[2]),_p.sub(gA,hA,pA),_p.sub(mA,fA,pA);var n=gA.len(),i=mA.len();if(!(n<.001||i<.001)){gA.scale(1/n),mA.scale(1/i);var r=gA.dot(mA);if(Math.cos(e)<r){var o=sA(pA.x,pA.y,fA.x,fA.y,hA.x,hA.y,yA,!1);bA.fromArray(yA),bA.scaleAndAdd(mA,o/Math.tan(Math.PI-e));var a=fA.x!==pA.x?(bA.x-pA.x)/(fA.x-pA.x):(bA.y-pA.y)/(fA.y-pA.y);if(isNaN(a))return;a<0?_p.copy(bA,pA):a>1&&_p.copy(bA,fA),bA.toArray(t[1])}}}}function xA(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,hA.fromArray(t[0]),pA.fromArray(t[1]),fA.fromArray(t[2]),_p.sub(gA,pA,hA),_p.sub(mA,fA,pA);var i=gA.len(),r=mA.len();if(!(i<.001||r<.001))if(gA.scale(1/i),mA.scale(1/r),gA.dot(e)<Math.cos(n)){var o=sA(pA.x,pA.y,fA.x,fA.y,hA.x,hA.y,yA,!1);bA.fromArray(yA);var a=Math.PI/2,s=a+Math.acos(mA.dot(e))-n;if(s>=a)_p.copy(bA,fA);else{bA.scaleAndAdd(mA,o/Math.tan(Math.PI/2-s));var l=fA.x!==pA.x?(bA.x-pA.x)/(fA.x-pA.x):(bA.y-pA.y)/(fA.y-pA.y);if(isNaN(l))return;l<0?_p.copy(bA,pA):l>1&&_p.copy(bA,fA)}bA.toArray(t[1])}}}function wA(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function SA(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Eh(i[0],i[1]),o=Eh(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=Rh([],i[1],i[0],a/r),l=Rh([],i[1],i[2],a/o),c=Rh([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var u=1;u<i.length;u++)t.lineTo(i[u][0],i[u][1])}function OA(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<Cb.length;l++){var c=Cb[l],u=e[c],d="normal"===c;if(u){var h=u.get("show");if((d?s:Object(Sh.P)(r.states[c]&&r.states[c].ignore,s))||!Object(Sh.P)(h,a)){var p=d?i:i&&i.states[c];p&&(p.ignore=!0),i&&wA(i,!0,c,u);continue}i||(i=new tC,t.setTextGuideLine(i),d||!s&&a||wA(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),wA(i,!1,c,u)}}if(i){Object(Sh.i)(i.style,n),i.style.fill=null;var f=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=SA}}else i&&t.removeTextGuideLine()}function MA(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<Mb.length;i++){var r=Mb[i];n[r]=t.getModel([r,e])}return n}function CA(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,c=a.clone();c.applyTransform(o),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var u=s?new xC(a,o):null;e.push({label:r,labelLine:i.labelLine,rect:c,localRect:a,obb:u,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return e}function IA(t,e,n,i,r,o){var a=t.length;if(!(a<2)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var s,l=0,c=!1,u=[],d=0,h=0;h<a;h++){var p=t[h],f=p.rect;(s=f[e]-l)<0&&(f[e]-=s,p.label[e]-=s,c=!0);var g=Math.max(-s,0);u.push(g),d+=g,l=f[e]+f[n]}d>0&&o&&w(-d/a,0,a);var m,v,y=t[0],b=t[a-1];return _(),m<0&&S(-m,.8),v<0&&S(v,.8),_(),x(m,v,1),x(v,m,-1),_(),m<0&&O(-m),v<0&&O(v),c}function _(){m=y.rect[e]-i,v=r-b.rect[e]-b.rect[n]}function x(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,a);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(n,i,r){0!==n&&(c=!0);for(var o=i;o<r;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function S(i,r){for(var o=[],s=0,l=1;l<a;l++){var c=t[l-1].rect,u=Math.max(t[l].rect[e]-c[e]-c[n],0);o.push(u),s+=u}if(s){var d=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;
70l++){w(o[l]*d,0,l+1)}else for(l=a-1;l>0;l--){w(-(o[l-1]*d),l,a)}}}function O(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i<a-1;i++)if(e>0?w(n,0,i+1):w(-n,a-i-1,a),(t-=n)<=0)return}}function TA(t,e,n,i){return IA(t,"y","height",e,n,i)}function kA(t){var e=[];t.sort(function(t,e){return e.priority-t.priority});var n=new kp(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,c=o.label,u=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=o.obb,h=!1,p=0;p<e.length;p++){var f=e[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){h=!0;break}if(f.obb||(f.obb=new xC(f.localRect,f.transform)),d||(d=new xC(s,l)),d.intersect(f.obb)){h=!0;break}}}h?(i(c),u&&i(u)):(c.attr("ignore",o.defaultAttr.ignore),u&&u.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function AA(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function DA(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:AA(i&&i.shape.points)}}var LA=["align","verticalAlign","width","height","fontSize"],PA=new Dg,jA=Gm(),EA=Gm();function NA(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var RA=["x","y","rotation"],BA=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,r){var o=i.style,a=i.__hostTarget.textConfig||{},s=i.getComputedTransform(),l=i.getBoundingRect().plain();kp.applyTransform(l,l,s),s?PA.setLocalTransform(s):(PA.x=PA.y=PA.rotation=PA.originX=PA.originY=0,PA.scaleX=PA.scaleY=1),PA.rotation=wy(PA.rotation);var c,u=i.__hostTarget;if(u){c=u.getBoundingRect().plain();var d=u.getComputedTransform();kp.applyTransform(c,c,d)}var h=c&&u.getTextGuideLine();this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:l,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:PA.x,y:PA.y,scaleX:PA.scaleX,scaleY:PA.scaleY,rotation:PA.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:a.position,attachedRot:a.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(Object(Sh.w)(i)||Object(Sh.F)(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=mb(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)})},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(t,e){return function(){vA(t,e)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,s=a.__hostTarget,l=o.defaultAttr,c=void 0;c=(c=Object(Sh.w)(o.layoutOption)?o.layoutOption(DA(o,s)):o.layoutOption)||{},o.computedLayoutOption=c;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=c.x||null!=c.y?null:l.attachedPos,rotation:null!=c.rotate?c.rotate*u:l.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(null!=c.x?(a.x=lm(c.x,e),a.setStyle("x",0),d=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=c.y?(a.y=lm(c.y,n),a.setStyle("y",0),d=!0):(a.y=l.y,a.setStyle("y",l.style.y)),c.labelLinePoints){var h=s.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}jA(a).needsUpdateLabelLine=d,a.rotation=null!=c.rotate?c.rotate*u:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var p=0;p<LA.length;p++){var f=LA[p];a.setStyle(f,null!=c[f]?c[f]:l.style[f])}if(c.draggable){if(a.draggable=!0,a.cursor="move",s){var g=o.seriesModel;if(null!=o.dataIndex)g=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",i(s,g.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e,n=t.getWidth(),i=t.getHeight(),r=CA(this._labelList),o=Object(Sh.n)(r,function(t){return"shiftX"===t.layoutOption.moveOverlap}),a=Object(Sh.n)(r,function(t){return"shiftY"===t.layoutOption.moveOverlap});IA(o,"x","width",0,n,e),TA(a,0,i),kA(Object(Sh.n)(r,function(t){return t.layoutOption.hideOverlap}))},t.prototype.processLabelsOverall=function(){var t=this;Object(Sh.k)(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!i,a=e.getTextContent();!o&&a&&(o=jA(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)})})},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=mb(t),r=i.dataIndex;if(n&&null!=r){var o=e.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style");if(l){var c=o.getVisual("drawType");s.stroke=l[c]}var u=a.getModel("labelLine");OA(t,MA(a),s),vA(t,u)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!S_(t))){var r=(p=jA(n)).oldLayout,o=mb(t),a=o.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=e.getData(o.dataType);if(r){n.attr(r);var c=t.prevStates;c&&(Object(Sh.r)(c,"select")>=0&&n.attr(p.oldLayoutSelect),Object(Sh.r)(c,"emphasis")>=0&&n.attr(p.oldLayoutEmphasis)),x_(n,s,e,a)}else if(n.attr(s),!V_(n).valueAnimation){var u=Object(Sh.P)(n.style.opacity,1);n.style.opacity=0,w_(n,{style:{opacity:u}},e,a)}if(p.oldLayout=s,n.states.select){var d=p.oldLayoutSelect={};NA(d,s,RA),NA(d,n.states.select,RA)}if(n.states.emphasis){var h=p.oldLayoutEmphasis={};NA(h,s,RA),NA(h,n.states.emphasis,RA)}H_(n,a,l,e,e)}if(i&&!i.ignore&&!i.invisible){r=(p=EA(i)).oldLayout;var p,f={points:i.shape.points};r?(i.attr({shape:r}),x_(i,{shape:f},e)):(i.setShape(f),i.style.strokePercent=0,w_(i,{style:{strokePercent:1}},e)),p.oldLayout=f}},t}(),zA=Gm();function VA(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=zA(e).labelManager;i||(i=zA(e).labelManager=new BA),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=zA(e).labelManager;
70n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function FA(t,e,n){var i=Pg.d.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}eA(VA);var HA=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||bg,"string"==typeof e?r=FA(e,n,i):Sh.A(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(Sh.j(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return xh(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=FA("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new kp(0,0,0,0);function c(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new kp(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,i=1/0,r=0,c=0;c<o.length;++c){var u=o[c];if(u.intersect(t)){var d=new kp(0,0,0,0);d.copy(u),d.union(t),o[c]=d,n=!0;break}if(s){l.copy(t),l.union(u);var h=t.width*t.height,p=u.width*u.height,f=l.width*l.height-h-p;f<i&&(i=f,r=c)}}if(s&&(o[r].union(t),n=!0),!n)(e=new kp(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var u=this.__startIndex;u<this.__endIndex;++u){if(p=t[u]){var d=p.shouldBePainted(n,i,!0,!0);(f=p.__isRendered&&(p.__dirty&Xp||!d)?p.getPrevPaintRect():null)&&c(f);var h=d&&(p.__dirty&Xp||!p.__isRendered)?p.getPaintRect():null;h&&c(h)}}for(u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var p,f;d=(p=e[u])&&p.shouldBePainted(n,i,!0,!0);if(p&&(!d||!p.__zr)&&p.__isRendered)(f=p.getPrevPaintRect())&&c(f)}do{r=!1;for(u=0;u<o.length;)if(o[u].isZero())o.splice(u,1);else{for(var g=u+1;g<o.length;)o[u].intersect(o[g])?(r=!0,o[u].union(o[g]),o.splice(g,1)):g++;u++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,c=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/c,a/c));var d=this.domBack;function h(t,n,i,o){if(r.clearRect(t,n,i,o),e&&"transparent"!==e){var a=void 0;if(Sh.x(e))a=(e.global||e.__width===i&&e.__height===o)&&e.__canvasGradient||bT(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a,e.__width=i,e.__height=o;else Sh.y(e)&&(e.scaleX=e.scaleX||c,e.scaleY=e.scaleY||c,a=kT(r,e,{dirty:function(){u.setUnpainted(),u.painter.refresh()}}));r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(d,t,n,i,o),r.restore())}!n||s?h(0,0,o,a):n.length&&Sh.k(n,function(t){h(t.x*c,t.y*c,t.width*c,t.height*c)})},e}(Gh),GA=314159;var WA=function(){function t(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=Sh.m({},n||{}),this.dpr=n.devicePixelRatio||bg,this._singleCanvas=r,this.root=t,t.style&&(Sh.j(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(r){var s=t,l=s.width,c=s.height;null!=n.width&&(l=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=c*this.dpr,this._width=l,this._height=c;var u=new HA(s,this,this.dpr);u.__builtin__=!0,u.initContext(),a[GA]=u,u.zlevel=GA,o.push(GA),this._domRoot=t}else{this._width=xT(t,0,n),this._height=xT(t,1,n);var d=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(d)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),HT(i,a,r,o===e-1))}
70i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){FT(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;ef(function(){s._paintList(t,e,n,i)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(GA).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var c=!0,u=!1,d=function(a){var s,l=r[a],d=l.ctx,p=o&&l.createRepaintRects(t,e,h._width,h._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),v=l.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,p);else if(f===l.__startIndex){var y=t[f];y.incremental&&y.notClear&&!n||l.clear(!1,v,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var b=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(u=!0),i._doPaintEl(r,l,o,e,n,s===l.__endIndex-1),g)if(Date.now()-m>15)break}n.prevElClipPaths&&d.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=h.dpr,x=0;x<p.length;++x){var w=p[x];d.save(),d.beginPath(),d.rect(w.x*_,w.y*_,w.width*_,w.height*_),d.clip(),b(w),d.restore()}else d.save(),b(),d.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)},h=this,p=0;p<r.length;p++)d(p);return wh.a.wxa&&Sh.k(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:c,needsRefreshHover:u}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(HT(a,t,r,o),t.setPrevPaintRect(s))}else HT(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=GA);var n=this._layers[t];return n||((n=new HA("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Sh.I(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&Sh.I(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++){if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var i,r,o=null,a=0;for(r=0;r<t.length;r++){var s,l=(s=t[r]).zlevel,c=void 0;i!==l&&(i=l,a=0),s.incremental?((c=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):c=this.getLayer(l+(a>
700?.01:0),this._needsManuallyCompositing),c.__builtin__||Sh.G("ZLevel "+l+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==r&&(c.__dirty=!0),c.__startIndex=r,c.incremental?c.__drawIndex=-1:c.__drawIndex=r,e(r),o=c),s.__dirty&Xp&&!s.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=r))}e(r),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Sh.k(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Sh.I(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===t||r===t+.01){var o=this._layers[r];Sh.I(o,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(Sh.r(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=xT(r,0,i),e=xT(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(GA).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[GA].dom;var e=new HA("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var c=a[s];HT(n,c,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();var UA=Math.sin,qA=Math.cos,YA=Math.PI,$A=2*Math.PI,XA=180/YA,ZA=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=a-o,c=!s,u=Math.abs(l),d=Object(Pf.j)(u-$A)||(c?l>=$A:-l>=$A),h=l>0?l%$A:l%$A+$A,p=!1;p=!!d||!Object(Pf.j)(u)&&h>=YA==!!c;var f=t+n*qA(o),g=e+i*UA(o);this._start&&this._add("M",f,g);var m=Math.round(r*XA);if(d){var v=1/this._p,y=(c?1:-1)*($A-v);this._add("A",n,i,m,1,+c,t+n*qA(o+y),e+i*UA(o+y)),v>.01&&this._add("A",n,i,m,0,+c,f,g)}
70else{var b=t+n*qA(a),_=e+i*UA(a);this._add("A",n,i,m,+p,+c,b,_)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var c=[],u=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h))return void(this._invalid=!0);c.push(Math.round(h*u)/u)}this._d.push(t+c.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),KA="none",JA=Math.round;var QA=["lineCap","miterLimit","lineJoin"],tD=Object(Sh.H)(QA,function(t){return"stroke-"+t.toLowerCase()});function eD(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof Uy)t("opacity",r);else{if(function(t){var e=t.fill;return null!=e&&e!==KA}(e)){var o=Object(Pf.p)(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r;(i||a<1)&&t("fill-opacity",a)}else t("fill",KA);if(function(t){var e=t.stroke;return null!=e&&e!==KA}(e)){var s=Object(Pf.p)(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,c=l?(e.lineWidth||0)/l:0,u=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*r:s.opacity*r,d=e.strokeFirst;if((i||1!==c)&&t("stroke-width",c),(i||d)&&t("paint-order",d?"stroke":"fill"),(i||u<1)&&t("stroke-opacity",u),e.lineDash){var h=wT(n),p=h[0],f=h[1];p&&(f=JA(f||0),t("stroke-dasharray",p.join(",")),(f||i)&&t("stroke-dashoffset",f))}else i&&t("stroke-dasharray",KA);for(var g=0;g<QA.length;g++){var m=QA[g];if(i||e[m]!==Ey[m]){var v=e[m]||Ey[m];v&&t(tD[g],v)}}}else i&&t("stroke",KA)}}var nD="http://www.w3.org/2000/svg",iD="http://www.w3.org/1999/xlink",rD="http://www.w3.org/2000/xmlns/",oD="http://www.w3.org/XML/1998/namespace",aD="ecmeta_";function sD(t){return document.createElementNS(nD,t)}function lD(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function cD(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,r=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var i in e){var r=e[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(r,o)+("style"!==r?Qh(a):a||"")+(i?""+n+Object(Sh.H)(i,function(e){return t(e)}).join(n)+n:"")+"</"+r+">"}(t)}function uD(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function dD(t,e,n,i){return lD("svg","root",{width:t,height:e,xmlns:nD,"xmlns:xlink":iD,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var hD=0;function pD(){return hD++}var fD={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},gD="transform-origin";function mD(t,e,n){var i=Object(Sh.m)({},t.shape);Object(Sh.m)(i,e),t.buildPath(n,i);var r=new ZA;return r.reset(Object(Pf.f)(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function vD(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[gD]=n+"px "+i+"px")}var yD={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function bD(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function _D(t){return Object(Sh.C)(t)?fD[t]?"cubic-bezier("+fD[t]+")":Af(t)?t:"":""}function xD(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof pC){if(m=function(t,e,n){var i,r,o=t.shape.paths,a={};if(Object(Sh.k)(o,function(t){var e=uD(n.zrId);e.animation=!0,xD(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=Object(Sh.F)(o),c=l.length;if(c){var u=o[r=l[c-1]];for(var d in u){var h=u[d];a[d]=a[d]||{d:""},a[d].d+=h.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}}),i){e.d=!1;var s=bD(a,n);return i.replace(r,s)}}(t,e,n))a.push(m);else if(!o)return}else if(!o)return;for(var s={},l=0;l<o;l++){var c=r[l],u=[c.getMaxTime()/1e3+"s"],d=_D(c.getClip().easing),h=c.getDelay();d?u.push(d):u.push("linear"),h&&u.push(h/1e3+"s"),c.getLoop()&&u.push("infinite");var p=u.join(" ");s[p]=s[p]||[p,[]],s[p][1].push(c)}function f(r){var o,a=r[1],s=a.length,l={},c={},u={},d="animation-timing-function";function h(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var c=0;c<s.length;c++){var u=s[c],h=Math.round(u.time/r*100)+"%",p=_D(u.easing),f=u.rawValue;(Object(Sh.C)(f)||Object(Sh.z)(f))&&(e[h]=e[h]||{},e[h][l]=u.rawValue,p&&(e[h][d]=p))}}}}for(var p=0;p<s;p++){(S=(w=a[p]).targetName)?"shape"===S&&h(w,c):!i&&h(w,l)}for(var f in l){var g={};Ag(g,t),Object(Sh.m)(g,l[f]);var m=Object(Pf.g)(g),v=l[f][d];u[f]=m?{transform:m}:{},vD(u[f],g),v&&(u[f][d]=v)}var y=!0;for(var f in c){u[f]=u[f]||{};var b=!o;v=c[f][d];b&&(o=new vy);var _=o.len();o.reset(),u[f].d=mD(t,c[f],o);var x=o.len();if(!b&&_!==x){y=!1;break}v&&(u[f][d]=v)}if(!y)for(var f in u)delete u[f].d;if(!i)for(p=0;p<s;p++){var w,S;"style"===(S=(w=a[p]).targetName)&&h(w,u,function(t){return yD[t]})}var O,M=Object(Sh.F)(u),C=!0;for(p=1;p<M.length;p++){var I=M[p-1],T=M[p];if(u[I][gD]!==u[T][gD]){C=!1;break}O=u[I][gD]}if(C&&O){for(var f in u)u[f][gD]&&delete u[f][gD];e[gD]=O}if(Object(Sh.n)(M,function(t){return Object(Sh.F)(u[t]).length>0}).length)return bD(u,n)+" "+r[0]+" both"}for(var g in s){var m;(m=f(s[g]))&&a.push(m)}if(a.length){var v=n.zrId+"-cls-"+pD();n.cssNodes["."+v]={animation:a.join(",")},e.class=v}}function wD(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+pD(),n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var SD=Math.round;function OD(t){return t&&Object(Sh.C)(t.src)}function MD(t){return t&&Object(Sh.w)(t.toDataURL)}function CD(t,e,n,i){eD(function(r,o){var a="fill"===r||"stroke"===r;a&&Object(Pf.k)(o)?RD(e,t,r,i):a&&Object(Pf.n)(o)?BD(n,t,r,i):t[r]=o,a&&i.ssr&&"none"===o&&(t["pointer-events"]="visible")},e,n,!1),function(t,e,n){var i=t.style;if(Object(Pf.i)(i)){var r=Object(Pf.h)(t),o=n.shadowCache,a=o[r];if(!a){var s=t.getGlobalScale(),l=s[0],c=s[1];if(!l||!c)return;var u=i.shadowOffsetX||0,d=i.shadowOffsetY||0,h=i.shadowBlur,p=Object(Pf.p)(i.shadowColor),f=p.opacity,g=p.color,m=h/2/l,v=h/2/c,y=m+" "+v;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=lD("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[lD("feDropShadow","",{dx:u/l,dy:d/c,stdDeviation:y,"flood-color":g,"flood-opacity":f})]),o[r]=a}e.filter=Object(Pf.d)(a)}}(n,t,i)}function ID(t,e){var n=function(t){if("function"==typeof nm)return nm(t)}(e);
70n&&(n.each(function(e,n){null!=e&&(t[(aD+n).toLowerCase()]=e+"")}),e.isSilent()&&(t[aD+"silent"]="true"))}function TD(t){return Object(Pf.j)(t[0]-1)&&Object(Pf.j)(t[1])&&Object(Pf.j)(t[2])&&Object(Pf.j)(t[3]-1)}function kD(t,e,n){if(e&&(!function(t){return Object(Pf.j)(t[4])&&Object(Pf.j)(t[5])}(e)||!TD(e))){var i=n?10:1e4;t.transform=TD(e)?"translate("+SD(e[4]*i)/i+" "+SD(e[5]*i)/i+")":Object(Pf.e)(e)}}function AD(t,e,n){for(var i=t.points,r=[],o=0;o<i.length;o++)r.push(SD(i[o][0]*n)/n),r.push(SD(i[o][1]*n)/n);e.points=r.join(" ")}function DD(t){return!t.smooth}var LD,PD,jD={circle:[(LD=["cx","cy","r"],PD=Object(Sh.H)(LD,function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<PD.length;i++){var r=PD[i],o=t[r[0]];null!=o&&(e[r[1]]=SD(o*n)/n)}})],polyline:[AD,DD],polygon:[AD,DD]};function ED(t,e){var n=t.style,i=t.shape,r=jD[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,c=e.compress&&Object(Pf.f)(t)||4;if(!r||e.willUpdate||r[1]&&!r[1](i)||a&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||l<1){var u=!t.path||t.shapeChanged();t.path||t.createPathProxy();var d=t.path;u&&(d.beginPath(),t.buildPath(d,t.shape),t.pathUpdated());var h=d.getVersion(),p=t,f=p.__svgPathBuilder;p.__svgPathVersion===h&&f&&l===p.__svgPathStrokePercent||(f||(f=p.__svgPathBuilder=new ZA),f.reset(c),d.rebuildPath(f,l),f.generateStr(),p.__svgPathVersion=h,p.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=t.type;var g=Math.pow(10,c);r[0](i,o,g)}return kD(o,t.transform),CD(o,n,t,e),ID(o,t),e.animation&&xD(t,o,e),e.emphasis&&function(t,e,n){if(!t.ignore)if(t.isSilent())wD(c={"pointer-events":"none"},e,n,!0);else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},r=i.fill;if(!r){var o=t.style&&t.style.fill,a=t.states.select&&t.states.select.style&&t.states.select.style.fill,s=t.currentStates.indexOf("select")>=0&&a||o;s&&(r=Object(Lf.d)(s))}var l=i.lineWidth;l&&(l/=!i.strokeNoScale&&t.transform?t.transform[0]:1);var c={cursor:"pointer"};r&&(c.fill=r),i.stroke&&(c.stroke=i.stroke),l&&(c["stroke-width"]=l),wD(c,e,n,!0)}}(t,o,e),lD(s,t.id+"",o)}function ND(t,e){return t instanceof By?ED(t,e):t instanceof Uy?function(t,e){var n=t.style,i=n.image;if(i&&!Object(Sh.C)(i)&&(OD(i)?i=i.src:MD(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a={href:i,width:n.width,height:n.height};return r&&(a.x=r),o&&(a.y=o),kD(a,t.transform),CD(a,n,t,e),ID(a,t),e.animation&&xD(t,a,e),lD("image",t.id+"",a)}}(t,e):t instanceof Fy?function(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||Pg.a,o=n.x||0,a=Object(Pf.b)(n.y||0,Vg(r),n.textBaseline),s={"dominant-baseline":"central","text-anchor":Pf.a[n.textAlign]||n.textAlign};if(lb(n)){var l="",c=n.fontStyle,u=ab(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||Pg.b,h=n.fontWeight;l+="font-size:"+u+";font-family:"+d+";",c&&"normal"!==c&&(l+="font-style:"+c+";"),h&&"normal"!==h&&(l+="font-weight:"+h+";"),s.style=l}else s.style="font: "+r;return i.match(/\s/)&&(s["xml:space"]="preserve"),o&&(s.x=o),a&&(s.y=a),kD(s,t.transform),CD(s,n,t,e),ID(s,t),e.animation&&xD(t,s,e),lD("text",t.id+"",s,void 0,i)}}(t,e):void 0}function RD(t,e,n,i){var r,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(Pf.m)(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!Object(Pf.o)(o))return void 0;r="radialGradient",a.cx=Object(Sh.P)(o.x,.5),a.cy=Object(Sh.P)(o.y,.5),a.r=Object(Sh.P)(o.r,.5)}for(var s=o.colorStops,l=[],c=0,u=s.length;c<u;++c){var d=100*Object(Pf.q)(s[c].offset)+"%",h=s[c].color,p=Object(Pf.p)(h),f=p.color,g=p.opacity,m={offset:d};m["stop-color"]=f,g<1&&(m["stop-opacity"]=g),l.push(lD("stop",c+"",m))}var v=cD(lD(r,"",a,l)),y=i.gradientCache,b=y[v];b||(b=i.zrId+"-g"+i.gradientIdx++,y[v]=b,a.id=b,i.defs[b]=lD(r,b,a,l)),e[n]=Object(Pf.d)(b)}function BD(t,e,n,i){var r,o=t.style[n],a=t.getBoundingRect(),s={},l=o.repeat,c="no-repeat"===l,u="repeat-x"===l,d="repeat-y"===l;if(Object(Pf.l)(o)){var h=o.imageWidth,p=o.imageHeight,f=void 0,g=o.image;if(Object(Sh.C)(g)?f=g:OD(g)?f=g.src:MD(g)&&(f=g.toDataURL()),"undefined"==typeof Image){var m="Image width/height must been given explictly in svg-ssr renderer.";Object(Sh.b)(h,m),Object(Sh.b)(p,m)}else if(null==h||null==p){var v=function(t,e){if(t){var n=t.elm,i=h||e.width,r=p||e.height;"pattern"===t.tag&&(u?(r=1,i/=a.width):d&&(i=1,r/=a.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},y=fv(f,null,t,function(t){c||v(w,t),v(r,t)});y&&y.width&&y.height&&(h=h||y.width,p=p||y.height)}r=lD("image","img",{href:f,width:h,height:p}),s.width=h,s.height=p}else o.svgElement&&(r=Object(Sh.d)(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(r){var b,_;c?b=_=1:u?(_=1,b=s.width/a.width):d?(b=1,_=s.height/a.height):s.patternUnits="userSpaceOnUse",null==b||isNaN(b)||(s.width=b),null==_||isNaN(_)||(s.height=_);var x=Object(Pf.g)(o);x&&(s.patternTransform=x);var w=lD("pattern","",s,[r]),S=cD(w),O=i.patternCache,M=O[S];M||(M=i.zrId+"-p"+i.patternIdx++,O[S]=M,s.id=M,w=i.defs[M]=lD("pattern",M,s,[r])),e[n]=Object(Pf.d)(M)}}function zD(t,e,n){var i=n.clipPathCache,r=n.defs,o=i[t.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};i[t.id]=o,r[o]=lD("clipPath",o,a,[ED(t,n)])}e["clip-path"]=Object(Pf.d)(o)}function VD(t){return document.createTextNode(t)}function FD(t,e,n){t.insertBefore(e,n)}function HD(t,e){t.removeChild(e)}function GD(t,e){t.appendChild(e)}function WD(t){return t.parentNode}function UD(t){return t.nextSibling}function qD(t,e){t.textContent=e}var YD=58,$D=120,XD=lD("","");function ZD(t){return void 0===t}function KD(t){return void 0!==t}function JD(t,e,n){for(var i={},r=e;r<=n;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}function QD(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function tL(t){var e,n=t.children,i=t.tag;if(KD(i)){var r=t.elm=sD(i);if(iL(XD,t),Object(Sh.t)(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&GD(r,tL(o))}else KD(t.text)&&!Object(Sh.A)(t.text)&&GD(r,VD(t.text))}else t.elm=VD(t.text);return t.elm}function eL(t,e,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&FD(t,tL(o),e)}}function nL(t,e,n,i){for(;n<=i;++n){var r=e[n];if(null!=r)if(KD(r.tag))HD(WD(r.elm),r.elm);else HD(t,r.elm)}}function iL(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n];r[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:n.charCodeAt(0)!==$D?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(rD,n,a):n.charCodeAt(3)===YD?i.setAttributeNS(oD,n,a):n.charCodeAt(5)===YD?i.setAttributeNS(iD,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function rL(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(iL(t,e),ZD(e.text)?KD(i)&&KD(r)?i!==r&&function(t,e,n){for(var i,r,o,a=0,s=0,l=e.length-1,c=e[0],u=e[l],d=n.length-1,h=n[0],p=n[d];a<=l&&s<=d;)null==c?c=e[++a]:null==u?u=e[--l]:null==h?h=n[++s]:null==p?p=n[--d]:QD(c,h)?(rL(c,h),c=e[++a],h=n[++s]):QD(u,p)?(rL(u,p),u=e[--l],p=n[--d]):
vendor: 17,821 bytes, line 70
70QD(c,p)?(rL(c,p),FD(t,c.elm,UD(u.elm)),c=e[++a],p=n[--d]):QD(u,h)?(rL(u,h),FD(t,u.elm,c.elm),u=e[--l],h=n[++s]):(ZD(i)&&(i=JD(e,a,l)),ZD(r=i[h.key])?FD(t,tL(h),c.elm):(o=e[r]).tag!==h.tag?FD(t,tL(h),c.elm):(rL(o,h),e[r]=void 0,FD(t,o.elm,c.elm)),h=n[++s]);(a<=l||s<=d)&&(a>l?eL(t,null==n[d+1]?null:n[d+1].elm,n,s,d):nL(t,e,a,l))}(n,i,r):KD(r)?(KD(t.text)&&qD(n,""),eL(n,null,r,0,r.length-1)):KD(i)?nL(n,i,0,i.length-1):KD(t.text)&&qD(n,""):t.text!==e.text&&(KD(i)&&nL(n,i,0,i.length-1),qD(n,e.text)))}var oL=0;var aL=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=e,this._opts=n=Object(Sh.m)({},n),this.root=t,this._id="zr"+oL++,this._oldVNode=dD(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=sD("svg");iL(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(QD(t,e))rL(t,e);else{var n=t.elm,i=WD(n);tL(e),null!==i&&(FD(i,e.elm,UD(n)),nL(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return ND(t,uD(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=uD(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis,r.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=lD("rect","bg",{width:t,height:e,x:"0",y:"0"}),Object(Pf.k)(n))RD({fill:n},r.attrs,"fill",i);else if(Object(Pf.n)(n))BD({style:{fill:n},dirty:Sh.L,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=Object(Pf.p)(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);a&&o.push(a);var s=t.compress?null:this._mainVNode=lD("g","main",{},[]);this._paintList(e,r,s?s.children:o),s&&o.push(s);var l=Object(Sh.H)(Object(Sh.F)(r.defs),function(t){return r.defs[t]});if(l.length&&o.push(lD("defs","defs",{},l)),t.animation){var c=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=Object(Sh.H)(Object(Sh.F)(t),function(e){return e+r+Object(Sh.H)(Object(Sh.F)(t[e]),function(n){return n+":"+t[e][n]+";"}).join(i)+o}).join(i),s=Object(Sh.H)(Object(Sh.F)(e),function(t){return"@keyframes "+t+r+Object(Sh.H)(Object(Sh.F)(e[t]),function(n){return n+r+Object(Sh.H)(Object(Sh.F)(e[t][n]),function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"}).join(i)+o}).join(i)+o}).join(i);return a||s?["<![CDATA[",a,s,"]]>"].join(i):""}(r.cssNodes,r.cssAnims,{newline:!0});if(c){var u=lD("style","stl",{},[],c);o.push(u)}}return dD(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},cD(this.renderToVNode({animation:Object(Sh.P)(t.cssAnimation,!0),emphasis:Object(Sh.P)(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(Sh.P)(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,c=0;c<o;c++){var u=t[c];if(!u.invisible){var d=u.__clipPaths,h=d&&d.length||0,p=r&&r.length||0,f=void 0;for(f=Math.max(h-1,p-1);f>=0&&(!d||!r||d[f]!==r[f]);f--);for(var g=p-1;g>f;g--)i=a[--s-1];for(var m=f+1;m<h;m++){var v={};zD(d[m],v,e);var y=lD("g","clip-g-"+l++,v,[]);(i?i.children:n).push(y),a[s++]=y,i=y}r=d;var b=ND(u,e);b&&(i?i.children:n).push(b)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=xT(i,0,n),e=xT(i,1,n),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var o=r.style;o.width=t+"px",o.height=e+"px"}if(Object(Pf.n)(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=Object(Pf.c)(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();function sL(t){return null==t?0:t.length||1}function lL(t){return t}var cL=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||lL,this._newKeyGetter=i||lL,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=sL(s);if(l>1){var c=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(c,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],c=i[s],u=sL(l),d=sL(c);if(u>1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,l),i[s]=null;else if(1===u&&d>1)this._updateOneToMany&&this._updateOneToMany(c,l),i[s]=null;else if(1===u&&1===d)this._update&&this._update(c,l),i[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,l),i[s]=null;else if(u>1)for(var h=0;h<u;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=sL(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=sL(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),uL=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function dL(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function hL(t){return"category"===t?"ordinal":"time"===t?"time":"float"}var pL=function(){return function(t){this.otherDims={},null!=t&&Sh.m(this,t)}}(),fL=Gm(),gL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},mL=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=bL(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(Sh.P)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=DS(this.source),n=!_L(t),i="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,c=void 0,u=this.dimensions[a];if(u&&u.storeDimIndex===o)s=e?u.name:null,l=u.type,c=u.ordinalMeta,a++;else{var d=this.getSourceDimension(o);d&&(s=e?d.name:null,l=d.type)}r.push({property:s,type:l,ordinalMeta:c}),!e||null==s||u&&u.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=gL[l]||"f",c&&(i+=c.uid),i+="$"}var h=this.source;return{dimensions:r,hash:[h.seriesLayoutBy,h.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function vL(t){return t instanceof mL}function yL(t){for(var e=Object(Sh.f)(),n=0;n<(t||[]).length;n++){var i=t[n],r=Object(Sh.A)(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function bL(t){var e=fL(t);return e.dimNameMap||(e.dimNameMap=yL(t.dimensionsDefine))}function _L(t){return t>30}var xL,wL,SL,OL,ML,CL,IL,TL=Sh.A,kL=Sh.H,AL="undefined"==typeof Int32Array?Array:Int32Array,DL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],LL=["_approximateExtent"],PL=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i=!1;vL(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},c=0;c<n.length;c++){var u=n[c],d=Sh.C(u)?new pL({name:u}):u instanceof pL?u:new pL(u),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(h),r[h]=d,null!=l[h]&&(s=!0),d.createInvertedIndices&&(a[h]=[]),0===p.itemName&&(this._nameDimIdx=c),0===p.itemId&&(this._idDimIdx=c),i&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=Sh.f();Sh.k(o,function(t){f.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(Sh.z(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof _O&&(i=t),!i){var o=this.dimensions,a=MS(t)||Sh.u(t)?new LS(t,o.length):t;i=new _O;var s=kL(o,function(t){return{type:r._dimInfos[t].type,property:t}});i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function(t,e){var n={},i=n.encode={},r=Object(Sh.f)(),o=[],a=[],s={};Object(Sh.k)(t.dimensions,function(e){var n,l=t.getDimensionInfo(e),c=l.coordDim;if(c){var u=l.coordDimIndex;dL(i,c)[u]=e,l.isExtraCoord||(r.set(c,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),dL(s,c)[u]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}fw.each(function(t,e){var n=dL(i,e),r=l.otherDims[e];null!=r&&!1!==r&&(n[r]=l.name)})});var l=[],c={};r.each(function(t,e){var n=i[e];c[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Object(Sh.H)(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=c;var u=i.label;u&&u.length&&(o=u.slice());var d=i.tooltip;return d&&d.length?a=d.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new uL(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&IL(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==bw&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===gw&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&Em(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=zm(l,null));var c=s.id;null==r[a]&&null!=c&&(r[a]=zm(c,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)IL(this,a);xL(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){TL(t)?Sh.m(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=SL(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return wL(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return Sh.t(t)?i.getValues(kL(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var i=n&&n[e];return null==i||isNaN(i)?-1:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){Sh.w(t)&&(n=e,e=t,t=[]);var i=n||this,r=kL(OL(t),this._getStoreDimIndex,this);this._store.each(r,i?Sh.c(e,i):e)},t.prototype.filterSelf=function(t,e,n){Sh.w(t)&&(n=e,e=t,t=[]);var i=n||this,r=kL(OL(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?Sh.c(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=Sh.F(t),r=[];
70return Sh.k(i,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){Sh.w(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=kL(OL(t),this._getStoreDimIndex,this),a=CL(this);return a._store=this._store.map(o,r?Sh.c(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this;var o=kL(OL(t),this._getStoreDimIndex,this);this._store.modify(o,r?Sh.c(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=CL(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.minmaxDownSample=function(t,e){var n=CL(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=CL(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new nx(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new cL(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return wL(t,e)},function(t){return wL(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},TL(t)?Sh.m(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),Sh.t(r)?r=r.slice():TL(r)&&(r=Sh.m({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,TL(e)?Sh.m(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){TL(t)?Sh.m(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?Sh.m(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;vb(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){Sh.k(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:kL(this.dimensions,this._getDimInfo,this),this.hostModel)),ML(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];Sh.w(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(Sh.S(arguments)))})},t.internalField=(xL=function(t){var e=t._invertedIndicesMap;Sh.k(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new AL(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},SL=function(t,e,n){return zm(t._getCategory(e,n),null)},wL=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=SL(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},OL=function(t){return Sh.t(t)||(t=null!=t?[t]:[]),t},CL=function(e){var n=new t(e._schema?e._schema:kL(e.dimensions,e._getDimInfo,e),e.hostModel);return ML(n,e),n},ML=function(t,e){Sh.k(DL.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,Sh.k(LL,function(n){t[n]=Sh.d(e[n])}),t._calculationInfo=Sh.m({},e._calculationInfo)},void(IL=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=SL(t,r,e)),null==s&&null!=o&&(i[e]=s=SL(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,c=l[a]=(l[a]||0)+1;s=a,c>1&&(s+="__ec__"+c),i[e]=s}})),t}();function jL(t,e){MS(t)||(t=IS(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=Object(Sh.f)(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Object(Sh.k)(e,function(t){var e;Object(Sh.A)(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&_L(a),l=i===t.dimensionsDefine,c=l?bL(t):yL(i),u=e.encodeDefine;!u&&e.encodeDefaulter&&(u=e.encodeDefaulter(t,a));for(var d=Object(Sh.f)(u),h=new gO(a),p=0;p<h.length;p++)h[p]=-1;function f(t){var e=h[t];if(e<0){var n=i[t],r=Object(Sh.A)(n)?n:{name:n},a=new pL,s=r.name;null!=s&&null!=c.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return h[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(p=0;p<a;p++)f(p);d.each(function(t,e){var n=Dm(t).slice();if(1===n.length&&!Object(Sh.C)(n[0])&&n[0]<0)d.set(e,!1);else{var i=d.set(e,[]);Object(Sh.k)(n,function(t,n){var r=Object(Sh.C)(t)?c.get(t):t;null!=r&&r<a&&(i[n]=r,m(f(r),e,n))})}});var g=0;function m(t,e,n){null!=fw.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,r.set(e,!0))}Object(Sh.k)(n,function(t){var e,n,i,r;if(Object(Sh.C)(t))e=t,r={};else{e=(r=t).name;var o=r.ordinalMeta;r.ordinalMeta=null,(r=Object(Sh.m)({},r)).ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=d.get(e);if(!1!==s){if(!(s=Dm(s)).length)for(var c=0;c<(n&&n.length||1);c++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}Object(Sh.k)(s,function(t,o){var a=f(t);if(l&&null!=r.type&&(a.type=r.type),m(Object(Sh.i)(a,r),e,o),null==a.name&&n){var s=n[o];!Object(Sh.A)(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&Object(Sh.i)(a.otherDims,i)})}});var v=e.generateCoord,y=e.generateCoordCount,b=null!=y;y=v?y||1:0;var _=v||"value";function x(t){null==t.name&&(t.name=t.coordDim)}if(s)Object(Sh.k)(o,function(t){x(t)}),o.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=EL(_,r,b),S.coordDimIndex=0,(!v||y<=0)&&(S.isExtraCoord=!0),y--),x(S),null!=S.type||Tw(t,w)!==Sw.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=Object(Sh.f)(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new mL({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function EL(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var NL=function(){return function(t){this.coordSysDims=[],this.axisMap=Object(Sh.f)(),this.categoryAxisMap=Object(Sh.f)(),this.coordSysName=t}}();var RL={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Ym).models[0],o=t.getReferringComponents("yAxis",Ym).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),BL(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),BL(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Ym).models[0];e.coordSysDims=["single"],n.set("single",r),BL(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Ym).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),BL(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),BL(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(Sh.k)(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),BL(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}};function BL(t){return"category"===t.get("type")}function zL(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!vL(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,c,u,d,h=!(!t||!t.get("stack"));if(Object(Sh.k)(i,function(t,e){Object(Sh.C)(t)&&(i[e]=t={name:t}),h&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),c||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(c=t))}),!c||a||l||(a=!0),c){u="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=c.coordDim,f=c.type,g=0;Object(Sh.k)(i,function(t){t.coordDim===p&&g++});var m={name:u,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:d,coordDim:d,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(m.storeDimIndex=o.ensureCalculationDimension(d,f),v.storeDimIndex=o.ensureCalculationDimension(u,f)),r.appendCalculationDimension(m),r.appendCalculationDimension(v)):(i.push(m),i.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:u}}function VL(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function FL(t,e){return VL(t,e)?t.getCalculationInfo("stackResultDimension"):e}var HL=function(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=IS(t)):o=(i=r.getSource()).sourceFormat===gw;var a=function(t){var e=t.get("coordinateSystem"),n=new NL(e),i=RL[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=Xw.get(i);return e&&e.coordSysDims&&(n=Sh.H(e.coordSysDims,function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");
vendor: 6,119 bytes, line 70
70n.type=hL(r)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,c=Sh.w(l)?l:l?Sh.h(Mw,s,e):null,u=jL(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o}),d=function(t,e,n){var i,r;return n&&Sh.k(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==i||(t[i].otherDims.itemName=0),i}(u.dimensions,n.createInvertedIndices,a),h=o?null:r.getSharedDataStore(u),p=zL(e,{schema:u,store:h}),f=new PL(u,e);f.setCalculationInfo(p);var g=null!=d&&function(t){if(t.sourceFormat===gw){var e=function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!Sh.t(jm(e))}}(i)?function(t,e,n,i){return i===d?n:this.defaultDimValueGetter(t,e,n,i)}:null;return f.hasItemOption=!1,f.initData(o?i:h,null,g),f},GL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return xh(e,t),e.prototype.getInitialData=function(t){return HL(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Qg,n=gT("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=gT(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(QO);function WL(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=GS(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(GS(t,e,n[a]));return o.join(" ")}}function UL(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Object(Sh.t)(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}function qL(t,e){this.parent.drift(t,e)}var YL=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return xh(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=gT(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=qL,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Xb(this.childAt(0))},e.prototype.downplay=function(){Zb(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,c=r&&r.disableAnimation;if(l){var u=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,u)}else{(h=this.childAt(0)).silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};c?h.attr(d):x_(h,d,a,n),I_(h)}if(this._updateCommon(t,n,s,i,r),l){var h=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,w_(h,d,a,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,c,u,d,h,p,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,c=i.blurScope,d=i.labelStatesModels,h=i.hoverScale,p=i.cursorStyle,u=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(e),v=m.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),c=v.get("blurScope"),u=v.get("disabled"),d=L_(m),h=v.getShallow("scale"),p=m.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var b=vT(t.getItemVisual(e,"symbolOffset"),n);b&&(f.x=b[0],f.y=b[1]),p&&f.attr("cursor",p);var _=t.getItemVisual(e,"style"),x=_.fill;if(f instanceof Uy){var w=f.style;f.useStyle(Object(Sh.m)({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(Object(Sh.m)({},_)):f.useStyle(_),f.style.decal=null,f.setColor(x,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),O=this._z2;null!=S?null==O&&(this._z2=f.z2,f.z2+=S):null!=O&&(f.z2=O,this._z2=null);var M=r&&r.useNameLabel;D_(f,d,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return M?t.getName(e):WL(t,e)},inheritColor:x,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");C.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var I=null==h||!0===h?Math.max(1.1,3/this._sizeY):isFinite(h)&&h>0?+h:1;C.scaleX=this._sizeX*I,C.scaleY=this._sizeY*I,this.setSymbolScale(1),c_(this,l,c,u)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=mb(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&O_(a,{style:{opacity:0}
70},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();O_(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return mT(t.getItemVisual(e,"symbolSize"))},e}(Qg);function $L(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function XL(t){return null==t||Object(Sh.A)(t)||(t={isIgnore:t}),t||{}}function ZL(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:L_(e),cursorStyle:e.get("cursor")}}var KL=function(){function t(t){this.group=new Qg,this._SymbolCtor=t||YL}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=XL(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=ZL(t),l={disableAnimation:a},c=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=c(i);if($L(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(u,d){var h=r.getItemGraphicEl(d),p=c(u);if($L(t,p,u,e)){var f=t.getItemVisual(u,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==f)n.remove(h),(h=new o(t,u,s,l)).setPosition(p);else{h.updateData(t,u,s,l);var m={x:p[0],y:p[1]};a?h.attr(m):x_(h,m,i)}n.add(h),t.setItemGraphicEl(u,h)}else n.remove(h)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=c,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ZL(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=XL(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if($L(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){QC(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}();function JL(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=function(t,e){var n=0,i=t.scale.getExtent();"start"===e?n=i[0]:"end"===e?n=i[1]:Object(Sh.z)(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),c=e.mapDimension(a),u="x"===s||"radius"===s?1:0,d=Object(Sh.H)(t.dimensions,function(t){return e.mapDimension(t)}),h=!1,p=e.getCalculationInfo("stackResultDimension");return VL(e,d[0])&&(h=!0,d[0]=p),VL(e,d[1])&&(h=!0,d[1]=p),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function QL(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var tP="undefined"!=typeof Float32Array,eP=tP?Float32Array:Array;function nP(t){return Object(Sh.t)(t)?tP?new Float32Array(t):t:new eP(t)}var iP=Math.min,rP=Math.max;function oP(t,e){return isNaN(t)||isNaN(e)}function aP(t,e,n,i,r,o,a,s,l){for(var c,u,d,h,p,f,g=n,m=0;m<i;m++){var v=e[2*g],y=e[2*g+1];if(g>=r||g<0)break;if(oP(v,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,y),d=v,h=y;else{var b=v-c,_=y-u;if(b*b+_*_<.5){g+=o;continue}if(a>0){for(var x=g+o,w=e[2*x],S=e[2*x+1];w===v&&S===y&&m<i;
vendor: 1,581 bytes, line 70
70)m++,g+=o,w=e[2*(x+=o)],S=e[2*x+1],b=(v=e[2*g])-c,_=(y=e[2*g+1])-u;var O=m+1;if(l)for(;oP(w,S)&&O<i;)O++,w=e[2*(x+=o)],S=e[2*x+1];var M=.5,C=0,I=0,T=void 0,k=void 0;if(O>=i||oP(w,S))p=v,f=y;else{C=w-c,I=S-u;var A=v-c,D=w-v,L=y-u,P=S-y,j=void 0,E=void 0;if("x"===s){var N=C>0?1:-1;p=v-N*(j=Math.abs(A))*a,f=y,T=v+N*(E=Math.abs(D))*a,k=y}else if("y"===s){var R=I>0?1:-1;p=v,f=y-R*(j=Math.abs(L))*a,T=v,k=y+R*(E=Math.abs(P))*a}else j=Math.sqrt(A*A+L*L),p=v-C*a*(1-(M=(E=Math.sqrt(D*D+P*P))/(E+j))),f=y-I*a*(1-M),k=y+I*a*M,T=iP(T=v+C*a*M,rP(w,v)),k=iP(k,rP(S,y)),T=rP(T,iP(w,v)),f=y-(I=(k=rP(k,iP(S,y)))-y)*j/E,p=iP(p=v-(C=T-v)*j/E,rP(c,v)),f=iP(f,rP(u,y)),T=v+(C=v-(p=rP(p,iP(c,v))))*E/j,k=y+(I=y-(f=rP(f,iP(u,y))))*E/j}t.bezierCurveTo(d,h,p,f,v,y),d=T,h=k}else t.lineTo(v,y)}c=v,u=y,g+=o}return m}var sP=function(){return function(){this.smooth=0,this.smoothConstraint=!0}}(),lP=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return xh(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new sP},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&oP(n[2*r-2],n[2*r-1]);r--);for(;i<r&&oP(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=aP(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=vy.CMD,a="x"===e,s=[],l=0;l<r.length;){var c=void 0,u=void 0,d=void 0,h=void 0,p=void 0,f=void 0,g=void 0;
vendor: 13,677 bytes, line 70
70switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(c=r[l++],u=r[l++],(g=a?(t-n)/(c-n):(t-i)/(u-i))<=1&&g>=0){var m=a?(u-i)*g+i:(c-n)*g+n;return a?[t,m]:[m,t]}n=c,i=u;break;case o.C:c=r[l++],u=r[l++],d=r[l++],h=r[l++],p=r[l++],f=r[l++];var v=a?yf(n,c,d,p,t,s):yf(i,u,h,f,t,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){m=a?mf(i,u,h,f,b):mf(n,c,d,p,b);return a?[t,m]:[m,t]}}n=p,i=f}}},e}(By),cP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e}(sP),uP=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return xh(e,t),e.prototype.getDefaultShape=function(){return new cP},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&oP(n[2*o-2],n[2*o-1]);o--);for(;r<o&&oP(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=aP(t,n,r,o,o,1,e.smooth,a,e.connectNulls);aP(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(By);function dP(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,c=o.height,u=n.get(["lineStyle","width"])||0;a-=u/2,s-=u/2,l+=u,c+=u,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var d=new Qy({shape:{x:a,y:s,width:l,height:c}});if(e){var h=t.getBaseAxis(),p=h.isHorizontal(),f=h.inverse;p?(f&&(d.shape.x+=l),d.shape.width=0):(f||(d.shape.y+=c),d.shape.height=0);var g=Object(Sh.w)(r)?function(t){r(t,d)}:null;w_(d,{shape:{width:l,height:c,x:a,y:s}},n,null,i,g)}return d}function hP(t,e,n){var i=t.getArea(),r=cm(i.r0,1),o=cm(i.r,1),a=new WM({shape:{cx:cm(t.cx,1),cy:cm(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,w_(a,{shape:{endAngle:i.endAngle,r:o}},n));return a}function pP(t,e,n,i,r){return t?"polar"===t.type?hP(t,e,n):"cartesian2d"===t.type?dP(t,e,n,i,r):null:null}function fP(t,e){return t.type===e}function gP(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function mP(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function vP(t,e){var n=mP(t),i=n[0],r=n[1],o=mP(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function yP(t){return Sh.z(t)?t:t?.5:0}function bP(t,e,n,i,r){var o=n.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,c=[],u=[],d=[],h=[];if(r){for(l=0;l<t.length;l+=2){var p=e||t;isNaN(p[l])||isNaN(p[l+1])||h.push(t[l],t[l+1])}t=h}for(l=0;l<t.length-2;l+=2)switch(d[0]=t[l+2],d[1]=t[l+3],u[0]=t[l],u[1]=t[l+1],s.push(u[0],u[1]),i){case"end":c[a]=d[a],c[1-a]=u[1-a],s.push(c[0],c[1]);break;case"middle":var f=(u[a]+d[a])/2,g=[];c[a]=g[a]=f,c[1-a]=u[1-a],g[1-a]=d[1-a],s.push(c[0],c[1]),s.push(g[0],g[1]);break;default:c[a]=u[a],c[1-a]=d[1-a],s.push(c[0],c[1])}return s.push(t[l++],t[l++]),s}function _P(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),c=Sh.H(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),u=c.length,d=o.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),d.reverse());var h=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord,r=(n-i)/(e.coord-i);return{coord:n,color:Object(Lf.b)(r,[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],c=l.coord;if(c<0)n=l;else{if(c>e){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(c,"x"===r?n.getWidth():n.getHeight()),p=h.length;if(!p&&u)return c[0].coord<0?d[1]?d[1]:c[u-1].color:d[0]?d[0]:c[0].color;var f=h[0].coord-10,g=h[p-1].coord+10,m=g-f;if(m<.001)return"transparent";Sh.k(h,function(t){t.offset=(t.coord-f)/m}),h.push({offset:p?h[p-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:p?h[0].offset:.5,color:d[0]||"transparent"});var v=new gC(0,0,0,0,h,!0);return v[r]=f,v[r+"2"]=g,v}}}function xP(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*YL.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return Sh.k(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function wP(t,e){return[t[2*e],t[2*e+1]]}function SP(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Mb.length;e++)if(t.get([Mb[e],"endLabel","show"]))return!0;return!1}function OP(t,e,n,i){if(fP(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=SP(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,c=e.getBaseAxis().isHorizontal(),u=dP(e,n,i,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var d=u.shape,h=Math.max(d.width,d.height);c?(d.y-=h,d.height+=2*h):(d.x-=h,d.width+=2*h)}return l&&l(1,u),u}return hP(e,n,i)}var MP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.init=function(){var t=new Qg,e=new KL;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=Sh.c(this._changePolyState,this)},e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.getLayout("points")||[],c="polar"===i.type,u=this._coordSys,d=this._symbolDraw,h=this._polyline,p=this._polygon,f=this._lineGroup,g=!e.ssr&&t.get("animation"),m=!s.isEmpty(),v=s.get("origin"),y=JL(i,o,v),b=m&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=nP(2*i),o=0;o<i;o++){var a=QL(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(i,o,y),_=t.get("showSymbol"),x=t.get("connectNulls"),w=_&&!c&&xP(t,o,i),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),S.setItemGraphicEl(e,null))}),_||d.remove(),r.add(f);var O,M=!c&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(O=i.getArea()).width?(O.x-=.1,O.y-=.1,O.width+=.2,O.height+=.2):O.r0&&(O.r0-=.5,O.r+=.5)),this._clipShapeForSymbol=O;var C=_P(o,i,n)||o.getVisual("style")[o.getVisual("drawType")];if(h&&u.type===i.type&&M===this._step){m&&!p?p=this._newPolygon(l,b):p&&!m&&(f.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Xx(C));var I=f.getClipPath();if(I)w_(I,{shape:OP(this,i,!1,t).shape},t);else f.setClipPath(OP(this,i,!0,t));_&&d.updateData(o,{isIgnore:w,clipShape:O,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),gP(this._stackedOnPoints,b)&&gP(this._points,l)||(g?this._doUpdateAnimation(o,b,i,n,M,v,x):(M&&(b&&(b=bP(b,l,i,M,x)),l=bP(l,null,i,M,x)),h.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:b})))}else _&&d.updateData(o,{isIgnore:w,clipShape:O,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(o,i,O),M&&(b&&(b=bP(b,l,i,M,x)),l=bP(l,null,i,M,x)),h=this._newPolyline(l),m?p=this._newPolygon(l,b):p&&(f.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Xx(C)),f.setClipPath(OP(this,i,!0,t));var T=t.getModel("emphasis"),k=T.get("focus"),A=T.get("blurScope"),D=T.get("disabled");(h.useStyle(Sh.i(a.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),p_(h,t,"lineStyle"),h.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(h.getState("emphasis").style.lineWidth=+h.style.lineWidth+1);mb(h).seriesIndex=t.seriesIndex,c_(h,k,A,D);var L=yP(t.get("smooth")),P=t.get("smoothMonotone");if(h.setShape({smooth:L,smoothMonotone:P,connectNulls:x}),p){var j=o.getCalculationInfo("stackedOnSeries"),E=0;p.useStyle(Sh.i(s.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),j&&(E=yP(j.get("smooth"))),p.setShape({smooth:L,stackedOnSmooth:E,smoothMonotone:P,connectNulls:x}),p_(p,t,"areaStyle"),mb(p).seriesIndex=t.seriesIndex,c_(p,k,A,D)}var N=this._changePolyState;o.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=N)}),this._polyline.onHoverStateChange=N,this._data=o,this._coordSys=i,this._stackedOnPoints=b,this._points=l,this._step=M,this._valueOrigin=v,t.get("triggerLineEvent")&&(this.packEventData(t,h),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){mb(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Hm(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],c=a[2*o+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=t.get("zlevel")||0,d=t.get("z")||0;(s=new YL(r,o)).x=l,s.y=c,s.setZ(u,d);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=u,h.z=d,h.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else lI.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Hm(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else lI.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Wb(this._polyline,t),e&&Wb(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new lP({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new uP({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");Sh.w(l)&&(l=l(null));var c=s.get("animationDelay")||0,u=Sh.w(c)?c(null):c;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var d=[t.x,t.y],h=void 0,p=void 0,f=void 0;if(n)if(r){var g=n,m=e.pointToCoord(d);i?(h=g.startAngle,p=g.endAngle,f=-m[1]/180*Math.PI):(h=g.r0,p=g.r,f=m[0])}else{var v=n;i?(h=v.x,p=v.x+v.width,f=t.x):(h=v.y+v.height,p=v.y,f=t.y)}var y=p===h?0:(f-h)/(p-h);a&&(y=1-y);var b=Sh.w(c)?c(o):l*y+u,_=s.getSymbolPath(),x=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:b}),_.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(SP(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new gb({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(a);l>=0&&(D_(o,L_(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?UL(r,n):WL(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,d=u.get("connectNulls"),h=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,v=e.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,b=(g?p:0)*(m?-1:1),_=(g?0:-p)*(m?-1:1),x=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,c=0;c<o;c++)if(r=t[2*c+a],!isNaN(r)&&!isNaN(t[2*c+1-a]))if(0!==c){if(i<=e&&r>=e||i>=e&&r<=e){l=c;break}s=c,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(c,y,x),S=w.range,O=S[1]-S[0],M=void 0;if(O>=1){if(O>1&&!d){var C=wP(c,S[0]);s.attr({x:C[0]+b,y:C[1]+_}),r&&(M=u.getRawValue(S[0]))}else{(C=l.getPointOn(y,x))&&s.attr({x:C[0]+b,y:C[1]+_});var I=u.getRawValue(S[0]),T=u.getRawValue(S[1]);r&&(M=Jm(n,h,I,T,w.t))}i.lastFrameIndex=S[0]}else{var k=1===t||i.lastFrameIndex>0?S[0]:0;C=wP(c,k);r&&(M=u.getRawValue(k)),s.attr({x:C[0]+b,y:C[1]+_})}if(r){var A=V_(s);"function"==typeof A.setLabelText&&A.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,c=t.hostModel,u=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),c=[],u=[],d=[],h=[],p=[],f=[],g=[],m=JL(r,e,a),v=t.getLayout("points")||[],y=e.getLayout("points")||[],b=0;b<l.length;b++){var _=l[b],x=!0,w=void 0,S=void 0;switch(_.cmd){case"=":w=2*_.idx,S=2*_.idx1;
70var O=v[w],M=v[w+1],C=y[S],I=y[S+1];(isNaN(O)||isNaN(M))&&(O=C,M=I),c.push(O,M),u.push(C,I),d.push(n[w],n[w+1]),h.push(i[S],i[S+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var T=_.idx,k=m.dataDimsForPoint,A=r.dataToPoint([e.get(k[0],T),e.get(k[1],T)]);S=2*T,c.push(A[0],A[1]),u.push(y[S],y[S+1]);var D=QL(m,r,e,T);d.push(D[0],D[1]),h.push(i[S],i[S+1]),g.push(e.getRawIndex(T));break;case"-":x=!1}x&&(p.push(_),f.push(f.length))}f.sort(function(t,e){return g[t]-g[e]});var L=c.length,P=nP(L),j=nP(L),E=nP(L),N=nP(L),R=[];for(b=0;b<f.length;b++){var B=f[b],z=2*b,V=2*B;P[z]=c[V],P[z+1]=c[V+1],j[z]=u[V],j[z+1]=u[V+1],E[z]=d[V],E[z+1]=d[V+1],N[z]=h[V],N[z+1]=h[V+1],R[b]=p[B]}return{current:P,next:j,stackedOnCurrent:E,stackedOnNext:N,status:R}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),d=u.current,h=u.stackedOnCurrent,p=u.next,f=u.stackedOnNext;if(r&&(h=bP(u.stackedOnCurrent,u.current,n,r,a),d=bP(u.current,null,n,r,a),f=bP(u.stackedOnNext,u.next,n,r,a),p=bP(u.next,null,n,r,a)),vP(d,p)>3e3||l&&vP(h,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=u.current,s.shape.points=d;var g={shape:{points:p}};u.current!==d&&(g.shape.__points=u.next),s.stopAnimation(),x_(s,g,c),l&&(l.setShape({points:d,stackedOnPoints:h}),l.stopAnimation(),x_(l,{shape:{stackedOnPoints:f}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=u.status,y=0;y<v.length;y++){if("="===v[y].cmd){var b=t.getItemGraphicEl(v[y].idx1);b&&m.push({el:b,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<m.length;e++){var n=m[e].el,i=2*m[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}})},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(lI);function CP(t,e){return{seriesType:t,plan:nM(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=Object(Sh.H)(i.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");VL(n,a[0])&&(a[0]=l),VL(n,a[1])&&(a[1]=l);var c=n.getStore(),u=n.getDimensionIndex(a[0]),d=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&nP(n*s),a=[],l=[],h=t.start,p=0;h<t.end;h++){var f=void 0;if(1===s){var g=c.get(u,h);f=i.dataToPoint(g,null,l)}else a[0]=c.get(u,h),a[1]=c.get(d,h),f=i.dataToPoint(a,null,l);o?(r[p++]=f[0],r[p++]=f[1]):e.setItemLayout(h,f.slice())}o&&e.setLayout("points",r)}}}}}}var IP={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},TP=function(t){return Math.round(t.length/2)};function kP(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),c=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(u||1),h=Math.round(a/d);if(isFinite(h)&&h>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/h)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/h));var p=void 0;Object(Sh.C)(r)?p=IP[r]:Object(Sh.w)(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/h,p,TP))}}}}}var AP="__ec_stack_";function DP(t){return t.get("stack")||AP+t.seriesIndex}function LP(t){return t.dim+t.index}function PP(t,e){var n=[];return e.eachSeriesByType(t,function(t){BP(t)&&n.push(t)}),n}function jP(t){var e=function(t){var e={};Object(Sh.k)(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var c=a.get(o,s);e[r]?e[r].push(c):e[r]=[c]}});var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return Object(Sh.k)(t,function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),c=r.scale.getExtent(),u=Math.abs(c[1]-c[0]);i=s?l/u*s:l}else{var d=t.getData();i=Math.abs(o[1]-o[0])/d.count()}var h=lm(t.get("barWidth"),i),p=lm(t.get("barMaxWidth"),i),f=lm(t.get("barMinWidth")||(zP(t)?.5:1),i),g=t.get("barGap"),m=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:h,barMaxWidth:p,barMinWidth:f,barGap:g,barCategoryGap:m,axisKey:LP(r),stackId:DP(t)})}),EP(n)}function EP(t){var e={};Object(Sh.k)(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var c=t.barMaxWidth;c&&(a[s].maxWidth=c);var u=t.barMinWidth;u&&(a[s].minWidth=u);var d=t.barGap;null!=d&&(o.gap=d);var h=t.barCategoryGap;
70null!=h&&(o.categoryGap=h)});var n={};return Object(Sh.k)(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(Sh.F)(i).length;o=Math.max(35-4*a,15)+"%"}var s=lm(o,r),l=lm(t.gap,1),c=t.remainedWidth,u=t.autoWidthCount,d=(c-s)/(u+(u-1)*l);d=Math.max(d,0),Object(Sh.k)(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,c-=i+l*i,u--}else{var i=d;e&&e<i&&(i=Math.min(e,c)),n&&n>i&&(i=n),i!==d&&(t.width=i,c-=i+l*i,u--)}}),d=(c-s)/(u+(u-1)*l),d=Math.max(d,0);var h,p=0;Object(Sh.k)(i,function(t,e){t.width||(t.width=d),h=t,p+=t.width*(1+l)}),h&&(p-=h.width*l);var f=-p/2;Object(Sh.k)(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)})}),n}function NP(t,e){var n=PP(t,e),i=jP(n);Object(Sh.k)(n,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=DP(t),o=i[LP(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})})}function RP(t){return{seriesType:t,plan:nM(),reset:function(t){if(BP(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),c=e.getCalculationInfo("stackResultDimension"),u=VL(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),d=r.isHorizontal(),h=function(t,e){var n=e.model.get("startValue");n||(n=0);return e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))}(0,r),p=zP(t),f=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),m=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=p&&nP(3*r),c=p&&s&&nP(3*r),y=p&&nP(r),b=n.master.getRect(),_=d?b.width:b.height,x=e.getStore(),w=0;null!=(i=t.next());){var S=x.get(u?g:o,i),O=x.get(a,i),M=h,C=void 0;u&&(C=+S-x.get(o,i));var I=void 0,T=void 0,k=void 0,A=void 0;if(d){var D=n.dataToPoint([S,O]);if(u)M=n.dataToPoint([C,O])[0];I=M,T=D[1]+v,k=D[0]-M,A=m,Math.abs(k)<f&&(k=(k<0?-1:1)*f)}else{D=n.dataToPoint([O,S]);if(u)M=n.dataToPoint([O,C])[1];I=D[0]+v,T=M,k=m,A=D[1]-M,Math.abs(A)<f&&(A=(A<=0?-1:1)*f)}p?(l[w]=I,l[w+1]=T,l[w+2]=d?k:A,c&&(c[w]=d?b.x:I,c[w+1]=d?T:b.y,c[w+2]=_),y[i]=i):e.setItemLayout(i,{x:I,y:T,width:k,height:A}),w+=3}p&&e.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function BP(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function zP(t){return t.pipelineContext&&t.pipelineContext.large}var VP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.getInitialData=function(t,e){return HL(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)Object(Sh.k)(i.getAxes(),function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),i.length<2)return;if(2===i.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var c=void 0,u=void 0,d=1,h=0;h<i.length;h++){var p=i[h].coord,f=h===i.length-1?i[h-1].tickValue+d:i[h].tickValue;if(f===s){u=p;break}if(f<s)c=p;else if(null!=c&&f>s){u=(p+c)/2;break}1===h&&(d=f-i[0].tickValue)}null==u&&(c?c&&(u=i[i.length-1].coord):u=i[0].coord),o[n]=t.toGlobalCoord(u)}});else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;o[c]+=s+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(QO);QO.registerClass(VP);var FP=VP,HP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.getInitialData=function(){return HL(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ox(FP.defaultOption,{clip:!0,roundCap:!1,showBackgroun
70d:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(FP),GP=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),WP=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return xh(e,t),e.prototype.getDefaultShape=function(){return new GP},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,c=e.endAngle,u=e.clockwise,d=2*Math.PI,h=u?c-l<d:l-c<d;h||(l=c-(u?d:-d));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(c),m=Math.sin(c);h?(t.moveTo(p*r+n,f*r+i),t.arc(p*s+n,f*s+i,a,-Math.PI+l,l,!u)):t.moveTo(p*o+n,f*o+i),t.arc(n,i,o,l,c,!u),t.arc(g*s+n,m*s+i,a,c-2*Math.PI,c-Math.PI,!u),0!==r&&t.arc(n,i,r,c,l,u)},e}(By);function UP(t,e,n){return e*Math.sin(t)*(n?-1:1)}function qP(t,e,n){return e*Math.cos(t)*(n?1:-1)}function YP(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Object(Sh.t)(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(Sh.H)(i,function(t){return Fg(t,r)})}}var $P=Math.max,XP=Math.min;var ZP=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return xh(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){QC(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?r=c.isHorizontal():"polar"===l.type&&(r="angle"===c.dim);var u=t.isAnimationEnabled()?t:null,d=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();0;if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);d&&this._enableRealtimeSort(d,a,n);var h=t.get("clip",!0)||d,p=function(t,e){var n=t.getArea&&t.getArea();if(fP(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],b=this._backgroundEls,_=i&&i.isInitSort,x=i&&"changeAxisOrder"===i.type;function w(t){var e=rj[l.type](a,t),n=function(t,e,n){return new("polar"===t.type?WM:Qy)({shape:dj(e,n,t),silent:!0,z2:0})}(l,r,e);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),y[t]=n,n}a.diff(s).add(function(e){var n=a.getItemModel(e),i=rj[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&ij[l.type](i)){var s=!1;h&&(s=KP[l.type](p,i));var m=JP[l.type](t,a,e,i,r,u,c.model,!1,f);d&&(m.forceLabelAnimation=!0),aj(m,a,e,n,i,t,r,"polar"===l.type),_?m.attr({shape:i}):d?QP(d,u,m,i,e,r,!1,!1):w_(m,{shape:i},t,e),a.setItemGraphicEl(e,m),o.add(m),m.ignore=s}}).update(function(e,n){var i=a.getItemModel(e),S=rj[l.type](a,e,i);if(g){var O=void 0;0===b.length?O=w(n):((O=b[n]).useStyle(m.getItemStyle()),"cartesian2d"===l.type?O.setShape("r",v):O.setShape("cornerRadius",v),y[e]=O);var M=rj[l.type](a,e);x_(O,{shape:dj(r,M,l)},u,e)}var C=s.getItemGraphicEl(n);if(a.hasValue(e)&&ij[l.type](S)){var I=!1;if(h&&(I=KP[l.type](p,S))&&o.remove(C),C?I_(C):C=JP[l.type](t,a,e,S,r,u,c.model,!!C,f),d&&(C.forceLabelAnimation=!0),x){var T=C.getTextContent();if(T){var k=V_(T);null!=k.prevValue&&(k.prevValue=k.value)}}else aj(C,a,e,i,S,t,r,"polar"===l.type);_?C.attr({shape:S}):d?QP(d,u,C,S,e,r,!0,x):x_(C,{shape:S},t,e,null),a.setItemGraphicEl(e,C),C.ignore=I,o.add(C)}else o.remove(C)}).remove(function(e){var n=s.getItemGraphicEl(e);n&&C_(n,t,e)}).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Qg);S.removeAll();for(var O=0;O<y.length;++O)S.add(y[O]);o.add(S),this._backgroundEls=y,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),cj(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackgroun
vendor: 6,312 bytes, line 70
70d(),cj(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&pP(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})}),i.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:Object(Sh.H)(i,function(t){return t.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),c=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(c>o)return!0;o=c}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){C_(e,t,mb(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(lI),KP={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=$P(e.x,t.x),s=XP(e.x+e.width,r),l=$P(e.y,t.y),c=XP(e.y+e.height,o),u=s<a,d=c<l;return e.x=u&&a>r?s:a,e.y=d&&l>o?c:l,e.width=u?0:s-a,e.height=d?0:c-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),u||d},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=XP(e.r,t.r),o=$P(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},JP={cartesian2d:function(t,e,n,i,r,o,a,s,l){var c=new Qy({shape:Object(Sh.m)({},i),z2:1});(c.__dataIndex=n,c.name="item",o)&&(c.shape[r?"height":"width"]=0);return c},polar:function(t,e,n,i,r,o,a,s,l){var c=!r&&l?WP:WM,u=new c({shape:i,z2:1});u.name="item";var d,h,p=oj(r);if(u.calculateTextPosition=(d=p,h=({isRoundCap:c===WP}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return Hg(t,e,n);var r=d(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,c=a.r,u=a.r0,p=(c+u)/2,f=a.startAngle,g=a.endAngle,m=(f+g)/2,v=h?Math.abs(c-u)/2:0,y=Math.cos,b=Math.sin,_=s+c*y(f),x=l+c*b(f),w="left",S="top";switch(r){case"startArc":_=s+(u-o)*y(m),x=l+(u-o)*b(m),w="center",S="top";break;case"insideStartArc":_=s+(u+o)*y(m),x=l+(u+o)*b(m),w="center",S="bottom";break;case"startAngle":_=s+p*y(f)+UP(f,o+v,!1),x=l+p*b(f)+qP(f,o+v,!1),w="right",S="middle";break;case"insideStartAngle":_=s+p*y(f)+UP(f,-o+v,!1),x=l+p*b(f)+qP(f,-o+v,!1),w="left",S="middle";break;case"middle":_=s+p*y(m),x=l+p*b(m),w="center",S="middle";break;case"endArc":_=s+(c+o)*y(m),x=l+(c+o)*b(m),w="center",S="bottom";break;case"insideEndArc":_=s+(c-o)*y(m),x=l+(c-o)*b(m),w="center",S="top";break;case"endAngle":_=s+p*y(g)+UP(g,o+v,!0),x=l+p*b(g)+qP(g,o+v,!0),w="left",S="middle";break;case"insideEndAngle":_=s+p*y(g)+UP(g,-o+v,!0),x=l+p*b(g)+qP(g,-o+v,!0),w="right",S="middle";break;default:return Hg(t,e,n)}return(t=t||{}).x=_,t.y=x,t.align=w,t.verticalAlign=S,t}),o){var f=r?"r":"endAngle",g={};u.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?x_:w_)(u,{shape:g},o)}return u}};function QP(t,e,n,i,r,o,a,s){var l,c;o?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?x_:w_)(n,{shape:l},e,r,null),(a?x_:w_)(n,{shape:c},e?t.baseAxis.model:null,r)}function tj(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var ej=["x","y","width","height"],nj=["cx","cy","r","startAngle","endAngle"],ij={cartesian2d:function(t){return!tj(t,ej)},polar:function(t){return!tj(t,nj)}},rj={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function oj(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function aj(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var c=t.shape,u=YP(i.getModel("itemStyle"),c,!0);Object(Sh.m)(c,u),t.setShape(c)}}else{var d=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",d)}t.useStyle(l);
70var h=i.getShallow("cursor");h&&t.attr("cursor",h);var p=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",f=L_(i);D_(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:WL(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=t.getTextContent();if(s&&g){var m=i.get(["label","position"]);t.textConfig.inside="middle"===m||null,function(t,e,n,i){if(Object(Sh.z)(i))t.setTextConfig({rotation:i});else if(Object(Sh.t)(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,c=n(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var u=1.5*Math.PI-r;"middle"===c&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),t.setTextConfig({rotation:u})}}(t,"outside"===m?p:m,oj(a),i.get(["label","rotate"]))}F_(g,f,o.getRawValue(n),function(t){return UL(e,t)});var v=i.getModel(["emphasis"]);c_(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),p_(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",Object(Sh.k)(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var sj=function(){return function(){}}(),lj=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return xh(e,t),e.prototype.getDefaultShape=function(){return new sj},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(By);function cj(t,e,n,i){var r=t.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),c=r.getLayout("largeBackgroundPoints");if(c){var u=new lj({shape:{points:c},incremental:!!i,silent:!0,z2:0});u.baseDimIdx=o,u.largeDataIndices=a,u.barWidth=s,u.useStyle(l.getItemStyle()),e.add(u),n&&n.push(u)}var d=new lj({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=o,d.largeDataIndices=a,d.barWidth=s,e.add(d),d.useStyle(r.getVisual("style")),d.style.stroke=null,mb(d).seriesIndex=t.seriesIndex,t.get("silent")||(d.on("mousedown",uj),d.on("mousemove",uj)),n&&n.push(d)}var uj=hI(function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],c=t.barWidth,u=0,d=o.length/3;u<d;u++){var h=3*u;if(l[i]=c,l[r]=o[h+2],s[i]=o[h+i],s[r]=o[h+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[u]}return-1}(this,t.offsetX,t.offsetY);mb(this).dataIndex=e>=0?e:null},30,!1);function dj(t,e,n){if(fP(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}var hj=ZP;var pj=2*Math.PI,fj=Math.PI/180;function gj(t,e){return nw(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function mj(t,e){var n=gj(t,e),i=t.get("center"),r=t.get("radius");Sh.t(r)||(r=[0,r]);var o,a,s=lm(n.width,e.getWidth()),l=lm(n.height,e.getHeight()),c=Math.min(s,l),u=lm(r[0],c/2),d=lm(r[1],c/2),h=t.coordinateSystem;if(h){var p=h.dataToPoint(i);o=p[0]||0,a=p[1]||0}else Sh.t(i)||(i=[i,i]),o=lm(i[0],s)+n.x,a=lm(i[1],l)+n.y;return{cx:o,cy:a,r0:u,r:d}}function vj(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),i=e.mapDimension("value"),r=gj(t,n),o=mj(t,n),a=o.cx,s=o.cy,l=o.r,c=o.r0,u=-t.get("startAngle")*fj,d=t.get("endAngle"),h=t.get("padAngle")*fj;d="auto"===d?u-pj:-d*fj;
vendor: 4,384 bytes, line 70
70var p=t.get("minAngle")*fj+h,f=0;e.each(i,function(t){!isNaN(t)&&f++});var g=e.getSum(i),m=Math.PI/(g||f)*2,v=t.get("clockwise"),y=t.get("roseType"),b=t.get("stillShowZeroSum"),_=e.getDataExtent(i);_[0]=0;var x=v?1:-1,w=[u,d],S=x*h/2;my(w,!v),u=w[0],d=w[1];var O=yj(t);O.startAngle=u,O.endAngle=d,O.clockwise=v;var M=Math.abs(d-u),C=M,I=0,T=u;if(e.setLayout({viewRect:r,r:l}),e.each(i,function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:s,r0:c,r:y?NaN:l});else{(i="area"!==y?0===g&&b?m:t*m:M/f)<p?(i=p,C-=p):I+=t;var r=T+x*i,o=0,u=0;h>i?u=o=T+x*i/2:(o=T+S,u=r-S),e.setItemLayout(n,{angle:i,startAngle:o,endAngle:u,clockwise:v,cx:a,cy:s,r0:c,r:y?sm(t,_,[c,l]):l}),T=r}}),C<pj&&f)if(C<=.001){var k=M/f;e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=k;var r=0,o=0;k<h?o=r=u+x*(n+.5)*k:(r=u+x*n*k+S,o=u+x*(n+1)*k-S),i.startAngle=r,i.endAngle=o}})}else m=C/I,T=u,e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===p?p:t*m,o=0,a=0;r<h?a=o=T+x*r/2:(o=T+S,a=T+x*r-S),i.startAngle=o,i.endAngle=a,T+=x*r}})})}var yj=Gm();function bj(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf(function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0})}}}}var _j=Math.PI/180;function xj(t,e,n,i,r,o,a,s,l,c){if(!(t.length<2)){for(var u=t.length,d=0;d<u;d++)if("outer"===t[d].position&&"labelLine"===t[d].labelAlignTo){var h=t[d].label.x-c;t[d].linePoints[1][0]+=h,t[d].label.x=c}TA(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],c=l.label.y>n?a:o,u=Math.abs(l.label.y-n);if(u>=c.maxY){var d=l.label.x-e-l.len2*r,h=i+l.len,f=Math.abs(d)<h?Math.sqrt(u*u/(1-d*d/h/h)):h;c.rB=f,c.maxY=u}c.list.push(l)}p(o),p(a)}(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],c=Math.abs(l.label.y-n),u=i+l.len,d=u*u,h=Math.sqrt(Math.abs((1-c*c/a)*d)),p=e+(h+l.len2)*r,f=p-l.label.x;wj(l,l.targetTextWidth-f*r,!0),l.label.x=p}}}function wj(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,r=i.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,c=r.overflow,u=o.width+(a?0:l);if(e<u||n){var d=o.height;if(c&&c.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var h=i.getBoundingRect();i.setStyle("width",Math.ceil(h.width)),i.setStyle("backgroundColor",a)}else{var p=e-l,f=e<u?p:n?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var m=(i.style.margin||0)+2.1;o.height=g.height+m,o.y-=(o.height-d)/2}}}function Sj(t){return"center"===t.position}function Oj(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*_j,s=i.getLayout("viewRect"),l=i.getLayout("r"),c=s.width,u=s.x,d=s.y,h=s.height;function p(t){t.ignore=!0}i.each(function(t){var s=i.getItemGraphicEl(t),d=s.shape,h=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(t),m=g.getModel("label"),v=m.get("position")||g.get(["emphasis","label","position"]),y=m.get("distanceToLabelLine"),b=m.get("alignTo"),_=lm(m.get("edgeDistance"),c),x=m.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=lm(S,c);var O=w.get("length2");if(O=lm(O,c),Math.abs(d.endAngle-d.startAngle)<a)return Object(Sh.k)(h.states,p),h.ignore=!0,void(f&&(Object(Sh.k)(f.states,p),f.ignore=!0));if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(h)){var M,C,I,T,k=(d.startAngle+d.endAngle)/2,A=Math.cos(k),D=Math.sin(k);e=d.cx,n=d.cy;var L="inside"===v||"inner"===v;if("center"===v)M=d.cx,C=d.cy,T="center";else{var P=(L?(d.r+d.r0)/2*A:d.r*A)+e,j=(L?(d.r+d.r0)/2*D:d.r*D)+n;if(M=P+3*A,C=j+3*D,!L){var E=P+A*(S+l-d.r),N=j+D*(S+l-d.r),R=E+(A<0?-1:1)*O;M="edge"===b?A<0?u+_:u+c-_:R+(A<0?-y:y),C=N,I=[[P,j],[E,N],[R,N]]}T=L?"center":"edge"===b?A>0?"right":"left":A>0?"left":"right"}var B=Math.PI,z=0,V=m.get("rotate");if(Object(Sh.z)(V))z=V*(B/180);else if("center"===v)z=0;else if("radial"===V||!0===V){z=A<0?-k+B:-k}else if("tangential"===V&&"outside"!==v&&"outer"!==v){var F=Math.atan2(A,D);F<0&&(F=2*B+F),D>0&&(F=B+F),z=F-B}if(o=!!z,h.x=M,h.y=C,h.rotation=z,h.setStyle({verticalAlign:"middle"}),L){h.setStyle({align:T});var H=h.states.select;H&&(H.x+=h.x,H.y+=h.y)}
70else{var G=h.getBoundingRect().clone();G.applyTransform(h.getComputedTransform());var W=(h.style.margin||0)+2.1;G.y-=W/2,G.height+=W,r.push({label:h,labelLine:f,position:v,len:S,len2:O,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new _p(A,D),linePoints:I,textAlign:T,labelDistance:y,labelAlignTo:b,edgeDistance:_,bleedMargin:x,rect:G,unconstrainedWidth:G.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:L})}}),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],c=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h<t.length;h++){var p=t[h].label;Sj(t[h])||(p.x<e?(u=Math.min(u,p.x),l.push(t[h])):(d=Math.max(d,p.x),c.push(t[h])))}for(h=0;h<t.length;h++)if(!Sj(m=t[h])&&m.linePoints){if(null!=m.labelStyleWidth)continue;p=m.label;var f=m.linePoints,g=void 0;g="edge"===m.labelAlignTo?p.x<e?f[2][0]-m.labelDistance-a-m.edgeDistance:a+r-m.edgeDistance-f[2][0]-m.labelDistance:"labelLine"===m.labelAlignTo?p.x<e?u-a-m.bleedMargin:a+r-d-m.bleedMargin:p.x<e?p.x-a-m.bleedMargin:a+r-p.x-m.bleedMargin,m.targetTextWidth=g,wj(m,g)}for(xj(c,e,n,i,1,0,o,0,s,d),xj(l,e,n,i,-1,0,o,0,s,u),h=0;h<t.length;h++){var m;if(!Sj(m=t[h])&&m.linePoints){p=m.label,f=m.linePoints;var v="edge"===m.labelAlignTo,y=p.style.padding,b=y?y[1]+y[3]:0,_=p.style.backgroundColor?0:b,x=m.rect.width+_,w=f[1][0]-f[2][0];v?p.x<e?f[2][0]=a+m.edgeDistance+x+m.labelDistance:f[2][0]=a+r-m.edgeDistance-x-m.labelDistance:(p.x<e?f[2][0]=p.x+m.labelDistance:f[2][0]=p.x-m.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=p.y}}}(r,e,n,l,c,h,u,d);for(var f=0;f<r.length;f++){var g=r[f],m=g.label,v=g.labelLine,y=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),y&&(Object(Sh.k)(m.states,p),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(v){var _=g.linePoints;y||!_?(Object(Sh.k)(v.states,p),v.ignore=!0):(_A(_,g.minTurnAngle),xA(_,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:_}),m.__hostTarget.textGuideLineConfig={anchor:new _p(_[0][0],_[0][1])})}}}var Mj=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new gb;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return xh(e,t),e.prototype.updateData=function(t,e,n,i){var r=t.hostModel,o=t.getItemModel(e),a=o.getModel("emphasis"),s=t.getItemLayout(e),l=Object(Sh.m)(YP(o.getModel("itemStyle"),s,!0),s);if(isNaN(l.startAngle))this.setShape(l);else{if(i){this.setShape(l);var c=r.getShallow("animationType");r.ecModel.ssr?(w_(this,{scaleX:0,scaleY:0},r,{dataIndex:e,isFrom:!0}),this.originX=l.cx,this.originY=l.cy):"scale"===c?(this.shape.r=s.r0,w_(this,{shape:{r:s.r}},r,e)):null!=n?(this.setShape({startAngle:n,endAngle:n}),w_(this,{shape:{startAngle:s.startAngle,endAngle:s.endAngle}},r,e)):(this.shape.endAngle=s.startAngle,x_(this,{shape:{endAngle:s.endAngle}},r,e))}else I_(this),x_(this,{shape:l},r,e);this.useStyle(t.getItemVisual(e,"style")),p_(this,o);var u=(s.startAngle+s.endAngle)/2,d=r.get("selectedOffset"),h=Math.cos(u)*d,p=Math.sin(u)*d,f=o.getShallow("cursor");f&&this.attr("cursor",f),this._updateLabel(r,t,e),this.ensureState("emphasis").shape=Object(Sh.m)({r:s.r+(a.get("scale")&&a.get("scaleSize")||0)},YP(a.getModel("itemStyle"),s)),Object(Sh.m)(this.ensureState("select"),{x:h,y:p,shape:YP(o.getModel(["select","itemStyle"]),s)}),Object(Sh.m)(this.ensureState("blur"),{shape:YP(o.getModel(["blur","itemStyle"]),s)});var g=this.getTextGuideLine(),m=this.getTextContent();g&&Object(Sh.m)(g.ensureState("select"),{x:h,y:p}),Object(Sh.m)(m.ensureState("select"),{x:h,y:p}),c_(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=e.getItemModel(n),r=i.getModel("labelLine"),o=e.getItemVisual(n,"style"),a=o&&o.fill,s=o&&o.opacity;D_(this,L_(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:s,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var l=this.getTextContent();this.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)this.removeTextGuideLine();else{var u=this.getTextGuideLine();u||(u=new tC,this.setTextGuideLine(u)),OA(this,MA(i),{stroke:a,opacity:Object(Sh.Q)(r.get(["lineStyle","opacity"]),s,1)})}},e}(WM),Cj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return xh(e,t),e.prototype.render=function(t,e,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),c=1;
vendor: 5,721 bytes, line 70
70isNaN(l&&l.startAngle)&&c<o.count();++c)l=o.getItemLayout(c);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var u=yj(t),d=new WM({shape:Object(Sh.m)(mj(t,n),u)});d.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,s.add(d)}o.diff(a).add(function(t){var e=new Mj(o,t,r);o.setItemGraphicEl(t,e),s.add(e)}).update(function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,r),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)}).remove(function(e){C_(a.getItemGraphicEl(e),t,e)}).execute(),Oj(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="pie",e}(lI);function Ij(t,e,n){e=Object(Sh.t)(e)&&{coordDimensions:e}||Object(Sh.m)({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=jL(i,e).dimensions,o=new PL(r,t);return o.initData(i,n),o}var Tj=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),kj=Gm(),Aj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Tj(Sh.c(this.getData,this),Sh.c(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Ij(this,{coordDimensions:["value"],encodeDefaulter:Sh.h(Cw,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=kj(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),function(t){o.push(t)}),r=i.seats=pm(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){Lm(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(QO);var Dj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return xh(e,t),e.prototype.getInitialData=function(t,e){return HL(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(QO),Lj=function(){return function(){}}(),Pj=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return xh(e,t),e.prototype.getDefaultShape=function(){return new Lj},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,c=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var u=i[n++],d=i[n++];isNaN(u)||isNaN(d)||(c&&!c.contain(u,d)||(a.x=u-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,c=i[l]-o/2,u=i[l+1]-a/2;if(t>=c&&e>=u&&t<=c+o&&e<=u+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect
vendor: 2,072 bytes, line 70
70();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u<n.length;){var d=n[u++],h=n[u++];a=Math.min(d,a),l=Math.max(d,l),s=Math.min(h,s),c=Math.max(h,c)}t=this._rect=new kp(a-r/2,s-o/2,l-a+r,c-s+o)}return t},e}(By),jj=function(){function t(){this.group=new Qg}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()})},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new Pj({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=gT(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=mb(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>
70=0&&(l.dataIndex=n+(t.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),Ej=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=CP("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new jj:new KL,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(lI),Nj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(uw),Rj=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),Bj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ym).models[0]},e.type="cartesian2dAxis",e}(uw);Sh.K(Bj,Rj);var zj={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Vj=Sh.I({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},zj),Fj=Sh.I({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},zj),Hj={category:Vj,value:Fj,time:Sh.I({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Fj),log:Sh.i({logBase:10},Fj)},Gj=0;function Wj(t){return Object(Sh.A)(t)&&null!=t.value?t.value:t+""}var Uj=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Gj}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&Object(Sh.H)(i,Wj);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(Sh.C)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(Sh.f)(this.categories))},t}(),qj={value:1,category:1,time:1,log:1};function Yj(t,e,n,i){Object(Sh.k)(qj,function(r,o){var a=Object(Sh.I)(Object(Sh.I)({},Hj[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return xh(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=rw(this),i=n?aw(t):{},r=e.getTheme();Object(Sh.I)(t,r.get(o+"Axis")),Object(Sh.I)(t,this.getDefaultOption()),t.type=$j(t),n&&ow(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Uj.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",$j)}function $j(t){return t.type||(t.data?"category":"value")}var Xj=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();lv(Xj);var Zj=Xj;function Kj(t){return"interval"===t.type||"log"===t.type}function Jj(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=xm(o/e,!0);null!=n&&a<n&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=tE(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),eE(t,0,e),eE(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[cm(Math.ceil(t[0]/a)*a,s),cm(Math.floor(t[1]/a)*a,s)],t),r}function Qj(t){var e=Math.pow(10,_m(t)),n=t/e;
70return n?2===n?n=3:3===n?n=5:n*=2:n=1,cm(n*e)}function tE(t){return dm(t)+2}function eE(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function nE(t,e){return t>=e[0]&&t<=e[1]}function iE(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function rE(t,e){return t*(e[1]-e[0])+e[0]}var oE=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Uj({})),Object(Sh.t)(i)&&(i=new Uj({categories:Object(Sh.H)(i,function(t){return Object(Sh.A)(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return xh(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(Sh.C)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return nE(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return iE(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(rE(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Zj);Zj.registerClass(oE);var aE=oE,sE=cm,lE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return xh(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return nE(t,this._extent)},e.prototype.normalize=function(t){return iE(t,this._extent)},e.prototype.scale=function(t){return rE(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=tE(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]<i[0]&&(t?o.push({value:sE(i[0]-e,r)}):o.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=sE(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:sE(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],c=(o.value-a.value)/t;s<t-1;){var u=sE(a.value+(s+1)*c);u>i[0]&&u<i[1]&&l.push(u),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=dm(t.value)||0:"auto"===n&&(n=this._intervalPrecision),Hx(sE(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=Jj(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=sE(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=sE(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Zj);Zj.registerClass(lE);var cE=lE,uE=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return xh(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Mx(t.value,_x[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}
70(Ox(this._minLevelUnit))]||_x.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if(Sh.C(n))o=n;else if(Sh.w(n))o=n(t.value,e,{level:t.level});else{var a=Sh.m({},bx);if(t.level>0)for(var s=0;s<xx.length;++s)a[xx[s]]="{primary|"+a[xx[s]]+"}";var l=n?!1===n.inherit?n:Sh.i(n,a):a,c=Cx(t.value,r);if(l[c])o=l[c];else if(l.inherit){for(s=wx.indexOf(c)-1;s>=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if(Sh.t(o)){var u=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[u=Math.min(u,o.length-1)]}}return Mx(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r=wx,o=0;function a(t,e,n,r,o,a,s){for(var l=new Date(e),c=e,u=l[r]();c<n&&c<=i[1];)s.push({value:c}),u+=t,l[o](u),c=l.getTime();s.push({value:c,notAdd:!0})}function s(t,r,o){var s=[],l=!r.length;if(!function(t,e,n,i){var r=bm(e),o=bm(n),a=function(t){return Ix(r,t,i)===Ix(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},u=function(){return c()&&a("hour")},d=function(){return u()&&a("minute")},h=function(){return d()&&a("second")};switch(t){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return d();case"second":return h();case"millisecond":return h()&&a("millisecond")}}(Ox(t),i[0],i[1],n)){l&&(r=[{value:vE(new Date(i[0]),t,n)},{value:i[1]}]);for(var c=0;c<r.length-1;c++){var u=r[c].value,d=r[c+1].value;if(u!==d){var h=void 0,p=void 0,f=void 0,g=!1;switch(t){case"year":h=Math.max(1,Math.round(e/vx/365)),p=Tx(n),f=Ex(n);break;case"half-year":case"quarter":case"month":h=pE(e),p=kx(n),f=Nx(n);break;case"week":case"half-week":case"day":h=hE(e,31),p=Ax(n),f=Rx(n),g=!0;break;case"half-day":case"quarter-day":case"hour":h=fE(e),p=Dx(n),f=Bx(n);break;case"minute":h=gE(e,!0),p=Lx(n),f=zx(n);break;case"second":h=gE(e,!1),p=Px(n),f=Vx(n);break;case"millisecond":h=mE(e),p=jx(n),f=Fx(n)}a(h,u,d,p,f,g,s),"year"===t&&o.length>1&&0===c&&o.unshift({value:o[0].value-h})}}for(var c=0;c<s.length;c++)o.push(s[c]);return s}}for(var l=[],c=[],u=0,d=0,h=0;h<r.length&&o++<1e4;++h){var p=Ox(r[h]);if((b=r[h])===Ox(b)){s(r[h],l[l.length-1]||[],c);var f=r[h+1]?Ox(r[h+1]):null;if(p!==f){if(c.length){d=u,c.sort(function(t,e){return t.value-e.value});for(var g=[],m=0;m<c.length;++m){var v=c[m].value;0!==m&&c[m-1].value===v||(g.push(c[m]),v>=i[0]&&v<=i[1]&&u++)}var y=(i[1]-i[0])/e;if(u>1.5*y&&d>y/1.5)break;if(l.push(g),u>y||t===r[h])break}c=[]}}}var b;0;for(var _=Object(Sh.n)(Object(Sh.H)(l,function(t){return Object(Sh.n)(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),x=[],w=_.length-1,h=0;h<_.length;++h)for(var S=_[h],O=0;O<S.length;++O)x.push({value:S[O].value,level:w-h});x.sort(function(t,e){return t.value-e.value});for(var M=[],h=0;h<x.length;++h)0!==h&&x[h].value===x[h-1].value||M.push(x[h]);return M}(this._minLevelUnit,this._approxInterval,i,e);return(n=n.concat(r)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=vx,e[1]+=vx),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-vx}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=dE.length,a=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(dE,this._approxInterval,0,o),o-1);this._interval=dE[a][1],this._minLevelUnit=dE[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(Sh.z)(t)?t:+bm(t)},e.prototype.contain=function(t){return nE(this.parse(t),this._extent)},e.prototype.normalize=function(t){return iE(this.parse(t),this._extent)},e.prototype.scale=function(t){return rE(t,this._extent)},e.type="time",e}(cE),dE=[["second",fx],["minute",gx],["hour",mx],["quarter-day",6*mx],["half-day",12*mx],["day",1.2*vx],["half-week",3.5*vx],["week",7*vx],["month",31*vx],["quarter",95*vx],["half-year",
70yx/2],["year",yx]];function hE(t,e){return(t/=vx)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function pE(t){return(t/=30*vx)>6?6:t>3?3:t>2?2:1}function fE(t){return(t/=mx)>12?12:t>6?6:t>3.5?4:t>2?2:1}function gE(t,e){return(t/=e?gx:fx)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function mE(t){return xm(t,!0)}function vE(t,e,n){var i=new Date(t);switch(Ox(e)){case"year":case"month":i[Nx(n)](0);case"day":i[Rx(n)](1);case"hour":i[Bx(n)](0);case"minute":i[zx(n)](0);case"second":i[Vx(n)](0),i[Fx(n)](0)}return i.getTime()}Zj.registerClass(uE);var yE=uE,bE=Zj.prototype,_E=cE.prototype,xE=cm,wE=Math.floor,SE=Math.ceil,OE=Math.pow,ME=Math.log,CE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new cE,e._interval=0,e}return xh(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent(),r=_E.getTicks.call(this,t);return Sh.H(r,function(t){var e=t.value,r=cm(OE(this.base,e));return r=e===n[0]&&this._fixMin?TE(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?TE(r,i[1]):r}},this)},e.prototype.setExtent=function(t,e){var n=ME(this.base);t=ME(Math.max(0,t))/n,e=ME(Math.max(0,e))/n,_E.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=bE.getExtent.call(this);e[0]=OE(t,e[0]),e[1]=OE(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=TE(e[0],n[0])),this._fixMax&&(e[1]=TE(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=ME(t[0])/ME(e),t[1]=ME(t[1])/ME(e),bE.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i,r=(i=n,Math.pow(10,_m(i)));for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[cm(SE(e[0]/r)*r),cm(wE(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){_E.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return nE(t=ME(t)/ME(this.base),this._extent)},e.prototype.normalize=function(t){return iE(t=ME(t)/ME(this.base),this._extent)},e.prototype.scale=function(t){return t=rE(t,this._extent),OE(this.base,t)},e.type="log",e}(Zj),IE=CE.prototype;function TE(t,e){return xE(t,dm(e))}IE.getMinorTicks=_E.getMinorTicks,IE.getLabel=_E.getLabel,Zj.registerClass(CE);var kE=CE,AE=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=e.get("min",!0);null==r&&(r=e.get("startValue",!0));var o=this._modelMinRaw=r;Object(Sh.w)(o)?this._modelMinNum=jE(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=jE(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(Object(Sh.w)(a)?this._modelMaxNum=jE(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=jE(t,a)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=Object(Sh.t)(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Fg(l[0],1),Fg(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,c=null!=s;null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var u=Object(Sh.l)(a)||Object(Sh.l)(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!c&&(s=0));var d=this._determinedMin,h=this._determinedMax;return null!=d&&(a=d,l=!0),null!=h&&(s=h,c=!0),{min:a,max:s,minFixed:l,maxFixed:c,isBlank:u}},t.prototype.modifyDataMinMax=function(t,e){this[LE[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[DE[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),DE={min:"_determinedMin",max:"_determinedMax"},LE={min:"_dataMin",max:"_dataMax"};function PE(t,e,n){var i=t.rawExtentInfo;
70return i||(i=new AE(t,e,n),t.rawExtentInfo=i,i)}function jE(t,e){return null==e?null:Object(Sh.l)(e)?NaN:t.parse(e)}function EE(t,e){var n=t.type,i=PE(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=PP("bar",a),l=!1;if(Sh.k(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var c=jP(s),u=function(t,e,n,i){var r=n.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=function(t,e,n){if(t&&e){var i=t[LP(e)];return null!=i&&null!=n?i[DP(n)]:i}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;Sh.k(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;Sh.k(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=e-t,d=u/(1-(s+l)/o)-u;return{min:t-=d*(s/c),max:e+=d*(l/c)}}(r,o,e,c);r=u.min,o=u.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function NE(t,e){var n=e,i=EE(t,n),r=i.extent,o=n.get("splitNumber");t instanceof kE&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function RE(t,e){if(e=e||t.get("type"))switch(e){case"category":return new aE({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new yE({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Zj.getClass(e)||cE)}}function BE(t){var e,n,i=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):Sh.C(i)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(i):Sh.w(i)?(e=i,function(n,i){return null!=r&&(i=n.value-r),e(zE(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function zE(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function VE(t){var e=t.get("interval");return null==e?"auto":e}function FE(t){return"category"===t.type&&0===VE(t.getLabelModel())}function HE(t,e){var n={};return Sh.k(t.mapDimensionsAll(e),function(e){n[FL(t,e)]=!0}),Sh.F(n)}var GE=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return Sh.H(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Sh.n(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),WE=["x","y"];function UE(t){return"interval"===t.type||"time"===t.type}var qE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=WE,e}return xh(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(UE(t)&&UE(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,c=(o[1]-r[1])/s,u=r[0]-n[0]*l,d=r[1]-i[0]*c,h=this._transform=[l,0,0,c,u,d];this._invTransform=bp([],h)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new kp(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return Bh(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Bh(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new kp(i,r,o,a)},e}(GE),YE=Gm();function $E(t,e){var n=Sh.H(e,function(e){return t.scale.parse(e)});return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function XE(t){var e=t.getLabelModel().get("customValues");if(e){var n=BE(t),i=t.scale.getExtent(),r=$E(t,e),o=Sh.n(r,function(t){return t>=i[0]&&t<=i[1]});return{labels:Sh.H(o,function(e){var i={value:e};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:e}})}}return"category"===t.type?function(t){var e=t.getLabelModel(),n=KE(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=BE(t);return{labels:Sh.H(e,function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}(t)}function ZE(t,e){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent(),r=$E(t,n);return{ticks:Sh.n(r,function(t){return t>=i[0]&&t<=i[1]})}}return"category"===t.type?function(t,e){var n,i,r=JE(t,"ticks"),o=VE(e),a=QE(r,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(Sh.w(o))n=nN(t,o,!0);else if("auto"===o){var s=KE(t,t.getLabelModel());i=s.labelCategoryInterval,n=Sh.H(s.labels,function(t){return t.tickValue})}else n=eN(t,i=o,!0);return tN(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:Sh.H(t.scale.getTicks(),function(t){return t.value})}}function KE(t,e){var n,i,r=JE(t,"labels"),o=VE(e),a=QE(r,o);return a||(Sh.w(o)?n=nN(t,o):(i="auto"===o?function(t){var e=YE(t).autoInterval;return null!=e?e:YE(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=eN(t,i)),tN(r,o,{labels:n,labelCategoryInterval:i}))}function JE(t,e){return YE(t)[e]||(YE(t)[e]=[])}function QE(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function tN(t,e,n){return t.push({key:e,value:n}),n}function eN(t,e,n){var i=BE(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),c=o[0],u=r.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var d=FE(t),h=a.get("showMinLabel")||d,p=a.get("showMaxLabel")||d;h&&c!==o[0]&&g(o[0]);for(var f=c;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return p&&f-l!==o[1]&&g(o[1]),s}function nN(t,e,n){var i=t.scale,r=BE(t),o=[];return Sh.k(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}var iN=[0,1];function rN(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var oN=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return hm(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&rN(n=n.slice(),i.count()),sm(t,iN,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&rN(n=n.slice(),i.count());var r=sm(t,n,iN,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=ZE(this,e).ticks,i=Object(Sh.H)(n,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,i){var r=e.length;if(!t.onBand||n||!r)return;var o,a,s=t.getExtent();
70if(1===r)e[0].coord=s[0],o=e[1]={coord:s[1],tickValue:e[0].tickValue};else{var l=e[r-1].tickValue-e[0].tickValue,c=(e[r-1].coord-e[0].coord)/l;Object(Sh.k)(e,function(t){t.coord-=c/2});var u=t.scale.getExtent();a=1+u[1]-e[r-1].tickValue,o={coord:e[r-1].coord+c*a,tickValue:u[1]+1},e.push(o)}var d=s[0]>s[1];h(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift());i&&h(s[0],e[0].coord)&&e.unshift({coord:s[0]});h(s[1],o.coord)&&(i?o.coord=s[1]:e.pop());i&&h(o.coord,s[1])&&e.push({coord:s[1]});function h(t,e){return t=cm(t),e=cm(e),d?t>e:t<e}}(this,i,e.get("alignWithLabel"),t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return Object(Sh.H)(e,function(t){return Object(Sh.H)(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return XE(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=BE(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],c=t.dataToCoord(l+1)-t.dataToCoord(l),u=Math.abs(c*Math.cos(i)),d=Math.abs(c*Math.sin(i)),h=0,p=0;l<=o[1];l+=s){var f,g,m=Rg(n({value:l}),e.font,"center","top");f=1.3*m.width,g=1.3*m.height,h=Math.max(h,f,7),p=Math.max(p,g,7)}var v=h/u,y=p/d;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(v,y))),_=YE(t.model),x=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-b)<=1&&Math.abs(S-a)<=1&&w>b&&_.axisExtent0===x[0]&&_.axisExtent1===x[1]?b=w:(_.lastTickCount=a,_.lastAutoInterval=b,_.axisExtent0=x[0],_.axisExtent1=x[1]),b}(this)},t}(),aN=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return xh(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(oN);function sN(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,c=r.dim,u=i.getRect(),d=[u.x,u.x+u.width,u.y,u.y+u.height],h={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f="x"===c?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[h.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===c?f[h[l]]:d[0],"x"===c?f[h[l]]:d[3]],o.rotation=Math.PI/2*("x"===c?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[h[s]]-f[h.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Sh.O(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function lN(t){return"cartesian2d"===t.get("coordinateSystem")}function cN(t){var e={xAxisModel:null,yAxisModel:null};return Sh.k(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Ym).models[0];e[i]=o}),e}var uN=Math.log;function dN(t,e,n){var i=cE.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=EE(t,e),c=l.extent,u=l.fixMin,d=l.fixMax;if("log"===t.type){var h=uN(t.base);c=[uN(c[0])/h,uN(c[1])/h]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:d});var p=i.getExtent.call(t);u&&(c[0]=p[0]),d&&(c[1]=p[1]);var f=i.getInterval.call(t),g=c[0],m=c[1];if(u&&d)f=(m-g)/a;else if(u)for(m=c[0]+f*a;m<c[1]&&isFinite(m)&&isFinite(c[1]);)f=Qj(f),m=c[0]+f*a;else if(d)for(g=c[1]-f*a;g>c[0]&&isFinite(g)&&isFinite(c[0]);)f=Qj(f),g=c[1]-f*a;else{t.getTicks().length-1>a&&(f=Qj(f));var v=f*a;(g=cm((m=Math.ceil(c[1]/f)*f)-v))<0&&c[0]>=0?(g=0,m=cm(v)):m>0&&c[1]<=0&&(m=0,g=-cm(v))}var y=(r[0].value-o[0].value)/s,b=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*y,m+f*b),i.setInterval.call(t,f),(y||b)&&i.setNiceExtent.call(t,g+f,m-f)}
70function hN(t,e){return t.getCoordSysModel()===e}function pN(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)fN(o[l])&&(r=o[l]);else for(var c in o)if(o.hasOwnProperty(c)&&fN(o[c])&&!i[u(o[c])]){r=o[c];break}r&&(i[u(r)]=!0)}function u(t){return t.dim+"_"+t.index}}function fN(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}var gN=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=WE,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Object(Sh.F)(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;Kj(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(NE(l,s),Kj(l)&&(e=a))}r.length&&(e||NE((e=r.pop()).scale,e.model),Object(Sh.k)(r,function(t){dN(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};Object(Sh.k)(n.x,function(t){pN(n,"y",t,r)}),Object(Sh.k)(n.y,function(t){pN(n,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=nw(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(Sh.k)(a,function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)})}s(),r&&(Object(Sh.k)(a,function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();r=n instanceof aE?n.count():(i=n.getTicks()).length;var a,s,l,c,u,d,h,p,f=t.getLabelModel(),g=BE(t),m=1;r>40&&(m=Math.ceil(r/40));for(var v=0;v<r;v+=m){var y=g(i?i[v]:{value:o[0]+v},v),b=f.getTextRect(y),_=(s=b,l=f.get("rotate")||0,c=void 0,u=void 0,d=void 0,h=void 0,p=void 0,c=l*Math.PI/180,u=s.width,d=s.height,h=u*Math.abs(Math.cos(c))+Math.abs(d*Math.sin(c)),p=u*Math.abs(Math.sin(c))+Math.abs(d*Math.cos(c)),new kp(s.x,s.y,h,p));a?a.union(_):a=_}return a}}(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}}),s()),Object(Sh.k)(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(Sh.A)(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Ym).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",Ym).models[0],a=t.gridModel,s=this._coordsList;if(i)e=i.coordinateSystem,Object(Sh.r)(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);
70function l(e){return function(n,i){if(hN(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var c=new aN(e,RE(n),[0,0],n.get("type"),l),u="category"===c.type;c.onBand=u&&n.get("boundaryGap"),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=r,c.index=i,r._axesList.push(c),a[e][i]=c,s[e]++}}}this._axesMap=a,Object(Sh.k)(a.x,function(e,n){Object(Sh.k)(a.y,function(r,o){var a="x"+n+"y"+o,s=new qE(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})},t.prototype._updateScale=function(t,e){function n(t,e){Object(Sh.k)(HE(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}Object(Sh.k)(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(lN(t)){var i=cN(t),r=i.xAxisModel,o=i.yAxisModel;if(!hN(r,e)||!hN(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),c=a.getAxis("y");n(s,l),n(s,c)}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Object(Sh.k)(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);Object(Sh.r)(e,r)<0&&e.push(r),Object(Sh.r)(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){if(lN(t)){var e=cN(t),n=e.xAxisModel,i=e.yAxisModel;0;var r=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}}),i},t.dimensions=WE,t}(),mN=Math.PI,vN=function(){function t(t,e){this.group=new Qg,this.opt=e,this.axisModel=t,Object(Sh.i)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Qg({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!yN[t]},t.prototype.add=function(t){yN[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=mm(e-t);return vm(o)?(r=n>0?"top":"bottom",i="center"):vm(o-mN)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<mN?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),yN={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],c=s[0]>l[0];a&&(Bh(s,s,a),Bh(l,l,a));var u=Object(Sh.m)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new rC({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});RC(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var h=e.get(["axisLine","symbol"]);if(null!=h){var p=e.get(["axisLine","symbolSize"]);Object(Sh.C)(h)&&(h=[h,h]),(Object(Sh.C)(p)||Object(Sh.z)(p))&&(p=[p,p]);var f=vT(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],m=p[1];Object(Sh.k)([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(e,i){if("none"!==h[i]&&null!=h[i]){var r=gT(h[i],-g/2,-m/2,g,m,u.stroke,!0),o=e.r+e.offset,a=c?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||r.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),c=wN(r.getTicksCoords(),e.transform,l,Object(Sh.i)(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;u<c.length;u++)t.add(c[u]);return c}(n,i,e,t),o=function(t,e,n,i){var r=n.axis;if(!Object(Sh.O)(i.axisLabelShow,n.get(["axisLabel","show"]))||r.scale.isBlank())return;var o=n.getModel("axisLabel"),a=o.get("margin"),s=r.getViewLabels(),l=(Object(Sh.O)(i.labelRotate,o.get("rotate"))||0)*mN/180,c=vN.innerTextLayout(i.rotation,l,i.labelDirection),u=n.getCategories&&n.getCategories(!0),d=[],h=vN.isLabelSilent(n),p=n.get("triggerEvent");return Object(Sh.k)(s,function(l,f){var g="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(l.tickValue):l.tickValue,m=l.formattedLabel,v=l.rawLabel,y=o;if(u&&u[g]){var b=u[g];Object(Sh.A)(b)&&b.textStyle&&(y=new nx(b.textStyle,o,n.ecModel))}var _=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=r.dataToCoord(g),w=y.getShallow("align",!0)||c.textAlign,S=Object(Sh.P)(y.getShallow("alignMinLabel",!0),w),O=Object(Sh.P)(y.getShallow("alignMaxLabel",!0),w),M=y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||c.textVerticalAlign,C=Object(Sh.P)(y.getShallow("verticalAlignMinLabel",!0),M),I=Object(Sh.P)(y.getShallow("verticalAlignMaxLabel",!0),M),T=new gb({x:x,y:i.labelOffset+i.labelDirection*a,rotation:c.rotation,silent:h,z2:10+(l.level||0),style:P_(y,{text:m,align:0===f?S:f===s.length-1?O:w,verticalAlign:0===f?C:f===s.length-1?I:M,fill:Object(Sh.w)(_)?_("category"===r.type?v:"value"===r.type?g+"":g,f):_})});if(T.anid="label_"+g,KC({el:T,componentModel:n,itemName:m,formatterParamsExtra:{isTruncated:function(){return T.isTruncated},value:v,tickIndex:f}}),p){var k=vN.makeAxisEventDataBase(n);k.targetType="axisLabel",k.value=v,k.tickIndex=f,"category"===r.type&&(k.dataIndex=g),mb(T).eventData=k}e.add(T),T.updateTransform(),d.push(T),t.add(T),T.decomposeTransform()}),d}(n,i,e,t);(function(t,e,n){if(FE(t.axis))return;var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);n=n||[];var o=(e=e||[])[0],a=e[1],s=e[e.length-1],l=e[e.length-2],c=n[0],u=n[1],d=n[n.length-1],h=n[n.length-2];!1===i?(bN(o),bN(c)):_N(o,a)&&(i?(bN(a),bN(u)):(bN(o),bN(c)));
70!1===r?(bN(s),bN(d)):_N(l,s)&&(r?(bN(l),bN(h)):(bN(s),bN(d)))}(e,o,r),function(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(!o.get("show")||r.scale.isBlank())return;var a=r.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=i*o.get("length"),c=Object(Sh.i)(s.getLineStyle(),Object(Sh.i)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<a.length;u++)for(var d=wN(a[u],e.transform,l,c,"minorticks_"+u),h=0;h<d.length;h++)t.add(d[h])}(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"]))&&kA(CA(Object(Sh.H)(o,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,n,i){var r=Object(Sh.O)(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),l=t.nameDirection,c=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,d=e.axis.getExtent(),h=d[0]>d[1]?-1:1,p=["start"===s?d[0]-h*u:"end"===s?d[1]+h*u:(d[0]+d[1])/2,xN(s)?t.labelOffset+l*u:0],f=e.get("nameRotate");null!=f&&(f=f*mN/180),xN(s)?o=vN.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,i){var r,o,a=mm(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;vm(a-mN/2)?(o=l?"bottom":"top",r="center"):vm(a-1.5*mN)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*mN&&a>mN/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,f||0,d),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=c.getFont(),m=e.get("nameTruncate",!0)||{},v=m.ellipsis,y=Object(Sh.O)(t.nameTruncateMaxWidth,m.maxWidth,a),b=new gb({x:p[0],y:p[1],rotation:o.rotation,silent:vN.isLabelSilent(e),style:P_(c,{text:r,font:g,overflow:"truncate",width:y,ellipsis:v,fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(KC({el:b,componentModel:e,itemName:r}),b.__fullText=r,b.anid="name",e.get("triggerEvent")){var _=vN.makeAxisEventDataBase(e);_.targetType="axisName",_.name=r,mb(b).eventData=_}i.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function bN(t){t&&(t.ignore=!0)}function _N(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=pp([]);return vp(r,r,-t.rotation),n.applyTransform(gp([],r,t.getLocalTransform())),i.applyTransform(gp([],r,e.getLocalTransform())),n.intersect(i)}}function xN(t){return"middle"===t||"center"===t}function wN(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var c=t[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=n,e&&(Bh(a,a,e),Bh(s,s,e));var u=new rC({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});RC(u.shape,u.style.lineWidth),u.anid=r+"_"+t[l].tickValue,o.push(u)}return o}var SN=vN;function ON(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];Object(Sh.k)(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=TN(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var c=n.model,u=c.getModel("tooltip",i);if(Object(Sh.k)(n.getAxes(),Object(Sh.h)(f,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var d="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),p=n.getTooltipAxes(u.get(["axisPointer","axis"]));(d||h)&&Object(Sh.k)(p.baseAxes,Object(Sh.h)(f,!h||"cross",d)),h&&Object(Sh.k)(p.otherAxes,Object(Sh.h)(f,"cross",!1))}}function f(i,s,c){var d=c.model.getModel("axisPointer",r),h=d.get("show");if(h&&("auto"!==h||i||IN(d))){null==s&&(s=d.get("triggerTooltip"));var p=(d=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};Object(Sh.k)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=Object(Sh.d)(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var c=a.get(["label","show"]);if(l.show=null==c||c,!o){var u=s.lineStyle=a.get("crossStyle");u&&Object(Sh.i)(l,u.textStyle)}}return t.model.getModel("axisPointer",new nx(s,n,i))}(c,u,r,e,i,s):d).get("snap"),f=d.get("triggerEmphasis"),g=TN(c.model),m=s||p||"category"===c.type,v=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:f,involveSeries:m,snap:p,useHandle:IN(d),seriesModels:[],linkGroup:null};l[g]=v,t.seriesInvolved=t.seriesInvolved||m;var y=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(MN(o[i+"AxisId"],n.id)||MN(o[i+"AxisIndex"],n.componentIndex)||MN(o[i+"AxisName"],n.name))return r}}(o,c);if(null!=y){var b=a[y]||(a[y]={axesInfo:{}});b.axesInfo[g]=v,b.mapper=o[y].mapper,v.linkGroup=b}}}})}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&Object(Sh.k)(t.coordSysAxesInfo[TN(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}(n,t),n}function MN(t,e){return"all"===t||Object(Sh.t)(t)&&Object(Sh.r)(t,e)>=0||t===e}function CN(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[TN(t)]}function IN(t){return!!t.get(["handle","show"])}
vendor: 5,131 bytes, line 70
70function TN(t){return t.type+"||"+t.id}var kN={},AN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=CN(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=IN(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(t){var e=CN(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){kN[t]=e},e.getAxisPointerClass=function(t){return t&&kN[t]},e.type="axis",e}(eM),DN=Gm();function LN(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),c=r.getTicksCoords({tickModel:o,clamp:!0});if(c.length){var u=s.length,d=DN(t).splitAreaColors,h=Sh.f(),p=0;if(d)for(var f=0;f<c.length;f++){var g=d.get(c[f].tickValue);if(null!=g){p=(g+(u-1)*f)%u;break}}var m=r.toGlobalCoord(c[0].coord),v=a.getAreaStyle();s=Sh.t(s)?s:[s];for(f=1;f<c.length;f++){var y=r.toGlobalCoord(c[f].coord),b=void 0,_=void 0,x=void 0,w=void 0;r.isHorizontal()?(b=m,_=l.y,x=y-b,w=l.height,m=b+x):(b=l.x,_=m,x=l.width,m=_+(w=y-_));var S=c[f-1].tickValue;null!=S&&h.set(S,p),e.add(new Qy({anid:null!=S?"area_"+S:null,shape:{x:b,y:_,width:x,height:w},style:Sh.i({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%u}DN(t).splitAreaColors=h}}}function PN(t){DN(t).splitAreaColors=null}var jN=["axisLine","axisTickLabel","axisName"],EN=["splitArea","splitLine","minorSplitLine"],NN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return xh(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Qg,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=sN(a,e),l=new SN(e,Sh.m({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Kj(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));Sh.k(jN,l.add,l),this._axisGroup.add(l.getGroup()),Sh.k(EN,function(t){e.get([t,"show"])&&RN[t](this,this._axisGroup,e,a)},this),r&&"changeAxisOrder"===r.type&&r.isInitSort||WC(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){PN(this)},e.type="cartesianAxis",e}(AN),RN={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color"),l=!1!==o.get("showMinLine"),c=!1!==o.get("showMaxLine");s=Sh.t(s)?s:[s];for(var u=i.coordinateSystem.getRect(),d=r.isHorizontal(),h=0,p=r.getTicksCoords({tickModel:o}),f=[],g=[],m=a.getLineStyle(),v=0;v<p.length;v++){var y=r.toGlobalCoord(p[v].coord);if((0!==v||l)&&(v!==p.length-1||c)){var b=p[v].tickValue;d?(f[0]=y,f[1]=u.y,g[0]=y,g[1]=u.y+u.height):(f[0]=u.x,f[1]=y,g[0]=u.x+u.width,g[1]=y);var _=h++%s.length,x=new rC({anid:null!=b?"line_"+b:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},style:Sh.i({stroke:s[_]},m),silent:!0});RC(x.shape,m.lineWidth),e.add(x)}}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var c=[],u=[],d=o.getLineStyle(),h=0;h<l.length;h++)for(var p=0;p<l[h].length;p++){var f=r.toGlobalCoord(l[h][p].coord);s?(c[0]=f,c[1]=a.y,u[0]=f,u[1]=a.y+a.height):(c[0]=a.x,c[1]=f,u[0]=a.x+a.width,u[1]=f);var g=new rC({anid:"minor_line_"+l[h][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:u[0],y2:u[1]},style:d,silent:!0});RC(g.shape,d.lineWidth),e.add(g)}},splitArea:function(t,e,n,i){LN(t,e,n,i)}},BN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.type="xAxis",e}(NN),zN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=BN.type,e}return xh(e,t),e.type="yAxis",e}(NN),VN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return xh(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Qy({shape:t.coordinateSystem.getRect(),style:Object(Sh.i)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}
70))},e.type="grid",e}(eM),FN={offset:0};function HN(t){t.registerComponentView(VN),t.registerComponentModel(Nj),t.registerCoordinateSystem("cartesian2d",gN),Yj(t,"x",Bj,FN),Yj(t,"y",Bj,FN),t.registerComponentView(BN),t.registerComponentView(zN),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function GN(t){t.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();Sh.k(r,function(t,o){e.each(e.mapDimension(r[o].dim),function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,o);n[e][o]=WN(r)?r:UN(i)})}),e.each(function(t){var r=Sh.o(n[t],function(t){return WN(t)})||UN(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])})}})}function WN(t){return!isNaN(t[0])&&!isNaN(t[1])}function UN(t){return[t.cx,t.cy]}function qN(t){var e=t.polar;if(e){Sh.t(e)||(e=[e]);var n=[];Sh.k(e,function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],Sh.t(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)}),t.polar=n}Sh.k(t.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}var YN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,o=this.group,a=t.getData(),s=this._data;function l(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=mT(t.getItemVisual(e,"symbolSize")),r=gT(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function c(e,n,i,o,a,s){i.removeAll();for(var c=0;c<n.length-1;c++){var u=l(o,a);u&&(u.__dimIdx=c,e[c]?(u.setPosition(e[c]),r[s?"initProps":"updateProps"](u,{x:n[c][0],y:n[c][1]},t,a)):u.setPosition(n[c]),i.add(u))}}function u(t){return Sh.H(t,function(t){return[i.cx,i.cy]})}a.diff(s).add(function(e){var n=a.getItemLayout(e);if(n){var i=new KM,r=new tC,o={shape:{points:n}};i.shape.points=u(n),r.shape.points=u(n),w_(i,o,t,e),w_(r,o,t,e);var s=new Qg,l=new Qg;s.add(r),s.add(i),s.add(l),c(r.shape.points,n,l,a,e,!0),a.setItemGraphicEl(e,s)}}).update(function(e,n){var i=s.getItemGraphicEl(n),r=i.childAt(0),o=i.childAt(1),l=i.childAt(2),u={shape:{points:a.getItemLayout(e)}};u.shape.points&&(c(r.shape.points,u.shape.points,l,a,e,!1),I_(o),I_(r),x_(r,u,t),x_(o,u,t),a.setItemGraphicEl(e,i))}).remove(function(t){o.remove(s.getItemGraphicEl(t))}).execute(),a.eachItemGraphicEl(function(t,e){var n=a.getItemModel(e),i=t.childAt(0),r=t.childAt(1),s=t.childAt(2),l=a.getItemVisual(e,"style"),c=l.fill;o.add(t),i.useStyle(Sh.i(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),p_(i,n,"lineStyle"),p_(r,n,"areaStyle");var u=n.getModel("areaStyle"),d=u.isEmpty()&&u.parentModel.isEmpty();r.ignore=d,Sh.k(["emphasis","select","blur"],function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();r.ensureState(t).ignore=i&&d}),r.useStyle(Sh.i(u.getAreaStyle(),{fill:c,opacity:.7,decal:l.decal}));var h=n.getModel("emphasis"),p=h.getModel("itemStyle").getItemStyle();s.eachChild(function(t){if(t instanceof Uy){var i=t.style;t.useStyle(Sh.m({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else t.useStyle(l),t.setColor(c),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=Sh.d(p);var r=a.getStore().get(a.getDimensionIndex(t.__dimIdx),e);(null==r||isNaN(r))&&(r=""),D_(t,L_(n),{labelFetcher:a.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:r,inheritColor:c,defaultOpacity:l.opacity})}),c_(t,h.get("focus"),h.get("blurScope"),h.get("disabled"))}),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(lI),$N=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return xh(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Tj(Sh.c(this.getData,this),Sh.c(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return Ij(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(t),a=""===o?this.name:o,s=BO(this,t);return AO("section",{header:a,sortBlocks:!0,blocks:Sh.H(r,function(e){var n=i.get(i.mapDimension(e.dim),t);return AO("nameValue",{markerType:"subItem",markerColor:s,name:e.name,value:n,sortParam
70:n})})})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(Sh.H(n.dimensions,function(t){return e.mapDimension(t)}),t),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(QO),XN=Hj.value;function ZN(t,e){return Sh.i({show:e},t)}var KN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),u=this.get("triggerEvent"),d=Sh.H(this.get("indicator")||[],function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var h=a;null!=d.color&&(h=Sh.i({color:d.color},a));var p=Sh.I(Sh.d(d),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:d.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:h,triggerEvent:u},!1);if(Sh.C(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else Sh.w(l)&&(p.name=l(p.name,p));var g=new nx(p,null,this.ecModel);return Sh.K(g,Rj.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Sh.I({lineStyle:{color:"#bbb"}},XN.axisLine),axisLabel:ZN(XN.axisLabel,!1),axisTick:ZN(XN.axisTick,!1),splitLine:ZN(XN.splitLine,!0),splitArea:ZN(XN.splitArea,!0),indicator:[]},e}(uw),JN=["axisLine","axisTickLabel","axisName"],QN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=Sh.H(n,function(t){var n=t.model.get("showName")?t.name:"";return new SN(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});Sh.k(i,function(t){Sh.k(JN,t.add,t),this.group.add(t.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),c=o.get("show"),u=a.get("color"),d=s.get("color"),h=Sh.t(u)?u:[u],p=Sh.t(d)?d:[d],f=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=e.cx,y=e.cy,b=0;b<m.length;b++){if(l)f[I(f,h,b)].push(new MM({shape:{cx:v,cy:y,r:m[b].coord}}));if(c&&b<m.length-1)g[I(g,p,b)].push(new YM({shape:{cx:v,cy:y,r0:m[b].coord,r:m[b+1].coord}}))}else{var _,x=Sh.H(n,function(t,n){var i=t.getTicksCoords();return _=null==_?i.length-1:Math.min(i.length-1,_),Sh.H(i,function(t){return e.coordToPoint(t.coord,n)})}),w=[];for(b=0;b<=_;b++){for(var S=[],O=0;O<n.length;O++)S.push(x[O][b]);if(S[0]&&S.push(S[0].slice()),l)f[I(f,h,b)].push(new tC({shape:{points:S}}));if(c&&w)g[I(g,p,b-1)].push(new KM({shape:{points:S.concat(w)}}));w=S.slice().reverse()}}var M=a.getLineStyle(),C=s.getAreaStyle();Sh.k(g,function(t,e){this.group.add(EC(t,{style:Sh.i({stroke:"none",fill:p[e%p.length]},C),silent:!0}))},this),Sh.k(f,function(t,e){this.group.add(EC(t,{style:Sh.i({fill:"none",stroke:h[e%h.length]},M),silent:!0}))},this)}function I(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(eM),tR=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return xh(e,t),e}(oN),eR=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Object(Sh.H)(t.getIndicatorModels(),function(t,e){var n="indicator_"+e,i=new tR(n,new cE);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i},this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(o-c.angle);u<a&&(r=c,s=l,a=u)}
70return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r)/2;this.cx=lm(n[0],i),this.cy=lm(n[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");(Object(Sh.C)(a)||Object(Sh.z)(a))&&(a=[0,a]),this.r0=lm(a[0],o),this.r=lm(a[1],o),Object(Sh.k)(this._indicatorAxes,function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n},this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;Object(Sh.k)(n,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(e,r){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var o=e.getData();Object(Sh.k)(n,function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))})}},this);var r=i.get("splitNumber"),o=new cE;o.setExtent(0,r),o.setInterval(1),Object(Sh.k)(n,function(t,e){dN(t.scale,t.model,o)})},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},t.dimensions=[],t}();function nR(t){t.registerCoordinateSystem("radar",eR),t.registerComponentModel(KN),t.registerComponentView(QN),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(t){e.setItemVisual(t,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var iR="\0_ec_interaction_mutex";function rR(t,e){return!!oR(t)[e]}function oR(t){return t[iR]||(t[iR]={})}function aR(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(lp(i.event),sR(t,e,n,i,r))}function sR(t,e,n,i,r){r.isAvailableBehavior=Object(Sh.c)(lR,null,n,i),t.trigger(e,r)}function lR(t,e,n){var i=n[t];return!t||i&&(!Object(Sh.C)(i)||e.event[i+"Key"])}Yk({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Sh.L);var cR=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=Object(Sh.c)(n._mousedownHandler,n),r=Object(Sh.c)(n._mousemoveHandler,n),o=Object(Sh.c)(n._mouseupHandler,n),a=Object(Sh.c)(n._mousewheelHandler,n),s=Object(Sh.c)(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Object(Sh.i)(Object(Sh.d)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return xh(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!cp(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&lR("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!rR(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&lp(t.event),sR(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){cp(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=lR("zoomOnMouseWheel",t,this._opt),n=lR("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;aR(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);aR(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){rR(this._zr,"globalPan")||aR(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(Gh);function uR(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function dR(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var c=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(c-1),r.y-=(i-r.y)*(c-1),r.scaleX*=c,r.scaleY*=c,r.dirty()}var hR,pR={axisPointer:1,tooltip:1,brush:1};function fR(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!pR.hasOwnProperty(i.mainType)&&r&&r.model!==n}function gR(t){Object(Sh.C)(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);
vendor: 4,354 bytes, line 70
70"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var mR={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},vR=Object(Sh.F)(mR),yR={"alignment-baseline":"textBaseline","stop-color":"stopColor"},bR=Object(Sh.F)(yR),_R=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=gR(t);this._defsUsePending=[];var i=new Qg;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),CR(n,i,null,!0,!1);for(var l,c,u=n.firstChild;u;)this._parseNode(u,i,r,null,!1,!1),u=u.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var d=AR(o);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=a&&null!=s&&(c=ER(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var h=i;(i=new Qg).add(h),h.scaleX=h.scaleY=c.scale,h.x=c.x,h.y=c.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new Qy({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:c,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var c=hR[s];if(c&&Object(Sh.q)(hR,s)){a=c.call(this,t,e);var u=t.getAttribute("name");if(u){var d={name:u,namedFrom:null,svgNodeTagLower:s,el:a};n.push(d),"g"===s&&(l=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var h=xR[s];if(h&&Object(Sh.q)(xR,s)){var p=h.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new Fy({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});OR(e,n),CR(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(hR={g:function(t,e){var n=new Qg;return OR(e,n),CR(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Qy;return OR(e,n),CR(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new MM;return OR(e,n),CR(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new rC;return OR(e,n),CR(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new TM;return OR(e,n),CR(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n}
70,polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=MR(i));var r=new KM({shape:{points:n||[]},silent:!0});return OR(e,r),CR(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=MR(i));var r=new tC({shape:{points:n||[]},silent:!0});return OR(e,r),CR(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new Uy;return OR(e,n),CR(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Qg;return OR(e,a),CR(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new Qg;return OR(e,a),CR(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=xM(t.getAttribute("d")||"");return OR(e,n),CR(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),xR={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new gC(e,n,i,r);return wR(t,o),SR(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new mC(e,n,i);return wR(t,r),SR(t,r),r}};function wR(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function SR(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};jR(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function OR(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(Sh.i)(e.__inheritedStyle,t.__inheritedStyle))}function MR(t){for(var e=AR(t),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}function CR(t,e,n,i,r){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(DR,function(t,e,n){return i.push(e,n),""});for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=AR(a);switch(r=r||[1,0,0,1,0,0],s){case"translate":mp(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":yp(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":vp(r,r,-parseFloat(l[0])*LR,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var c=Math.tan(parseFloat(l[0])*LR);gp(r,[1,0,c,1,0,0],r);break;case"skewY":var u=Math.tan(parseFloat(l[0])*LR);gp(r,[1,u,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),jR(t,a,s),i||function(t,e,n){for(var i=0;i<vR.length;i++){var r=vR[i],o=t.getAttribute(r);null!=o&&(e[mR[r]]=o)}for(var i=0;i<bR.length;i++){var r=bR[i],o=t.getAttribute(r);null!=o&&(n[yR[r]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=TR(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=TR(o,"stroke",a.stroke,n)),Object(Sh.k)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))}),Object(Sh.k)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(t){null!=a[t]&&(o.style[t]=a[t])}),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=Object(Sh.H)(AR(a.lineDash),function(t){return parseFloat(t)}
70)),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var IR=/^url\(\s*#(.*?)\)/;function TR(t,e,n,i){var r=n&&n.match(IR);if(!r)return"none"===n&&(n=null),n;var o=Object(Sh.T)(r[1]);i.push([t,e,o])}var kR=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function AR(t){return t.match(kR)||[]}var DR=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,LR=Math.PI/180;var PR=/([^\s:;]+)\s*:\s*([^:;]+)/g;function jR(t,e,n){var i,r=t.getAttribute("style");if(r)for(PR.lastIndex=0;null!=(i=PR.exec(r));){var o=i[1],a=Object(Sh.q)(mR,o)?mR[o]:null;a&&(e[a]=i[2]);var s=Object(Sh.q)(yR,o)?yR[o]:null;s&&(n[s]=i[2])}}function ER(t,e){var n=e.width/t.width,i=e.height/t.height,r=Math.min(n,i);return{scale:r,x:-(t.x+t.width/2)*r+(e.x+e.width/2),y:-(t.y+t.height/2)*r+(e.y+e.height/2)}}var NR=1e-8;function RR(t,e){return Math.abs(t-e)<NR}function BR(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=My(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return RR(r[0],s[0])&&RR(r[1],s[1])||(i+=My(r[0],r[1],s[0],s[1],e,n)),0!==i}var zR=[];function VR(t,e){for(var n=0;n<t.length;n++)Bh(t[n],t[n],e)}function FR(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(zh(e,e,o),Vh(n,n,o))}}var HR=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),GR=function(){return function(t,e){this.type="polygon",this.exterior=t,this.interiors=e}}(),WR=function(){return function(t){this.type="linestring",this.points=t}}(),UR=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return xh(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,a=o&&o.length;a>n&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s<r;s++){var l=t[s][0],c=t[s][1],u=o*c-l*a;e+=u,n+=(o+l)*u,i+=(a+c)*u,o=l,a=c}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return Object(Sh.k)(r,function(e){"polygon"===e.type?FR(e.exterior,n,i,t):Object(Sh.k)(e.points,function(e){FR(e,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new kp(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(BR(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(BR(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new kp(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,c=0;c<l.length;c++){var u=l[c];"polygon"===u.type?(VR(u.exterior,s),Object(Sh.k)(u.interiors,function(t){VR(t,s)})):Object(Sh.k)(u.points,function(t){VR(t,s)})}(r=this._rect).copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(HR),qR=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return xh(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=pp(zR),r=t;r&&!r.isGeoSVGGraphicRoot;)gp(i,r.getLocalTransform(),i),r=r.parent;return bp(i,i),Bh(n,n,i),n},e}(HR),YR=Object(Sh.f)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),$R=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Object(Sh.f)(),this._freedGraphics=[],this._mapName=t,this._parsedXML=gR(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],n=Object(Sh.f)();return Object(Sh.k)(t,function(t){if(null==t.namedFrom){var i=new qR(t.name,t.el);e.push(i),n.set(t.name,i)}}),{regions:e,regionsMap:n}}(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}
70return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,i,r;try{n=(e=t&&(i=t,r={ignoreViewBox:!0,ignoreRootClip:!0},(new _R).parse(i,r))||{}).root,Object(Sh.b)(null!=n)}catch(t){throw new Error("Invalid svg format\n"+t.message)}var o=new Qg;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=e.width,s=e.height,l=e.viewBoxRect,c=this._boundingRect;if(!c){var u=void 0,d=void 0,h=void 0,p=void 0;if(null!=a?(u=0,h=a):l&&(u=l.x,h=l.width),null!=s?(d=0,p=s):l&&(d=l.y,p=l.height),null==u||null==d){var f=n.getBoundingRect();null==u&&(u=f.x,h=f.width),null==d&&(d=f.y,p=f.height)}c=this._boundingRect=new kp(u,d,h,p)}if(l){var g=ER(l,c);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new Qy({shape:c.plain()}));var m=[];return Object(Sh.k)(e.named,function(t){var e;null!=YR.get(t.svgNodeTagLower)&&(m.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1}))}),{root:o,boundingRect:c,named:m}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function XR(t,e,n){for(var i=0;i<t.length;i++)t[i]=ZR(t[i],e[i],n)}function ZR(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function KR(t,e){return t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var i=e.features;return Sh.k(i,function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=ZR(r,i,n);break;case"Polygon":case"MultiLineString":XR(r,i,n);break;case"MultiPolygon":Sh.k(r,function(t,e){return XR(t,i[e],n)})}}),e.UTF8Encoding=!1,e}(t),Sh.H(Sh.n(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new GR(o[0],o.slice(1)));break;case"MultiPolygon":Sh.k(i.coordinates,function(t){t[0]&&r.push(new GR(t[0],t.slice(1)))});break;case"LineString":r.push(new WR([i.coordinates]));break;case"MultiLineString":r.push(new WR(i.coordinates))}var a=new UR(n[e||"name"],r,n.cp);return a.properties=n,a})}for(var JR=[126,25],QR="åæµ·è¯¸å²",tB=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],eB=0;eB<tB.length;eB++)for(var nB=0;nB<tB[eB].length;nB++)tB[eB][nB][0]/=10.5,tB[eB][nB][1]/=-14,tB[eB][nB][0]+=JR[0],tB[eB][nB][1]+=JR[1];var iB={"åæµ·è¯¸å²":[32,80],"广ä¸":[0,-10],"馿¸¯":[10,5],"æ¾³é¨":[-10,10],"天津":[5,5]};var rB=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var oB=function(){function t(t,e,n){var i;this.type="geoJSON",this._parsedMap=Object(Sh.f)(),this._mapName=t,this._specialAreas=n,this._geoJSON=(i=e,Object(Sh.C)(i)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i)}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:aB(i)})}var r=Object(Sh.f)(),o=[];return Object(Sh.k)(n.regions,function(e){var n=e.name;
70t&&Object(Sh.q)(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),r.set(n,e)}),{regions:o,boundingRect:n.boundingRect||new kp(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?KR(i,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===QR)return;e.push(new UR(QR,Sh.H(tB,function(t){return{type:"polygon",exterior:t}}),JR))}}(n,e),Object(Sh.k)(e,function(t){var e=t.name;!function(t,e){if("china"===t){var n=iB[e.name];if(n){var i=e.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,e.setCenter(i)}}}(n,t),function(t,e){"china"===t&&"å°æ¹¾"===e.name&&e.geometries.push({type:"polygon",exterior:rB[0]})}(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)},this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function aB(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}var sB=Object(Sh.f)(),lB={registerMap:function(t,e,n){if(e.svg){var i=new $R(t,e.svg);sB.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e;i=new oB(t,r,n);sB.set(t,i)}},getGeoResource:function(t){return sB.get(t)},getMapForUser:function(t){var e=sB.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var i=sB.get(t);if(i)return i.load(e,n)}},cB=["rect","circle","line","ellipse","polygon","polyline","path"],uB=Sh.f(cB),dB=Sh.f(cB.c
70oncat(["g"])),hB=Sh.f(cB.concat(["g"])),pB=Gm();function fB(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function gB(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}function mB(t,e,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=fB(r),c=fB(o),u=fB(s),d=fB(a),h=t.data;if(h){var p=h.getItemVisual(n,"style"),f=h.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=qT(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=c,e.ensureState("select").style=u,e.ensureState("blur").style=d,qb(e)}function vB(t,e,n,i,r,o,a){var s=t.data,l=t.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),o)),u=s&&s.getItemLayout(o);if(l||c||u&&u.showLabel){var d=l?n:o,h=void 0;(!s||o>=0)&&(h=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;D_(e,L_(i),{labelFetcher:h,labelDataIndex:d,defaultText:n},p);var f=e.getTextContent();if(f&&(pB(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function yB(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):mb(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function bB(t,e,n,i,r){t.data||KC({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function _B(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return c_(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var i=mb(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}function xB(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),Sh.k(t,function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}var wB=function(){function t(t){var e=new Qg;this.uid=rx("ec_map_draw"),this._controller=new cR(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Qg),e.add(this._svgGroup=new Qg)}return t.prototype.draw=function(t,e,n,i,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(e){a||e.getHostGeoModel()!==t||(a=e.getData())});var s=t.coordinateSystem,l=this._regionsGroup,c=this.group,u=s.getTransformInfo(),d=u.raw,h=u.roam;!l.childAt(0)||r?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):x_(c,h,t);var p=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Sh.f(),n=Sh.f(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function c(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function u(t){for(var e=[],n=!l&&s&&s.project,i=0;i<t.length;++i){var r=c(t[i],n);r&&e.push(r)}return e}function d(t){return{shape:{points:u(t)}}}i.removeAll(),Sh.k(t.geo.regions,function(r){var u=r.name,h=e.get(u),p=n.get(u)||{},f=p.dataIdx,g=p.regionModel;if(!h){h=e.set(u,new Qg),i.add(h),f=a?a.indexOfName(u):null;var m=(g=t.isGeo?o.getRegionModel(u):a?a.getItemModel(f):null).get("silent",!0);null!=m&&(h.silent=m),n.set(u,{dataIdx:f,regionModel:g})}var v=[],y=[];Sh.k(r.geometries,function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=xB(e,l)),Sh.k(e,function(t){v.push(new KM(d(t)))})}else{var n=t.points;l&&(n=xB(n,l,!0)),Sh.k(n,function(t){y.push(new tC(d(t)))})}});var b=c(r.getCenter(),s&&s.project);function _(e,n){if(e.length){var i=new pC({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});h.add(i),mB(t,i,f,g),vB(t,i,u,g,o,f,b),n&&(gB(i),Sh.k(i.states,gB))}}_(v),_(y,!0)}),e.each(function(e,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;
70yB(t,e,i,s,o,a),bB(t,e,i,s,o),_B(t,e,i,s,o)},this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=Sh.f(),r=!1;Sh.k(this._svgGraphicRecord.named,function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,c=a?a.indexOfName(n):null,u=o.getRegionModel(n);null!=uB.get(s)&&l instanceof Rv&&mB(t,l,c,u),l instanceof Rv&&(l.culling=!0);var d=u.get("silent",!0);(null!=d&&(l.silent=d),l.z2EmphasisLift=0,e.namedFrom)||(null!=hB.get(s)&&vB(t,l,n,u,o,c,null),yB(t,l,n,u,o,c),bB(t,l,n,u,o),null!=dB.get(s)&&("self"===_B(t,l,n,u,o)&&(r=!0),(i.get(n)||i.set(n,[])).push(l)))},this),this._enableBlurEntireSVG(r,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(t){if(!t.isGroup){qb(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}})}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(t);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=lB.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=lB.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}r.off("pan").on("pan",function(t){this._mouseDownFlag=!1,uR(o,t.dx,t.dy),n.dispatchAction(Sh.m(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))},this),r.off("zoom").on("zoom",function(t){this._mouseDownFlag=!1,dR(o,t.scale,t.originX,t.originY),n.dispatchAction(Sh.m(s(),{totalZoom:o.zoom,zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))},this),r.setPointerChecker(function(e,r,o){return i.containPoint([r,o])&&!fR(e,n,t)})},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=pB(e).ignore)})},t.prototype._updateMapSelectHandler=function(t,e,n,i){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){r._mouseDownFlag=!0}),e.on("click",function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)}))},t}(),SB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id)(o=this._mapDraw)&&r.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new wB(n);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension("value"),function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new MM({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:Ib+1)});if(!s){var c=t.mainSeries.getData(),u=i.getName(n),d=c.indexOfName(u),h=i.getItemModel(n),p=h.getModel("label"),f=c.getItemGraphicEl(d);D_(l,L_(h),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(d,n)}},defaultText:u}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){Wb(l,t)}}r.add(l)}}})},e.type="map",e}(lI),OB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return xh(e,t),e.prototype.getInitialData=function(t){for(var e=Ij(this,{coordDimensions:["value"],encodeDefaulter:Sh.h(Cw,this)}),n=Sh.f(),i=[],r=0,o=e.count();r<o;r++){var a=e.getName(r);n.set(a,r)}var s=lB.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return Sh.k(s.regions,function(t){var r,o=t.name,a=n.get(o),s=t.properties&&t.properties.echartsStyle;null==a?(r={name:o},i.push(r)):r=e.getRawDataItem(a),s&&Sh.I(r,s)}),e.appendData(i),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),r=this.getRawValue(t),o=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var c=a[l].originalData.indexOfName(o),u=i.mapDimension("value");isNaN(a[l].originalData.get(u,c))||s.push(a[l].name)}return AO("section",{header:s.join(", "),noHeader:!s.length,blocks:[AO("nameValue",{name:o,value:r})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=gT(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(QO);function MB(t){var e={};t.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),Sh.k(e,function(t,e){for(var n,i,r,o=(n=Sh.H(t,function(t){return t.getData()}),i=t[0].get("mapValueCalculation"),r={},Sh.k(n,function(t){t.each(t.mapDimension("value"),function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)})}),n[0].map(n[0].mapDimension("value"),function(t,e){for(var o,a="ec-"+n[0].getName(e),s=0,l=1/0,c=-1/0,u=r[a].length,d=0;d<u;d++)l=Math.min(l,r[a][d]),c=Math.max(c,r[a][d]),s+=r[a][d];
70return o="min"===i?l:"max"===i?c:"average"===i?s/u:s,0===u?NaN:o})),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(o.cloneShallow()),t[a].mainSeries=t[0]})}function CB(t){var e={};t.eachSeriesByType("map",function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var r={};Sh.k(n.seriesGroup,function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),function(t,e){var o=i.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(e,{point:l,offset:s})}})});var o=n.getData();o.each(function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!r[e],o.setItemLayout(t,n)}),e[i]=!0}})}var IB=Bh;function TB(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var kB=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Dg,n._rawTransformable=new Dg,n.name=e,n}return xh(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new kp(t,e,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new kp(t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new kp(t,e,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[lm(t[0],e.getWidth()),lm(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=Bh([],i,t),n=Bh([],n,t),e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=r,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),fp(this.transform||(this.transform=[]),e.transform||[1,0,0,1,0,0]),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],bp(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new Dg;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?IB(n,t,i):Mh(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?IB([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var i=TB(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=TB(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(Dg),AB={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},DB=["lng","lat"],LB=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.dimensions=DB,r.type="geo",r._nameCoordMap=Sh.f(),r.map=n;var o,a=i.projection,s=lB.load(n,i.nameMap,i.nameProperty),l=lB.getGeoResource(n),c=(r.resourceType=l?l.type:null,r.regions=s.regions),u=AB[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,r.projection=a,a)for(var d=0;d<c.length;
70d++){var h=c[d].getBoundingRect(a);(o=o||h.clone()).union(h)}else o=s.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=a?1:Sh.P(i.aspectScale,u.aspectScale),r._invertLongitute=!a&&u.invertLongitute,r}return xh(e,t),e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new kp(t,e,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(Sh.C(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,i){return t.prototype.dataToPoint.call(this,e,n,i)},e.prototype.convertToPixel=function(t,e,n){var i=PB(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=PB(e);return i===this?i.pointToData(n):null},e}(kB);function PB(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Ym).models[0]||{}).coordinateSystem:null}Sh.K(LB,kB);var jB=LB;function EB(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],c=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var u=function(t,e,n,a){for(var s=n-t,l=a-e,c=0;c<=100;c++){var u=c/100,d=o.project([t+s*u,e+l*u]);zh(i,i,d),Vh(r,r,d)}};u(a,s,l,s),u(l,s,l,c),u(l,c,a,c),u(a,c,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else 0}var d,h,p,f=this.getBoundingRect(),g=t.get("layoutCenter"),m=t.get("layoutSize"),v=e.getWidth(),y=e.getHeight(),b=f.width/f.height*this.aspectScale,_=!1;if(g&&m&&(d=[lm(g[0],v),lm(g[1],y)],h=lm(m,Math.min(v,y)),isNaN(d[0])||isNaN(d[1])||isNaN(h)||(_=!0)),_)p={},b>1?(p.width=h,p.height=h/b):(p.height=h,p.width=h*b),p.y=d[1]-p.height/2,p.x=d[0]-p.width/2;else{var x=t.getBoxLayoutParams();x.aspect=b,p=nw(x,{width:v,height:y})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var NB=new(function(){function t(){this.dimensions=DB}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",function(t,r){var o=t.get("map"),a=new jB(o+r,o,Sh.m({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=EB,a.resize(t,e)}),t.eachSeries(function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}});var r={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}}),Sh.k(r,function(t,r){var o=Sh.H(t,function(t){return t.get("nameMap")}),a=new jB(r,r,Sh.m({nameMap:Sh.J(o)},i(t[0])));a.zoomLimit=Sh.O.apply(null,Sh.H(t,function(t){return t.get("scaleLimit")})),n.push(a),a.resize=EB,a.resize(t[0],e),Sh.k(t,function(t){t.coordinateSystem=a,function(t,e){Sh.k(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}(a,t)})}),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=Sh.f(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);var s=lB.load(e,n,i);return Sh.k(s.regions,function(t){var e=t.name,n=o.get(e),i=t.properties&&t.properties.echartsStyle;n||(n={name:e},r.push(n)),i&&Sh.I(n,i)}),r},t}()),RB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.init=function(t,e,n){var i=lB.getGeoResource(t.map);if(i&&"geoJSON"===i.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(t,n),Lm(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=NB.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=Sh.N(e.regions||[],function(e,i){var r=i.name;return r&&(e.set(r,new nx(i,t,t.ecModel)),i.selected&&(n[r]=!0)),e},Sh.f()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new nx(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emp
70hasis","label","formatter"]),r={name:t};return Sh.w(i)?(r.status=e,i(r)):Sh.C(i)?i.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(uw);function BB(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function zB(t,e,n,i){var r=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(BB(t,s),i)),null!=a){if(n){var l=n.min||0,c=n.max||1/0;a=Math.max(Math.min(r*a,c),l)/r}t.scaleX*=a,t.scaleY*=a;var u=(e.originX-t.x)*(a-1),d=(e.originY-t.y)*(a-1);t.x-=u,t.y-=d,t.updateTransform(),t.setCenter(BB(t,s),i),t.setZoom(a*r)}return{center:t.getCenter(),zoom:t.getZoom()}}var VB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return xh(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new wB(n));var r=this._mapDraw;r.draw(t,e,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this.group.add(r.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;nT(t.target,function(t){return null!=(e=mb(t).eventData)},!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse(function(t){var e=mb(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(eM);function FB(t,e,n){lB.registerMap(t,e,n)}function HB(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,function(t,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:t},function(n){n[e](t.name);var o=n.coordinateSystem;Object(Sh.k)(o.regions,function(t){i[t.name]=n.isSelected(t.name)||!1});var a=[];Object(Sh.k)(i,function(t,e){i[e]&&a.push(e)}),r.push({geoIndex:n.componentIndex,name:a})}),{selected:i,allSelected:r,name:t.name}})}t.registerCoordinateSystem("geo",NB),t.registerComponentModel(RB),t.registerComponentView(VB),t.registerImpl("registerMap",FB),t.registerImpl("getMap",function(t){return lB.getMapForUser(t)}),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,e,n){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(e){var r=e.coordinateSystem;if("geo"===r.type){var o=zB(r,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===i&&Object(Sh.k)(e.seriesGroup,function(t){t.setCenter(o.center),t.setZoom(o.zoom)})}})})}function GB(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hier
vendor: 8,275 bytes, line 70
70Node.i?i[t.hierNode.i-1]:null;if(n.length){!function(t){var e=t.children,n=e.length,i=0,r=0;for(;--n>=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,c=o.hierNode.modifier,u=a.hierNode.modifier,d=s.hierNode.modifier;s=YB(s),o=$B(o),s&&o;){r=YB(r),a=$B(a),r.hierNode.ancestor=t;var h=s.hierNode.prelim+d-o.hierNode.prelim-c+i(s,o);h>0&&(ZB(XB(s,t,n),t,h),c+=h,l+=h),d+=s.hierNode.modifier,c+=o.hierNode.modifier,l+=r.hierNode.modifier,u+=a.hierNode.modifier}s&&!YB(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=d-l),o&&!$B(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=c-u,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function WB(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function UB(t){return arguments.length?t:KB}function qB(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function YB(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function $B(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function XB(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function ZB(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function KB(t,e){return t.parentNode===e.parentNode?1:2}var JB=function(){return function(){this.parentPoint=[],this.childPoints=[]}}(),QB=function(t){function e(e){return t.call(this,e)||this}return xh(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new JB},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=lm(e.forkPosition,1),d=[];d[l]=r[l],d[c]=r[c]+(a[c]-r[c])*u,t.moveTo(r[0],r[1]),t.lineTo(d[0],d[1]),t.moveTo(o[0],o[1]),d[l]=o[l],t.lineTo(d[0],d[1]),d[l]=a[l],t.lineTo(d[0],d[1]),t.lineTo(a[0],a[1]);for(var h=1;h<i-1;h++){var p=n[h];t.moveTo(p[0],p[1]),d[l]=p[l],t.lineTo(d[0],d[1])}},e}(By);function tz(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function ez(t,e,n,i,r){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,c=!1===a.isExpand&&0!==a.children.length?l:"#fff",u=t.tree.root,d=a.parentNode===u?a:a.parentNode||a,h=t.getItemGraphicEl(d.dataIndex),p=d.getLayout(),f=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:p,g=a.getLayout();o?((n=new YL(t,e,null,{symbolInnerColor:c,useNameLabel:!0})).x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,x_(n,{x:g.x,y:g.y},r);var m=n.getSymbolPath();if("radial"===r.get("layout")){var v=u.children[0],y=v.getLayout(),b=v.children.length,_=void 0,x=void 0;if(g.x===y.x&&!0===a.isExpand&&v.children.length){var w={x:(v.children[0].getLayout().x+v.children[b-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[b-1].getLayout().y)/2};(_=Math.atan2(w.y-y.y,w.x-y.x))<0&&(_=2*Math.PI+_),(x=w.x<y.x)&&(_-=Math.PI)}else(_=Math.atan2(g.y-y.y,g.x-y.x))<0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(x=g.x<y.x)&&(_-=Math.PI):(x=g.x>y.x)||(_-=Math.PI);var S=x?"left":"right",O=s.getModel("label"),M=O.get("rotate"),C=M*(Math.PI/180),I=m.getTextContent();I&&(m.setTextConfig({position:O.get("position")||S,rotation:null==M?-_:C,origin:"center"}),I.setStyle("verticalAlign","middle"))}var T=s.get(["emphasis","focus"]),k="relative"===T?Sh.e(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===T?a.getAncestorsIndices():"descendant"===T?a.getDescendantIndices():null;k&&(mb(n).focus=k),function(t,e,n,i,r,o,a,s){var l=e.getModel(),c=t.get("edgeShape"),u=t.get("layout"),d=t.getOrient(),h=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===c)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new cC({shape:oz(u,d,h,r,r)})),x_(g,{shape:oz(u,d,h,o,a)},t));else if("polyline"===c)if("orthogonal"===u){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var m=e.children,v=[],y=0;y<m.length;y++){var b=m[y].getLayout();v.push([b.x,b.y])}g||(g=i.__edge=new QB({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:d,forkPosition:p}})),x_(g,{shape:{parentPoint:[a.x,a.y],childPoints:v}},t)}}else 0;g&&("polyline"!==c||e.isExpand)&&(g.useStyle(Sh.i({strokeNoScale:!0,fill:null},f)),p_(g,l,"lineStyle"),qb(g),s.add(g))}(r,a,u,n,f,p,g,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===Sb||Wb(n.__edge,e)}})}function nz(t,e,n,i,r){var o=iz(e.tree.root,t),a=o.source,s=o.sourceLayout,l=e.getItemGraphicEl(t.dataIndex);if(l){var c=e.getItemGraphicEl(a.dataIndex).__edge,u=l.__edge||(!1===a.isExpand||1===a.children.length?c:void 0),d=i.get("edgeShape"),h=i.get("layout"),p=i.get("orient"),f=i.get(["lineStyle","curveness"]);u&&("curve"===d?O_(u,{shape:oz(h,p,f,s,s),style:{opacity:0}},i,{cb:function(){n.remove(u)},removeOpt:r}):"polyline"===d&&"orthogonal"===i.get("layout")&&O_(u,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(u)},removeOpt:r}))}}function iz(t,e){for(var n,i=e.parentNode===t?e:e.parentNode||e;null==(n=i.getLayout());)i=i.parentNode===t?i:i.parentNode||i;return{source:i,sourceLayout:n}}function rz(t,e,n,i,r){var o=t.tree.getNodeByDataIndex(e),a=iz(t.tree.root,o).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};O_(n,{x:a.x+1,y:a.y+1},r,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach(function(e){nz(e,t,i,r,s)}),nz(o,t,i,r,s)}function oz(t,e,n,i,r){var o,a,s,l,c,u,d,h;if("radial"===t){c=i.rawX,d=i.rawY,u=r.rawX,h=r.rawY;var p=qB(c,d),f=qB(c,d+(h-d)*n),g=qB(u,h+(d-h)*n),m=qB(u,h);return{x1:p.x||0,y1:p.y||0,x2:m.x||0,y2:m.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return c=i.x,d=i.y,u=r.x,h=r.y,"LR"!==e&&"RL"!==e||(o=c+(u-c)*n,a=d,s=u+(c-u)*n,l=h),"TB"!==e&&"BT"!==e||(o=c,a=d+(h-d)*n,s=u,l=h+(d-h)*n),{x1:c,y1:d,x2:u,y2:h,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var az=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new Qg,n}return xh(e,t),e.prototype.init=function(t,e){this._controller=new cR(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var i=t.getData(),r=t.layoutInfo,o=this._mainGroup;"radial"===t.get("layout")?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var a=this._data;i.diff(a).add(function(e){tz(i,e)&&ez(i,e,null,o,t)}).update(function(e,n){var r=a.getItemGraphicEl(n);tz(i,e)?ez(i,e,r,o,t):r&&rz(a,n,r,o,t)}).remove(function(e){var n=a.getItemGraphicEl(e);n&&rz(a,e,n,o,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl(function(e,i){e.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each(function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])});var r=[],o=[];qv(i,r,o);var a=this._min,s=this._max;o[0]-r[0]==0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]==0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new kB;
70l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker(function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!fR(e,n,t)}),r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",function(e){uR(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})}).on("zoom",function(e){dR(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl(function(t,e){t.setSymbolScale(n)})},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1;return((e.getZoom()-1)*n+1)/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(lI),sz=Gm();function lz(t,e){if(sz(i=this).mainData===i){var n=Object(Sh.m)({},sz(this).datas);n[this.dataType]=e,pz(e,n,t)}else fz(e,this.dataType,sz(this).mainData,t);var i;return e}function cz(t,e){return t.struct&&t.struct.update(),e}function uz(t,e){return Object(Sh.k)(sz(e).datas,function(n,i){n!==e&&fz(n.cloneShallow(),i,e,t)}),e}function dz(t){var e=sz(this).mainData;return null==t||null==e?e:sz(e).datas[t]}function hz(){var t=sz(this).mainData;return null==t?[{data:t}]:Object(Sh.H)(Object(Sh.F)(sz(t).datas),function(e){return{type:e,data:sz(t).datas[e]}})}function pz(t,e,n){sz(t).datas={},Object(Sh.k)(e,function(e,i){fz(e,i,t,n)})}function fz(t,e,n,i){sz(n).datas[e]=t,sz(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=dz,t.getLinkedDataAll=hz}var gz=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,pz(e,n,t),Object(Sh.k)(n,function(n){Object(Sh.k)(e.TRANSFERABLE_METHODS,function(e){n.wrapMethod(e,Object(Sh.h)(lz,t))})}),e.wrapMethod("cloneShallow",Object(Sh.h)(uz,t)),Object(Sh.k)(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,Object(Sh.h)(cz,t))}),Object(Sh.b)(n[e.dataType]===e)},mz=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){Sh.w(t)&&(n=e,e=t,t=null),t=t||{},Sh.C(t)&&(t={order:t});var i,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===r&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}();var vz=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){var r=new t(n),o=[],a=1;!function t(e,n){var i=e.value;a=Math.max(a,Sh.t(i)?i.length:1);o.push(e);var s=new mz(zm(e.name,""),r);n?function(t,e){var n=e.children;if(t.parentNode===e)return;n.push(t),t.parentNode=e}(s,n):r.root=s;r._nodes.push(s);var l=e.children;if(l)for(var c=0;c<l.length;c++)t(l[c],s)}(e),r.root.updateDepthAndHeight(0);var s=jL(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new PL(s,n);return l.initData(o),i&&i(l),gz({mainData:l,struct:r,structAttr:"tree"}
vendor: 4,713 bytes, line 70
70),r.update(),r},t}();function yz(t,e,n){if(t&&Sh.r(e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if(Sh.C(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function bz(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function _z(t,e){var n=bz(t);return Sh.r(n,e)>=0}function xz(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var wz=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return xh(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new nx(n,this,this.ecModel),r=vz.createTree(e,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t})});var o=0;r.eachNode("preorder",function(t){t.depth>o&&(o=t.depth)});var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return AO("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=xz(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(QO);function Sz(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function Oz(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=function(t,e){return nw(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=UB(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=n.width,o=n.height,a=UB());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;i=o.pop();)e(i,n)}(l,GB,a),s.hierNode.modifier=-l.hierNode.prelim,Sz(l,WB);var c=l,u=l,d=l;Sz(l,function(t){var e=t.getLayout().x;e<c.getLayout().x&&(c=t),e>u.getLayout().x&&(u=t),t.depth>d.depth&&(d=t)});var h=c===u?1:a(c,u)/2,p=h-c.getLayout().x,f=0,g=0,m=0,v=0;if("radial"===i)f=r/(u.getLayout().x+h+p),g=o/(d.depth-1||1),Sz(l,function(t){m=(t.getLayout().x+p)*f,v=(t.depth-1)*g;var e=qB(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(u.getLayout().x+h+p),f=r/(d.depth-1||1),Sz(l,function(t){v=(t.getLayout().x+p)*g,m="LR"===y?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:m,y:v},!0)})):"TB"!==y&&"BT"!==y||(f=r/(u.getLayout().x+h+p),g=o/(d.depth-1||1),Sz(l,function(t){m=(t.getLayout().x+p)*f,v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)}))}}}(t,e)})}function Mz(t){t.eachSeriesByType("tree",function(t){var e=t.getData();e.tree.eachNode(function(t){var n=t.getModel().getModel("itemStyle").getItemStyle(),i=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(Sh.m)(i,n)})})}var Cz=["treemapZoomToNode","treemapRender","treemapMove"];function Iz(t){var e=t.getData().tree,n={};e.eachNode(function(e){for(var i=e;i&&i.depth>
701;)i=i.parentNode;var r=jw(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)})}var Tz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return xh(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;Sh.k(e.children,function(e){t(e);var i=e.value;Sh.t(i)&&(i=i[0]),n+=i});var i=e.value;Sh.t(i)&&(i=i[0]);(null==i||isNaN(i))&&(i=n);i<0&&(i=0);Sh.t(e.value)?e.value[0]=i:e.value=i}(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new nx({itemStyle:r},this,e);i=t.levels=function(t,e){var n,i,r=Dm(e.get("color")),o=Dm(e.get(["aria","decal","decals"]));if(!r)return;t=t||[],Sh.k(t,function(t){var e=new nx(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)});var a=t[0]||(t[0]={});n||(a.color=r.slice());!i&&o&&(a.decal=o.slice());return t}(i,e);var a=Sh.H(i||[],function(t){return new nx(t,o,e)},this),s=vz.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=s.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t})});return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return AO("nameValue",{name:i.getName(t),value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=xz(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},Sh.m(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=Sh.f(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Iz(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"â¶",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(QO),kz=5;function Az(t,e,n,i,r,o){var a=[[r?t:t-kz,e],[t+n,e],[t+n,e+i],[r?t:t-kz,e+i]];return!o&&a.splice(2,0,[t+n+kz,e+i/2]),!r&&a.push([t,e+i/2]),a}function Dz(t,e,n){mb(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&xz(n,e)}}var Lz=function(){function t(t){this.group=new Qg,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),u={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(t,u,a,s,l,c,i),iw(o,u.pos,u.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=zm(i.getModel().get("name"),""),o=n.getTextRect
70(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var s,l,c,u,d,h,p,f,g,m=0,v=e.emptyItemWidth,y=t.get(["breadcrumb","height"]),b=(s=e.pos,l=e.box,u=l.width,d=l.height,h=lm(s.left,u),p=lm(s.top,d),f=lm(s.right,u),g=lm(s.bottom,d),(isNaN(h)||isNaN(parseFloat(s.left)))&&(h=0),(isNaN(f)||isNaN(parseFloat(s.right)))&&(f=u),(isNaN(p)||isNaN(parseFloat(s.top)))&&(p=0),(isNaN(g)||isNaN(parseFloat(s.bottom)))&&(g=d),c=Wx(c||0),{width:Math.max(f-h-c[1]-c[3],0),height:Math.max(g-p-c[0]-c[2],0)}),_=e.totalWidth,x=e.renderList,w=i.getModel("itemStyle").getItemStyle(),S=x.length-1;S>=0;S--){var O=x[S],M=O.node,C=O.width,I=O.text;_>b.width&&(_-=C-v,C=v,I=null);var T=new KM({shape:{points:Az(m,0,C,y,S===x.length-1,0===S)},style:Object(Sh.i)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new gb({style:P_(r,{text:I})}),textConfig:{position:"inside"},z2:1e4*Ib,onclick:Object(Sh.h)(a,M)});T.disableLabelAnimation=!0,T.getTextContent().ensureState("emphasis").style=P_(o,{text:I}),T.ensureState("emphasis").style=w,c_(T,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(T),Dz(T,t,M),m+=C+8}},t.prototype.remove=function(){this.group.removeAll()},t}(),Pz=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();var jz=Qg,Ez=Qy,Nz="label",Rz="upperLabel",Bz=10*Ib,zz=2*Ib,Vz=3*Ib,Fz=cv([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Hz=function(t){var e=Fz(t);return e.stroke=e.fill=e.lineWidth=null,e},Gz=Gm();var Wz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return xh(e,t),e.prototype.render=function(t,e,n,i){var r=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Object(Sh.r)(r,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=yz(i,["treemapZoomToNode","treemapRootToNode"],t),a=i&&i.type,s=t.layoutInfo,l=!this._oldTree,c=this._storage,u="treemapRootToNode"===a&&o&&c?{rootNodeGroup:c.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(s),h=t.get("animation"),p=this._doRender(d,t,u);!h||l||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?p.renderFinally():this._doAnimation(d,p,t,u),this._resetController(n),this._renderBreadcrumb(t,n,o)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new jz,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i=e.getData().tree,r=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function c(t,i,r,c){return function(t,e,n,i,r,o,a,s,l,c){if(!a)return;var u=a.getLayout(),d=t.getData(),h=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),!u||!u.isInView)return;var p=u.width,f=u.height,g=u.borderWidth,m=u.invisible,v=a.getRawIndex(),y=s&&s.getRawIndex(),b=a.viewChildren,_=u.upperHeight,x=b&&b.length,w=h.getModel("itemStyle"),S=h.getModel(["emphasis","itemStyle"]),O=h.getModel(["blur","itemStyle"]),M=h.getModel(["select","itemStyle"]),C=w.get("borderRadius")||0,I=z("nodeGroup",jz);if(!I)return;if(l.add(I),I.x=u.x||0,I.y=u.y||0,I.markRedraw(),Gz(I).nodeWidth=p,Gz(I).nodeHeight=f,u.isAboveViewRoot)return I;var T=z("background",Ez,c,zz);T&&function(e,n,i){var r=mb(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:C}),m)N(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=Hz(w);l.fill=s;var c=Fz(S);c.fill=S.get("borderColor");var u=Fz(O);u.fill=O.get("borderColor");var d=Fz(M);if(d.fill=M.get("borderColor"),i){var h=p-2*g;R(n,s,o.opacity,{x:g,y:0,width:h,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=d,qb(n)}e.add(n)}(I,T,x&&u.upperLabelHeight);var k=h.getModel("emphasis"),A=k.get("focus"),D=k.get("blurScope"),L=k.get("disabled"),P="ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():A;if(x)g_(I)&&f_(I,!1),T&&(f_(T,!L),d.setItemGraphicEl(a.dataIndex,T),u_(T,P,D));else{var j=z("content",Ez,c,Vz);j&&function(e,n){var i=mb(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(p-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:C}),m)N(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,c=Hz(w);c.fill=l,c.decal=s.decal;var u=Fz(S),d=Fz(O),h=Fz(M);R(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=d,n.ensureState("select").style=h,qb(n)}e.add(n)}(I,j),T.disableMorphing=!0,T&&g_(T)&&f_(T,!1),f_(I,!L),d.setItemGraphicEl(a.dataIndex,I);var E=h.getShallow("cursor");E&&j.attr("cursor",E),u_(I,P,D)}return I;function N(t){!t.invisible&&o.push(t)}function R(e,n,i,r){var o=h.getModel(r?Rz:Nz),s=zm(h.get("name"),null),l=o.getShallow("show");D_(e,L_(h,r?Rz:Nz),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var c=e.getTextContent();if(c){var d=c.style,p=Object(Sh.M)(d.padding||0);r&&(e.setTextConfig({layoutRect:r}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:e.shape.height)-p[0]-p[2],0);d.width===t&&d.height===n||c.setStyle({width:t,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",B(d,r,u);var f=c.getState("emphasis");B(f?f.style:null,r,u)}}function B(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function z(t,o,s,l){var c=null!=y&&n[t][y],u=r[t];return c?(n[t][y]=null,function(t,e){var n=t[v]={};e instanceof jz?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(Sh.m)({},e.shape)}(u,c)):m||((c=new o)instanceof Rv&&(c.z2=function(t,e){return t*Bz+e}(s,l)),function(t,e){var n=t[v]={},o=a.parentNode,s=e instanceof Qg;if(o&&(!i||"drillDown"===i.direction)){var l=0,c=0,u=r.background[o.getRawIndex()];!i&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!s}(u,c)),e[t][v]=c}}(e,a,s,n,o,l,t,i,r,c)}!function t(e,n,i,r,o){r?(n=e,Object(Sh.k)(e,function(t,e){!t.isRemoved()&&s(e,e)})):new cL(n,e,a,a).add(s).update(s).remove(Object(Sh.h)(s,null)).execute();function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,u=null!=s?n[s]:null,d=c(l,u,i,o);d&&t(l&&l.viewChildren||[],u&&u.viewChildren||[],d,r,o+1)}}(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var u=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&Object(Sh.k)(t,function(t,n){var i=e[n];Object(Sh.k)(t,function(t){t&&(i.push(t),Gz(t).willDelete=!0)})}),e}(s);if(this._oldTree=i,this._storage=a,this._controllerHost){var d=this.seriesModel.layoutInfo,h=i.root.getLayout();h.width===d.width&&h.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:o,willDeleteEls:u,renderFinally:function(){Object(Sh.k)(u,function(t){Object(Sh.k)(t,function(t){t.parent&&t.parent.remove(t)})}),Object(Sh.k)(l,function(t){t.invisible=!0,t.dirty()})}}},e.prototype._doAnimation=function(t,e,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Object(Sh.w)(r)?0:r)||0,s=(Object(Sh.w)(o)?null:o
70)||"cubicOut",l=new Pz;Object(Sh.k)(e.willDeleteEls,function(t,e){Object(Sh.k)(t,function(t,n){if(!t.invisible){var r,o=t.parent,c=Gz(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:c.nodeWidth,height:c.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,d=0;c.willDelete||(u=c.nodeWidth/2,d=c.nodeHeight/2),r="nodeGroup"===e?{x:u,y:d,style:{opacity:0}}:{shape:{x:u,y:d,width:0,height:0},style:{opacity:0}}}r&&l.add(t,r,a,0,s)}})}),Object(Sh.k)(this._storage,function(t,n){Object(Sh.k)(t,function(t,i){var r=e.lastsForAnimation[n][i],o={};r&&(t instanceof Qg?null!=r.oldX&&(o.x=t.x,o.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(o.shape=Object(Sh.m)({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))})},this),this._state="animating",l.finished(Object(Sh.c)(function(){this._state="ready",e.renderFinally()},this)).start()},e.prototype._resetController=function(t){var e=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),e||((e=this._controller=new cR(t.getZr())).enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),e.on("pan",Object(Sh.c)(this._onPan,this)),e.on("zoom",Object(Sh.c)(this._onZoom,this)));var i=new kp(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,n){return i.contain(e,n)})},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY,i=t.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var a,s=new kp(o.x,o.y,o.width,o.height),l=this._controllerHost;a=l.zoomLimit;var c=l.zoom=l.zoom||1;if(c*=i,a){var u=a.min||0,d=a.max||1/0;c=Math.max(Math.min(d,c),u)}var h=c/l.zoom;l.zoom=c;var p=this.seriesModel.layoutInfo,f=[1,0,0,1,0,0];mp(f,f,[-(e-=p.x),-(n-=p.y)]),yp(f,f,[h,h]),mp(f,f,[e,n]),s.applyTransform(f),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Zx(a,s)}}}}},this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new Lz(this.group))).render(t,e,n.node,function(e){"animating"!==i._state&&(_z(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;
70n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n},e.type="treemap",e}(lI),Uz=Sh.k,qz=Sh.A,Yz=-1,$z=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=Sh.d(e);this.type=i,this.mappingMethod=n,this._normalizeData=rV[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(Xz(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,Sh.k(e,function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)})}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(Uz(e,function(t,e){n[t]=e}),!Sh.t(i)){var r=[];Sh.A(i)?Uz(i,function(t,e){var i=n[e];r[null!=i?i:Yz]=t}):r[Yz]=i,i=iV(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):Xz(r,!0):(Sh.b("linear"!==n||r.dataExtent),Xz(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return Sh.c(this._normalizeData,this)},t.listVisualTypes=function(){return Sh.F(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){Sh.A(t)?Sh.k(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=Sh.t(e)?[]:Sh.A(e)?{}:(r=!0,null);return t.eachVisual(e,function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a}),o},t.retrieveVisuals=function(e){var n,i={};return e&&Uz(t.visualHandlers,function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)}),n?i:null},t.prepareVisualTypes=function(t){if(Sh.t(t))t=t.slice();else{if(!qz(t))return[];var e=[];Uz(t,function(t,n){e.push(n)}),t=e}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||Sh.C(s)&&s===t+"")return o;n&&d(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],c=l.interval,u=l.close;if(c){if(c[0]===-1/0){if(oV(u[1],t,c[1]))return o}else if(c[1]===1/0){if(oV(u[0],c[0],t))return o}else if(oV(u[0],c[0],t)&&oV(u[1],t,c[1]))return o;n&&d(c[0],o),n&&d(c[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function d(e,n){var o=Math.abs(e-t);o<r&&(r=o,i=n)}},t.visualHandlers={color:{applyVisual:Jz("color"),getColorMapper:function(){var t=this.option;return Sh.c("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),Qz.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=Lf.a(e,t.parsedVisual,i),r?i:Lf.i(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Lf.i(Lf.a(t,this.option.parsedVisual),"rgba")},category:Qz,piecewise:function(t,e){var n=nV.call(this,e);return null==n&&(n=Lf.i(Lf.a(t,this.option.parsedVisual),"rgba")),n},fixed:tV}},colorHue:Zz(function(t,e){return Lf.g(t,e)}),colorSaturation:Zz(function(t,e){return Lf.g(t,null,e)}),colorLightness:Zz(function(t,e){return Lf.g(t,null,null,e)}),colorAlpha:Zz(function(t,e){return Lf.f(t,e)}),decal:{applyVisual:Jz("decal"),_normalizedToVisual:{linear:null,category:Qz,piecewise:null,fixed:null}},opacity:{applyVisual:Jz("opacity"),_normalizedToVisual:eV([0,1])},liftZ:{applyVisual:Jz("liftZ"),_normalizedToVisual:{linear:tV,category:tV,piecewise:tV,fixed:tV}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:Kz,category:Qz,piecewise:function(t,e){var n=nV.call(this,e);return null==n&&(n=Kz.call(this,t)),n},fixed:tV}},symbolSize:{applyVisual:Jz("symbolSize"),_normalizedToVisual:eV([0,1])}},t}();function Xz(t,e){var n=t.visual,i=[];Sh.A(n)?Uz(n,function(t){i.push(t)}):null!=n&&i.push(n);e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),iV(t,i)}function Zz(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:eV([0,1])}}function Kz(t){var e=this.option.visual;return e[Math.round(sm(t,[0,1],[0,e.length-1],!0))]||{}}function Jz(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function Qz(t){var e=this.option.visual;return e[this.option.loop&&t!==Yz?t%e.length:t]}function tV(){return this.option.visual[0]}function eV(t){return{linear:function(e){return sm(e,t,this.option.visual,!0)},category:Qz,piecewise:function(e,n){var i=nV.call(this,n);return null==i&&(i=sm(e,t,this.option.visual,!0)),i},fixed:tV}}function nV(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[$z.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function iV(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=Sh.H(e,function(t){var e=Lf.h(t);return e||[0,0,0,1]})),e}var rV={linear:function(t){return sm(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=$z.findPieceIndex(t,e,!0);if(null!=n)return sm(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?Yz:e},fixed:Sh.L};function oV(t,e,n){return t?e<=n:e<n}
70var aV=$z,sV="itemStyle",lV=Gm(),cV={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||function t(e,n,i,r){var o=e.getModel();var a=e.getLayout();var s=e.hostTree.data;if(!a||a.invisible||!a.isInView)return;var l=o.getModel(sV);var c=function(t,e,n){var i=Object(Sh.m)({},e),r=n.designatedVisualItemStyle;return Object(Sh.k)(["color","colorAlpha","colorSaturation"],function(n){r[n]=e[n];var o=t.get(n);r[n]=null,null!=o&&(i[n]=o)}),i}(l,n,r);var u=s.ensureUniqueItemVisual(e.dataIndex,"style");var d=l.get("borderColor");var h=l.get("borderColorSaturation");var p;null!=h&&(p=uV(c),d=function(t,e){return null!=e?Object(Lf.g)(e,null,null,t):null}(h,p));u.stroke=d;var f=e.viewChildren;if(f&&f.length){var g=function(t,e,n,i,r,o){if(!o||!o.length)return;var a=hV(e,"color")||null!=r.color&&"none"!==r.color&&(hV(e,"colorAlpha")||hV(e,"colorSaturation"));if(!a)return;var s=e.get("visualMin"),l=e.get("visualMax"),c=n.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=l&&l>c[1]&&(c[1]=l);var u=e.get("colorMappingBy"),d={type:a.name,dataExtent:c,visual:a.range};"color"!==d.type||"index"!==u&&"id"!==u?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var h=new aV(d);return lV(h).drColorMappingBy=u,h}(0,o,a,0,c,f);Object(Sh.k)(f,function(e,n){if(e.depth>=i.length||e===i[e.depth]){var a=function(t,e,n,i,r,o){var a=Object(Sh.m)({},e);if(r){var s=r.type,l="color"===s&&lV(r).drColorMappingBy,c="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(c)}return a}(o,c,e,n,g,r);t(e,a,i,r)}})}else p=uV(c),u.fill=p}(e,{},t.getViewRoot().getAncestors(),t)}};function uV(t){var e=dV(t,"color");if(e){var n=dV(t,"colorAlpha"),i=dV(t,"colorSaturation");return i&&(e=Object(Lf.g)(e,null,null,i)),n&&(e=Object(Lf.f)(e,n)),e}}function dV(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function hV(t,e){var n=t.get(e);return Object(Sh.t)(n)&&n.length?{name:e,range:n}:null}var pV=Math.max,fV=Math.min,gV=Sh.O,mV=Sh.k,vV=["itemStyle","borderWidth"],yV=["itemStyle","gapWidth"],bV=["upperLabel","show"],_V=["upperLabel","height"],xV={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=nw(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],c=lm(gV(s.width,l[0]),r),u=lm(gV(s.height,l[1]),o),d=i&&i.type,h=yz(i,["treemapZoomToNode","treemapRootToNode"],t),p="treemapRender"===d||"treemapMove"===d?i.rootRect:null,f=t.getViewRoot(),g=bz(f);if("treemapMove"!==d){var m="treemapZoomToNode"===d?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,c=l*t.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var u=0,d=o.children,h=0,p=d.length;h<p;h++)u+=d[h].getValue();var f=a.getValue();if(0===f)return s;c*=u/f;var g=o.getModel(),m=g.get(vV),v=Math.max(m,OV(g));(c+=4*m*m+(3*m+v)*Math.pow(c,.5))>gm&&(c=gm),a=o}c<l&&(c=l);var y=Math.pow(c/l,.5);return[i*y,r*y]}(t,h,f,c,u):p?[p.width,p.height]:[c,u],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var y={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};f.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};f.setLayout(b),function t(e,n,i,r){var o;var a;if(e.isRemoved())return;var s=e.getLayout();o=s.width;a=s.height;var l=e.getModel();var c=l.get(vV);var u=l.get(yV)/2;var d=OV(l);var h=Math.max(c,d);var p=c-u;var f=h-u;e.setLayout({borderWidth:c,upperHeight:h,upperLabelHeight:d},!0);o=pV(o-2*p,0);a=pV(a-p-f,0);var g=o*a;var m=function(t,e,n,i,r,o){var a=t.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return t.viewChildren=[];!function(t,e){e&&t.sort(function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i})}(a=Sh.n(a,function(t){return!t.isRemoved()}),s);var c=function(t,e,n){for(var i=0,r=0,o=e.length;r<o;r++)i+=e[r].getValue();var a,s=t.get("visualDimension");e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],mV(e,function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)})):a=[NaN,NaN];return{sum:i,dataExtent:a}}(e,a,s);if(0===c.sum)return t.viewChildren=[];if(c.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var c=r["asc"===i?a-l-1:l].getValue();c/n*e<o&&(s=l,n-=c)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}(e,n,c.sum,s,a),0===c.sum)return t.viewChildren=[];for(var u=0,d=a.length;u<d;u++){var h=a[u].getValue()/c.sum*n;a[u].setLayout({area:h})}l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0);return t.viewChildren=a,t.setLayout({dataExtent:c.dataExtent},!0),a}(e,l,g,n,i,r);if(!m.length)return;var v={x:p,y:f,width:o,height:a};var y=fV(o,a);var b=1/0;var _=[];_.area=0;for(var x=0,w=m.length;x<w;){var S=m[x];_.push(S),_.area+=S.getLayout().area;var O=wV(_,y,n.squareRatio);O<=b?(x++,b=O):(_.area-=_.pop().getLayout().area,SV(_,y,v,u,!1),y=fV(v.width,v.height),_.length=_.area=0,b=1/0)}_.length&&SV(_,y,v,u,!0);
70if(!i){var M=l.get("childrenVisibleMin");null!=M&&g<M&&(i=!0)}for(var x=0,w=m.length;x<w;x++)t(m[x],n,i,r+1)}(f,y,!1,0),b=f.getLayout(),mV(g,function(t,e){var n=(g[e+1]||f).getValue();t.setLayout(Sh.m({dataExtent:[n,n],borderWidth:0,upperHeight:0},b))})}var _=t.getData().tree.root;_.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var a=[o.width/2,o.height/2],s=r;for(;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}(s,p,h),!0),t.setLayoutInfo(s),function t(e,n,i,r,o){var a=e.getLayout();var s=i[o];var l=s&&s===e;if(s&&!l||o===i.length&&e!==r)return;e.setLayout({isInView:!0,invisible:!l&&!n.intersect(a),isAboveViewRoot:l},!0);var c=new kp(n.x-a.x,n.y-a.y,n.width,n.height);mV(e.viewChildren||[],function(e){t(e,c,i,r,o+1)})}(_,new kp(-s.x,-s.y,r,o),g,f,0)}};function wV(t,e,n){for(var i=0,r=1/0,o=0,a=void 0,s=t.length;o<s;o++)(a=t[o].getLayout().area)&&(a<r&&(r=a),a>i&&(i=a));var l=t.area*t.area,c=e*e*n;return l?pV(c*i/l,l/(c*r)):1/0}function SV(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],c=n[s[o]],u=e?t.area/e:0;(r||u>n[l[a]])&&(u=n[l[a]]);for(var d=0,h=t.length;d<h;d++){var p=t[d],f={},g=u?p.getLayout().area/u:0,m=f[l[a]]=pV(u-2*i,0),v=n[s[o]]+n[l[o]]-c,y=d===h-1||v<g?v:g,b=f[l[o]]=pV(y-2*i,0);f[s[a]]=n[s[a]]+fV(i,m/2),f[s[o]]=c+fV(i,b/2),c+=y,p.setLayout(f,!0)}n[s[a]]+=u,n[l[a]]-=u}function OV(t){return t.get(bV)?t.get(_V):0}function MV(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),i=t.getGraph().data,r=n.mapArray(n.getName);i.filterSelf(function(t){var n=i.getItemModel(t).getShallow("category");if(null!=n){Object(Sh.z)(n)&&(n=r[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0})})}function CV(t){var e={};t.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each(function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=a.getShallow(l[c],!0);null!=u&&n.setItemVisual(i,l[c],u)}}),n.count()&&i.each(function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){Object(Sh.C)(e)&&(e=r["ec-"+e]);var o=n.getItemVisual(e,"style"),a=i.ensureUniqueItemVisual(t,"style");Object(Sh.m)(a,o);for(var s=["symbol","symbolSize","symbolKeepAspect"],l=0;l<s.length;l++)i.setItemVisual(t,s[l],n.getItemVisual(e,s[l]))}})})}function IV(t){return t instanceof Array||(t=[t,t]),t}function TV(t){t.eachSeriesByType("graph",function(t){var e=t.getGraph(),n=t.getEdgeData(),i=IV(t.get("edgeSymbol")),r=IV(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(t){var i=n.getItemModel(t),r=e.getEdgeByIndex(t),o=IV(i.getShallow("symbol",!0)),a=IV(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(Object(Sh.m)(l,s),l.stroke){case"source":var c=r.node1.getVisual("style");l.stroke=c&&c.fill;break;case"target":c=r.node2.getVisual("style");l.stroke=c&&c.fill}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])})})}var kV=function(t){return t.get("autoCurveness")||null},AV=function(t,e){var n=kV(t),i=20,r=[];if(Sh.z(n))i=n;else if(Sh.t(n))return void(t.__curvenessList=n);e>i&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=r},DV=function(t,e,n){var i=[t.id,t.dataIndex].join("."),r=[e.id,e.dataIndex].join(".");return[n.uid,i,r].join("--\x3e")},LV=function(t){var e=t.split("--\x3e");return[e[0],e[2],e[1]].join("--\x3e")},PV=function(t,e){var n=DV(t.node1,t.node2,e);return e.__edgeMap[n]},jV=function(t,e){return EV(DV(t.node1,t.node2,e),e)+EV(DV(t.node2,t.n
70ode1,e),e)},EV=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function NV(t,e,n,i){var r=kV(e),o=Sh.t(r);if(!r)return null;var a=PV(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var c=jV(t,e);AV(e,c),t.lineStyle=t.lineStyle||{};var u=DV(t.node1,t.node2,e),d=e.__curvenessList,h=o?0:c%2?0:1;if(a.isForward)return d[h+s];var p=LV(u),f=EV(p,e),g=d[s+f+h];return i?o?r&&0===r[0]?(f+h)%2?g:-g:((f%2?0:1)+h)%2?g:-g:(f+h)%2?g:-g:d[s+f+h]}function RV(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),BV(n,t)}}function BV(t,e){t.eachEdge(function(t,n){var i=Sh.Q(t.getModel().get(["lineStyle","curveness"]),-NV(t,e,n,!0),0),r=Ch(t.node1.getLayout()),o=Ch(t.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),t.setLayout(a)})}function zV(t,e){t.eachSeriesByType("graph",function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),r=[];Object(Sh.k)(n.dimensions,function(t){r=r.concat(i.mapDimensionsAll(t))});for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var c=i.get(r[l],o);isNaN(c)||(s=!0),a.push(c)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}BV(i.graph,t)}else e&&"none"!==e||RV(t)})}function VV(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scaleX;return((e.getZoom()-1)*n+1)/i}function FV(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var HV=Math.PI,GV=[];function WV(t,e,n,i){var r=t.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,c=o.height/2+o.y,u=Math.min(o.width,o.height)/2,d=a.count();if(a.setLayout({cx:l,cy:c}),d){if(n){var h=r.pointToData(i),p=h[0],f=h[1],g=[p-l,f-c];Ph(g,g),Lh(g,g,u),n.setLayout([l+g[0],c+g[1]],!0),qV(n,t.get(["circular","rotateLabel"]),l,c)}UV[e](t,s,a,u,l,c,d),s.eachEdge(function(e,n){var i,r=Sh.Q(e.getModel().get(["lineStyle","curveness"]),NV(e,t,n),0),o=Ch(e.node1.getLayout()),a=Ch(e.node2.getLayout()),s=(o[0]+a[0])/2,u=(o[1]+a[1])/2;+r&&(i=[l*(r*=3)+s*(1-r),c*r+u*(1-r)]),e.setLayout([o,a,i])})}}}var UV={value:function(t,e,n,i,r,o,a){var s=0,l=n.getSum("value"),c=2*Math.PI/(l||a);e.eachNode(function(t){var e=t.getValue("value"),n=c*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n})},symbolSize:function(t,e,n,i,r,o,a){var s=0;GV.length=a;var l=VV(t);e.eachNode(function(t){var e=FV(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=HV/2),GV[t.dataIndex]=n,s+=2*n});var c=(2*HV-s)/a/2,u=0;e.eachNode(function(t){var e=c+GV[t.dataIndex];u+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([i*Math.cos(u)+r,i*Math.sin(u)+o]),u+=e})}};function qV(t,e,n,i){var r=t.getGraphicEl();if(r){var o=t.getModel().get(["label","rotate"])||0,a=r.getSymbolPath();if(e){var s=t.getLayout(),l=Math.atan2(s[1]-i,s[0]-n);l<0&&(l=2*Math.PI+l);var c=s[0]<n;c&&(l-=Math.PI);var u=c?"left":"right";a.setTextConfig({rotation:-l,position:u,origin:"center"});var d=a.ensureState("emphasis");Sh.m(d.textConfig||(d.textConfig={}),{position:u})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function YV(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&WV(t,"symbolSize")})}var $V=Th;function XV(t){t.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),r=i.data,o=i.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?r.each(function(t){var e=r.getId(t);r.setItemLayout(t,n[e]||[NaN,NaN])}):s&&"none"!==s?"circular"===s&&WV(t,"value"):RV(t);var l=r.getDataExtent("value"),c=o.getDataExtent("value"),u=a.get("repulsion"),d=a.get("edgeLength"),h=Sh.t(u)?u:[u,u],p=Sh.t(d)?d:[d,d];p=[p[1],p[0]];var f=r.mapArray("value",function(t,e){var n=r.getItemLayout(e),i=sm(t,l,h);return isNaN(i)&&(i=(h[0]+h[1])/2),{w:i,rep:i,fixed:r.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),g=o.mapArray("value",function(e,n){var r=i.getEdgeByIndex(n),o=sm(e,c,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=r.getModel(),s=Sh.Q(r.getModel().get(["lineStyle","curveness"]),-NV(r,t,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}}
vendor: 46,168 bytes, line 70
70),m=e.getBoundingRect(),v=function(t,e,n){for(var i=t,r=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],c=null==n.gravity?.1:n.gravity,u=0;u<i.length;u++){var d=i[u];d.p||(d.p=Oh(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=Ch(d.p),d.edges=null}var h,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){i[t].fixed=!0},setUnfixed:function(t){i[t].fixed=!1},beforeStep:function(t){h=t},afterStep:function(t){p=t},step:function(t){h&&h(i,r);for(var e,n,o,a=[],s=i.length,u=0;u<r.length;u++){var d=r[u];if(!d.ignoreForceLayout){var f=d.n1;kh(a,(b=d.n2).p,f.p);var m=Ah(a)-d.d,v=b.w/(f.w+b.w);isNaN(v)&&(v=0),Ph(a,a),!f.fixed&&$V(f.p,f.p,a,v*m*g),!b.fixed&&$V(b.p,b.p,a,-(1-v)*m*g)}}for(u=0;u<s;u++)(w=i[u]).fixed||(kh(a,l,w.p),$V(w.p,w.p,a,c*g));for(u=0;u<s;u++){f=i[u];for(var y=u+1;y<s;y++){var b;kh(a,(b=i[y]).p,f.p),0===(m=Ah(a))&&(e=a,n=Math.random()-.5,o=Math.random()-.5,e[0]=n,e[1]=o,m=1);var _=(f.rep+b.rep)/m/m;!f.fixed&&$V(f.pp,f.pp,a,_),!b.fixed&&$V(b.pp,b.pp,a,-_)}}var x=[];for(u=0;u<s;u++){var w;(w=i[u]).fixed||(kh(x,w.p,w.pp),$V(w.p,w.p,x,g),Mh(w.pp,w.p))}var S=(g*=.992)<.01;p&&p(i,r,S),t&&t(S)}}}(f,g,{rect:m,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep(function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].fixed&&Mh(t[n].p,i.getNodeByIndex(n).getLayout())}),v.afterStep(function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||i.getNodeByIndex(a).setLayout(t[a].p),n[r.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],c=i.getEdgeByIndex(a),u=l.n1.p,d=l.n2.p,h=c.getLayout();(h=h?h.slice():[])[0]=h[0]||[],h[1]=h[1]||[],Mh(h[0],u),Mh(h[1],d),+l.curveness&&(h[2]=[(u[0]+d[0])/2-(u[1]-d[1])*l.curveness,(u[1]+d[1])/2-(d[0]-u[0])*l.curveness]),c.setLayout(h)}}),t.forceLayout=v,t.preservedPoints=n,v.step()}else t.forceLayout=null})}function ZV(t,e){var n=[];return t.eachSeriesByType("graph",function(t){var i=t.get("coordinateSystem");if(!i||"view"===i){var r=t.getData(),o=[],a=[];qv(r.mapArray(function(t){var e=r.getItemModel(t);return[+e.get("x"),+e.get("y")]}),o,a),a[0]-o[0]==0&&(a[0]+=1,o[0]-=1),a[1]-o[1]==0&&(a[1]+=1,o[1]-=1);var s=(a[0]-o[0])/(a[1]-o[1]),l=function(t,e,n){return nw(Object(Sh.m)(t.getBoxLayoutParams(),{aspect:n}),{width:e.getWidth(),height:e.getHeight()})}(t,e,s);isNaN(s)&&(o=[l.x,l.y],a=[l.x+l.width,l.y+l.height]);var c=a[0]-o[0],u=a[1]-o[1],d=l.width,h=l.height,p=t.coordinateSystem=new kB;p.zoomLimit=t.get("scaleLimit"),p.setBoundingRect(o[0],o[1],c,u),p.setViewRect(l.x,l.y,d,h),p.setCenter(t.get("center"),e),p.setZoom(t.get("zoom")),n.push(p)}}),n}var KV=rC.prototype,JV=cC.prototype,QV=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}();!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}xh(e,t)}(QV);function tF(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var eF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return xh(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new QV},e.prototype.buildPath=function(t,e){tF(e)?KV.buildPath.call(this,t,e):JV.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return tF(this.shape)?KV.pointAt.call(this,t):JV.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=tF(e)?[e.x2-e.x1,e.y2-e.y1]:JV.tangentAt.call(this,t);return Ph(n,n)},e}(By),nF=["fromSymbol","toSymbol"];function iF(t){return"_"+t+"Type"}function rF(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=mT(r);return i+l+vT(a||0,l)+(o||"")+(s||"")}function oF(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=mT(r),c=vT(a||0,l),u=gT(i,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return u.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,u.name=t,u}}function aF(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var sF=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return xh(e,t),e.prototype._createLine=function(t,e,n){var i=t.hostModel,r=function(t){var e=new eF({name:"line",subPixelOptimize:!0});return aF(e.shape,t),e}(t.getItemLayout(e));r.shape.percent=0,w_(r,{shape:{percent:1}},i,e),this.add(r),Object(Sh.k)(nF,function(n){var i=oF(n,t,e);this.add(i),this[iF(n)]=rF(n,t,e)},this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};aF(a.shape,o),x_(r,a,i,e),Object(Sh.k)(nF,function(n){var i=rF(n,t,e),r=iF(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=oF(n,t,e);this.add(o)}this[r]=i},this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,u=n&&n.focus,d=n&&n.blurScope;if(!n||t.hasItemOption){var h=t.getItemModel(e),p=h.getModel("emphasis");o=p.getModel("lineStyle").getLineStyle(),a=h.getModel(["blur","lineStyle"]).getLineStyle(),s=h.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),u=p.get("focus"),d=p.get("blurScope"),l=L_(h)}var f=t.getItemVisual(e,"style"),g=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,Object(Sh.k)(nF,function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<Mb.length;n++){var i=Mb[n],o=r.getState(i);if(o){var a=o.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}},this);var m=i.getRawValue(e);D_(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==m?t.getName(e):isFinite(m)?cm(m):m)+""});var v=this.getTextContent();if(v){var y=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=y.get("position")||"middle";var b=y.get("distance");Object(Sh.t)(b)||(b=[b,b]),v.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),c_(this,u,d,c)},e.prototype.highlight=function(){Xb(this)},e.prototype.downplay=function(){Zb(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");aF(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var i=1,r=this.parent;r;)r.scaleX&&(i/=r.scaleX),r=r.parent;var o=this.childOfName("line");if(this.__dirty||o.__dirty){var a=o.shape.percent,s=o.pointAt(0),l=o.pointAt(a),c=kh([],l,s);if(Ph(c,c),t&&(t.setPosition(s),w(t,0),t.scaleX=t.scaleY=i*a,t.markRedraw()),e&&(e.setPosition(l),w(e,1),e.scaleX=e.scaleY=i*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var u=void 0,d=void 0,h=n.__labelDistance,p=h[0]*i,f=h[1]*i,g=a/2,m=o.tangentAt(g),v=[m[1],-m[0]],y=o.pointAt(g);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var b=m[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var _=-Math.atan2(m[1],m[0]);l[0]<s[0]&&(_=Math.PI+_),n.rotation=_}var x=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-f,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=f,d="top";break;default:x=0,d="middle"}switch(n.__position){case"end":n.x=c[0]*p+l[0],n.y=c[1]*f+l[1],u=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*p+s[0],n.y=-c[1]*f+s[1],u=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=p*b+s[0],n.y=s[1]+x,u=m[0]<0?"right":"left",n.originX=-p*b,n.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=y[0],n.y=y[1]+x,u="center",n.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-p*b+l[0],n.y=l[1]+x,u=m[0]>=0?"right":"left",n.originX=p*b,n.originY=-x}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||u})}}}function w(t,e){var n=t.__specifiedRotation;if(null==n){var i=o.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(Qg);function lF(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:L_(e)}}function cF(t){return isNaN(t[0])||isNaN(t[1])}function uF(t){return t&&!cF(t[0])&&!cF(t[1])}var dF=function(){function t(t){this.group=new Qg,this._LineCtor=t||sF}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this.group,i=this._lineData;this._lineData=t,i||n.removeAll();var r=lF(t);t.diff(i).add(function(n){e._doAdd(t,n,r)}).update(function(n,o){e._doUpdate(i,t,o,n,r)}).remove(function(t){n.remove(i.getItemGraphicEl(t))}).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=lF(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++){if(uF(e.getItemLayout(i))){var r=new this._LineCtor(e,i,this._seriesScope);r.traverse(n),this.group.add(r),e.setItemGraphicEl(i,r),this._progressiveEls.push(r)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){QC(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(uF(t.getItemLayout(e))){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,n,i,r){var o=t.getItemGraphicEl(n);uF(e.getItemLayout(i))?(o?o.updateData(e,i,r):o=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},t}(),hF=[],pF=[],fF=[],gF=Sf,mF=Nh,vF=Math.abs;function yF(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){hF[0]=gF(r[0],o[0],a[0],u),hF[1]=gF(r[1],o[1],a[1],u),(p=vF(mF(hF,e)-l))<s&&(s=p,i=u)}for(var d=0;d<32;d++){var h=i+c;pF[0]=gF(r[0],o[0],a[0],i),pF[1]=gF(r[1],o[1],a[1],i),fF[0]=gF(r[0],o[0],a[0],h),fF[1]=gF(r[1],o[1],a[1],h);var p=mF(pF,e)-l;if(vF(p)<.01)break;var f=mF(fF,e)-l;c/=2,p<0?f>=0?i+=c:i-=c:f>=0?i-=c:i+=c}return i}function bF(t,e){var n=[],i=Cf,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge(function(t,s){var l=t.getLayout(),c=t.getVisual("fromSymbol"),u=t.getVisual("toSymbol");l.__original||(l.__original=[Ch(l[0]),Ch(l[1])],l[2]&&l.__original.push(Ch(l[2])));var d=l.__original;if(null!=l[2]){if(Mh(r[0],d[0]),Mh(r[1],d[2]),Mh(r[2],d[1]),c&&"none"!==c){var h=FV(t.node1),p=yF(r,d[0],h*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(u&&"none"!==u){h=FV(t.node2),p=yF(r,d[1],h*e);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}Mh(l[0],r[0]),Mh(l[1],r[2]),Mh(l[2],r[1])}else{if(Mh(o[0],d[0]),Mh(o[1],d[1]),kh(a,o[1],o[0]),Ph(a,a),c&&"none"!==c){h=FV(t.node1);Th(o[0],o[0],a,h*e)}if(u&&"none"!==u){h=FV(t.node2);Th(o[1],o[1],a,-h*e)}Mh(l[0],o[0]),Mh(l[1],o[1])}})}function _F(t){return"view"===t.type}var xF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.init=function(t,e){var n=new KL,i=new dF,r=this.group;this._controller=new cR(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(_F(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):x_(s,l,t)}bF(t.getGraph(),VV(t));var c=t.getData();o.updateData(c);var u=t.getEdgeData();a.updateData(u),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var d=t.forceLayout,h=t.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,h);var p=t.get("layout");c.graph.eachNode(function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",function(o){switch(p){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,h),d.setFixed(n),c.setItemLayout(n,[r.x,r.y]);break;case"circular":c.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),WV(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;case"none":default:c.setItemLayout(n,[r.x,r.y]),BV(t.getGraph(),t),i.updateLayout(t)}}).on("dragend",function(){d&&d.setUnfixed(n)}),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(mb(r).focus=e.getAdjacentDataIndices())}}),c.graph.eachEdge(function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(mb(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})});var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode(function(t){qV(t,f,g,m)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function i(){t.step(function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())})}()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker(function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!fR(e,n,t)}),_F(t.coordinateSystem)?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",function(e){uR(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})}).on("zoom",function(e){dR(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),bF(t.getGraph(),VV(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=VV(t);e.eachItemGraphicEl(function(t,e){t&&t.setSymbolScale(n)})},e.prototype.updateLayout=function(t){bF(t.getGraph(),VV(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(lI);function wF(t){return"_EC_"+t}var SF=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[wF(t)]){var i=new OF(t,e);return i.hostGraph=this,this.nodes.push(i),n[wF(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[wF(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(Sh.z(t)&&(t=this.nodes[t]),Sh.z(e)&&(e=this.nodes[e]),t instanceof OF||(t=i[wF(t)]),e instanceof OF||(e=i[wF(e)]),t&&e){var o=t.id+"-"+e.id,a=new MF(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof OF&&(t=t.id),e instanceof OF&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof OF||(e=this._nodesMap[wF(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null))for(var a=[e];a.length;){var s=a.shift(),l=s[r];for(o=0;o<l.length;o++){var c=l[o],u=c.node1===s?c.node2:c.node1;if(!u.__visited){if(t.call(i,u,s))return;a.push(u),u.__visited=!0}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf(function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)i[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)e.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),OF=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=Sh.f(),e=Sh.f(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var r=[i.node1],o=[i.node2],a=0;a<r.length;){var s=r[a];a++,e.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)t.set(s.inEdges[l].dataIndex,!0),r.push(s.inEdges[l].node1)}for(a=0;a<o.length;){var c=o[a];a++,e.set(c.dataIndex,!0);for(l=0;l<c.outEdges.length;l++)t.set(c.outEdges[l].dataIndex,!0),o.push(c.outEdges[l].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),MF=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=Sh.f(),e=Sh.f();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],r=0;r<n.length;){var o=n[r];r++,e.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)t.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}for(r=0;r<i.length;){var s=i[r];r++,e.set(s.dataIndex,!0);for(a=0;a<s.outEdges.length;a++)t.set(s.outEdges[a].dataIndex,!0),i.push(s.outEdges[a].node2)}return{edge:t.keys(),node:e.keys()}},t}();function CF(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}Sh.K(OF,CF("hostGraph","data")),Sh.K(MF,CF("hostGraph","edgeData"));var IF=SF;function TF(t,e,n,i,r){for(var o=new IF(i),a=0;a<t.length;a++)o.addNode(Sh.O(t[a].id,t[a].name,a),a);var s=[],l=[],c=0;for(a=0;a<e.length;a++){var u=e[a],d=u.source,h=u.target;o.addEdge(d,h,c)&&(l.push(u),s.push(Sh.O(zm(u.id,null),d+" > "+h)),c++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=HL(t,n);else{var g=Xw.get(f),m=g&&g.dimensions||[];Sh.r(m,"value")<0&&m.concat(["value"]);var v=jL(t,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;(p=new PL(v,n)).initData(t)}var y=new PL(["value"],n);return y.initData(l,s),r&&r(p,y),gz({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var kF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return xh(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Tj(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Lm(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i){kV(n=this)&&(n.__curvenessList=[],n.__edgeMap={},AV(n));var a=TF(r,i,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=o._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t});var n=nx.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",function(t){return t.resolveParentPath=r,t.getModel=i,t})});return Sh.k(a.edges,function(t){!function(t,e,n,i){if(kV(n)){var r=DV(t,e,n),o=n.__edgeMap,a=o[LV(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(t.node1,t.node2,this,t.dataIndex)},this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),AO("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return FO({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=Sh.H(this.option.categories||[],function(t){return null!=t.value?t:Sh.m({value:0},t)}),e=new PL(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(QO),AF={type:"graphRoam",event:"graphRoam",update:"none"};var DF=function(){return function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}}(),LF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return xh(e,t),e.prototype.getDefaultShape=function(){return new DF},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(By);function PF(t,e){var n=null==t?"":t+"";return e&&(Object(Sh.C)(e)?n=e.replace("{value}",n):Object(Sh.w)(e)&&(n=e(t))),n}var jF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:lm(n[0],e.getWidth()),cy:lm(n[1],e.getHeight()),r:lm(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),u=c.get("roundCap")?WP:WM,d=c.get("show"),h=c.getModel("lineStyle"),p=h.get("width"),f=[s,l];my(f,!a);for(var g=(l=f[1])-(s=f[0]),m=s,v=[],y=0;d&&y<i.length;y++){var b=new u({shape:{startAngle:m,endAngle:l=s+g*Math.min(Math.max(i[y][0],0),1),cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-p,r:r.r},silent:!0});b.setStyle({fill:i[y][1]}),b.setStyle(h.getLineStyle(["color","width"])),v.push(b),m=l}v.reverse(),Object(Sh.k)(v,function(t){return o.add(t)});var _=function(t){if(t<=0)return i[0][1];var e;for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,_,r,s,l,a,p),this._renderTitleAndDetail(t,e,n,_,r),this._renderAnchor(t,r),this._renderPointer(t,e,n,_,r,s,l,a,p)},e.prototype._renderTicks=function(t,e,n,i,r,o,a,s,l){for(var c,u,d=this.group,h=r.cx,p=r.cy,f=r.r,g=+t.get("min"),m=+t.get("max"),v=t.getModel("splitLine"),y=t.getModel("axisTick"),b=t.getModel("axisLabel"),_=t.get("splitNumber"),x=y.get("splitNumber"),w=lm(v.get("length"),f),S=lm(y.get("length"),f),O=o,M=(a-o)/_,C=M/x,I=v.getModel("lineStyle").getLineStyle(),T=y.getModel("lineStyle").getLineStyle(),k=v.get("distance"),A=0;A<=_;A++){if(c=Math.cos(O),u=Math.sin(O),v.get("show")){var D=new rC({shape:{x1:c*(f-(L=k?k+l:l))+h,y1:u*(f-L)+p,x2:c*(f-w-L)+h,y2:u*(f-w-L)+p},style:I,silent:!0});"auto"===I.stroke&&D.setStyle({stroke:i(A/_)}),d.add(D)}if(b.get("show")){var L=b.get("distance")+k,P=PF(cm(A/_*(m-g)+g),b.get("formatter")),j=i(A/_),E=c*(f-w-L)+h,N=u*(f-w-L)+p,R=b.get("rotate"),B=0;"radial"===R?(B=-O+2*Math.PI)>Math.PI/2&&(B+=Math.PI):"tangential"===R?B=-O-Math.PI/2:Object(Sh.z)(R)&&(B=R*Math.PI/180),0===B?d.add(new gb({style:P_(b,{text:P,x:E,y:N,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:j}),silent:!0})):d.add(new gb({style:P_(b,{text:P,x:E,y:N,verticalAlign:"middle",align:"center"},{inheritColor:j}),silent:!0,originX:E,originY:N,rotation:B}))}if(y.get("show")&&A!==_){L=(L=y.get("distance"))?L+l:l;for(var z=0;z<=x;z++){c=Math.cos(O),u=Math.sin(O);var V=new rC({shape:{x1:c*(f-L)+h,y1:u*(f-L)+p,x2:c*(f-S-L)+h,y2:u*(f-S-L)+p},silent:!0,style:T});"auto"===T.stroke&&V.setStyle({stroke:i((A+z/x)/_)}),d.add(V),O+=C}O-=C}else O+=M}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var c=this.group,u=this._data,d=this._progressEls,h=[],p=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),m=t.getData(),v=m.mapDimension("value"),y=+t.get("min"),b=+t.get("max"),_=[y,b],x=[o,a];function w(e,n){var i,o=m.getItemModel(e).getModel("pointer"),a=lm(o.get("width"),r.r),s=lm(o.get("length"),r.r),l=t.get(["pointer","icon"]),c=o.get("offsetCenter"),u=lm(c[0],r.r),d=lm(c[1],r.r),h=o.get("keepAspect");return(i=l?gT(l,u-a/2,d-s,a,s,null,h):new LF({shape:{angle:-Math.PI/2,width:a,r:s,x:u,y:d}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(t,e){var n=f.get("roundCap")?WP:WM,i=f.get("overlap"),a=i?f.get("width"):l/m.count(),c=i?r.r-a:r.r-(t+1)*a,u=i?r.r:r.r-t*a,d=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:c,r:u}});return i&&(d.z2=sm(m.get(v,t),[y,b],[100,0],!0)),d}(g||p)&&(m.diff(u).add(function(e){var n=m.get(v,e);if(p){var i=w(e,o);w_(i,{rotation:-((isNaN(+n)?x[0]:sm(n,_,x,!0))+Math.PI/2)},t),c.add(i),m.setItemGraphicEl(e,i)}if(g){var r=S(e,o),a=f.get("clip");w_(r,{shape:{endAngle:sm(n,_,x,a)}},t),c.add(r),vb(t.seriesIndex,m.dataType,e,r),h[e]=r}}).update(function(e,n){var i=m.get(v,e);if(p){var r=u.getItemGraphicEl(n),a=r?r.rotation:o,s=w(e,a);s.rotation=a,x_(s,{rotation:-((isNaN(+i)?x[0]:sm(i,_,x,!0))+Math.PI/2)},t),c.add(s),m.setItemGraphicEl(e,s)}if(g){var l=d[n],y=S(e,l?l.shape.endAngle:o),b=f.get("clip");x_(y,{shape:{endAngle:sm(i,_,x,b)}},t),c.add(y),vb(t.seriesIndex,m.dataType,e,y),h[e]=y}}).execute(),m.each(function(t){var e=m.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=m.getItemGraphicEl(t),l=m.getItemVisual(t,"style"),c=l.fill;if(s instanceof Uy){var u=s.style;s.useStyle(Object(Sh.m)({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(c);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(sm(m.get(v,t),_,[0,1],!0))),s.z2EmphasisLift=0,p_(s,e),c_(s,r,o,a)}if(g){var d=h[t];d.useStyle(m.getItemVisual(t,"style")),d.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,p_(d,e),c_(d,r,o,a)}}),this._progressEls=h)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=gT(r,e.cx-i/2+lm(o[0],e.r),e.cy-i/2+lm(o[1],e.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),c=+t.get("max"),u=new Qg,d=[],h=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add(function(t){d[t]=new gb({silent:!0}),h[t]=new gb({silent:!0})}).update(function(t,e){d[t]=o._titleEls[e],h[t]=o._detailEls[e]}).execute(),a.each(function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new Qg,m=i(sm(o,[l,c],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),b=r.cx+lm(y[0],r.r),_=r.cy+lm(y[1],r.r);(T=d[e]).attr({z2:f?0:2,style:P_(v,{x:b,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(T)}var x=n.getModel("detail");if(x.get("show")){var w=x.get("offsetCenter"),S=r.cx+lm(w[0],r.r),O=r.cy+lm(w[1],r.r),M=lm(x.get("width"),r.r),C=lm(x.get("height"),r.r),I=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:m,T=h[e],k=x.get("formatter");T.attr({z2:f?0:2,style:P_(x,{x:S,y:O,text:PF(o,k),width:isNaN(M)?null:M,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:I})}),F_(T,{normal:x},o,function(t){return PF(t,k)}),p&&H_(T,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return PF(a?a.interpolatedValue:o,k)}}),g.add(T)}u.add(g)}),this.group.add(u),this._titleEls=d,this._detailEls=h},e.type="gauge",e}(lI),EF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return xh(e,t),e.prototype.getInitialData=function(t,e){return Ij(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(QO);var NF=["itemStyle","opacity"],RF=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new tC,a=new gb;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return xh(e,t),e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e),a=r.getModel("emphasis"),s=r.get(NF);s=null==s?1:s,n||I_(this),this.useStyle(t.getItemVisual(e,"style")),this.style.lineJoin="round",n?(this.setShape({points:o.points}),this.style.opacity=0,w_(this,{style:{opacity:s}},i,e)):x_(this,{style:{opacity:s},shape:{points:o.points}},i,e),p_(this,r),this._updateLabel(t,e),c_(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this.getTextGuideLine(),i=this.getTextContent(),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"style"),l=s.fill;D_(i,L_(o),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:s.opacity,defaultText:t.getName(e)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:l,outsideFill:l});var c=a.linePoints;n.setShape({points:c}),this.textGuideLineConfig={anchor:c?new _p(c[0][0],c[0][1]):null},x_(i,{style:{x:a.x,y:a.y}},r,e),i.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),OA(this,MA(o),{stroke:l})},e}(KM),BF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return xh(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add(function(t){var e=new RF(i,t);i.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)}).remove(function(e){C_(r.getItemGraphicEl(e),t,e)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(lI),zF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Tj(Sh.c(this.getData,this),Sh.c(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return Ij(this,{coordDimensions:["value"],encodeDefaulter:Sh.h(Cw,this)})},e.prototype._defaultLabelLine=function(t){Lm(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(QO);function VF(t,e){t.eachSeriesByType("funnel",function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return nw(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,c=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,function(t){return t}),r=[],o="ascending"===e,a=0,s=t.count();a<s;a++)r[a]=a;return Object(Sh.w)(e)?r.sort(e):"none"!==e&&r.sort(function(t,e){return o?i[t]-i[e]:i[e]-i[t]}),r}(n,r),u=o.x,d=o.y,h="horizontal"===a?[lm(t.get("minSize"),l),lm(t.get("maxSize"),l)]:[lm(t.get("minSize"),s),lm(t.get("maxSize"),s)],p=n.getDataExtent(i),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var m=t.get("funnelAlign"),v=t.get("gap"),y=(("horizontal"===a?s:l)-v*(n.count()-1))/n.count(),b=function(t,e){if("horizontal"===a){var r=sm(n.get(i,t)||0,[f,g],h,!0),o=void 0;switch(m){case"top":o=d;break;case"center":o=d+(l-r)/2;break;case"bottom":o=d+(l-r)}return[[e,o],[e,o+r]]}var c,p=sm(n.get(i,t)||0,[f,g],h,!0);switch(m){case"left":c=u;break;case"center":c=u+(s-p)/2;break;case"right":c=u+s-p}return[[c,e],[c+p,e]]};"ascending"===r&&(y=-y,v=-v,"horizontal"===a?u+=s:d+=l,c=c.reverse());for(var _=0;_<c.length;_++){var x=c[_],w=c[_+1],S=n.getItemModel(x);if("horizontal"===a){var O=S.get(["itemStyle","width"]);null==O?O=y:(O=lm(O,s),"ascending"===r&&(O=-O));var M=b(x,u),C=b(w,u+O);u+=O+v,n.setItemLayout(x,{points:M.concat(C.slice().reverse())})}else{var I=S.get(["itemStyle","height"]);null==I?I=y:(I=lm(I,l),"ascending"===r&&(I=-I));M=b(x,d),C=b(w,d+I);d+=I+v,n.setItemLayout(x,{points:M.concat(C.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each(function(n){var i,r,o,a,s=t.getItemModel(n),l=s.getModel("label").get("position"),c=s.getModel("labelLine"),u=t.getItemLayout(n),d=u.points,h="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(h)"insideLeft"===l?(r=(d[0][0]+d[3][0])/2+5,o=(d[0][1]+d[3][1])/2,i="left"):"insideRight"===l?(r=(d[1][0]+d[2][0])/2-5,o=(d[1][1]+d[2][1])/2,i="right"):(r=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,o=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,i="center"),a=[[r,o],[r,o]];else{var p=void 0,f=void 0,g=void 0,m=void 0,v=c.get("length");"left"===l?(p=(d[3][0]+d[0][0])/2,f=(d[3][1]+d[0][1])/2,r=(g=p-v)-5,i="right"):"right"===l?(p=(d[1][0]+d[2][0])/2,f=(d[1][1]+d[2][1])/2,r=(g=p+v)+5,i="left"):"top"===l?(p=(d[3][0]+d[0][0])/2,o=(m=(f=(d[3][1]+d[0][1])/2)-v)-5,i="center"):"bottom"===l?(p=(d[1][0]+d[2][0])/2,o=(m=(f=(d[1][1]+d[2][1])/2)+v)+5,i="center"):"rightTop"===l?(p="horizontal"===e?d[3][0]:d[1][0],f="horizontal"===e?d[3][1]:d[1][1],"horizontal"===e?(o=(m=f-v)-5,i="center"):(r=(g=p+v)+5,i="top")):"rightBottom"===l?(p=d[2][0],f=d[2][1],"horizontal"===e?(o=(m=f+v)+5,i="center"):(r=(g=p+v)+5,i="bottom")):"leftTop"===l?(p=d[0][0],f="horizontal"===e?d[0][1]:d[1][1],"horizontal"===e?(o=(m=f-v)-5,i="center"):(r=(g=p-v)-5,i="right")):"leftBottom"===l?(p="horizontal"===e?d[1][0]:d[3][0],f="horizontal"===e?d[1][1]:d[2][1],"horizontal"===e?(o=(m=f+v)+5,i="center"):(r=(g=p-v)-5,i="right")):(p=(d[1][0]+d[2][0])/2,f=(d[1][1]+d[2][1])/2,"horizontal"===e?(o=(m=f+v)+5,i="center"):(r=(g=p+v)+5,i="left")),"horizontal"===e?r=g=p:o=m=f,a=[[p,f],[g,m]]}u.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:h}})}(n)})}var FF=.3;function HF(t,e,n,i){for(var r,o=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);r=l,("category"===i.getAxis(s).type?null==r:null==r||isNaN(r))||o.push(i.dataToPoint(l,s))}return o}function GF(t,e,n,i,r){var o=HF(t,n,i,r),a=new tC({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function WF(t){var e=t.get("smooth",!0);return!0===e&&(e=FF),e=Om(e),Object(Sh.l)(e)&&(e=0),{smooth:e}}function UF(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);var r=e.getItemModel(n),o=r.getModel("emphasis");p_(t,r,"lineStyle"),c_(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var qF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new Qg,n._initialized=!1,n}return xh(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,c=WF(t);if(o.diff(a).add(function(t){UF(GF(o,r,t,l,s),o,t,c)}).update(function(e,n){var i=a.getItemGraphicEl(n),r=HF(o,e,l,s);o.setItemGraphicEl(e,i),x_(i,{shape:{points:r}},t,e),I_(i),UF(i,o,e,c)}).remove(function(t){var e=a.getItemGraphicEl(t);r.remove(e)}).execute(),!this._initialized){this._initialized=!0;var u=function(t,e,n){var i=t.model,r=t.getRect(),o=new Qy({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===i.get("layout")?"width":"height";return o.setShape(a,0),w_(o,{shape:{width:r.width,height:r.height}},e,n),o}(s,t,function(){setTimeout(function(){r.removeClipPath()})});r.setClipPath(u)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,a=WF(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var c=GF(i,this._dataGroup,l,o,r);c.incremental=!0,UF(c,i,l,a),s.push(c)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(lI);function YF(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Object(Sh.k)(e.dimensions,function(t){var e=+t.replace("dim","");n[t]=e}),n}}var $F=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return xh(e,t),e.prototype.getInitialData=function(t,e){return HL(null,this,{useEncodeDefaulter:Object(Sh.c)(YF,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,function(e,r){t===e&&i.push(n.getRawIndex(r))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(QO),XF=["lineStyle","opacity"],ZF={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,function(t,n){var r=i[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(XF,!0);null!=o&&(r=o)}e.ensureUniqueItemVisual(n,"style").opacity=r},t.start,t.end)}}}};function KF(t){!function(t){if(t.parallel)return;var e=!1;Sh.k(t.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}(t),function(t){var e=Dm(t.parallelAxis);Sh.k(e,function(e){if(Sh.A(e)){var n=e.parallelIndex||0,i=Dm(t.parallel)[n];i&&i.parallelAxisDefault&&Sh.I(e,i.parallelAxisDefault,!1)}})}(t)}var JF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Object(Sh.k)(QF,function(t,e){n.getZr().on(e,this._handlers[e]=Object(Sh.c)(t,this))},this)),pI(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){fI(this,"_throttledDispatchExpand"),Object(Sh.k)(this._handlers,function(t,n){e.getZr().off(n,t)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(Sh.m)({type:"parallelAxisExpand"},t))},e.type="parallel",e}(eM),QF={mousedown:function(t){tH(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(tH(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&tH(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function tH(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var eH=JF,nH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}
70return xh(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&Sh.I(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){Sh.k(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=Sh.n(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this);Sh.k(n,function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(uw),iH=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return xh(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(oN);function rH(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=aH(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);
vendor: 5,927 bytes, line 70
70s=aH(s,[0,a]),r=o=aH(s,[r,o]),i=0}e[0]=aH(e[0],n),e[1]=aH(e[1],n);var l=oH(e,i);e[i]+=t;var c,u=r||0,d=n.slice();return l.sign<0?d[0]+=u:d[1]-=u,e[i]=aH(e[i],d),c=oH(e,i),null!=r&&(c.sign!==l.sign||c.span<r)&&(e[1-i]=e[i]+l.sign*r),c=oH(e,i),null!=o&&c.span>o&&(e[1-i]=e[i]+c.sign*o),e}function oH(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function aH(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var sH=Sh.k,lH=Math.min,cH=Math.max,uH=Math.floor,dH=Math.ceil,hH=cm,pH=Math.PI;function fH(t,e){return lH(cH(t,e[0]),e[1])}var gH=function(){function t(t,e,n){this.type="parallel",this._axesMap=Sh.f(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;sH(i,function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new iH(t,RE(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this},this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();sH(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),NE(e.scale,e.model)},this)}},this)},t.prototype.resize=function(t,e){this._rect=nw(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],c=this.dimensions.length,u=fH(e.get("axisExpandWidth"),l),d=fH(e.get("axisExpandCount")||0,[0,c]),h=e.get("axisExpandable")&&c>3&&c>d&&d>1&&u>0&&s>0,p=e.get("axisExpandWindow");p?(t=fH(p[1]-p[0],l),p[1]=p[0]+t):(t=fH(u*(d-1),l),(p=[u*(e.get("axisExpandCenter")||uH(c/2))-t/2])[1]=p[0]+t);var f=(s-t)/(c-d);f<3&&(f=0);var g=[uH(hH(p[0]/u,1))+1,dH(hH(p[1]/u,1))-1],m=f/u*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:h,axisExpandWidth:u,axisCollapseWidth:f,axisExpandWindow:p,axisCount:c,winInnerIndices:g,axisExpandWindow0Pos:m}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each(function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),sH(n,function(e,n){var o=(i.axisExpandable?function(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,c=s,u=!1;t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],c=o,u=!0):(n=r-(a-1-t)*s,i=s);return{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:i}}:function(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}})(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:pH/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],c=s[r],u=[1,0,0,1,0,0];vp(u,u,c),mp(u,u,l),this._axesLayout[e]={position:l,rotation:c,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];Sh.k(o,function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)});for(var l=this.hasAxisBrushed(),c=n;c<i;c++){var u=void 0;if(l){u="active";for(var d=t.getValues(a,c),h=0,p=o.length;h<p;h++){if("inactive"===s[h].getActiveState(d[h])){u="inactive";break}}}else u="normal";e(u,c)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){return FC([t,0],this._axesLayout[e].transform)},t.prototype.getAxisLayout=function(t){return Sh.d(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",c=e.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),d=null!=u[0];if(c)d&&c&&s<r*u[0]?(l="jump",a=s-r*u[2]):d&&c&&s>r*(1-u[0])?(l="jump",a=s-r*(1-u[2])):(a=s-r*u[1])>=0&&(a=s-r*(1-u[1]))<=0&&(a=0),(a*=e.axisExpandWidth/c)?rH(a,i,o,"all"):l="none";else{var h=i[1]-i[0];(i=[cH(0,o[1]*s/h-h/2)])[1]=lH(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:l}},t}();var mH={create:function(t,e){var n=[];return t.eachComponent("parallel",function(i,r){var o=new gH(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)}),t.eachSeries(function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",Ym).models[0];t.coordinateSystem=e.coordinateSystem}}),n}},vH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return xh(e,t),e.prototype.getAreaSelectStyle=function(){return cv([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["
70width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=Sh.d(t);if(e)for(var n=e.length-1;n>=0;n--)um(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},e}(uw);Sh.K(vH,Rj);var yH=vH,bH=!0,_H=Math.min,xH=Math.max,wH=Math.pow,SH=1e4,OH=6,MH=6,CH={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},IH={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},TH={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},kH=0,AH=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new Qg,n._uid="brushController_"+kH++,Object(Sh.k)(iG,function(t,e){this._handlers[e]=Object(Sh.c)(t,this)},n),n}return xh(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||function(t,e,n){oR(t)[e]=n}(e,"globalPan",this._uid),Object(Sh.k)(this._handlers,function(t,n){e.on(n,t)}),this._brushType=t.brushType,this._brushOption=Object(Sh.I)(Object(Sh.d)(TH),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;!function(t,e,n){var i=oR(t);i[e]===n&&(i[e]=null)}(t,"globalPan",this._uid),Object(Sh.k)(this._handlers,function(e,n){t.off(n,e)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(Sh.k)(t,function(t){e[t.panelId]=Object(Sh.d)(t)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(Sh.H)(t,function(t){return Object(Sh.I)(Object(Sh.d)(TH),t,!0)});var e="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,o=this._creatingCover;return new cL(n,t,function(t,e){return a(t.__brushOption,e)},a).add(s).update(s).remove(function(t){n[t]!==o&&r.group.remove(n[t])}).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(e,a){var s=t[e];if(null!=a&&n[a]===o)i[e]=n[a];else{var l=i[e]=null!=a?(n[a].__brushOption=s,n[a]):LH(r,DH(r,s));EH(r,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),zH(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Gh);function DH(t,e){var n=oG[e.brushType].createCover(t,e);return n.__brushOption=e,jH(n,e),t.group.add(n),n}function LH(t,e){var n=NH(e);return n.endCreating&&(n.endCreating(t,e),jH(e,e.__brushOption)),e}function PH(t,e){var n=e.__brushOption;NH(e).updateCoverShape(t,e,n.range,n)}function jH(t,e){var n=e.z;null==n&&(n=SH),t.traverse(function(t){t.z=n,t.z2=n})}function EH(t,e){NH(e).updateCommon(t,e),PH(t,e)}function NH(t){return oG[t.__brushOption.brushType]}function RH(t,e,n){var i,r=t._panels;if(!r)return bH;var o=t._transform;return Object(Sh.k)(r,function(t){t.isTargetByCursor(e,n,o)&&(i=t)}),i}function BH(t,e){var n=t._panels;if(!n)return bH;var i=e.__brushOption.panelId;return null!=i?n[i]:bH}function zH(t){var e=t._covers,n=e.length;return Object(Sh.k)(e,function(e){t.group.remove(e)},t),e.length=0,!!n}function VH(t,e){var n=Object(Sh.H)(t._covers,function(t){var e=t.__brushOption,n=Object(Sh.d)(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function FH(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function HH(t,e,n,i){var r=new Qg;return r.add(new Qy({name:"main",style:qH(n),silent:!0,draggable:!0,cursor:"move",drift:Object(Sh.h)(XH,t,e,r,["n","s","w","e"]),ondragend:Object(Sh.h)(VH,e,{isEnd:!0})})),Object(Sh.k)(i,function(n){r.add(new Qy({name:n.join(""),style:{opacity:0}
vendor: 19,341 bytes, line 70
70,draggable:!0,silent:!0,invisible:!0,drift:Object(Sh.h)(XH,t,e,r,n),ondragend:Object(Sh.h)(VH,e,{isEnd:!0})}))}),r}function GH(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=xH(r,MH),a=n[0][0],s=n[1][0],l=a-r/2,c=s-r/2,u=n[0][1],d=n[1][1],h=u-o+r/2,p=d-o+r/2,f=u-a,g=d-s,m=f+r,v=g+r;UH(t,e,"main",a,s,f,g),i.transformable&&(UH(t,e,"w",l,c,o,v),UH(t,e,"e",h,c,o,v),UH(t,e,"n",l,c,m,o),UH(t,e,"s",l,p,m,o),UH(t,e,"nw",l,c,o,o),UH(t,e,"ne",h,c,o,o),UH(t,e,"sw",l,p,o,o),UH(t,e,"se",h,p,o,o))}function WH(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(qH(n)),r.attr({silent:!i,cursor:i?"move":"default"}),Object(Sh.k)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var r=e.childOfName(n.join("")),o=1===n.length?$H(t,n[0]):function(t,e){var n=[$H(t,e[0]),$H(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?IH[o]+"-resize":null})})}function UH(t,e,n,i,r,o,a){var s,l,c,u,d,h=e.childOfName(n);h&&h.setShape((s=JH(t,e,[[i,r],[i+o,r+a]]),l=_H(s[0][0],s[1][0]),c=_H(s[0][1],s[1][1]),u=xH(s[0][0],s[1][0]),d=xH(s[0][1],s[1][1]),{x:l,y:c,width:u-l,height:d-c}))}function qH(t){return Object(Sh.i)({strokeNoScale:!0},t.brushStyle)}function YH(t,e,n,i){var r=[_H(t,n),_H(e,i)],o=[xH(t,n),xH(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function $H(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[HC({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return VC(t.group)}(t))]}function XH(t,e,n,i,r,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=KH(e,r,o);Object(Sh.k)(i,function(t){var e=CH[t];s[e[0]][e[1]]+=l[e[0]]}),a.range=t.fromRectRange(YH(s[0][0],s[1][0],s[0][1],s[1][1])),EH(e,n),VH(e,{isEnd:!1})}function ZH(t,e,n,i){var r=e.__brushOption.range,o=KH(t,n,i);Object(Sh.k)(r,function(t){t[0]+=o[0],t[1]+=o[1]}),EH(t,e),VH(t,{isEnd:!1})}function KH(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function JH(t,e,n){var i=BH(t,e);return i&&i!==bH?i.clipPath(n,t._transform):Object(Sh.d)(n)}function QH(t){var e=t.event;e.preventDefault&&e.preventDefault()}function tG(t,e,n){return t.childOfName("main").contain(e,n)}function eG(t,e,n,i){var r,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1];return wH(r*r+o*o,.5)>OH}(t)||o){if(a&&!o){"single"===s.brushMode&&zH(t);var l=Object(Sh.d)(s);l.brushType=nG(l.brushType,a),l.panelId=a===bH?null:a.panelId,o=t._creatingCover=DH(t,l),t._covers.push(o)}if(o){var c=oG[nG(t._brushType,a)];o.__brushOption.range=c.getCreatingRange(JH(t,o,t._track)),i&&(LH(t,o),c.updateCommon(t,o)),PH(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&RH(t,e,n)&&zH(t)&&(r={isEnd:i,removeOnClick:!0});return r}function nG(t,e){return"auto"===t?e.defaultBrushType:t}var iG={mousedown:function(t){if(this._dragging)rG(this,t);else if(!t.target||!t.target.draggable){QH(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=RH(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=RH(t,e,n);if(!t._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===bH||s.panelId===o.panelId)&&oG[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}(this,t,i),this._dragging){QH(t);var r=eG(this,t,i,!1);r&&VH(this,r)}},mouseup:function(t){rG(this,t)}};function rG(t,e){if(t._dragging){QH(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),o=eG(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&VH(t,o)}}var oG={lineX:aG(0),lineY:aG(1),rect:{createCover:function(t,e){function n(t){return t}return HH({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=FH(t);return YH(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){GH(t,e,n,i)},updateCommon:WH,contain:tG},polygon:{createCover:function(t,e){var n=new Qg;return n.add(new tC({name:"main",style:qH(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new KM({name:"main",draggable:!0,drift:Object(Sh.h)(ZH,t,e),ondragend:Object(Sh.h)(VH,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:JH(t,e,n)})},updateCommon:WH,contain:tG}};function aG(t){return{createCover:function(e,n){return HH({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=FH(e);return[_H(n[0][t],n[1][t]),xH(n[0][t],n[1][t])]},updateCoverShape:function(e,n,i,r){var o,a=BH(e,n);if(a!==bH&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),GH(e,n,l,r)},updateCommon:WH,contain:tG}}var sG=AH;function lG(t){return t=dG(t),function(e){return UC(e,t)}}function cG(t,e){return t=dG(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function uG(t,e,n){var i=dG(t);return function(t,r){return i.contain(r[0],r[1])&&!fR(t,e,n)}}function dG(t){return kp.create(t)}var hG=["axisLine","axisTickLabel","axisName"];var pG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new sG(n.getZr())).on("brush",Sh.c(this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!function(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Qg,this.group.add(this._axisGroup),t.get("show")){var o=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,c=t.axis.dim,u=a.getAxisLayout(c),d=Sh.m({strokeContainThreshold:l},u),h=new SN(t,d);Sh.k(hG,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(d,s,t,o,l,n),WC(r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),c=kp.create({x:a[0],y:-r/2,width:s,height:r});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:lG(c),isTargetByCursor:uG(c,o,i),getLinearBrushOtherExtent:cG(c,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return Sh.H(t.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=Sh.H(e,function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(eM),fG={type:"axisAreaSelect",event:"axisAreaSelected"};var gG={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function mG(t){t.registerComponentView(eH),t.registerComponentModel(nH),t.registerCoordinateSystem("parallel",mH),t.registerPreprocessor(KF),t.registerComponentModel(yH),t.registerComponentView(pG),Yj(t,"parallel",yH,gG),function(t){t.registerAction(fG,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(e){e.axis.model.setActiveIntervals(t.intervals)})}),t.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(e){e.setAxisExpand(t)})})}(t)}var vG=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}}(),yG=function(t){function e(e){return t.call(this,e)||this}return xh(e,t),e.prototype.getDefaultShape=function(){return new vG},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){Xb(this)},e.prototype.downplay=function(){Zb(this)},e}(By);function bG(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");Object(Sh.C)(i)&&Object(Sh.C)(r)&&(t.fill=new gC(0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:r,offset:1}]))}}var _G=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return xh(e,t),e.prototype.render=function(t,e,n){var i=this,r=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,c=t.getData(),u=t.getData("edge"),d=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge(function(e){var n=new yG,i=mb(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var r,a,c,h,p,f,g,m,v=e.getModel(),y=v.getModel("lineStyle"),b=y.get("curveness"),_=e.node1.getLayout(),x=e.node1.getModel(),w=x.get("localX"),S=x.get("localY"),O=e.node2.getLayout(),M=e.node2.getModel(),C=M.get("localX"),I=M.get("localY"),T=e.getLayout();n.shape.extent=Math.max(1,T.dy),n.shape.orient=d,"vertical"===d?(r=(null!=w?w*s:_.x)+T.sy,a=(null!=S?S*l:_.y)+_.dy,c=(null!=C?C*s:O.x)+T.ty,p=r,f=a*(1-b)+(h=null!=I?I*l:O.y)*b,g=c,m=a*b+h*(1-b)):(r=(null!=w?w*s:_.x)+_.dx,a=(null!=S?S*l:_.y)+T.sy,p=r*(1-b)+(c=null!=C?C*s:O.x)*b,f=a,g=r*b+c*(1-b),m=h=(null!=I?I*l:O.y)+T.ty),n.setShape({x1:r,y1:a,x2:c,y2:h,cpx1:p,cpy1:f,cpx2:g,cpy2:m}),n.useStyle(y.getItemStyle()),bG(n.style,d,e);var k=""+v.get("value"),A=L_(v,"edgeLabel");D_(n,A,{labelFetcher:{getFormattedLabel:function(e,n,i,r,o,a){return t.getFormattedLabel(e,n,"edge",r,Object(Sh.Q)(o,A.normal&&A.normal.get("formatter"),k),a)}},labelDataIndex:e.dataIndex,defaultText:k}),n.setTextConfig({position:"inside"});var D=v.getModel("emphasis");p_(n,v,"lineStyle",function(t){var n=t.getItemStyle();return bG(n,d,e),n}),o.add(n),u.setItemGraphicEl(e.dataIndex,n);var L=D.get("focus");c_(n,"adjacency"===L?e.getAdjacentDataIndices():"trajectory"===L?e.getTrajectoryDataIndices():L,D.get("blurScope"),D.get("disabled"))}),r.eachNode(function(e){var n=e.getLayout(),i=e.getModel(),r=i.get("localX"),a=i.get("localY"),u=i.getModel("emphasis"),d=i.get(["itemStyle","borderRadius"])||0,h=new Qy({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy,r:d},style:i.getModel("itemStyle").getItemStyle(),z2:10});D_(h,L_(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),p_(h,i),o.add(h),c.setItemGraphicEl(e.dataIndex,h),mb(h).dataType="node";var p=u.get("focus");c_(h,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,u.get("blurScope"),u.get("disabled"))}),c.eachItemGraphicEl(function(e,r){c.getItemModel(r).get("draggable")&&(e.drift=function(e,o){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")}),!this._data&&t.isAnimationEnabled()&&o.setClipPath(function(t,e,n){var i=new Qy({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return w_(i,{shape:{width:t.width+20}},e,n),i}(o.getBoundingRect(),t,function(){o.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(lI),xG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=t.levels||[];this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new nx(r[a],this,e));return TF(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t}),e.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t})}).data},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value;return AO("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return AO("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e).getLayout().value;i.value=r}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(QO);function wG(t,e){t.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=function(t,e){return nw(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,c=s.edges;!function(t){Sh.k(t,function(t){var e=LG(t.outEdges,DG),n=LG(t.inEdges,DG),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)})}(l),function(t,e,n,i,r,o,a,s,l){(function(t,e,n,i,r,o,a){for(var s=[],l=[],c=[],u=[],d=0,h=0;h<e.length;h++)s[h]=1;for(var h=0;h<t.length;h++)l[h]=t[h].inEdges.length,0===l[h]&&c.push(t[h]);var p=-1;for(;c.length;){for(var f=0;f<c.length;f++){var g=c[f],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>p&&(p=m.depth),g.setLayout({depth:v?m.depth:d},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var b=g.outEdges[y],_=e.indexOf(b);s[_]=0;var x=b.node2,w=t.indexOf(x);0==--l[w]&&u.indexOf(x)<0&&u.push(x)}}++d,c=u,u=[]}for(var h=0;h<s.length;h++)if(1===s[h])throw new Error("Sankey is a DAG, the original data has cycle!");var S=p>d-1?p:d-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var c=0;c<l.inEdges.length;c++){var u=l.inEdges[c];r.indexOf(u.node1)<0&&r.push(u.node1)}}o=r,r=[],++a}Sh.k(t,function(t){SG(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)})}else"justify"===e&&function(t,e){Sh.k(t,function(t){SG(t)||t.outEdges.length||t.setLayout({depth:e},!0)})}(t,i)}(t,a,0,S);!function(t,e,n){Sh.k(t,function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)})}(t,"vertical"===o?(r-n)/S:(i-n)/S,o)})(t,e,n,r,o,s,l),function(t,e,n,i,r,o,a){var s=function(t,e){var n=[],i="vertical"===e?"y":"x",r=Km(t,function(t){return t.getLayout()[i]});return r.keys.sort(function(t,e){return t-e}),Sh.k(r.keys,function(t){n.push(r.buckets.get(t))}),n}(t,a);(function(t,e,n,i,r,o){var a=1/0;Sh.k(t,function(t){var e=t.length,s=0;Sh.k(t,function(t){s+=t.getLayout().value});var l="vertical"===o?(i-(e-1)*r)/s:(n-(e-1)*r)/s;l<a&&(a=l)}),Sh.k(t,function(t){Sh.k(t,function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))})}),Sh.k(e,function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)})})(s,e,n,i,r,a),OG(s,r,n,i,a);for(var l=1;o>0;o--)MG(s,l*=.99,a),OG(s,r,n,i,a),PG(s,l,a),OG(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){var n="vertical"===e?"x":"y";Sh.k(t,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]}),t.inEdges.sort(function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]})}),Sh.k(t,function(t){var e=0,n=0;Sh.k(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),Sh.k(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}(t,s)}(l,c,n,i,o,a,0!==Sh.n(l,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))})}function SG(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function OG(t,e,n,i,r){var o="vertical"===r?"x":"y";Sh.k(t,function(t){var a,s,l;t.sort(function(t,e){return t.getLayout()[o]-e.getLayout()[o]});for(var c=0,u=t.length,d="vertical"===r?"dx":"dy",h=0;h<u;h++)(l=c-(s=t[h]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]+s.getLayout()[d]+e;if((l=c-e-("vertical"===r?i:n))>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),c=a;for(h=u-2;h>=0;--h)(l=(s=t[h]).getLayout()[o]+s.getLayout()[d]+e-c)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]}})}function MG(t,e,n){Sh.k(t.slice().reverse(),function(t){Sh.k(t,function(t){if(t.outEdges.length){var i=LG(t.outEdges,CG,n)/LG(t.outEdges,DG);if(isNaN(i)){var r=t.outEdges.length;i=r?LG(t.outEdges,IG,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-AG(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-AG(t,n))*e;t.setLayout({y:a},!0)}}})})}function CG(t,e){return AG(t.node2,e)*t.getValue()}function IG(t,e){return AG(t.node2,e)}function TG(t,e){return AG(t.node1,e)*t.getValue()}function kG(t,e){return AG(t.node1,e)}function AG(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function DG(t){return t.getValue()}function LG(t,e,n){for(var i=0,r=t.length,o=-1;++o<r;){var a=+e(t[o],n);
70isNaN(a)||(i+=a)}return i}function PG(t,e,n){Sh.k(t,function(t){Sh.k(t,function(t){if(t.inEdges.length){var i=LG(t.inEdges,TG,n)/LG(t.inEdges,DG);if(isNaN(i)){var r=t.inEdges.length;i=r?LG(t.inEdges,kG,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-AG(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-AG(t,n))*e;t.setLayout({y:a},!0)}}})})}function jG(t){t.eachSeriesByType("sankey",function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var r=1/0,o=-1/0;Sh.k(n,function(t){var e=t.getLayout().value;e<r&&(r=e),e>o&&(o=e)}),Sh.k(n,function(e){var n=new aV({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),i=e.getModel().get(["itemStyle","color"]);null!=i?(e.setVisual("color",i),e.setVisual("style",{fill:i})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))})}i.length&&Sh.k(i,function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)})})}var EG=function(){function t(){}return t.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!this._hasEncodeRule("x")):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var l=["x","y"],c="horizontal"===t.layout?0:1,u=this._baseAxisDim=l[c],d=l[1-c],h=[r,o],p=h[c].get("type"),f=h[1-c].get("type"),g=t.data;if(g&&i){var m=[];Sh.k(g,function(t,e){var n;Sh.t(t)?(n=t.slice(),t.unshift(e)):Sh.t(t.value)?((n=Sh.m({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,m.push(n)}),t.data=m}var v=this.defaultValueDimensions,y=[{name:u,type:hL(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:hL(f),dimsDef:v.slice()}];return Ij(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:Sh.h(Mw,y,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),NG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return xh(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(QO);Object(Sh.K)(NG,EG,!0);var RG=NG,BG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add(function(t){if(i.hasValue(t)){var e=FG(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(I_(n),HG(s,n,i,t)):n=FG(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},e.type="boxplot",e}(lI),zG=function(){return function(){}}(),VG=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return xh(e,t),e.prototype.getDefaultShape=function(){return new zG},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(By);function FG(t,e,n,i,r){var o=t.ends,a=new VG({shape:{points:r?GG(o,i,t):o}});return HG(t,a,e,n,r),a}function HG(t,e,n,i,o){var a=n.hostModel;(0,r[o?"initProps":"updateProps"])(e,{shape:{points:t.ends}},a,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(i),l=s.getModel("emphasis");p_(e,s),c_(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function GG(t,e,n){return Sh.H(t,function(t){return(t=t.slice())[e]=n.initBaseline,t})}var WG=BG,UG=Sh.k;function qG(t){var e=function(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(t){var i=t.getBaseAxis(),r=Sh.r(n,i);r<0&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)}),e}(t);UG(e,function(t){var e=t.seriesModels;e.length&&(!function(t){var e,n=t.axis,i=t.seriesModels,r=i.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;UG(i,function(t){l=Math.max(l,t.getData().count())});var c=n.getExtent();e=Math.abs(c[1]-c[0])/l}UG(i,function(t){var n=t.get("boxWidth");Sh.t(n)||(n=[n,n]),s.push([lm(n[0],e)||0,lm(n[1],e)||0])});var u=.8*e-2,d=u/r*.3,h=(u-d*(r-1))/r,p=h/2-u/2;UG(i,function(t,e){a.push(p),p+=d+h,o.push(Math.min(Math.max(h,s[e][0]),s[e][1]))})}(t),UG(e,function(e,n){!function(t,e,n){var i=t.coordinateSystem,r=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],c=r.mapDimension(l[a]),u=r.mapDimensionsAll(l[s]);if(null==c||u.length<5)return;for(var d=0;d<r.count();d++){var h=r.get(c,d),p=b(h,u[2],d),f=b(h,u[0],d),g=b(h,u[1],d),m=b(h,u[3],d),v=b(h,u[4],d),y=[];_(y,g,!1),_(y,m,!0),y.push(f,g,v,m),x(y,f),x(y,v),x(y,p),r.setItemLayout(d,{initBaseline:p[s],ends:y})}function b(t,n,o){var l,c=r.get(n,o),u=[];return u[a]=t,u[s]=c,isNaN(t)||isNaN(c)?l=[NaN,NaN]:(l=i.dataToPoint(u))[a]+=e,l}function _(t,e,n){var i=e.slice(),r=e.slice();i[a]+=o,r[a]-=o,n?t.push(i,r):t.push(r,i)}function x(t,e){var n=e.slice(),i=e.slice();n[a]-=o,i[a]+=o,t.push(n,i)}}(e,t.boxOffsetList[n],t.boxWidthList[n])}))})}var YG={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==mw){0,Vw("")}var n=function(t,e){for(var n=[],i=[],r=(e=e||{}).boundIQR,o="none"===r||0===r,a=0;a<t.length;a++){var s=um(t[a].slice()),l=wm(s,.25),c=wm(s,.5),u=wm(s,.75),d=s[0],h=s[s.length-1],p=(null==r?1.5:r)*(u-l),f=o?d:Math.max(d,l-p),g=o?h:Math.min(h,u+p),m=e.itemNameFormatter,v=Object(Sh.w)(m)?m({value:a}):Object(Sh.C)(m)?m.replace("{value}",a+""):a+"";n.push([v,f,l,c,u,g]);for(var y=0;y<s.length;y++){var b=s[y];if(b<f||b>g){var _=[v,b];i.push(_)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var $G=["itemStyle","borderColor"],XG=["itemStyle","borderColor0"],ZG=["itemStyle","borderColorDoji"],KG=["itemStyle","color"],JG=["itemStyle","color0"];function QG(t,e){return e.get(t>0?KG:JG)}function tW(t,e){return e.get(0===t?ZG:t>0?$G:XG)}var eW={seriesType:"candlestick",plan:nM(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),r=e.getItemLayout(n).sign,o=i.getItemStyle();o.fill=QG(r,i),o.stroke=tW(r,i)||o.fill;var a=e.ensureUniqueItemVisual(n,"style");Object(Sh.m)(a,o)}}}}},nW=["color","borderColor"],iW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){QC(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add(function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&sW(s,a))return;var l=aW(a,n,!0);w_(l,{shape:{points:a.ends}},t,n),lW(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}}).update(function(a,l){var c=n.getItemGraphicEl(l);if(e.hasValue(a)){var u=e.getItemLayout(a);o&&sW(s,u)?i.remove(c):(c?(x_(c,{shape:{points:u.ends}},t,a),I_(c)):c=aW(u,a),lW(c,e,a,r),i.add(c),e.setItemGraphicEl(a,c))}else i.remove(c)}).remove(function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)}).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),hW(t,this.group);var e=t.get("clip",!0)?pP(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=aW(i.getItemLayout(n),n);lW(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){hW(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(lI),rW=function(){return function(){}}(),oW=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return xh(e,t),e.prototype.getDefaultShape=function(){return new rW},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(By);function aW(t,e,n){var i=t.ends;return new oW({shape:{points:n?cW(i,t):i},z2:100})}function sW(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function lW(t,e,n,i){var r=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,p_(t,r);var o=e.getItemLayout(n).sign;Sh.k(t.states,function(t,e){var n=r.getModel(e),i=QG(o,n),a=tW(o,n)||i,s=t.style||(t.style={});i&&(s.fill=i),a&&(s.stroke=a)});var a=r.getModel("emphasis");c_(t,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function cW(t,e){return Sh.H(t,function(t){return(t=t.slice())[1]=e.initBaseline,t})}var uW=function(){return function(){}}(),dW=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return xh(e,t),e.prototype.getDefaultShape=function(){return new uW},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3},e}(By);function hW(t,e,n,i){var r=t.getData(),o=r.getLayout("largePoints"),a=new dW({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new dW({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new dW({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),pW(1,a,t,r),pW(-1,s,t,r),pW(0,l,t,r),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function pW(t,e,n,i){var r=tW(t,n)||QG(t,n),o=n.getModel("itemStyle").getItemStyle(nW);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var fW=iW,gW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return xh(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(QO);Object(Sh.K)(gW,EG,!0);var mW=gW;function vW(t){t&&Sh.t(t.series)&&Sh.k(t.series,function(t){Sh.A(t)&&"k"===t.type&&(t.type="candlestick")})}function yW(t,e,n,i,r,o){return n>i?-1:n<i?1:o?0:e>0?t.get(r,e-1)<=i?1:-1:1}var bW={seriesType:"candlestick",plan:nM(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=lm(Object(Sh.P)(t.get("barMaxWidth"),r),r),a=lm(Object(Sh.P)(t.get("barMinWidth"),
vendor: 27,850 bytes, line 70
701),r),s=t.get("barWidth");return null!=s?lm(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[r])),l=Object(Sh.H)(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),c=l[0],u=l[1],d=l[2],h=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:t.pipelineContext.large?function(n,i){var a,l,p=nP(4*n.count),f=0,g=[],m=[],v=i.getStore(),y=!!t.get(["itemStyle","borderColorDoji"]);for(;null!=(l=n.next());){var b=v.get(s,l),_=v.get(c,l),x=v.get(u,l),w=v.get(d,l),S=v.get(h,l);isNaN(b)||isNaN(w)||isNaN(S)?(p[f++]=NaN,f+=3):(p[f++]=yW(v,l,_,x,u,y),g[r]=b,g[o]=w,a=e.dataToPoint(g,null,m),p[f++]=a?a[0]:NaN,p[f++]=a?a[1]:NaN,g[o]=S,a=e.dataToPoint(g,null,m),p[f++]=a?a[1]:NaN)}i.setLayout("largePoints",p)}:function(t,n){var a,l=n.getStore();for(;null!=(a=t.next());){var p=l.get(s,a),f=l.get(c,a),g=l.get(u,a),m=l.get(d,a),v=l.get(h,a),y=Math.min(f,g),b=Math.max(f,g),_=I(y,p),x=I(b,p),w=I(m,p),S=I(v,p),O=[];T(O,x,0),T(O,_,1),O.push(A(S),A(x),A(w),A(_));var M=n.getItemModel(a),C=!!M.get(["itemStyle","borderColorDoji"]);n.setItemLayout(a,{sign:yW(l,a,f,g,u,C),initBaseline:f>g?x[o]:_[o],ends:O,brushRect:k(m,v,p)})}function I(t,n){var i=[];return i[r]=n,i[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function T(t,e,n){var o=e.slice(),a=e.slice();o[r]=zC(o[r]+i/2,1,!1),a[r]=zC(a[r]-i/2,1,!0),n?t.push(o,a):t.push(a,o)}function k(t,e,n){var a=I(t,n),s=I(e,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function A(t){return t[r]=zC(t[r],1),t}}}}};function _W(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})})}var xW=function(t){function e(e,n){var i=t.call(this)||this,r=new YL(e,n),o=new Qg;return i.add(r),i.add(o),i.updateData(e,n),i}return xh(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=gT(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),r.add(a)}_W(r,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}_W(n,t)},e.prototype.highlight=function(){Xb(this)},e.prototype.downplay=function(){Zb(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=mT(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),c=l&&l.fill,u=o.getModel("emphasis");r.setScale(s),r.traverse(function(t){t.setStyle("fill",c)});var d=vT(t.getItemVisual(e,"symbolOffset"),s);d&&(r.x=d[0],r.y=d[1]);var h=t.getItemVisual(e,"symbolRotate");r.rotation=(h||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=a,p.color=c,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,c_(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Qg),wW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.init=function(){this._symbolDraw=new KL(xW)},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(r.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();var r=CP("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e,n,i=t.coordinateSystem;i&&i.getRoamTransform&&(this.group.transform=(e=i.getRoamTransform(),fp(n=[1,0,0,1,0,0],e),n),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(lI),SW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return xh(e,t),e.prototype.getInitialData=function(t,e){return HL(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(QO);var OW=function(t){function e(e,n,i){var r=t.call(this)||this;return r.add(r.createLine(e,n,i)),r._updateEffectSymbol(e,n),r}return xh(e,t),e.prototype.createLine=function(t,e,n){return new sF(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");Sh.t(i)||(i=[i,i]);var o=t.getItemVisual(e,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==r&&(this.remove(s),(s=gT(r,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=i[0],s.scaleY=i[1],s.setColor(a),this._symbolType=r,this._symbolScale=i,this._updateEffectAnimation(t,n,e))},e.prototype._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),c=Sh.O(e.get("delay"),function(e){return e/t.count()*o/3});if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var u=void 0;u=Sh.w(c)?c(n):c,i.__t>0&&(u=-o*i.__t),this._animateSymbol(i,o,u,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during(function(){o._updateSymbolPosition(t)});i||a.done(function(){o.remove(t)}),a.start()}},e.prototype._getLineLength=function(t){return Eh(t.__p1,t.__cp1)+Eh(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=Sf,l=Of;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var c=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),u=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*Eh(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*Eh(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(Qg),MW=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createPolyline(e,n,i),r}return xh(e,t),e.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new tC({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel;x_(this.childAt(0),{shape:{points:t.getItemLayout(e)}},i,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var c=r.getModel("emphasis");o=c.getModel("lineStyle").getLineStyle(),l=c.get("disabled"),a=c.get("focus"),s=c.get("blurScope")}i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,c_(this,a,s,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(Qg),CW=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return xh(e,t),e.prototype.createLine=function(t,e,n){return new MW(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++){var o=e[r-1],a=e[r];i+=Eh(o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(e<this._lastFramePercent){for(o=Math.min(a+1,r-1);o>=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;o<r&&!(i[o]>e);o++);o=Math.min(o-1,r-2)}var s=(e-i[o])/(i[o+1]-i[o]),l=n[o],c=n[o+1];t.x=l[0]*(1-s)+s*c[0],t.y=l[1]*(1-s)+s*c[1];var u=t.__t<1?c[0]-l[0]:l[0]-c[0],d=t.__t<1?c[1]-l[1]:l[1]-c[1];t.rotation=-Math.atan2(d,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(OW),IW=function(){return function(){this.polyline=!1,this.curveness=0,this.segs=[]}}(),TW=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return xh(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new IW},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){t.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],c=i[n++],u=i[n++];if(t.moveTo(s,l),r>0){var d=(s+c)/2-(l-u)*r,h=(l+u)/2-(c-s)*r;t.quadraticCurveTo(d,h,c,u)}else t.lineTo(c,u)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var c=i[s++],u=i[s++],d=1;d<l;d++){if(yy(c,u,h=i[s++],p=i[s++],o,t,e))return a}a++}else for(a=0,s=0;s<i.length;){c=i[s++],u=i[s++];var h=i[s++],p=i[s++];if(r>0){if(_y(c,u,(c+h)/2-(u-p)*r,(u+p)/2-(h-c)*r,h,p,o,t,e))return a}else if(yy(c,u,h,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a<e.length;){var s=e[a++],l=e[a++];n=Math.min(s,n),r=Math.max(s,r),i=Math.min(l,i),o=Math.max(l,o)}t=this._rect=new kp(n,i,r,o)}return t},e}(By),kW=function(){function t(){this.group=new Qg}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],i=e.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+i.length);a.set(r),a.set(i,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new TW({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null);var o=mb(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),AW={seriesType:"lines",plan:nM(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var c=0,u=r.start;u<r.end;u++)c+=t.getLineCoordsCount(u);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);var d=0,h=[];for(u=r.start;u<r.end;u++){var p=t.getLineCoords(u,a);n&&(s[d++]=p);for(var f=0;f<p;f++)h=e.dataToPoint(a[f],!1,h),s[d++]=h[0],s[d++]=h[1]}o.setLayout("linesPoints",s)}else for(u=r.start;u<r.end;u++){var g=o.getItemModel(u),m=(p=t.getLineCoords(u,a),[]);if(n)for(var v=0;v<p;v++)m.push(e.dataToPoint(a[v]));else{m[0]=e.dataToPoint(a[0]),m[1]=e.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}o.setItemLayout(u,m)}}}}}},DW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var c=t.get("clip",!0)&&pP(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=AW.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new kW:new dF(r?i?CW:MW:i?OW:sF),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(lI),LW="undefined"==typeof Uint32Array?Array:Uint32Array,PW="undefined"==typeof Float64Array?Array:Float64Array;function jW(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(Sh.H)(e,function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),Object(Sh.J)([e,t[0],t[1]])}))}var EW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return xh(e,t),e.prototype.init=function(e){e.data=e.data||[],jW(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(jW(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(Sh.e)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(Sh.e)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(t);for(r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(Sh.z)(t[0])){for(var n=t.length,i=new LW(n),r=new PW(n),o=0,a=0,s=0,l=0;l<n;){s++;var c=t[l++];i[a++]=o+e,i[a++]=c;for(var u=0;u<c;u++){var d=t[l++],h=t[l++];r[o++]=d,r[o++]=h}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new PL(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0}),n},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().getItemModel(t),r=i.get("name");if(r)return r;var o=i.get("fromName"),a=i.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),AO("nameValue",{name:s.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(QO);function NW(t){return t instanceof Array||(t=[t,t]),t}var RW={seriesType:"lines",reset:function(t){var e=NW(t.get("symbol")),n=NW(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=NW(n.getShallow("symbol",!0)),r=NW(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}};var BW=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Pg.d.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext("2d"),h=t.length;u.width=e,u.height=n;for(var p=0;p<h;++p){var f=t[p],g=f[0],m=f[1],v=i(f[2]);d.globalAlpha=v,d.drawImage(a,g-c,m-c)}if(!u.width||!u.height)return u;for(var y=d.getImageData(0,0,u.width,u.height),b=y.data,_=0,x=b.length,w=this.minOpacity,S=this.maxOpacity-w;_<x;){v=b[_+3]/256;var O=4*Math.floor(255*v);if(v>0){var M=o(v)?s:l;v>0&&(v=v*S+w),b[_++]=M[O],b[_++]=M[O+1],b[_++]=M[O+2],b[_++]=M[O+3]*v*256}else _+=4}return d.putImageData(y,0,0),u},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Pg.d.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();function zW(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var VW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):zW(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(zW(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){QC(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,c=t.coordinateSystem,u=fP(c,"cartesian2d");if(u){var d=c.getAxis("x"),h=c.getAxis("y");0,o=d.getBandWidth()+.5,a=h.getBandWidth()+.5,s=d.scale.getExtent(),l=h.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),y=t.get(["itemStyle","borderRadius"]),b=L_(t),_=t.getModel("emphasis"),x=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),O=u?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],M=n;M<i;M++){var C=void 0,I=f.getItemVisual(M,"style");if(u){var T=f.get(O[0],M),k=f.get(O[1],M);if(isNaN(f.get(O[2],M))||isNaN(T)||isNaN(k)||T<s[0]||T>s[1]||k<l[0]||k>l[1])continue;var A=c.dataToPoint([T,k]);C=new Qy({shape:{x:A[0]-o/2,y:A[1]-a/2,width:o,height:a},style:I})}else{if(isNaN(f.get(O[1],M)))continue;C=new Qy({z2:1,shape:c.dataToRect([f.get(O[0],M)]).contentShape,style:I})}if(f.hasItemOption){var D=f.getItemModel(M),L=D.getModel("emphasis");g=L.getModel("itemStyle").getItemStyle(),m=D.getModel(["blur","itemStyle"]).getItemStyle(),v=D.getModel(["select","itemStyle"]).getItemStyle(),y=D.get(["itemStyle","borderRadius"]),x=L.get("focus"),w=L.get("blurScope"),S=L.get("disabled"),b=L_(D)}C.shape.r=y;var P=t.getRawValue(M),j="-";P&&null!=P[2]&&(j=P[2]+""),D_(C,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:I.opacity,defaultText:j}),C.ensureState("emphasis").style=g,C.ensureState("blur").style=m,C.ensureState("select").style=v,c_(C,x,w,S),C.incremental=r,r&&(C.states.emphasis.hoverLayer=!0),p.add(C),f.setItemGraphicEl(M,C),this._progressiveEls&&this._progressiveEls.push(C)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new BW;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),c=t.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),d=Math.max(l.y,0),h=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=h-u,g=p-d,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=u,r[1]-=d,r.push(i),r}),y=n.getExtent(),b="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(y,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=Sh.H(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}})).length,o=0;return function(t){var i;for(i=o;i<r;i++)if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}if(i===r)for(i=o-1;i>=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}(y,n.getPieceList(),n.option.selected);s.update(v,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var _=new Uy({style:{width:f,height:g,x:u,y:d,image:s.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(lI),FW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.getInitialData=function(t,e){return HL(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Xw.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(QO);var HW=["itemStyle","borderWidth"],GW=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],WW=new MM;function UW(t,e,n,i){var r=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,u=n.isAnimationEnabled(),d={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:l,animationModel:u?n:null,hoverScale:u&&n.get(["emp
70hasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,i,r){var o,a=i.valueDim,s=t.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(n[a.wh]<=0);if(Sh.t(s)){var d=[qW(l,s[0])-c,qW(l,s[1])-c];d[1]<d[0]&&d.reverse(),o=d[u]}else o=null!=s?qW(l,s)-c:e?i.coordSysExtent[a.index][u]-c:n[a.wh];r.boundingLength=o,e&&(r.repeatCutLength=n[a.wh]);var h="x"===a.xy,p=l.inverse;r.pxSign=h&&!p||!h&&p?o>=0?1:-1:o>0?1:-1}(n,o,r,i,d),function(t,e,n,i,r,o,a,s,l,c){var u,d=l.valueDim,h=l.categoryDim,p=Math.abs(n[h.wh]),f=t.getItemVisual(e,"symbolSize");u=Sh.t(f)?f.slice():null==f?["100%","100%"]:[f,f];u[h.index]=lm(u[h.index],p),u[d.index]=lm(u[d.index],i?p:Math.abs(o)),c.symbolSize=u,(c.symbolScale=[u[0]/s,u[1]/s])[d.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,d.boundingLength,d.pxSign,c,i,d),function(t,e,n,i,r){var o=t.get(HW)||0;o&&(WW.attr({scaleX:e[0],scaleY:e[1],rotation:n}),WW.updateTransform(),o/=WW.getLineScale(),o*=e[i.valueDim.index]);r.valueLineWidth=o||0}(n,d.symbolScale,l,i,d);var h=d.symbolSize,p=vT(n.get("symbolOffset"),h);return function(t,e,n,i,r,o,a,s,l,c,u,d){var h=u.categoryDim,p=u.valueDim,f=d.pxSign,g=Math.max(e[p.index]+s,0),m=g;if(i){var v=Math.abs(l),y=Sh.O(t.get("symbolMargin"),"15%")+"",b=!1;y.lastIndexOf("!")===y.length-1&&(b=!0,y=y.slice(0,y.length-1));var _=lm(y,e[p.index]),x=Math.max(g+2*_,0),w=b?0:2*_,S=Mm(i),O=S?i:sU((v+w)/x),M=v-O*g;_=M/2/(b?O:Math.max(O-1,1)),x=g+2*_,w=b?0:2*_,S||"fixed"===i||(O=c?sU((Math.abs(c)+w)/x):0),m=O*x-w,d.repeatTimes=O,d.symbolMargin=_}var C=f*(m/2),I=d.pathPosition=[];I[h.index]=n[h.wh]/2,I[p.index]="start"===a?C:"end"===a?l-C:l/2,o&&(I[0]+=o[0],I[1]+=o[1]);var T=d.bundlePosition=[];T[h.index]=n[h.xy],T[p.index]=n[p.xy];var k=d.barRectShape=Sh.m({},n);k[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(I[p.index]+C)),k[h.wh]=n[h.wh];var A=d.clipShape={};A[h.xy]=-n[h.xy],A[h.wh]=u.ecSize[h.wh],A[p.xy]=0,A[p.wh]=n[p.wh]}(n,h,r,o,0,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function qW(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function YW(t){var e=t.symbolPatternSize,n=gT(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function $W(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,c=n.repeatTimes||0,u=0,d=o[e.valueDim.index]+a+2*n.symbolMargin;for(rU(t,function(t){t.__pictorialAnimationIndex=u,t.__pictorialRepeatTimes=c,u<c?oU(t,null,f(u),n,i):oU(t,null,{scaleX:0,scaleY:0},n,i,function(){r.remove(t)}),u++});u<c;u++){var h=YW(n);h.__pictorialAnimationIndex=u,h.__pictorialRepeatTimes=c,r.add(h);var p=f(u);oU(h,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=c-1-t),e[l.index]=d*(r-c/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function XW(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?oU(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=YW(n),r.add(o),oU(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function ZW(t,e,n){var i=Sh.m({},e.barRectShape),r=t.__pictorialBarRect;r?oU(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new Qy({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function KW(t,e,n,i){if(n.symbolClip){var o=t.__pictorialClipPath,a=Sh.m({},n.clipShape),s=e.valueDim,l=n.animationModel,c=n.dataIndex;if(o)x_(o,{shape:a},l,c);else{a[s.wh]=0,o=new Qy({shape:a}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var u={};u[s.wh]=n.clipShape[s.wh],r[i?"updateProps":"initProps"](o,{shape:u},l,c)}}}function JW(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=QW,n.isAnimationEnabled=tU,n}function QW(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function tU(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function eU(t,e,n,i){var r=new Qg,o=new Qg;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?$W(r,e,n):XW(r,0,n),ZW(r,n,i),KW(r,e,n,i),r.__pictorialShapeStr=iU(t,n),r.__pictorialSymbolMeta=n,r}function nU(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];rU(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),Sh.k(o,function(t){O_(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function iU(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function rU(t,e,n){Sh.k(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function oU(t,e,n,i,o,a){e&&t.attr(e),i.symbolClip&&!o?n&&t.attr(n):n&&r[o?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,a)}function aU(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),c=r.getShallow("cursor"),u=o.get("focus"),d=o.get("blurScope"),h=o.get("scale");rU(t,function(t){if(t instanceof Uy){var e=t.style;t.useStyle(Sh.m({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,h&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,c&&(t.cursor=c),t.z2=n.z2});var p=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,D_(f,L_(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:WL(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),c_(t,u,d,o.get("disabled"))}function sU(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var lU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:GW[+s],categoryDim:GW[1-+s]};r.diff(o).add(function(t){if(r.hasValue(t)){var e=JW(r,t),n=UW(r,t,e,c),o=eU(r,c,n);r.setItemGraphicEl(t,o),i.add(o),aU(o,c,n)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=JW(r,t),s=UW(r,t,a,c),l=iU(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var i=n.animationModel,r=n.dataIndex;x_(t.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?$W(t,e,n,!0):XW(t,e,n,!0);ZW(t,n,!0),KW(t,e,n,!0)}(n,c,s):n=eU(r,c,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),aU(n,c,s)}else i.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&nU(o,t,e.__pictorialSymbolMeta.animationModel,e)}).execute();var u=t.get("clip",!0)?pP(t.coordinateSystem,!1,t):null;return u?i.setClipPath(u):i.removeClipPath(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){nU(i,mb(e).dataIndex,t,e)}):n.removeAll()},e.type="pictorialBar",e}(lI),cU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return xh(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=ox(FP.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(FP);var uU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return xh(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,c=s.boundaryGap;function u(t){return t.name}o.x=0,o.y=l.y+c[0];var d=new cL(this._layersSeries||[],a,u,u),h=[];function p(e,n,s){var l=r._layers;if("remove"!==e){for(var c,u,d=[],p=[],f=a[n].indices,g=0;g<f.length;
vendor: 6,162 bytes, line 70
70g++){var m=i.getItemLayout(f[g]),v=m.x,y=m.y0,b=m.y;d.push(v,y),p.push(v,y+b),c=i.getItemVisual(f[g],"style")}var _=i.getItemLayout(f[0]),x=t.getModel("label").get("margin"),w=t.getModel("emphasis");if("add"===e){var S=h[n]=new Qg;u=new uP({shape:{points:d,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(u),o.add(S),t.isAnimationEnabled()&&u.setClipPath(function(t,e,n){var i=new Qy({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return w_(i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),i}(u.getBoundingRect(),t,function(){u.removeClipPath()}))}else{S=l[s];u=S.childAt(0),o.add(S),h[n]=S,x_(u,{shape:{points:d,stackedOnPoints:p}},t),I_(u)}D_(u,L_(t),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:c.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var O=u.getTextContent();O&&(O.x=_.x-x,O.y=_.y0+_.y/2),u.useStyle(c),i.setItemGraphicEl(n,u),p_(u,t),c_(u,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else o.remove(l[n])}d.add(Object(Sh.c)(p,this,"add")).update(Object(Sh.c)(p,this,"update")).remove(Object(Sh.c)(p,this,"remove")).execute(),this._layersSeries=a,this._layers=h},e.type="themeRiver",e}(lI),dU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Tj(Sh.c(this.getData,this),Sh.c(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},i=Km(t,function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]}),r=[];i.buckets.each(function(t,e){r.push({name:e,dataList:t})});for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var c=r[a].dataList[l][0]+"";n[c]=a}for(var c in n)n.hasOwnProperty(c)&&n[c]!==a&&(n[c]=a,t[e]=[c,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",Ym).models[0].get("type"),i=Sh.n(t.data,function(t){return void 0!==t[2]}),r=this.fixData(i||[]),o=[],a=this.nameMap=Sh.f(),s=0,l=0;l<r.length;++l)o.push(r[l][2]),a.get(r[l][2])||(a.set(r[l][2],s),s++);var c=jL(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:hL(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,u=new PL(c,this);return u.initData(r),u},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),o=Km(n,function(e){return t.get("name",e)}),a=[];return o.buckets.each(function(e,n){e.sort(function(e,n){return t.get(r,e)-t.get(r,n)}),a.push({name:n,indices:e})}),a},e.prototype.getAxisTooltipData=function(t,e,n){Sh.t(t)||(t=t?[t]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var c=Number.MAX_VALUE,u=-1,d=o[l].indices.length,h=0;h<d;++h){var p=r.get(t[0],o[l].indices[h]),f=Math.abs(p-e);f<=c&&(i=p,c=f,u=o[l].indices[h])}a.push(u)}return{dataIndices:a,nestestValue:i}},e.prototype.formatTooltip=function(t,e,n){var i=this.getData();return AO("nameValue",{name:i.getName(t),value:i.get(i.mapDimension("value"),t)})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(QO);function hU(t,e){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=t.get("boundaryGap"),a=n.getAxis();(i.boundaryGap=o,"horizontal"===a.orient)?(o[0]=lm(o[0],r.height),o[1]=lm(o[1],r.height),pU(e,t,r.height-o[0]-o[1])):(o[0]=lm(o[0],r.width),o[1]=lm(o[1],r.width),pU(e,t,r.width-o[0]-o[1]));e.setLayout("layoutInfo",i)})}function pU(t,e,n){if(t.count())for(var i,r=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=Sh.H(o,function(e){return Sh.H(e.indices,function(e){var n=r.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n})}),c=function(t){for(var e=t.length,n=t[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),i.push(s)}for(var c=0;c<n;++c)r[c]=(o-i[c])/2;o=0;for(var u=0;u<n;++u){var d=i[u]+r[u];d>o&&(o=d)}return{y0:r,max:o}}(l),u=c.y0,d=n/c.max,h=o.length,p=o[0].indices.length,f=0;f<p;++f){i=u[f]*d,t.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*d});for(var g=1;g<h;++g)i+=l[g-1][f][1]*d,t.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*d})}}var fU=2,gU=4,mU=function(t){function e(e,n,i,r){var o=t.call(this)||this;o.z2=fU,o.textConfig={inside:!0},mb(o).seriesIndex=n.seriesIndex;var a=new gb({z2:gU,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,i,r),o}return xh(e,t),e.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;mb(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),c=Sh.m({},l);c.label=null;var u=e.getVisual("style");u.lineJoin="bevel";var d=e.getVisual("decal");d&&(u.decal=qT(d,r));var h=YP(a.getModel("itemStyle"),c,!0);Sh.m(c,h),Sh.k(Mb,function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=YP(n,c);i&&(e.shape=i)}),t?(o.setShape(c),o.shape.r=l.r0,w_(o,{shape:{r:l.r}},n,e.dataIndex)):(x_(o,{shape:c},n),I_(o)),o.useStyle(u),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus");c_(this,"relative"===f?Sh.e(e.getAncestorsIndices(),e.getDescendantIndices()):"ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),c=this,u=c.getTextContent(),d=this.node.dataIndex,h=i.get("minA
70ngle")/180*Math.PI,p=i.get("show")&&!(null!=h&&Math.abs(o)<h);function f(t,e){var n=t.get(e);return null==n?i.get(e):n}u.ignore=!p,Sh.k(Cb,function(i){var h="normal"===i?n.getModel("label"):n.getModel([i,"label"]),p="normal"===i,g=p?u:u.ensureState(i),m=t.getFormattedLabel(d,i);p&&(m=m||e.node.name),g.style=P_(h,{},null,"normal"!==i,!0),m&&(g.style.text=m);var v=h.get("show");null==v||p||(g.ignore=!v);var y,b=f(h,"position"),_=p?c:c.states[i],x=_.style.fill;_.textConfig={outsideFill:"inherit"===h.get("color")?x:null,inside:"outside"!==b};var w=f(h,"distance")||0,S=f(h,"align"),O=f(h,"rotate"),M=.5*Math.PI,C=1.5*Math.PI,I=wy("tangential"===O?Math.PI/2-a:a),T=I>M&&!vm(I-M)&&I<C;"outside"===b?(y=r.r+w,S=T?"right":"left"):S&&"center"!==S?"left"===S?(y=r.r0+w,S=T?"right":"left"):"right"===S&&(y=r.r-w,S=T?"left":"right"):(y=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(h,"verticalAlign")||"middle",g.x=y*s+r.cx,g.y=y*l+r.cy;var k=0;"radial"===O?k=wy(-a)+(T?Math.PI:0):"tangential"===O?k=wy(Math.PI/2-a)+(T?Math.PI:0):Sh.z(O)&&(k=O*Math.PI/180),g.rotation=wy(k)}),u.dirtyStyle()},e}(WM),vU="sunburstRootToNode",yU="sunburstHighlight",bU="sunburstUnhighlight";var _U=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,c=t.get("renderLabelForZeroData"),u=[];s.eachNode(function(t){u.push(t)});var d=this._oldChildren||[];!function(i,r){if(0===i.length&&0===r.length)return;function s(t){return t.getId()}function u(s,u){var d=null==s?null:i[s],h=null==u?null:r[u];!function(i,r){c||!i||i.getValue()||(i=null);if(i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):function(t){if(!t)return;t.piece&&(l.remove(t.piece),t.piece=null)}(r);else if(i){var s=new mU(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}(d,h)}new cL(r,i,s,s).add(u).update(u).remove(Sh.h(u,null)).execute()}(u,d),function(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new mU(i,t,e,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",function(t){r._rootToNode(o.parentNode)})):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=u},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(e){var n=!1;t.seriesModel.getViewRoot().eachNode(function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a)Zx(a,o.get("target",!0)||"_blank")}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:vU,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(lI);var xU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return xh(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;Sh.k(e.children,function(e){t(e);var i=e.value;Sh.t(i)&&(i=i[0]),n+=i});var i=e.value;Sh.t(i)&&(i=i[0]);(null==i||isNaN(i))&&(i=n);i<0&&(i=0);Sh.t(e.value)?e.value[0]=i:e.value=i}(n);var i=this._levelModels=Sh.H(t.levels||[],function(t){return new nx(t,this,e)},this),r=vz.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t})});return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=xz(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Iz(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}}
70,animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(QO),wU=Math.PI/180;function SU(t,e,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),i=t.get("radius");Sh.t(i)||(i=[0,i]),Sh.t(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=lm(e[0],r),l=lm(e[1],o),c=lm(i[0],a/2),u=lm(i[1],a/2),d=-t.get("startAngle")*wU,h=t.get("minAngle")*wU,p=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,m=t.get("sort");null!=m&&function t(e,n){var i=e.children||[];e.children=function(t,e){if(Sh.w(e)){var n=Sh.H(t,function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}});return n.sort(function(t,n){return e(t.params,n.params)}),Sh.H(n,function(e){return t[e.index]})}var i="asc"===e;return t.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n})}(i,n);i.length&&Sh.k(e.children,function(e){t(e,n)})}(f,m);var v=0;Sh.k(f.children,function(t){!isNaN(t.getValue())&&v++});var y=f.getValue(),b=Math.PI/(y||v)*2,_=f.depth>0,x=f.height-(_?-1:1),w=(u-c)/(x||1),S=t.get("clockwise"),O=t.get("stillShowZeroSum"),M=S?1:-1,C=function(e,n){if(e){var i=n;if(e!==p){var r=e.getValue(),o=0===y&&O?b:r*b;o<h&&(o=h),i=n+M*o;var u=e.depth-g-(_?-1:1),d=c+w*u,f=c+w*(u+1),m=t.getLevelModel(e);if(m){var v=m.get("r0",!0),x=m.get("r",!0),I=m.get("radius",!0);null!=I&&(v=I[0],x=I[1]),null!=v&&(d=lm(v,a/2)),null!=x&&(f=lm(x,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:S,cx:s,cy:l,r0:d,r:f})}if(e.children&&e.children.length){var T=0;Sh.k(e.children,function(t){T+=C(t,n+T)})}return i-n}};if(_){var I=c,T=c+w,k=2*Math.PI;p.setLayout({angle:k,startAngle:d,endAngle:d+k,clockwise:S,cx:s,cy:l,r0:I,r:T})}C(f,d)})}function OU(t){var e={};t.eachSeriesByType("sunburst",function(t){var n=t.getData(),i=n.tree;i.eachNode(function(r){var o=r.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(t,n,i){for(var r=t;r&&r.depth>1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&Object(Sh.C)(o)&&(o=Object(Lf.c)(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height));var a=n.ensureUniqueItemVisual(r.dataIndex,"style");Object(Sh.m)(a,o)})})}var MU={color:"fill",borderColor:"stroke"},CU={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},IU=Gm(),TU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return HL(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=IU(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(QO);function kU(t,e){return e=e||[0,0],Sh.H(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function AU(t,e){return e=e||[0,0],Sh.H([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function DU(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function LU(t,e){return e=e||[0,0],Sh.H(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}function PU(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Object(Sh.q)(t,"text")))}function jU(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},Object(Sh.q)(a,"text")&&(o.text=a.text),Object(Sh.q)(a,"rich")&&(o.rich=a.rich),Object(Sh.q)(a,"textFill")&&(o.fill=a.textFill),Object(Sh.q)(a,"textStroke")&&(o.stroke=a.textStroke),Object(Sh.q)(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(Sh.q)(a,"fontSize")&&(o.fontSize=a.fontSize),Object(Sh.q)(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(Sh.q)(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=Object(Sh.q)(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Object(Sh.q)(a,"textPosition")&&(i.position=a.textPosition),Object(Sh.q)(a,"textOffset")&&(i.offset=a.textOffset),Object(Sh.q)(a,"textRotation")&&(i.rotation=a.textRotation),Object(Sh.q)(a,"textDistance")&&(i.distance=a.textDistance)}return EU(o,t),Object(Sh.k)(o.rich,function(t){EU(t,t)}),{textConfig:i,textContent:r}}function EU(t,e){e&&(e.font=e.textFont||e.font,Object(Sh.q)(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(Sh.q)(e,"textAlign")&&(t.align=e.textAlign),Object(Sh.q)(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(Sh.q)(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(Sh.q)(e,"textWidth")&&(t.width=e.textWidth),Object(Sh.q)(e,"textHeight")&&(t.height=e.textHeight),Object(Sh.q)(e,"textBackgroun
70dColor")&&(t.backgroundColor=e.textBackgroundColor),Object(Sh.q)(e,"textPadding")&&(t.padding=e.textPadding),Object(Sh.q)(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(Sh.q)(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(Sh.q)(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(Sh.q)(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(Sh.q)(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(Sh.q)(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(Sh.q)(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function NU(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";RU(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Object(Sh.k)(e.rich,function(t){RU(t,t)}),i}function RU(t,e){e&&(Object(Sh.q)(e,"fill")&&(t.textFill=e.fill),Object(Sh.q)(e,"stroke")&&(t.textStroke=e.fill),Object(Sh.q)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(Sh.q)(e,"font")&&(t.font=e.font),Object(Sh.q)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(Sh.q)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(Sh.q)(e,"fontSize")&&(t.fontSize=e.fontSize),Object(Sh.q)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(Sh.q)(e,"align")&&(t.textAlign=e.align),Object(Sh.q)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(Sh.q)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(Sh.q)(e,"width")&&(t.textWidth=e.width),Object(Sh.q)(e,"height")&&(t.textHeight=e.height),Object(Sh.q)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(Sh.q)(e,"padding")&&(t.textPadding=e.padding),Object(Sh.q)(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(Sh.q)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(Sh.q)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(Sh.q)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(Sh.q)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(Sh.q)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(Sh.q)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(Sh.q)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(Sh.q)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(Sh.q)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(Sh.q)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var BU={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},zU=Object(Sh.F)(BU),VU=(Object(Sh.N)(kg,function(t,e){return t[e]=1,t},{}),kg.join(", "),["","style","shape","extra"]),FU=Gm();function HU(t,e,n,i,r){var o=t+"Animation",a=b_(t,i,r)||{},s=FU(e).userDuring;return a.duration>0&&(a.during=s?Object(Sh.c)(XU,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Object(Sh.m)(a,n[o]),a}function GU(t,e,n,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=FU(t),c=e.style;l.userDuring=e.during;var u={},d={};if(function(t,e,n){for(var i=0;i<zU.length;i++){var r=zU[i],o=BU[r],a=e[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(var i=0;i<kg.length;i++){var s=kg[i];null!=e[s]&&(n[s]=e[s])}}(0,e,d),KU("shape",e,d),KU("extra",e,d),!o&&s&&(function(t,e,n){for(var i=e.transition,r=qU(i)?kg:Dm(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];0,n[a]=s}}}(t,e,u),ZU("shape",t,e,u),ZU("extra",t,e,u),function(t,e,n,i){if(!n)return;var r,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!qU(a)){var l=Dm(a);!r&&(r=i.style={});for(var c=0;c<l.length;c++){var u=l[c],d=o[u];r[u]=d}}else if(t.getAnimationStyleProps&&(qU(s)||qU(a)||Object(Sh.r)(s,"style")>=0)){var h=t.getAnimationStyleProps(),p=h?h.style:null;if(p){!r&&(r=i.style={});for(var f=Object(Sh.F)(n),c=0;c<f.length;c++){var u=f[c];if(p[u]){var d=o[u];r[u]=d}}}}}}(t,e,c,u)),d.style=c,function(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}(t,d,a),function(t,e){Object(Sh.q)(e,"silent")&&(t.silent=e.silent),Object(Sh.q)(e,"ignore")&&(t.ignore=e.ignore),t instanceof Rv&&Object(Sh.q)(e,"invisible")&&(t.invisible=e.invisible);t instanceof By&&Object(Sh.q)(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(o){var h={};Object(Sh.k)(VU,function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(h[t]=h[t]||{}
70),Object(Sh.m)(t?h[t]:h,n.enterFrom))});var p=HU("enter",t,e,n,r);p.duration>0&&t.animateFrom(h,p)}else!function(t,e,n,i,r){if(r){var o=HU("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}(t,e,r||0,n,u);WU(t,e),c?t.dirty():t.markRedraw()}function WU(t,e){for(var n=FU(t).leaveToProps,i=0;i<VU.length;i++){var r=VU[i],o=r?e[r]:e;o&&o.leaveTo&&(n||(n=FU(t).leaveToProps={}),r&&(n[r]=n[r]||{}),Object(Sh.m)(r?n[r]:n,o.leaveTo))}}function UU(t,e,n,i){if(t){var r=t.parent,o=FU(t).leaveToProps;if(o){var a=HU("update",t,e,n,0);a.done=function(){r.remove(t),i&&i()},t.animateTo(o,a)}else r.remove(t),i&&i()}}function qU(t){return"all"===t}var YU={},$U={setTransform:function(t,e){return YU.el[t]=e,this},getTransform:function(t){return YU.el[t]},setShape:function(t,e){var n=YU.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=YU.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=YU.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=YU.el.style;if(e)return e[t]},setExtra:function(t,e){return(YU.el.extra||(YU.el.extra={}))[t]=e,this},getExtra:function(t){var e=YU.el.extra;if(e)return e[t]}};function XU(){var t=this.el;if(t){var e=FU(t).userDuring,n=this.userDuring;e===n?(YU.el=t,n($U)):this.el=this.userDuring=null}}function ZU(t,e,n,i){var r=n[t];if(r){var o,a=e[t];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[t]={}),qU(l))Object(Sh.m)(o,a);else for(var c=Dm(l),u=0;u<c.length;u++){var d=a[p=c[u]];o[p]=d}else if(qU(s)||Object(Sh.r)(s,t)>=0){!o&&(o=i[t]={});var h=Object(Sh.F)(a);for(u=0;u<h.length;u++){var p;d=a[p=h[u]];JU(r[p],d)&&(o[p]=d)}}}}}function KU(t,e,n){var i=e[t];if(i)for(var r=n[t]={},o=Object(Sh.F)(i),a=0;a<o.length;a++){var s=o[a];r[s]=Ff(i[s])}}function JU(t,e){return Object(Sh.u)(t)?t!==e:null!=t&&isFinite(t)}var QU=Gm(),tq=["percent","easing","shape","style","extra"];function eq(t){t.stopAnimation("keyframe"),t.attr(QU(t))}function nq(t,e,n){if(n.isAnimationEnabled()&&e)if(Object(Sh.t)(e))Object(Sh.k)(e,function(e){nq(t,e,n)});else{var i=e.keyframes,r=e.duration;if(n&&null==r){var o=b_("enter",n,0);r=o&&o.duration}if(i&&r){var a=QU(t);Object(Sh.k)(VU,function(n){if(!n||t[n]){var o;i.sort(function(t,e){return t.percent-e.percent}),Object(Sh.k)(i,function(i){var s=t.animators,l=n?i[n]:i;if(l){var c=Object(Sh.F)(l);if(n||(c=Object(Sh.n)(c,function(t){return Object(Sh.r)(tq,t)<0})),c.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var u=0;u<s.length;u++)s[u]!==o&&s[u].targetName===o.targetName&&s[u].stopTracks(c);n&&(a[n]=a[n]||{});var d=n?a[n]:a;Object(Sh.k)(c,function(e){d[e]=((n?t[n]:t)||{})[e]}),o.whenWithKeys(r*i.percent,l,c,i.easing)}}}),o&&o.delay(e.delay||0).duration(r).start(e.easing)}})}}}var iq="emphasis",rq="normal",oq=[rq,iq,"blur","select"],aq={normal:["itemStyle"],emphasis:[iq,"itemStyle"],blur:["blur","itemStyle"],select:["select","itemStyle"]},sq={normal:["label"],emphasis:[iq,"label"],blur:["blur","label"],select:["select","label"]},lq=["x","y"],cq="e\0\0",uq={normal:{},emphasis:{},blur:{},select:{}},dq={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Sh.c(kU,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:Sh.c(AU,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(Sh.c)(DU,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:Sh.c(LU,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function hq(t){return t instanceof By}function pq(t){return t instanceof Rv}var fq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=bq(t,o,e,n);r||a.removeAll(),o.diff(r).add(function(e){xq(n,null,e,s(e,i),t,a,o)}).remove(function(e){var n=r.getItemGraphicEl(e);n&&UU(n,IU(n).option,t)}).update(function(e,l){var c=r.getItemGraphicEl(l);xq(n,c,e,s(e,i),t,a,o)}).execute();var l=t.get("clip",!0)?pP(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=bq(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var c=t.start;c<t.end;c++){var u=xq(null,null,c,a(c,r),e,this.group,o);u&&(u.traverse(l),s.push(u))}},e.prototype.eachRendered=function(t){QC(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1},e.type="custom",e}(lI);function gq(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=Dq(i);e=LC(o,null,r,i.layout||"center"),IU(e).customPathData=o}else if("image"===n)e=new Uy({}),IU(e).customImagePath=t.style.image;else if("text"===n)e=new gb({});else if("group"===n)e=new Qg;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=DC(n);if(!a){0,Vw("")}e=new a}return IU(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function mq(t,e,n,i,r,o,a){eq(e);var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=lq);var l=i&&i.style;if(l){if("text"===e.type){var c=l;Object(Sh.q)(c,"textFill")&&(c.fill=c.textFill),Object(Sh.q)(c,"textStroke")&&(c.stroke=c.textStroke)}var u=void 0,d=hq(e)?l.decal:null;t&&d&&(d.dirty=!0,u=qT(d,t)),l.__decalPattern=u}pq(e)&&(l&&(u=l.__decalPattern)&&(l.decal=u));GU(e,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),nq(e,i.keyframeAnimation,o)}function vq(t,e,n,i,r){var o=e.isGroup?null:e,a=r&&r[t].cfg;if(o){var s=o.ensureState(t);if(!1===i){var l=o.getState(t);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),qb(o)}}function yq(t,e,n){var i=n===rq,r=i?e:Mq(e,n),o=r?r.z2:null;null!=o&&((i?t:t.ensureState(n)).z2=o||0)}function bq(t,e,n,i){var r=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):dq[o.type](o));for(var s,l,c=Object(Sh.i)({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,i){0;null==i&&(i=s);var r=e.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=y(i,rq).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var c={inheritColor:Object(Sh.C)(o)?o:"#000"},u=b(i,rq),d=P_(u,null,c,!1,!0);d.text=u.getShallow("show")?Object(Sh.P)(t.getFormattedLabel(i,rq),WL(e,i)):null;var h=j_(u,c,!1);return x(n,l),l=NU(l,d,h),n&&_(l,n),l.legacy=!0,l},ordinalRawValue:function(t,n){null==n&&(n=s),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,i){0;null==i&&(i=s);var r=y(i,iq).getItemStyle(),o=b(i,iq),a=P_(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(Sh.Q)(t.getFormattedLabel(i,iq),t.getFormattedLabel(i,rq),WL(e,i)):null;var l=j_(o,null,!0);return x(n,r),r=NU(r,a,l),n&&_(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=s),Object(Sh.q)(MU,t)){var i=e.getItemVisual(n,"style");return i?i[MU[t]]:null}if(Object(Sh.q)(CU,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return function(t){var e=[],n=t.axis;
vendor: 14,829 bytes, line 70
70if("category"===n.type){for(var i=n.getBandWidth(),r=0;r<t.count;r++)e.push(Object(Sh.i)({bandWidth:i,axisKey:"axis0",stackId:AP+r},t));var o=EP(e),a=[];for(r=0;r<t.count;r++){var s=o.axis0[AP+r];s.offsetCenter=s.offset+s.width/2,a.push(s)}return a}}(Object(Sh.i)({axis:e},t))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return z_(t,n)}},a.api||{}),u={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:_q(t.getData())},d={},h={},p={},f={},g=0;g<oq.length;g++){var m=oq[g];p[m]=t.getModel(aq[m]),f[m]=t.getModel(sq[m])}function v(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function y(t,n){return e.hasItemOption?t===s?d[n]||(d[n]=v(t).getModel(aq[n])):v(t).getModel(aq[n]):p[n]}function b(t,n){return e.hasItemOption?t===s?h[n]||(h[n]=v(t).getModel(sq[n])):v(t).getModel(sq[n]):f[n]}return function(t,n){return s=t,l=null,d={},h={},r&&r(Object(Sh.i)({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},u),c)};function _(t,e){for(var n in e)Object(Sh.q)(e,n)&&(t[n]=e[n])}function x(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function _q(t){var e={};return Object(Sh.k)(t.dimensions,function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim;(e[r]=e[r]||[])[i.coordDimIndex]=t.getDimensionIndex(n)}}),e}function xq(t,e,n,i,r,o,a){if(i){var s=wq(t,e,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&c_(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(e)}function wq(t,e,n,i,r,o){var a=-1,s=e;e&&Sq(e,i,r)&&(a=Object(Sh.r)(o.childrenRef(),e),e=null);var l,c,u=!e,d=e;d?d.clearStates():(d=gq(i),s&&(l=s,(c=d).copyTransform(l),pq(c)&&pq(l)&&(c.setStyle(l.style),c.z=l.z,c.z2=l.z2,c.zlevel=l.zlevel,c.invisible=l.invisible,c.ignore=l.ignore,hq(c)&&hq(l)&&c.setShape(l.shape)))),!1===i.morph?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),uq.normal.cfg=uq.normal.conOpt=uq.emphasis.cfg=uq.emphasis.conOpt=uq.blur.cfg=uq.blur.conOpt=uq.select.cfg=uq.select.conOpt=null,uq.isLegacy=!1,function(t,e,n,i,r,o){if(t.isGroup)return;Oq(n,null,o),Oq(n,iq,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,c=o.select.conOpt;if(null!=a||null!=s||null!=c||null!=l){var u=t.getTextContent();if(!1===a)u&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},u?u.clearStates():(u=gq(a),t.setTextContent(u)),mq(null,u,e,a,null,i,r);for(var d=a&&a.style,h=0;h<oq.length;h++){var p=oq[h];if(p!==rq){var f=o[p].conOpt;vq(p,u,0,Cq(a,f,p),null)}}d?u.dirty():u.markRedraw()}}}(d,n,i,r,u,uq),function(t,e,n,i,r){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&Sq(a,o,i)&&(a=null),a||(a=gq(o),t.setClipPath(a)),mq(null,a,e,o,null,i,r)}}(d,n,i,r,u),mq(t,d,n,i,uq,r,u),Object(Sh.q)(i,"info")&&(IU(d).info=i.info);for(var h=0;h<oq.length;h++){var p=oq[h];if(p!==rq){var f=Mq(i,p);vq(p,d,0,Cq(i,f,p),uq)}}return function(t,e,n){if(!t.isGroup){var i=t,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=e.z2;null!=a&&(i.z2=a||0);for(var s=0;s<oq.length;s++)yq(i,e,oq[s])}}(d,i,r),"group"===i.type&&function(t,e,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,c=!1===s;if(!a&&!l&&!c)return;if(l)return u={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:e},void new cL(u.oldChildren,u.newChildren,Tq,Tq,u).add(kq).update(kq).remove(Aq).execute();var u;c&&e.removeAll();for(var d=0;d<a;d++){var h=o[d],p=e.childAt(d);h?(null==h.ignore&&(h.ignore=!1),wq(t,p,n,h,r,e)):p.ignore=!0}for(var f=e.childCount()-1;f>=d;f--){var g=e.childAt(f);Iq(e,g,r)}}(t,d,n,i,r),a>=0?o.replaceAt(d,a):o.add(d),d}function Sq(t,e,n){var i,r=IU(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&((i=a)&&(Object(Sh.q)(i,"pathData")||Object(Sh.q)(i,"d")))&&Dq(a)!==r.customPathData||"image"===o&&Object(Sh.q)(s,"image")&&s.image!==r.customImagePath}function Oq(t,e,n){var i=e?Mq(t,e):t,r=e?Cq(t,i,iq):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?Mq(s,e):s:null;if(r&&(n.isLegacy||PU(r,o,!!a,!!l))){n.isLegacy=!0;var c=jU(r,o,!e);!a&&c.textConfig&&(a=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!e&&l){var u=l;!u.type&&(u.type="text")}var d=e?n[e]:n.normal;d.cfg=a,d.conOpt=l}function Mq(t,e){return e?t?t[e]:null:t}function Cq(t,e,n){var i=e&&e.style;return null==i&&n===iq&&t&&(i=t.styleEmphasis),i}function Iq(t,e,n){e&&UU(e,IU(t).option,n)}function Tq(t,e){var n=t&&t.name;return null!=n?n:cq+e}function kq(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;wq(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function Aq(t){var e=this.context,n=e.oldChildren[t];n&&UU(n,IU(n).option,e.seriesModel)}function Dq(t){return t&&(t.pathData||t.d)}var Lq=Gm(),Pq=Sh.d,jq=Sh.c;function Eq(t,e,n,i){(function t(e,n){if(Sh.A(e)&&Sh.A(n)){var i=!0;return Sh.k(n,function(n,r){i=i&&t(e[r],n)}),!!i}return e===n})(Lq(n).lastProp,i)||(Lq(n).lastProp=i,e?x_(n,i,t):(n.stopAnimation(),n.attr(i)))}function Nq(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Rq(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Bq(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}var zq=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(t,e);if(a){var d=Sh.h(Eq,e,u);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,e)}else a=this._group=new Qg,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);Bq(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=CN(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;if(o){var a=Lq(t).pointerEl=new r[o.type](Pq(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=Lq(t).labelEl=new gb(Pq(e.label));t.add(r),Nq(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=Lq(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=Lq(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),Nq(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=YC(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){lp(t.event)},onmousedown:jq(this._onHandleDragMove,this,0,0),drift:jq(this._onHandleDragMove,this),ondragend:jq(this._onHandleDragEnd,this)}),i.add(r)),Bq(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");Sh.t(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,pI(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){Eq(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Rq(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Rq(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Rq(i)),Lq(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),fI(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function Vq(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function Fq(t,e,n,i,r){var o=Hq(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Wx(a.get("padding")||0),l=a.getFont(),c=Rg(o,l),u=r.position,d=c.width+s[1]+s[3],h=c.height+s[0]+s[2],p=r.align;"right"===p&&(u[0]-=d),"center"===p&&(u[0]-=d/2);var f=r.verticalAlign;"bottom"===f&&(u[1]-=h),"middle"===f&&(u[1]-=h/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(u,d,h,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:P_(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function Hq(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:zE(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};Sh.k(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),Sh.C(a)?o=a.replace("{value}",o):Sh.w(a)&&(o=a(s))}return o}function Gq(t,e,n){var i=[1,0,0,1,0,0];return vp(i,i,n.rotation),mp(i,i,n.position),FC([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function Wq(t,e,n,i,r,o){var a=SN.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),Fq(e,i,r,o,{position:Gq(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Uq(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function qq(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function Yq(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var $q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=Xq(a,o).getOtherAxis(o).getGlobalExtent(),c=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var u=Vq(i),d=Zq[s](o,c,l);d.style=u,t.graphicKey=d.type,t.pointer=d}Wq(e,t,sN(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=sN(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=Gq(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=Xq(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,c=[t.x,t.y];c[l]+=e[l],c[l]=Math.min(a[1],c[l]),c[l]=Math.max(a[0],c[l]);var u=(s[1]+s[0])/2,d=[u,u];d[l]=c[l];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(zq);function Xq(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Zq={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:Uq([e,n[0]],[e,n[1]],Kq(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:qq([e-i/2,n[0]],[i,r],Kq(t))}}};function Kq(t){return"x"===t.dim?0:1}var Jq=$q,Qq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(uw),tY=Gm(),eY=Sh.k;function nY(t,e,n){if(!wh.a.node){var i=e.getZr();tY(i).records||(tY(i).records={}),function(t,e){if(tY(t).initialized)return;function n(n,i){t.on(n,function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);eY(tY(t).records,function(t){t&&i(t,n,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)})}tY(t).initialized=!0,n("click",Sh.h(rY,"click")),n("mousemove",Sh.h(rY,"mousemove")),n("globalout",iY)}(i,e),(tY(i).records[t]||(tY(i).records[t]={})).handler=n}}function iY(t,e,n){t.handler("leave",null,n)}function rY(t,e,n,i){e.handler(t,n,i)}function oY(t,e){if(!wh.a.node){var n=e.getZr();(tY(n).records||{})[t]&&(tY(n).records[t]=null)}}var aY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";nY("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>
70=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){oY("axisPointer",e)},e.prototype.dispose=function(t,e){oY("axisPointer",e)},e.type="axisPointer",e}(eM);function sY(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Hm(o,t);if(null==a||a<0||Sh.t(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c).dim,d=c.dim,h="x"===u||"radius"===u?1:0,p=o.mapDimension(d),f=[];f[h]=o.get(p,a),f[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(Sh.H(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var lY=Gm();function cY(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Object(Sh.c)(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){fY(r)&&(r=sY({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=fY(r),c=o.axesInfo,u=s.axesInfo,d="leave"===i||fY(r),h={},p={},f={list:[],map:{}},g={showPointer:Object(Sh.h)(dY,p),showTooltip:Object(Sh.h)(hY,f)};Object(Sh.k)(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);Object(Sh.k)(s.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(c,t);if(!d&&n&&(!c||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&uY(t,a,g,!1,h)}})});var m={};return Object(Sh.k)(u,function(t,e){var n=t.linkGroup;n&&!p[e]&&Object(Sh.k)(n.axesInfo,function(e,i){var r=p[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,pY(e),pY(t)))),m[t.key]=o}})}),Object(Sh.k)(m,function(t,e){uY(u[e],t,g,!0,h)}),function(t,e,n){var i=n.axesInfo=[];Object(Sh.k)(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}(p,u,h),function(t,e,n,i){if(fY(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(f,r,t,a),function(t,e,n){var i=n.getZr(),r=lY(i).axisPointerLastHighlights||{},o=lY(i).axisPointerLastHighlights={};Object(Sh.k)(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(Sh.k)(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t})});var a=[],s=[];Object(Sh.k)(r,function(t,e){!o[e]&&s.push(t)}),Object(Sh.k)(o,function(t,e){!r[e]&&a.push(t)}),s.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),a.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(u,0,n),h}}function uY(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(Sh.k)(e.seriesModels,function(e,l){var c,u,d=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var h=e.getAxisTooltipData(d,t,n);u=h.dataIndices,c=h.nestestValue}else{if(!(u=e.getData().indicesOfNearest(d[0],t,"category"===n.type?.5:null)).length)return;c=e.getData().get(d[0],u[0])}if(null!=c&&isFinite(c)){var p=t-c,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,r=c,o.length=0),Object(Sh.k)(u,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&Object(Sh.m)(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function dY(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function hY(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;
vendor: 4,617 bytes, line 70
70if(e.triggerTooltip&&r.length){var l=e.coordSys.model,c=TN(l),u=t.map[c];u||(u=t.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function pY(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function fY(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function gY(t){AN.registerAxisPointerClass("CartesianAxisPointer",Jq),t.registerComponentModel(Qq),t.registerComponentView(aY),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(Sh.t)(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=ON(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},cY)}var mY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(e),c=i.get("type");if(c&&"none"!==c){var u=Vq(i),d=vY[c](o,a,l,s);d.style=u,t.graphicKey=d.type,t.pointer=d}var h=function(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,d=i.getRadiusAxis().getExtent();if("radius"===o.dim){var h=[1,0,0,1,0,0];vp(h,h,s),mp(h,h,[i.cx,i.cy]),l=FC([a,-r],h);var p=e.getModel("axisLabel").get("rotate")||0,f=SN.innerTextLayout(s,p*Math.PI/180,-1);c=f.textAlign,u=f.textVerticalAlign}else{var g=d[1];l=i.coordToPoint([g+r,a]);var m=i.cx,v=i.cy;c=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",u=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}(e,n,0,a,i.get(["label","margin"]));Fq(t,n,i,r,h)},e}(zq);var vY={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:Uq(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:Yq(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:Yq(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},yY=mY,bY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(uw),_Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ym).models[0]},e.type="polarAxis",e}(uw);Sh.K(_Y,Rj);var xY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.type="angleAxis",e}(_Y),wY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.type="radiusAxis",e}(_Y),SY=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return xh(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(oN);SY.prototype.dataToRadius=oN.prototype.dataToCoord,SY.prototype.radiusToData=oN.prototype.coordToData;var OY=SY,MY=Gm(),CY=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return xh(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent(),i=e.count();if(n[1]-n[0]<1)return 0;var r=n[0],o=this.dataToCoord(r+1)-this.dataToCoord(r),a=Math.abs(o),s=Rg(null==r?"":r+"",t.getFont(),"center","top"),l=Math.max(s.height,7)/a;isNaN(l)&&(l=1/0);var c=Math.max(0,Math.floor(l)),u=MY(this.model),d=u.lastAutoInterval,h=u.lastTickCount;return null!=d&&null!=h&&Math.abs(d-c)<=1&&Math.abs(h-i)<=1&&d>c?c=d:(u.lastTickCount=i,u.lastAutoInterval=c),c},e}(oN);CY.prototype.dataToAngle=oN.prototype.dataToCoord,CY.prototype.angleToData=oN.prototype.coordToData;
70var IY=CY,TY=["radius","angle"];function kY(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var AY=function(){function t(t){this.dimensions=TY,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new OY,this._angleAxis=new IY,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,c=l<o?1:-1;l<o||l>a;)l+=360*c;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i,o=this.r,a=this.r0;return o!==a&&r-1e-4<=o*o&&r+1e-4>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return kY(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return kY(e)===this?this.pointToData(n):null},t}();function DY(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();Sh.k(HE(e,"radius"),function(t){r.scale.unionExtentFromData(e,t)}),Sh.k(HE(e,"angle"),function(t){i.scale.unionExtentFromData(e,t)})}}),NE(i.scale,i.model),NE(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function LY(t,e){var n;if(t.type=e.get("type"),t.scale=RE(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var i=e.get("startAngle"),r=null!==(n=e.get("endAngle"))&&void 0!==n?n:i+(t.inverse?-360:360);t.setExtent(i,r)}e.axis=t,t.model=e}var PY={dimensions:TY,create:function(t,e){var n=[];return t.eachComponent("polar",function(t,i){var r=new AY(i+"");r.update=DY;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");LY(o,s),LY(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=lm(i[0],r),t.cy=lm(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:Sh.t(l)||(l=[0,l]);var c=[lm(l[0],s),lm(l[1],s)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t}),t.eachSeries(function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",Ym).models[0];0,t.coordinateSystem=e.coordinateSystem}}),n}},jY=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function EY(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function NY(t){return t.getRadiusAxis().inverse?0:1}function RY(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var BY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return xh(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=Sh.H(n.getViewLabels(),function(t){t=Sh.d(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t});
vendor: 5,062 bytes, line 70
70RY(s),RY(o),Sh.k(jY,function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||zY[e](this.group,t,i,o,a,r,s)},this)}},e.type="angleAxis",e}(AN),zY={axisLine:function(t,e,n,i,o,a){var s,l=e.getModel(["axisLine","lineStyle"]),c=n.getAngleAxis(),u=Math.PI/180,d=c.getExtent(),h=NY(n),p=h?0:1,f=360===Math.abs(d[1]-d[0])?"Circle":"Arc";(s=0===a[p]?new r[f]({shape:{cx:n.cx,cy:n.cy,r:a[h],startAngle:-d[0]*u,endAngle:-d[1]*u,clockwise:c.inverse},style:l.getLineStyle(),z2:1,silent:!0}):new YM({shape:{cx:n.cx,cy:n.cy,r:a[h],r0:a[p]},style:l.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(s)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[NY(n)],c=Sh.H(i,function(t){return new rC({shape:EY(n,[l,l+s],t.coord)})});t.add(EC(c,{style:Sh.i(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),c=o[NY(n)],u=[],d=0;d<r.length;d++)for(var h=0;h<r[d].length;h++)u.push(new rC({shape:EY(n,[c,c+l],r[d][h].coord)}));t.add(EC(u,{style:Sh.i(s.getModel("lineStyle").getLineStyle(),Sh.i(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,r,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),c=l.get("margin"),u=e.get("triggerEvent");Sh.k(a,function(i,r){var a=l,d=i.tickValue,h=o[NY(n)],p=n.coordToPoint([h+c,i.coord]),f=n.cx,g=n.cy,m=Math.abs(p[0]-f)/h<.3?"center":p[0]>f?"left":"right",v=Math.abs(p[1]-g)/h<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[d]){var y=s[d];Sh.A(y)&&y.textStyle&&(a=new nx(y.textStyle,l,l.ecModel))}var b=new gb({silent:SN.isLabelSilent(e),style:P_(a,{x:p[0],y:p[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(t.add(b),u){var _=SN.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=i.rawLabel,mb(b).eventData=_}},this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var c=[],u=0;u<i.length;u++){var d=l++%s.length;c[d]=c[d]||[],c[d].push(new rC({shape:EY(n,o,i[u].coord)}))}for(u=0;u<c.length;u++)t.add(EC(c[u],{style:Sh.i({stroke:s[u%s.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var c=0;c<r[l].length;c++)s.push(new rC({shape:EY(n,o,r[l][c].coord)}));t.add(EC(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,r,o){if(i.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var c=[],u=Math.PI/180,d=-i[0].coord*u,h=Math.min(o[0],o[1]),p=Math.max(o[0],o[1]),f=e.get("clockwise"),g=1,m=i.length;g<=m;g++){var v=g===m?i[0].coord:i[g].coord,y=l++%s.length;c[y]=c[y]||[],c[y].push(new WM({shape:{cx:n.cx,cy:n.cy,r0:h,r:p,startAngle:d,endAngle:-v*u,clockwise:f},silent:!0})),d=-v*u}for(g=0;g<c.length;g++)t.add(EC(c[g],{style:Sh.i({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}},VY=BY,FY=["axisLine","axisTickLabel","axisName"],HY=["splitLine","splitArea","minorSplitLine"],GY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return xh(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,i=this._axisGroup=new Qg;this.group.add(i);var r=t.axis,o=r.polar,a=o.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),c=a.getExtent()[0],u=r.getExtent(),d=function(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(o,t,c),h=new SN(t,d);Sh.k(FY,h.add,h),i.add(h.getGroup()),WC(n,i,t),Sh.k(HY,function(e){t.get([e,"show"])&&!r.scale.isBlank()&&WY[e](this.group,t,o,c,u,s,l)},this)}},e.type="radiusAxis",e}(AN),WY={splitLine:function(t,e,n,i,o,a){var s=e.getModel("splitLine").getModel("lineStyle"),l=s.get("color"),c=0,u=n.getAngleAxis(),d=Math.PI/180,h=u.getExtent(),p=360===Math.abs(h[1]-h[0])?"Circle":"Arc";l=l instanceof Array?l:[l];for(var f=[],g=0;g<a.length;g++){var m=c++%l.length;f[m]=f[m]||[],f[m].push(new r[p]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[g].coord,0),startAngle:-h[0]*d,endAngle:-h[1]*d,clockwise:u.inverse}}))}for(g=0;g<f.length;g++)t.add(EC(f[g],{style:Sh.i({stroke:l[g%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,r,o,a){if(a.length){for(var s=e.getModel("minorSplitLine").getModel("lineStyle"),l=[],c=0;c<a.length;c++)for(var u=0;u<a[c].length;u++)l.push(new MM({shape:{cx:n.cx,cy:n.cy,r:a[c][u].coord}}));t.add(EC(l,{style:Sh.i({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,r,o){if(o.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];
70for(var c=[],u=o[0].coord,d=1;d<o.length;d++){var h=l++%s.length;c[h]=c[h]||[],c[h].push(new WM({shape:{cx:n.cx,cy:n.cy,r0:u,r:o[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),u=o[d].coord}for(d=0;d<c.length;d++)t.add(EC(c[d],{style:Sh.i({fill:s[d%s.length]},a.getAreaStyle()),silent:!0}))}}};var UY=GY;function qY(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function YY(t,e){return e.dim+t.model.componentIndex}var $Y=function(t,e,n){var i={},r=function(t){var e={};Sh.k(t,function(t,n){var i=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=YY(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),c=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;e[a]=c;var d=qY(t);u[d]||c.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var h=lm(t.get("barWidth"),l),p=lm(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");h&&!u[d].width&&(h=Math.min(c.remainedWidth,h),u[d].width=h,c.remainedWidth-=h),p&&(u[d].maxWidth=p),null!=f&&(c.gap=f),null!=g&&(c.categoryGap=g)});var n={};return Sh.k(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=lm(t.categoryGap,r),a=lm(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,c=(s-o)/(l+(l-1)*a);c=Math.max(c,0),Sh.k(i,function(t,e){var n=t.maxWidth;n&&n<c&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)}),c=(s-o)/(l+(l-1)*a),c=Math.max(c,0);var u,d=0;Sh.k(i,function(t,e){t.width||(t.width=c),u=t,d+=t.width*(1+a)}),u&&(d-=u.width*a);var h=-d/2;Sh.k(i,function(t,i){n[e][i]=n[e][i]||{offset:h,width:t.width},h+=t.width*(1+a)})}),n}(Sh.n(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=YY(n,o),s=qY(t),l=r[a][s],c=l.offset,u=l.width,d=n.getOtherAxis(o),h=t.coordinateSystem.cx,p=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;i[s]=i[s]||[];for(var m=e.mapDimension(d.dim),v=e.mapDimension(o.dim),y=VL(e,m),b="radius"!==o.dim||!t.get("roundCap",!0),_=d.model.get("startValue"),x=d.dataToCoord(_||0),w=0,S=e.count();w<S;w++){var O=e.get(m,w),M=e.get(v,w),C=O>=0?"p":"n",I=x;y&&(i[s][M]||(i[s][M]={p:x,n:x}),I=i[s][M][C]);var T=void 0,k=void 0,A=void 0,D=void 0;if("radius"===d.dim){var L=d.dataToCoord(O)-x,P=o.dataToCoord(M);Math.abs(L)<f&&(L=(L<0?-1:1)*f),T=I,k=I+L,D=(A=P-c)-u,y&&(i[s][M][C]=k)}else{var j=d.dataToCoord(O,b)-x,E=o.dataToCoord(M);Math.abs(j)<g&&(j=(j<0?-1:1)*g),k=(T=E+c)+u,A=I,D=I+j,y&&(i[s][M][C]=D)}e.setItemLayout(w,{cx:h,cy:p,r0:T,r:k,startAngle:-A*Math.PI/180,endAngle:-D*Math.PI/180,clockwise:A>=D})}}})},XY={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},ZY={splitNumber:5},KY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.type="polar",e}(eM);function JY(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?c.vertical[o]:l[0],"horizontal"===a?c.horizontal[o]:l[3]];r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),Sh.O(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var u=e.rotate;return null==u&&(u=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-u:u,r.z2=1,r}var QY=["axisLine","axisTickLabel","axisName"],t$=["splitArea","splitLine"],e$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return xh(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Qg;var s=JY(e),l=new SN(e,s);Sh.k(QY,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),Sh.k(t$,function(t){e.get([t,"show"])&&n$[t](this,this.group,this._axisGroup,e)},this),WC(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){PN(this)},e.type="singleAxis",e}(AN),n$={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];
70for(var l=a.get("width"),c=i.coordinateSystem.getRect(),u=r.isHorizontal(),d=[],h=0,p=r.getTicksCoords({tickModel:o}),f=[],g=[],m=0;m<p.length;++m){var v=r.toGlobalCoord(p[m].coord);u?(f[0]=v,f[1]=c.y,g[0]=v,g[1]=c.y+c.height):(f[0]=c.x,f[1]=v,g[0]=c.x+c.width,g[1]=v);var y=new rC({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});RC(y.shape,l);var b=h++%s.length;d[b]=d[b]||[],d[b].push(y)}var _=a.getLineStyle(["color"]);for(m=0;m<d.length;++m)e.add(EC(d[m],{style:Sh.i({stroke:s[m%s.length]},_),silent:!0}))}},splitArea:function(t,e,n,i){LN(t,n,i,i)}},i$=e$,r$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(uw);Object(Sh.K)(r$,Rj.prototype);var o$=r$,a$=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return xh(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(oN),s$=["single"];function l$(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var c$=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=s$,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=this.dimension,r=new a$(i,RE(t),[0,0],t.get("type"),t.get("position")),o="category"===r.type;r.onBand=o&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},t.prototype.update=function(t,e){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData();Object(Sh.k)(e.mapDimensionsAll(this.dimension),function(t){this._axis.scale.unionExtentFromData(e,t)},this),NE(this._axis.scale,this._axis.model)}},this)},t.prototype.resize=function(t,e){this._rect=nw({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.inverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return l$(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return l$(e)===this?this.pointToData(n):null},t}();var u$={create:function(t,e){var n=[];return t.eachComponent("singleAxis",function(i,r){var o=new c$(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",Ym).models[0];t.coordinateSystem=e&&e.coordinateSystem}}),n},dimensions:s$},d$=["x","y"],h$=["width","height"],p$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=m$(a,1-g$(o)),l=a.dataToPoint(e)[0],c=i.get("type");if(c&&"none"!==c){var u=Vq(i),d=f$[c](o,l,s);d.style=u,t.graphicKey=d.type,t.pointer=d}Wq(e,t,JY(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=JY(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=Gq(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=g$(r),s=m$(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var c=m$(o,1-a),u=(c[1]+c[0])/2,d=[u,u];return d[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},e}(zq),f$={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:Uq([e,n[0]],[e,n[1]],g$(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:qq([e-i/2,n[0]],[i,r],g$(t))}}};function g$(t){return t.isHorizontal()?0:1}function m$(t,e){var n=t.getRect();return[n[d$[e]],n[d$[e]]+n[h$[e]]]}var v$=p$,y$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.type="single",e}(eM);function b$(t,e){var n,i=t.cellSize;1===(n=Sh.t(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=Sh.H([0,1],function(t){return function(t,e){return null!=t[Qx[e][0]]||null!=t[Qx[e][1]]&&null!=t[Qx[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});ow(t,e,{type:"box",ignoreSize:r})}var _$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.init=function(e,n,i){var r=aw(e);
vendor: 4,937 bytes, line 70
70t.prototype.init.apply(this,arguments),b$(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),b$(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(uw),x$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,c=new Qy({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(c)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=e.start,u=0;c.time<=e.end.time;u++){h(c.formatedDate),0===u&&(c=o.getDateInfo(e.start.y+"-"+e.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=o.getDateInfo(d)}function h(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}h(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new tC({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Object(Sh.C)(t)&&t?(n=t,i=e,Sh.k(i,function(t,e){n=n.replace("{"+e+"}",r?Qh(t):t)}),n):Object(Sh.w)(t)?t(e):e.nameMap;var n,i,r},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,d={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},h=e.start.y;+e.end.y>+e.start.y&&(h=h+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:h},g=this._formatterLabel(p,f),m=new gb({z2:30,style:P_(r,{text:g}),silent:r.get("silent")});m.attr(this._yearTextPositionControl(m,d[a],n,a,o)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),c=[this._tlpoints,this._blpoints];o&&!Object(Sh.C)(o)||(o&&(e=px(o)||e),o=e.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,d="horizontal"===n?0:1;a="start"===s?-a:a;for(var h="center"===l,p=r.get("silent"),f=0;f<c[u].length-1;f++){var g=c[u][f].slice(),m=this._firstDayOfMonth[f];if(h){var v=this._firstDayPoints[f];g[d]=(v[d]+c[0][f+1][d])/2}var y=r.get("formatter"),b=o[+m.m-1],_={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},x=this._formatterLabel(y,_),w=new gb({z2:30,style:Object(Sh.m)(P_(r,{text:x}),this._monthTextPositionControl(g,h,n,s,a)),silent:p});i.add(w)}}}
70,e.prototype._weekTextPositionControl=function(t,e,n,i,r){var o="center",a="middle",s=t[0],l=t[1],c="start"===n;return"horizontal"===e?(s=s+i+(c?1:-1)*r[0]/2,o=c?"right":"left"):(l=l+i+(c?1:-1)*r[1]/2,a=c?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,i,r){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),c=o.get("margin"),u=a.getFirstDayOfWeek();if(!l||Object(Sh.C)(l))l&&(e=px(l)||e),l=e.get(["time","dayOfWeekShort"])||Object(Sh.H)(e.get(["time","dayOfWeekAbbr"]),function(t){return t[0]});var d=a.getNextNDay(n.end.time,7-n.lweek).time,h=[a.getCellWidth(),a.getCellHeight()];c=lm(c,Math.min(h[1],h[0])),"start"===s&&(d=a.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var p=o.get("silent"),f=0;f<7;f++){var g,m=a.getNextNDay(d,f),v=a.dataToRect([m.time],!1).center;g=Math.abs((f+u)%7);var y=new gb({z2:30,style:Object(Sh.m)(P_(o,{text:l[g]}),this._weekTextPositionControl(v,i,s,c,h)),silent:p});r.add(y)}}},e.type="calendar",e}(eM);function w$(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}var S$=function(){function t(e,n,i){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){var e=(t=bm(t)).getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,r=t.getDate(),o=r<10?"0"+r:""+r,a=t.getDay();return{y:e+"",m:i,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return 0===(e=e||0)?this.getDateInfo(t):((t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t))},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];Sh.k([0,1],function(t){c(r,t)&&(o[i[t]]=r[t]*a[t])});var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=nw(o,s);function c(t,e){return null!=t[e]&&"auto"!==t[e]}Sh.k([0,1],function(t){c(r,t)||(r[t]=l[i[t]]/a[t])}),this._sw=r[0],this._sh=r[1]},t.prototype.dataToPoint=function(t,e){Sh.t(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,r=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+864e5))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},t.prototype.convertToPixel=function(t,e,n){var i=w$(e);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=w$(e);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(Sh.t(e)&&1===e.length&&(e=e[0]),Sh.t(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);
vendor: 6,835 bytes, line 70
70t=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var c=Math.floor((i+n[0].day+6)/7),u=e?1-c:c-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},t.dimensions=["time","value"],t}();function O$(t,e){var n;return Sh.k(e,function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)}),n}var M$=["transition","enterFrom","leaveTo"],C$=M$.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I$(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?M$:C$,r=0;r<i.length;r++){var o=i[r];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var T$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return xh(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=Nm(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];Sh.k(a,function(t,e){var n=t.newOption;n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var i=Sh.m({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(Sh.I(r,i,!0),ow(r,i,{ignoreSize:!0}),sw(n,r),I$(n,r),I$(n,r,"shape"),I$(n,r,"style"),I$(n,r,"extra"),n.clipPath=r.clipPath):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}(r,e,n),function(t,e){if(t&&(t.hv=e.hv=[O$(e,["left","right"]),O$(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(r[e],n))},this),n.elements=Sh.n(r,function(t){return t&&delete t.$action,null!=t})},e.prototype._flatten=function(t,e,n){Sh.k(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(uw),k$={path:null,compoundPath:null,group:Qg,image:Uy,text:gb},A$=Gm(),D$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.init=function(){this._elMap=Sh.f()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,r=t.get("z"),o=t.get("zlevel");Sh.k(e,function(e){var a=zm(e.id,null),s=null!=a?n.get(a):null,l=zm(e.parentId,null),c=null!=l?n.get(l):i,u=e.type,d=e.style;"text"===u&&d&&e.hv&&e.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var h=e.textContent,p=e.textConfig;if(d&&PU(d,u,!!p,!!h)){var f=jU(d,u,!0);!p&&f.textConfig&&(p=e.textConfig=f.textConfig),!h&&f.textContent&&(h=f.textContent)}var g=function(t){return t=Sh.m({},t),Sh.k(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Jx),function(e){delete t[e]}),t}(e);var m=e.$action||"merge",v="merge"===m,y="replace"===m;if(v){var b=s;(C=!s)?b=P$(a,c,e.type,n):(b&&(A$(b).isNew=!1),eq(b)),b&&(GU(b,g,t,{isInit:C}),E$(b,e,r,o))}else if(y){j$(s,e,n,t);var _=P$(a,c,e.type,n);_&&(GU(_,g,t,{isInit:!0}),E$(_,e,r,o))}else"remove"===m&&(WU(s,e),j$(s,e,n,t));var x=n.get(a);if(x&&h)if(v){var w=x.getTextContent();w?w.attr(h):x.setTextContent(new gb(h))}else y&&x.setTextContent(new gb(h));if(x){var S=e.clipPath;if(S){var O=S.type,M=void 0,C=!1;if(v){var I=x.getClipPath();M=(C=!I||A$(I).type!==O)?L$(O):I}else y&&(C=!0,M=L$(O));x.setClipPath(M),GU(M,S,t,{isInit:C}),nq(M,S.keyframeAnimation,t)}var T=A$(x);x.setTextConfig(p),T.option=e,function(t,e,n){var i=mb(t).eventData;t.silent||t.ignore||i||(i=mb(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});i&&(i.info=n.info)}(x,t,e),KC({el:x,componentModel:t,itemName:x.name,itemTooltipOption:e.tooltip}),nq(x,e.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){if((f=null!=(p=zm((h=n[l]).id,null))?r.get(p):null)&&f.isGroup){var c=(g=f.parent)===i,u=A$(f),d=A$(g);u.width=lm(u.option.width,c?o:d.width)||0,u.height=lm(u.option.height,c?a:d.height)||0}}for(l=n.length-1;l>=0;l--){var h,p,f;if(f=null!=(p=zm((h=n[l]).id,null))?r.get(p):null){var g=f.parent,m=(d=A$(g),{}),v=iw(f,h,g===i?{width:o,height:a}:{width:d.width,height:d.height},null,{hv:h.hv,boundingMode:h.bounding},m);if(!A$(f).isNew&&v){for(var y=h.transition,b={},_=0;_<s.length;_++){var x=s[_],w=m[x];y&&(qU(y)||Sh.r(y,x)>=0)?b[x]=w:f[x]=w}x_(f,b,t,0)}else f.attr(m)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each(function(n){j$(n,A$(n).option,e,t._lastGraphicModel)}),this._elMap=Sh.f()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(eM);function L$(t){var e=new(Sh.q(k$,t)?k$[t]:DC(t))({});return A$(e).type=t,e}function P$(t,e,n,i){var r=L$(n);return e.add(r),i.set(t,r),A$(r).id=t,A$(r).isNew=!0,r}function j$(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse(function(t){j$(t,e,n,i)}),UU(t,e,i),n.removeKey(A$(t).id))}function E$(t,e,n,i){t.isGroup||Sh.k([["cursor",Rv.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],function(n){var i=n[0];Sh.q(e,i)?t[i]=Sh.P(e[i],n[1]):null==t[i]&&(t[i]=n[1])}),Sh.k(Sh.F(e),function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=Sh.w(i)?i:null}}),Sh.q(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&
70(t.id=e.id)}var N$=["x","y","radius","angle","single"],R$=["cartesian2d","polar","singleAxis"];function B$(t){return t+"Axis"}function z$(t,e){var n,i=Object(Sh.f)(),r=[],o=Object(Sh.f)();t.eachComponent({mainType:"dataZoom",query:e},function(t){o.get(t.uid)||s(t)});do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis(function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)}),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis(function(t,e){(i.get(t)||i.set(t,[]))[e]=!0})}return r}function V$(t){var e=t.ecModel,n={infoList:[],infoMap:Object(Sh.f)()};return t.eachTargetAxis(function(t,i){var r=e.getComponent(B$(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}}),n}var F$=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}();function H$(t){var e={};return Object(Sh.k)(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var G$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return xh(e,t),e.prototype.init=function(t,e,n){var i=H$(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=H$(t);Object(Sh.I)(this.option,t,!0),Object(Sh.I)(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(Sh.k)([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(Sh.f)();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(Sh.k)(N$,function(n){var i=this.getReferringComponents(B$(n),$m);if(i.specified){e=!0;var r=new F$;Object(Sh.k)(i.models,function(t){r.add(t.componentIndex)}),t.set(n,r)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}i&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function o(e,n){var r=e[0];if(r){var o=new F$;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",Ym).models[0];a&&Object(Sh.k)(e,function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",Ym).models[0]&&o.add(t.componentIndex)})}}}i&&Object(Sh.k)(N$,function(e){if(i){var r=n.findComponents({mainType:B$(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new F$;o.add(r[0].componentIndex),t.set(e,o),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(e){!t&&(t=e)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(Sh.k)([["start","startValue"],["end","endValue"]],function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;
70return this.eachTargetAxis(function(e,n){null==t&&(t=this.ecModel.getComponent(B$(e),n))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){Object(Sh.k)(n.indexList,function(n){t.call(e,i,n)})})},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(B$(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(Sh.k)([["start","startValue"],["end","endValue"]],function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(Sh.k)(["start","startValue","end","endValue"],function(n){e[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(uw),W$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.type="dataZoom.select",e}(G$),U$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(eM),q$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.type="dataZoom.select",e}(U$),Y$=Sh.k,$$=um;var X$=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(function(t){var e=t.get("coordinateSystem");return Object(Sh.r)(R$,e)>=0}(e)){var n=B$(this._dimName),i=e.getReferringComponents(n,Ym).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return Sh.d(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];Y$(["start","end"],function(l,c){var u=t[l],d=t[l+"Value"];"percent"===r[c]?(null==u&&(u=o[c]),d=i.parse(sm(u,o,n))):(e=!0,u=sm(d=null==d?n[c]:i.parse(d),n,o)),s[c]=null==d||isNaN(d)?n[c]:d,a[c]=null==u||isNaN(u)?o[c]:u}),$$(s),$$(a);var l=this._minMaxSpan;function c(t,e,n,r,o){var a=o?"Span":"ValueSpan";rH(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=sm(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?c(s,a,n,o,!1):c(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];Y$(n,function(t){!function(t,e,n){e&&Sh.k(HE(e,n),function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])})}(i,t.getData(),e)});var r=t.getAxisModel(),o=PE(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&Y$(i,function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=Sh.H(i,function(t){return e.getDimensionIndex(t)},e);e.filterSelf(function(t){for(var e,n,r,l=0;l<i.length;l++){var c=a.get(s[l],t),u=!isNaN(c),d=c<o[0],h=c>o[1];if(u&&!d&&!h)return!0;u&&(r=!0),d&&(e=!0),h&&(n=!0)}return r&&e&&n})}else Y$(i,function(n){if("empty"===r)t.setData(e=e.map(n,function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN}));else{var i={};i[n]=o,e.selectRange(i)}});Y$(i,function(t){e.setApproximateExtent(o,t)}
70)}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;Y$(["min","max"],function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=sm(n[0]+o,n,[0,100],!0):null!=r&&(o=sm(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=hm(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}(),Z$={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r){var o=t.getComponent(B$(i),r);e(i,r,o,n)})})}e(function(t,e,n,i){n.__dzAxisProxy=null});var n=[];e(function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new X$(e,i,o,t),n.push(r.__dzAxisProxy))});var i=Object(Sh.f)();return Object(Sh.k)(n,function(t){Object(Sh.k)(t.getTargetSeriesModels(),function(t){i.set(t.uid,t)})}),i},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(e,n){t.getAxisProxy(e,n).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};var K$=!1;function J$(t){K$||(K$=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Z$),function(t){t.registerAction("dataZoom",function(t,e){var n=z$(e,t);Object(Sh.k)(n,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Q$(t){t.registerComponentModel(W$),t.registerComponentView(q$),J$(t)}var tX=function(){return function(){}}(),eX={};function nX(t,e){eX[t]=e}function iX(t){return eX[t]}var rX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;Sh.k(this.option.feature,function(t,n){var i=iX(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Sh.I(t,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(uw);function oX(t,e){var n=Wx(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new Qy({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var aX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),c=[];Sh.k(s,function(t,e){c.push(e)}),new cL(this._featureNames||[],c).add(u).update(u).remove(Sh.h(u,null)).execute(),this._featureNames=c,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=nw(i,o,r);ew(e.get("orient"),t,e.get("itemGap"),a.width,a.height),iw(t,i,o,r)}(r,t,n),r.add(oX(r.getBoundingRect(),t)),a||r.eachChild(function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!Sh.w(l)&&e){var c=l.style||(l.style={}),u=Rg(e,gb.makeFont(c)),d=t.x+r.x,h=!1;t.y+r.y+o+u.height>n.getHeight()&&(a.position="top",h=!0);var p=h?-5-u.height:o+10;d+u.width/2>n.getWidth()?(a.position=["100%",p],c.align="right"):d-u.width/2<0&&(a.position=[0,p],c.align="left")}})}function u(u,d){var h,p=c[u],f=c[d],g=s[p],m=new nx(g,t,t.ecModel);
70if(i&&null!=i.newTitle&&i.featureName===p&&(g.title=i.newTitle),p&&!f){if(function(t){return 0===t.indexOf("my")}(p))h={onclick:m.option.onclick,featureName:p};else{var v=iX(p);if(!v)return;h=new v}l[p]=h}else if(!(h=l[f]))return;h.uid=rx("toolbox-feature"),h.model=m,h.ecModel=e,h.api=n;var y=h instanceof tX;p||!f?!m.get("show")||y&&h.unusable?y&&h.remove&&h.remove(e,n):(!function(i,s,l){var c,u,d=i.getModel("iconStyle"),h=i.getModel(["emphasis","iconStyle"]),p=s instanceof tX&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};Sh.C(p)?(c={})[l]=p:c=p;Sh.C(f)?(u={})[l]=f:u=f;var g=i.iconPaths={};Sh.k(c,function(l,c){var p=YC(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(d.getItemStyle());var f=p.ensureState("emphasis");f.style=h.getItemStyle();var m=new gb({style:{text:u[c],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null,font:z_({fontStyle:h.get("textFontStyle"),fontFamily:h.get("textFontFamily"),fontSize:h.get("textFontSize"),fontWeight:h.get("textFontWeight")},e)},ignore:!0});p.setTextContent(m),KC({el:p,componentModel:t,itemName:c,formatterParamsExtra:{title:u[c]}}),p.__title=u[c],p.on("mouseover",function(){var e=h.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";m.setStyle({fill:h.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),p.setTextConfig({position:h.get("textPosition")||i}),m.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==i.get(["iconStatus",c])&&n.leaveEmphasis(this),m.hide()}),("emphasis"===i.get(["iconStatus",c])?Xb:Zb)(p),r.add(p),p.on("click",Sh.c(s.onclick,s,e,n,c)),g[c]=p})}(m,h,p),m.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Xb:Zb)(i[t])},h instanceof tX&&h.render&&h.render(m,e,n,i)):y&&h.dispose&&h.dispose(e,n)}},e.prototype.updateView=function(t,e,n,i){Sh.k(this._features,function(t){t instanceof tX&&t.updateView&&t.updateView(t.model,e,n,i)})},e.prototype.remove=function(t,e){Sh.k(this._features,function(n){n instanceof tX&&n.remove&&n.remove(t,e)}),this.group.removeAll()},e.prototype.dispose=function(t,e){Sh.k(this._features,function(n){n instanceof tX&&n.dispose&&n.dispose(t,e)})},e.type="toolbox",e}(eM),sX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=wh.a.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||r){var l=a.split(","),c=l[0].indexOf("base64")>-1,u=r?decodeURIComponent(l[1]):l[1];c&&(u=window.atob(u));var d=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var h=u.length,p=new Uint8Array(h);h--;)p[h]=u.charCodeAt(h);var f=new Blob([p]);window.navigator.msSaveOrOpenBlob(f,d)}else{var g=document.createElement("iframe");document.body.appendChild(g);var m=g.contentWindow,v=m.document;v.open("image/svg+xml","replace"),v.write(u),v.close(),m.focus(),v.execCommand("SaveAs",!0,d),document.body.removeChild(g)}}else{var y=n.get("lang"),b='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(y&&y[0]||"")+'" /></body>',_=window.open();_.document.write(b),_.document.title=i}else{var x=document.createElement("a");x.download=i+"."+o,x.target="_blank",x.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});x.dispatchEvent(w)}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","t
70itle"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(tX),lX=[["line","bar"],["stack"]],cX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return Sh.k(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(uX[n]){var o,a={series:[]};Sh.k(lX,function(t){Sh.r(t,n)>=0&&Sh.k(t,function(t){i.setIconStatus(t,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},function(t){var e=t.subType,r=t.id,o=uX[n](e,r,t,i);o&&(Sh.i(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim+"Axis",u=t.getReferringComponents(c,Ym).models[0].componentIndex;a[c]=a[c]||[];for(var d=0;d<=u;d++)a[c][u]=a[c][u]||{};a[c][u].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(o=Sh.I({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(tX),uX={line:function(t,e,n,i){if("bar"===t)return Sh.I({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return Sh.I({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r="__ec_magicType_stack__"===n.get("stack");if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),Sh.I({id:e,stack:r?"":"__ec_magicType_stack__"},i.get(["option","stack"])||{},!0)}};Yk({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var dX=cX,hX=new Array(60).join("-"),pX="\t";function fX(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var gX=new RegExp("["+pX+"]+","g");function mX(t,e){var n=t.split(new RegExp("\n*"+hX+"\n*","g")),i={series:[]};return Sh.k(n,function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(pX)>=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=fX(e.shift()).split(gX),i=[],r=Sh.H(n,function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var a=fX(e[o]).split(gX);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}(t),o=e[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=function(t){for(var e=t.split(/\n+/g),n=fX(e.shift()),i=[],r=0;r<e.length;r++){var o=fX(e[r]);if(o){var a=o.split(gX),s="",l=void 0,c=!1;isNaN(a[0])?(c=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var u=0;u<a.length;u++)l.push(+a[u]);1===l.length&&(c?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}(t);i.series.push(r)}}),i}var vX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.onclick=function(t,e){setTimeout(function(){e.dispatchAction({type:"hideTip"})});var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var c=i.get("optionToContent"),u=i.get("contentToOption"),d=function(t){var e,n,i,r=function(t){var e={},n=[],i=[];return t.eachRawSeries(function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}}),{seriesGroupByCategoryAxis:e,other:n,meta:i}}(t);return{value:Sh.n([(n=r.seriesGroupByCategoryAxis,i=[],Sh.k(n,function(t,e){var n=t.categoryAxis,r=t.valueAxis.dim,o=[" "].concat(Sh.H(t.series,function(t){return t.name})),a=[n.model.getCategories()];Sh.k(t.series,function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(r),function(t){return t}))});for(var s=[o.join(pX)],l=0;l<a[0].length;l++){for(var c=[],u=0;u<a.length;u++)c.push(a[u][l]);s.push(c.join(pX))}i.push(s.join("\n"))}),i.join("\n\n"+hX+"\n\n")),(e=r.other,Sh.H(e,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)i[a]=arguments[a];n.push((o?o+pX:"")+i.join(pX))}),n.join("\n")}).join("\n\n"+hX+"\n\n"))],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join("\n\n"+hX+"\n\n"),meta:r.meta}}(t);if(Sh.w(c)){var h=c(e.getOption());Sh.C(h)?s.innerHTML=h:Sh.v(h)&&s.appendChild(h)}else{l.readOnly=i.get("readOnly");var p=l.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=d.value,s.appendChild(l)}var f=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function _(){n.removeChild(r),b._dom=null}sp(v,"click",_),sp(y,"click",function(){if(null==u&&null!=c||null!=u&&null==c)_();else{var t;try{t=Sh.w(u)?u(s,e.getOption()):mX(l.value,f)}catch(t){throw _(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),_()}}),v.innerHTML=a[1],y.innerHTML=a[2],y.style.cssText=v.style.cssText=m,!i.get("readOnly")&&g.appendChild(y),g.appendChild(v),r.appendChild(o),r.appendChild(s),r.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},e}(tX);function yX(t,e){return Sh.H(t,function(t,n){var i=e&&e[n];
70if(Sh.A(i)&&!Sh.t(i)){Sh.A(t)&&!Sh.t(t)||(t={value:t});var r=null!=i.name&&null==t.name;return t=Sh.i(t,i),r&&delete t.name,t}return t})}Yk({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];Sh.k(t.newOption.series,function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");n.push({name:t.name,data:yX(t.data,r)})}else n.push(Sh.m({type:"scatter"},t))}),e.mergeOption(Sh.i({series:n},t.newOption))});var bX=vX,_X=Sh.k,xX=Gm();function wX(t){var e=xX(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var SX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.onclick=function(t,e){!function(t){xX(t).snapshots=null}(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(tX);Yk({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var OX=SX,MX=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],CX=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=TX(e,t);Object(Sh.k)(kX,function(t,e){(!n||!n.include||Object(Sh.r)(n.include,e)>=0)&&t(r,i._targetInfoList)})}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=LX[t.brushType](0,n,e);t.__rangeOffset={offset:jX[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}),t},t.prototype.matchOutputRanges=function(t,e,n){Object(Sh.k)(t,function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(Sh.k)(i.coordSyses,function(i){var r=LX[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)})},this)},t.prototype.setInputRanges=function(t,e){Object(Sh.k)(t,function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=LX[t.brushType](0,s.coordSys,t.coordRange),c=t.__rangeOffset;t.range=c?jX[t.brushType](l.values,c.offset,(n=l.xyMinMax,i=c.xyMinMax,r=NX(n),o=NX(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}},this)},t.prototype.makePanelOpts=function(t,e){return Object(Sh.H)(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:lG(i),isTargetByCursor:uG(i,t,n.coordSysModel),getLinearBrushOtherExtent:cG(i)}})},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&Object(Sh.r)(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=TX(e,t),r=0;r<n.length;r++){var o=n[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<AX.length;s++)if(AX[s](i,o))return o}return!0},t}();function IX(t){return t[0]>t[1]&&t.reverse(),t}function TX(t,e){return Um(t,e,{includeMainTypes:MX})}var kX={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=Object(Sh.f)(),a={},s={};(n||i||r)&&(Object(Sh.k)(n,function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0}),Object(Sh.k)(i,function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0}),Object(Sh.k)(r,function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),o.each(function(t){var r=t.coordinateSystem,o=[];Object(Sh.k)(r.getCartesians(),function(t,e){(Object(Sh.r)(n,t.getAxis("x").model)>=0||Object(Sh.r)(i,t.getAxis("y").model)>=0)&&o.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:DX.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){Object(Sh.k)(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:DX.geo})})}},AX=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],DX={grid:function(){return this.coordSys.master.getRect().clone()}
vendor: 7,240 bytes, line 70
70,geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(VC(t)),e}},LX={lineX:Object(Sh.h)(PX,0),lineY:Object(Sh.h)(PX,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[IX([r[0],o[0]]),IX([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:Object(Sh.H)(n,function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}),xyMinMax:r}}};function PX(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=IX(Object(Sh.H)([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var jX={lineX:Object(Sh.h)(EX,0),lineY:Object(Sh.h)(EX,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(Sh.H)(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};function EX(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function NX(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var RX,BX,zX=CX,VX=Sh.k,FX=Am+"toolbox-dataZoom_",HX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new sG(n.getZr()),this._brushController.on("brush",Sh.c(this._onBrush,this)).mount()),function(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive);n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new zX(WX(t),e,{include:["grid"]}).makePanelOpts(r,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),function(t,e){t.setIconStatus("back",function(t){return wX(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){GX[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new zX(WX(this.model),i,{include:["grid"]}).matchOutputRanges(e,i,function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}}),function(t,e){var n=wX(t);_X(e,function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}}),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)}),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=rH(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];VX(t,function(t,n){e.push(Sh.d(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(tX),GX={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=wX(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return _X(n,function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}}),i}(this.ecModel))}};function WX(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}RX="dataZoom",BX=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=Um(t,WX(i));return VX(o.xAxisModels,function(t){return a(t,"xAxis","xAxisIndex")}),VX(o.yAxisModels,function(t){return a(t,"yAxis","yAxisIndex")}),r}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:FX+e+o};a[n]=o,r.push(a)}},Object(Sh.b)(null==Aw.get(RX)&&BX),Aw.set(RX,BX);var UX=HX;var qX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(uw);function YX(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function $X(t){if(wh.a.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var XX=$X(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function ZX(t,e){if(!t)return e;e=Gx(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var KX=ZX($X(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),JX=ZX(XX,"transform"),QX="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(wh.a.transform3dSupported?"will-change:transform;":"");function tZ(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!wh.a.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=wh.a.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+JX+":"+a+";":[["top",0],["left",0],[XX,a]]}function eZ(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),u=t.getModel("textStyle"),d=zO(t,"html"),h=l+"px "+c+"px "+a+"px "+s;return i.push("box-shadow:"+h),e&&r&&i.push(function(t,e){var n=" "+t/2
70+"s cubic-bezier(0.23,1,0.32,1)",i="opacity"+n+",visibility"+n;return e||(n=" "+t+"s cubic-bezier(0.23,1,0.32,1)",i+=wh.a.transformSupported?","+JX+n:",left"+n+",top"+n),KX+":"+i}(r,n)),o&&i.push("background-color:"+o),Object(Sh.k)(["width","color","radius"],function(e){var n="border-"+e,r=Gx(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))}),i.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=Object(Sh.P)(t.get("lineHeight"),Math.round(3*n/2));n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),Object(Sh.k)(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}(u)),null!=d&&i.push("padding:"+Wx(d).join("px ")+"px"),i.join(";")+";"}function nZ(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,i,r){Xh($h,e,i,r,!0)&&Xh(t,n,$h[0],$h[1])}(t,a,n,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var iZ=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,wh.a.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,o=r&&(Object(Sh.C)(r)?document.querySelector(r):Object(Sh.v)(r)?r:Object(Sh.w)(r)&&r(t.getDom()));nZ(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler;ap(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(o="position",(a=(r=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?o?a[o]:a:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=QX+eZ(t,!this._firstShow,this._longHide)+tZ(r[0],r[1],!0)+"border-color:"+Xx(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(Object(Sh.C)(r)&&"item"===n.get("trigger")&&!YX(n)&&(a=function(t,e,n){if(!Object(Sh.C)(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=Xx(e);var o,a,s=o="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(r),6),c="",u=JX+":";Object(Sh.r)(["left","right"],s)>-1?(c+="top:50%",u+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(c+="left:50%",u+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var d=a*Math.PI/180,h=l+r,p=h*Math.abs(Math.cos(d))+h*Math.abs(Math.sin(d)),f=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(c+=";"+s+":-"+Math.round(100*((p-Math.SQRT2*r)/2+Math.SQRT2*r-(p-h)/2))/100+"px")+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),Object(Sh.C)(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(Sh.t)(t)||(t=[t]);for(var s=0;s<t.length;s++)Object(Sh.v)(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(nZ(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,r=tZ(n[0],n[1]);Object(Sh.k)(r,function(t){i[t[0]]=t[1]})}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",wh.a.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(Sh.c)(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}();function rZ(t){return Math.max(0,t)}function oZ(t){var e=rZ(t.shadowBlur||0),n=rZ(t.shadowOffsetX||0),i=rZ(t.shadowOffsetY||0);return{left:rZ(e-n),right:rZ(e+n),top:rZ(e-i),bottom:rZ(e+i)}}function aZ(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var sZ=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),aZ(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;Sh.A(t)&&Vw(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new gb({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:zO(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),Sh.k(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),Sh.k(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect
vendor: 4,916 bytes, line 70
70(),n=oZ(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;aZ(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=rZ(r.borderWidth||0),a=oZ(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Sh.c(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),lZ=new Qy({shape:{x:-1,y:-1,width:2,height:2}});function cZ(t,e,n){var i,r=e.ecModel;n?(i=new nx(n,r,r),i=new nx(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof nx&&(a=a.get("tooltip",!0)),Object(Sh.C)(a)&&(a={formatter:a}),a&&(i=new nx(a,i,r)))}return i}function uZ(t,e){return t.dispatchAction||Object(Sh.c)(e.dispatchAction,e)}function dZ(t){return"center"===t||"middle"===t}var hZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.init=function(t,e){if(!wh.a.node&&e.getDom()){var n,i=t.getComponent("tooltip"),r=this._renderMode="auto"===(n=i.get("renderMode"))?wh.a.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===r?new sZ(e):new iZ(e,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!wh.a.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?pI(this,"_updatePosition",50,"fixRate"):fI(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");nY("itemTooltip",this._api,Object(Sh.c)(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!wh.a.node&&n.getDom()){var r=uZ(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=qm(t).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o,a=Xm(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!a)return;if(n.getViewOfComponentModel(a).group.traverse(function(e){var n=mb(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o)return{componentMainType:r,componentIndex:a.componentIndex,el:o}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=lZ;l.x=i.x,l.y=i.y,l.update(),mb(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var c=sY(i,e),u=c.point[0],d=c.point[1];null!=u&&null!=d&&this._tryShow({offsetX:u,offsetY:d,target:c.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(uZ(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s)if("axis"===cZ([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;
70if("legend"===mb(n).ssrType)return;this._lastDataByCoordSys=null,nT(n,function(t){return null!=mb(t).dataIndex?(r=t,!0):null!=mb(t).tooltipConfig?(o=t,!0):void 0},!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(Sh.c)(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=cZ([e.tooltipOption],i),a=this._renderMode,s=[],l=AO("section",{blocks:[],noHeader:!0}),c=[],u=new VO;Object(Sh.k)(t,function(t){Object(Sh.k)(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=Hq(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),d=AO("section",{header:o,noHeader:!Object(Sh.T)(o),sortBlocks:!0,blocks:[]});l.blocks.push(d),Object(Sh.k)(t.seriesDataIndices,function(l){var h=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=h.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=zE(e.axis,{value:r}),f.axisValueLabel=o,f.marker=u.makeTooltipMarker("item",Xx(f.color),a);var g=qS(h.formatTooltip(p,!0,null)),m=g.frag;if(m){var v=cZ([h],i).get("valueFormatter");d.blocks.push(v?Object(Sh.m)({valueFormatter:v},m):m)}g.text&&c.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),c.reverse();var d=e.position,h=o.get("order"),p=EO(l,u,a,h,n.get("useUTC"),o.get("textStyle"));p&&c.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=c.join(f);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],d,null,u)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=mb(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,c=r.dataType,u=s.getData(c),d=this._renderMode,h=t.positionDefault,p=cZ([u.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,c),m=new VO;g.marker=m.makeTooltipMarker("item",Xx(g.color),d);var v=qS(s.formatTooltip(l,!1,c)),y=p.get("order"),b=p.get("valueFormatter"),_=v.frag,x=_?EO(b?Object(Sh.m)({valueFormatter:b},_):_,m,d,y,i.get("useUTC"),p.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(p,function(){this._showTooltipContent(p,x,g,w,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=mb(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if(Object(Sh.C)(o)){o={content:o,formatter:o},a=!0}a&&i&&o.content&&((o=Object(Sh.d)(o)).content=Qh(o.content));var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var c=t.positionDefault,u=cZ(s,this._tooltipModel,c?{position:c}:null),d=u.get("content"),h=Math.random()+"",p=new VO;this._showOrMove(u,function(){var n=Object(Sh.d)(u.get("formatterParams")||{});this._showTooltipContent(u,d,n,h,t.offsetX,t.offsetY,t.position,e,p)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var u=t.get("formatter");a=a||t.get("position");var d=e,h=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(u)if(Object(Sh.C)(u)){var p=t.ecModel.get("useUTC"),f=Object(Sh.t)(n)?n[0]:n;d=u,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(d=Mx(f.axisValue,d,p)),d=$x(d,n,!0)}else if(Object(Sh.w)(u)){var g=Object(Sh.c)(function(e,i){e===this._ticket&&(c.setContent(i,l,t,h,a),this._updatePosition(t,a,r,o,c,n,s))},this);this._ticket=i,d=u(n,i,g)}else d=u;c.setContent(d,l,t,h,a),c.show(t,h),this._updatePosition(t,a,r,o,c,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(Sh.t)(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(Sh.t)(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var c=r.getSize(),u=t.get("align"),d=t.get("verticalAlign"),h=a&&a.getBoundingRect
vendor: 22,178 bytes, line 70
70().clone();if(a&&h.applyTransform(a.transform),Object(Sh.w)(e)&&(e=e([n,i],o,r.el,h,{viewSize:[s,l],contentSize:c.slice()})),Object(Sh.t)(e))n=lm(e[0],s),i=lm(e[1],l);else if(Object(Sh.A)(e)){var p=e;p.width=c[0],p.height=c[1];var f=nw(p,{width:s,height:l});n=f.x,i=f.y,u=null,d=null}else if(Object(Sh.C)(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,c=e.width,u=e.height;switch(t){case"inside":s=e.x+c/2-r/2,l=e.y+u/2-o/2;break;case"top":s=e.x+c/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+c/2-r/2,l=e.y+u+a;break;case"left":s=e.x-r-a,l=e.y+u/2-o/2;break;case"right":s=e.x+c+a,l=e.y+u/2-o/2}return[s,l]}(e,h,c,t.get("borderWidth"));n=g[0],i=g[1]}else{g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],c=s[1];null!=o&&(t+l+o+2>i?t-=l+o:t+=o);null!=a&&(e+c+a>r?e-=c+a:e+=a);return[t,e]}(n,i,r,s,l,u?null:20,d?null:20);n=g[0],i=g[1]}if(u&&(n-=dZ(u)?c[0]/2:"right"===u?c[0]:0),d&&(i-=dZ(d)?c[1]/2:"bottom"===d?c[1]:0),YX(t)){g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Object(Sh.k)(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&Object(Sh.k)(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&Object(Sh.k)(a,function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&Object(Sh.k)(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!wh.a.node&&e.getDom()&&(fI(this,"_updatePosition"),this._tooltipContent.dispose(),oY("itemTooltip",e))},e.type="tooltip",e}(eM);var pZ=["rect","polygon","keep","clear"];function fZ(t,e){var n=Dm(t?t.brush:[]);if(n.length){var i=[];Sh.k(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))});var r=t&&t.toolbox;Sh.t(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o,a,s=r.feature||(r.feature={}),l=s.brush||(s.brush={}),c=l.type||(l.type=[]);c.push.apply(c,i),o=c,a={},Sh.k(o,function(t){a[t]=1}),o.length=0,Sh.k(a,function(t,e){o.push(e)}),e&&!c.length&&c.push.apply(c,pZ)}}var gZ=Sh.k;function mZ(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function vZ(t,e,n){var i={};return gZ(e,function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);gZ(t[e],function(t,i){if(aV.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new aV(r),"opacity"===i&&((r=Sh.d(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new aV(r))}})}),i}function yZ(t,e,n){var i;Sh.k(n,function(t){e.hasOwnProperty(t)&&mZ(e[t])&&(i=!0)}),i&&Sh.k(n,function(n){e.hasOwnProperty(n)&&mZ(e[n])?t[n]=Sh.d(e[n]):delete t[n]})}var bZ={lineX:_Z(0),lineY:_Z(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&BR(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(BR(i,r,o)||BR(i,r+a,o)||BR(i,r,o+s)||BR(i,r+a,o+s)||kp.create(t).contain(l[0],l[1])||$C(r,o,r+a,o,i)||$C(r,o,r,o+s,i)||$C(r+a,o,r+a,o+s,i)||$C(r,o+s,r+a,o+s,i))||void 0}}};function _Z(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return xZ(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),xZ(s[0],a)||xZ(s[1],a)||xZ(a[0],s)||xZ(a[1],s)}}}}function xZ(t,e){return e[0]<=t&&t<=e[1]}var wZ=["inBrush","outOfBrush"],SZ="__ecBrushSelect",OZ="__ecInBrushSelectEvent";function MZ(t){t.eachComponent({mainType:"brush"},function(e){(e.brushTargetManager=new zX(e.option,t)).setInputRanges(e.areas,t)})}function CZ(t,e,n){var i,r,o=[];t.eachComponent({mainType:"brush"},function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})}),MZ(t),t.eachComponent({mainType:"brush"},function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:Sh.d(e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,c=[],u=[],d=[],h=!1;n||(i=s.throttleType,r=s.throttleDelay);var p=Sh.H(e.areas,function(t){var e=kZ[t.brushType],n=Sh.i({boundingRect:e?e(t):void 0},t);return n.selectors=function(t){var e=t.brushType,n={point:function(i){return bZ[e].point(i,n,t)},rect:function(i){return bZ[e].rect(i,n,t)}};return n}(n),n}),f=vZ(e.option,wZ,function(t){t.mappingMethod="fixed"});function g(t){return"all"===l||!!c[t]}function m(t){return!!t.length}Sh.t(l)&&Sh.k(l,function(t){c[t]=1}),t.eachSeries(function(n,i){var r=d[i]=[];"parallel"===n.subType?function(t,e){var n=t.coordinateSystem;h=h||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),function(t,e){"active"===t&&(u[e]=1)})}(n,i):function(n,i,r){if(!n.brushSelector||function(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(Sh.t(n)?Sh.r(n,e)<0:e!==n)}(e,i))return;if(Sh.k(p,function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),h=h||m(r)}),g(i)&&m(r)){var o=n.getData();o.each(function(t){TZ(n,r,o,t)&&(u[t]=1)})}}(n,i,r)}),t.eachSeries(function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var i=d[e],r=t.getData(),o=g(e)?function(t){return u[t]?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return TZ(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?h:m(i))&&function(t,e,n,i,r,o){var a,s={};function l(t){return KI(n,a,t)}function c(t,e){QI(n,a,t,e)}function u(t,u){a=null==o?t:u;var d=n.getRawDataItem(a);if(!d||!1!==d.visualMap)for(var h=i.call(r,t),p=e[h],f=s[h],g=0,m=f.length;g<m;g++){var v=f[g];p[v]&&p[v].applyVisual(t,l,c)}}Sh.k(t,function(t){var n=aV.prepareVisualTypes(e[t]);s[t]=n}),null==o?n.each(u):n.each([o],u)}(wZ,f,r,o)})}),function(t,e,n,i,r){if(!r)return;var o=t.getZr();if(o[OZ])return;o[SZ]||(o[SZ]=IZ);pI(o,SZ,n,e)(t,i)}(e,i,r,o,n)}function IZ(t,e){if(!t.isDisposed()){var n=t.getZr();n[OZ]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[OZ]=!1}}function TZ(t,e,n,i){for(var r=0,o=e.length;r<o;r++){var a=e[r];if(t.brushSelector(i,n,a.selectors,a))return!0}}var kZ={rect:function(t){return AZ(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&AZ(e)}};function AZ(t){return new kp(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var DZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new sG(e.getZr())).on("brush",Sh.c(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){MZ(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:Sh.d(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:Sh.d(n),$from:e})},e.type="brush",e}(eM);function LZ(t,e){return Sh.I({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new nx(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var PZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return xh(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&yZ(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=Sh.H(t,function(t){return LZ(this.option,t)},this))},e.prototype.setBrushOption=function(t){this.brushOption=LZ(this.option,t),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}(uw),jZ=["rect","polygon","lineX","lineY","keep","clear"],EZ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xh(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length}),this._brushType=i,this._brushMode=r,Sh.k(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return Sh.k(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:jZ.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:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(tX);var NZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return xh(e,t),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}(uw),RZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=Sh.P(t.get("textBaseline"),t.get("textVerticalAlign")),l=new gb({style:P_(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=t.get("subtext"),d=new gb({style:P_(o,{text:u,fill:o.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!h&&!f,d.silent=!p&&!f,h&&l.on("click",function(){Zx(h,"_"+t.get("target"))}),p&&d.on("click",function(){Zx(p,"_"+t.get("subtarget"))}),mb(l).eventData=mb(d).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),u&&i.add(d);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=nw(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),d.setStyle(y),g=i.getBoundingRect();var b=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var x=new Qy({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(x)}},e.type="title",e}(eM);var BZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return xh(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],Object(Sh.k)(n,function(e,n){var i,o=zm(jm(e),"");Object(Sh.A)(e)?(i=Object(Sh.d)(e)).value=n:i=n,t.push(i),r.push(o)})):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new PL([{name:"value",type:o}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))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}(uw),zZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.type="timeline.slider",e.defaultOption=ox(BZ.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}(BZ);Object(Sh.K)(zZ,US.prototype);var VZ=zZ,FZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.type="timeline",e}(eM),HZ=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return xh(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(oN),GZ=Math.PI,WZ=Gm();function UZ(t,e,n,i,r,o){var a=e.get("color");r?(r.setColor(a),n.add(r),o&&o.onUpdate(r)):((r=gT(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r));var s=e.getItemStyle(["color"]);r.setStyle(s),i=Object(Sh.I)({rectHover:!0,z2:100},i,!0);var l=mT(t.get("symbolSize"));i.scaleX=l[0]/2,i.scaleY=l[1]/2;var c=vT(t.get("symbolOffset"),l);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var u=t.get("symbolRotate");return i.rotation=(u||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function qZ(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var YZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return AO("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},Object(Sh.k)(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](i,r,a,t)},this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i,r,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return nw(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),c={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<e.getHeight()/2?"-":"+":l.x+l.width/2<e.getWidth()/2?"+":"-":Object(Sh.C)(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:GZ/2},h="vertical"===s?l.height:l.width,p=t.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,m=f?p.get("itemGap"):0,v=g+m,y=t.get(["label","rotate"])||0;y=y*GZ/180;var b=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),x=f&&p.get("showPrevBtn",!0),w=f&&p.get("showNextBtn",!0),S=0,O=h;"left"===b||"bottom"===b?(_&&(i=[0,0],S+=v),x&&(r=[S,0],S+=v),w&&(o=[O-g,0],O-=v)):(_&&(i=[O-g,0],O-=v),x&&(r=[0,0],S+=v),w&&(o=[O-g,0],O-=v));var M=[S,O];return t.get("inverse")&&M.reverse(),{viewRect:l,mainLength:h,orient:s,rotation:d[s],labelRotation:y,labelPosOpt:n,labelAlign:t.get(["label","align"])||c[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:M,controlSize:g,controlGap:m}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=r.x,s=r.y+r.height;mp(o,o,[-a,-s]),vp(o,o,-GZ/2),mp(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=m(r),c=m(n.getBoundingRect()),u=m(i.getBoundingRect()),d=[n.x,n.y],h=[i.x,i.y];h[0]=d[0]=l[0][0];var p,f=t.labelPosOpt;null==f||Object(Sh.C)(f)?(v(d,c,l,1,p="+"===f?0:1),v(h,u,l,1,1-p)):(v(d,c,l,1,p=f>=0?0:1),h[1]=d[1]+f);function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}
70function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(d),i.setPosition(h),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new aE({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new yE({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new cE}}(e,i);r.getTicks=function(){return n.mapArray(["value"],function(t){return{value:t}})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new HZ("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Qg;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new rC({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(Sh.m)({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new rC({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Object(Sh.i)({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(Sh.k)(a,function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),u=s.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:Object(Sh.c)(r._changeTimeline,r,t.value)},h=UZ(s,l,e,d);h.ensureState("emphasis").style=c.getItemStyle(),h.ensureState("progress").style=u.getItemStyle(),l_(h);var p=mb(h);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(h)})},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],Object(Sh.k)(a,function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),c=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),d=n.dataToCoord(i.tickValue),h=new gb({x:d,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(Sh.c)(r._changeTimeline,r,a),silent:!1,style:P_(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});h.ensureState("emphasis").style=P_(c),h.ensureState("progress").style=P_(u),e.add(h),l_(h),WZ(h).dataIndex=a,r._tickLabels.push(h)})}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),c=i.get("inverse",!0);function u(t,n,l,c){if(t){var u=Fg(Object(Sh.P)(i.get(["controlStyle",n+"BtnSize"]),r),r),d=function(t,e,n,i){var r=i.style,o=YC(t.get(["controlStyle",e]),i||{},new kp(n[0],n[1],n[2],n[3]));r&&o.setStyle(r);return o}(i,n+"Icon",[0,-u/2,u,u],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:c?-o:0,rectHover:!0,style:a,onclick:l});d.ensureState("emphasis").style=s,e.add(d),l_(d)}}u(t.nextBtnPosition,"next",Object(Sh.c)(this._changeTimeline,this,c?"-":"+")),u(t.prevBtnPosition,"prev",Object(Sh.c)(this._changeTimeline,this,c?"+":"-")),u(t.playPosition,l?"stop":"play",Object(Sh.c)(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Object(Sh.c)(s._handlePointerDrag,s),t.ondragend=Object(Sh.c)(s._handlePointerDragend,s),qZ(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){qZ(t,s._progressLine,o,n,i)}};this._currentPointer=UZ(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=um(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var r=this._progressLine;r&&(r.shape.x2=n,r.dirty());var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){return FC(t,this._mainGroup.getL
70ocalTransform(),!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-t);s<i&&(i=s,e=o)}),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",WZ(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(FZ);function $Z(t){var e=t&&t.timeline;Sh.t(e)||(e=e?[e]:[]),Sh.k(e,function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};n[e]&&(t.axisType=n[e],delete t.type);if(XZ(t),ZZ(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});ZZ(i,"position")||(i.position=t.controlPosition),"none"!==i.position||ZZ(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}Sh.k(t.data||[],function(t){Sh.A(t)&&!Sh.t(t)&&(!ZZ(t,"value")&&ZZ(t,"name")&&(t.value=t.name),XZ(t))})}(t)})}function XZ(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};Sh.k(i,function(t,e){o[e]||ZZ(r,e)||(r[e]=t)}),n.label&&!ZZ(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function ZZ(t,e){return t.hasOwnProperty(e)}function KZ(t,e){if(!t)return!1;for(var n=Object(Sh.t)(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function JZ(t){Lm(t,"label",["show"])}var QZ=Gm(),tK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return xh(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(wh.a.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries(function(t){var n=t.get(this.mainType,!0),o=QZ(t)[r];n&&n.data?(o?o._mergeOption(n,e,!0):(i&&JZ(n),Sh.k(n.data,function(t){t instanceof Array?(JZ(t[0]),JZ(t[1])):JZ(t)}),o=this.createMarkerModelFromSeries(n,this,e),Sh.m(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),QZ(t)[r]=o):QZ(t)[r]=null},this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return AO("section",{header:this.name,blocks:[AO("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,e){var n=US.prototype.getDataParams.call(this,t,e),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,e){return QZ(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(uw);Sh.K(tK,US.prototype);var eK=tK,nK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,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}(eK);function iK(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function rK(t,e,n,i,r,o){var a=[],s=VL(e,i)?e.getCalculationInfo("stackResultDimension"):i,l=uK(e,s,t),c=e.indicesOfNearest(s,l)[0];a[r]=e.get(n,c),a[o]=e.get(s,c);var u=e.get(i,c),d=dm(e.get(i,c));return(d=Math.min(d,20))>=0&&(a[o]=+a[o].toFixed(d)),[a,u]}var oK={min:Object(Sh.h)(rK,"min"),max:Object(Sh.h)(rK,"max"),average:Object(Sh.h)(rK,"average"),median:Object(Sh.h)(rK,"median")};function aK(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;
70if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Object(Sh.t)(e.coord)&&Object(Sh.t)(r)){var o=sK(e,n,i,t);if((e=Object(Sh.d)(e)).type&&oK[e.type]&&o.baseAxis&&o.valueAxis){var a=Object(Sh.r)(r,o.baseAxis.dim),s=Object(Sh.r)(r,o.valueAxis.dim),l=oK[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Object(Sh.t)(r))for(var c=e.coord,u=0;u<2;u++)oK[c[u]]&&(c[u]=uK(n,n.mapDimension(r[u]),c[u]));else e.coord=[];return e}}function sK(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function lK(t,e){return!(t&&t.containData&&e.coord&&!iK(e))||t.containData(e.coord)}function cK(t,e){return t?function(t,n,i,r){return ZS(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return ZS(t.value,e[r])}}function uK(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,function(t,e){isNaN(t)||(i+=t,r++)}),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var dK=Gm(),hK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.init=function(){this.markerGroupMap=Object(Sh.f)()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each(function(t){dK(t).keep=!1}),e.eachSeries(function(t){var r=eK.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)}),r.each(function(t){!dK(t).keep&&i.group.remove(t.group)})},e.prototype.markKeep=function(t){dK(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(Sh.k)(t,function(t){var i=eK.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl(function(t){t&&(e?Kb(t):Jb(t))})})},e.type="marker",e}(eM);function pK(t,e,n){var i=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),s=lm(a.get("x"),n.getWidth()),l=lm(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var c=t.get(i.dimensions[0],r),u=t.get(i.dimensions[1],r);o=i.dataToPoint([c,u])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)})}var fK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=eK.getMarkerModelFromSeries(t,"markPoint");e&&(pK(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new KL),c=function(t,e,n){var i;i=t?Object(Sh.H)(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(Sh.m)(Object(Sh.m)({},n),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var r=new PL(i,n),o=Object(Sh.H)(n.get("data"),Object(Sh.h)(aK,e));t&&(o=Object(Sh.n)(o,Object(Sh.h)(lK,t)));var a=cK(!!t,i);return r.initData(o,null,a),r}(r,t,e);e.setData(c),pK(e.getData(),t,i),c.each(function(t){var n=c.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(Sh.w)(i)||Object(Sh.w)(r)||Object(Sh.w)(o)||Object(Sh.w)(s)){var u=e.getRawValue(t),d=e.getDataParams(t);Object(Sh.w)(i)&&(i=i(u,d)),Object(Sh.w)(r)&&(r=r(u,d)),Object(Sh.w)(o)&&(o=o(u,d)),Object(Sh.w)(s)&&(s=s(u,d))}var h=n.getModel("itemStyle").getItemStyle(),p=JI(a,"color");h.fill||(h.fill=p),c.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:h})}),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl(function(t){t.traverse(function(t){mb(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(hK);var gK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,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}(eK),mK=Gm(),vK=function(t,e,n,i){var r,o=t.getData();if(Object(Sh.t)(i))r=i;
70else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=Object(Sh.O)(i.yAxis,i.xAxis);else{var c=sK(i,o,e,t);s=c.valueAxis,l=uK(o,FL(o,c.valueDataDim),a)}var u="x"===s.dim?0:1,d=1-u,h=Object(Sh.d)(i),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var f=n.get("precision");f>=0&&Object(Sh.z)(l)&&(l=+l.toFixed(Math.min(f,20))),h.coord[u]=p.coord[u]=l,r=[h,p,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[aK(t,r[0]),aK(t,r[1]),Object(Sh.m)({},r[2])];return g[2].type=g[2].type||null,Object(Sh.I)(g[2],g[0]),Object(Sh.I)(g[2],g[1]),g};function yK(t){return!isNaN(t)&&!isFinite(t)}function bK(t,e,n,i){var r=1-t,o=i.dimensions[t];return yK(e[r])&&yK(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function _K(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(bK(1,n,i,t)||bK(0,n,i,t)))return!0}return lK(t,e[0])&&lK(t,e[1])}function xK(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=lm(s.get("x"),r.getWidth()),c=lm(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var u=a.dimensions,d=t.get(u[0],e),h=t.get(u[1],e);o=a.dataToPoint([d,h])}if(fP(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");u=a.dimensions;yK(t.get(u[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):yK(t.get(u[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];t.setItemLayout(e,o)}var wK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=eK.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=mK(e).from,o=mK(e).to;r.each(function(e){xK(r,e,!0,t,n),xK(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new dF);this.group.add(l.group);var c=function(t,e,n){var i;i=t?Object(Sh.H)(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(Sh.m)(Object(Sh.m)({},n),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var r=new PL(i,n),o=new PL(i,n),a=new PL([],n),s=Object(Sh.H)(n.get("data"),Object(Sh.h)(vK,e,t,n));t&&(s=Object(Sh.n)(s,Object(Sh.h)(_K,t)));var l=cK(!!t,i);return r.initData(Object(Sh.H)(s,function(t){return t[0]}),null,l),o.initData(Object(Sh.H)(s,function(t){return t[1]}),null,l),a.initData(Object(Sh.H)(s,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),u=c.from,d=c.to,h=c.line;mK(e).from=u,mK(e).to=d,e.setData(h);var p=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),m=e.get("symbolOffset");function v(e,n,r){var o=e.getItemModel(n);xK(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=JI(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(Sh.P)(o.get("symbolOffset",!0),m[r?0:1]),symbolRotate:Object(Sh.P)(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:Object(Sh.P)(o.get("symbolSize"),f[r?0:1]),symbol:Object(Sh.P)(o.get("symbol",!0),p[r?0:1]),style:s})}Object(Sh.t)(p)||(p=[p,p]),Object(Sh.t)(f)||(f=[f,f]),Object(Sh.t)(g)||(g=[g,g]),Object(Sh.t)(m)||(m=[m,m]),c.from.each(function(t){v(u,t,!0),v(d,t,!1)}),h.each(function(t){var e=h.getItemModel(t).getModel("lineStyle").getLineStyle();h.setItemLayout(t,[u.getItemLayout(t),d.getItemLayout(t)]),null==e.stroke&&(e.stroke=u.getItemVisual(t,"style").fill),h.setItemVisual(t,{fromSymbolKeepAspect:u.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(t,"symbolOffset"),fromSymbolRotate:u.getItemVisual(t,"symbolRotate"),fromSymbolSize:u.getItemVisual(t,"symbolSize"),fromSymbol:u.getItemVisual(t,"symbol"),toSymbolKeepAspect:d.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(t,"symbolOffset"),toSymbolRotate:d.getItemVisual(t,"symbolRotate"),toSymbolSize:d.getItemVisual(t,"symbolSize"),toSymbol:d.getItemVisual(t,"symbol"),style:e})}),l.updateData(h),c.line.eachItemGraphicEl(function(t){mb(t).dataModel=e,t.traverse(function(t){mb(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(hK);var SK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,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}(eK),OK=Gm(),MK=function(t,e,n,i){var r=i[0],o=i[1];
70if(r&&o){var a=aK(t,r),s=aK(t,o),l=a.coord,c=s.coord;l[0]=Object(Sh.O)(l[0],-1/0),l[1]=Object(Sh.O)(l[1],-1/0),c[0]=Object(Sh.O)(c[0],1/0),c[1]=Object(Sh.O)(c[1],1/0);var u=Object(Sh.J)([{},a,s]);return u.coord=[a.coord,s.coord],u.x0=a.x,u.y0=a.y,u.x1=s.x,u.y1=s.y,u}};function CK(t){return!isNaN(t)&&!isFinite(t)}function IK(t,e,n,i){var r=1-t;return CK(e[r])&&CK(n[r])}function TK(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return fP(t,"cartesian2d")?!(!n||!i||!IK(1,n,i)&&!IK(0,n,i))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!iK(e)&&!iK(n))||t.containZone(e.coord,n.coord)}(t,r,o):lK(t,r)||lK(t,o)}function kK(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=lm(s.get(n[0]),r.getWidth()),c=lm(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition){var u=t.getValues(["x0","y0"],e),d=t.getValues(["x1","y1"],e),h=a.clampData(u),p=a.clampData(d),f=[];"x0"===n[0]?f[0]=h[0]>p[0]?d[0]:u[0]:f[0]=h[0]>p[0]?u[0]:d[0],"y0"===n[1]?f[1]=h[1]>p[1]?d[1]:u[1]:f[1]=h[1]>p[1]?u[1]:d[1],o=i.getMarkerPosition(f,n,!0)}else{var g=[y=t.get(n[0],e),b=t.get(n[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(fP(a,"cartesian2d")){var m=a.getAxis("x"),v=a.getAxis("y"),y=t.get(n[0],e),b=t.get(n[1],e);CK(y)?o[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):CK(b)&&(o[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];return o}var AK=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];var DK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=eK.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each(function(e){var r=Object(Sh.H)(AK,function(r){return kK(i,e,r,t,n)});i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)})}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Qg});this.group.add(l.group),this.markKeep(l);var c=function(t,e,n){var i,r;if(t){var o=Object(Sh.H)(t&&t.dimensions,function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return Object(Sh.m)(Object(Sh.m)({},i),{name:t,ordinalMeta:null})});r=Object(Sh.H)(["x0","y0","x1","y1"],function(t,e){return{name:t,type:o[e%2].type}}),i=new PL(r,n)}else i=new PL(r=[{name:"value",type:"float"}],n);var a=Object(Sh.H)(n.get("data"),Object(Sh.h)(MK,e,t,n));t&&(a=Object(Sh.n)(a,Object(Sh.h)(TK,t)));var s=t?function(t,e,n,i){var o=t.coord[Math.floor(i/2)][i%2];return ZS(o,r[i])}:function(t,e,n,i){return ZS(t.value,r[i])};return i.initData(a,null,s),i.hasItemOption=!0,i}(r,t,e);e.setData(c),c.each(function(e){var n=Object(Sh.H)(AK,function(n){return kK(c,e,n,t,i)}),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),u=s.getExtent(),d=[o.parse(c.get("x0",e)),o.parse(c.get("x1",e))],h=[s.parse(c.get("y0",e)),s.parse(c.get("y1",e))];um(d),um(h);var p=!!(l[0]>d[1]||l[1]<d[0]||u[0]>h[1]||u[1]<h[0]);c.setItemLayout(e,{points:n,allClipped:p});var f=c.getItemModel(e).getModel("itemStyle").getItemStyle(),g=JI(a,"color");f.fill||(f.fill=g,Object(Sh.C)(f.fill)&&(f.fill=Lf.f(f.fill,.4))),f.stroke||(f.stroke=g),c.setItemVisual(e,"style",f)}),c.diff(OK(l).data).add(function(t){var e=c.getItemLayout(t);if(!e.allClipped){var n=new KM({shape:{points:e.points}});c.setItemGraphicEl(t,n),l.group.add(n)}}).update(function(t,n){var i=OK(l).data.getItemGraphicEl(n),r=c.getItemLayout(t);r.allClipped?i&&l.group.remove(i):(i?x_(i,{shape:{points:r.points}},e,t):i=new KM({shape:{points:r.points}}),c.setItemGraphicEl(t,i),l.group.add(i))}).remove(function(t){var e=OK(l).data.getItemGraphicEl(t);l.group.remove(e)}).execute(),c.eachItemGraphicEl(function(t,n){var i=c.getItemModel(n),r=c.getItemVisual(n,"style");t.useStyle(c.getItemVisual(n,"style")),D_(t,L_(i),{labelFetcher:e,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:Object(Sh.C)(r.fill)?Lf.f(r.fill,1):"#000"}
70),p_(t,i),c_(t,null,null,i.get(["emphasis","disabled"])),mb(t).dataModel=e}),OK(l).data=c,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(hK);var LK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return xh(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),Sh.t(e)&&Sh.k(e,function(t,i){Sh.C(t)&&(t={type:t}),e[i]=Sh.I(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(a)),a.length?e=e.concat(a):r=!0}else r=!0;r&&Vm(i)&&e.push(i.name)}),this._availableNames=n;var i=this.get("data")||e,r=Sh.f(),o=Sh.H(i,function(t){return(Sh.C(t)||Sh.z(t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new nx(t,this,this.ecModel))},this);this._data=Sh.n(o,function(t){return!!t})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;Sh.k(n,function(t){e[t.get("name")]=!1})}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;Sh.k(t,function(t){e[t.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;Sh.k(t,function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]})},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&Sh.r(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{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",miter
vendor: 20,296 bytes, line 70
70Limit:"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}(uw),PK=Sh.h,jK=Sh.k,EK=Qg;function NK(t,e,n,i){zK(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),BK(t,e,n,i)}function RK(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function BK(t,e,n,i){RK(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function zK(t,e,n,i){RK(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var VK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return xh(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new EK),this.group.add(this._selectorGroup=new EK),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=t.get("padding"),d=nw(l,c,u),h=this.layoutInner(t,r,d,i,a,s),p=nw(Sh.i({width:h.width,height:h.height},l),c,u);this.group.x=p.x-h.x,this.group.y=p.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=oX(h,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=Sh.f(),c=e.get("selectedMode"),u=[];n.eachRawSeries(function(t){!t.get("legendHoverLink")&&u.push(t.id)}),jK(e.getData(),function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new EK;return d.newline=!0,void s.add(d)}var h=n.getSeriesByName(a)[0];if(!l.get(a)){if(h){var p=h.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),m=p.getVisual("style"),v=this._createItem(h,a,o,r,e,t,f,m,g,c,i);v.on("click",PK(NK,a,null,i,u)).on("mouseover",PK(BK,h.name,null,i,u)).on("mouseout",PK(zK,h.name,null,i,u)),n.ssr&&v.eachChild(function(t){var e=mb(t);e.seriesIndex=h.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),l.set(a,!0)}else n.eachRawSeries(function(s){if(!l.get(a)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(a))return;var h=d.indexOfName(a),p=d.getItemVisual(h,"style"),f=d.getItemVisual(h,"legendIcon"),g=Object(Lf.h)(p.fill);g&&0===g[3]&&(g[3]=.2,p=Sh.m(Sh.m({},p),{fill:Object(Lf.i)(g,"rgba")}));var m=this._createItem(s,a,o,r,e,t,{},p,f,c,i);m.on("click",PK(NK,null,a,i,u)).on("mouseover",PK(BK,null,a,i,u)).on("mouseout",PK(zK,null,a,i,u)),n.ssr&&m.eachChild(function(t){var e=mb(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),l.set(a,!0)}},this);0}},this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();jK(t,function(t){var i=t.type,r=new gb({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(r),D_(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),l_(r)})},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,c,u){var d=t.visualDrawType,h=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),v=i.get("icon"),y=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),jK(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getModel("itemStyle"),c=l.getItemStyle(),u=0===t.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");c.decal=d&&"inherit"!==d?qT(d,a):i.decal,"inherit"===c.fill&&(c.fill=i[r]);"inherit"===c.stroke&&(c.stroke=i[u]);"inherit"===c.opacity&&(c.opacity=("fill"===r?i:n).opacity);s(c,i);var h=e.getModel("lineStyle"),p=h.getLineStyle();if(s(p,n),"auto"===c.fill&&(c.fill=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=c[u];c.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),p.stroke=h.get("inactiveColor"),p.lineWidth=h.get("inactiveWidth")}return{itemStyle:c,lineStyle:p}}(l=v||l||"roundRect",i,a,s,d,f,u),b=new EK,_=i.getModel("textStyle");if(!Sh.w(t.getLegendIcon)||v&&"inherit"!==v){var x="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;b.add(function(t){var e=t.icon||"roundRect",n=gT(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:h,itemHeight:p,icon:l,iconRotate:x,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}))}else b.add(t.getLegendIcon({itemWidth:h,itemHeight:p,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}));var w="left"===o?h+5:-5,S=o,O=r.get("formatter"),M=e;Sh.C(O)&&O?M=O.replace("{name}",null!=e?e:""):Sh.w(O)&&(M=O(e));var C=f?_.getTextColor():i.get("inactiveColor");b.add(new gb({style:P_(_,{text:M,x:w,y:p/2,fill:C,align:S,verticalAlign:"middle"},{inheritColor:C})}));var I=new Qy({shape:b.getBoundingRect(),style:{fill:"transparent"}}),T=i.getModel("tooltip");return T.get("show")&&KC({el:I,componentModel:r,itemName:e,itemTooltipOption:T.option}),b.add(I),b.eachChild(function(t){t.silent=!0}),I.silent=!c,this.getContentGroup().add(b),l_(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();ew(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){ew("horizontal",s,t.get("selectorItemGap",!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],h=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===o?d[p]+=l[f]+h:c[p]+=u[f]+h,d[1-p]+=l[g]/2-u[g]/2,s.x=d[0],s.y=d[1],a.x=c[0],a.y=c[1];var v={x:0,y:0};return v[f]=l[f]+h+u[f],v[g]=Math.max(l[g],u[g]),v[m]=Math.min(0,u[m]+d[1-p]),v}return a.x=c[0],a.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(eM);function FK(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function HK(t,e,n){var i="allSelect"===t||"inverseSelect"===t,r={},o=[];n.eachComponent({mainType:"legend",query:e},function(n){i?n[t]():n[t](e.name),GK(n,r),o.push(n.componentIndex)});var a={};return n.eachComponent("legend",function(t){Object(Sh.k)(r,function(e,n){t[e?"select":"unSelect"](n)}),GK(t,a)}),i?{selected:a,legendIndex:o}:{name:e.name,selected:a}}function GK(t,e){var n=e||{};return Object(Sh.k)(t.getData(),function(e){var i=e.get("name");if("\n"!==i&&""!==i){var r=t.isSelected(i);Object(Sh.q)(n,i)?n[i]=n[i]&&r:n[i]=r}}),n}function WK(t){t.registerComponentModel(LK),t.registerComponentView(VK),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,FK),t.registerSubTypeDefaulter("legend",function(){return"plain"}),function(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(Sh.h)(HK,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(Sh.h)(HK,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(Sh.h)(HK,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(Sh.h)(HK,"select")),t.registerAction("legendUnSelect","legendunselected",Object(Sh.h)(HK,"unSelect"))}(t)}function UK(t,e,n){var i=[1,1];i[t.getOrient().index]=0,ow(e,n,{type:"box",ignoreSize:!!i})}var qK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=aw(e);t.prototype.init.call(this,e,n,i),UK(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),UK(this,this.option,e)},e.type="legend.scroll",e.defaultOption=ox(LK.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}(LK),YK=Qg,$K=["width","height"],XK=["x","y"],ZK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return xh(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new YK),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new YK)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var c=this._controllerGroup,u=n.get("pageIconSize",!0),d=Sh.t(u)?u:[u,u];p("pagePrev",0);var h=n.getModel("pageTextStyle");function p(t,e){var i=t+"DataIndex",o=YC(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:Sh.c(l._pageGo,l,i,n,r)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});o.name=t,c.add(o)}c.add(new gb({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=$K[s],c=XK[s],u=$K[1-s],d=XK[1-s];r&&ew("horizontal",a,t.get("selectorItemGap",!0));var h=t.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=Sh.d(n);r&&(g[l]=n[l]-p[l]-h);var m=this._layoutContentAndController(t,i,g,s,l,u,d,c);if(r){if("end"===o)f[s]+=m[l]+h;else{var v=p[l]+h;f[s]-=v,m[c]-=v}m[l]+=p[l]+h,f[1-s]+=m[d]+m[u]/2-p[u]/2,m[u]=Math.max(m[u],p[u]),m[d]=Math.min(m[d],p[d]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),c=this._containerGroup,u=this._controllerGroup;ew(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),ew("horizontal",u,t.get("pageButtonItemGap",!0));var d=l.getBoundingRect(),h=u.getBoundingRect(),p=this._showController=d[r]>n[r],f=[-d.x,-d.y];e||(f[i]=l[s]);var g=[0,0],m=[-h.x,-h.y],v=Sh.P(t.get("pageButtonGap",!0),t.get("itemGap",!0));p&&("end"===t.get("pageButtonPosition",!0)?m[i]+=n[r]-h[r]:g[i]+=h[r]+v);m[1-i]+=d[o]/2-h[o]/2,l.setPosition(f),c.setPosition(g),u.setPosition(m);var y={x:0,y:0};if(y[r]=p?n[r]:d[r],y[o]=Math.max(d[o],h[o]),y[a]=Math.min(0,h[a]+m[1-i]),c.__rectSize=n[r],p){var b={x:0,y:0};b[r]=Math.max(n[r]-h[r]-v,0),b[o]=y[o],c.setClipPath(new Qy({shape:b})),c.__rectSize=b[r]}else u.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(t);return null!=_.pageIndex&&x_(l,{x:_.contentPosition[0],y:_.contentPosition[1]},p?t:null),this._updatePageInfoView(t,_),y},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;Sh.k(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",Sh.C(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=$K[r],a=XK[r],s=this._findTargetItemIndex(e),l=n.children(),c=l[s],u=l.length,d=u?1:0,h={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return h;var p=y(c);h.contentPosition[r]=-p.s;for(var f=s+1,g=p,m=p,v=null;f<=u;++f)(!(v=y(l[f]))&&m.e>g.s+i||v&&!b(v,g.s))&&(g=m.i>g.i?m:v)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=g.i),++h.pageCount),m=v;for(f=s-1,g=p,m=p,v=null;f>=-1;--f)(v=y(l[f]))&&b(m,v.s)||!(g.i<m.i)||(m=g,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=v;return h;function y(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function b(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(VK);function KK(t){eA(WK),t.registerComponentModel(qK),t.registerComponentView(ZK),function(t){t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}(t)}var JK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.type="dataZoom.inside",e.defaultOption=ox(G$.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(G$),QK=Gm();function tJ(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function eJ(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function nJ(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function iJ(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=QK(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(Sh.f)());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){var n=V$(t);Object(Sh.k)(n.infoList,function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:Object(Sh.h)(nJ,e),dispatchAction:Object(Sh.h)(eJ,t),dataZoomInfoMap:null,controller:null},i=n.controller=new cR(t.getZr());return Object(Sh.k)(["pan","zoom","scrollMove"],function(t){i.on(t,function(e){var i=[];n.dataZoomInfoMap.each(function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}}),i.length&&n.dispatchAction(i)})}),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(Sh.f)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=function(t){var e,n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each(function(t){var r=t.model,o=!r.get("disabled",!0)&&(!r.get("zoomLock",!0)||"move");n["type_"+o]>n["type_"+e]&&(e=o),i=i&&r.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),pI(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else tJ(i,t)})})}var rJ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return xh(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){QK(t).coordSysRecordMap.each(function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}(i,e,{pan:Object(Sh.c)(oJ.pan,this),zoom:Object(Sh.c)(oJ.zoom,this),scrollMove:Object(Sh.c)(oJ.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=QK(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||tJ(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(U$),oJ={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=sJ[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/i.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return rH(0,o,[0,100],0,u.minSpan,u.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:aJ(function(t,e,n,i,r,o){var a=sJ[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:aJ(function(t,e,n,i,r,o){return sJ[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function aJ(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return rH(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var sJ={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},lJ=rJ;function cJ(t){J$(t),t.registerComponentModel(JK),t.registerComponentView(lJ),iJ(t)}var uJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ox(G$.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.
701-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(G$),dJ=Qy,hJ="horizontal",pJ=5,fJ=["line","bar","candlestick","scatter"],gJ={easing:"cubicOut",duration:100,delay:0};function mJ(t){return"vertical"===t?"ns-resize":"ew-resize"}var vJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return xh(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(Sh.c)(this._onBrush,this),this._onBrushEnd=Object(Sh.c)(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),pI(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){fI(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Qg;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===hJ?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=aw(t.option);Object(Sh.k)(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])});var s=nw(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],"vertical"===this._orient&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==hJ||r?n===hJ&&r?{scaleY:a?1:-1,scaleX:-1}:"vertical"!==n||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new dJ({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new dJ({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(Sh.c)(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var c=r.getDataExtent(a),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var d,h=[0,e[1]],p=[0,e[0]],f=[[e[0],0],[0,0]],g=[],m=p[1]/(r.count()-1),v=0,y=Math.round(r.count()/e[0]);r.each([a],function(t,e){if(y>0&&e%y)v+=m;else{var n=null==t||isNaN(t)||""===t,i=n?0:sm(t,c,h,!0);
70n&&!d&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&d&&(f.push([v,0]),g.push([v,0])),f.push([v,i]),g.push([v,i]),v+=m,d=n}}),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var b=this.dataZoomModel,_=0;_<3;_++){var x=w(1===_);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function w(t){var e=b.getModel(t?"selectedDataBackground":"dataBackground"),n=new Qg,i=new KM({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new tC({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis(function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();Object(Sh.k)(a,function(t){if(!(n||!0!==e&&Object(Sh.r)(fJ,t.get("type"))<0)){var a,s=i.getComponent(B$(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],c=t.coordinateSystem;null!=l&&c.getOtherAxis&&(a=c.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,c=a.get("brushSelect"),u=e.filler=new dJ({silent:c,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(u),r.add(new dJ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),Object(Sh.k)([0,1],function(e){var o=a.get("handleIcon");!hT[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=gT(o,-1,0,2,2,null,!0);s.attr({cursor:mJ(this._orient),draggable:!0,drift:Object(Sh.c)(this._onDragMove,this,e),ondragend:Object(Sh.c)(this._onDragEnd,this),onmouseover:Object(Sh.c)(this._showDataInfo,this,!0),onmouseout:Object(Sh.c)(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=a.get("handleSize");this._handleHeight=lm(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),l_(s);var u=a.get("handleColor");null!=u&&(s.style.fill=u),r.add(n[e]=s);var d=a.getModel("textStyle"),h=(a.get("handleLabel")||{}).show||!1;t.add(i[e]=new gb({silent:!0,invisible:!h,style:P_(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(c){var h=lm(a.get("moveHandleSize"),o[1]),p=e.moveHandle=new Qy({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:h}}),f=.8*h,g=e.moveHandleIcon=gT(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+h/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(h,10));(d=e.moveZone=new Qy({invisible:!0,shape:{y:o[1]-m,height:h+m}})).on("mouseover",function(){s.enterEmphasis(p)}).on("mouseout",function(){s.leaveEmphasis(p)}),r.add(p),r.add(g),r.add(d)}d.attr({draggable:!0,cursor:mJ(this._orient),drift:Object(Sh.c)(this._onDragMove,this,"all"),ondragstart:Object(Sh.c)(this._showDataInfo,this,!0),ondragend:Object(Sh.c)(this._onDragEnd,this),onmouseover:Object(Sh.c)(this._showDataInfo,this,!0),onmouseout:Object(Sh.c)(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[sm(t[0],[0,100],e,!0),sm(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];
70rH(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?sm(o.minSpan,a,r,!0):null,null!=o.maxSpan?sm(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=um([sm(i[0],r,a,!0),sm(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=um(n.slice()),r=this._size;Object(Sh.k)([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var c=a[l],u=c.getClipPath();u||(u=new Qy,c.setClipPath(u)),u.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,c=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(c[0],s),this._formatLabel(c[1],s)]}}var u=um(this._handleEnds.slice());function d(t){var e=VC(n.handles[t].parent,this.group),a=HC(0===t?"right":"left",e),s=this._handleWidth/2+pJ,l=FC([u[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===hJ?"middle":a,align:r===hJ?a:"center",text:o[t]})}d.call(this,0),d.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return Object(Sh.w)(i)?i(t,o):Object(Sh.C)(i)?i.replace("{value}",o):o},e.prototype._showDataInfo=function(t){var e=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,i=t||this._dragging?n:e,r=this._displayables,o=r.handleLabels;o[0].attr("invisible",!i),o[1].attr("invisible",!i),r.moveHandle&&this.api[i?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,lp(i.event);var r=FC([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(t,r[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new _p(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=um([sm(n.x,i,r,!0),sm(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(lp(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new dJ({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?gJ:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=V$(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(U$);function yJ(t){t.registerComponentModel(uJ),t.registerComponentView(vJ),J$(t)}var bJ={get:function(t,e,n){var i=Sh.d((_J[t]||{})[e]);return n&&Sh.t(i)?i[i.length-1]:i}},_J={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]}
vendor: 30,029 bytes, line 70
70,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]}},xJ=bJ,wJ=aV.mapVisual,SJ=aV.eachVisual,OJ=Sh.t,MJ=Sh.k,CJ=um,IJ=sm,TJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return xh(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&yZ(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=Sh.c(t,this),this.controllerVisuals=vZ(this.option.controller,e,t),this.targetVisuals=vZ(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,n){e.push(n)}):e=Dm(t),e},e.prototype.eachTargetSeries=function(t,e){Sh.k(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)},this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],Sh.t(t)&&(t=t.slice(),i=!0);var l=e?t:i?[c(t[0]),c(t[1])]:c(t);return Sh.C(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):Sh.w(s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=CJ([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});Sh.I(i,n),Sh.I(r,n);var o=this.isCategory();function a(n){OJ(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},MJ(i,function(t,e){if(aV.isValidType(e)){var n=xJ.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";MJ(this.stateList,function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&Sh.d(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&Sh.d(n)||(o?s[0]:[s[0],s[0]])),l.symbol=wJ(l.symbol,function(t){return"none"===t?r:t});var c=l.symbolSize;if(null!=c){var u=-1/0;SJ(c,function(t){t>u&&(u=t)}),l.symbolSize=wJ(c,function(t){return IJ(t,[0,u],[0,s[0]],!0)})}},this)}.call(this,r)},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(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){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}(uw),kJ=[20,140];function AJ(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}var DJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=kJ[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=kJ[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):Sh.t(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),Sh.k(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=um((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},e.prototype.getVisualMeta=function(t){var e=AJ(this,"outOfRange",this.getExtent()),n=AJ(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&r(e[a],"outOfRange");for(var c=1;o<s;o++,c=0)c&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(c=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(c&&(i.length&&r(i[i.length-1].value,"outOfRange"),c=0),r(e[a],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=ox(TJ.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}(TJ),LJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return xh(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Wx(e.get("padding")||0),i=t.getBoundingRect();t.add(new Qy({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var i=(n=n||{}).forceState,r=this.visualMapModel,o={};if("color"===e){var a=r.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var c=r.controllerVisuals[i||r.getValueState(t)],u=aV.prepareVisualTypes(c);return Sh.k(u,function(i){var r=c[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=c.__alphaForOpacity),aV.dependsOn(i,e)&&r&&r.applyVisual(t,s,l)}),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;iw(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(eM),PJ=[["left","right","width"],["top","bottom","height"]];function jJ(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===i.orient?1:0,s=PJ[a],l=[0,null,10],c={},u=0;u<3;u++)c[PJ[1-a][u]]=l[u],c[s[u]]=2===u?n[0]:i[s[u]];var d=[["x","width",3],["y","height",0]][a],h=nw(c,o,i.padding);return s[(h.margin[d[2]]||0)+h[d[0]]+.5*h[d[1]]<.5*o[d[1]]?0:1]}function EJ(t,e){return Sh.k(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var NJ=sm,RJ=Sh.k,BJ=Math.min,zJ=Math.max,VJ=12;function FJ(t,e,n,i){return new KM({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){lp(t.event)},ondragend:i})}function HJ(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function GJ(t){return"vertical"===t?"ns-resize":"ew-resize"}var WJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return xh(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=Sh.c(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Sh.c(this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),c=this._applyTransform(0===n?"bottom":"top",s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new gb({style:P_(d,{x:l[0],y:l[1],verticalAlign:"horizontal"===u?"middle":c,align:"horizontal"===u?c:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,o=this._useHandle,a=jJ(e,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new Qg;s.add(l),l.add(n.outOfRange=FJ()),l.add(n.inRange=FJ(null,o?GJ(this._orient):null,Sh.c(this._dragHandle,this,"all",!1),Sh.c(this._dragHandle,this,"all",!0))),l.setClipPath(new Qy({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=e.textStyleModel.getTextRect("å½"),u=zJ(c.width,c.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,u,r),this._createHandle(e,s,1,i,u,r)),this._createIndicator(e,s,i,u,r),t.add(s)},e.prototype._createHandle=function(t,e,n,i,r,o){var a=Sh.c(this._dragHandle,this,n,!1),s=Sh.c(this._dragHandle,this,n,!0),l=Fg(t.get("handleSize"),i[0]),c=gT(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),u=GJ(this._orient);c.attr({cursor:u,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){lp(t.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),f_(c,!0),e.add(c);var d=this.visualMapModel.textStyleModel,h=new gb({cursor:u,draggable:!0,drift:a,onmousemove:function(t){lp(t.event)},ondragend:s,style:P_(d,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var p=[l,0],f=this._shapes;f.handleThumbs[n]=c,f.handleLabelPoints[n]=p,f.handleLabels[n]=h},e.prototype._createIndicator=function(t,e,n,i,r){var o=Fg(t.get("indicatorSize"),n[0]),a=gT(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof Uy){var l=a.style;a.useStyle(Sh.m({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var c=this.visualMapModel.textStyleModel,u=new gb({silent:!0,invisible:!0,style:P_(c,{x:0,y:0,text:""})});this.group.add(u);var d=[("horizontal"===r?i/2:6)+n[0]/2,0],h=this._shapes;h.indicator=a,h.indicatorLabel=u,h.indicatorLabelPoint=d,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():HJ(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[NJ(e[0],n,i,!0),NJ(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];rH(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[NJ(i[0],r,o,!0),NJ(i[1],r,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new gC(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var o=t[0]+i*r;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Qg("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent(),l=this._applyTransform("left",n.mainGroup);RJ([0,1],function(c){var u=r[c];u.setStyle("fill",e.handlesColor[c]),u.y=t[c];var d=NJ(t[c],[0,a[1]],s,!0),h=this.getControllerVisual(d,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var p=FC(n.handleLabelPoints[c],VC(u,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(a[0]-h)/2:(a[0]-h)/-2;p[1]+=f}o[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),d=this.getControllerVisual(t,"symbolSize"),h=NJ(t,o,s,!0),p=a[0]-d/2,f={x:c.x,y:c.y};c.y=h,c.x=p;var g=FC(l.indicatorLabelPoint,VC(c,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;m.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:y?v:"middle",align:y?"center":v});var b={x:p,y:h,style:{fill:u}},_={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};c.x=f.x,c.y=f.y,c.animateTo(b,x),m.animateTo(_,x)}else c.attr(b),m.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this.api.enterBlur(w[S])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=BJ(zJ(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=BJ(zJ(r[0],t),r[1]);var a=function(t,e,n){var i=VJ/2,r=t.get("hoverLinkDataSize");r&&(i=NJ(r,e,n,!0)/2);return i}(n,o,r),s=[t-a,t+a],l=NJ(t,r,o,!0),c=[NJ(s[0],r,o,!0),NJ(s[1],r,o,!0)];s[0]<r[0]&&(c[0]=-1/0),s[1]>r[1]&&(c[1]=1/0),e&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",a):c[1]===1/0?this._showIndicator(l,c[0],"> ",a):this._showIndicator(l,l,"â ",a));var u=this._hoverLinkDataIndices,d=[];(e||HJ(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var h=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var o=zm(t[i].seriesId,null);if(null==o)return;for(var a=Dm(t[i].dataIndex),s=n&&n[o],l=0,c=a.length;l<c;l++){var u=a[l];s&&s[u]?s[u]=null:(e[o]||(e[o]={}))[u]=1}}}function o(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=o(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}(u,d);this._dispatchHighDown("downplay",EJ(h[0],n)),this._dispatchHighDown("highlight",EJ(h[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(nT(t.target,function(t){var n=mb(t);if(null!=n.dataIndex)return e=n,!0},!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",EJ(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var r=VC(e,i?null:this.group);return Sh.t(t)?FC(t,r,n):HC(t,r,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(LJ),UJ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},qJ=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})},YJ=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",function(e){var i,r,o,a,s,l=t.pipelineContext;!e.isTargetSeries(t)||l&&l.large||n.push((i=e.stateList,r=e.targetVisuals,o=Sh.c(e.getValueState,e),a=e.getDataDimensionIndex(t.getData()),s={},Sh.k(i,function(t){var e=aV.prepareVisualTypes(r[t]);s[t]=e}),{progress:function(t,e){var n,i;function l(t){return KI(e,i,t)}function c(t,n){QI(e,i,t,n)}null!=a&&(n=e.getDimensionIndex(a));for(var u=e.getStore();null!=(i=t.next());){var d=e.getRawDataItem(i);if(!d||!1!==d.visualMap)for(var h=null!=a?u.get(n,i):i,p=o(h),f=r[p],g=s[p],m=0,v=g.length;m<v;m++){var y=g[m];f[y]&&f[y].applyVisual(h,l,c)}}}}))}),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(Sh.c($J,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}}),t.getData().setVisual("visualMeta",i)}}];function $J(t,e,n,i){for(var r=e.targetVisuals[i],o=aV.prepareVisualTypes(r),a={color:JI(t.getData(),"color")},s=0,l=o.length;s<l;s++){var c=o[s],u=r["opacity"===c?"__alphaForOpacity":c];u&&u.applyVisual(n,d,h)}return a.color;function d(t){return a[t]}function h(t,e){a[t]=e}}var XJ=Sh.k;function ZJ(t){var e=t&&t.visualMap;Sh.t(e)||(e=e?[e]:[]),XJ(e,function(t){if(t){KJ(t,"splitList")&&!KJ(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&Sh.t(e)&&XJ(e,function(t){Sh.A(t)&&(KJ(t,"start")&&!KJ(t,"min")&&(t.min=t.start),KJ(t,"end")&&!KJ(t,"max")&&(t.max=t.end))})}})}function KJ(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var JJ=!1;function QJ(t){JJ||(JJ=!0,t.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),t.registerAction(UJ,qJ),Object(Sh.k)(YJ,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(ZJ))}function tQ(t){t.registerComponentModel(DJ),t.registerComponentView(WJ),QJ(t)}var eQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return xh(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],nQ[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=Sh.d(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=Sh.H(this._pieceList,function(t){return t=Sh.d(t),"inRange"!==e&&(t.visual=null),t}))})},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=aV.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}Sh.k(e.pieces,function(t){Sh.k(i,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),Sh.k(n,function(t,n){var i=!1;Sh.k(this.stateList,function(t){i=i||o(e,t,n)||o(e.target,t,n)},this),!i&&Sh.k(this.stateList,function(t){(e[t]||(e[t]={}))[n]=xJ.get(n,"inRange"===t?"active":"inactive",r)})},this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,Sh.k(i,function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)},this),"single"===n.selectedMode){var o=!1;Sh.k(i,function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Sh.d(t)},e.prototype.getValueState=function(t){var e=aV.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries(function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(e,i){aV.findPieceIndex(e,n)===t&&r.push(i)},this),e.push({seriesId:i.id,dataIndex:r})},this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return Sh.k(r,function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])},this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=ox(TJ.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}(TJ),nQ={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),Sm(t),Sh.k(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(t){var e=this.option;Sh.k(e.categories,function(e){t.push({text:this.formatValueText(e,!0),value:e})},this),iQ(e,t)},pieces:function(t){var e=this.option;Sh.k(e.pieces,function(e,n){Sh.A(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],c=[],u=0;u<2;u++){for(var d=[["gte","gt","min"],["lte","lt","max"]][u],h=0;h<3&&null==o[u];h++)o[u]=e[d[h]],a[u]=s[h],c[u]=2===h;null==o[u]&&(o[u]=l[u])}c[0]&&o[1]===1/0&&(a[0]=0),c[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=aV.retrieveVisuals(e),t.push(i)},this),iQ(e,t),Sm(t),Sh.k(t,function(t){var e=t.close,n=[["<","â¤"][e[1]],[">","â¥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function iQ(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var rQ=eQ,oQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xh(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),c=l.endsText,u=Sh.O(e.get("showLabel",!0),!c),d=!e.get("selectedMode");c&&this._renderEndsText(t,c[0],s,u,a),Sh.k(l.viewPieceList,function(i){var l=i.piece,c=new Qg;c.onclick=Sh.c(this._onItemClick,this,l),this._enableHoverLink(c,i.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(c,h,[0,0,s[0],s[1]],d),u){var p=this.visualMapModel.getValueState(h);c.add(new gb({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===p?.5:1},silent:d}))}t.add(c)},this),c&&this._renderEndsText(t,c[1],s,u,a),ew(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:EJ(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return jJ(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new Qg,a=this.visualMapModel.textStyleModel;o.add(new gb({style:P_(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=Sh.H(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n,i){var r=gT(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));r.silent=i,t.add(r)},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=Sh.d(n.selected),o=e.getSelectedMapKey(t);
70"single"===i||!0===i?(r[o]=!0,Sh.k(r,function(t,e){r[e]=e===o})):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(LJ);function aQ(t){t.registerComponentModel(rQ),t.registerComponentView(oQ),QJ(t)}var sQ={label:{enabled:!0},decal:{show:!1}},lQ=Gm(),cQ={};function uQ(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=Sh.d(sQ);Sh.I(i.label,t.getLocaleModel().get("aria"),!1),Sh.I(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=Sh.f();t.eachSeries(function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),lQ(t).scope=n}}),t.eachRawSeries(function(e){if(!t.isSeriesFiltered(e))if(Sh.w(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=jw(e.ecModel,e.name,cQ,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",c(r,i))}else{var o=e.getRawData(),a={},s=lQ(e).scope;n.each(function(t){var e=n.getRawIndex(t);a[e]=t});var l=o.count();o.each(function(t){var i=a[t],r=o.getName(t)||t+"",u=jw(e.ecModel,r,s,l),d=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",c(d,u))})}}function c(t,e){var n=t?Sh.m(Sh.m({},e),t):e;return n.dirty=!0,n}})}}(),function(){var i=e.getZr().dom;if(!i)return;var o=t.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=Sh.i(a.option,o),!a.get("enabled"))return;if(i.setAttribute("role","img"),a.get("description"))return void i.setAttribute("aria-label",a.get("description"));var s,l=t.getSeriesCount(),c=a.get(["data","maxCount"])||10,u=a.get(["series","maxCount"])||10,d=Math.min(l,u);if(l<1)return;var h=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();if(h){var p=a.get(["general","withTitle"]);s=r(p,{title:h})}else s=a.get(["general","withoutTitle"]);var f=[],g=l>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]);s+=r(g,{seriesCount:l}),t.eachSeries(function(e,n){if(n<d){var i=void 0,o=e.get("name"),s=o?"withName":"withoutName";i=r(i=l>1?a.get(["series","multiple",s]):a.get(["series","single",s]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(w=e.subType,S=t.getLocaleModel().get(["series","typeNames"]),S[w]||S.chart)});var u=e.getData();if(u.count()>c){var h=a.get(["data","partialData"]);i+=r(h,{displayCnt:c})}else i+=a.get(["data","allData"]);for(var p=a.get(["data","separator","middle"]),g=a.get(["data","separator","end"]),m=a.get(["data","excludeDimensionId"]),v=[],y=0;y<u.count();y++)if(y<c){var b=u.getName(y),_=m?Sh.n(u.getValues(y),function(t,e){return-1===Sh.r(m,e)}):u.getValues(y),x=a.get(["data",b?"withName":"withoutName"]);v.push(r(x,{name:b,value:_.join(p)}))}i+=v.join(p)+g,f.push(i)}var w,S});var m=a.getModel(["series","multiple","separator"]),v=m.get("middle"),y=m.get("end");s+=f.join(v)+y,i.setAttribute("aria-label",s)}()}function r(t,e){if(!Sh.C(t))return t;var n=t;return Sh.k(e,function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),n}}function dQ(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},Sh.k(["description","general","series","data"],function(t){null!=e[t]&&(e.label[t]=e[t])})}}var hQ={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},pQ=function(){function t(t){if(null==(this._condVal=Object(Sh.C)(t)?new RegExp(t):Object(Sh.B)(t)?t:null)){0,Vw("")}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(Sh.C)(e)?this._condVal.test(t):!!Object(Sh.z)(e)&&this._condVal.test(t+"")},t}(),fQ=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),gQ=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),mQ=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),vQ=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),yQ=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0},t}();function bQ(t,e){if(!0===t||!1===t){var n=new fQ;return n.value=t,n}return xQ(t)||Vw(""),t.and?_Q("and",t,e):t.or?_Q("or",t,e):t.not?function(t,e){var n=t.not;0;xQ(n)||Vw("");var i=new vQ;i.child=bQ(n,e),i.child||Vw("");return i}(t,e):function(t,e){for(var n=e.prepareGetValue(t),i=[],r=Object(Sh.F)(t),o=t.parser,a=o?JS(o):null,
70s=0;s<r.length;s++){var l=r[s];if("parser"!==l&&!e.valueGetterAttrMap.get(l)){var c=Object(Sh.q)(hQ,l)?hQ[l]:l,u=t[l],d=a?a(u):u,h=iO(c,d)||"reg"===c&&new pQ(d);h||Vw(""),i.push(h)}}i.length||Vw("");var p=new yQ;return p.valueGetterParam=n,p.valueParser=a,p.getValue=e.getValue,p.subCondList=i,p}(t,e)}function _Q(t,e,n){var i=e[t];Object(Sh.t)(i)||Vw(""),i.length||Vw("");var r="and"===t?new gQ:new mQ;return r.children=Object(Sh.H)(i,function(t){return bQ(t,n)}),r.children.length||Vw(""),r}function xQ(t){return Object(Sh.A)(t)&&!Object(Sh.u)(t)}var wQ=function(){function t(t,e){this._cond=bQ(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();var SQ={type:"echarts:filter",transform:function(t){for(var e,n,i,r=t.upstream,o=(n=t.config,i={valueGetterAttrMap:Object(Sh.f)({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;Object(Sh.q)(t,"dimension")||Vw("");var n=r.getDimensionInfo(e);return n||Vw(""),{dimIdx:n.index}},getValue:function(t){return r.retrieveValueFromItem(e,t.dimIdx)}},new wQ(n,i)),a=[],s=0,l=r.count();s<l;s++)e=r.getRawDataItem(s),o.evaluate()&&a.push(e);return{data:a}}};var OQ={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,i=Dm(n);i.length||Vw("");var r=[];Object(Sh.k)(i,function(t){var n=t.dimension,i=t.order,o=t.parser,a=t.incomparable;if(null==n&&Vw(""),"asc"!==i&&"desc"!==i&&Vw(""),a&&"min"!==a&&"max"!==a){0,Vw("")}if("asc"!==i&&"desc"!==i){0,Vw("")}var s=e.getDimensionInfo(n);s||Vw("");var l=o?JS(o):null;o&&!l&&Vw(""),r.push({dimIdx:s.index,parser:l,comparator:new eO(i,a)})});var o=e.sourceFormat;o!==mw&&o!==vw&&Vw("");for(var a=[],s=0,l=e.count();s<l;s++)a.push(e.getRawDataItem(s));return a.sort(function(t,n){for(var i=0;i<r.length;i++){var o=r[i],a=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(n,o.dimIdx);o.parser&&(a=o.parser(a),s=o.parser(s));var l=o.comparator.evaluate(a,s);if(0!==l)return l}return 0}),{data:a}}};var MQ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return xh(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new xO(this),wO(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),wO(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:xw},e}(uw),CQ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return xh(e,t),e.type="dataset",e}(eM);var IQ=vy.CMD;function TQ(t,e){return Math.abs(t-e)<1e-5}function kQ(t){var e,n,i,r,o,a=t.data,s=t.len(),l=[],c=0,u=0,d=0,h=0;function p(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,i,r){TQ(t,i)&&TQ(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,c=n<t?-1:1,u=Math.cos(t),d=Math.sin(t),h=Math.cos(n),p=Math.sin(n),f=u*o+i,g=d*a+r,m=h*o+i,v=p*a+r,y=o*l*c,b=a*l*c;e.push(f-y*d,g+b*u,m+y*p,v-b*h,m,v)}for(var m=0;m<s;){var v=a[m++],y=1===m;switch(y&&(d=c=a[m],h=u=a[m+1],v!==IQ.L&&v!==IQ.C&&v!==IQ.Q||(e=[d,h])),v){case IQ.M:c=d=a[m++],u=h=a[m++],p(d,h);break;case IQ.L:f(c,u,n=a[m++],i=a[m++]),c=n,u=i;break;case IQ.C:e.push(a[m++],a[m++],a[m++],a[m++],c=a[m++],u=a[m++]);break;case IQ.Q:n=a[m++],i=a[m++],r=a[m++],o=a[m++],e.push(c+2/3*(n-c),u+2/3*(i-u),r+2/3*(n-r),o+2/3*(i-o),r,o),c=r,u=o;break;case IQ.A:var b=a[m++],_=a[m++],x=a[m++],w=a[m++],S=a[m++],O=a[m++]+S;m+=1;var M=!a[m++];n=Math.cos(S)*x+b,i=Math.sin(S)*w+_,y?p(d=n,h=i):f(c,u,n,i),c=Math.cos(O)*x+b,u=Math.sin(O)*w+_;for(var C=(M?-1:1)*Math.PI/2,I=S;M?I>O:I<O;I+=C){g(I,M?Math.max(I+C,O):Math.min(I+C,O),b,_,x,w)}break;case IQ.R:d=c=a[m++],h=u=a[m++],n=d+a[m++],i=h+a[m++],p(n,h),f(n,h,n,i),f(n,i,d,i),f(d,i,d,h),f(d,h,n,h);break;case IQ.Z:e&&f(c,u,d,h),c=d,u=h}}return e&&e.length>2&&l.push(e),l}function AQ(t,e,n,i,r,o,a,s,l,c){if(TQ(t,n)&&TQ(e,i)&&TQ(r,a)&&TQ(o,s))l.push(a,s);else{var u=2/c,d=u*u,h=a-t,p=s-e,f=Math.sqrt(h*h+p*p);h/=f,p/=f;var g=n-t,m=i-e,v=r-a,y=o-s,b=g*g+m*m,_=v*v+y*y;if(b<d&&_<d)l.push(a,s);else{var x=h*g+p*m,w=-h*v-p*y;
vendor: 8,969 bytes, line 70
70if(b-x*x<d&&x>=0&&_-w*w<d&&w>=0)l.push(a,s);else{var S=[],O=[];_f(t,n,r,a,.5,S),_f(e,i,o,s,.5,O),AQ(S[0],O[0],S[1],O[1],S[2],O[2],S[3],O[3],l,c),AQ(S[4],O[4],S[5],O[5],S[6],O[6],S[7],O[7],l,c)}}}}function DQ(t,e,n){var i=t[e],r=t[1-e],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],c=0;c<a;c++)l.push(s);var u=n-a*s;if(u>0)for(c=0;c<u;c++)l[c%a]+=1;return l}function LQ(t,e,n){for(var i=t.r0,r=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*r,c=r-i,u=l>Math.abs(c),d=DQ([l,c],u?0:1,e),h=(u?s:c)/d.length,p=0;p<d.length;p++)for(var f=(u?c:s)/d[p],g=0;g<d[p];g++){var m={};u?(m.startAngle=o+h*p,m.endAngle=o+h*(p+1),m.r0=i+f*g,m.r=i+f*(g+1)):(m.startAngle=o+f*g,m.endAngle=o+f*(g+1),m.r0=i+h*p,m.r=i+h*(p+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,n.push(m)}}function PQ(t,e,n,i){return t*i-n*e}function jQ(t,e,n,i,r,o,a,s){var l=n-t,c=i-e,u=a-r,d=s-o,h=PQ(u,d,l,c);if(Math.abs(h)<1e-6)return null;var p=PQ(t-r,e-o,u,d)/h;return p<0||p>1?null:new _p(p*l+t,p*c+e)}function EQ(t,e,n){var i=new _p;_p.sub(i,n,e),i.normalize();var r=new _p;return _p.sub(r,t,e),r.dot(i)}function NQ(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function RQ(t){var e=t.points,n=[],i=[];qv(e,n,i);var r=new kp(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,c=new _p,u=new _p;return o>a?(c.x=u.x=s+o/2,c.y=l,u.y=l+a):(c.y=u.y=l+a/2,c.x=s,u.x=s+o),function(t,e,n){for(var i=t.length,r=[],o=0;o<i;o++){var a=t[o],s=t[(o+1)%i],l=jQ(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&r.push({projPt:EQ(l,e,n),pt:l,idx:o})}if(r.length<2)return[{points:t},{points:t}];r.sort(function(t,e){return t.projPt-e.projPt});var c=r[0],u=r[r.length-1];if(u.idx<c.idx){var d=c;c=u,u=d}var h=[c.pt.x,c.pt.y],p=[u.pt.x,u.pt.y],f=[h],g=[p];for(o=c.idx+1;o<=u.idx;o++)NQ(f,t[o].slice());for(NQ(f,p),NQ(f,h),o=u.idx+1;o<=c.idx+i;o++)NQ(g,t[o%i].slice());return NQ(g,h),NQ(g,p),[{points:f},{points:g}]}(e,c,u)}function BQ(t,e,n,i){if(1===n)i.push(e);else{var r=Math.floor(n/2),o=t(e);BQ(t,o[0],r,i),BQ(t,o[1],n-r,i)}return i}function zQ(t,e){var n,i=[],r=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var i=t.width,r=t.height,o=i>r,a=DQ([i,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",d=t[s]/a.length,h=0;h<a.length;h++)for(var p=t[l]/a[h],f=0;f<a[h];f++){var g={};g[c]=h*d,g[u]=f*p,g[s]=d,g[l]=p,g.x+=t.x,g.y+=t.y,n.push(g)}}(r,e,i),n=Qy;break;case"sector":LQ(r,e,i),n=WM;break;case"circle":LQ({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},e,i),n=WM;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=Object(Sh.H)(function(t,e){var n=kQ(t),i=[];e=e||1;for(var r=0;r<n.length;r++){var o=n[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var c=2;c<o.length;){var u=o[c++],d=o[c++],h=o[c++],p=o[c++],f=o[c++],g=o[c++];AQ(s,l,u,d,h,p,f,g,a,e),s=f,l=g}i.push(a)}return i}(t.getUpdatedPathProxy(),a),function(t){return function(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}(t)}),l=s.length;if(0===l)BQ(RQ,{points:s[0]},e,i);else if(l===e)for(var c=0;c<l;c++)i.push({points:s[c]});else{var u=0,d=Object(Sh.H)(s,function(t){var e=[],n=[];qv(t,e,n);var i=(n[1]-e[1])*(n[0]-e[0]);return u+=i,{poly:t,area:i}});d.sort(function(t,e){return e.area-t.area});var h=e;for(c=0;c<l;c++){var p=d[c];if(h<=0)break;var f=c===l-1?h:Math.ceil(p.area/u*e);f<0||(BQ(RQ,{points:p.poly},f,i),h-=f)}}n=KM}if(!n)return function(t,e){for(var n=[],i=0;i<e;i++)n.push(wM(t));return n}(t,e);var g,m,v=[];for(c=0;c<i.length;c++){var y=new n;y.setShape(i[c]),g=t,(m=y).setStyle(g.style),m.z=g.z,m.z2=g.z2,m.zlevel=g.zlevel,v.push(y)}return v}function VQ(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var r=[],o=[],a=n<i?t:e,s=Math.min(n,i),l=Math.abs(i-n)/6,c=(s-2)/6,u=Math.ceil(l/c)+1,d=[a[0],a[1]],h=l,p=2;p<s;){var f=a[p-2],g=a[p-1],m=a[p++],v=a[p++],y=a[p++],b=a[p++],_=a[p++],x=a[p++];if(h<=0)d.push(m,v,y,b,_,x);else{for(var w=Math.min(h,u-1)+1,S=1;S<=w;S++){var O=S/w;_f(f,m,y,_,O,r),_f(g,v,b,x,O,o),f=r[3],g=o[3],d.push(r[1],o[1],r[2],o[2],f,g),m=r[5],v=o[5],y=r[6],b=o[6]}h-=w-1}}return a===t?[d,e]:[t,d]}function FQ(t,e){for(var n=t.length,i=t[n-2],r=t[n-1],o=[],a=0;a<e.length;)o[a++]=i,o[a++]=r;return o}function HQ(t){for(var e=0,n=0,i=0,r=t.length,o=0,a=r-2;o<r;a=o,o+=2){var s=t[a],l=t[a+1],c=t[o],u=t[o+1],d=s*u-c*l;e+=d,n+=(s+c)*d,i+=(l+u)*d}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function GQ(t,e,n,i){for(var r=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,c=0;c<r;c++){for(var u=6*c,d=0,h=0;h<s;h+=2){var p=0===h?u:(u+h-2)%l+2,f=t[p]-n[0],g=t[p+1]-n[1],m=e[h]-i[0]-f,v=e[h+1]-i[1]-g;d+=m*m+v*v}d<o&&(o=d,a=c)}return a}function WQ(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}function UQ(t){return t.__isCombineMorphing}var qQ="__mOriginal_";function YQ(t,e,n){var i=qQ+e,r=t[i]||t[e];t[i]||(t[i]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):r.apply(this,e),a&&a.apply(this,e),t}}function $Q(t,e){var n=qQ+e;t[n]&&(t[e]=t[n],t[n]=null)}function XQ(t,e){for(var n=0;n<t.length;n++)for(var i=t[n],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=e[0]*o+e[2]*a+e[4],i[r++]=e[1]*o+e[3]*a+e[5]}}function ZQ(t,e){var n=t.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),r=function(t,e){for(var n,i,r,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],c=e[s],u=void 0,d=void 0;l?c?(i=u=(n=VQ(l,c))[0],r=d=n[1]):(d=FQ(r||l,l),u=l):(u=FQ(i||c,c),d=c),o.push(u),a.push(d)}return[o,a]}(kQ(n),kQ(i)),o=r[0],a=r[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&XQ(o,s),l&&XQ(a,l),YQ(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var c=function(t,e,n,i){for(var r,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],c=HQ(s),u=HQ(l);null==r&&(r=c[2]<0!=u[2]<0);var d=[],h=[],p=0,f=1/0,g=[],m=s.length;r&&(s=WQ(s));for(var v=6*GQ(s,l,c,u),y=m-2,b=0;b<y;b+=2){var _=(v+b)%y+2;d[b+2]=s[_]-c[0],d[b+3]=s[_+1]-c[1]}if(d[0]=s[v]-c[0],d[1]=s[v+1]-c[1],n>0)for(var x=i/n,w=-i/2;w<=i/2;w+=x){var S=Math.sin(w),O=Math.cos(w),M=0;for(b=0;b<s.length;b+=2){var C=d[b],I=d[b+1],T=l[b]-u[0],k=l[b+1]-u[1],A=T*O-k*S,D=T*S+k*O;g[b]=A,g[b+1]=D;var L=A-C,P=D-I;M+=L*L+P*P}if(M<f){f=M,p=w;for(var j=0;j<g.length;j++)h[j]=g[j]}}else for(var E=0;E<m;E+=2)h[E]=l[E]-u[0],h[E+1]=l[E+1]-u[1];o.push({from:d,to:h,fromCp:c,toCp:u,rotation:-p})}return o}(o,a,10,Math.PI),u=[];YQ(e,"buildPath",{replace:function(t){for(var n=e.__morphT,i=1-n,r=[],o=0;o<c.length;o++){var a=c[o],s=a.from,l=a.to,d=a.rotation*n,h=a.fromCp,p=a.toCp,f=Math.sin(d),g=Math.cos(d);Rh(r,h,p,n);for(var m=0;m<s.length;m+=2){var v=s[m],y=s[m+1],b=v*i+(S=l[m])*n,_=y*i+(O=l[m+1])*n;u[m]=b*g-_*f+r[0],u[m+1]=b*f+_*g+r[1]}var x=u[0],w=u[1];t.moveTo(x,w);for(m=2;m<s.length;){var S=u[m++],O=u[m++],M=u[m++],C=u[m++],I=u[m++],T=u[m++];x===S&&w===O&&M===I&&C===T?t.lineTo(I,T):t.bezierCurveTo(S,O,M,C,I,T),x=I,w=T}}}})}function KQ(t,e,n){if(!t||!e)return e;var i=n.done,r=n.during;return ZQ(t,e),e.__morphT=0,e.animateTo({__morphT:1},Object(Sh.i)({during:function(t){e.dirtyShape(),r&&r(t)},done:function(){$Q(e,"buildPath"),$Q(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),i&&i()}},n)),e}function JQ(t,e,n,i,r,o){t=r===n?0:Math.round(32767*(t-n)/(r-n)),e=o===i?0:Math.round(32767*(e-i)/(o-i));for(var a,s=0,l=32768;l>0;l/=2){var c=0,u=0;(t&l)>0&&(c=1),(e&l)>0&&(u=1),s+=l*l*(3*c^u),0===u&&(1===c&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function QQ(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,o=Object(Sh.H)(t,function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]});return Object(Sh.H)(o,function(o,a){return{cp:o,z:JQ(o[0],o[1],e,n,i,r),path:t[a]}}).sort(function(t,e){return t.z-e.z}).map(function(t){return t.path})}function t0(t){return zQ(t.path,t.count)}function e0(t){return Object(Sh.t)(t[0])}function n0(t,e){for(var n=[],i=t.length,r=0;r<i;r++)n.push({one:t[r],many:[]});for(r=0;r<e.length;r++){var o=e[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(e[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var c=Math.ceil(o/2);n[r].many=l.slice(c,o),n[s].many=l.slice(0,c),s++}return n}var i0={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var r=wM(t.path);r.setStyle("opacity",n),e.push(r)}return e},split:null};function r0(t,e,n,i,r,o){if(t.length&&e.length){var a=b_("update",i,r);if(a&&a.duration>0){var s,l,c=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},a);e0(t)&&(s=t,l=e),e0(e)&&(s=e,l=t);for(var d=s?s===t:t.length>e.length,h=s?n0(l,s):n0(d?e:t,[d?t:e]),p=0,f=0;f<h.length;f++)p+=h[f].many.length;var g=0;for(f=0;f<h.length;f++)m(h[f],d,g,p),g+=h[f].many.length}}function m(t,e,i,r,a){var s=t.many,l=t.one;
70if(1!==s.length||a)for(var d=Object(Sh.i)({dividePath:i0[n],individualDelay:c&&function(t,e,n,o){return c(t+i,r)}},u),h=e?function(t,e,n){var i=[];!function t(e){for(var n=0;n<e.length;n++){var r=e[n];UQ(r)?t(r.childrenRef()):r instanceof By&&i.push(r)}}(t);var r=i.length;if(!r)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(n.dividePath||t0)({path:e,count:r});if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};i=QQ(i),o=QQ(o);for(var a=n.done,s=n.during,l=n.individualDelay,c=new Dg,u=0;u<r;u++){var d=i[u],h=o[u];h.parent=e,h.copyTransform(c),l||ZQ(d,h)}function p(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function f(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,$Q(e,"addSelfToZr"),$Q(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},YQ(e,"addSelfToZr",{after:function(t){p(t)}}),YQ(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var g=o.length;if(l){var m=g,v=function(){0==--m&&(f(),a&&a())};for(u=0;u<g;u++){var y=l?Object(Sh.i)({delay:(n.delay||0)+l(u,g,i[u],o[u]),done:v},n):n;KQ(i[u],o[u],y)}}else e.__morphT=0,e.animateTo({__morphT:1},Object(Sh.i)({during:function(t){for(var n=0;n<g;n++){var i=o[n];i.__morphT=e.__morphT,i.dirtyShape()}s&&s(t)},done:function(){f();for(var e=0;e<t.length;e++)$Q(t[e],"updateTransform");a&&a()}},n));return e.__zr&&p(e.__zr),{fromIndividuals:i,toIndividuals:o,count:g}}(s,l,d):function(t,e,n){var i=e.length,r=[],o=n.dividePath||t0;if(UQ(t)){!function t(e){for(var n=0;n<e.length;n++){var i=e[n];UQ(i)?t(i.childrenRef()):i instanceof By&&r.push(i)}}(t.childrenRef());var a=r.length;if(a<i)for(var s=0,l=a;l<i;l++)r.push(wM(r[s++%a]));r.length=i}else{r=o({path:t,count:i});var c=t.getComputedTransform();for(l=0;l<r.length;l++)r[l].setLocalTransform(c);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}r=QQ(r),e=QQ(e);var u=n.individualDelay;for(l=0;l<i;l++){var d=u?Object(Sh.i)({delay:(n.delay||0)+u(l,i,r[l],e[l])},n):n;KQ(r[l],e[l],d)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}(l,s,d),p=h.fromIndividuals,f=h.toIndividuals,g=p.length,v=0;v<g;v++){y=c?Object(Sh.i)({delay:c(v,g)},u):u;o(p[v],f[v],e?s[v]:t.one,e?t.one:s[v],y)}else{var y,b=e?s[0]:l,_=e?l:s[0];if(UQ(b))m({many:[b],one:_},!0,i,r,!0);else KQ(b,_,y=c?Object(Sh.i)({delay:c(i,r)},u):u),o(b,_,b,_,y)}}}function o0(t){if(!t)return[];if(Object(Sh.t)(t)){for(var e=[],n=0;n<t.length;n++)e.push(o0(t[n]));return e}var i=[];return t.traverse(function(t){t instanceof By&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)}),i}var a0=1e4,s0=0,l0=1,c0=2,u0=Gm();function d0(t,e,n,i){var r=function(t,e){for(var n=t.dimensions,i=0;i<n.length;i++){var r=t.getDimensionInfo(n[i]);if(r&&0===r.otherDims[e])return n[i]}}(t,i?"itemChildGroupId":"itemGroupId");if(r)return function(t,e,n){var i=t.getDimensionInfo(n),r=i&&i.ordinalMeta;if(i){var o=t.get(i.name,e);return r&&r.categories[o]||o+""}}(t,e,r);var o=t.getRawDataItem(e),a=i?"childGroupId":"groupId";return o&&o[a]?o[a]+"":i?void 0:n||t.getId(e)}function h0(t){var e=[];return Object(Sh.k)(t,function(t){var n=t.data,i=t.dataGroupId;if(!(n.count()>a0))for(var r=n.getIndices(),o=0;o<r.length;o++)e.push({data:n,groupId:d0(n,o,i,!1),childGroupId:d0(n,o,i,!0),divide:t.divide,dataIndex:o})}),e}function p0(t,e,n){t.traverse(function(t){t instanceof By&&w_(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function f0(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function g0(t){t.stopAnimation(),t.isGroup&&t.traverse(function(t){t.stopAnimation()})}function m0(t,e,n){var i=b_("update",n,e);i&&t.traverse(function(t){if(t instanceof Rv){var e=y_(t).oldStyle;e&&t.animateFrom({style:e},i)}})}function v0(t,e,n){var i=h0(t),r=h0(e);function o(t,e,n,i,r){(n||t)&&e.animateFrom({style:n&&n!==t?Object(Sh.m)(Object(Sh.m)({},n.style),t.style):t.style},r)}var a=!1,s=s0,l=Object(Sh.f)(),c=Object(Sh.f)();i.forEach(function(t){t.groupId&&l.set(t.groupId,!0),t.childGroupId&&c.set(t.childGroupId,!0)});for(var u=0;u<r.length;u++){var d=r[u].groupId;if(c.get(d)){s=l0;break}var h=r[u].childGroupId;if(h&&l.get(h)){s=c0;break}}function p(t,e){return function(n){var i=n.data,r=n.dataIndex;return e?i.getId(r):t?s===l0?n.childGroupId:n.groupId:s===c0?n.childGroupId:n.groupId}}var f=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var r=t[i],o=e[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(i,r),g={};if(!f)for(u=0;
70u<r.length;u++){var m=r[u],v=m.data.getItemGraphicEl(m.dataIndex);v&&(g[v.id]=!0)}function y(t,e){var n=i[e],s=r[t],l=s.data.hostModel,c=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);c!==u?c&&g[c.id]||u&&(g0(u),c?(g0(c),f0(c),a=!0,r0(o0(c),o0(u),s.divide,l,t,o)):p0(u,l,t)):u&&m0(u,s.dataIndex,l)}new cL(i,r,p(!0,f),p(!1,f),null,"multiple").update(y).updateManyToOne(function(t,e){var n=r[t],s=n.data,l=s.hostModel,c=s.getItemGraphicEl(n.dataIndex),u=Object(Sh.n)(Object(Sh.H)(e,function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)}),function(t){return t&&t!==c&&!g[t.id]});c&&(g0(c),u.length?(Object(Sh.k)(u,function(t){g0(t),f0(t)}),a=!0,r0(o0(u),o0(c),n.divide,l,t,o)):p0(c,l,n.dataIndex))}).updateOneToMany(function(t,e){var n=i[e],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=Object(Sh.n)(Object(Sh.H)(t,function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)}),function(t){return t&&t!==s}),c=r[t[0]].data.hostModel;l.length&&(Object(Sh.k)(l,function(t){return g0(t)}),s?(g0(s),f0(s),a=!0,r0(o0(s),o0(l),n.divide,c,t[0],o)):Object(Sh.k)(l,function(e){return p0(e,c,t[0])}))}}).updateManyToMany(function(t,e){new cL(e,t,function(t){return i[t].data.getId(i[t].dataIndex)},function(t){return r[t].data.getId(r[t].dataIndex)}).update(function(n,i){y(t[n],e[i])}).execute()}).execute(),a&&Object(Sh.k)(e,function(t){var e=t.data.hostModel,i=e&&n.getViewOfSeriesModel(e),r=b_("update",e,0);i&&e.isAnimationEnabled()&&r&&r.duration>0&&i.group.traverse(function(t){t instanceof By&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)})})}function y0(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function b0(t){return Object(Sh.t)(t)?t.sort().join(","):t}function _0(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function x0(t,e){for(var n=0;n<t.length;n++){if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}}function w0(){return function(){const t=localStorage.getItem("portfolioToken");if(t)return t;const e=function(t){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let i=0;i<t;i++)n+=e.charAt(Math.floor(Math.random()*e.length));return n}(16);return localStorage.setItem("portfolioToken",e),e}()}eA([function(t){t.registerPainter("canvas",WA)}]),eA([function(t){t.registerPainter("svg",aL)}]),eA([function(t){t.registerChartView(MP),t.registerSeriesModel(GL),t.registerLayout(CP("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,kP("line"))},function(t){t.registerChartView(hj),t.registerSeriesModel(HP),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Sh.h(NP,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,RP("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,kP("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)})})},function(t){t.registerChartView(Cj),t.registerSeriesModel(Aj),tT("pie",t.registerAction),t.registerLayout(Object(Sh.h)(vj,"pie")),t.registerProcessor(bj("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Object(Sh.z)(i)&&!isNaN(i)&&i<0)})}})},function(t){eA(HN),t.registerSeriesModel(Dj),t.registerChartView(Ej),t.registerLayout(CP("scatter"))},function(t){eA(nR),t.registerChartView(YN),t.registerSeriesModel($N),t.registerLayout(GN),t.registerProcessor(bj("radar")),t.registerPreprocessor(qN)},function(t){eA(HB),t.registerChartView(SB),t.registerSeriesModel(OB),t.registerLayout(CB),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,MB),tT("map",t.registerAction)},function(t){t.registerChartView(az),t.registerSeriesModel(wz),t.registerLayout(Oz),t.registerVisual(Mz),function(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var n=t.dataIndex,i=e.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var i=zB(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)})})}(t)},function(t){t.registerSeriesModel(Tz),t.registerChartView(Wz),t.registerVisual(cV),t.registerLayout(xV),function(t){for(var e=0;e<Cz.length;e++)t.registerAction({type:Cz[e],update:"updateView"},Sh.L);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},function(e,n){var i=yz(t,["treemapZoomToNode","treemapRootToNode"],e);if(i){var r=e.getViewRoot();r&&(t.direction=_z(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}})})}(t)},function(t){t.registerChartView(xF),t.registerSeriesModel(kF),t.registerProcessor(MV),t.registerVisual(CV),t.registerVisual(TV),t.registerLayout(zV),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,YV),t.registerLayout(XV),t.registerCoordinateSystem("graphView",{dimensions:kB.dimensions,create:ZV}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Sh.L),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Sh.L),t.registerAction(AF,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(e){var i=zB(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)})})},function(t){t.registerChartView(jF),t.registerSeriesModel(EF)},function(t){t.registerChartView(BF),t.registerSeriesModel(zF),t.registerLayout(VF),t.registerProcessor(bj("funnel"))},function(t){eA(mG),t.registerChartView(qF),t.registerSeriesModel($F),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,ZF)},function(t){t.registerChartView(_G),t.registerSeriesModel(xG),t.registerLayout(wG),t.registerVisual(jG),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])})})},function(t){t.registerSeriesModel(RG),t.registerChartView(WG),t.registerLayout(qG),t.registerTransform(YG)},function(t){t.registerChartView(fW),t.registerSeriesModel(mW),t.registerPreprocessor(vW),t.registerVisual(eW),t.registerLayout(bW)},function(t){t.registerChartView(wW),t.registerSeriesModel(SW),t.registerLayout(CP("effectScatter"))},function(t){t.registerChartView(DW),t.registerSeriesModel(EW),t.registerLayout(AW),t.registerVisual(RW)},function(t){t.registerChartView(VW),t.registerSeriesModel(FW)},function(t){t.registerChartView(lU),t.registerSeriesModel(cU),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(Sh.h)(NP,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,RP("pictorialBar"))}
70,function(t){t.registerChartView(uU),t.registerSeriesModel(dU),t.registerLayout(hU),t.registerProcessor(bj("themeRiver"))},function(t){t.registerChartView(_U),t.registerSeriesModel(xU),t.registerLayout(Object(Sh.h)(SU,"sunburst")),t.registerProcessor(Object(Sh.h)(bj,"sunburst")),t.registerVisual(OU),function(t){t.registerAction({type:vU,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,n){var i=yz(t,[vU],e);if(i){var r=e.getViewRoot();r&&(t.direction=_z(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}})}),t.registerAction({type:yU,update:"none"},function(t,e,n){t=Object(Sh.m)({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e){var n=yz(t,[yU],e);n&&(t.dataIndex=n.node.dataIndex)}),n.dispatchAction(Object(Sh.m)(t,{type:"highlight"}))}),t.registerAction({type:bU,update:"updateView"},function(t,e,n){t=Object(Sh.m)({},t),n.dispatchAction(Object(Sh.m)(t,{type:"downplay"}))})}(t)},function(t){t.registerChartView(fq),t.registerSeriesModel(TU)}]),eA(function(t){eA(HN),eA(gY)}),eA(function(t){eA(gY),AN.registerAxisPointerClass("PolarAxisPointer",yY),t.registerCoordinateSystem("polar",PY),t.registerComponentModel(bY),t.registerComponentView(KY),Yj(t,"angle",xY,XY),Yj(t,"radius",wY,ZY),t.registerComponentView(VY),t.registerComponentView(UY),t.registerLayout(Object(Sh.h)($Y,"bar"))}),eA(HB),eA(function(t){eA(gY),AN.registerAxisPointerClass("SingleAxisPointer",v$),t.registerComponentView(y$),t.registerComponentView(i$),t.registerComponentModel(o$),Yj(t,"single",o$,o$.defaultOption),t.registerCoordinateSystem("single",u$)}),eA(mG),eA(function(t){t.registerComponentModel(_$),t.registerComponentView(x$),t.registerCoordinateSystem("calendar",S$)}),eA(function(t){t.registerComponentModel(T$),t.registerComponentView(D$),t.registerPreprocessor(function(t){var e=t.graphic;Object(Sh.t)(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}),eA(function(t){t.registerComponentModel(rX),t.registerComponentView(aX),nX("saveAsImage",sX),nX("magicType",dX),nX("dataView",bX),nX("dataZoom",UX),nX("restore",OX),eA(Q$)}),eA(function(t){eA(gY),t.registerComponentModel(qX),t.registerComponentView(hZ),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Sh.L),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Sh.L)}),eA(gY),eA(function(t){t.registerComponentView(DZ),t.registerComponentModel(PZ),t.registerPreprocessor(fZ),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,CZ),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Sh.L),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Sh.L),nX("brush",EZ)}),eA(function(t){t.registerComponentModel(NZ),t.registerComponentView(RZ)}),eA(function(t){t.registerComponentModel(VZ),t.registerComponentView(YZ),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),function(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Object(Sh.i)({currentIndex:i.option.currentIndex},t)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)})}(t),t.registerPreprocessor($Z)}),eA(function(t){t.registerComponentModel(nK),t.registerComponentView(fK),t.registerPreprocessor(function(t){KZ(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}),eA(function(t){t.registerComponentModel(gK),t.registerComponentView(wK),t.registerPreprocessor(function(t){KZ(t.series,"markLine")&&(t.markLine=t.markLine||{})})}),eA(function(t){t.registerComponentModel(SK),t.registerComponentView(DK),t.registerPreprocessor(function(t){KZ(t.series,"markArea")&&(t.markArea=t.markArea||{})})}),eA(function(t){eA(WK),eA(KK)}),eA(function(t){eA(cJ),eA(yJ)}),eA(cJ),eA(yJ),eA(function(t){eA(tQ),eA(aQ)}),eA(tQ),eA(aQ),eA(function(t){t.registerPreprocessor(dQ),t.registerVisual(t.PRIORITY.VISUAL.ARIA,uQ)}),eA(function(t){t.registerTransform(SQ),t.registerTransform(OQ)}),eA(function(t){t.registerComponentModel(MQ),t.registerComponentView(CQ)}),eA(function(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){Object(Sh.k)(Dm(n.seriesTransition),function(t){Object(Sh.k)(Dm(t.to),function(t){for(var e=n.updatedSeries,i=0;i<e.length;
70i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][WO]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(t,e,n){var i=u0(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)Object(Sh.k)(Dm(r),function(t){!function(t,e,n,i){var r=[],o=[];Object(Sh.k)(Dm(t.from),function(t){var n=x0(e.oldSeries,t);n>=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:_0(e.oldData[n]),groupIdDim:t.dimension})}),Object(Sh.k)(Dm(t.to),function(t){var i=x0(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:_0(r),groupIdDim:t.dimension})}}),r.length>0&&o.length>0&&v0(r,o,i)}(t,i,n,e)});else{var o=function(t,e){var n=Object(Sh.f)(),i=Object(Sh.f)(),r=Object(Sh.f)();return Object(Sh.k)(t.oldSeries,function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=y0(e),l=b0(s);i.set(l,{dataGroupId:o,data:a}),Object(Sh.t)(s)&&Object(Sh.k)(s,function(t){r.set(t,{key:l,dataGroupId:o,data:a})})}),Object(Sh.k)(e.updatedSeries,function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=y0(t),s=b0(a),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:_0(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:_0(o),data:o}]});else if(Object(Sh.t)(a)){var c=[];Object(Sh.k)(a,function(t){var e=i.get(t);e.data&&c.push({dataGroupId:e.dataGroupId,divide:_0(e.data),data:e.data})}),c.length&&n.set(s,{oldSeries:c,newSeries:[{dataGroupId:e,data:o,divide:_0(o)}]})}else{var u=r.get(a);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:_0(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:e,data:o,divide:_0(o)})}}}}),n}(i,n);Object(Sh.k)(o.keys(),function(t){var n=o.get(t);v0(n.oldSeries,n.newSeries,e)})}Object(Sh.k)(n.updatedSeries,function(t){t[WO]&&(t[WO]=!1)})}for(var a=t.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],c=i.oldData=[],u=0;u<a.length;u++){var d=a[u].getData();d.count()<a0&&(s.push(a[u]),l.push(a[u].get("dataGroupId")),c.push(d))}})}),eA(VA);const S0={Accept:"application/json","Content-Type":"application/json","X-Guest-Token":w0()};function O0({name:t,description:e,color:n,includeInTotal:i}){return fetch("/en/api/portfolio",{method:"POST",headers:{...S0},body:JSON.stringify({name:t,description:e,color:n,include_in_total:i})})}function M0({id:t,name:e,description:n,color:i,includeInTotal:r,show_small_balances:o,is_public:a}){return fetch(`/en/api/portfolio/${t}`,{method:"PUT",headers:{...S0},body:JSON.stringify({name:e,description:n,color:i,include_in_total:r,show_small_balances:o,is_public:a})})}var C0={props:["show"],data(){const t="boolean"!=typeof this.show?this.show:{id:null,name:"",description:"",color:1,includeInTotal:!0};return{id:t.id,name:t.name,description:t.description,color:t.color,MAX_NAME_LENGTH:32,validationErrors:{},supportedColor:[1,2,3,4,5,6],includeInTotal:t.include_in_total,loading:!1}},computed:{nameCharsLeft(){return this.MAX_NAME_LENGTH-this.name.length}},watch:{name(){this.validationErrors.name=null},show(){const t="boolean"!=typeof this.show?this.show:{id:null,name:"",description:"",color:1,includeInTotal:!0};this.id=t.id,this.name=t.name,this.description=t.description,this.color=t.color,this.includeInTotal=t.include_in_total}},methods:{async handleSubmit(){this.loading=!0,this.validationErrors={};const{id:t,name:e,description:n,color:i,includeInTotal:r}=this,o={name:e,description:n,color:i,includeInTotal:r};try{const e=t?await M0({id:t,...o}):await O0(o),n=await e.json();switch(e.status){case 200:case 201:this.$emit("on-close");break;case 422:this.validationErrors=n.errors}}catch(t){}this.loading=!1},onClose(){this.$emit("on-close"),this.validationErrors={},this.name="",this.description="",this.color=1,this.includeInTotal=0},getValidationError(t){const e=this.validationErrors[t];return!(!e||!Array.isArray(e))&&e.join(";")}},template:String.raw` 71 <div 72 class="cdf-modal cdf-modal--small-on-mobile" 73 :class="{'cdf-modal--show': show}" 74 @mousedown.self="onClose" 75 > 76 <div class="cdf-modal-dialog cdf-modal-dialog--sm" @mousedown.self="onClose"> 77 <div class="cdf-modal-content"> 78 <div class="cdf-modal-header"> 79 <div class="cdf-modal-header__left"> 80 <div class="cdf-modal-title">{{ t('CREATE_PORTFOLIO') }}</div> 81 </div> 82 <div class="cdf-modal-header__right"> 83 <button 84 class="cdf-modal-close-btn" 85 type="button" 86 @click="onClose" 87 > 88 <svg class="icon"> 89 <use xlink:href="#close"></use> 90 </svg> 91 </button> 92 </div> 93 </div> 94 <!-- .cdf-modal-header --> 95 <div class="cdf-modal-body"> 96 <div class="cdf-modal-section"> 97 <div 98 class="cdf-field" 99 :class="{'cdf-field--has-error': getValidationError('name')}" 100 > 101 <div class="cdf-field__head"> 102 <label class="cdf-field-label">{{ t('PORTFOLIO_NAME') }}</label> 103 </div> 104 <div class="cdf-field__body"> 105 <div class="cdf-field-input"> 106 <div></div> 107 <input 108 v-model="name" 109 class="cdf-field-input__el" 110 type="text" 111 :maxlength="MAX_NAME_LENGTH" 112 :placeholder="t('PORTFOLIO_NAME')" 113 /> 114 <div class="cdf-field-input__right">{{nameCharsLeft}}</div> 115 </div> 116 </div> 117 <div class="cdf-field__foot" v-if="getValidationError('name')"> 118 <div class="cdf-field-hint"> 119 {{ getValidationError('name') }} 120 </div> 121 </div> 122 </div> 123 </div> 124 <!-- .cdf-modal-section --> 125 <div class="cdf-modal-section"> 126 <div class="cdf-field"> 127 <div class="cdf-field__head"> 128 <label class="cdf-field-label"> 129 {{ t('DESCRIPTION_OPTIONAL') }} 130 </label> 131 </div> 132 <div class="cdf-field__body"> 133 <textarea 134 v-model="description" 135 class="cdf-field-input__textarea" 136 rows="5" 137 :placeholder="t('DESCRIPTION_PLACEHOLDER')" 138 ></textarea> 139 </div> 140 <div class="cdf-field__foot"> 141 <div class="cdf-field-hint">{{ t('MAX_CHARS') }}</div> 142 </div> 143 </div> 144 </div> 145 <!-- .cdf-modal-section --> 146 <div class="cdf-modal-section"> 147 <div class="cdf-field"> 148 <div class="cdf-field__head"> 149 <label class="cdf-field-label"> {{ t('CHOOSE_COLOR') }} </label> 150 </div> 151 <div class="cdf-field__body"> 152 <div class="pf-color-picker"> 153 <div 154 class="pf-color-picker-item" 155 v-for="v in supportedColor" 156 :style="'--color: var(--color-' + v + ')'" 157 > 158 <input 159 :id="'color_' + v" 160 class="pf-color-picker-item__input" 161 type="radio" 162 v-model="color" 163 :value="v" 164 /> 165 <label 166 class="pf-color-picker-item__label" 167 :for="'color_' + v" 168 ></label> 169 </div> 170 </div> 171 </div> 172 </div> 173 </div> 174 <!-- .cdf-modal-section --> 175 <div class="cdf-modal-section" v-show="false"> 176 <div class="pf-hero-line"> 177 <div class="pf-hero-line-left"> 178 <div class="pf-hero-line-icon"> 179 <svg class="pf-hero-line-icon__svg"> 180 <use xlink:href="#portfel"></use> 181 </svg> 182 </div> 183 </div> 184 <div class="pf-hero-line-content"> 185 <div class="pf-hero-line-title">{{ t('INCLUDE_IN_TOTAL') }}</div> 186 <div class="pf-hero-line-description"> 187 {{ t('CALC_IN_SUMMARY') }} 188 </div> 189 </div> 190 <div class="pf-hero-line-action"> 191 <label class="cdf-switch"> 192 <input 193 class="cdf-switch__input" 194 type="checkbox" 195 v-model="includeInTotal" 196 />
197 <span class="cdf-switch__slider"></span> 198 </label> 199 </div> 200 </div> 201 </div> 202 <!-- .cdf-modal-section --> 203 </div> 204 <!-- .cdf-modal-body --> 205 <div class="cdf-modal-footer"> 206 <button v-if="!id" 207 class="cdf-btn cdf-btn--prim cdf-btn--100w" 208 type="button" 209 @click="handleSubmit" 210 :disabled="loading" 211 > 212 {{ t('CREATE_PORTFOLIO') }} 213 </button> 214 <button v-if="id" 215 class="cdf-btn cdf-btn--prim cdf-btn--100w" 216 type="button" 217 @click="handleSubmit" 218 :disabled="loading" 219 > 220 {{ t('SAVE_CHANGES') }} 221 </button> 222 </div> 223 <!-- .cdf-modal-footer --> 224 </div> 225 </div> 226 <!-- .cdf-modal-dialog --> 227 </div> 228 <!-- .cdf-modal --> 229 `};var I0={props:["list","show","hideButtons"],data(){return{portfolioList:this.list}},mounted(){document.addEventListener("mousedown",this.handleClickOutside)},beforeUnmount(){document.removeEventListener("mousedown",this.handleClickOutside)},methods:{onClose(){this.$emit("on-close")},onSelectPortfolio(t){this.$emit("on-select",t)},onAddPortfolio(){this.$emit("on-add-portfolio")},onEditList(){this.$emit("on-edit-list")},handleClickOutside(t){const e=this.$refs.modal;this.show&&e&&!e.contains(t.target)&&!t.target.closest(".cdf-modal")&&window.innerWidth>768&&this.onClose()}},template:String.raw` 230 <div 231 class="cdf-modal cdf-modal--small-on-mobile" 232 :class="{'cdf-modal--show': show}" 233 ref="modal" 234 > 235 <div class="cdf-modal-dialog cdf-modal-dialog--sm" @mousedown.self="onClose"> 236 <div class="cdf-modal-content"> 237 <div class="cdf-modal-header"> 238 <div class="cdf-modal-header__left"> 239 <div class="cdf-modal-title">{{ t('PORTFOLIO_LIST') }}</div> 240 </div> 241 <div class="cdf-modal-header__right"> 242 <button 243 class="cdf-modal-close-btn" 244 type="button" 245 @click="onClose" 246 > 247 <svg class="icon"> 248 <use xlink:href="#close"></use> 249 </svg> 250 </button> 251 </div> 252 </div> 253 <!-- .cdf-modal-header --> 254 <div class="cdf-modal-body"> 255 <div class="pf-card"> 256 <div class="pf-card-item" v-for="item in list" @click="onSelectPortfolio(item.id)"> 257 <div class="pf-card-item__left"> 258 <div class="pf-icon pf-icon--color-1" :class="['pf-icon--color-' + item.color]"> 259 {{ item.name_short }} 260 </div> 261 </div> 262 <div class="pf-card-item__content"> 263 <div class="pf-card-item-name">{{ item.name }}</div> 264 <div class="pf-card-item-sub"> 265 {{ t('ASSETS_COUNT', {count: item.number_of_assets}) }} 266 </div> 267 </div> 268 <div class="pf-card-item__right"> 269 <div class="pf-card-item-total"> 270 {{ item.current_balance }} 271 </div> 272 <div class="pf-card-item-sub" style="font-size: 0.75rem" :data-number-sign="item.total_profit_value" :data-number-no-sign>{{item.total_profit}} {{item.total_profit_pct_formatted}}</div> 273 </div> 274 </div> 275 <!-- .pf-list-item --> 276 </div> 277 <!-- .pf-list --> 278 </div> 279 <!-- .cdf-modal-body --> 280 <div v-if="hideButtons !== true" class="cdf-modal-footer"> 281 <div class="cdf-grid cdf-grid--cols-2"> 282 <button class="cdf-btn" type="button" @click="onAddPortfolio"> 283 <svg class="cdf-btn-icon"> 284 <use xlink:href="#plus-sign"></use> 285 </svg> 286 {{ t('ADD_PORTFOLIO') }} 287 </button> 288 <button class="cdf-btn" type="button" @click="onEditList"> 289 <svg class="cdf-btn-icon"> 290 <use xlink:href="#menu"></use> 291 </svg> 292 {{ t('EDIT_LIST') }} 293 </button> 294 </div> 295 </div> 296 <!-- .cdf-modal-footer --> 297 </div> 298 </div> 299 <!-- .cdf-modal-dialog --> 300 </div> 301 <!-- .cdf-modal --> 302 `};var T0={props:["list","show"],data(){return{portfolioList:this.list}},methods:{onClose(){this.$emit("onClose")},onEdit(t){this.$emit("on-edit",t)},onDelete(t){this.$emit("on-delete",t)}},template:String.raw` 303 <div class="cdf-modal cdf-modal--small-on-mobile" :class="{'cdf-modal--show': show}"> 304 <div class="cdf-modal-dialog cdf-modal-dialog--sm"> 305 <div class="cdf-modal-content"> 306 <div class="cdf-modal-header"> 307 <div class="cdf-modal-header__left"> 308 <div class="cdf-modal-title">{{ t('EDIT_PORTFOLIO_LIST') }}</div> 309 </div> 310 <div class="cdf-modal-header__right"> 311 <button class="cdf-modal-close-btn" type="button" @click="onClose"> 312 <svg class="icon"> 313 <use xlink:href="#close"></use> 314 </svg> 315 </button> 316 </div> 317 </div> 318 <!-- .cdf-modal-header --> 319 <div class="cdf-modal-body"> 320 <div class="pf-manage-list"> 321 <div class="pf-manage-list-item" v-for="item in list"> 322 <div class="pf-manage-list-item-drag"> 323 <svg class="icon pf-manage-list-item-drag__icon"> 324 <use xlink:href="#drag"></use> 325 </svg> 326 </div> 327 <div class="pf-manage-list-item-icon"> 328 <div class="pf-icon pf-icon--color-1" :class="['pf-icon--color-' + item.color]"> 329 {{ item.name_short }} 330 </div> 331 </div> 332 <div class="pf-manage-list-item-name"> 333 {{ item.name }} 334 </div> 335 <div class="pf-manage-list-item-actions"> 336 <button class="pf-manage-list-item-action" type="button" @click="onDelete(item.id)"> 337 <svg class="icon pf-manage-list-item-action__icon"> 338 <use xlink:href="#delete"></use> 339 </svg> 340 </button> 341 <button class="pf-manage-list-item-action" type="button" @click="onEdit(item)"> 342 <svg class="icon pf-manage-list-item-action__icon"> 343 <use xlink:href="#edit"></use> 344 </svg> 345 </button> 346 </div> 347 </div> 348 <!-- .pf-manage-list-item --> 349 </div> 350 <!-- .pf-manage-list --> 351 </div> 352 <!-- .cdf-modal-body --> 353 </div> 354 </div> 355 <!-- .cdf-modal-dialog --> 356 </div> 357 <!-- .cdf-modal --> 358 `};var k0={props:["show"],data:()=>({loading:!1,error:null}),methods:{async onDelete(){this.loading=!0,this.error=null;try{if(!(await function({id:t}){return fetch(`/en/api/portfolio/${t}`,{method:"DELETE",headers:{...S0}})}({id:this.show})).ok)throw new Error("Failed to delete portfolio");this.$emit("on-close")}catch(t){this.error=`${t}`}this.loading=!1},onCancel(){this.error=null,this.loading=!1,this.$emit("on-close")}},template:String.raw` 359 <div 360 class="cdf-modal cdf-modal--small-on-mobile" 361 :class="{'cdf-modal--show': show}" 362 @mousedown.self="onCancel" 363 > 364 <div class="cdf-modal-dialog cdf-modal-dialog--sm" @mousedown.self="onCancel"> 365 <div class="cdf-modal-content"> 366 <div class="cdf-modal-header"> 367 <div class="cdf-modal-header__left"> 368 <div class="cdf-modal-title">{{ t('DELETE_PORTFOLIO') }}</div> 369 </div> 370 <div class="cdf-modal-header__right"> 371 <button 372 class="cdf-modal-close-btn" 373 type="button" 374 @click="onCancel" 375 > 376 <svg class="icon"> 377 <use xlink:href="#close"></use> 378 </svg> 379 </button> 380 </div> 381 </div> 382 <!-- .cdf-modal-header --> 383 <div class="cdf-modal-body"> 384 {{ t('DELETE_PORTFOLIO_MSG') }} 385 <div v-if="error" class="cdf-error-banner"> 386 {{ error }} 387 </div> 388 </div> 389 <!-- .cdf-modal-body --> 390 <div class="cdf-modal-footer"> 391 <div class="cdf-grid cdf-grid--cols-2"> 392 <button class="cdf-btn cdf-btn--danger" type="button" @click="onDelete" :disabled="loading"> 393 <svg class="cdf-btn-icon"> 394 <use xlink:href="#delete"></use> 395 </svg> 396 {{ t('DELETE') }} 397 </button> 398 <button class="cdf-btn" type="button" @click="onCancel"> 399 {{ t('CANCEL') }} 400 </button> 401 </div> 402 </div> 403 <!-- .cdf-modal-footer --> 404 </div> 405 </div> 406 <!-- .cdf-modal-dialog --> 407 </div> 408 <!-- .cdf-modal --> 409 `};var A0={props:["show"],data:()=>({loading:!1,deleteRelatedTx:!1,error:null}),methods:{async onDelete(){this.loading=!0,this.error=null;try{if(200!==(await function({id:t,deleteRelatedTx:e}){return fetch(`/en/api/portfolio-asset/${t}?delete_related_tx=${+e}`,{method:"DELETE",headers:{...S0}})}({id:this.show,deleteRelatedTx:this.deleteRelatedTx})).status)throw new Error("Failed to delete asset");this.$emit("on-close")}catch(t){this.error=`${t}`}this.loading=!1},onCancel(){this.error=null,this.loading=!1,this.$emit("on-close")}},template:String.raw` 410 <div 411 class="cdf-modal cdf-modal--small-on-mobile" 412 :class="{'cdf-modal--show': show}" 413 @mousedown.self="onCancel" 414 > 415 <div 416 class="cdf-modal-dialog cdf-modal-dialog--sm" 417 @mousedown.self="onCancel" 418 > 419 <div class="cdf-modal-content"> 420 <div class="cdf-modal-header"> 421 <div class="cdf-modal-header__left"> 422 <div class="cdf-modal-title">{{ t('DELETE_ASSET') }}</div> 423 </div> 424 <div class="cdf-modal-header__right"> 425 <button 426 class="cdf-modal-close-btn" 427 type="button" 428 @click="onCancel" 429 > 430 <svg class="icon"> 431 <use xlink:href="#close"></use> 432 </svg> 433 </button> 434 </div> 435 </div> 436 <!-- .cdf-modal-header --> 437 <div class="cdf-modal-body"> 438 {{ t('DELETE_ASSET_CONFIRM') }} 439 <p> 440 441 <input id="deleteRelatedTx" type="checkbox" v-model="deleteRelatedTx"> 442 <label for="deleteRelatedTx">{{ t('REMOVE_LINKED_TX') }}</label> 443</p> 444 <div v-if="error" class="cdf-error-banner">{{ error }}</div> 445 </div> 446 <!-- .cdf-modal-body --> 447 <div class="cdf-modal-footer"> 448 <div class="cdf-grid cdf-grid--cols-2"> 449 <button 450 class="cdf-btn cdf-btn--danger" 451 type="button" 452 @click="onDelete" 453 :disabled="loading" 454 > 455 <svg class="cdf-btn-icon"> 456 <use xlink:href="#delete"></use> 457 </svg> 458 {{ t('DELETE') }} 459 </button> 460 <button class="cdf-btn" type="button" @click="onCancel"> 461 {{ t('CANCEL') }} 462 </button> 463 </div> 464 </div> 465 <!-- .cdf-modal-footer --> 466 </div> 467 </div> 468 <!-- .cdf-modal-dialog --> 469 </div> 470 <!-- .cdf-modal --> 471 `};var D0={props:["show"],data:()=>({loading:!1,deleteRelatedTx:!1,error:null}),methods:{async onDelete(){this.loading=!0,this.error=null;try{if(200!==(await function({id:t,deleteRelatedTx:e=!1}){return fetch(`/en/api/portfolio-tx/${t}?delete_related_tx=${+e}`,{method:"DELETE",headers:{...S0}})}({id:this.show,deleteRelatedTx:this.deleteRelatedTx})).status)throw new Error("Failed to delete tx");this.deleteRelatedTx=!1,this.$emit("on-close")}catch(t){this.error=`${t}`}this.loading=!1},onCancel(){this.error=null,this.loading=!1,this.deleteRelatedTx=!1,this.$emit("on-close")}},template:String.raw` 472 <div 473 class="cdf-modal cdf-modal--small-on-mobile" 474 :class="{'cdf-modal--show': show}" 475 > 476 <div 477 class="cdf-modal-dialog cdf-modal-dialog--sm" 478 @mousedown.self="onCancel" 479 > 480 <div class="cdf-modal-content"> 481 <div class="cdf-modal-header"> 482 <div class="cdf-modal-header__left"> 483 <div class="cdf-modal-title">{{ t('DELETE_TRANSACTION') }}</div> 484 </div> 485 <div class="cdf-modal-header__right"> 486 <button 487 class="cdf-modal-close-btn" 488 type="button" 489 @click="onCancel" 490 > 491 <svg class="icon"> 492 <use xlink:href="#close"></use> 493 </svg> 494 </button> 495 </div> 496 </div> 497 <!-- .cdf-modal-header --> 498 <div class="cdf-modal-body"> 499 {{ t('DELETE_TX_CONFIRM') }} 500 <p> 501 502 <label style="cursor: pointer"><input type="checkbox" v-model="deleteRelatedTx"> {{ t('REMOVE_LINKED_TX') }}</label> 503</p> 504 <div v-if="error" class="cdf-error-banner">{{ error }}</div> 505 </div> 506 <!-- .cdf-modal-body --> 507 <div class="cdf-modal-footer"> 508 <div class="cdf-grid cdf-grid--cols-2"> 509 <button 510 class="cdf-btn cdf-btn--danger" 511 type="button" 512 @click="onDelete" 513 :disabled="loading" 514 > 515 <svg class="cdf-btn-icon"> 516 <use xlink:href="#delete"></use> 517 </svg> 518 {{ t('DELETE_TRANSACTION') }} 519 </button> 520 <button class="cdf-btn" type="button" @click="onCancel"> 521 {{ t('CANCEL') }} 522 </button> 523 </div> 524 </div> 525 <!-- .cdf-modal-footer --> 526 </div> 527 </div> 528 <!-- .cdf-modal-dialog --> 529 </div> 530 <!-- .cdf-modal --> 531 `};const L0=String.raw;function P0(t,e=4){if(0===t)return"0";const n=Math.floor(Math.log10(Math.abs(t))),i=Math.pow(10,e-1-n),r=Math.round(t*i)/i,o=Math.max(0,e-n-1);let a=r.toFixed(o);return a=a.replace(/\.?0+$/,"")}const j0=[{asset_type:1,asset_id:5134,name:"USDT"},{asset_type:1,asset_id:2012,name:"ETH"},{asset_type:1,asset_id:583,name:"BTC"},{asset_type:0,asset_id:1,name:"USD"}],E0=j0[0];function N0(){return function(){const t=localStorage.getItem("portfolioToken");if(t)return t;const e=function(t){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let i=0;i<t;i++)n+=e.charAt(Math.floor(Math.random()*e.length));return n}(16);return localStorage.setItem("portfolioToken",e),e}()}var R0={props:["show","portfolioId","transaction","asset"],data(){return{priceType:0,errors:{},quoteAssetList:j0,_accessToken:N0(),currentBalance:{},newPortfolioId:null,portfolioList:[],touchedFields:[],tx:{portfolio_id:this.portfolioId,type:0,quantity:null,price_in_quote:null,total:null,base_asset_type:null,base_asset_id:null,base_asset:null,quote_asset:E0,quote_asset_type:E0.asset_type,quote_asset_id:E0.asset_id,ts:Math.floor(Date.now()/1e3),related:!1}}},mounted(){document.addEventListener("keydown",t=>{"Escape"===t.key&&this.onClose()})},computed:{quoteAssetListFiltered(){return 2===this.tx.base_asset_type?this.quoteAssetList.filter(({asset_type:t})=>0===t):this.quoteAssetList},hasOnBalance(){const t=`${this.tx.base_asset_type}_${this.tx.base_asset_id}`;return this.currentBalance[t]}
531,hasQuoteOnBalance(){const t=`${this.tx.quote_asset_type}_${this.tx.quote_asset_id}`;return this.currentBalance[t]},datetime:{get(){const t=new Date(1e3*this.tx.ts);return t.setMinutes(t.getMinutes()-t.getTimezoneOffset()),t.toISOString().slice(0,-8)},set(t){this.tx.ts=Math.floor(new Date(t).getTime()/1e3)}},quoteAsset:{get(){return j0.findIndex(({asset_type:t,asset_id:e})=>t==this.tx.quote_asset_type&&e===this.tx.quote_asset_id)},set(t){const e=j0[t];this.tx.quote_asset=e,this.tx.quote_asset_type=e.asset_type,this.tx.quote_asset_id=e.asset_id}}},watch:{show(t){if(!t)return;if(this.asset){const t=2===this.asset.type?j0[3]:E0;return this.tx={portfolio_id:this.portfolioId,type:0,quantity:null,price_in_quote:null,total:null,base_asset_type:this.asset.type,base_asset_id:this.asset.id,base_asset:this.asset,quote_asset:t,quote_asset_type:t.asset_type,quote_asset_id:t.asset_id,ts:Math.floor(Date.now()/1e3),related:!1},this.errors={},this.fetchPortfolioList(),this.fetchBalance(),void this.fetchPrice()}const e=this.transaction;this.tx=e?{portfolio_id:this.portfolioId,type:e?e.type:0,quantity:e?e.quantity:null,price_in_quote:e?e.price_in_quote:null,total:P0(e.quantity*e.price_in_quote),base_asset_type:e?e.base_asset_type:null,base_asset_id:e?e.base_asset_id:null,base_asset:e?e.base_asset:null,quote_asset:e?e.quote_asset:E0,quote_asset_type:e?e.quote_asset_type:E0.asset_type,quote_asset_id:e?e.quote_asset_id:E0.asset_id,ts:e?e.tx_at:Math.floor(Date.now()/1e3),related:e.related,relatedAllows:e.relatedAllows}:{portfolio_id:this.portfolioId,type:0,quantity:null,price_in_quote:null,total:null,base_asset_type:null,base_asset_id:null,base_asset:null,quote_asset:E0,quote_asset_type:E0.asset_type,quote_asset_id:E0.asset_id,ts:Math.floor(Date.now()/1e3),related:!1},this.errors={},this.touchedFields=[],this.fetchBalance()},"tx.type":function(){this.errors={}},
531"tx.ts":function(t){this.fetchBalance()}
531,touchedFields(t){const e=(...e)=>e.every(e=>t.includes(e));e("qt","total")||e("qt","price")||e("total","price")||e("qt")||e("total")}},methods:{setAllFromBalance(){this.hasOnBalance&&(this.tx.quantity=this.hasOnBalance)},updateTxTs(t){this.tx.ts=t,this.fetchPrice()},async fetchPortfolioList(){const t=await fetch(`/en/api/portfolio?time_frame=${this.currentTimeFrame}`,{headers:{"X-Guest-Token":this._accessToken},method:"GET"});if(200!==t.status)return;const e=await t.json();return this.portfolioList=e,!this.tx.portfolio_id&&this.asset&&this.portfolioList.length&&(this.newPortfolioId=this.portfolioList[0].id),e},onKeyDown(t){"-"!==t.key&&"e"!==t.key||t.preventDefault()},onClose(){this.$emit("onClose")},check(...t){return t.every(t=>this.touchedFields.includes(t))},touchField(t){const e=[...this.touchedFields];e[0]!==t&&(e.unshift(t),e.length>2&&e.pop(),this.touchedFields=e),this.check("qt","total")?this.recalculatePrice():this.check("qt","price")?this.recalculateTotal():this.check("total","price")?this.recalculateQuantity():this.check("qt")?this.recalculateTotal():this.check("total")&&this.recalculateQuantity()},onInputPriceInQuote(){this.touchField("price"),this.errors={}},onInputQuantity(){this.touchField("qt"),this.errors={}},onInputTxTotal(){this.touchField("total"),this.errors={}},onChangeQuoteAsset(){this.fetchPrice()},onInputTs(){this.fetchPrice(),this.errors={}},onSelectAsset(t){this.tx.base_asset=t,this.tx.base_asset_type=t.type,this.tx.base_asset_id=t.id,2===t.type&&(this.tx.quote_asset=j0[3],this.tx.quote_asset_type=0,this.tx.quote_asset_id=1),this.fetchPrice()},async fetchPrice(){const t=new URL("/en/api/portfolio/price",window.location.origin);t.searchParams.set("base_asset_id",this.tx.base_asset_id),t.searchParams.set("base_asset_type",this.tx.base_asset_type),t.searchParams.set("quote_asset_id",this.tx.quote_asset_id),t.searchParams.set("quote_asset_type",this.tx.quote_asset_type),t.searchParams.set("ts",this.tx.ts);const e=await fetch(t),n=await e.json();this.tx.price_in_quote=n.result,this.tx.total=n.result*this.tx.quantity},async fetchBalance(){if(!this.portfolioId)return;const t=await function({portfolio_id:t,ts:e}){const n=new URL("/en/api/portfolio-tx/balance",window.location.origin);return n.searchParams.set("portfolio_id",t),n.searchParams.set("ts",e),fetch(n,{method:"GET",headers:{...S0}})}({portfolio_id:this.portfolioId,ts:this.tx.ts}),e=await t.json();this.currentBalance=e},async handleSubmit(){if(this.errors={},this.transaction){const t=await function({id:t,quantity:e,price_in_quote:n,quote_coin_id:i,tx_at:r,related:o}){return fetch(`/en/api/portfolio-tx/${t}`,{method:"PUT",headers:{...S0},body:JSON.stringify({quantity:e,price_in_quote:n,quote_coin_id:i,tx_at:r,related:o})})}({id:this.transaction.id,quantity:this.tx.quantity,price_in_quote:this.tx.price_in_quote,tx_at:this.tx.ts,related:this.tx.related});if(t.ok)this.$emit("on-create",!0);else if(422===t.status){const e=await t.json();this.errors=e.reduce((t,{field:e,message:n})=>{const i=e||"_";return(t[i]=t[i]||[]).push(n),t},{})}}else{let t=this.portfolioId||this.newPortfolioId;if(!t){const e=await O0({name:"Auto created"});if(!e.ok)return;{const n=await e.json();t=n.id,this.newPortfolioId=n.id}}const e=await function({type:t,quantity:e,price_in_quote:n,portfolio_id:i,base_asset_type:r,base_asset_id:o,quote_asset_type:a,quote_asset_id:s,tx_at:l,related:c}){return fetch("/en/api/portfolio-tx",{method:"POST",headers:{...S0},body:JSON.stringify({type:t,quantity:e,price_in_quote:n,portfolio_id:i,base_asset_type:r,base_asset_id:o,quote_asset_type:a,quote_asset_id:s,tx_at:l,related:c})})}({type:this.tx.type,quantity:this.tx.quantity,price_in_quote:this.tx.price_in_quote,portfolio_id:t,base_asset_type:this.tx.base_asset_type,base_asset_id:this.tx.base_asset_id,quote_asset_type:this.tx.quote_asset_type,quote_asset_id:this.tx.quote_asset_id,tx_at:this.tx.ts,related:this.tx.related});if(e.ok){if(this.$emit("on-create",!0),this.asset){const e=window.location.pathname.split("/")[1];window.location.href=`/${e}/portfolio-tracker/${t}`}}else if(422===e.status){const t=await e.json();this.errors=t.reduce((t,{field:e,message:n})=>{const i=e||"_";return(t[i]=t[i]||[]).push(n),t},{})}}},getValidationError(t){const e=this.errors[t];return!(!e||!Array.isArray(e))&&e.join("; ")},recalculateTotal(){if(this.tx.quantity&&this.tx.price_in_quote){const t=parseFloat(this.tx.quantity*this.tx.price_in_quote);this.tx.total=t<0?P0(t,4):+t.toFixed(2)}},recalculatePrice(){this.tx.total&&this.tx.quantity&&(this.tx.price_in_quote=this.tx.total/this.tx.quantity)},recalculateQuantity(){this.tx.total&&this.tx.price_in_quote&&(this.tx.quantity=this.tx.total/this.tx.price_in_quote)}},template:L0` 532 <div 533 class="cdf-modal cdf-modal--small-on-mobile" 534 :class="{'cdf-modal--show': show}" 535 @mousedown.self="onClose" 536 > 537 <div 538 class="cdf-modal-dialog cdf-modal-dialog--sm" 539 @mousedown.self="onClose" 540 > 541 <asset-list
542 @on-close="onClose" 543 @on-select="onSelectAsset" 544 v-if="!tx.base_asset" 545 ></asset-list> 546 <!-- .cdf-modal-content --> 547 <div class="cdf-modal-content" v-if="tx.base_asset"> 548 <div class="cdf-modal-header"> 549 <div class="cdf-modal-header__left"> 550 <div class="pf-modal-asset"> 551 <svg class="pf-modal-asset__back" @click="tx.base_asset = null"> 552 <use xlink:href="#left-arrow"></use> 553 </svg> 554 <template v-if="tx.base_asset.img.includes('placeholder.svg') && tx.base_asset.country"> 555 <span class="pf-modal-asset__flag"> 556 <span class="f16"><span class="flag" :class="tx.base_asset.country"></span></span> 557 </span> 558 </template> 559 <img 560 v-else 561 class="pf-modal-asset__img" 562 :src="'https://coindataflow.com/' + tx.base_asset.img" 563 alt="" 564 /> 565 <div class="pf-modal-asset__title"> 566 <div class="pf-modal-asset__symbol"> 567 {{ tx.base_asset.symbol }} 568 </div> 569 <div class="pf-modal-asset__name"> 570 {{ tx.base_asset.name }} 571 </div> 572 </div> 573 </div> 574 </div> 575 <div class="cdf-modal-header__right"> 576 <button 577 class="cdf-modal-close-btn" 578 type="button" 579 @click="onClose" 580 > 581 <svg class="icon"> 582 <use xlink:href="#close"></use> 583 </svg> 584 </button> 585 </div> 586 </div> 587 <!-- .cdf-modal-header --> 588 <div class="cdf-modal-body"> 589 <div class="cdf-modal-section" v-if="!transaction"> 590 <div class="cdf-radio"> 591 <div class="cdf-radio-item"> 592 <input 593 class="cdf-radio-item__input" 594 id="txTypeBuy" 595 type="radio" 596 name="txType" 597 v-model="tx.type" 598 :value="0" 599 selected 600 /> 601 <label class="cdf-radio-item__label" for="txTypeBuy"> 602 {{ t('BUY') }} 603 </label> 604 </div> 605 <div class="cdf-radio-item"> 606 <input 607 class="cdf-radio-item__input" 608 id="txTypeSell" 609 type="radio" 610 name="txType" 611 v-model="tx.type" 612 :value="1" 613 /> 614 <label class="cdf-radio-item__label" for="txTypeSell"> 615 {{ t('SELL') }} 616 </label> 617 </div> 618 <div class="cdf-radio-item"> 619 <input 620 class="cdf-radio-item__input" 621 id="txTypeTransfer" 622 type="radio" 623 name="txType" 624 v-model="tx.type" 625 value="2" 626 disabled 627 /> 628 <label class="cdf-radio-item__label" for="txTypeTransfer"> 629 {{ t('TRANSFER') }} 630 </label> 631 </div> 632 </div> 633 </div> 634 <div v-if="asset" class="cdf-field" :class="{'cdf-field--has-error': getValidationError('portfolio_id')}"> 635 <div class="cdf-field__head"> 636 <label class="cdf-field-label">{{ t('PORTFOLIO') }}</label> 637 </div> 638 <div class="cdf-field__body"> 639 <div class="cdf-field-input"> 640 <div>{{tx.portfolio_id}}</div> 641 <select v-model="newPortfolioId" class="cdf-field-input__el"> 642 <option :value="null">{{ t('CREATE_NEW_PORTFOLIO') }}</option> 643 <option v-for="pf in portfolioList" :value="pf.id">{{pf.name}}</option> 644 </select> 645 <div> 646 </div> 647 </div> 648 </div> 649 <div class="cdf-field__foot" v-if="getValidationError('portfolio_id')"> 650 <div class="cdf-field-hint">{{ getValidationError('portfolio_id') }}</div> 651 </div> 652 </div> 653 <div class="cdf-field" :class="{'cdf-field--has-error': getValidationError('quantity')}"> 654 <div class="cdf-field__head"> 655 <label class="cdf-field-label"> {{ t('AMOUNT') }} </label> 656 </div> 657 <div class="cdf-field__body"> 658 <div class="cdf-field-input"> 659 <div></div> 660 <input 661 class="cdf-field-input__el" 662 v-model="tx.quantity"
663 @input="onInputQuantity" 664 type="number" 665 placeholder="0" 666 min="0" 667 @keydown="onKeyDown" 668 /> 669 <div class="cdf-field-input__right"> 670 <button v-if="tx.type == 1 && hasOnBalance" @click="setAllFromBalance" type="button" class="pf-unstyled-btn">{{ t('ALL') }}</button> 671 {{tx.base_asset.symbol}} 672 </div> 673 </div> 674 </div> 675 <div class="cdf-field__foot" v-if="getValidationError('quantity')"> 676 <div class="cdf-field-hint">{{ getValidationError('quantity') }}</div> 677 </div> 678 </div> 679 680 <div class="cdf-field" :class="{'cdf-field--has-error': getValidationError('price_in_quote')}"> 681 <div class="cdf-field__head"> 682 <label class="cdf-field-label"> {{ t('PRICE') }} </label> 683 </div> 684 <div class="cdf-field__body"> 685 <div class="cdf-field-input"> 686 <div></div> 687 <input 688 class="cdf-field-input__el" 689 type="number" 690 v-model="tx.price_in_quote" 691 @input="onInputPriceInQuote" 692 @keydown="onKeyDown" 693 placeholder="0" 694 /> 695 <div class="cdf-field-input__right"> 696 <select v-model="quoteAsset" @change="onChangeQuoteAsset" class="pf-headless"> 697 <option 698 :value="quoteAssetList.indexOf(asset)" 699 v-for="asset in quoteAssetListFiltered" 700 > 701 {{ asset.name }} 702 </option> 703 </select> 704 </div> 705 </div> 706 </div> 707 <div class="cdf-field__foot" v-if="getValidationError('price_in_quote')"> 708 <div class="cdf-field-hint">{{ getValidationError('price_in_quote') }}</div> 709 </div> 710 </div> 711 712 <div class="cdf-field" :class="{'cdf-field--has-error': getValidationError('tx_at')}"> 713 <div class="cdf-field__head"> 714 <label class="cdf-field-label"> {{ t('DATE_TIME') }} </label> 715 </div> 716 <div class="cdf-field__body"> 717 <datetime-picker :model-value="tx.ts" @update:model-value="updateTxTs"></datetime-picker> 718 </div> 719 <div class="cdf-field__foot" v-if="getValidationError('tx_at')"> 720 <div class="cdf-field-hint">{{ getValidationError('tx_at') }}</div> 721 </div> 722 </div> 723 724 <div class="cdf-field"> 725 <div class="cdf-field__head"> 726 <label class="cdf-field-label"> {{ t('TOTAL') }} </label> 727 </div> 728 <div class="cdf-field__body"> 729 <div class="cdf-field-input"> 730 <div></div> 731 <input 732 class="cdf-field-input__el" 733 v-model="tx.total" 734 @input="onInputTxTotal" 735 type="number" 736 @keydown="onKeyDown" 737 placeholder="0" 738 /> 739 740 <div class="cdf-field-input__right"> 741 {{ quoteAssetList[quoteAsset].name }} 742 </div> 743 </div> 744 </div> 745 </div> 746 <div v-if="tx.type == 0 && hasQuoteOnBalance"> 747 <label style="cursor: pointer"> 748 <input 749 type="checkbox" 750 v-model="tx.related" 751 :disabled="transaction ? !tx.relatedAllows : false" 752 /> 753 {{ t('PAY_FROM_BALANCE', {name: tx.quote_asset.name, amount: hasQuoteOnBalance}) }} 754 </label> 755 </div> 756 <div v-if="tx.type == 1"> 757 <label style="cursor: pointer"> 758 <input 759 type="checkbox" 760 v-model="tx.related" 761 :disabled="transaction ? !tx.relatedAllows : false" 762 /> 763 {{ t('CREDIT_TO_BALANCE', {name: tx.quote_asset.name}) }}
763<template v-if="hasQuoteOnBalance"> ({{ hasQuoteOnBalance }})</template> 764 </label> 765 </div> 766 <div v-if="getValidationError('_')" class="pf-error-alert"> 767 <ul> 768 <li>{{ getValidationError('_') }}</li> 769 </ul> 770 </div> 771 </div> 772 <!-- .cdf-modal-body --> 773 <div class="cdf-modal-footer"> 774 <button 775 class="cdf-btn cdf-btn--100w cdf-btn--prim" 776 @click="handleSubmit" 777 > 778 <template v-if="transaction"> {{ t('EDIT_TRANSACTION') }} </template> 779 <template v-if="!transaction"> {{ t('ADD_TRANSACTION') }} </template> 780 </button> 781 </div> 782 <!-- .cdf-modal-footer --> 783 </div> 784 </div> 785 <!-- .cdf-modal-dialog --> 786 </div> 787 <!-- .cdf-modal --> 788 `};function B0(t,e){const n=window._portfolioTranslations||{};let i=t in n?n[t]:t;return e&&Object.keys(e).forEach(t=>{i=i.replace(new RegExp(`\\{${t}\\}`,"g"),e[t])}),i}var z0={props:["show","portfolioId"],data:()=>({stage:"upload",csvText:null,fileName:null,isDragOver:!1,analyzed:null,importedCount:0,error:null,keydownHandler:null}),computed:{templateUrl:()=>"/en/api/portfolio-tx/import-template",errorRowsCount(){return this.analyzed?this.analyzed.rows.filter(t=>t.errors&&t.errors.length>0).length:0},warningRowsCount(){return this.analyzed?this.analyzed.rows.filter(t=>t.warnings&&t.warnings.length>0).length:0},canCommit(){return this.analyzed&&!this.analyzed.has_errors&&!this.analyzed.has_warnings}},watch:{show(t){t||this.reset()}},mounted(){this.keydownHandler=(t=>{"Escape"===t.key&&this.show&&this.onClose()}),document.addEventListener("keydown",this.keydownHandler)},beforeUnmount(){this.keydownHandler&&document.removeEventListener("keydown",this.keydownHandler)},methods:{reset(){this.stage="upload",this.csvText=null,this.fileName=null,this.isDragOver=!1,this.analyzed=null,this.importedCount=0,this.error=null},onClose(){this.$emit("on-close")},async onExport(){this.error=null;try{const t=await function({portfolio_id:t}){return fetch(`/en/api/portfolio-tx/export?portfolio_id=${t}`,{method:"GET",headers:{"X-Guest-Token":w0()}})}({portfolio_id:this.portfolioId});if(t.status>=400)return void(this.error="Failed to export");const e=await t.blob(),n=URL.createObjectURL(e),i=document.createElement("a");i.href=n,i.download=`portfolio_${this.portfolioId}.csv`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(n)}catch(t){this.error=`${t}`}},onPickFile(){this.$refs.fileInput&&this.$refs.fileInput.click()},onFileSelect(t){const e=t.target.files&&t.target.files[0];e&&this.readFile(e)},onDrop(t){this.isDragOver=!1;const e=t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files[0];e&&this.readFile(e)},readFile(t){this.error=null,this.fileName=t.name;const e=new FileReader;e.onload=(t=>{this.csvText=String(t.target.result||""),this.requestPreview()}),e.onerror=(()=>{this.error=B0("ERR_READ_FILE")||"Failed to read file"}),e.readAsText(t)},async requestPreview(){this.stage="importing";try{const t=await function({portfolio_id:t,csv:e}){return fetch(`/en/api/portfolio-tx/import?portfolio_id=${t}&dry_run=1`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/csv","X-Guest-Token":w0()},body:e})}({portfolio_id:this.portfolioId,csv:this.csvText});if(t.status>=400){let e="Failed to parse CSV";try{const n=await t.json();n&&n.message&&(e=n.message)}catch(t){}return this.error=e,void(this.stage="upload")}const e=await t.json();this.analyzed=e,this.stage="preview"}catch(t){this.error=`${t}`,this.stage="upload"}},backToUpload(){this.csvText=null,this.fileName=null,this.analyzed=null,this.error=null,this.stage="upload"},async onCommit(){if(this.canCommit){this.stage="importing";try{const t=await function({portfolio_id:t,csv:e}){return fetch(`/en/api/portfolio-tx/import?portfolio_id=${t}&dry_run=0`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/csv","X-Guest-Token":w0()},body:e})}({portfolio_id:this.portfolioId,csv:this.csvText});if(t.status>=400){let e="Failed to import";try{const n=await t.json();n&&n.message&&(e=n.message)}catch(t){}return this.error=e,void(this.stage="preview")}const e=await t.json();this.importedCount=e.imported||0,this.stage="done"}catch(t){this.error=`${t}`,this.stage="preview"}}},onDoneClose(){this.$emit("on-create",!0),this.$emit("on-close")},typeLabel:t=>0===t?B0("BUY"):1===t?B0("SELL"):"",fmt:function(t){if(null==t)return"";const e=Number(t);return isFinite(e)?Math.abs(e)>
788=1?e.toLocaleString("en-US",{maximumFractionDigits:2}):e.toFixed(8).replace(/0+$/,"").replace(/\.$/,""):""},fmtDate:function(t){if(!t)return"";const e=new Date(1e3*t);if(isNaN(e.getTime()))return"";const n=t=>String(t).padStart(2,"0");return`${e.getFullYear()}-${n(e.getMonth()+1)}-${n(e.getDate())} ${n(e.getHours())}:${n(e.getMinutes())}`}},template:String.raw` 789 <div 790 class="cdf-modal cdf-modal--small-on-mobile" 791 :class="{'cdf-modal--show': show}" 792 > 793 <div 794 class="cdf-modal-dialog" 795 @mousedown.self="onClose" 796 > 797 <div class="cdf-modal-content"> 798 <div class="cdf-modal-header"> 799 <div class="cdf-modal-header__left"> 800 <div class="cdf-modal-title">{{ t('IMPORT_TRANSACTIONS') }}</div> 801 </div> 802 <div class="cdf-modal-header__right"> 803 <button class="cdf-modal-close-btn" type="button" @click="onClose"> 804 <svg class="icon"><use xlink:href="#close"></use></svg> 805 </button> 806 </div> 807 </div> 808 <div class="cdf-modal-body"> 809 <!-- Stage: upload --> 810 <div v-if="stage === 'upload'"> 811 <div 812 class="pf-csv-dropzone" 813 :class="{'pf-csv-dropzone--over': isDragOver}" 814 @dragover.prevent="isDragOver = true" 815 @dragleave.prevent="isDragOver = false" 816 @drop.prevent="onDrop" 817 @click="onPickFile" 818 role="button" 819 tabindex="0" 820 > 821 <div class="pf-csv-dropzone__icon"> 822 <svg style="width:42px;height:42px;"><use xlink:href="#plus-sign"></use></svg> 823 </div> 824 <div class="pf-csv-dropzone__text">{{ t('DROP_CSV_HERE') }}</div> 825 <input 826 ref="fileInput" 827 type="file" 828 accept=".csv,text/csv" 829 @change="onFileSelect" 830 style="display:none;" 831 /> 832 </div> 833 <div style="margin-top: 16px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;"> 834 <a 835 :href="templateUrl" 836 class="cdf-btn" 837 download="portfolio_template.csv" 838 @click.stop 839 > 840 {{ t('DOWNLOAD_TEMPLATE') }} 841 </a> 842 <button class="cdf-btn" type="button" @click="onExport"> 843 {{ t('EXPORT_CSV') }} 844 </button> 845 </div> 846 <div v-if="error" class="cdf-error-banner" style="margin-top: 12px;"> 847 {{ error }} 848 </div> 849 </div> 850 851 <!-- Stage: preview --> 852 <div v-else-if="stage === 'preview'"> 853 <div style="margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;"> 854 <div> 855 <strong>{{ fileName }}</strong> · 856 {{ analyzed.rows.length }} {{ t('TRANSACTIONS') }} 857 </div> 858 <button class="cdf-btn cdf-btn--small" type="button" @click="backToUpload"> 859 {{ t('UPLOAD_ANOTHER') }} 860 </button> 861 </div> 862 <div 863 v-if="analyzed.has_errors" 864 class="cdf-error-banner" 865 style="margin-bottom: 8px;" 866 > 867 {{ t('IMPORT_HAS_ERRORS', {count: errorRowsCount}) }} 868 </div> 869 <div 870 v-if="analyzed.has_warnings" 871 class="pf-import-warn-banner" 872 style="margin-bottom: 8px;" 873 > 874 {{ t('IMPORT_HAS_WARNINGS', {count: warningRowsCount}) }} 875 </div> 876 <div v-if="analyzed.has_errors || analyzed.has_warnings" style="margin-bottom: 8px; font-size: 12px; opacity: 0.7;"> 877 {{ t('IMPORT_FIX_AND_REUPLOAD') }} 878 </div> 879 <div class="pf-csv-preview"> 880 <table class="pf-tbl pf-csv-preview__tbl"> 881 <thead> 882 <tr> 883 <th>#</th> 884 <th>{{ t('DATE_TIME') }}</th> 885 <th>{{ t('TYPE') }}</th> 886 <th>{{ t('ASSET_COL') }}</th> 887 <th>{{ t('QUANTITY') }}</th> 888 <th>{{ t('PRICE') }}</th> 889 <th>{{ t('TOTAL') }}</th> 890 <th></th> 891 </tr> 892 </thead> 893 <tbody> 894 <tr 895 v-for="(row, idx) in analyzed.rows" 896 :key="idx" 897 :class="{ 898 'pf-csv-row--error': row.errors && row.errors.length > 0, 899 'pf-csv-row--warn': (!row.errors || row.errors.length === 0) && row.warnings && row.warnings.length > 0, 900 }" 901 > 902 <td>{{ row.line }}</td> 903 <td>
904 <span v-if="row.tx && row.tx.tx_at">{{ fmtDate(row.tx.tx_at) }}</span> 905 <span v-else style="opacity: 0.6;">{{ row.raw.date }}</span> 906 </td> 907 <td>{{ typeLabel(row.tx ? row.tx.type : null) || row.raw.type }}</td> 908 <td> 909 <span v-if="row.tx && row.tx.base_name">{{ row.tx.base_name }}</span> 910 <span v-else>{{ row.raw.base_asset }}</span> 911 <span style="opacity: 0.6;"> / </span> 912 <span v-if="row.tx && row.tx.quote_name">{{ row.tx.quote_name }}</span> 913 <span v-else>{{ row.raw.quote_asset }}</span> 914 </td> 915 <td>{{ fmt(row.tx ? row.tx.quantity : row.raw.quantity) }}</td> 916 <td>{{ fmt(row.tx ? row.tx.price_in_quote : row.raw.price) }}</td> 917 <td> 918 <span v-if="row.tx && row.tx.quantity && row.tx.price_in_quote"> 919 {{ fmt(row.tx.quantity * row.tx.price_in_quote) }} 920 </span> 921 </td> 922 <td> 923 <div v-for="(err, ei) in row.errors" :key="'e'+ei" style="color: #d33; font-size: 11px;"> 924 {{ err }} 925 </div> 926 <div v-for="(w, wi) in row.warnings" :key="'w'+wi" style="color: #c80; font-size: 11px;"> 927 {{ w }} 928 </div> 929 </td> 930 </tr> 931 </tbody> 932 </table> 933 </div> 934 <div v-if="error" class="cdf-error-banner" style="margin-top: 8px;"> 935 {{ error }} 936 </div> 937 </div> 938 939 <!-- Stage: importing --> 940 <div v-else-if="stage === 'importing'" style="display: flex; justify-content: center; padding: 30px 0;"> 941 <div class="lowloader"></div> 942 </div> 943 944 <!-- Stage: done --> 945 <div v-else-if="stage === 'done'" style="text-align: center; padding: 20px 0;"> 946 <div style="font-size: 18px; margin-bottom: 8px;"> 947 {{ t('IMPORT_DONE', {count: importedCount}) }} 948 </div> 949 </div> 950 </div> 951 <div class="cdf-modal-footer"> 952 <div v-if="stage === 'upload'" class="cdf-grid cdf-grid--cols-1"> 953 <button class="cdf-btn" type="button" @click="onClose"> 954 {{ t('CANCEL') }} 955 </button> 956 </div> 957 <div v-else-if="stage === 'preview'" class="cdf-grid cdf-grid--cols-2"> 958 <button 959 class="cdf-btn cdf-btn--prim" 960 type="button" 961 @click="onCommit" 962 :disabled="!canCommit" 963 > 964 {{ t('IMPORT_BTN') }} 965 </button> 966 <button class="cdf-btn" type="button" @click="onClose"> 967 {{ t('CANCEL') }} 968 </button> 969 </div> 970 <div v-else-if="stage === 'done'" class="cdf-grid cdf-grid--cols-1"> 971 <button class="cdf-btn cdf-btn--prim" type="button" @click="onDoneClose"> 972 {{ t('CLOSE') }} 973 </button> 974 </div> 975 </div> 976 </div> 977 </div> 978 </div> 979 `};var V0={props:["show"],data:()=>({}),methods:{onClose(){this.$emit("onClose")}},template:String.raw` 980 <div class="cdf-modal cdf-modal--small-on-mobile" :class="{'cdf-modal--show': show}" @mousedown.self="onClose"> 981 <div class="cdf-modal-dialog cdf-modal-dialog--sm" @mousedown.self="onClose"> 982 <div class="cdf-modal-content"> 983 <div class="cdf-modal-header"> 984 <div class="cdf-modal-header__left"> 985 <div class="cdf-modal-title">{{ t('MANAGE_PORTFOLIO') }}</div> 986 </div> 987 <div class="cdf-modal-header__right"> 988 <button class="cdf-modal-close-btn" type="button" @click="onClose"> 989 <svg class="icon"> 990 <use xlink:href="#close"></use> 991 </svg> 992 </button> 993 </div> 994 </div><!-- .cdf-modal-header --> 995 <div class="cdf-modal-body"> 996 <div class="cdf-modal-section"> 997 <label class="cdf-switch">
998 <span class="cdf-switch__label">{{ t('BALANCE_CHART') }}</span> 999 <input class="cdf-switch__input" type="checkbox"> 1000 <span class="cdf-switch__slider"></span> 1001 </label> 1002 </div> 1003 <div class="cdf-modal-section"> 1004 <label class="cdf-switch"> 1005 <span class="cdf-switch__label">{{ t('PERFORMANCE') }}</span> 1006 <input class="cdf-switch__input" type="checkbox"> 1007 <span class="cdf-switch__slider"></span> 1008 </label> 1009 </div> 1010 <div class="cdf-modal-section"> 1011 <label class="cdf-switch"> 1012 <span class="cdf-switch__label">{{ t('HOLDINGS_SHARE_CHART') }}</span> 1013 <input class="cdf-switch__input" type="checkbox"> 1014 <span class="cdf-switch__slider"></span> 1015 </label> 1016 </div> 1017 <div class="cdf-modal-section"> 1018 <label class="cdf-switch"> 1019 <span class="cdf-switch__label">{{ t('UPCOMING_EVENTS') }}</span> 1020 <input class="cdf-switch__input" type="checkbox"> 1021 <span class="cdf-switch__slider"></span> 1022 </label> 1023 </div> 1024 <div class="cdf-modal-section"> 1025 <label class="cdf-switch"> 1026 <span class="cdf-switch__label">{{ t('NOTES') }}</span> 1027 <input class="cdf-switch__input" type="checkbox"> 1028 <span class="cdf-switch__slider"></span> 1029 </label> 1030 </div> 1031 <div class="cdf-modal-section"> 1032 <label class="cdf-switch"> 1033 <span class="cdf-switch__label">{{ t('INCLUDE_IN_TOTAL') }}</span> 1034 <input class="cdf-switch__input" type="checkbox"> 1035 <span class="cdf-switch__slider"></span> 1036 </label> 1037 </div> 1038 <div class="cdf-modal-section-separator"></div> 1039 <div class="cdf-modal-section"> 1040 <ul class="pf-menu"> 1041 <li class="pf-menu-item"> 1042 <span class="pf-menu-item__icon"> 1043 <svg class="pf-menu-item__icon__svg"> 1044 <use xlink:href="#edit"></use> 1045 </svg> 1046 </span> 1047 <span class="pf-menu-item__label">{{ t('EDIT_PORTFOLIO') }}</span> 1048 </li> 1049 <li class="pf-menu-item"> 1050 <span class="pf-menu-item__icon"> 1051 <svg class="pf-menu-item__icon__svg"> 1052 <use xlink:href="#duplicate"></use> 1053 </svg> 1054 </span> 1055 <span class="pf-menu-item__label">{{ t('DUPLICATE_PORTFOLIO') }}</span> 1056 </li> 1057 <li class="pf-menu-item"> 1058 <span class="pf-menu-item__icon"> 1059 <svg class="pf-menu-item__icon__svg"> 1060 <use xlink:href="#trash"></use> 1061 </svg> 1062 </span> 1063 <span class="pf-menu-item__label">{{ t('DELETE_PORTFOLIO') }}</span> 1064 </li> 1065 </ul> 1066 </div> 1067 </div><!-- .cdf-modal-body --> 1068 <div class="cdf-modal-footer" style="display:none;"> 1069 <!-- modal footer --> 1070 </div><!-- .cdf-modal-footer --> 1071 </div> 1072 </div> 1073 <!-- .cdf-modal-dialog --> 1074 </div> 1075 <!-- .cdf-modal --> 1076 `};var F0={props:["show","currentPortfolio","isGuest"],data:()=>({enable:!1,url:null}),watch:{show(){const t=this.currentPortfolio;this.enable=!!t&&!!t.is_public,this.url=t?t.public_url:null}},methods:{onClose(){this.$emit("onClose")},async copyUrl(){try{await navigator.clipboard.writeText(this.currentPortfolio.public_url)}catch(t){console.error("Failed to copy text: ",t)}},async onChange(){const t=this.currentPortfolio;if(t){const e=await M0({id:t.id,is_public:+this.enable}),n=await e.json();this.url=n.public_url}}},template:String.raw` 1077 <div class="cdf-modal cdf-modal--small-on-mobile" :class="{'cdf-modal--show': show}" @mousedown.self="onClose"> 1078 <div class="cdf-modal-dialog cdf-modal-dialog--sm" @mousedown.self="onClose"> 1079 <div class="cdf-modal-content"> 1080 <div class="cdf-modal-header"> 1081 <div class="cdf-modal-header__left"> 1082 <div class="cdf-modal-title">{{ t('SHARE_PORTFOLIO') }}</div> 1083 </div> 1084 <div class="cdf-modal-header__right"> 1085 <button class="cdf-modal-close-btn" type="button" @click="onClose"> 1086 <svg class="icon"> 1087 <use xlink:href="#close"></use> 1088 </svg> 1089 </button> 1090 </div> 1091 </div><!-- .cdf-modal-header --> 1092 <div class="cdf-modal-body"> 1093 <div class="cdf-modal-section"> 1094 <div class="pf-hero-line"> 1095 <div class="pf-hero-line-left"> 1096 <div class="pf-hero-line-icon"> 1097 <svg class="pf-hero-line-icon__svg"> 1098 <use xlink:href="#share"></use> 1099 </svg> 1100 </div> 1101 </div> 1102 <div class="pf-hero-line-content"> 1103 <div class="pf-hero-line-title">{{ t('SHARE_PORTFOLIO') }}</div> 1104 <div class="pf-hero-line-description"> 1105 {{ t('SHARE_PORTFOLIO_DESC') }} 1106 </div> 1107 </div> 1108 <div class="pf-hero-line-action"> 1109 <label class="cdf-switch"> 1110 <input 1111 class="cdf-switch__input" 1112 type="checkbox" 1113 v-model="enable" 1114 :disabled="isGuest" 1115 @change="onChange" 1116 />
1117 <span class="cdf-switch__slider"></span> 1118 </label> 1119 </div> 1120 </div> 1121 <div v-if="isGuest" style="color: tomato; padding: 7px; border: 1px solid tomato; border-radius: 6px; margin-top: 6px;"> 1122 {{ t('LOGIN_TO_SHARE') }} 1123 </div> 1124 <div class="cdf-modal-section" v-if="enable"> 1125 <div style="display: grid; grid-template-columns: 1fr auto; align-items: flex-end; grid-gap: 6px;"> 1126 <div 1127 class="cdf-field" 1128 style="margin-bottom: 0;" 1129 > 1130 <div class="cdf-field__head"> 1131 <label class="cdf-field-label">URL</label> 1132 </div> 1133 <div class="cdf-field__body"> 1134 <div class="cdf-field-input"> 1135 <div></div> 1136 <input 1137 class="cdf-field-input__el" 1138 type="text" 1139 readonly 1140 :value="url" 1141 :placeholder="t('PORTFOLIO_NAME')" 1142 /> 1143 <div class="cdf-field-input__right"></div> 1144 </div> 1145 </div> 1146 </div> 1147 <div> 1148 <button class="cdf-btn cdf-btn--primary" type="button" @click="copyUrl"> 1149 {{ t('COPY') }} 1150 </button> 1151 </div> 1152 </div> 1153 </div> 1154 </div><!-- .cdf-modal-body --> 1155 <div class="cdf-modal-footer" style="display:none;"> 1156 <!-- modal footer --> 1157 </div><!-- .cdf-modal-footer --> 1158 </div> 1159 </div> 1160 <!-- .cdf-modal-dialog --> 1161 </div> 1162 </div> 1163 <!-- .cdf-modal --> 1164 `};function H0(t,e){let n;return function(...i){var r=this;i=arguments;clearTimeout(n),n=setTimeout(()=>t.apply(r,i),e)}}const G0=String.raw,W0=window._portfolioStocksEnabled;var U0={data:()=>({query:"",hasStock:W0,list:[],type:1,loading:!1,_abortCtrl:null}),watch:{query(){this.debouncedFetchList()},type(){this.list=[],this.loading=!0,this.debouncedFetchList()}},created(){this.debouncedFetchList=H0(this.fetchList,500)},mounted(){this.fetchList()},methods:{onClose(){this.$emit("onClose")},onSelect(t){this.$emit("onSelect",t)},async fetchList(){this._abortCtrl&&this._abortCtrl.abort(),this._abortCtrl=new AbortController,this.loading=!0;try{const t=await fetch(`/en/api/portfolio/assets?q=${this.query}&type=${this.type}`,{signal:this._abortCtrl.signal}),e=await t.json();this.list=e}catch(t){if("AbortError"!==t.name)throw t}finally{this._abortCtrl.signal.aborted||(this.loading=!1)}}},template:G0` 1165 <div class="cdf-modal-content"> 1166 <div class="cdf-modal-header"> 1167 <div class="cdf-modal-header__left"> 1168 <div class="cdf-modal-title">{{ t('ADD_TRANSACTION') }}</div> 1169 </div> 1170 <div class="cdf-modal-header__right"> 1171 <button class="cdf-modal-close-btn" type="button" @click="onClose"> 1172 <svg class="icon"> 1173 <use xlink:href="#close"></use> 1174 </svg> 1175 </button> 1176 </div> 1177 </div> 1178 <!-- .cdf-modal-header --> 1179 <div class="cdf-modal-body"> 1180 <div class="cdf-modal-section"> 1181 <div class="cdf-radio" v-if="hasStock"> 1182 <div class="cdf-radio-item"> 1183 <input 1184 class="cdf-radio-item__input" 1185 id="assetTypeCrypto" 1186 type="radio" 1187 name="assetType" 1188 v-model="type" 1189 :value="1" 1190 selected 1191 /> 1192 <label class="cdf-radio-item__label" for="assetTypeCrypto"> 1193 {{ t('CRYPTO') }} 1194 </label> 1195 </div> 1196 <div class="cdf-radio-item"> 1197 <input 1198 class="cdf-radio-item__input" 1199 id="assetTypeStock" 1200 type="radio" 1201 name="assetType" 1202 v-model="type" 1203 :value="2" 1204 /> 1205 <label class="cdf-radio-item__label" for="assetTypeStock"> 1206 {{ t('STOCK') }} 1207 </label> 1208 </div> 1209 </div> 1210 </div> 1211 <div class="cdf-modal-section"> 1212 <div class="cdf-field"> 1213 <div class="cdf-field__body"> 1214 <div class="cdf-field-input"> 1215 <div 1216 class="cdf-field-input__icon" 1217 :class="{'cdf-field-input__icon--spin': loading}" 1218 > 1219 <svg class="icon"> 1220 <use v-if="!loading" xlink:href="#search"></use> 1221 <use v-if="loading" xlink:href="#loading"></use> 1222 </svg> 1223 </div> 1224 <input 1225 class="cdf-field-input__el" 1226 v-model="query" 1227 type="text" 1228 :placeholder="t('SEARCH_ASSET')" 1229 /> 1230 </div> 1231 </div> 1232 </div> 1233 <ul class="pf-asset-list" v-if="list.length > 0"> 1234 <li 1235 class="pf-asset-list-item" 1236 v-for="(asset, index) in list" 1237 @click="onSelect(asset)" 1238 > 1239 <template v-if="asset.img === '/uploads/quote/placeholder.svg' && 'country' in asset">
1240 <span class="pf-asset-list-item__flag "> 1241 <span class="f16"><span class="flag" :class="asset.country"></span></span> 1242 </span> 1243 </template> 1244 <template v-else> 1245 <img 1246 v-if="asset.img" 1247 class="pf-asset-list-item__img" 1248 :src="'https://coindataflow.com/' + asset.img" 1249 alt="" 1250 /> 1251 </template> 1252 <span class="pf-asset-list-item__title"> 1253 <span class="pf-asset-list-item__symbol" 1254 >{{ asset.symbol }}</span 1255 > 1256 <span class="pf-asset-list-item__name">{{ asset.name }}</span> 1257 </span> 1258 </li> 1259 </ul> 1260 <div 1261 class="pf-asset-list-not-found" 1262 v-if="list.length === 0" 1263 > 1264 <template v-if="!loading"> 1265 <div class="pf-asset-list-not-found__icon"> 1266 <svg class="pf-asset-list-not-found__svg"> 1267 <use xlink:href="#not-found"></use> 1268 </svg> 1269 </div> 1270 <div class="pf-asset-list-not-found__text">{{ t('NO_RESULTS') }}</div> 1271 </template> 1272 </div> 1273 </div> 1274 </div> 1275 </div> 1276 `},q0=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Y0={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(t){return"undefined"!=typeof console&&console.warn(t)},getWeek:function(t){var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var n=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},$0={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},X0=$0,Z0=function(t,e){return void 0===e&&(e=2),("000"+t).slice(-1*e)},K0=function(t){return!0===t?1:0};function J0(t,e){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){return t.apply(i,r)},e)}}var Q0=function(t){return t instanceof Array?t:[t]};function t1(t,e,n){if(!0===n)return t.classList.add(e);t.classList.remove(e)}function e1(t,e,n){var i=window.document.createElement(t);return e=e||"",n=n||"",i.className=e,void 0!==n&&(i.textContent=n),i}function n1(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function i1(t,e){var n=e1("div","numInputWrapper"),i=e1("input","numInput "+t),r=e1("span","arrowUp"),o=e1("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==e)for(var a in e)i.setAttribute(a,e[a]);return n.appendChild(i),n.appendChild(r),n.appendChild(o),n}function r1(t){try{return"function"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}var o1=function(){},a1=function(t,e,n){return n.months[e?"shorthand":"longhand"][t]},s1={D:o1,F:function(t,e,n){t.setMonth(n.months.longhand.indexOf(e))},G:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,n){t.setHours(t.getHours()%12+12*K0(new RegExp(n.amPM[1],"i").test(e)))},M:function(t,e,n){t.setMonth(n.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(1e3*parseFloat(e))},W:function(t,e,n){var i=parseInt(e),r=new Date(t.getFullYear(),0,2+7*(i-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek),r},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:o1,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:o1,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}},l1={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"
1276(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},c1={Z:function(t){return t.toISOString()},D:function(t,e,n){return e.weekdays.shorthand[c1.w(t,e,n)]},F:function(t,e,n){return a1(c1.n(t,e,n)-1,!1,e)},G:function(t,e,n){return Z0(c1.h(t,e,n))},H:function(t){return Z0(t.getHours())},J:function(t,e){return void 0!==e.ordinal?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[K0(t.getHours()>11)]},M:function(t,e){return a1(t.getMonth(),!0,e)},S:function(t){return Z0(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,n){return n.getWeek(t)},Y:function(t){return Z0(t.getFullYear(),4)},d:function(t){return Z0(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return Z0(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return Z0(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}},u1=function(t){var e=t.config,n=void 0===e?Y0:e,i=t.l10n,r=void 0===i?$0:i,o=t.isMobile,a=void 0!==o&&o;return function(t,e,i){var o=i||r;return void 0===n.formatDate||a?e.split("").map(function(e,i,r){return c1[e]&&"\\"!==r[i-1]?c1[e](t,o,n):"\\"!==e?e:""}).join(""):n.formatDate(t,e,o)}},d1=function(t){var e=t.config,n=void 0===e?Y0:e,i=t.l10n,r=void 0===i?$0:i;return function(t,e,i,o){if(0===t||t){var a,s=o||r,l=t;if(t instanceof Date)a=new Date(t.getTime());else if("string"!=typeof t&&void 0!==t.toFixed)a=new Date(t);else if("string"==typeof t){var c=e||(n||Y0).dateFormat,u=String(t).trim();if("today"===u)a=new Date,i=!0;else if(n&&n.parseDate)a=n.parseDate(t,c);else if(/Z$/.test(u)||/GMT$/.test(u))a=new Date(t);else{for(var d=void 0,h=[],p=0,f=0,g="";p<c.length;p++){var m=c[p],v="\\"===m,y="\\"===c[p-1]||v;if(l1[m]&&!y){g+=l1[m];var b=new RegExp(g).exec(t);b&&(d=!0)&&h["Y"!==m?"push":"unshift"]({fn:s1[m],val:b[++f]})}else v||(g+=".")}a=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),h.forEach(function(t){var e=t.fn,n=t.val;return a=e(a,n,s)||a}),a=d?a:void 0}}if(a instanceof Date&&!isNaN(a.getTime()))return!0===i&&a.setHours(0,0,0,0),a;n.errorHandler(new Error("Invalid date provided: "+l))}}};function h1(t,e,n){return void 0===n&&(n=!0),!1!==n?new Date(t.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):t.getTime()-e.getTime()}var p1=function(t,e,n){return t>Math.min(e,n)&&t<Math.max(e,n)},f1=function(t,e,n){return 3600*t+60*e+n},g1=function(t){var e=Math.floor(t/3600),n=(t-3600*e)/60;return[e,n,t-3600*e-60*n]},m1={DAY:864e5};function v1(t){var e=t.defaultHour,n=t.defaultMinute,i=t.defaultSeconds;if(void 0!==t.minDate){var r=t.minDate.getHours(),o=t.minDate.getMinutes(),a=t.minDate.getSeconds();e<r&&(e=r),e===r&&n<o&&(n=o),e===r&&n===o&&i<a&&(i=t.minDate.getSeconds())}if(void 0!==t.maxDate){var s=t.maxDate.getHours(),l=t.maxDate.getMinutes();(e=Math.min(e,s))===s&&(n=Math.min(l,n)),e===s&&n===l&&(i=t.maxDate.getSeconds())}return{hours:e,minutes:n,seconds:i}}n(24);var y1=function(){return(y1=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},b1=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i},_1=300;function x1(t,e){var n={config:y1(y1({},Y0),S1.defaultConfig),l10n:X0};function i(){var t;return(null===(t=n.calendarContainer)||void 0===t?void 0:t.getRootNode()).activeElement||document.activeElement}function r(t){return t.bind(n)}function o(){var t=n.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),void 0!==n.daysContainer){var e=(n.days.offsetWidth+1)*t.showMonths;n.daysContainer.style.width=e+"px",n.calendarContainer.style.width=e+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}})}function a(t){if(0===n.selectedDates.length){var e=void 0===n.config.minDate||h1(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),i=v1(n.config);e.setHours(i.hours,i.minutes,i.seconds,e.getMilliseconds()),n.selectedDates=[e],n.latestSelectedDateObj=e}void 0!==t&&"blur"!==t.type&&function(t){t.preventDefault();var e="keydown"===t.type,i=r1(t),r=i;void 0!==n.amPM&&i===n.amPM&&(n.amPM.textContent=n.l10n.amPM[K0(n.amPM.textContent===n.l10n.amPM[0])]);var o=parseFloat(r.getAttribute("min")),a=parseFloat(r.getAttribute("max")),s=parseFloat(r.getAttribute("step")),l=parseInt(r.value,10),c=t.delta||(e?38===t.which?1:-1:0),u=l+s*c;if(void 0!==r.value&&2===r.value.length){var d=r===n.hourElement,h=r===n.minuteElement;u<o?(u=a+u+K0(!d)+(K0(d)&&K0(!n.amPM)),h&&g(void 0,-1,n.hourElement)):u>a&&(u=r===n.hourElement?u-a-K0(!n.amPM):o,h&&g(void 0,1,n.hourElement)),n.amPM&&d&&(1===s?u+l===23:Math.abs(u-l)>s)&&(n.amPM.textContent=n.l10n.amPM[K0(n.amPM.textContent===n.l10n.amPM[0])]),r.value=Z0(u)}}(t);var r=n._input.value;s(),Q(),n._input.value!==r&&n._debouncedChange()}function s(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var t,e,i=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(n.minuteElement.value,10)||0)%60,o=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(t=i,e=n.amPM.textContent,i=t%12+12*K0(e===n.l10n.amPM[1]));var a=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===h1(n.latestSelectedDateObj,n.config.minDate,!0),s=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===h1(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var l=f1(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),u=f1(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),d=f1(i,r,o);if(d>u&&d<l){var h=g1(l);i=h[0],r=h[1],o=h[2]}}else{if(s){var p=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;(i=Math.min(i,p.getHours()))===p.getHours()&&(r=Math.min(r,p.getMinutes())),r===p.getMinutes()&&(o=Math.min(o,p.getSeconds()))}if(a){var f=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;(i=Math.max(i,f.getHours()))===f.getHours()&&r<f.getMinutes()&&(r=f.getMinutes()),r===f.getMinutes()&&(o=Math.max(o,f.getSeconds()))}}c(i,r,o)}}function l(t){var e=t||n.latestSelectedDateObj;e&&e instanceof Date&&c(e.getHours(),e.getMinutes(),e.getSeconds())}function c(t,e,i){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(t%24,e,i||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=Z0(n.config.time_24hr?t:(12+t)%12+12*K0(t%12==0)),n.minuteElement.value=Z0(e),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[K0(t>=12)]),void 0!==n.secondElement&&(n.secondElement.value=Z0(i)))}function u(t){var e=r1(t),n=parseInt(e.value)+(t.delta||0);(n/1e3>1||"Enter"===t.key&&!/[^\d]/.test(n.toString()))&&A(n)}function d(t,e,i,r){return e instanceof Array?e.forEach(function(e){return d(t,e,i,r)}):t instanceof Array?t.forEach(function(t){return d(t,e,i,r)}):(t.addEventListener(e,i,r),void n._handlers.push({remove:function(){return t.removeEventListener(e,i,r)}}))}function h(){$("onChange")}function p(t,e){var i=void 0!==t?n.parseDate(t):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),r=n.currentYear,o=n.currentMonth;try{void 0!==i&&(n.currentYear=i.getFullYear(),n.currentMonth=i.getMonth())}catch(t){t.message="Invalid date supplied: "+i,n.config.errorHandler(t)}e&&n.currentYear!==r&&($("onYearChange"),w()),!e||n.currentYear===r&&n.currentMonth===o||$("onMonthChange"),n.redraw()}function f(t){var e=r1(t);~e.className.indexOf("arrow")&&g(t,e.classList.contains("arrowUp")?1:-1)}function g(t,e,n){var i=t&&r1(t),r=n||i&&i.parentNode&&i.parentNode.firstChild,o=X("increment");o.delta=e,r&&r.dispatchEvent(o)}function m(t,e,i,r){var o=D(e,!0),a=e1("span",t,e.getDate().toString());return a.dateObj=e,a.$i=r,a.setAttribute("aria-label",n.formatDate(e,n.config.ariaDateFormat)),-1===t.indexOf("hidden")&&0===h1(e,n.now)&&(n.todayDateElem=a,a.classList.add("today"),a.setAttribute("aria-current","date")),o?(a.tabIndex=-1,Z(e)&&(a.classList.add("selected"),n.selectedDateElem=a,"range"===n.config.mode&&(t1(a,"startRange",n.selectedDates[0]&&0===h1(e,n.selectedDates[0],!0)),t1(a,"endRange",n.selectedDates[1]&&0===h1(e,n.selectedDates[1],!0)),"nextMonthDay"===t&&a.classList.add("inRange")))):a.classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(t){return!("range"!==n.config.mode||n.selectedDates.length<2)&&h1(t,n.selectedDates[0])>=0&&h1(t,n.selectedDates[1])<=0}(e)&&!Z(e)&&a.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==t&&r%7==6&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(e)+"</span>"),$("onDayCreate",a),a}function v(t){t.focus(),"range"===n.config.mode&&E(t)}function y(t){for(var e=t>0?0:n.config.showMonths-1,i=t>0?n.config.showMonths:-1,r=e;r!=i;r+=t)for(var o=n.daysContainer.children[r],a=t>0?0:o.children.length-1,s=t>0?o.children.length:-1,l=a;l!=s;l+=t){var c=o.children[l];if(-1===c.className.indexOf("hidden")&&D(c.dateObj))return c}}function b(t,e){var r=i(),o=L(r||document.body),a=void 0!==t?t:o?r:void 0!==n.selectedDateElem&&L(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&L(n.todayDateElem)?n.todayDateElem:y(e>0?1:-1);void 0===a?n._input.focus():o?function(t,e){for(var i=-1===t.className.indexOf("Month")?t.dateObj.getMonth():n.currentMonth,r=e>0?n.config.showMonths:-1,o=e>0?1:-1,a=i-n.currentMonth;a!=r;a+=o)for(var s=n.daysContainer.children[a],l=i-n.currentMonth===a?t.$i+e:e<0?s.children.length-1:0,c=s.
vendor: 5,705 bytes, line 1276
1276children.length,u=l;u>=0&&u<c&&u!=(e>0?c:-1);u+=o){var d=s.children[u];if(-1===d.className.indexOf("hidden")&&D(d.dateObj)&&Math.abs(t.$i-u)>=Math.abs(e))return v(d)}n.changeMonth(o),b(y(o),0)}(a,e):v(a)}function _(t,e){for(var i=(new Date(t,e,1).getDay()-n.l10n.firstDayOfWeek+7)%7,r=n.utils.getDaysInMonth((e-1+12)%12,t),o=n.utils.getDaysInMonth(e,t),a=window.document.createDocumentFragment(),s=n.config.showMonths>1,l=s?"prevMonthDay hidden":"prevMonthDay",c=s?"nextMonthDay hidden":"nextMonthDay",u=r+1-i,d=0;u<=r;u++,d++)a.appendChild(m("flatpickr-day "+l,new Date(t,e-1,u),0,d));for(u=1;u<=o;u++,d++)a.appendChild(m("flatpickr-day",new Date(t,e,u),0,d));for(var h=o+1;h<=42-i&&(1===n.config.showMonths||d%7!=0);h++,d++)a.appendChild(m("flatpickr-day "+c,new Date(t,e+1,h%o),0,d));var p=e1("div","dayContainer");return p.appendChild(a),p}function x(){if(void 0!==n.daysContainer){n1(n.daysContainer),n.weekNumbers&&n1(n.weekNumbers);for(var t=document.createDocumentFragment(),e=0;e<n.config.showMonths;e++){var i=new Date(n.currentYear,n.currentMonth,1);i.setMonth(n.currentMonth+e),t.appendChild(_(i.getFullYear(),i.getMonth()))}n.daysContainer.appendChild(t),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&E()}}function w(){if(!(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)){var t=function(t){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&t<n.config.minDate.getMonth())&&!(void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&t>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var e=0;e<12;e++)if(t(e)){var i=e1("option","flatpickr-monthDropdown-month");i.value=new Date(n.currentYear,e).getMonth().toString(),i.textContent=a1(e,n.config.shorthandCurrentMonth,n.l10n),i.tabIndex=-1,n.currentMonth===e&&(i.selected=!0),n.monthsDropdownContainer.appendChild(i)}}}function S(){var t,e=e1("div","flatpickr-month"),i=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?t=e1("span","cur-month"):(n.monthsDropdownContainer=e1("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),d(n.monthsDropdownContainer,"change",function(t){var e=r1(t),i=parseInt(e.value,10);n.changeMonth(i-n.currentMonth),$("onMonthChange")}),w(),t=n.monthsDropdownContainer);var r=i1("cur-year",{tabindex:"-1"}),o=r.getElementsByTagName("input")[0];o.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&o.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(o.setAttribute("max",n.config.maxDate.getFullYear().toString()),o.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var a=e1("div","flatpickr-current-month");return a.appendChild(t),a.appendChild(r),i.appendChild(a),e.appendChild(i),{container:e,yearElement:o,monthElement:t}}function O(){n1(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var t=n.config.showMonths;t--;){var e=S();n.yearElements.push(e.yearElement),n.monthElements.push(e.monthElement),n.monthNav.appendChild(e.container)}n.monthNav.appendChild(n.nextMonthNav)}function M(){n.weekdayContainer?n1(n.weekdayContainer):n.weekdayContainer=e1("div","flatpickr-weekdays");for(var t=n.config.showMonths;t--;){var e=e1("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(e)}return C(),n.weekdayContainer}function C(){if(n.weekdayContainer){var t=n.l10n.firstDayOfWeek,e=b1(n.l10n.weekdays.shorthand);t>0&&t<e.length&&(e=b1(e.splice(t,e.length),e.splice(0,t)));for(var i=n.config.showMonths;i--;)n.weekdayContainer.children[i].innerHTML="\n <span class='flatpickr-weekday'>\n "+e.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function I(t,e){void 0===e&&(e=!0);var i=e?t:t-n.currentMonth;i<0&&!0===n._hidePrevMonthArrow||i>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=i,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,$("onYearChange"),w()),x(),$("onMonthChange"),K())}function T(t){return n.calendarContainer.contains(t)}function k(t){if(n.isOpen&&!n.config.inline){var e=r1(t),i=T(e),r=!(e===n.input||e===n.altInput||n.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(n.input)||~t.path.indexOf(n.altInput)))&&!i&&!T(t.relatedTarget),o=!n.config.ignoredFocusElements.some(function(t){return t.contains(e)});r&&o&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&a(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function A(t){if(!(!t||n.config.minDate&&t<n.config.minDate.getFullYear()||n.config.maxDate&&t>n.config.maxDate.getFullYear())){var e=t,i=n.currentYear!==e;n.currentYear=e||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),i&&(n.redraw(),$("onYearChange"),w())}}function D(t,e){var i;void 0===e&&(e=!0);var r=n.parseDate(t,void 0,e);if(n.config.minDate&&r&&h1(r,n.config.minDate,void 0!==e?e:!n.minDateHasTime)<0||n.config.maxDate&&r&&h1(r,n.config.maxDate,void 0!==e?e:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;
vendor: 5,688 bytes, line 1276
1276if(void 0===r)return!1;for(var o=!!n.config.enable,a=null!==(i=n.config.enable)&&void 0!==i?i:n.config.disable,s=0,l=void 0;s<a.length;s++){if("function"==typeof(l=a[s])&&l(r))return o;if(l instanceof Date&&void 0!==r&&l.getTime()===r.getTime())return o;if("string"==typeof l){var c=n.parseDate(l,void 0,!0);return c&&c.getTime()===r.getTime()?o:!o}if("object"==typeof l&&void 0!==r&&l.from&&l.to&&r.getTime()>=l.from.getTime()&&r.getTime()<=l.to.getTime())return o}return!o}function L(t){return void 0!==n.daysContainer&&(-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(t))}function P(t){var e=t.target===n._input,i=n._input.value.trimEnd()!==J();!e||!i||t.relatedTarget&&T(t.relatedTarget)||n.setDate(n._input.value,!0,t.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function j(e){var r=r1(e),o=n.config.wrap?t.contains(r):r===n._input,l=n.config.allowInput,c=n.isOpen&&(!l||!o),u=n.config.inline&&o&&!l;if(13===e.keyCode&&o){if(l)return n.setDate(n._input.value,!0,r===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),r.blur();n.open()}else if(T(r)||c||u){var d=!!n.timeContainer&&n.timeContainer.contains(r);switch(e.keyCode){case 13:d?(e.preventDefault(),a(),H()):G(e);break;case 27:e.preventDefault(),H();break;case 8:case 46:o&&!n.config.allowInput&&(e.preventDefault(),n.clear());break;case 37:case 39:if(d||o)n.hourElement&&n.hourElement.focus();else{e.preventDefault();var h=i();if(void 0!==n.daysContainer&&(!1===l||h&&L(h))){var p=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),I(p),b(y(1),0)):b(void 0,p)}}break;case 38:case 40:e.preventDefault();var f=40===e.keyCode?1:-1;n.daysContainer&&void 0!==r.$i||r===n.input||r===n.altInput?e.ctrlKey?(e.stopPropagation(),A(n.currentYear-f),b(y(1),0)):d||b(void 0,7*f):r===n.currentYearElement?A(n.currentYear-f):n.config.enableTime&&(!d&&n.hourElement&&n.hourElement.focus(),a(e),n._debouncedChange());break;case 9:if(d){var g=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter(function(t){return t}),m=g.indexOf(r);if(-1!==m){var v=g[m+(e.shiftKey?-1:1)];e.preventDefault(),(v||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(r)&&e.shiftKey&&(e.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&r===n.amPM)switch(e.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],s(),Q();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],s(),Q()}(o||T(r))&&$("onKeyDown",e)}function E(t,e){if(void 0===e&&(e="flatpickr-day"),1===n.selectedDates.length&&(!t||t.classList.contains(e)&&!t.classList.contains("flatpickr-disabled"))){for(var i=t?t.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),r=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),o=Math.min(i,n.selectedDates[0].getTime()),a=Math.max(i,n.selectedDates[0].getTime()),s=!1,l=0,c=0,u=o;u<a;u+=m1.DAY)D(new Date(u),!0)||(s=s||u>o&&u<a,u<r&&(!l||u>l)?l=u:u>r&&(!c||u<c)&&(c=u));Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+"+n.config.showMonths+") > ."+e)).forEach(function(e){var o=e.dateObj.getTime(),a=l>0&&o<l||c>0&&o>c;if(a)return e.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach(function(t){e.classList.remove(t)});s&&!a||(["startRange","inRange","endRange","notAllowed"].forEach(function(t){e.classList.remove(t)}),void 0!==t&&(t.classList.add(i<=n.selectedDates[0].getTime()?"startRange":"endRange"),r<i&&o===r?e.classList.add("startRange"):r>i&&o===r&&e.classList.add("endRange"),o>=l&&(0===c||o<=c)&&p1(o,r,i)&&e.classList.add("inRange")))})}}function N(){!n.isOpen||n.config.static||n.config.inline||V()}function R(t){return function(e){var i=n.config["_"+t+"Date"]=n.parseDate(e,n.config.dateFormat),r=n.config["_"+("min"===t?"max":"min")+"Date"];void 0!==i&&(n["min"===t?"minDateHasTime":"maxDateHasTime"]=i.getHours()>0||i.getMinutes()>0||i.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter(function(t){return D(t)}),n.selectedDates.length||"min"!==t||l(i),Q()),n.daysContainer&&(F(),void 0!==i?n.currentYearElement[t]=i.getFullYear().toString():n.currentYearElement.removeAttribute(t),n.currentYearElement.disabled=!!r&&void 0!==i&&r.getFullYear()===i.getFullYear())}}function B(){return n.config.wrap?t.querySelector("[data-input]"):t}function z(){"object"!=typeof n.config.locale&&void 0===S1.l10ns[n.config.locale]&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=y1(y1({},S1.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?S1.l10ns[n.config.locale]:void 0),l1.D="("+n.l10n.weekdays.shorthand.join("|")+")",l1.l="("+n.l10n.weekdays.longhand.join("|")+")",l1.M="("+n.l10n.months.shorthand.join("|")+")",l1.F="("+n.l10n.months.longhand.join("|")+")",l1.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===y1(y1({},e),JSON.parse(JSON.stringify(t.dataset||{}))).time_24hr&&void 0===S1.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=u1(n),n.parseDate=d1({config:n.config,l10n:n.l10n})}function V(t){if("function"!=typeof n.config.position){if(void 0!==n.calendarContainer){$("onPreCalendarPosition");var e=t||n._positionElement,i=Array.prototype.reduce.call(n.calendarContainer.children,function(t,e){return t+e.offsetHeight},0),r=n.calendarContainer.offsetWidth,o=n.config.position.split(" "),a=o[0],s=o.length>1?o[1]:null,l=e.getBoundingClientRect(),c=window.innerHeight-l.bottom,u="above"===a||"below"!==a&&c<i&&l.to
vendor: 4,984 bytes, line 1276
1276p>i,d=window.pageYOffset+l.top+(u?-i-2:e.offsetHeight+2);if(t1(n.calendarContainer,"arrowTop",!u),t1(n.calendarContainer,"arrowBottom",u),!n.config.inline){var h=window.pageXOffset+l.left,p=!1,f=!1;"center"===s?(h-=(r-l.width)/2,p=!0):"right"===s&&(h-=r-l.width,f=!0),t1(n.calendarContainer,"arrowLeft",!p&&!f),t1(n.calendarContainer,"arrowCenter",p),t1(n.calendarContainer,"arrowRight",f);var g=window.document.body.offsetWidth-(window.pageXOffset+l.right),m=h+r>window.document.body.offsetWidth,v=g+r>window.document.body.offsetWidth;if(t1(n.calendarContainer,"rightMost",m),!n.config.static)if(n.calendarContainer.style.top=d+"px",m)if(v){var y=function(){for(var t=null,e=0;e<document.styleSheets.length;e++){var n=document.styleSheets[e];if(n.cssRules){try{n.cssRules}catch(t){continue}t=n;break}}return null!=t?t:(i=document.createElement("style"),document.head.appendChild(i),i.sheet);var i}();if(void 0===y)return;var b=window.document.body.offsetWidth,_=Math.max(0,b/2-r/2),x=y.cssRules.length,w="{left:"+l.left+"px;right:auto;}";t1(n.calendarContainer,"rightMost",!1),t1(n.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+w,x),n.calendarContainer.style.left=_+"px",n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=g+"px";else n.calendarContainer.style.left=h+"px",n.calendarContainer.style.right="auto"}}}else n.config.position(n,t)}function F(){n.config.noCalendar||n.isMobile||(w(),K(),x())}function H(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function G(t){t.preventDefault(),t.stopPropagation();var e=function t(e,n){return n(e)?e:e.parentNode?t(e.parentNode,n):void 0}(r1(t),function(t){return t.classList&&t.classList.contains("flatpickr-day")&&!t.classList.contains("flatpickr-disabled")&&!t.classList.contains("notAllowed")});if(void 0!==e){var i=e,r=n.latestSelectedDateObj=new Date(i.dateObj.getTime()),o=(r.getMonth()<n.currentMonth||r.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=i,"single"===n.config.mode)n.selectedDates=[r];else if("multiple"===n.config.mode){var a=Z(r);a?n.selectedDates.splice(parseInt(a),1):n.selectedDates.push(r)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=r,n.selectedDates.push(r),0!==h1(r,n.selectedDates[0],!0)&&n.selectedDates.sort(function(t,e){return t.getTime()-e.getTime()}));if(s(),o){var l=n.currentYear!==r.getFullYear();n.currentYear=r.getFullYear(),n.currentMonth=r.getMonth(),l&&($("onYearChange"),w()),$("onMonthChange")}if(K(),x(),Q(),o||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():v(i),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var c="single"===n.config.mode&&!n.config.enableTime,u="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(c||u)&&H()}h()}}n.parseDate=d1({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=d,n._setHoursFromDate=l,n._positionCalendar=V,n.changeMonth=I,n.changeYear=A,n.clear=function(t,e){void 0===t&&(t=!0);void 0===e&&(e=!0);n.input.value="",void 0!==n.altInput&&(n.altInput.value="");void 0!==n.mobileInput&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===e&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var i=v1(n.config),r=i.hours,o=i.minutes,a=i.seconds;c(r,o,a)}n.redraw(),t&&$("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active"));$("onClose")},n.onMouseOver=E,n._createElement=e1,n.createDay=m,n.destroy=function(){void 0!==n.config&&$("onDestroy");for(var t=n._handlers.length;t--;)n._handlers[t].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var e=n.calendarContainer.parentNode;if(e.lastChild&&e.removeChild(e.lastChild),e.parentNode){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","
1276isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(t){try{delete n[t]}catch(t){}})},n.isEnabled=D,n.jumpToDate=p,n.updateValue=Q,n.open=function(t,e){void 0===e&&(e=n._positionElement);if(!0===n.isMobile){if(t){t.preventDefault();var i=r1(t);i&&i.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void $("onOpen")}if(n._input.disabled||n.config.inline)return;var r=n.isOpen;n.isOpen=!0,r||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),$("onOpen"),V(e));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==t&&n.timeContainer.contains(t.relatedTarget)||setTimeout(function(){return n.hourElement.select()},50))},n.redraw=F,n.set=function(t,e){if(null!==t&&"object"==typeof t)for(var i in Object.assign(n.config,t),t)void 0!==W[i]&&W[i].forEach(function(t){return t()});else n.config[t]=e,void 0!==W[t]?W[t].forEach(function(t){return t()}):q0.indexOf(t)>-1&&(n.config[t]=Q0(e));n.redraw(),Q(!0)},n.setDate=function(t,e,i){void 0===e&&(e=!1);void 0===i&&(i=n.config.dateFormat);if(0!==t&&!t||t instanceof Array&&0===t.length)return n.clear(e);U(t,i),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),p(void 0,e),l(),0===n.selectedDates.length&&n.clear(!1);Q(e),e&&$("onChange")},n.toggle=function(t){if(!0===n.isOpen)return n.close();n.open(t)};var W={locale:[z,C],showMonths:[O,o,M],minDate:[p],maxDate:[p],positionElement:[Y],clickOpens:[function(){!0===n.config.clickOpens?(d(n._input,"focus",n.open),d(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function U(t,e){var i=[];if(t instanceof Array)i=t.map(function(t){return n.parseDate(t,e)});else if(t instanceof Date||"number"==typeof t)i=[n.parseDate(t,e)];else if("string"==typeof t)switch(n.config.mode){case"single":case"time":i=[n.parseDate(t,e)];break;case"multiple":i=t.split(n.config.conjunction).map(function(t){return n.parseDate(t,e)});break;case"range":i=t.split(n.l10n.rangeSeparator).map(function(t){return n.parseDate(t,e)})}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(t)));n.selectedDates=n.config.allowInvalidPreload?i:i.filter(function(t){return t instanceof Date&&D(t,!1)}),"range"===n.config.mode&&n.selectedDates.sort(function(t,e){return t.getTime()-e.getTime()})}function q(t){return t.slice().map(function(t){return"string"==typeof t||"number"==typeof t||t instanceof Date?n.parseDate(t,void 0,!0):t&&"object"==typeof t&&t.from&&t.to?{from:n.parseDate(t.from,void 0),to:n.parseDate(t.to,void 0)}:t}).filter(function(t){return t})}function Y(){n._positionElement=n.config.positionElement||n._input}function $(t,e){if(void 0!==n.config){var i=n.config[t];if(void 0!==i&&i.length>0)for(var r=0;i[r]&&r<i.length;r++)i[r](n.selectedDates,n.input.value,n,e);"onChange"===t&&(n.input.dispatchEvent(X("change")),n.input.dispatchEvent(X("input")))}}function X(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}function Z(t){for(var e=0;e<n.selectedDates.length;e++){var i=n.selectedDates[e];if(i instanceof Date&&0===h1(i,t))return""+e}return!1}function K(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach(function(t,e){var i=new Date(n.currentYear,n.currentMonth,1);i.setMonth(n.currentMonth+e),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[e].textContent=a1(i.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=i.getMonth().toString(),t.value=i.getFullYear().toString()}),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function J(t){var e=t||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map(function(t){return n.formatDate(t,e)}
vendor: 7,742 bytes, line 1276
1276).filter(function(t,e,i){return"range"!==n.config.mode||n.config.enableTime||i.indexOf(t)===e}).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function Q(t){void 0===t&&(t=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=J(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=J(n.config.altFormat)),!1!==t&&$("onValueUpdate")}function tt(t){var e=r1(t),i=n.prevMonthNav.contains(e),r=n.nextMonthNav.contains(e);i||r?I(i?-1:1):n.yearElements.indexOf(e)>=0?e.select():e.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):e.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=t,n.isOpen=!1,function(){var i=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],o=y1(y1({},JSON.parse(JSON.stringify(t.dataset||{}))),e),a={};n.config.parseDate=o.parseDate,n.config.formatDate=o.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(t){n.config._enable=q(t)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(t){n.config._disable=q(t)}});var s="time"===o.mode;if(!o.dateFormat&&(o.enableTime||s)){var l=S1.defaultConfig.dateFormat||Y0.dateFormat;a.dateFormat=o.noCalendar||s?"H:i"+(o.enableSeconds?":S":""):l+" H:i"+(o.enableSeconds?":S":"")}if(o.altInput&&(o.enableTime||s)&&!o.altFormat){var c=S1.defaultConfig.altFormat||Y0.altFormat;a.altFormat=o.noCalendar||s?"h:i"+(o.enableSeconds?":S K":" K"):c+" h:i"+(o.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:R("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:R("max")});var u=function(t){return function(e){n.config["min"===t?"_minTime":"_maxTime"]=n.parseDate(e,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:u("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:u("max")}),"time"===o.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0),Object.assign(n.config,a,o);for(var d=0;d<i.length;d++)n.config[i[d]]=!0===n.config[i[d]]||"true"===n.config[i[d]];q0.filter(function(t){return void 0!==n.config[t]}).forEach(function(t){n.config[t]=Q0(n.config[t]||[]).map(r)}),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var d=0;d<n.config.plugins.length;d++){var h=n.config.plugins[d](n)||{};for(var p in h)q0.indexOf(p)>-1?n.config[p]=Q0(h[p]).map(r).concat(n.config[p]):void 0===o[p]&&(n.config[p]=h[p])}o.altInputClass||(n.config.altInputClass=B().className+" "+n.config.altInputClass),$("onParseConfig")}(),z(),n.input=B(),n.input?(n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=e1(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling)),n.config.allowInput||n._input.setAttribute("readonly","readonly"),Y()):n.config.errorHandler(new Error("Invalid input element specified")),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var t=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);t&&U(t,n.config.dateFormat),n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]),void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i")),void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i")),n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(t,e){return void 0===t&&(t=n.currentMonth),void 0===e&&(e=n.currentYear),1===t&&(e%4==0&&e%100!=0||e%400==0)?29:n.l10n.daysInMonth[t]}},n.isMobile||function(){var t=window.document.createDocumentFragment();if(n.calendarContainer=e1("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(t.appendChild((n.monthNav=e1("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=e1("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=e1("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,O(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(t){n.__hidePrevMonthArrow!==t&&(t1(n.prevMonthNav,"flatpickr-disabled",t),n.__hidePrevMonthArrow=t)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(t){n.__hideNextMonthArrow!==t&&(t1(n.nextMonthNav,"flatpickr-disabled",t),n.__hideNextMonthArrow=t)}}),n.currentYearElement=n.yearElements[0],K(),n.monthNav)),n.innerContainer=e1("div","flatpickr-innerContainer"),n.config.weekNumbers){var e=function(){n.calendarContainer.classList.add("hasWeeks");var t=e1("div","flatpickr-weekwrapper");t.appendChild(e1("span","flatpickr-weekday",n.l10n.weekAbbreviation));var e=e1("div","flatpickr-weeks");return t.appendChild(e),{weekWrapper:t,weekNumbers:e}}(),i=e.weekWrapper,r=e.weekNumbers;n.innerContainer.appendChild(i),n.weekNumbers=r,n.weekWrapper=i}n.rContainer=e1("div","flatpickr-rContainer"),n.rContainer.appendChild(M()),n.daysContainer||(n.daysContainer=e1("div","flatpickr-days"),n.daysContainer.tabIndex=-1),x(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),t.appendChild(n.innerContainer)}n.config.enableTime&&t.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var t=v1(n.config);n.timeContainer=e1("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var e=e1("span","flatpickr-time-separator",":"),i=i1("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=i.getElementsByTagName("input")[0];var r=i1("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});if(n.minuteElement=r.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=Z0(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?t.hours:function(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}(t.hours)),n.minuteElement.value=Z0(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():t.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",
vendor: 4,593 bytes, line 1276
1276n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(i),n.timeContainer.appendChild(e),n.timeContainer.appendChild(r),n.config.time_24hr&&n.timeContainer.classList.add("time24hr"),n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var o=i1("flatpickr-second");n.secondElement=o.getElementsByTagName("input")[0],n.secondElement.value=Z0(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():t.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(e1("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(o)}return n.config.time_24hr||(n.amPM=e1("span","flatpickr-am-pm",n.l10n.amPM[K0((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM)),n.timeContainer}()),t1(n.calendarContainer,"rangeMode","range"===n.config.mode),t1(n.calendarContainer,"animate",!0===n.config.animate),t1(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(t);var o=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!o&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var a=e1("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(a,n.element),a.appendChild(n.element),n.altInput&&a.appendChild(n.altInput),a.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){if(n.config.wrap&&["open","close","toggle","clear"].forEach(function(t){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+t+"]"),function(e){return d(e,"click",n[t])})}),n.isMobile)!function(){var t=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=e1("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=t,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr)),n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d")),n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d")),n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step"))),n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(t){}d(n.mobileInput,"change",function(t){n.setDate(r1(t).value,!1,n.mobileFormatStr),$("onChange"),$("onClose")})}();else{var t=J0(N,50);n._debouncedChange=J0(h,_1),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&d(n.daysContainer,"mouseover",function(t){"range"===n.config.mode&&E(r1(t))}),d(n._input,"keydown",j),void 0!==n.calendarContainer&&d(n.calendarContainer,"keydown",j),n.config.inline||n.config.static||d(window,"resize",t),void 0!==window.ontouchstart?d(window.document,"touchstart",k):d(window.document,"mousedown",k),d(window.document,"focus",k,{capture:!0}),!0===n.config.clickOpens&&(d(n._input,"focus",n.open),d(n._input,"click",n.open)),void 0!==n.daysContainer&&(d(n.monthNav,"click",tt),d(n.monthNav,["keyup","increment"],u),d(n.daysContainer,"click",G)),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&(d(n.timeContainer,["increment"],a),d(n.timeContainer,"blur",a,{capture:!0}),d(n.timeContainer,"click",f),d([n.hourElement,n.minuteElement],["focus","click"],function(t){return r1(t).select()}),void 0!==n.secondElement&&d(n.secondElement,"focus",function(){return n.secondElement&&n.secondElement.select()}),void 0!==n.amPM&&d(n.amPM,"click",function(t){a(t)})),n.config.allowInput&&d(n._input,"blur",P)}}
vendor: 1,655 bytes, lines 1276-1280
1276(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&l(n.config.noCalendar?n.latestSelectedDateObj:void 0),Q(!1)),o();var i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&i&&V(),$("onReady")}(),n}function w1(t,e){for(var n=Array.prototype.slice.call(t).filter(function(t){return t instanceof HTMLElement}),i=[],r=0;r<n.length;r++){var o=n[r];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=x1(o,e||{}),i.push(o._flatpickr)}catch(t){console.error(t)}}return 1===i.length?i[0]:i}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return w1(this,t)},HTMLElement.prototype.flatpickr=function(t){return w1([this],t)});var S1=function(t,e){return"string"==typeof t?w1(window.document.querySelectorAll(t),e):t instanceof Node?w1([t],e):w1(t,e)};S1.defaultConfig={},S1.l10ns={en:y1({},X0),default:y1({},X0)},S1.localize=function(t){S1.l10ns.default=y1(y1({},S1.l10ns.default),t)},S1.setDefaults=function(t){S1.defaultConfig=y1(y1({},S1.defaultConfig),t)},S1.parseDate=d1({}),S1.formatDate=u1({}),S1.compareDates=h1,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(t){return w1(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof t?parseInt(t,10):t))},"undefined"!=typeof window&&(window.flatpickr=S1);var O1=S1; 1277/** 1278* vue v3.5.16 1279* (c) 2018-present Yuxi (Evan) You and Vue contributors 1280* @license MIT
1281**/const M1=["onChange","onClose","onDestroy","onMonthChange","onOpen","onYearChange"];function C1(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function I1(t){return t instanceof Array?t:[t]}function T1(t){return t&&t.length?t:null}const k1=[...M1,...["onValueUpdate","onDayCreate","onParseConfig","onReady","onPreCalendarPosition","onKeyDown"]],A1=["locale","showMonths"];var D1=En({name:"FlatPickr",compatConfig:{MODE:3},render(){return ka("input",{type:"text","data-input":!0,disabled:this.disabled,onInput:this.onInput})},emits:["blur","update:modelValue",...k1.map(C1)],props:{modelValue:{type:[String,Number,Date,Array,null],required:!0},config:{type:Object,default:()=>({defaultDate:null,wrap:!1})},events:{type:Array,default:()=>M1},disabled:{type:Boolean,default:!1}},data:()=>({fp:null}),mounted(){this.fp||(this.fp=O1(this.getElem(),this.prepareConfig()),this.fpInput().addEventListener("blur",this.onBlur),this.$watch("disabled",this.watchDisabled,{immediate:!0}))},methods:{prepareConfig(){let t=Object.assign({},this.config);this.events.forEach(e=>{let n=O1.defaultConfig[e]||[];t[e]=I1(t[e]||[]).concat(n,(...t)=>{this.$emit(C1(e),...t)})});const e=this.onClose.bind(this);return t.onClose=I1(t.onClose||[]).concat(e),t.defaultDate=this.modelValue||t.defaultDate,t},getElem(){return this.config.wrap?this.$el.parentNode:this.$el},onInput(t){const e=t.target;Ee().then(()=>{this.$emit("update:modelValue",T1(e.value))})},fpInput(){return this.fp.altInput||this.fp.input},onBlur(t){this.$emit("blur",T1(t.target.value))},onClose(t,e){this.$emit("update:modelValue",e)},watchDisabled(t){t?this.fpInput().setAttribute("disabled",""):this.fpInput().removeAttribute("disabled")}},watch:{config:{deep:!0,handler(t){if(!this.fp)return;let e=Object.assign({},t);k1.forEach(t=>{delete e[t]}),this.fp.set(e),A1.forEach(t=>{void 0!==e[t]&&this.fp.set(t,e[t])})}},modelValue(t){var e;this.$el&&t!==T1(this.$el.value)&&(null===(e=this.fp)||void 0===e||e.setDate(t,!0))}},beforeUnmount(){this.fp&&(this.fpInput().removeEventListener("blur",this.onBlur),this.fp.destroy(),this.fp=null)}});n(25);const L1=String.raw,P1=t=>String(t).padStart(2,"0"),j1=/[âââª-â®â¦-â©]/g;const E1=new Intl.DateTimeFormat(function(){const t=(navigator.languages&&navigator.languages.length?navigator.languages:[navigator.language]).filter(Boolean);return t.find(t=>!/^en\b/i.test(t))||t[0]||"en"}(),{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1,numberingSystem:"latn"});function N1(t){return t instanceof Date&&!isNaN(t.getTime())?E1.format(t).replace(/,/g,"").replace(/\s+/g," ").trim():""}function R1(t){if(t instanceof Date)return t;if(!t)return!1;let e=String(t).replace(j1,"").replace(/,/g," ").trim().replace(/\s+/g," ");if(!e)return!1;e=(e=e.replace(/\b(\d{1,2})(?:[:.](\d{2}))?\s*([ap])\.?\s?m\.?/i,(t,e,n,i)=>{let r=Number(e)%12;return/p/i.test(i)&&(r+=12),`${P1(r)}:${n||"00"}`})).replace(/\b(\d{1,4})[./-](\d{1,2})[./-](\d{1,4})\b/,(t,e,n,i)=>{let r,o,a;if(4===e.length)r=e,o=n,a=i;else{if(4!==i.length&&2!==i.length)return t;r=2===i.length?`20${i}`:i,Number(e)>12?(a=e,o=n):Number(n)>12?(a=n,o=e):(a=e,o=n)}return`${r}/${P1(Number(o))}/${P1(Number(a))}`});let n=new Date(e);return isNaN(n.getTime())?(n=new Date(t),!isNaN(n.getTime())&&n):n}var B1={components:{FlatPickr:D1},props:["modelValue"],data(){const t=["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"].map(t=>B0(`MONTH_${t}`)),e=["SU","MO","TU","WE","TH","FR","SA"].map(t=>B0(`DAY_${t}`));return{config:{enableTime:!0,time_24hr:!0,static:!0,disableMobile:!0,allowInput:!0,minuteIncrement:1,maxDate:new Date,formatDate:N1,parseDate:R1,locale:{firstDayOfWeek:0,weekdays:{shorthand:e,longhand:e},months:{shorthand:t,longhand:t}},onOpen:(t,e,n)=>{n.set("maxDate",new Date);const i=n.calendarContainer,r=n.input.getBoundingClientRect(),o=(window.visualViewport&&window.visualViewport.height||window.innerHeight)-r.bottom,a=o<i.offsetHeight&&r.top>o;i.classList.toggle("flatpickr-calendar--above",a)},onChange:t=>{const e=t[0];e&&this.$emit("update:modelValue",Math.floor(e.getTime()/1e3))}}}},computed:{date(){return this.modelValue?N1(new Date(1e3*this.modelValue)):null}},template:L1` 1282 <div class="cdf-field-input"> 1283 <flat-pickr class="cdf-field-input__el" :model-value="date" :config="config"></flat-pickr> 1284 </div> 1285 `};const z1=String.raw;function V1(){return function(){const t=localStorage.getItem("portfolioToken");if(t)return t;const e=function(t){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let i=0;i<t;i++)n+=e.charAt(Math.floor(Math.random()*e.length));return n}(16);return localStorage.setItem("portfolioToken",e),e}()}const F1=["#ff6b6b","#4ecdc4","#45b7d1","#f9ca24","#6c5ce7","#fd79a8"],H1={"24h":"TF_24H","7d":"TF_7D","1m":"TF_1M","3m":"TF_3M","6m":"TF_6M","1y":"TF_1Y",ytd:"TF_YTD",all:"TF_ALL"},G1=null!==window.localStorage.getItem("_was_logged_in"),W1=window._isGuest,U1=window.portfolioPublicKey;function q1(){const t=localStorage.getItem("portfolioToken");if(t)return t;const e=function(t){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let i=0;i<t;i++)n+=e.charAt(Math.floor(Math.random()*e.length));return n}(16);return localStorage.setItem("portfolioToken",e),e}!function(){const t={data:()=>({allow:!0,currentPortfolioId:null,portfolioList:[],showPortfolioList:!1,_accessToken:V1(),currentTimeFrame:window.localStorage.getItem("currentTimeFrame")||"1y",tryNewPortfolioContent:window.tryNewPortfolioContent}),mounted(){this.initApp(),window.pfWidget=this},computed:{currentPortfolioIconSymbol(){const t=this.portfolioList.find(t=>
1285t.id===this.currentPortfolioId);return t?t.name[0]:"E"},currentPortfolioName(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.name:B0("EMPTY_PORTFOLIO")},currentPortfolioColor(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.color:1},currentPortfolioBalance(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.current_balance:"$0"},currentPortfolioTimeFrameChangePctRaw(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.time_frame_diff_pct:0},currentPortfolioTimeFrameChangePct(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.time_frame_diff_pct_formatted:"0%"}},watch:{},methods:{onSelectPortfolio(t){this.currentPortfolioId=t,this.showPortfolioList=!1,window.localStorage.setItem("wPortfolioId",this.currentPortfolioId)},async initApp(){const t=await this.fetchPortfolioList();if(t.length>0&&!this.public_key){const e=window.localStorage.getItem("wPortfolioId");e&&t.find(t=>t.id==e)?this.currentPortfolioId=+e:(this.currentPortfolioId=t[0].id,window.localStorage.setItem("wPortfolioId",this.currentPortfolioId))}this.runRealtimeUpdate()},runRealtimeUpdate(){setInterval(()=>{this.fetchPortfolioList()},3e4)},async fetchPortfolioList(){const t=await fetch(`/en/api/portfolio?time_frame=${this.currentTimeFrame}`,{headers:{"X-Guest-Token":this._accessToken},method:"GET"});if(200!==t.status)return;const e=await t.json();return this.portfolioList=e,e}},template:z1` 1286 <div v-show="allow"> 1287 <div class="pf-widget" @click="goTo"> 1288 <a class="pf-widget-inside" :href="'/en/portfolio-tracker/' + (currentPortfolioId || 'new')"> 1289 <div class="pf-widget__icon" :class="'pf-icon--color-' + currentPortfolioColor"> 1290 {{ currentPortfolioIconSymbol }} 1291 </div> 1292 <div class="pf-widget__balance"> 1293 {{ currentPortfolioBalance }} 1294 </div> 1295 <span class="pf-widget__change" :data-number-sign="currentPortfolioTimeFrameChangePctRaw"> 1296 {{ currentPortfolioTimeFrameChangePct }} 1297 </span> 1298 </a> 1299 <div class="pf-widget__menu_el" v-show="portfolioList.length >= 2"> 1300 <svg class="pf-widget__menu" @click="showPortfolioList = !showPortfolioList"> 1301 <use xlink:href="#arrow-down"></use> 1302 </svg> 1303 </div> 1304 </div> 1305 <div class="pf-widget-down"> 1306 <div class="pf-widget-down_inner"> 1307 <portfolio-list :show="showPortfolioList" :list="portfolioList" @on-close="showPortfolioList = false" @on-select="onSelectPortfolio" :hide-buttons="true"></portfolio-list> 1308 </div> 1309 <a class="pf-widget-down_label" :href="'/en/portfolio-tracker/' + (currentPortfolioId || 'new')"> 1310 {{ tryNewPortfolioContent }} 1311 </a> 1312 </div> 1313 </div> 1314 `},e=Ml(t);e.config.globalProperties.t=B0,e.component("portfolio-list",I0),e.mount("#pf-widget");const n=Ml(t);n.config.globalProperties.t=B0,n.component("portfolio-list",I0),n.mount("#pf-widget-mobile");const i=Ml({data:()=>({flashes:{},isGuest:W1,public_key:U1||"",allow:!W1||W1&&!G1,isInitFinish:!1,isLoaded:!1,_accessToken:V1(),portfolioList:[],showPortfolioList:!1,currentPortfolioId:null,currentTimeFrame:window.localStorage.getItem("currentTimeFrame")||"1y",timeFrameList:["24h","7d","1m","3m","6m","1y","ytd"],txListCurrentPage:1,txListPageCount:1,showCreatePortfolioModal:!1,showManageList:!1,showDeletePortfolioModal:!1,showDeleteAssetModal:!1,showDeleteTxModal:!1,showTransactionModal:!1,showCsvImportModal:!1,showSettingsModal:!1,showShareModal:!1,mainChartLoading:!1,currentTx:null,assets:[],transactions:[],pieLegend:[],currentPieChartItem:null,chart:[],chartPeriod:"7d",activeChartButtonIndex:window.localStorage.getItem("activeChartButtonIndex"),chartButtons:[{text:B0("TF_24H"),startIndex:null},{text:B0("TF_7D"),startIndex:null},{text:B0("TF_1M"),startIndex:null},{text:B0("TF_3M"),startIndex:null},{text:B0("TF_6M"),startIndex:null},{text:B0("TF_1Y"),startIndex:null},{text:B0("TF_YTD"),startIndex:null},{text:B0("TF_ALL"),startIndex:null}],lastiAmBack:+new Date,_isAutoExpanding:!1,predictionData:null,predictionAssets:null,predictionAssetTimestamps:null,isPiePredictionMode:!1,predictionPctByKey:{},piePredictionTs:null,predictionEnabled:"false"!==window.localStorage.getItem("portfolioPredictionEnabled"),pieChartFilter:"all"}),mounted(){this.initApp(),this.initCharts(),document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.iAmBack()}),window.addEventListener("focus",()=>{this.iAmBack()})},computed:{currentTimeFrameLabel(){return B0(H1[this.currentTimeFrame]||this.currentTimeFrame)},filteredAssets(){const t=this.assets;return this.currentPortfolioShowSmallBalances?t:t.filter(t=>t.total>=10)},chartButtonsFiltered(){return this.chartButtons.filter(t=>null!==t.startIndex)},txListPages(){return this.txListPageCount>1?Array.from({length:this.txListPageCount},(t,e)=>e+1):[]},currentPortfolio(){return this.portfolioList.find(t=>
1314t.id===this.currentPortfolioId)||null},currentPortfolioIconSymbol(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.name[0]:"E"},currentPortfolioDescription(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.description:null},currentPortfolioName(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.name:B0("EMPTY_PORTFOLIO")},currentPortfolioColor(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.color:1},currentPortfolioBalance(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.current_balance:"$0"},currentPortfolioBalanceValue(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.current_balance_value:null},currentPortfolioTotalProfitValue(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.total_profit_value:0},currentPortfolioTotalProfit(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.total_profit:"$0"},currentPortfolioTotalProfit(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.total_profit:"$0"},currentPortfolioTotalProfitPct(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.total_profit_pct_formatted:"0%"},currentPortfolioRealizedProfitValue(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.realized_profit:0},currentPortfolioRealizedProfit(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.realized_profit_formatted:"$0"},currentPortfolioUnrealizedProfitValue(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.unrealized_profit:0},currentPortfolioUnrealizedProfit(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.unrealized_profit_formatted:"$0"},currentPortfolioTotalInvested(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.total_invested:"$0"},currentPortfolioTimeFrameChange(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.time_frame_diff:"$0"},currentPortfolioTimeFrameChangePctRaw(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.time_frame_diff_pct:0},currentPortfolioTimeFrameChangePct(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return t?t.time_frame_diff_pct_formatted:"0%"},currentPortfolioShowSmallBalances:{get(){const t=this.portfolioList.find(t=>t.id===this.currentPortfolioId);return!t||!!t.show_small_balances},set(t){M0({id:this.currentPortfolioId,show_small_balances:t}),this.portfolioList.find(t=>t.id===this.currentPortfolioId).show_small_balances=t}},predictionOtherPct(){return this.isPiePredictionMode&&this.pieLegend&&this.pieLegend.other?this.pieLegend.other.reduce((t,e)=>{const n=`${e.asset_type}_${e.asset_id}`;return t+(this.predictionPctByKey[n]||0)},0):null},piePredictionDateLabel(){return this.isPiePredictionMode&&null!=this.piePredictionTs?new Date(1e3*this.piePredictionTs).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}):null}},watch:{currentTimeFrame(t){window.localStorage.setItem("currentTimeFrame",t),this.fetchPortfolioList(),this.fetchAssets()},currentPortfolioId(){window.localStorage.setItem("portfolioId",this.currentPortfolioId),this.predictionData=null,this.predictionAssets=null,this.predictionAssetTimestamps=null,this._predictionAssetByKey={},this.restorePiePresent(),this.fetchAssets(),this.fetchTransactions()},txListCurrentPage(){this.fetchTransactions()},pieChartFilter(){this.initPieChart(this.assets),this.isPiePredictionMode&&null!=this._lastPiePredictTs&&this.applyPredictionPieAtTs(this._lastPiePredictTs)},predictionEnabled(t){window.localStorage.setItem("portfolioPredictionEnabled",t),this._predictionAnimFrame&&(cancelAnimationFrame(this._predictionAnimFrame),this._predictionAnimFrame=null);const e=()=>{null!=this._lastMainChartAfterTs&&null!=this._lastMainChartBeforeTs&&this.updateMainChart(this._lastMainChartAfterTs,this._lastMainChartBeforeTs,!0)};t?window._portfolioPredictionEnabled&&!this.predictionData?this.fetchPrediction().then(e):e():this.animatePredictionOut(()=>{this.predictionData=null,this.predictionAssets=null,this.predictionAssetTimestamps=null,this._predictionAssetByKey={},this.restorePiePresent(),e()})}},methods:{iAmBack:H0(function(){const t=(new Date).getTime(),e=this.lastiAmBack;Math.floor((t-e)/1e3)>300&&(this.lastiAmBack=t,this.updateRangeChart())}
1314),roundToSignificantDigits(t,e=4){if(0===t)return"0";const n=Math.floor(Math.log10(Math.abs(t))),i=Math.pow(10,e-1-n),r=Math.round(t*i)/i,o=Math.max(0,e-n-1);let a=r.toFixed(o);return a=a.replace(/\.?0+$/,"")},flashIt(t,e){const n=t in this.flashes?this.flashes[t]:{timeoutId:void 0,isUp:e};n.timeoutId&&clearTimeout(n.timeoutId),n.isUp=e,n.timeoutId=setTimeout(()=>{n.timeoutId=void 0,this.flashes[t]={timeoutId:void 0,isUp:e}},1e3),this.flashes={...this.flashes,[t]:n}},getFlash(t,e){const n=t in this.flashes&&this.flashes[t];if(n&&n.timeoutId)return n.isUp?"flash-up":"flash-down"},async delTx(t){this.showDeleteTxModal=t.id},editTx(t){this.showTransactionModal=!0,this.currentTx=t,this.fetchTransactions()},onSelectPortfolio(t){this.currentPortfolioId=t,this.showPortfolioList=!1;const e=window.location.pathname.split("/");e[e.length-1]=this.currentPortfolioId;const n=e.join("/");window.history.pushState(null,"",n)},async initApp(){const t=await this.fetchPortfolioList();if(t.length>0)if(this.public_key)this.currentPortfolioId=t[0].id;else{const e=window.location.pathname.split("/").pop(),n=isNaN(e)?window.localStorage.getItem("portfolioId"):+e;n&&t.find(t=>t.id==n)?this.currentPortfolioId=+n:(this.currentPortfolioId=t[0].id,window.localStorage.setItem("portfolioId",this.currentPortfolioId));const i=window.location.pathname.split("/");"portfolio-tracker"===i[i.length-1]?i.push(this.currentPortfolioId):i[i.length-1]=this.currentPortfolioId;const r=i.join("/");window.history.pushState(null,"",r)}this.runRealtimeUpdate(),this.isInitFinish=!0},runRealtimeUpdate(){setInterval(()=>{this.fetchPortfolioList(!0),this.fetchAssets(!0)},3e4)},async fetchPortfolioList(t=!1){const e=await fetch(`/en/api/portfolio?time_frame=${this.currentTimeFrame}&public_key=${this.public_key}`,{headers:{"X-Guest-Token":this._accessToken},method:"GET"});if(200!==e.status)return;const n=await e.json(),i=this.currentPortfolioBalanceValue;this.portfolioList=n;const r=this.currentPortfolioBalanceValue;return t&&i!=r&&this.flashIt("currentBalance",r>i),n},onDelete(t){this.showDeletePortfolioModal=t},onEdit(t){this.showCreatePortfolioModal=t},onCloseCreatePortoflioModal(){this.showCreatePortfolioModal=!1,this.currentPortfolioId?this.fetchPortfolioList():this.initApp()},confirmDeletePortfolio(){this.showDeletePortfolioModal=!1,this.fetchPortfolioList()},confirmDeleteAsset(){this.showDeleteAssetModal=!1,this.fetchAssets(),this.fetchTransactions()},confirmDeleteTx(){this.showDeleteTxModal=!1,this.fetchTransactions(),this.fetchAssets(),this.fetchPortfolioList(),this.updateChart()},async fetchAssets(t=!1){const e=await fetch(`/en/api/portfolio-asset/${this.currentPortfolioId}?time_frame=${this.currentTimeFrame}&public_key=${this.public_key}`,{headers:{"X-Guest-Token":this._accessToken},method:"GET"});if(200!==e.status)return;const n=await e.json();t&&n.forEach(t=>{const e=this.assets.find(e=>e.asset_id===t.asset_id);e&&e.marketData.price_value!=t.marketData.price_value&&this.flashIt(t.asset_id,t.marketData.price_value>e.marketData.price_value)}),this.assets=n.sort((t,e)=>e.total-t.total),this.initPieChart(n)},delAsset(t){this.showDeleteAssetModal=t.id},buildPieViewModel(t,e){let n=t;"crypto"===e?n=t.filter(t=>1===t.asset_type):"stocks"===e&&(n=t.filter(t=>2===t.asset_type));const i=n.filter(t=>t.quantity>0);i.sort((t,e)=>e.total-t.total);const r=n.reduce((t,{total:e})=>t+e,0)||1,o=i.map(t=>({...t,pct:t.total/r*100})).reduce((t,e,n)=>{const i={...e,name:e.asset.symbol};return e.pct>2&&n<6?t.top.push({...i,color:F1[n]}):(t.otherPct+=e.pct,t.otherTotal+=e.total,t.otherTotalFormatted=t.otherTotal.toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}),t.other.push({...i,color:"gray"})),t},{top:[],other:[],otherPct:0,otherTotal:0,otherTotalFormatted:""});return{data:[...o.top,{name:B0("OTHER_ASSETS"),pct:o.otherPct,color:"gray"}].map((t,e)=>({value:t.pct,name:t.name,itemStyle:{color:t.color?t.color:F1[e]}})),legend:o}},renderPieChart(t){const e=document.getElementById("pie-chart");if(!e)return;this.pieChart||(this.pieChart=Fk(e,null,{renderer:"svg",width:268,hight:268}),this.pieChart.on("mouseover",t=>
1314{t.dataIndex<6&&this.pieLegend&&this.pieLegend.top&&(this.currentPieChartItem=this.pieLegend.top[t.dataIndex])}));const n={tooltip:{show:!1,trigger:"item",formatter:"<b>{b}</b> ({d}%)"},legend:{show:!1,orient:"vertical",bottom:"0"},series:[{type:"pie",radius:["60%","90%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:0,borderColor:"rgba(0,0,0,0)",borderWidth:3},label:{show:!1,position:"center",formatter:()=>""},emphasis:{label:{show:!0,fontSize:16,fontWeight:"bold"}},labelLine:{show:!1},data:t.data}]};this.pieChart.setOption(n,{notMerge:!0})},initPieChart(t){const e=this.buildPieViewModel(t,this.pieChartFilter);this.pieLegend=e.legend,this.currentPieChartItem=null,this.renderPieChart(e)},getPredictionPct(t){if(!this.isPiePredictionMode)return null;const e=`${t.asset_type}_${t.asset_id}`,n=this.predictionPctByKey[e];return null==n?null:n},findNearestPredictionTsIndex(t){const e=this.predictionAssetTimestamps;if(!e||!e.length)return-1;let n=0,i=e.length-1;for(;n<i;){const r=n+i>>1;e[r]<t?n=r+1:i=r}return n>0&&Math.abs(e[n-1]-t)<=Math.abs(e[n]-t)?n-1:n},applyPredictionPieAtTs(t){if(!this.predictionEnabled||!this.predictionAssets)return;const e=this.findNearestPredictionTsIndex(t);if(e<0)return;const n=this._predictionAssetByKey||{};let i=this.assets;"crypto"===this.pieChartFilter?i=i.filter(t=>1===t.asset_type):"stocks"===this.pieChartFilter&&(i=i.filter(t=>2===t.asset_type));const r={};let o=0;i.forEach(t=>{const i=`${t.asset_type}_${t.asset_id}`,a=n[i];let s;s=0===t.asset_type?t.quantity:a&&null!=a.prices[e]?t.quantity*a.prices[e]:t.total,r[i]=s,o+=s});const a=o||1,s={};Object.keys(r).forEach(t=>{s[t]=r[t]/a*100}),this.predictionPctByKey=s,this.isPiePredictionMode=!0,this._lastPiePredictTs=t,this.piePredictionTs=this.predictionAssetTimestamps[e],this.applyPiePredictionSectors(s)},restorePiePresent(){this.isPiePredictionMode&&(this.isPiePredictionMode=!1,this.predictionPctByKey={},this._lastPiePredictTs=null,this.piePredictionTs=null,this.applyPiePresentSectors())},applyPiePredictionSectors(t){if(!this.pieChart||!this.pieLegend||!this.pieLegend.top)return;const e=this.pieLegend.top.map(e=>{const n=`${e.asset_type}_${e.asset_id}`;return{value:null!=t[n]?t[n]:e.pct,name:e.name,itemStyle:{color:e.color}}});let n=0;(this.pieLegend.other||[]).forEach(e=>{const i=`${e.asset_type}_${e.asset_id}`;n+=null!=t[i]?t[i]:e.pct}),e.push({value:n,name:B0("OTHER_ASSETS"),itemStyle:{color:"gray"}}),this.pieChart.setOption({series:[{data:e}]})},applyPiePresentSectors(){if(!this.pieChart||!this.pieLegend||!this.pieLegend.top)return;const t=this.pieLegend.top.map(t=>({value:t.pct,name:t.name,itemStyle:{color:t.color}}));t.push({value:this.pieLegend.otherPct,name:B0("OTHER_ASSETS"),itemStyle:{color:"gray"}}),this.pieChart.setOption({series:[{data:t}]})},schedulePiePrediction(t){this._pendingPiePredictTs=t,this._piePredictRaf||(this._piePredictRaf=requestAnimationFrame(()=>{this._piePredictRaf=null;const t=this._pendingPiePredictTs;"restore"===t?this.restorePiePresent():this.applyPredictionPieAtTs(t)}))},onMouseEnterPie(t,e){-1!==t&&this.pieChart.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:t}),this.currentPieChartItem=e},onMouseLeavePie(t,e){-1!==t&&this.pieChart.dispatchAction({type:"downplay",seriesIndex:0,dataIndex:t}),this.currentPieChartItem=e},async fetchTransactions(){const t=await fetch(`/en/api/portfolio-tx/${this.currentPortfolioId}?page=${this.txListCurrentPage}&public_key=${this.public_key}`,{headers:{"X-Guest-Token":this._accessToken},method:"GET"});t.status;const e=await t.json();this.txListPageCount=+t.headers.get("x-pagination-page-count"),this.transactions=e,this.updateChart(),window.pfWidget.initApp()},initMainChart(){this.mainChart||(this.mainChart=Fk(document.getElementById("main-chart")),window.addEventListener("resize",()=>this.mainChart.resize()),this._lastChartValue=null,this._lastDiffPositive=null,this.mainChart.getZr().on("globalout",()=>{this.mainChart.setOption({graphic:[{type:"circle",shape:{r:0}}]}),this.schedulePiePrediction("restore")}
1314),this.mainChart.on("updateAxisPointer",t=>{if(!this.predictionEnabled||!this.predictionAssets||!this._lastPredictionAnchorMs)return;const e=t.axesInfo&&t.axesInfo[0];if(!e||null==e.value)return void this.schedulePiePrediction("restore");const n=e.value;n>this._lastPredictionAnchorMs?this.schedulePiePrediction(Math.floor(n/1e3)):this.schedulePiePrediction("restore")}))},initRangeChart(){this.rangeChart||(this.rangeChart=Fk(document.getElementById("range-chart")),this.rangeChart.on("datazoom",this.onChangeZoom),window.addEventListener("resize",()=>this.rangeChart.resize()))},onChangeZoom:H0(function(t){const e=this.rangeChart.getOption().dataZoom[0],n=Math.floor(this.rangeChartData.length*e.start/100),i=Math.ceil(this.rangeChartData.length*e.end/100)-1,r=this.rangeChartData[n],o=this.rangeChartData[i];let a=r.timestamp,s=o.timestamp;(s-a)/60/60<24&&(a=s-86400),this.updateMainChart(a,s)},500),initCharts(){this.initMainChart(),this.initRangeChart()},updateChart(){this.$nextTick(()=>{this.initCharts(),this.updateRangeChart()})},async fetchChart(t,e){const n=await fetch(`/en/api/portfolio/${this.currentPortfolioId}/chart?afterTs=${t}&beforeTs=${e}&public_key=${this.public_key}`,{headers:{"X-Guest-Token":this._accessToken},method:"GET"});if(200!==n.status)return;const i=await n.json();return this.chart=i,i},async fetchPrediction(){const t=await fetch(`/en/api/portfolio/${this.currentPortfolioId}/prediction?public_key=${this.public_key}`,{headers:{"X-Guest-Token":this._accessToken},method:"GET"});if(200!==t.status)return;const e=await t.json();return this.predictionData=e.prediction,this.predictionAssetTimestamps=e.assetTimestamps||null,this.predictionAssets=e.assets||null,this._predictionAssetByKey=(e.assets||[]).reduce((t,e)=>(t[`${e.asset_type}_${e.asset_id}`]=e,t),{}),e},isSparseData(t){if(!t||t.length<=15)return!1;let e=0;for(let n=1;n<t.length;n++)t[n][1]!==t[n-1][1]&&e++;return e<12},formatDiffNumber:t=>new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}).format(t),fix2Decimals:t=>+t.toString().match(/^-?\d+(?:\.\d{0,2})?/)[0],asShortBigNumber(t){const e=Math.pow(10,18),n=Math.pow(10,15),i=+t;let r="";return i>=e?(t=this.fix2Decimals(i/e),r="Quint"):i>=n?(t=this.fix2Decimals(i/n),r="Quad"):i>=1e12?(t=this.fix2Decimals(i/1e12),r="T"):i>=1e9?(t=this.fix2Decimals(i/1e9),r="B"):i>=1e6?(t=this.fix2Decimals(i/1e6),r="M"):i>=1e3?(t=this.fix2Decimals(i/1e3),r="K"):t=this.fix2Decimals(i),`${t}${r}`},async updateMainChart(t,e,n=!1){var i;let r,o,a;if(this._lastMainChartAfterTs=t,this._lastMainChartBeforeTs=e,n&&this._lastMainChartPayload)({chart:r,tx:o,txGroups:a=[]}=this._lastMainChartPayload);
1314else{this.mainChartLoading=!0;const n=await this.fetchChart(t,e);this.mainChartLoading=!1,this._lastMainChartPayload=n,({chart:r,tx:o,txGroups:a=[]}=n)}if(!this._isAutoExpanding&&this.isSparseData(r)&&(null===(i=this.rangeChartData)||void 0===i?void 0:i.length)>0){this._isAutoExpanding=!0;const n=86400,i=e-t,r=Math.max(7*i,14*n),o=e-r,a=this.rangeChartData[0].timestamp,s=Math.max(o,a);let l=0;for(let t=0;t<this.rangeChartData.length;t++)if(this.rangeChartData[t].timestamp>=s){l=t;break}let c=this.rangeChartData.length-1;for(let t=this.rangeChartData.length-1;t>=0;t--)if(this.rangeChartData[t].timestamp<=e){c=t;break}const u=l/this.rangeChartData.length*100,d=(c+1)/this.rangeChartData.length*100;return void this.rangeChart.dispatchAction({type:"dataZoom",start:u,end:Math.min(d,100)})}this._isAutoExpanding=!1;const s=r.filter(t=>t[1]>0),l=s.length>0?[s[0]]:[];for(let t=1;t<s.length;t++)s[t][1]!==s[t-1][1]&&l.push(s[t]);s.length>1&&l[l.length-1][0]!==s[s.length-1][0]&&l.push(s[s.length-1]),o.filter(e=>1e3*e.timestamp>=t).map(t=>{const e=1e3*+t.timestamp,n=s.findIndex(t=>t[0]>=e),i=s[n-1];return[e,i?i[1]:s[0][1]]});const c=a.filter(t=>!0),u=l[l.length-1],d=u?u[1]:null;this._lastChartValue=d,this._lastPredictionAnchorMs=u?1e3*u[0]:null;let h=[],p=[],f=[];if(this.predictionEnabled&&this.predictionData&&this.predictionData.length>0){const n=e+(e-t),i=this.predictionData.filter(([t])=>t<=n),r=i.length>0?i[0][1]:void 0,o=void 0!==r&&i.every(([,t])=>Math.abs(t-r)<=1e-9*Math.abs(r));u&&(h.push([1e3*u[0],u[1]]),o||(p.push([1e3*u[0],u[1]]),f.push([1e3*u[0],0])));let a=.001;i.forEach(([t,e])=>{if(h.push([1e3*t,e]),!o){const n=e*a;a<.5&&(a+=.001),p.push([1e3*t,e-n]),f.push([1e3*t,2*n])}})}const g=document.body.classList.contains("night"),m=g?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.08)",v=g?"rgba(255,255,255,0.3)":"rgba(0,0,0,0.25)",y=g?"#222":"#fff",b={xAxis:Date.now(),lineStyle:{color:"#7cb5ec",type:"solid",width:1},label:{show:!0,position:"insideEndTop",rotate:90,formatter:"TODAY",color:"#7cb5ec",fontSize:12,fontWeight:"bold"}};this.mainChart.setOption({grid:{left:"16px",right:"16px",bottom:"6%",containLabel:!1},tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:v,type:"dashed",width:1},label:{show:!1}},formatter:t=>{const e=t.some(t=>"Prediction"===t.seriesName&&t.value&&void 0!==t.value[1])&&!t.some(t=>"Price"===t.seriesName&&t.value&&void 0!==t.value[1]),n=t.find(t=>t.seriesName===(e?"Prediction":"Price"))||t[0],i=new Date(n.value[0]),r=n.value[1],o=[];if(t.length>1){const t=c.find(t=>t.timestamp===i.getTime()/1e3);t&&t.tx.forEach(t=>{0===t.type?o.push(`\n <div class="portfolio-chart-tooltip_tx" data-type="buy">\n <b>Buy <span>${t.f_qt}</span></b> (${t.f_money})\n </div>\n `):o.push(`\n <div class="portfolio-chart-tooltip_tx" data-type="sell">\n <b>Sell <span>${t.f_qt}</span></b> (${t.f_money})\n </div>\n `)})}const a=`$${this.asShortBigNumber(+r.toFixed(0))}`;if(this._hoveredPrice=r,null!==this._lastChartValue){const t=e?r-this._lastChartValue:this._lastChartValue-r,n=e?0!==this._lastChartValue?t/this._lastChartValue*100:0:0!==r?t/r*100:0,o=t>=0,a=o?"+":"",s=o?"rgba(34,197,94,0.85)":"rgba(239,68,68,0.85)",l=new Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t),c=this.mainChart.convertToPixel({seriesIndex:1},[i.getTime(),r]);requestAnimationFrame(()=>{this.mainChart.setOption({graphic:[{type:"circle",position:c,shape:{r:5},style:{fill:"#fff",stroke:"#067492",lineWidth:2},z:100}],series:[{markLine:void 0},{markLine:{silent:!0,symbol:"none",animation:!1,data:[{yAxis:this._lastChartValue,lineStyle:{color:"#067492",type:"dashed",width:1},label:{show:!0,position:"insideStartTop",formatter:"$"+new Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(this._lastChartValue),color:"#067492",backgroundColor:y,padding:[2,4],borderRadius:2,fontSize:12}},{yAxis:r,lineStyle:{color:v,type:"dashed",width:1},label:{show:!0,position:"insideStartTop",rotate:0,formatter:`$${l}\n${a}${n.toFixed(2)}%`,color:"#fff",backgroundColor:s,padding:[4,6],borderRadius:2,fontSize:12,fontWeight:"normal"}},b]}},{markLine:void 0},{},{}]})})}let s="";if(e){const e=t.find(t=>"RangeLower"===t.seriesName),n=t.find(t=>"Range"===t.seriesName);if(e&&n&&e.value&&n.value){const t=e.value[1],i=e.value[1]+n.value[1];s=`\n <div class="portfolio-chart-tooltip_range">\n Min: $${this.asShortBigNumber(+t.toFixed(0))} —\n Max: $${this.asShortBigNumber(+i.toFixed(0))}\n </div>`}}return`\n <div class="portfolio-tooltip">\n ${o.join("")}\n <div class="portfolio-chart-tooltip_balance">${e?"Predicted":"Balance"}: ${a}</div>\n ${s}\n <div class="portfolio-chart-tooltip_date">
1314${i.toLocaleString()}</div>\n </div>\n `}},xAxis:{type:"time",axisPointer:{lineStyle:{color:v,type:"dashed",width:1}},axisLabel:{hideOverlap:!0,formatter:function(n){const i=new Date(n),r=e-t;return r<=86401?i.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}):r<=604801?i.toLocaleDateString("en-US",{month:"short",day:"numeric"}):r<=31104e3?i.toLocaleDateString("en-US",{month:"short",day:"numeric"}):i.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}}},yAxis:{type:"value",position:"left",splitLine:{lineStyle:{color:m}},axisLine:{show:!1},axisTick:{show:!1},axisLabel:{inside:!0,margin:0,padding:[0,0,0,4],verticalAlign:"bottom",formatter:t=>Math.abs(t)>=1e6?`$${this.asShortBigNumber(t)}`:"$"+new Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t)},axisPointer:{lineStyle:{opacity:0},label:{show:!1}},scale:!0},series:[{name:"Transactions",type:"scatter",data:c.map(t=>[1e3*+t.timestamp,t.price]),symbolSize:10,z:2,itemStyle:{color:function(t){const e=t.data[0]/1e3,n=c.find(t=>t.timestamp===e);let i;switch(n?n.tx.reduce((t,e)=>t=1!==e.type||1!==t&&null!==t?0!==e.type||0!==t&&null!=t?-1:0:1,null):-1){case 1:i="orangered";break;case 0:i="lime";break;case-1:default:i="gray"}return i}}},{name:"Price",type:"line",data:l.map(([t,e])=>[1e3*t,e]),smooth:!1,showSymbol:!1,z:1,lineStyle:{width:2,color:"#067492"},markLine:{silent:!0,symbol:"none",animation:!1,data:[...null!==d?[{yAxis:d,lineStyle:{color:"#067492",type:"dashed",width:1},label:{show:!0,position:"insideStartTop",formatter:"$"+new Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(d),color:"#067492",backgroundColor:y,padding:[2,4],borderRadius:2,fontSize:12}}]:[],b]}},{name:"Prediction",type:"line",data:h,smooth:!1,showSymbol:!1,z:1,lineStyle:{width:2,color:"#A1BEE6"},itemStyle:{color:"#A1BEE6"},animationDurationUpdate:300},{name:"RangeLower",type:"line",data:p,smooth:!1,showSymbol:!1,lineStyle:{opacity:0},areaStyle:{opacity:0},stack:"prediction-range",z:0,tooltip:{show:!1},animationDurationUpdate:300},{name:"Range",type:"line",data:f,smooth:!1,showSymbol:!1,lineStyle:{opacity:0},areaStyle:{color:"#A1BEE6",opacity:.15},stack:"prediction-range",z:0,tooltip:{show:!1},animationDurationUpdate:300}]}
1314),this.mainChart.resize()},async updateRangeChart(){const t=new Date,e=Math.floor(t.getTime()/1e3),n=new Date;n.setMonth(n.getMonth()-5),Math.floor(n.getTime()/1e3);const i=[this.fetchChart(0,e)];window._portfolioPredictionEnabled&&this.predictionEnabled&&i.push(this.fetchPrediction());const[r]=await Promise.all(i),o=r.chart.filter(t=>t[1]>0).map(([t,e])=>({timestamp:t,price:e,amount:"0",formatted:new Date(1e3*t).toLocaleDateString()}));this.rangeChartData=o;const a=new Date;a.setDate(a.getDate()-1);const s=new Date;s.setDate(s.getDate()-7);const l=new Date;l.setMonth(l.getMonth()-1);const c=new Date;c.setMonth(c.getMonth()-3);const u=new Date;u.setMonth(u.getMonth()-6);const d=new Date;d.setMonth(d.getMonth()-12);const h=new Date;h.setMonth(0),h.setDate(1);const p=[{text:B0("TF_24H"),startIndex:null},{text:B0("TF_7D"),startIndex:null},{text:B0("TF_1M"),startIndex:null},{text:B0("TF_3M"),startIndex:null},{text:B0("TF_6M"),startIndex:null},{text:B0("TF_1Y"),startIndex:null},{text:B0("TF_YTD"),startIndex:null},{text:B0("TF_ALL"),startIndex:null}];o.forEach((t,e)=>{1e3*t.timestamp>=+a&&null===p[0].startIndex&&(p[0].startIndex=e),1e3*t.timestamp>=+s&&null===p[1].startIndex&&(p[1].startIndex=e),1e3*t.timestamp>=+l&&null===p[2].startIndex&&(p[2].startIndex=e),1e3*t.timestamp>=+c&&null===p[3].startIndex&&(p[3].startIndex=e),1e3*t.timestamp>=+u&&null===p[4].startIndex&&(p[4].startIndex=e),1e3*t.timestamp>=+d&&null===p[5].startIndex&&(p[5].startIndex=e),1e3*t.timestamp>=+h&&null===p[6].startIndex&&(p[6].startIndex=e)}),p[7].startIndex=2,this.chartButtons=p,setTimeout(()=>{null===this.activeChartButtonIndex||null===p[+this.activeChartButtonIndex].startIndex?this.clickOnButton(7):this.clickOnButton(+this.activeChartButtonIndex)},500),this.rangeChart.setOption({grid:{left:"16px",right:"16px",bottom:30,top:5,containLabel:!1},xAxis:{type:"category",data:o.map(t=>t.formatted),axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1}},yAxis:{type:"value",show:!1,scale:!0,splitLine:{show:!1}},series:[{data:o.map(t=>t.price),type:"line",symbolSize:0,lineStyle:{width:0,opacity:0},itemStyle:{opacity:0},emphasis:{lineStyle:{width:0}}}],dataZoom:[{type:"slider",xAxisIndex:0,filterMode:"filter",start:70,end:100,height:46,bottom:10,borderColor:"transparent",backgroundColor:"transparent",fillerColor:"rgba(167, 183, 204, 0.4)",handleSize:"80%"}]}),this.rangeChart.resize()},onCreateTx(){this.showTransactionModal=!1,this.currentTx=null,null===this.currentPortfolioId?this.initApp():(this.fetchPortfolioList(),this.fetchAssets(),this.fetchTransactions())},onCsvImport(){null===this.currentPortfolioId?this.initApp():(this.fetchPortfolioList(),this.fetchAssets(),this.fetchTransactions())},animatePredictionOut(t){if(!this.mainChart)return t();const e=this.mainChart.getOption(),n=t=>{const n=e.series&&e.series.find(e=>e.name===t);return n&&n.data?n.data.slice():[]},i=n("Prediction"),r=n("RangeLower"),o=n("Range");if(0===i.length)return t();const a=i.length,s=performance.now(),l=e=>{const n=Math.min((e-s)/400,1),c=1-Math.pow(1-n,3),u=Math.max(0,Math.floor(a*(1-c)));this.mainChart.setOption({series:[{},{},{data:i.slice(0,u),animationDurationUpdate:0},{data:r.slice(0,u),animationDurationUpdate:0},{data:o.slice(0,u),animationDurationUpdate:0}]}),n<1?this._predictionAnimFrame=requestAnimationFrame(l):(this._predictionAnimFrame=null,t())};this._predictionAnimFrame=requestAnimationFrame(l)},clickOnButton(t){const e=this.chartButtons[t];window.localStorage.setItem("activeChartButtonIndex",t),this.activeChartButtonIndex=t,this.rangeChartData[e.startIndex];const n=e.startIndex/this.rangeChartData.length*100;n!==1/0?this.rangeChart.dispatchAction({type:"dataZoom",start:n===1/0?0:n,end:100}):this.updateMainChart(0,+new Date)}}});i.config.globalProperties.t=B0,i.component("asset-list",U0),i.component("datetime-picker",B1),i.component("transaction-modal",R0),i.component("csv-import-modal",z0),i.component("share-modal",F0),i.component("settings-modal",V0),i.component("create-portfolio",C0),i.component("confirm-delete-portfolio",k0),i.component("confirm-delete-asset",A0),i.component("confirm-delete-tx",D0),i.component("manage-list",T0),i.component("portfolio-list",I0),i.mount("#pf")}(),function(){const t=Ml({data:()=>({show:!1,asset:null}),mounted(){window.addEventListener("addAsset",this.handleExternalCall)},methods:{handleExternalCall(t){this.asset=t.detail.data,this.showPopup()},showPopup(){this.show=!0}},template:z1`
1315 <transaction-modal :asset="asset" :show="show" @on-close="show = false" @on-create="show = flase"></transaction-modal> 1316 `});t.config.globalProperties.t=B0,t.component("transaction-modal",R0),t.component("asset-list",U0),t.component("datetime-picker",B1),t.mount("#pf-add-asset"),window._pfAsset=t}();const Y1=document.documentElement.lang;let $1=document.querySelectorAll("[data-langs]");$1.forEach(t=>{t.onchange=function(){window.location=this.value}}),document.querySelectorAll('link[rel="alternate"]').forEach(t=>{$1.forEach(e=>{let n=t.href,i=t.getAttribute("label")||t.hreflang,r=t.hreflang===Y1,o=new Option(i,n,r,r);r?e.prepend(o):e.appendChild(o)})});let X1=document.getElementById("data-table"),Z1=[...document.querySelectorAll("._data-table")];null!==X1&&Z1.unshift(X1),Z1.forEach(t=>{let e=!1;const n=(n=1,c=null,u=null,d=!1)=>{if(e)return;e=!0,r.destroy();let h=t.dataset.tableUrl;var p=[];t.querySelectorAll("thead tr th").forEach(t=>{p.push({style:t.getAttribute("style"),label:t.textContent,attr:t.dataset.tableAttr,sort:t.dataset.tableSort||!0,fixed:void 0!==t.dataset.fixed})});let f=t.querySelector('[data-table-btn="all"]'),g=null;f&&(g={label:f.innerHTML,url:f.href});let m=t.querySelector('[data-table-btn="pagi"]'),y=null;m&&(y={label:m.innerHTML,url:m.href}),Object(o.d)(Object(o.c)(v,{containerElement:t,saveScrollPosition:d,fixHeaderWidth:i,fixColumns:a,more:!!l,viewAll:g,viewPagi:y,controls:t.dataset.tableControls||1,sparkUrl:t.dataset.tableSpark,columns:p,page:n||!l&&1,search:s?s.value:null,searchPlaceholder:s.getAttribute("placeholder"),sortAttr:c,sortDirection:u,url:h}),t),t.onclick=null};let i=1==t.dataset.tableFixHeaderWidth,r=new m(t,i),a=t.dataset.tableFixColumns,s=t.querySelector("[data-table-search]");s&&s.addEventListener("change",t=>{n()},{once:!0});t.querySelectorAll("[data-table-next]").forEach(e=>{e.addEventListener("click",e=>{let i=parseInt(t.dataset.tablePage)+1;e.preventDefault(),n(i)},{once:!0})});let l=t.querySelector('[data-table-btn="more"]');l&&l.addEventListener("click",t=>{t.preventDefault(),n()},{once:!0}),t.querySelectorAll("a[data-page]").forEach(t=>{t.addEventListener("click",t=>{t.preventDefault(),n(parseInt(t.target.dataset.page)+1)},{once:!0})});t.querySelectorAll("th[data-table-attr]").forEach(t=>{t.addEventListener("click",e=>{if(e.preventDefault(),"0"!=t.dataset.tableSort){let e=t.classList.contains("desc")?"asc":"desc";n(!1,t.dataset.tableAttr,e)}},{once:!0})})});let K1=document.getElementById("portfolio");null!==K1&&n.e(8).then(n.bind(null,54)).then(t=>{let e=t.default;Object(o.d)(Object(o.c)(e,null),K1)});let J1=document.getElementById("chart");null!==J1&&Promise.all([n.e(0),n.e(1),n.e(6)]).then(n.bind(null,43)).then(t=>{let e=t.default,n=J1.dataset;Object(o.d)(Object(o.c)(e,{from:n.from,to:n.to,defaultPeriod:n.defaultPeriod}),J1)});let Q1=document.getElementById("chart-base-on-halving");null!==Q1&&Promise.all([n.e(0),n.e(1),n.e(6)]).then(n.bind(null,44)).then(t=>{let e=t.default,n=Q1.dataset;Object(o.d)(Object(o.c)(e,{symbol:n.symbol,from:n.from,to:n.to,seriesUrl:n.seriesUrl,price:n.price,pricePattern:n.pricePattern,chartButtons:JSON.parse(n.chartButtons)}),Q1)});let t2=document.getElementById("chart-base-on-halving-quote");null!==t2&&Promise.all([n.e(0),n.e(1),n.e(2)]).then(n.bind(null,45)).then(t=>{let e=t.default,n=t2.dataset;Object(o.d)(Object(o.c)(e,{from:n.from,to:n.to,seriesUrl:n.seriesUrl,price:n.price,symbol:n.symbol,pricePattern:n.pricePattern,chartButtons:JSON.parse(n.chartButtons)}),t2)});let e2=document.getElementById("chart-base-on-halving-new");null!==e2&&Promise.all([n.e(0),n.e(1),n.e(6)]).then(n.bind(null,46)).then(t=>{let e=t.default,n=e2.dataset;Object(o.d)(Object(o.c)(e,{from:n.from,to:n.to,seriesUrl:n.seriesUrl,price:n.price,pricePattern:n.pricePattern,chartButtons:JSON.parse(n.chartButtons)}),e2)});let n2=document.getElementById("chart-base-on-halving-quote-new");null!==n2&&Promise.all([n.e(0),n.e(1),n.e(7)]).then(n.bind(null,47)).then(t=>{let e=t.default,n=n2.dataset;Object(o.d)(Object(o.c)(e,{from:n.from,to:n.to,seriesUrl:n.seriesUrl,price:n.price,pricePattern:n.pricePattern,chartButtons:JSON.parse(n.chartButtons)}),n2)});let i2=document.getElementById("chart2");null!==i2&&Promise.all([n.e(0),n.e(1),n.e(6)]).then(n.bind(null,48)).then(t=>{let e=t.default,n=i2.dataset;Object(o.d)(Object(o.c)(e,{from:n.from,to:n.to,currency:n.currency,existingCharts:n.existingCharts}),i2)});
1316let r2=document.querySelectorAll(".world-money-chart");r2.length&&Promise.all([n.e(0),n.e(11)]).then(n.bind(null,49)).then(t=>{let e=t.default;r2.forEach(t=>{let n=t.dataset;Object(o.d)(Object(o.c)(e,{id:t.id,items:JSON.parse(n.items),x:JSON.parse(n.x).map(t=>`${t}%`),title:n.title,subtitle:n.subtitle}),t)})});let o2=document.getElementById("world-money-chart");null!==o2&&Promise.all([n.e(0),n.e(12)]).then(n.bind(null,50)).then(t=>{let e=t.default,n=o2.dataset;Object(o.d)(Object(o.c)(e,{id:"aaa",x:JSON.parse(n.x),series:window.worldMoneyPrediction,title:n.title,subtitle:n.subtitle,current:n.current,currentLabel:n.currentLabel,currencyTpl:n.currencyTpl}),o2)});const a2=new IntersectionObserver(t=>{t.forEach(t=>{const{isIntersecting:e,target:n}=t;e&&(a2.unobserve(n),function(t){l2.pushElement(t)}(n))})},{rootMargin:"0px",threshold:1});var s2="";X1&&(s2=X1.dataset.tableSpark);try{var l2=new g(s2)}catch(t){console.error(t)}document.querySelectorAll(".sparkline").forEach((t,e)=>{a2.observe(t)}),c()(".lozad",{loaded:function(t){try{var e=new Image;e.src=t.getAttribute("data-src"),e.addEventListener("error",function(e){t.src="/image-placeholder.svg"},!1)}catch(t){}}}).observe(),document.querySelectorAll("[data-search]").forEach(t=>{Object(o.d)(Object(o.c)(s,{coinsTitle:t.dataset.coinsTitle,exchangesTitle:t.dataset.exchangesTitle,indexesTitle:t.dataset.indexesTitle,commoditiesTitle:t.dataset.commoditiesTitle}),t)});let c2=document.getElementById("widget-builder");null!==c2&&n.e(10).then(n.bind(null,53)).then(t=>{let e=t.default;Object(o.d)(Object(o.c)(e,null),c2)});let u2=document.getElementById("converter");function d2(){const t=document.querySelectorAll(".nav2-menu0_item_container");t.forEach(t=>{t.style.display="none"});const e=document.querySelector(".nav2-menu0_item_wrapper"),n=document.querySelectorAll(".nav2-menu0_item"),i=document.querySelector("#mobile-nav"),r=e.offsetHeight,o=n.length,a=i.clientHeight-r*o;t.forEach(t=>{t.style.setProperty("--max-height",`${a-26}px`),t.style.display=""})}null!==u2&&n.e(3).then(n.bind(null,55)).then(t=>{let e=t.default,n=u2.dataset,i=n.from,r=n.to,a=n.rate;Object(o.d)(Object(o.c)(e,{from:i,to:r,rate:a}),u2)}),document.querySelectorAll("[data-theme-switcher]").forEach(t=>{t.onchange=(()=>{let t=document.body.classList;t.toggle("night"),t.toggle("night-theme"),document.cookie=["theme="+(t.contains("night")?"night":""),"path=/"].join(";"),window.localStorage.setItem("theme",t.contains("night")?"night":"")})}),window.matchMedia("(max-width: 600px)").addEventListener("change",()=>{}),window.addEventListener("resize",()=>{d2()}),window.mobileMenu={el:document.getElementById("mobile-menu"),open:function(){document.body.classList.add("no-overflow"),this.el.classList.remove("cdf-close"),this.el.classList.add("cdf-open"),d2()},close:function(){document.body.classList.remove("no-overflow"),this.el.classList.remove("cdf-open"),this.el.classList.add("cdf-close")}},window.addEventListener("click",t=>{t.target.contains(window.mobileMenu.el)&&window.mobileMenu.close()});const h2=document.getElementById("top-pairs"),p2=document.getElementById("top-pairs-button"),f2=document.getElementById("top-pairs-block"),g2=document.getElementById("top-pairs-button-close");p2&&(p2.onclick=(()=>{f2.classList.toggle("show")}),window.addEventListener("click",t=>{h2.contains(t.target)||f2.classList.remove("show")}),g2.onclick=(()=>{f2.classList.remove("show")})),window.getElementOffset=function(t){let e=0,n=0;do{e+=t.offsetTop||0,n+=t.offsetLeft||0,t=t.offsetParent}while(t);return{top:e,left:n}},window.getCoords=function(t){var e=t.getBoundingClientRect();return{top:e.top+pageYOffset,left:e.left+pageXOffset}},window.addEventListener("mouseover",t=>{const{target:e}=t;if(e.dataset.title){const{top:t,left:n}=window.getCoords(e),{clientHeight:i,clientWidth:r}=e,o=document.createElement("div"),a=document.createElement("div");let s;o.append(a),o.classList.add("tooltip-content"),o.classList.add("tooltip"),a.innerHTML=e.dataset.title,document.body.append(o),o.style.top=`${t-o.clientHeight-10}px`,o.style.left=`${n+(e.offsetWidth-o.offsetWidth)/2}px`,o.classList.add("tooltip-show"),o.onmouseleave=(()=>{o.remove()}),o.onmouseenter=(()=>{clearTimeout(s)}),o.onclick=(()=>{navigator.clipboard.writeText(+e.dataset.copy).then(function(){o.classList.add("tooltip-copied"),a.innerHTML="Copied",setTimeout(()=>{o.remove()},1e3)}).catch(function(t){console.error("Ðе ÑдалоÑÑ ÑкопиÑоваÑÑ ÑекÑÑ: ",t)})}),setTimeout(()=>{e.onclick=(()=>{navigator.clipboard.writeText(+e.dataset.copy).then(function(){o.classList.add("tooltip-copied"),a.innerHTML="Copied",setTimeout(()=>{o.remove()},1e3)}).catch(function(t){console.error("Ðе ÑдалоÑÑ ÑкопиÑоваÑÑ ÑекÑÑ: ",t)})})},50),e.onmouseleave=(()=>{s=setTimeout(()=>{o.remove()},150)})}}),document.querySelectorAll(".langs-current").forEach(t=>
1316{t.onclick=(()=>(function(t){document.querySelectorAll(".langs-list").forEach(t=>{"undefined"==typeof force?t.classList.toggle("show"):force?t.classList.add("show"):t.classList.remove("show")})})())}),window.addEventListener("click",t=>{document.querySelectorAll(".langs").forEach(e=>{e.contains(t.target)||e.querySelector(".langs-list").classList.remove("show")})}),window.openUrl=((t,e,n)=>{e&&n&&window.gtag&&window.gtag("event","click",{event_label:e,event_category:n}),window.open(t)}),window.openUrl2=((t,e,n,i)=>{n&&i&&window.gtag&&(window.gtag("event","click",{event_label:n,event_category:i}),window.gtag("event",e,{event_label:n,event_category:i})),window.open(t)}),window.triggerGtag=((t,e)=>{t&&e&&window.gtag&&window.gtag("event","click",{event_label:t,event_category:e})});const m2=document.getElementById("history");null!==m2&&n.e(4).then(n.bind(null,51)).then(t=>{let e=t.default,n=m2.dataset;Object(o.d)(Object(o.c)(e,{from:n.from,columnDate:n.columnDate,columnDay:n.columnDay,columnPrice:n.columnPrice,chartD7:n.chartD7,chartH24:n.chartH24,currencyTpl:n.currencyTpl,weekdays:[n.sun,n.mon,n.tue,n.wed,n.thu,n.fri,n.sat]}),m2)});let v2=document.querySelectorAll(".tradingview-widget-component");function y2(t,e,n){const i=document.querySelector(t);if(i){const t=i.querySelector('button[type="submit"]'),r=i.querySelector(".modal-error");r&&(r.classList.remove("modal-error--show"),r.innerHTML=""),i.addEventListener("submit",o=>{t&&(t.classList.add("button--loading"),t.disabled=!0),o.preventDefault();const a=new FormData(i);fetch(e,{method:"POST",body:a,headers:{"X-Guest-Token":q1()}}).then(t=>t.json()).then(t=>{"ok"===t.status?n():r&&(r.classList.add("modal-error--show"),r.innerHTML=Object.values(t.result).map(t=>"<li>"+t+"</li>").join(""))}).catch(t=>console.log(t)).finally(()=>{t&&(t.classList.remove("button--loading"),t.disabled=!1)})})}}v2.length&&n.e(9).then(n.bind(null,52)).then(t=>{const e=t.default;v2.forEach(t=>{let n=t.dataset;Object(o.d)(Object(o.c)(e,{interval:n.interval,symbol:n.symbol,locale:n.locale,largeChartUrl:n.url}),t)})}),window.showLoginForm=function(){const t=document.querySelector("#account");t&&(t.classList.remove("modal-signup"),t.classList.remove("modal-reset"),document.querySelector("#reset-form-success").style.display="none",t.classList.add("modal-login"))},window.showSignupForm=function(){const t=document.querySelector("#account");t&&(t.classList.remove("modal-login"),t.classList.remove("modal-reset"),document.querySelector("#reset-form-success").style.display="none",t.classList.add("modal-signup"))},window.showResetForm=function(){const t=document.querySelector("#account");t&&(document.querySelector("#reset-form").style.display="",document.querySelector("#reset-form input").value="",t.classList.remove("modal-login"),t.classList.remove("modal-signup"),document.querySelector("#reset-form-success").style.display="none",t.classList.add("modal-reset"))},y2("#login-form","/en/api/account/login",()=>{window.location.reload()}),y2("#signup-form","/en/api/account/signup",()=>{document.querySelector("#signup-form").style.display="none",document.querySelector("#code-form").style.display="block",document.querySelector('#code-form input[name="email"]').value=document.querySelector('#signup-form input[name="email"]').value}),y2("#code-form","/en/api/account/verify",()=>{window.location.reload()}),y2("#reset-form","/en/api/account/reset",()=>{document.querySelector("#reset-form").style.display="none",document.querySelector("#reset-form-success").style.display="block"});const b2=document.querySelectorAll(".account-img");b2&&b2.forEach(t=>{t.addEventListener("click",()=>{const e=t.querySelector(".account-menu");e&&e.classList.toggle("account-menu--show")})}),document.body.addEventListener("mousedown",t=>{if(t.target.classList.contains("modal")){if(window._isTwa&&"account"===t.target.id)return;t.target.classList.remove("modal-signup"),t.target.classList.remove("modal-login")}}),document.body.addEventListener("click",t=>{b2.forEach(e=>{if(e&&e.contains(t.target));else{const t=e.querySelector(".account-menu--show");t&&t.classList.remove("account-menu--show")}})}),document.querySelectorAll(".settings-trigger").forEach(t=>{t.addEventListener("click",e=>{e.stopPropagation();const n=t.parentElement.querySelector(".settings-popover__menu");n&&n.classList.toggle("settings-popover__menu--show")})}),document.body.addEventListener("click",t=>{document.querySelectorAll(".settings-popover__menu--show").forEach(e
1316=>{e.closest(".settings-popover").contains(t.target)||e.classList.remove("settings-popover__menu--show")})});const _2=document.querySelector("#delete-account-btn");_2&&_2.addEventListener("click",()=>{if(confirm("Are you sure?")){const t="true"===sessionStorage.getItem("isTWA");window.location.href="/en/account/delete"+(t?"?isTwa=1":"")}})}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.