PageSourceSearch

https://dartpoint.ai/public/js/index.js

js dartpoint.ai collected 2026-10-05 11:56:58 UTC 1,395,244 bytes, 2 lines download raw bytes

1/*! For license information please see index.js.LICENSE.txt */
2(()=>{var e={450:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.initPopups=function(){return i(this,void 0,void 0,(function*(){var e;let t;try{const n=yield fetch("/popup/list");t=null!==(e=(yield n.json()).data)&&void 0!==e?e:[]}catch(e){return}const n=t.filter((e=>{return t=e.seq,!("1"===(0,r.getCookie)(a(t)));var t}));if(!n.length)return;const i=document.createElement("div");i.id="dp-popup-container",i.style.cssText="\n        position: fixed;\n        top: 80px;\n        left: 20px;\n        right: 20px;\n        display: flex;\n        flex-wrap: wrap;\n        gap: 12px;\n        align-items: flex-start;\n        z-index: 9000;\n        pointer-events: none;\n    ",n.forEach((e=>{i.appendChild(function(e){const t=document.createElement("div");t.className="dp-popup",t.dataset.seq=String(e.seq),t.style.cssText="\n        background: #fff;\n        border: 1px solid #ddd;\n        border-radius: 8px;\n        box-shadow: 0 4px 16px rgba(0,0,0,0.18);\n        min-width: 300px;\n        max-width: 480px;\n        pointer-events: auto;\n    ";const n=document.createElement("div");if(n.className="dp-popup-body","image"===e.content_type){const t=document.createElement("img");t.src=e.content,t.alt=e.title,t.style.cssText="display:block; max-width:100%; border-radius:6px 6px 0 0;",n.appendChild(t)}else n.innerHTML=e.content;const i=document.createElement("div");i.className="dp-popup-footer",i.style.cssText="display:flex; justify-content:space-between; align-items:center; padding:8px 16px 12px;";const r=document.createElement("button");r.className="dp-popup-hide-today",r.textContent="오늘 하루 보지 않기",r.style.cssText="background:none; border:none; font-size:12px; color:#888; cursor:pointer; padding:0;",r.addEventListener("click",(()=>{!function(e){const t=new Date;t.setHours(24,0,0,0),document.cookie=`${a(e)}=1; expires=${t.toUTCString()}; path=/`}(e.seq),s(t)}));const o=document.createElement("button");return o.className="dp-popup-close",o.textContent="닫기",o.style.cssText="background:none; border:1px solid #ccc; border-radius:4px; font-size:12px; color:#555; cursor:pointer; padding:4px 10px;",o.addEventListener("click",(()=>{s(t)})),i.appendChild(r),i.appendChild(o),t.appendChild(n),t.appendChild(i),t}(e))})),document.body.appendChild(i)}))};const r=n(1966),o="popup_hidden_";function a(e){const t=new Date,n=`${t.getFullYear()}${String(t.getMonth()+1).padStart(2,"0")}${String(t.getDate()).padStart(2,"0")}`;return`${o}${e}_${n}`}function s(e){e.remove();const t=document.getElementById("dp-popup-container");t&&0===t.children.length&&t.remove()}},803:function(e,t,n){!function(e){"use strict";var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)};function i(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var r=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},o=new function(){this.browser=new r,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?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?o.worker=!0:!o.hasGlobalWindow||"Deno"in window?(o.node=!0,o.svgSupported=!0):function(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);
vendor: 25,425 bytes, line 2
2i&&(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),t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,o);var a="sans-serif",s="12px "+a;var l,u,c=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){var i=String.fromCharCode(n+32),r=(e.charCodeAt(n)-20)/100;t[i]=r}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),d={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!l){var n=d.createCanvas();l=n&&n.getContext("2d")}if(l)return u!==t&&(u=l.font=t||s),l.measureText(e);e=e||"";var i=/((?:\d+)?\.?\d*)px/.exec(t=t||s),r=i&&+i[1]||12,o=0;if(t.indexOf("mono")>=0)o=r*e.length;else for(var a=0;a<e.length;a++){var p=c[e[a]];o+=null==p?r:p*r}return{width:o}},loadImage:function(e,t,n){var i=new Image;return i.onload=t,i.onerror=n,i.src=e,i}};function p(e){for(var t in d)e[t]&&(d[t]=e[t])}var h=V(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),f=V(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),g=Object.prototype.toString,m=Array.prototype,v=m.forEach,y=m.filter,x=m.slice,w=m.map,_=function(){}.constructor,b=_?_.prototype:null,S="__proto__",M=2311;function T(){return M++}function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function I(e){if(null==e||"object"!=typeof e)return e;var t=e,n=g.call(e);if("[object Array]"===n){if(!he(e)){t=[];for(var i=0,r=e.length;i<r;i++)t[i]=I(e[i])}}else if(f[n]){if(!he(e)){var o=e.constructor;if(o.from)t=o.from(e);else for(t=new o(e.length),i=0,r=e.length;i<r;i++)t[i]=e[i]}}else if(!h[n]&&!he(e)&&!Q(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==S&&(t[a]=I(e[a]));return t}function A(e,t,n){if(!Z(t)||!Z(e))return n?I(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==S){var r=e[i],o=t[i];!Z(o)||!Z(r)||$(o)||$(r)||Q(o)||Q(r)||K(o)||K(r)||he(o)||he(r)?!n&&i in e||(e[i]=I(t[i])):A(r,o,n)}return e}function D(e,t){for(var n=e[0],i=1,r=e.length;i<r;i++)n=A(n,e[i],t);return n}function k(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==S&&(e[n]=t[n]);return e}function L(e,t,n){for(var i=H(t),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}return e}var E=d.createCanvas;function P(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1}function O(e,t){var n=e.prototype;function i(){}for(var r in i.prototype=t.prototype,e.prototype=new i,n)n.hasOwnProperty(r)&&(e.prototype[r]=n[r]);e.prototype.constructor=e,e.superClass=t}function R(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else L(e,t,n)}function N(e){return!!e&&"string"!=typeof e&&"number"==typeof e.length}function z(e,t,n){if(e&&t)if(e.forEach&&e.forEach===v)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function B(e,t,n){if(!e)return[];if(!t)return se(e);if(e.map&&e.map===w)return e.map(t,n);for(var i=[],r=0,o=e.length;r<o;r++)i.push(t.call(n,e[r],r,e));return i}function V(e,t,n,i){if(e&&t){for(var r=0,o=e.length;r<o;r++)n=t.call(i,n,e[r],r,e);return n}}function F(e,t,n){if(!e)return[];if(!t)return se(e);if(e.filter&&e.filter===y)return e.filter(t,n);for(var i=[],r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}function G(e,t,n){if(e&&t)for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e))return e[i]}function H(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var W=b&&Y(b.bind)?b.call.bind(b.bind):function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return e.apply(t,n.concat(x.call(arguments)))}};function j(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(x.call(arguments)))}}function $(e){return Array.isArray?Array.isArray(e):"[object Array]"===g.call(e)}function Y(e){return"function"==typeof e}function X(e){return"string"==typeof e}function q(e){return"[object String]"===g.call(e)}function U(e){return"number"==typeof e}function Z(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function K(e){return!!h[g.call(e)]}function J(e){return!!f[g.call(e)]}function Q(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function ee(e){return null!=e.colorStops}function te(e){return null!=e.image}function ne(e){return"[object RegExp]"===g.call(e)}function ie(e){return e!=e}function re(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e.length;n<i;n++)if(null!=e[n])return e[n]}function oe(e,t){return null!=e?e:t}function ae(e,t,n){return null!=e?e:null!=t?t:n}function se(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return x.apply(e,t)}function le(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function ue(e,t){if(!e)throw new Error(t)}function ce(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var de="__ec_primitive__";function pe(e){e[de]=!0}function he(e){return e[de]}var fe=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return H(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),ge="function"==typeof Map;var me=function(){function e(t){var n=$(t);this.data=ge?new Map:new fe;var i=this;function r(e,t){n?i.set(e,t):i.set(t,e)}t instanceof e?t.each(r):t&&z(t,r)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach((function(n,i){e.call(t,n,i)}))},e.prototype.keys=function(){var e=this.data.keys();return ge?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function ve(e){return new me(e)}function ye(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];var r=e.length;for(i=0;i<t.length;i++)n[i+r]=t[i];return n}function xe(e,t){var n;if(Object.create)n=Object.create(e);else{var i=function(){};i.prototype=e,n=new i}return t&&k(n,t),n}function we(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function _e(e,t){return e.hasOwnProperty(t)}function be(){}var Se=180/Math.PI,Me=Object.freeze({__proto__:null,guid:T,logError:C,clone:I,merge:A,mergeAll:D,extend:k,defaults:L,createCanvas:E,indexOf:P,inherits:O,mixin:R,isArrayLike:N,each:z,map:B,reduce:V,filter:F,find:G,keys:H,bind:W,curry:j,isArray:$,isFunction:Y,isString:X,isStringSafe:q,isNumber:U,isObject:Z,isBuiltInObject:K,isTypedArray:J,isDom:Q,isGradientObject:ee,isImagePatternObject:te,isRegExp:ne,eqNaN:ie,retrieve:re,retrieve2:oe,retrieve3:ae,slice:se,normalizeCssArray:le,assert:ue,trim:ce,setAsPrimitive:pe,isPrimitive:he,HashMap:me,createHashMap:ve,concatArray:ye,createObject:xe,disableUserSelect:we,hasOwn:_e,noop:be,RADIAN_TO_DEGREE:Se});function Te(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function Ce(e,t){return e[0]=t[0],e[1]=t[1],e}function Ie(e){return[e[0],e[1]]}function Ae(e,t,n){return e[0]=t,e[1]=n,e}function De(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function ke(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function Le(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Ee(e){return Math.sqrt(Oe(e))}var Pe=Ee;function Oe(e){return e[0]*e[0]+e[1]*e[1]}var Re=Oe;function Ne(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function ze(e,t){var n=Ee(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Be(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ve=Be;function Fe(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ge=Fe;function He(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function We(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function je(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function $e(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Ye=Object.freeze({__proto__:null,create:Te,copy:Ce,clone:Ie,set:Ae,add:De,scaleAndAdd:ke,sub:Le,len:Ee,length:Pe,lenSquare:Oe,lengthSquare:Re,mul:function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e},div:function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]},scale:Ne,normalize:ze,distance:Be,dist:Ve,distanceSquare:Fe,distSquare:Ge,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e},lerp:He,applyTransform:We,min:je,max:$e}),Xe=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},qe=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Xe(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(r,o,e),this.handler.dispatchToElement(new Xe(t,e),"drag",e.event);var a=this.handler.findHover(n,i,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Xe(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new Xe(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Xe(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Xe(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),Ue=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof t&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),r[e]||(r[e]=[]);for(var a=0;a<r[e].length;a++)if(r[e][a].h===n)return this;var s={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[e].length-1,u=r[e][l];return u&&u.callAtLast?r[e].splice(l,0,s):r[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],r=0,o=n[e].length;r<o;r++)n[e][r].h!==t&&i.push(n[e][r]);n[e]=i}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var o=t.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var o=t.length,a=t[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(e,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,t[0]);break;case 2:u.h.call(a,t[0],t[1]);break;default:u.h.apply(a,t.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),Ze=Math.log(2);function Ke(e,t,n,i,r,o){var a=i+"-"+r,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~r)/Ze);return e[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var d=0,p=0,h=0;p<s;p++){var f=1<<p;f&r||(d+=(h%2?-1:1)*e[n][p]*Ke(e,t-1,c,u,r|f,o),h++)}return o[a]=d,d}function Je(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},r=Ke(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)*Ke(n,7,0===a?1:0,1<<a,1<<s,i)/r*t[a];return function(e,t,n){var i=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/i,e[1]=(t*o[3]+n*o[4]+o[5])/i}}}var Qe="___zrEVENTSAVED",et=[];function tt(e,t,n,i,r){if(t.getBoundingClientRect&&o.domSupported&&!nt(t)){var a=t[Qe]||(t[Qe]={}),s=function(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,p=c.left,h=c.top;a.push(p,h),l=l&&o&&p===o[d]&&h===o[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&r?r:(t.srcCoords=a,t[i]=n?Je(s,a):Je(a,s))}(function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,a),a,r);if(s)return s(e,n,i),!0}return!1}function nt(e){return"CANVAS"===e.nodeName.toUpperCase()}var it=/([&<>"'])/g,rt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ot(e){return null==e?"":(e+"").replace(it,(function(e,t){return rt[t]}))}var at=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,st=[],lt=o.browser.firefox&&+o.browser.version.split(".")[0]<39;function ut(e,t,n,i){return n=n||{},i?ct(e,t,n):lt&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):ct(e,t,n),n}function ct(e,t,n){if(o.domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(nt(e)){var a=e.getBoundingClientRect();return n.zrX=i-a.left,void(n.zrY=r-a.top)}if(tt(st,e,i,r))return n.zrX=st[0],void(n.zrY=st[1])}n.zrX=n.zrY=0}function dt(e){return e||window.event}function pt(e,t,n){if(null!=(t=dt(t)).zrX)return t;var i=t.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];r&&ut(e,r,t,n)}else{ut(e,t,t,n);var o=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;return null==n||null==i?t:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&at.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function ht(e,t,n,i){e.addEventListener(t,n,i)}var ft=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function gt(e){return 2===e.which||3===e.which}var mt=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},o=0,a=i.length;o<a;o++){var s=i[o],l=ut(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},e.prototype._recognize=function(e){for(var t in yt)if(yt.hasOwnProperty(t)){var n=yt[t](this._track,e);if(n)return n}},e}();function vt(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var yt={pinch:function(e,t){var n,i=e.length;if(i){var r=(e[i-1]||{}).points,o=(e[i-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=vt(r)/vt(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((n=r)[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function xt(){return[1,0,0,1,0,0]}function wt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function _t(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function bt(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function St(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Mt(e,t,n,i){void 0===i&&(i=[0,0]);var r=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),d=Math.cos(n);return e[0]=r*d+s*c,e[1]=-r*c+s*d,e[2]=o*d+l*c,e[3]=-o*c+d*l,e[4]=d*(a-i[0])+c*(u-i[1])+i[0],e[5]=d*(u-i[1])-c*(a-i[0])+i[1],e}function Tt(e,t,n){var i=n[0],r=n[1];return e[0]=t[0]*i,e[1]=t[1]*r,e[2]=t[2]*i,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*r,e}function Ct(e,t){var n=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*i;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-a*r)*l,e[5]=(o*r-n*s)*l,e):null}function It(e){var t=[1,0,0,1,0,0];return _t(t,e),t}var At=Object.freeze({__proto__:null,create:xt,identity:wt,copy:_t,mul:bt,translate:St,rotate:Mt,scale:Tt,invert:Ct,clone:It}),Dt=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},e.lerp=function(e,t,n,i){var r=1-i;e.x=r*t.x+i*n.x,e.y=r*t.y+i*n.y},e}(),kt=Math.min,Lt=Math.max,Et=new Dt,Pt=new Dt,Ot=new Dt,Rt=new Dt,Nt=new Dt,zt=new Dt,Bt=function(){function e(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return e.prototype.union=function(e){var t=kt(e.x,this.x),n=kt(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lt(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lt(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,r=[1,0,0,1,0,0];return St(r,r,[-t.x,-t.y]),Tt(r,r,[n,i]),St(r,r,[e.x,e.y]),r},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,p=!(o<l||u<r||s<c||d<a);if(n){var h=1/0,f=0,g=Math.abs(o-l),m=Math.abs(u-r),v=Math.abs(s-c),y=Math.abs(d-a),x=Math.min(g,m),w=Math.min(v,y);o<l||u<r?x>f&&(f=x,g<m?Dt.set(zt,-g,0):Dt.set(zt,m,0)):x<h&&(h=x,g<m?Dt.set(Nt,g,0):Dt.set(Nt,-m,0)),s<c||d<a?w>f&&(f=w,v<y?Dt.set(zt,0,-v):Dt.set(zt,0,y)):x<h&&(h=x,v<y?Dt.set(Nt,0,v):Dt.set(Nt,0,-y))}return n&&Dt.copy(n,p?Nt:zt),p},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,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 t.x=n.x*r+a,t.y=n.y*o+s,t.width=n.width*r,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Et.x=Ot.x=n.x,Et.y=Rt.y=n.y,Pt.x=Rt.x=n.x+n.width,Pt.y=Ot.y=n.y+n.height,Et.transform(i),Rt.transform(i),Pt.transform(i),Ot.transform(i),t.x=kt(Et.x,Pt.x,Ot.x,Rt.x),t.y=kt(Et.y,Pt.y,Ot.y,Rt.y);var l=Lt(Et.x,Pt.x,Ot.x,Rt.x),u=Lt(Et.y,Pt.y,Ot.y,Rt.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}(),Vt="silent";function Ft(){ft(this.event)}var Gt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return i(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ue),Ht=function(e,t){this.x=e,this.y=t},Wt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],jt=new Bt(0,0,0,0),$t=function(e){function t(t,n,i,r,o){var a=e.call(this)||this;return a._hovered=new Ht(0,0),a.storage=t,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new Gt,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new qe(a),a}return i(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(z(Wt,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,i=qt(this,t,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 Ht(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ht(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var i=(e=e||{}).target;if(!i||!i.silent){for(var r="on"+t,o=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.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:Ft}}(t,e,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(t,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"==typeof e[r]&&e[r].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){var i=this.storage.getDisplayList(),r=new Ht(e,t);if(Xt(i,r,e,t,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=ne
vendor: 4,107 bytes, line 2
2w Bt(e-s,t-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(jt.copy(c.getBoundingRect()),c.transform&&jt.applyTransform(c.transform),jt.intersect(l)&&o.push(c))}if(o.length)for(var d=Math.PI/12,p=2*Math.PI,h=0;h<s;h+=4)for(var f=0;f<p;f+=d)if(Xt(o,r,e+h*Math.cos(f),t+h*Math.sin(f),n),r.target)return r}return r},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new mt);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var r=i.type;e.gestureEvent=r;var o=new Ht;o.target=i.target,this.dispatchToElement(o,r,i.event)}},t}(Ue);function Yt(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var i=e,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(t,n))return!1}i.silent&&(r=!0),i=i.__hostTarget||i.parent}return!r||Vt}return!1}function Xt(e,t,n,i,r){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==r&&!a.ignore&&(s=Yt(a,n,i))&&(!t.topTarget&&(t.topTarget=a),s!==Vt)){t.target=a;break}}}function qt(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){$t.prototype[e]=function(t){var n,i,r=t.zrX,o=t.zrY,a=qt(this,r,o);if("mouseup"===e&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||Ve(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));function Ut(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){for(;r<n&&i(e[r],e[r-1])<0;)r++;!function(e,t,n){for(n--;t<n;){var i=e[t];e[t++]=e[n],e[n--]=i}}(e,t,r)}else for(;r<n&&i(e[r],e[r-1])>=0;)r++;return r-t}function Zt(e,t,n,i,r){for(i===t&&i++;i<n;i++){for(var o,a=e[i],s=t,l=i;s<l;)r(a,e[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=a}}function Kt(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])>0){for(s=i-r;l<s&&o(e,t[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(e,t[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function Jt(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])<0){for(s=r+1;l<s&&o(e,t[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(e,t[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 c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Qt(e,t){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],d=i[s+1];i[s]=u+d,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=Jt(e[c],e,l,u,0,t);l+=p,0!=(u-=p)&&0!==(d=Kt(e[l+u-1],e,c,d,d-1,t))&&(u<=d?function(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=e[n+l];var u=0,c=o,d=n;if(e[d++]=e[c++],0!=--s)if(1!==i){for(var p,h,f,g=r;;){p=0,h=0,f=!1;do{if(t(e[c],a[u])<0){if(e[d++]=e[c++],h++,p=0,0==--s){f=!0;break}}else if(e[d++]=a[u++],p++,h=0,1==--i){f=!0;break}}while((p|h)<g);if(f)break;do{if(0!==(p=Jt(e[c],a,u,i,0,t))){for(l=0;l<p;l++)e[d+l]=a[u+l];if(d+=p,u+=p,(i-=p)<=1){f=!0;break}}if(e[d++]=e[c++],0==--s){f=!0;break}if(0!==(h=Kt(a[u],e,c,s,0,t))){for(l=0;l<h;l++)e[d+l]=e[c+l];if(d+=h,c+=h,0==(s-=h)){f=!0;break}}if(e[d++]=a[u++],1==--i){f=!0;break}g--}while(p>=7||h>=7);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)e[d+l]=e[c+l];e[d+s]=a[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)e[d+l]=a[u+l]}}else{for(l=0;l<s;l++)e[d+l]=e[c+l];e[d+s]=a[u]}else for(l=0;l<i;l++)e[d+l]=a[u+l]}(l,u,c,d):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=e[o+l];var u=n+i-1,c=s-1,d=o+s-1,p=0,h=0;if(e[d--]=e[u--],0!=--i)if(1!==s){for(var f=r;;){var g=0,m=0,v=!1;do{if(t(a[c],e[u])<0){if(e[d--]=e[u--],g++,m=0,0==--i){v=!0;break}}else if(e[d--]=a[c--],m++,g=0,1==--s){v=!0;break}}while((g|m)<f);if(v)break;
vendor: 6,285 bytes, line 2
2do{if(0!=(g=i-Jt(a[c],e,n,i,i-1,t))){for(i-=g,h=1+(d-=g),p=1+(u-=g),l=g-1;l>=0;l--)e[h+l]=e[p+l];if(0===i){v=!0;break}}if(e[d--]=a[c--],1==--s){v=!0;break}if(0!=(m=s-Kt(e[u],a,0,s,s-1,t))){for(s-=m,h=1+(d-=m),p=1+(c-=m),l=0;l<m;l++)e[h+l]=a[p+l];if(s<=1){v=!0;break}}if(e[d--]=e[u--],0==--i){v=!0;break}f--}while(g>=7||m>=7);if(v)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(h=1+(d-=i),p=1+(u-=i),l=i-1;l>=0;l--)e[h+l]=e[p+l];e[d]=a[c]}else{if(0===s)throw new Error;for(p=d-(s-1),l=0;l<s;l++)e[p+l]=a[l]}}else{for(h=1+(d-=i),p=1+(u-=i),l=i-1;l>=0;l--)e[h+l]=e[p+l];e[d]=a[c]}else for(p=d-(s-1),l=0;l<s;l++)e[p+l]=a[l]}(l,u,c,d))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var e=o-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;s(e)}},forceMergeRuns:function(){for(;o>1;){var e=o-2;e>0&&i[e-1]<i[e+1]&&e--,s(e)}},pushRun:function(e,t){n[o]=e,i[o]=t,o+=1}}}function en(e,t,n,i){n||(n=0),i||(i=e.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)Zt(e,n,i,n+(o=Ut(e,n,i,t)),t);else{var a=Qt(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(r);do{if((o=Ut(e,n,i,t))<s){var l=r;l>s&&(l=s),Zt(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var tn=!1;function nn(){tn||(tn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function rn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var on=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rn}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,r=t.length;i<r;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,en(n,rn)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t=t?t.slice():[];for(var r=i,o=e;r;)r.parent=o,r.updateTransform(),t.push(r),o=r,r=r.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(nn(),u.z=0),isNaN(u.z2)&&(nn(),u.z2=0),isNaN(u.zlevel)&&(nn(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var i=P(this._roots,e);i>=0&&this._roots.splice(i,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),an=o.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},sn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-sn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*sn.bounceIn(2*e):.5*sn.bounceOut(2*e-1)+.5}},ln=Math.pow,un=Math.sqrt,cn=1e-8,dn=1e-4,pn=un(3),hn=1/3,fn=Te(),gn=Te(),mn=Te();function vn(e){return e>-1e-8&&e<cn}function yn(e){return e>cn||e<-1e-8}function xn(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function wn(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)}
vendor: 10,713 bytes, line 2
2function _n(e,t,n,i,r,o){var a=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-r,c=s*s-3*a*l,d=s*l-9*a*u,p=l*l-3*s*u,h=0;if(vn(c)&&vn(d))vn(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[h++]=M);else{var f=d*d-4*c*p;if(vn(f)){var g=d/c,m=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[h++]=M),m>=0&&m<=1&&(o[h++]=m)}else if(f>0){var v=un(f),y=c*s+1.5*a*(-d+v),x=c*s+1.5*a*(-d-v);(M=(-s-((y=y<0?-ln(-y,hn):ln(y,hn))+(x=x<0?-ln(-x,hn):ln(x,hn))))/(3*a))>=0&&M<=1&&(o[h++]=M)}else{var w=(2*c*s-3*a*d)/(2*un(c*c*c)),_=Math.acos(w)/3,b=un(c),S=Math.cos(_),M=(-s-2*b*S)/(3*a),T=(m=(-s+b*(S+pn*Math.sin(_)))/(3*a),(-s+b*(S-pn*Math.sin(_)))/(3*a));M>=0&&M<=1&&(o[h++]=M),m>=0&&m<=1&&(o[h++]=m),T>=0&&T<=1&&(o[h++]=T)}}return h}function bn(e,t,n,i,r){var o=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(vn(a))yn(o)&&(c=-s/o)>=0&&c<=1&&(r[l++]=c);else{var u=o*o-4*a*s;if(vn(u))r[0]=-o/(2*a);else if(u>0){var c,d=un(u),p=(-o-d)/(2*a);(c=(-o+d)/(2*a))>=0&&c<=1&&(r[l++]=c),p>=0&&p<=1&&(r[l++]=p)}}return l}function Sn(e,t,n,i,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,d=(c-u)*r+u;o[0]=e,o[1]=a,o[2]=u,o[3]=d,o[4]=d,o[5]=c,o[6]=l,o[7]=i}function Mn(e,t,n,i,r,o,a,s,l,u,c){var d,p,h,f,g,m=.005,v=1/0;fn[0]=l,fn[1]=u;for(var y=0;y<1;y+=.05)gn[0]=xn(e,n,r,a,y),gn[1]=xn(t,i,o,s,y),(f=Ge(fn,gn))<v&&(d=y,v=f);v=1/0;for(var x=0;x<32&&!(m<dn);x++)p=d-m,h=d+m,gn[0]=xn(e,n,r,a,p),gn[1]=xn(t,i,o,s,p),f=Ge(gn,fn),p>=0&&f<v?(d=p,v=f):(mn[0]=xn(e,n,r,a,h),mn[1]=xn(t,i,o,s,h),g=Ge(mn,fn),h<=1&&g<v?(d=h,v=g):m*=.5);return c&&(c[0]=xn(e,n,r,a,d),c[1]=xn(t,i,o,s,d)),un(v)}function Tn(e,t,n,i,r,o,a,s,l){for(var u=e,c=t,d=0,p=1/l,h=1;h<=l;h++){var f=h*p,g=xn(e,n,r,a,f),m=xn(t,i,o,s,f),v=g-u,y=m-c;d+=Math.sqrt(v*v+y*y),u=g,c=m}return d}function Cn(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}function In(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function An(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function Dn(e,t,n,i,r){var o=(t-e)*i+e,a=(n-t)*i+t,s=(a-o)*i+o;r[0]=e,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function kn(e,t,n,i,r,o,a,s,l){var u,c=.005,d=1/0;fn[0]=a,fn[1]=s;for(var p=0;p<1;p+=.05)gn[0]=Cn(e,n,r,p),gn[1]=Cn(t,i,o,p),(m=Ge(fn,gn))<d&&(u=p,d=m);d=1/0;for(var h=0;h<32&&!(c<dn);h++){var f=u-c,g=u+c;gn[0]=Cn(e,n,r,f),gn[1]=Cn(t,i,o,f);var m=Ge(gn,fn);if(f>=0&&m<d)u=f,d=m;else{mn[0]=Cn(e,n,r,g),mn[1]=Cn(t,i,o,g);var v=Ge(mn,fn);g<=1&&v<d?(u=g,d=v):c*=.5}}return l&&(l[0]=Cn(e,n,r,u),l[1]=Cn(t,i,o,u)),un(d)}function Ln(e,t,n,i,r,o,a){for(var s=e,l=t,u=0,c=1/a,d=1;d<=a;d++){var p=d*c,h=Cn(e,n,r,p),f=Cn(t,i,o,p),g=h-s,m=f-l;u+=Math.sqrt(g*g+m*m),s=h,l=f}return u}var En=/cubic-bezier\(([0-9,\.e ]+)\)/;function Pn(e){var t=e&&En.exec(e);if(t){var n=t[1].split(","),i=+ce(n[0]),r=+ce(n[1]),o=+ce(n[2]),a=+ce(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:_n(0,i,o,1,e,s)&&xn(0,r,a,1,s[0])}}}var On=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||be,this.ondestroy=e.ondestroy||be,this.onrestart=e.onrestart||be,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,i=e-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=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Y(e)?e:sn[e]||Pn(e)},e}(),Rn=function(e){this.value=e},Nn=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Rn(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),zn=function(){function e(e){this._list=new Nn,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,r=null;if(null==i[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new Rn(t),a.key=e,n.insertEntry(a),i[e]=a}return r},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Bn={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 Vn(e){return(e=Math.round(e))<0?0:e>255?255:e}function Fn(e){return e<0?0:e>1?1:e}function Gn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Vn(parseFloat(t)/100*255):Vn(parseInt(t,10))}function Hn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Fn(parseFloat(t)/100):Fn(parseFloat(t))}function Wn(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function jn(e,t,n){return e+(t-e)*n}function $n(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function Yn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Xn=new zn(20),qn=null;function Un(e,t){qn&&Yn(qn,t),qn=Xn.put(e,qn||t.slice())}function Zn(e,t){if(e){t=t||[];var n=Xn.get(e);if(n)return Yn(t,n);var i=(e+="").replace(/ /g,"").toLowerCase();if(i in Bn)return Yn(t,Bn[i]),Un(e,t),t;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?($n(t,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),Un(e,t),t):void $n(t,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?($n(t,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),Un(e,t),t):void $n(t,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?$n(t,+u[0],+u[1],+u[2],1):$n(t,0,0,0,1);c=Hn(u.pop());case"rgb":return u.length>=3?($n(t,Gn(u[0]),Gn(u[1]),Gn(u[2]),3===u.length?c:Hn(u[3])),Un(e,t),t):void $n(t,0,0,0,1);case"hsla":return 4!==u.length?void $n(t,0,0,0,1):(u[3]=Hn(u[3]),Kn(u,t),Un(e,t),t);case"hsl":return 3!==u.length?void $n(t,0,0,0,1):(Kn(u,t),Un(e,t),t);default:return}}$n(t,0,0,0,1)}}function Kn(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=Hn(e[1]),r=Hn(e[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return $n(t=t||[],Vn(255*Wn(a,o,n+1/3)),Vn(255*Wn(a,o,n)),Vn(255*Wn(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function Jn(e,t){var n=Zn(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return oi(n,4===n.length?"rgba":"rgb")}}function Qn(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];
vendor: 15,263 bytes, line 2
2var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=t[r],s=t[o],l=i-r;return n[0]=Vn(jn(a[0],s[0],l)),n[1]=Vn(jn(a[1],s[1],l)),n[2]=Vn(jn(a[2],s[2],l)),n[3]=Fn(jn(a[3],s[3],l)),n}}var ei=Qn;function ti(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=Zn(t[r]),s=Zn(t[o]),l=i-r,u=oi([Vn(jn(a[0],s[0],l)),Vn(jn(a[1],s[1],l)),Vn(jn(a[2],s[2],l)),Fn(jn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var ni=ti;function ii(e,t,n,i){var r=Zn(e);if(e)return r=function(e){if(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,d=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?t=p-d:r===s?t=1/3+c-p:o===s&&(t=2/3+d-c),t<0&&(t+=1),t>1&&(t-=1)}var h=[360*t,n,u];return null!=e[3]&&h.push(e[3]),h}}(r),null!=t&&(r[0]=function(e){return(e=Math.round(e))<0?0:e>360?360:e}(t)),null!=n&&(r[1]=Hn(n)),null!=i&&(r[2]=Hn(i)),oi(Kn(r),"rgba")}function ri(e,t){var n=Zn(e);if(n&&null!=t)return n[3]=Fn(t),oi(n,"rgba")}function oi(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function ai(e,t){var n=Zn(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var si=new zn(100);function li(e){if(X(e)){var t=si.get(e);return t||(t=Jn(e,-.1),si.put(e,t)),t}if(ee(e)){var n=k({},e);return n.colorStops=B(e.colorStops,(function(e){return{offset:e.offset,color:Jn(e.color,-.1)}})),n}return e}var ui=Object.freeze({__proto__:null,parse:Zn,lift:Jn,toHex:function(e){var t=Zn(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)},fastLerp:Qn,fastMapToColor:ei,lerp:ti,mapToColor:ni,modifyHSL:ii,modifyAlpha:ri,stringify:oi,lum:ai,random:function(){return oi([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},liftColor:li}),ci=Math.round;function di(e){var t;if(e&&"transparent"!==e){if("string"==typeof e&&e.indexOf("rgba")>-1){var n=Zn(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var pi=1e-4;function hi(e){return e<pi&&e>-1e-4}function fi(e){return ci(1e3*e)/1e3}function gi(e){return ci(1e4*e)/1e4}var mi={left:"start",right:"end",center:"middle",middle:"middle"};function vi(e){return e&&!!e.image}function yi(e){return vi(e)||function(e){return e&&!!e.svgElement}(e)}function xi(e){return"linear"===e.type}function wi(e){return"radial"===e.type}function _i(e){return e&&("linear"===e.type||"radial"===e.type)}function bi(e){return"url(#"+e+")"}function Si(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Mi(e){var t=e.x||0,n=e.y||0,i=(e.rotation||0)*Se,r=oe(e.scaleX,1),o=oe(e.scaleY,1),a=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+ci(a*Se)+"deg, "+ci(s*Se)+"deg)"),l.join(" ")}var Ti=o.hasGlobalWindow&&Y(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"undefined"!=typeof Buffer?function(e){return Buffer.from(e).toString("base64")}:function(e){return C("Base64 isn't natively supported in the current environment."),null},Ci=Array.prototype.slice;function Ii(e,t,n){return(t-e)*n+e}function Ai(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=Ii(t[o],n[o],i);return e}function Di(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=t[o]+n[o]*i;return e}function ki(e,t,n,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*i}return e}function Li(e,t){for(var n=e.length,i=t.length,r=n>i?t:e,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 Ei(e,t,n){var i=e,r=t;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]:Ci.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 u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Pi(e){if(N(e)){var t=e.length;if(N(e[0])){for(var n=[],i=0;i<t;i++)n.push(Ci.call(e[i]));return n}return Ci.call(e)}return e}function Oi(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function Ri(e){return 4===e||5===e}function Ni(e){return 1===e||2===e}var zi=[0,0,0,0],Bi=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=t;if(N(t)){var l=function(e){return N(e&&e[0])?2:1}(t);a=l,(1===l&&!U(t[0])||2===l&&!U(t[0][0]))&&(o=!0)}else if(U(t)&&!ie(t))a=0;else if(X(t))if(isNaN(+t)){var u=Zn(t);u&&(s=u,a=3)}else a=0;else if(ee(t)){var c=k({},s);c.colorStops=B(t.colorStops,(function(e){return{offset:e.offset,color:Zn(e.color)}})),xi(t)?a=4:wi(t)&&(a=5),s=c}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=Y(n)?n:sn[n]||Pn(n)),i.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Ni(i),l=Ri(i),u=0;u<r;u++){var c=n[u],d=c.value,p=o.value;c.percent=c.time/e,a||(s&&u!==r-1?Ei(d,p,i):l&&Li(d.colorStops,p.colorStops))}if(!a&&5!==i&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;var h=n[0].value;for(u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-h:3===i?n[u].additiveValue=Di([],n[u].value,h,-1):Ni(i)&&(n[u].additiveValue=1===i?Di([],n[u].value,h,-1):ki([],n[u].value,h,-1))}},e.prototype.step=function(e,t){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,u=l.length,c=this.propName,d=3===s,p=this._lastFr,h=Math.min;if(1===u)i=r=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=h(p+1,u-1);n>=0&&!(l[n].percent<=t);n--);n=h(n,u-2)}else{for(n=p;n<u&&!(l[n].percent>t);n++);n=h(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=t;var f=r.percent-i.percent,g=0===f?1:h((t-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var m=o?this._additiveValue:d?zi:e[c];if(!Ni(s)&&!d||m||(m=this._additiveValue=[]),this.discrete)e[c]=g<1?i.rawValue:r.rawValue;else if(Ni(s))1===s?Ai(m,i[a],r[a],g):function(e,t,n,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=Ii(t[a][s],n[a][s],i)}}(m,i[a],r[a],g);else if(Ri(s)){var v=i[a],y=r[a],x=4===s;e[c]={type:x?"linear":"radial",x:Ii(v.x,y.x,g),y:Ii(v.y,y.y,g),colorStops:B(v.colorStops,(function(e,t){var n=y.colorStops[t];return{offset:Ii(e.offset,n.offset,g),color:Oi(Ai([],e.color,n.color,g))}})),global:y.global},x?(e[c].x2=Ii(v.x2,y.x2,g),e[c].y2=Ii(v.y2,y.y2,g)):e[c].r=Ii(v.r,y.r,g)}else if(d)Ai(m,i[a],r[a],g),o||(e[c]=Oi(m));else{var w=Ii(i[a],r[a],g);o?this._additiveValue=w:e[c]=w}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;0===t?e[n]=e[n]+i:3===t?(Zn(e[n],zi),Di(zi,zi,i,1),e[n]=Oi(zi)):1===t?Di(e[n],e[n],i,1):2===t&&ki(e[n],e[n],i,1)},e}(),Vi=function(){function e(e,t,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i?C("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,H(t),n)},e.prototype.whenWithKeys=function(e,t,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 Bi(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,d=c[c.length-1];l=d&&d.value,3===u.valType&&l&&(l=Oi(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,Pi(l),i),this._trackKeys.push(a)}s.addKeyframe(e,Pi(t[a]),i)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(e);r&&(t=r)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=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,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(t._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var d=new On({life:i,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var i=t._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(t._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(t._target,e);var a=t._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return B(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<e.length;r++){var o=n[e[r]];o&&!o.isFinished()&&(t?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},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var r=t[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(e[r]=Pi(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||H(e);for(var n=0;n<t.length;n++){var i=t[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,e[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},e}();function Fi(){return(new Date).getTime()}var Gi,Hi,Wi=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return i(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Fi()-this._pausedTime,n=t-this._time,i=this._head;i;){var r=i.next;i.step(t,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,an((function t(){e._running&&(an(t),!e._paused&&e.update())}))},t.prototype.start=function(){this._running||(this._time=Fi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Fi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Fi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new Vi(e,t.loop);return this.addAnimator(n),n},t}(Ue),ji=o.domSupported,$i=(Hi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Gi=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:B(Gi,(function(e){var t=e.replace("mouse","pointer");return Hi.hasOwnProperty(t)?t:e}))}),Yi=["mousemove","mouseup"],Xi=["pointermove","pointerup"],qi=!1;function Ui(e){var t=e.pointerType;return"pen"===t||"touch"===t}function Zi(e){e&&(e.zrByTouch=!0)}function Ki(e,t){for(var n=t,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return i}var Ji=function(e,t){this.stopPropagation=be,this.stopImmediatePropagation=be,this.preventDefault=be,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},Qi={mousedown:function(e){e=pt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=pt(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=pt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){Ki(this,(e=pt(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventC
vendor: 1,779 bytes, line 2
2ontrol="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){qi=!0,e=pt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){qi||(e=pt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){Zi(e=pt(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Qi.mousemove.call(this,e),Qi.mousedown.call(this,e)},touchmove:function(e){Zi(e=pt(this.dom,e)),this.handler.processGesture(e,"change"),Qi.mousemove.call(this,e)},touchend:function(e){Zi(e=pt(this.dom,e)),this.handler.processGesture(e,"end"),Qi.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&Qi.click.call(this,e)},pointerdown:function(e){Qi.mousedown.call(this,e)},pointermove:function(e){Ui(e)||Qi.mousemove.call(this,e)},pointerup:function(e){Qi.mouseup.call(this,e)},pointerout:function(e){Ui(e)||Qi.mouseout.call(this,e)}};z(["click","dblclick","contextmenu"],(function(e){Qi[e]=function(t){t=pt(this.dom,t),this.trigger(e,t)}}));var er={pointermove:function(e){Ui(e)||er.mousemove.call(this,e)},pointerup:function(e){er.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function tr(e,t){var n=t.domHandlers;o.pointerEventsSupported?z($i.pointer,(function(i){ir(t,i,(function(t){n[i].call(e,t)}))})):(o.touchEventsSupported&&z($i.touch,(function(i){ir(t,i,(function(r){n[i].call(e,r),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(t)}))})),z($i.mouse,(function(i){ir(t,i,(function(r){r=dt(r),t.touching||n[i].call(e,r)}))})))}
vendor: 13,223 bytes, line 2
2function nr(e,t){function n(n){ir(t,n,(function(i){i=dt(i),Ki(e,i.target)||(i=function(e,t){return pt(e.dom,new Ji(e,t),!0)}(e,i),t.domHandlers[n].call(e,i))}),{capture:!0})}o.pointerEventsSupported?z(Xi,n):o.touchEventsSupported||z(Yi,n)}function ir(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,ht(e.domTarget,t,n,i)}function rr(e){var t,n,i,r,o=e.mounted;for(var a in o)o.hasOwnProperty(a)&&(t=e.domTarget,n=a,i=o[a],r=e.listenerOpts[a],t.removeEventListener(n,i,r));e.mounted={}}var or=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},ar=function(e){function t(t,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new or(t,Qi),ji&&(i._globalHandlerScope=new or(document,er)),tr(i,i._localHandlerScope),i}return i(t,e),t.prototype.dispose=function(){rr(this._localHandlerScope),ji&&rr(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,ji&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?nr(this,t):rr(t)}},t}(Ue),sr=1;o.hasGlobalWindow&&(sr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var lr=sr,ur="#333",cr="#ccc",dr=wt,pr=5e-5;function hr(e){return e>pr||e<-5e-5}var fr=[],gr=[],mr=[1,0,0,1,0,0],vr=Math.abs,yr=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return hr(this.rotation)||hr(this.x)||hr(this.y)||hr(this.scaleX-1)||hr(this.scaleY-1)||hr(this.skewX)||hr(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):dr(n),e&&(t?bt(n,e,n):_t(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(dr(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(fr);var n=fr[0]<0?-1:1,i=fr[1]<0?-1:1,r=((fr[0]-n)*t+n)/fr[0]||0,o=((fr[1]-i)*t+i)/fr[1]||0;e[0]*=r,e[1]*=r,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Ct(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),r=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],bt(gr,e.invTransform,t),t=gr);var n=this.originX,i=this.originY;(n||i)&&(mr[4]=n,mr[5]=i,bt(gr,t,mr),gr[4]-=n,gr[5]-=i,t=gr),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&We(n,n,i),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&We(n,n,i),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&vr(e[0]-1)>1e-10&&vr(e[3]-1)>1e-10?Math.sqrt(vr(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){wr(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,r=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(n||i||a||s){var h=n+a,f=i+s;t[4]=-h*r-d*f*o,t[5]=-f*o-p*h*r}else t[4]=t[5]=0;return t[0]=r,t[3]=o,t[1]=p*r,t[2]=d*o,l&&Mt(t,t,l),t[4]+=n+u,t[5]+=i+c,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),xr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function wr(e,t){for(var n=0;n<xr.length;n++){var i=xr[n];e[i]=t[i]}}var _r={};function br(e,t){var n=_r[t=t||s];n||(n=_r[t]=new zn(500));var i=n.get(e);return null==i&&(i=d.measureText(e,t).width,n.put(e,i)),i}function Sr(e,t,n,i){var r=br(e,t),o=Ir(t),a=Tr(0,r,n),s=Cr(0,o,i);return new Bt(a,s,r,o)}function Mr(e,t,n,i){var r=((e||"")+"").split("\n");if(1===r.length)return Sr(r[0],t,n,i);for(var o=new Bt(0,0,0,0),a=0;a<r.length;a++){var s=Sr(r[a],t,n,i);0===a?o.copy(s):o.union(s)}return o}function Tr(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function Cr(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function Ir(e){return br("国",e)}function Ar(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Dr(e,t,n){var i=t.position||"inside",r=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",d="top";if(i instanceof Array)l+=Ar(i[0],n.width),u+=Ar(i[1],n.height),c=null,d=null;else switch(i){case"left":l-=r,u+=s,c="right",d="middle";break;case"right":l+=r+a,u+=s,d="middle";break;case"top":l+=a/2,u-=r,c="center",d="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=r,u+=s,d="middle";break;case"insideRight":l+=a-r,u+=s,c="right",d="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",d="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,d="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",d="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var kr="__zr_normal__",Lr=xr.concat(["ignore"]),Er=V(xr,(function(e,t){return e[t]=!0,e}),{ignore:!1}),Pr={},Or=new Bt(0,0,0,0),Rr=function(){function e(e){this.id=T(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=t.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(t),null!=n.position){var u=Or;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Pr,n,u):Dr(Pr,n,u),r.x=Pr.x,r.y=Pr.y,o=Pr.align,a=Pr.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var d=void 0,p=void 0;"center"===c?(d=.5*u.width,p=.5*u.height):(d=Ar(c[0],u.width),p=Ar(c[1],u.height)),l=!0,r.originX=-r.x+d+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var h=n.offset;h&&(r.x+=h[0],r.y+=h[1],l||(r.originX=-h[0],r.originY=-h[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,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?cr:ur},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&Zn(t);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,oi(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},k(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(Z(e))for(var n=H(e),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,e[r])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==kr)){var o=i.targetName,a=o?t[o]:t;i.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Lr)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null==e[r]||r in t||(t[r]=this[r])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(kr,!1,e)},e.prototype.useState=function(e,t,n,i){var r=e===kr;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(P(o,e)>=0)||!t&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.useState(e,t,n,l),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}C("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var i=[],r=this.currentStates,o=e.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(e[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),h=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,!t&&!this.__inHover&&h&&h.duration>0,h);var f=this._textContent,g=this._textGuide;f&&f.useStates(e,t,d),g&&g.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=P(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),r=P(i,e),o=P(i,t)>=0;r>=0?o?i.splice(r,1):i[r]=t:n&&!o&&i.push(t),this.useStates(i)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},i=0;i<e.length;i++){var r=e[i];k(n,r),r.textConfig&&k(t=t||{},r.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,i,r,o){var a=!(t&&i);t&&t.textConfig?(this.textConfig=k({},i?this.textConfig:n.textConfig),k(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Lr.length;u++){var c=Lr[u],d=r&&Er[c];t&&null!=t[c]?d?(l=!0,s[c]=t[c]):this[c]=t[c]:a&&null!=n[c]&&(d?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(u=0;
2u<this.animators.length;u++){var p=this.animators[u],h=p.targetName;p.getLoop()||p.__changeFinalValue(h?(t||n)[h]:t||n)}l&&this._transitionState(e,s,o)},e.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");if(e===this)throw new Error("Recursive component attachment.");var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new yr,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),k(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var i=e?this[e]:this;if(i){var r=new Vi(i,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r}C('Property "'+e+'" is not existed in element '+this.id)},e.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during((function(){i.updateDuringAnimation(t)})).done((function(){var t=i.animators,n=P(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];e&&e!==a.scope?r.push(a):a.stop(t)}return this.animators=r,this},e.prototype.animateTo=function(e,t,n){Nr(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Nr(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,i){for(var r=Nr(this,t,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1;var n={};
2function i(e,t,i){n[e+t+i]||(console.warn("DEPRECATED: '"+e+"' has been deprecated. use '"+t+"', '"+i+"' instead"),n[e+t+i]=!0)}function r(e,n,r,o){function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[o]},set:function(t){e[o]=t}})}Object.defineProperty(t,e,{get:function(){return i(e,r,o),this[n]||a(this,this[n]=[]),this[n]},set:function(t){i(e,r,o),this[r]=t[0],this[o]=t[1],this[n]=t,a(this,t)}})}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();function Nr(e,t,n,i,r){var o=[];Vr(e,"",e,t,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},d=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var p=0;p<o.length;p++){var h=o[p];c&&h.done(c),d&&h.aborted(d),n.force&&h.duration(n.duration),h.start(n.easing)}return o}function zr(e,t,n){for(var i=0;i<n;i++)e[i]=t[i]}function Br(e,t,n){if(N(t[n]))if(N(e[n])||(e[n]=[]),J(t[n])){var i=t[n].length;e[n].length!==i&&(e[n]=new t[n].constructor(i),zr(e[n],t[n],i))}else{var r=t[n],o=e[n],a=r.length;if(N(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?zr(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else zr(o,r,a);o.length=r.length}else e[n]=t[n]}function Vr(e,t,n,i,r,o,a,s){for(var l=H(i),u=r.duration,c=r.delay,d=r.additive,p=r.setToFinal,h=!Z(o),f=e.animators,g=[],m=0;m<l.length;m++){var v=l[m],y=i[v];if(null!=y&&null!=n[v]&&(h||o[v]))if(!Z(y)||N(y)||ee(y))g.push(v);else{if(t){s||(n[v]=y,e.updateDuringAnimation(t));continue}Vr(e,v,n[v],y,r,o&&o[v],a,s)}else s||(n[v]=y,e.updateDuringAnimation(t),g.push(v))}var x=g.length;if(!d&&x)for(var w=0;w<f.length;w++)if((b=f[w]).targetName===t&&b.stopTracks(g)){var _=P(f,b);f.splice(_,1)}if(r.force||(x=(g=F(g,(function(e){return t=i[e],r=n[e],!(t===r||N(t)&&N(r)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}(t,r));var t,r}))).length),x>0||r.force&&!a.length){var b,S=void 0,M=void 0,T=void 0;if(s)for(M={},p&&(S={}),w=0;w<x;w++)M[v=g[w]]=n[v],p?S[v]=i[v]:n[v]=i[v];else if(p)for(T={},w=0;w<x;w++)T[v=g[w]]=Pi(n[v]),Br(n,i,v);(b=new Vi(n,!1,!1,d?F(f,(function(e){return e.targetName===t})):null)).targetName=t,r.scope&&(b.scope=r.scope),p&&S&&b.whenWithKeys(0,S,g),T&&b.whenWithKeys(0,T,g),b.whenWithKeys(null==u?500:u,s?M:i,g).delay(c||0),e.addAnimator(b,t),a.push(b)}}R(Rr,Ue),R(Rr,yr);var Fr=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return i(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),e.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,i=n.indexOf(t);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=P(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,i=P(n,e);return i<0||(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var i=e[n];t&&i.removeSelfFromZr(t),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];e.call(t,r,i)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=e.call(t,i);i.isGroup&&!r&&i.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new Bt(0,0,0,0),n=e||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];
vendor: 4,802 bytes, line 2
2if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(Bt.applyTransform(t,s,l),(r=r||t.clone()).union(t)):(r=r||s.clone()).union(s)}}return r||t},t}(Rr);Fr.prototype.type="group";var Gr={},Hr={};var Wr,jr=function(){function e(e,t,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var r=new on,a=n.renderer||"canvas";if(Gr[a]||(a=H(Gr)[0]),!Gr[a])throw new Error("Renderer '"+a+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new Gr[a](t,r,n,e),l=n.ssr||s.ssrOnly;this.storage=r,this.painter=s;var u,c=o.node||o.worker||l?null:new ar(s.getViewportRoot(),s.root),d=n.useCoarsePointer;(null==d||"auto"===d?o.touchEventsSupported:!!d)&&(u=oe(n.pointerSize,44)),this.handler=new $t(r,s,c,s.root,u),this.animation=new Wi({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return ai(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,i=t.length,r=0;r<i;r++)n+=ai(t[r].color,1);return(n/=i)<.4}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=Fi();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=Fi();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Fr&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){var e;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,e=this.id,delete Hr[e])},e}();function $r(e,t){var n=new jr(T(),e,t);return Hr[n.id]=n,n}function Yr(e,t){Gr[e]=t}function Xr(e){if("function"==typeof Wr)return Wr(e)}function qr(e){Wr=e}var Ur=Object.freeze({__proto__:null,init:$r,dispose:function(e){e.dispose()},disposeAll:function(){for(var e in Hr)Hr.hasOwnProperty(e)&&Hr[e].dispose();Hr={}},getInstance:function(e){return Hr[e]},registerPainter:Yr,getElementSSRData:Xr,registerSSRDataGetter:qr,version:"5.6.1"}),Zr=1e-4;function Kr(e,t,n,i){var r=t[0],o=t[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(e<=r)return a;
2if(e>=o)return s}else{if(e>=r)return a;if(e<=o)return s}else{if(e===r)return a;if(e===o)return s}return(e-r)/l*u+a}function Jr(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return X(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function Qr(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function eo(e){return e.sort((function(e,t){return e-t})),e}function to(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return no(e)}function no(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function io(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function ro(e,t){var n=V(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];for(var i=Math.pow(10,t),r=B(e,(function(e){return(isNaN(e)?0:e)/n*i*100})),o=100*i,a=B(r,(function(e){return Math.floor(e)})),s=V(a,(function(e,t){return e+t}),0),l=B(r,(function(e,t){return e-a[t]}));s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,d=0,p=l.length;d<p;++d)l[d]>u&&(u=l[d],c=d);++a[c],l[c]=0,++s}return B(a,(function(e){return e/i}))}function oo(e,t){var n=Math.max(to(e),to(t)),i=e+t;return n>20?i:Qr(i,n)}var ao=9007199254740991;function so(e){var t=2*Math.PI;return(e%t+t)%t}function lo(e){return e>-1e-4&&e<Zr}var uo=/^(?:(\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 co(e){if(e instanceof Date)return e;if(X(e)){var t=uo.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function po(e){return Math.pow(10,ho(e))}function ho(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function fo(e,t){var n=ho(e),i=Math.pow(10,n),r=e/i;return e=(t?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?+e.toFixed(n<0?-n:0):e}function go(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],o=n-i;return o?r+o*(e[i]-r):r}function mo(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i<e.length;){for(var r=e[i].interval,o=e[i].close,a=0;a<2;a++)r[a]<=t&&(r[a]=t,o[a]=a?1:1-n),t=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?e.splice(i,1):i++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]==(n?-1:1)||!n&&s(e,t,1))}}function vo(e){var t=parseFloat(e);return t==e&&(0!==t||!X(e)||e.indexOf("x")<=0)?t:NaN}function yo(e){return!isNaN(vo(e))}function xo(){return Math.round(9*Math.random())}function wo(e,t){return 0===t?e:wo(t,e%t)}function _o(e,t){return null==e?t:null==t?e:e*t/wo(e,t)}var bo={},So="undefined"!=typeof console&&console.warn&&console.log;function Mo(e,t,n){if(So){if(n){if(bo[t])return;bo[t]=!0}console[e]("[ECharts] "+t)}}function To(e,t){Mo("warn",e,t)}function Co(e,t){Mo("error",e,t)}function Io(e){Mo("warn","DEPRECATED: "+e,!0)}function Ao(e,t,n){Io((n?"["+n+"]":"")+e+" is deprecated, use "+t+" instead.")}function Do(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(e){return void 0===e?"undefined":e===1/0?"Infinity":e===-1/0?"-Infinity":ie(e)?"NaN":e instanceof Date?"Date("+e.toISOString()+")":Y(e)?"function () { ... }":ne(e)?e+"":null};return B(e,(function(e){if(X(e))return e;var t=n(e);if(null!=t)return t;if("undefined"==typeof JSON||!JSON.stringify)return"?";try{return JSON.stringify(e,(function(e,t){var i=n(t);return null==i?t:i}))}catch(e){return"?"}})).join(" ")}function ko(e){throw new Error(e)}function Lo(e,t,n){return(t-e)*n+e}var Eo="series\0",Po="\0_ec_\0";function Oo(e){return e instanceof Array?e:null==e?[]:[e]}
vendor: 2,500 bytes, line 2
2function Ro(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var No=["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 zo(e){return!Z(e)||$(e)||e instanceof Date?e:e.value}function Bo(e){return Z(e)&&!(e instanceof Array)}function Vo(e,t,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=ve();z(t,(function(e,n){Z(e)?(null==e.id||jo(e.id)||Wo(e.id),null==e.name||jo(e.name)||Wo(e.name)):t[n]=null}));var s,l,u=function(e,t,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<e.length;r++){var o=e[r];o&&null!=o.id&&t.set(o.id,r),i.push({existing:"replaceMerge"===n||Yo(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(e,a,n);return(i||r)&&function(e,t,n,i){z(i,(function(r,o){if(r&&null!=r.id){var a=Go(r.id),s=n.get(a);if(null!=s){var l=e[s];ue(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=t[s],i[o]=null}}}))}(u,e,a,t),i&&function(e,t){z(t,(function(n,i){if(n&&null!=n.name)for(var r=0;r<e.length;r++){var o=e[r].existing;if(!e[r].newOption&&o&&(null==o.id||null==n.id)&&!Yo(n)&&!Yo(o)&&Fo("name",o,n))return e[r].newOption=n,void(t[i]=null)}}))}(u,t),i||r?function(e,t,n){z(t,(function(t){if(t){for(var i,r=0;(i=e[r])&&(i.newOption||Yo(i.existing)||i.existing&&null!=t.id&&!Fo("id",t,i.existing));)r++;i?(i.newOption=t,i.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),r++}}))}(u,t,r):o&&function(e,t){z(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}(u,t),s=u,l=ve(),z(s,(function(e){var t=e.existing;t&&l.set(t.id,e)})),z(s,(function(e){var t=e.newOption;ue(!t||null==t.id||!l.get(t.id)||l.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&l.set(t.id,e),!e.keyInfo&&(e.keyInfo={})})),z(s,(function(e,t){var n=e.existing,i=e.newOption,r=e.keyInfo;if(Z(i)){if(r.name=null!=i.name?Go(i.name):n?n.name:Eo+t,n)r.id=Go(n.id);else if(null!=i.id)r.id=Go(i.id);else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(l.get(r.id))}l.set(r.id,e)}})),u}
vendor: 4,869 bytes, line 2
2function Fo(e,t,n){var i=Ho(t[e],null),r=Ho(n[e],null);return null!=i&&null!=r&&i===r}function Go(e){if(null==e)throw new Error;return Ho(e,"")}function Ho(e,t){return null==e?t:X(e)?e:U(e)||q(e)?e+"":t}function Wo(e){To("`"+e+"` is invalid id or name. Must be a string or number.")}function jo(e){return q(e)||yo(e)}function $o(e){var t=e.name;return!(!t||!t.indexOf(Eo))}function Yo(e){return e&&null!=e.id&&0===Go(e.id).indexOf(Po)}function Xo(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?$(t.dataIndex)?B(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?$(t.name)?B(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function qo(){var e="__ec_inner_"+Uo++;return function(t){return t[e]||(t[e]={})}}var Uo=xo();function Zo(e,t,n){var i=Ko(t,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each((function(t,i){var r=ea(e,i,t,{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 Ko(e,t){var n;if(X(e)){var i={};i[e+"Index"]=0,n=i}else n=e;var r=ve(),o={},a=!1;return z(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();!s||!l||t&&t.includeMainTypes&&P(t.includeMainTypes,s)<0||(a=a||!!s,(r.get(s)||r.set(s,{}))[l]=e)}else o[n]=e})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var Jo={useDefault:!0,enableAll:!1,enableNone:!1},Qo={useDefault:!1,enableAll:!0,enableNone:!0};function ea(e,t,n,i){i=i||Jo;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=e.getComponent(t))?[l]:[],s}return"none"===r||!1===r?(ue(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(ue(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=e.queryComponents({mainType:t,index:r,id:o,name:a}),s)}function ta(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function na(e,t){var n=ve(),i=[];return z(e,(function(e){var r=t(e);(n.get(r)||(i.push(r),n.set(r,[]))).push(e)})),{keys:i,buckets:n}}function ia(e,t,n,i,r){var o=null==t||"auto"===t;if(null==i)return i;if(U(i))return Qr(f=Lo(n||0,i,r),o?Math.max(to(n||0),to(i)):t);if(X(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var d=e.getDimensionInfo(c);if(d&&"ordinal"===d.type)a[c]=(r<1&&s?s:l)[c];else{var p=s&&s[c]?s[c]:0,h=l[c],f=Lo(p,h,r);a[c]=Qr(f,o?Math.max(to(p),to(h)):t)}}return a}var ra="___EC__COMPONENT__CONTAINER___",oa="___EC__EXTENDED_CLASS___";function aa(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function sa(e,t){e.$constructor=e,e.extend=function(e){z(t,(function(t){e[t]||console.warn("Method `"+t+"` should be implemented"+(e.type?" in "+e.type:"")+".")}));var n,r,o=this;return Y(r=o)&&/^class\s/.test(Function.prototype.toString.call(r))?n=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(o):(n=function(){(e.$constructor||o).apply(this,arguments)},O(n,this)),k(n.prototype,e),n[oa]=!0,n.extend=this.extend,n.superCall=ca,n.superApply=da,n.superClass=o,n}}function la(e,t){e.extend=t.extend}var ua=Math.round(10*Math.random());function ca(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,n)}function da(e,t,n){return this.superClass.prototype[t].apply(e,n)}function pa(e){var t={};e.registerClass=function(e){var n,i=e.type||e.prototype.type;if(i){ue(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),e.prototype.type=i;var r=aa(i);r.sub?r.sub!==ra&&((function(e){var n=t[e.main];return n&&n[ra]||((n=t[e.main]={})[ra]=!0),n}(r))[r.sub]=e):(t[r.main]&&console.warn(r.main+" exists."),t[r.main]=e)}return e},e.getClass=function(e,n,i){var r=t[e];if(r&&r[ra]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){var n=aa(e),i=[],r=t[n.main];return r&&r[ra]?z(r,(function(e,t){t!==ra&&i.push(e)})):i.push(r),i},e.hasClass=function(e){var n=aa(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return z(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=aa(e),i=t[n.main];return i&&i[ra]}}function ha(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,i,r){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(i&&P(i,s)>=0||r&&P(r,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var fa=ha([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["o
2pacity"],["shadowColor"]]),ga=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return fa(this,e,t)},e}(),ma=new zn(50);function va(e){if("string"==typeof e){var t=ma.get(e);return t&&t.image}return e}function ya(e,t,n,i,r){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=ma.get(e),a={hostEl:n,cb:i,cbPayload:r};return o?!wa(t=o.image)&&o.pending.push(a):((t=d.loadImage(e,xa,xa)).__zrImageSrc=e,ma.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function xa(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function wa(e){return e&&e.width&&e.height}var _a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ba(e,t,n,i,r,o){if(!n)return e.text="",void(e.isTruncated=!1);var a=(t+"").split("\n");o=Sa(n,i,r,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)Ma(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;e.text=a.join("\n"),e.isTruncated=s}function Sa(e,t,n,i){var r=k({},i=i||{});r.font=t,n=oe(n,"..."),r.maxIterations=oe(i.maxIterations,2);var o=r.minChar=oe(i.minChar,0);r.cnCharWidth=br("国",t);var a=r.ascCharWidth=br("a",t);r.placeholder=oe(i.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var u=br(n,t);return u>s&&(n="",u=0),s=e-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=e,r}function Ma(e,t,n){var i=n.containerWidth,r=n.font,o=n.contentWidth;if(!i)return e.textLine="",void(e.isTruncated=!1);var a=br(t,r);if(a<=i)return e.textLine=t,void(e.isTruncated=!1);for(var s=0;;s++){if(a<=o||s>=n.maxIterations){t+=n.ellipsis;break}var l=0===s?Ta(t,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(t.length*o/a):0;a=br(t=t.substr(0,l),r)}""===t&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Ta(e,t,n,i){for(var r=0,o=0,a=e.length;o<a&&r<t;o++){var s=e.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}var Ca=function(){},Ia=function(e){this.tokens=[],e&&(this.tokens=e)},Aa=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 Da(e,t,n,i,r){var o,a,s=""===t,l=r&&n.rich[r]||{},u=e.lines,c=l.font||n.font,d=!1;if(i){var p=l.padding,h=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var f=Ar(l.width,i.width)+h;u.length>0&&f+i.accumWidth>i.width&&(o=t.split("\n"),d=!0),i.accumWidth=f}else{var g=Ea(t,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+h,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var m=0;m<o.length;m++){var v=o[m],y=new Ca;if(y.styleName=r,y.text=v,y.isLineHolder=!v&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[m]:br(v,c),m||d)u.push(new Ia([y]));else{var x=(u[u.length-1]||(u[0]=new Ia)).tokens,w=x.length;1===w&&x[0].isLineHolder?x[0]=y:(v||!w||s)&&x.push(y)}}}var ka=V(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function La(e){return!function(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(e)||!!ka[e]}function Ea(e,t,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var p=e.charAt(d);if("\n"!==p){var h=br(p,t),f=!i&&!La(p);(o.length?c+h>n:r+c+h>n)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=p,s="",c=u+=h):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=h)):f?(o.push(l),a.push(u),l=p,u=h):(o.push(p),a.push(h)):(c+=h,f?(l+=p,u+=h):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var Pa="__zr_style_"+Math.round(10*Math.random()),Oa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ra={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Oa[Pa]=!0;var Na=["z","z2","invisible"],za=["invisible"],Ba=function(e){function t(t){return e.call(this,t)||this}var n;return i(t,e),t.prototype._init=function(t){for(var n=H(t),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(t[r]):e.prototype.attrKV.call(this,r,t[r])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,i){var r,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,o=e,a=t,Va.copy(r.getBoundingRect
vendor: 8,680 bytes, line 2
2()),r.transform&&Va.applyTransform(r.transform),Fa.width=o,Fa.height=a,!Va.intersect(Fa))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths)for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1;if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Bt(0,0,0,0)),t?Bt.applyTransform(e,n,t):e.copy(n),(r||o||a)&&(e.width+=2*r+Math.abs(o),e.height+=2*r+Math.abs(a),e.x=Math.min(e.x,e.x+o-r),e.y=Math.min(e.y,e.y+a-r));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Bt(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:k(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return xe(Oa,e)},t.prototype.useStyle=function(e){e[Pa]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Pa]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Na)},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,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 u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=H(u),d=0;d<c.length;d++)(h=c[d])in s&&(s[h]=s[h],this.style[h]=u[h]);var p=H(s);for(d=0;d<p.length;d++){var h=p[d];this.style[h]=this.style[h]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?za:Na;for(d=0;d<f.length;d++)h=f[d],n&&null!=n[h]?this[h]=n[h]:l&&null!=i[h]&&(this[h]=i[h])},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var o=t[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,t){return k(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ra},t.initDefaultProps=((n=t.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=3)),t}(Rr),Va=new Bt(0,0,0,0),Fa=new Bt(0,0,0,0);var Ga=Math.min,Ha=Math.max,Wa=Math.sin,ja=Math.cos,$a=2*Math.PI,Ya=Te(),Xa=Te(),qa=Te();function Ua(e,t,n){if(0!==e.length){for(var i=e[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<e.length;l++)i=e[l],r=Ga(r,i[0]),o=Ha(o,i[0]),a=Ga(a,i[1]),s=Ha(s,i[1]);t[0]=r,t[1]=a,n[0]=o,n[1]=s}}function Za(e,t,n,i,r,o){r[0]=Ga(e,n),r[1]=Ga(t,i),o[0]=Ha(e,n),o[1]=Ha(t,i)}var Ka=[],Ja=[];function Qa(e,t,n,i,r,o,a,s,l,u){var c=bn,d=xn,p=c(e,n,r,a,Ka);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var f=d(e,n,r,a,Ka[h]);l[0]=Ga(f,l[0]),u[0]=Ha(f,u[0])}for(p=c(t,i,o,s,Ja),h=0;h<p;h++){var g=d(t,i,o,s,Ja[h]);l[1]=Ga(g,l[1]),u[1]=Ha(g,u[1])}l[0]=Ga(e,l[0]),u[0]=Ha(e,u[0]),l[0]=Ga(a,l[0]),u[0]=Ha(a,u[0]),l[1]=Ga(t,l[1]),u[1]=Ha(t,u[1]),l[1]=Ga(s,l[1]),u[1]=Ha(s,u[1])}function es(e,t,n,i,r,o,a,s){var l=An,u=Cn,c=Ha(Ga(l(e,n,r),1),0),d=Ha(Ga(l(t,i,o),1),0),p=u(e,n,r,c),h=u(t,i,o,d);a[0]=Ga(e,r,p),a[1]=Ga(t,o,h),s[0]=Ha(e,r,p),s[1]=Ha(t,o,h)}function ts(e,t,n,i,r,o,a,s,l){var u=je,c=$e,d=Math.abs(r-o);if(d%$a<1e-4&&d>1e-4)return s[0]=e-n,s[1]=t-i,l[0]=e+n,void(l[1]=t+i);if(Ya[0]=ja(r)*n+e,Ya[1]=Wa(r)*i+t,Xa[0]=ja(o)*n+e,Xa[1]=Wa(o)*i+t,u(s,Ya,Xa),c(l,Ya,Xa),(r%=$a)<0&&(r+=$a),(o%=$a)<0&&(o+=$a),r>o&&!a?o+=$a:r<o&&a&&(r+=$a),a){var p=o;o=r,r=p}for(var h=0;h<o;h+=Math.PI/2)h>r&&(qa[0]=ja(h)*n+e,qa[1]=Wa(h)*i+t,u(s,qa,s),c(l,qa,l))}var ns={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},is=[],rs=[],os=[],as=[],ss=[],ls=[],us=Math.min,cs=Math.max,ds=Math.cos,ps=Math.sin,hs=Math.abs,fs=Math.PI,gs=2*fs,ms="undefined"!=typeof Float32Array,vs=[];function ys(e){return Math.round(e/fs*1e8)/1e8%2*fs}function xs(e,t){var n=ys(e[0]);n<0&&(n+=gs);var i=n-e[0],r=e[1];r+=i,!t&&r-n>=gs?r=n+gs:t&&n-r>=gs?r=n-gs:!t&&n>r?r=n+(gs-ys(n-r)):t&&n<r&&(r=n-(gs-ys(r-n))),e[0]=n,e[1]=r}var ws=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=hs(n/lr/e)||0,this._uy=hs(n/lr/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(ns.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=hs(e-this._xi),i=hs(t-this._yi),r=n>this._ux||i>this._uy;if(this.addData(ns.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){return this._drawPendingPt(),this.addData(ns.C,e,t,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(ns.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(e,t,n,i,r,o){this._drawPendingPt(),vs[0]=i,vs[1]=r,xs(vs,o),i=vs[0];var a=(r=vs[1])-i;return this.addData(ns.A,e,t,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,o),this._xi=ds(r)*n+e,this._yi=ps(r)*n+t,this},e.prototype.arcTo=function(e,t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},e.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(ns.R,e,t,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ns.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!ms||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,r=0;r<t;r++)n+=e[r].len();for(ms&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n)),r=0;r<t;r++)for(var o=e[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},e.prototype.addData=function(e,t,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>
vendor: 5,081 bytes, line 2
20&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,ms&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){os[0]=os[1]=ss[0]=ss[1]=Number.MAX_VALUE,as[0]=as[1]=ls[0]=ls[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,i=0,r=0,o=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(r=n=t[e],o=i=t[e+1]),a){case ns.M:n=r=t[e++],i=o=t[e++],ss[0]=r,ss[1]=o,ls[0]=r,ls[1]=o;break;case ns.L:Za(n,i,t[e],t[e+1],ss,ls),n=t[e++],i=t[e++];break;case ns.C:Qa(n,i,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],ss,ls),n=t[e++],i=t[e++];break;case ns.Q:es(n,i,t[e++],t[e++],t[e],t[e+1],ss,ls),n=t[e++],i=t[e++];break;case ns.A:var l=t[e++],u=t[e++],c=t[e++],d=t[e++],p=t[e++],h=t[e++]+p;e+=1;var f=!t[e++];s&&(r=ds(p)*c+l,o=ps(p)*d+u),ts(l,u,c,d,p,h,f,ss,ls),n=ds(h)*c+l,i=ps(h)*d+u;break;case ns.R:Za(r=n=t[e++],o=i=t[e++],r+t[e++],o+t[e++],ss,ls);break;case ns.Z:n=r,i=o}je(os,os,ss),$e(as,as,ls)}return 0===e&&(os[0]=os[1]=as[0]=as[1]=0),new Bt(os[0],os[1],as[0]-os[0],as[1]-os[1])},e.prototype._calculateLength=function(){var e=this.data,t=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,u=0,c=0,d=0;d<t;){var p=e[d++],h=1===d;h&&(a=r=e[d],s=o=e[d+1]);var f=-1;switch(p){case ns.M:r=a=e[d++],o=s=e[d++];break;case ns.L:var g=e[d++],m=(x=e[d++])-o;(hs(D=g-r)>n||hs(m)>i||d===t-1)&&(f=Math.sqrt(D*D+m*m),r=g,o=x);break;case ns.C:var v=e[d++],y=e[d++],x=(g=e[d++],e[d++]),w=e[d++],_=e[d++];f=Tn(r,o,v,y,g,x,w,_,10),r=w,o=_;break;case ns.Q:f=Ln(r,o,v=e[d++],y=e[d++],g=e[d++],x=e[d++],10),r=g,o=x;break;case ns.A:var b=e[d++],S=e[d++],M=e[d++],T=e[d++],C=e[d++],I=e[d++],A=I+C;d+=1,h&&(a=ds(C)*M+b,s=ps(C)*T+S),f=cs(M,T)*us(gs,Math.abs(I)),r=ds(A)*M+b,o=ps(A)*T+S;break;case ns.R:a=r=e[d++],s=o=e[d++],f=2*e[d++]+2*e[d++];break;case ns.Z:var D=a-r;m=s-o,f=Math.sqrt(D*D+m*m),r=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,i,r,o,a,s,l,u,c,d,p=this.data,h=this._ux,f=this._uy,g=this._len,m=t<1,v=0,y=0,x=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var w=0;w<g;){var _=p[w++],b=1===w;switch(b&&(n=r=p[w],i=o=p[w+1]),_!==ns.L&&x>0&&(e.lineTo(c,d),x=0),_){case ns.M:n=r=p[w++],i=o=p[w++],e.moveTo(r,o);break;case ns.L:a=p[w++],s=p[w++];var S=hs(a-r),M=hs(s-o);if(S>h||M>f){if(m){if(v+(q=l[y++])>u){var T=(u-v)/q;e.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break e}v+=q}e.lineTo(a,s),r=a,o=s,x=0}else{var C=S*S+M*M;C>x&&(c=a,d=s,x=C)}break;case ns.C:var I=p[w++],A=p[w++],D=p[w++],k=p[w++],L=p[w++],E=p[w++];if(m){if(v+(q=l[y++])>u){Sn(r,I,D,L,T=(u-v)/q,is),Sn(o,A,k,E,T,rs),e.bezierCurveTo(is[1],rs[1],is[2],rs[2],is[3],rs[3]);break e}v+=q}e.bezierCurveTo(I,A,D,k,L,E),r=L,o=E;break;case ns.Q:if(I=p[w++],A=p[w++],D=p[w++],k=p[w++],m){if(v+(q=l[y++])>u){Dn(r,I,D,T=(u-v)/q,is),Dn(o,A,k,T,rs),e.quadraticCurveTo(is[1],rs[1],is[2],rs[2]);break e}v+=q}e.quadraticCurveTo(I,A,D,k),r=D,o=k;break;case ns.A:var P=p[w++],O=p[w++],R=p[w++],N=p[w++],z=p[w++],B=p[w++],V=p[w++],F=!p[w++],G=R>N?R:N,H=hs(R-N)>.001,W=z+B,j=!1;if(m&&(v+(q=l[y++])>u&&(W=z+B*(u-v)/q,j=!0),v+=q),H&&e.ellipse?e.ellipse(P,O,R,N,V,z,W,F):e.arc(P,O,G,z,W,F),j)break e;b&&(n=ds(z)*R+P,i=ps(z)*N+O),r=ds(W)*R+P,o=ps(W)*N+O;break;case ns.R:n=r=p[w],i=o=p[w+1],a=p[w++],s=p[w++];var $=p[w++],Y=p[w++];if(m){if(v+(q=l[y++])>u){var X=u-v;e.moveTo(a,s),e.lineTo(a+us(X,$),s),(X-=$)>0&&e.lineTo(a+$,s+us(X,Y)),(X-=Y)>0&&e.lineTo(a+cs($-X,0),s+Y),(X-=$)>0&&e.lineTo(a,s+cs(Y-X,0));break e}v+=q}e.rect(a,s,$,Y);break;case ns.Z:if(m){var q;if(v+(q=l[y++])>u){T=(u-v)/q,e.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break e}v+=q}e.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=ns,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function _s(e,t,n,i,r,o,a){if(0===r)return!1;var s,l=r;if(a>t+l&&a>i+l||a<t-l&&a<i-l||o>e+l&&o>n+l||o<e-l&&o<n-l)return!1;if(e===n)return Math.abs(o-e)<=l/2;var u=(s=(t-i)/(e-n))*o-a+(e*i-n*t)/(e-n);return u*u/(s*s+1)<=l/2*l/2}function bs(e,t,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var d=l;return!(c>t+d&&c>i+d&&c>o+d&&c>s+d||c<t-d&&c<i-d&&c<o-d&&c<s-d||u>e+d&&u>n+d&&u>r+d&&u>a+d||u<e-d&&u<n-d&&u<r-d&&u<a-d)&&Mn(e,t,n,i,r,o,a,s,u,c,null)<=d/2}function Ss(e,t,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;return!(l>t+u&&l>i+u&&l>o+u||l<t-u&&l<i-u&&l<o-u||s>e+u&&s>n+u&&s>r+u||s<e-u&&s<n-u&&s<r-u)&&kn(e,t,n,i,r,o,s,l,null)<=u/2}var Ms=2*Math.PI;function Ts(e){return(e%=Ms)<0&&(e+=Ms),e}var Cs=2*Math.PI;function Is(e,t,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%Cs<1e-4)return!0;
vendor: 10,583 bytes, line 2
2if(o){var d=i;i=Ts(r),r=Ts(d)}else i=Ts(i),r=Ts(r);i>r&&(r+=Cs);var p=Math.atan2(l,s);return p<0&&(p+=Cs),p>=i&&p<=r||p+Cs>=i&&p+Cs<=r}function As(e,t,n,i,r,o){if(o>t&&o>i||o<t&&o<i)return 0;if(i===t)return 0;var a=(o-t)/(i-t),s=i<t?1:-1;1!==a&&0!==a||(s=i<t?.5:-.5);var l=a*(n-e)+e;return l===r?1/0:l>r?s:0}var Ds=ws.CMD,ks=2*Math.PI;var Ls=[-1,-1,-1],Es=[-1,-1];function Ps(e,t,n,i,r,o,a,s,l,u){if(u>t&&u>i&&u>o&&u>s||u<t&&u<i&&u<o&&u<s)return 0;var c,d=_n(t,i,o,s,u,Ls);if(0===d)return 0;for(var p=0,h=-1,f=void 0,g=void 0,m=0;m<d;m++){var v=Ls[m],y=0===v||1===v?.5:1;xn(e,n,r,a,v)<l||(h<0&&(h=bn(t,i,o,s,Es),Es[1]<Es[0]&&h>1&&(c=void 0,c=Es[0],Es[0]=Es[1],Es[1]=c),f=xn(t,i,o,s,Es[0]),h>1&&(g=xn(t,i,o,s,Es[1]))),2===h?v<Es[0]?p+=f<t?y:-y:v<Es[1]?p+=g<f?y:-y:p+=s<g?y:-y:v<Es[0]?p+=f<t?y:-y:p+=s<f?y:-y)}return p}function Os(e,t,n,i,r,o,a,s){if(s>t&&s>i&&s>o||s<t&&s<i&&s<o)return 0;var l=function(e,t,n,i,r){var o=e-2*t+n,a=2*(t-e),s=e-i,l=0;if(vn(o))yn(a)&&(c=-s/a)>=0&&c<=1&&(r[l++]=c);else{var u=a*a-4*o*s;if(vn(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,d=un(u),p=(-a-d)/(2*o);(c=(-a+d)/(2*o))>=0&&c<=1&&(r[l++]=c),p>=0&&p<=1&&(r[l++]=p)}}return l}(t,i,o,s,Ls);if(0===l)return 0;var u=An(t,i,o);if(u>=0&&u<=1){for(var c=0,d=Cn(t,i,o,u),p=0;p<l;p++){var h=0===Ls[p]||1===Ls[p]?.5:1;Cn(e,n,r,Ls[p])<a||(Ls[p]<u?c+=d<t?h:-h:c+=o<d?h:-h)}return c}return h=0===Ls[0]||1===Ls[0]?.5:1,Cn(e,n,r,Ls[0])<a?0:o<t?h:-h}function Rs(e,t,n,i,r,o,a,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ls[0]=-l,Ls[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=ks-1e-4){i=0,r=ks;var c=o?1:-1;return a>=Ls[0]+e&&a<=Ls[1]+e?c:0}if(i>r){var d=i;i=r,r=d}i<0&&(i+=ks,r+=ks);for(var p=0,h=0;h<2;h++){var f=Ls[h];if(f+e>a){var g=Math.atan2(s,f);c=o?1:-1,g<0&&(g=ks+g),(g>=i&&g<=r||g+ks>=i&&g+ks<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function Ns(e,t,n,i,r){for(var o,a,s=e.data,l=e.len(),u=0,c=0,d=0,p=0,h=0,f=0;f<l;){var g=s[f++],m=1===f;switch(g===Ds.M&&f>1&&(n||(u+=As(c,d,p,h,i,r))),m&&(p=c=s[f],h=d=s[f+1]),g){case Ds.M:c=p=s[f++],d=h=s[f++];break;case Ds.L:if(n){if(_s(c,d,s[f],s[f+1],t,i,r))return!0}else u+=As(c,d,s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case Ds.C:if(n){if(bs(c,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],t,i,r))return!0}else u+=Ps(c,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case Ds.Q:if(n){if(Ss(c,d,s[f++],s[f++],s[f],s[f+1],t,i,r))return!0}else u+=Os(c,d,s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case Ds.A:var v=s[f++],y=s[f++],x=s[f++],w=s[f++],_=s[f++],b=s[f++];f+=1;var S=!!(1-s[f++]);o=Math.cos(_)*x+v,a=Math.sin(_)*w+y,m?(p=o,h=a):u+=As(c,d,o,a,i,r);var M=(i-v)*w/x+v;if(n){if(Is(v,y,w,_,_+b,S,t,M,r))return!0}else u+=Rs(v,y,w,_,_+b,S,M,r);c=Math.cos(_+b)*x+v,d=Math.sin(_+b)*w+y;break;case Ds.R:if(p=c=s[f++],h=d=s[f++],o=p+s[f++],a=h+s[f++],n){if(_s(p,h,o,h,t,i,r)||_s(o,h,o,a,t,i,r)||_s(o,a,p,a,t,i,r)||_s(p,a,p,h,t,i,r))return!0}else u+=As(o,h,o,a,i,r),u+=As(p,a,p,h,i,r);break;case Ds.Z:if(n){if(_s(c,d,p,h,t,i,r))return!0}else u+=As(c,d,p,h,i,r);c=p,d=h}}return n||(T=d,C=h,Math.abs(T-C)<1e-4)||(u+=As(c,d,p,h,i,r)||0),0!==u;var T,C}var zs=L({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Oa),Bs={style:L({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ra.style)},Vs=xr.concat(["invisible","culling","z","z2","zlevel","parent"]),Fs=function(e){function t(t){return e.call(this,t)||this}var n;return i(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(e){n.buildPath(e,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<Vs.length;++s)r[Vs[s]]=this[Vs[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=H(t);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=t[o];"style"===o?this.style?k(this.style,a):this.useStyle(a):"shape"===o?k(this.shape,a):e.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(X(e)){var t=ai(e,0);return t>.5?ur:t>.2?"#eee":cr}if(e)return cr}return ur},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(X(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())==ai(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ws(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),e=r.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.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 e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){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(e,t,n,i){return Ns(e,t,!0,n,i)}(o,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return Ns(e,0,!1,t,n)}(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:k(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return xe(zs,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=k({},this.shape))},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=k({},i.shape),k(s,n.shape)):(s=k({},r?this.shape:i.shape),k(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=k({},this.shape);for(var u={},c=H(s),d=0;d<c.length;d++){var p=c[d];"object"==typeof s[p]?this.shape[p]=s[p]:u[p]=s[p]}this._transitionState(t,{shape:u},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var o=t[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return Bs},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var i=t.call(this,n)||this;return e.init&&e.init.call(i,n),i}return i(n,t),n.prototype.getDefaultStyle=function(){return I(e.style)},n.prototype.getDefaultShape=function(){return I(e.shape)},n}(t);for(var r in e)"function"==typeof e[r]&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),t}(Ba),Gs=L({strokeFirst:!0,font:s,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},zs),Hs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return xe(Gs,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Mr(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(Ba);Hs.prototype.type="tspan";var Ws=L({x:0,y:0},Oa),js={style:L({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ra.style)};var $s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.createStyle=function(e){return xe(Ws,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var i,r=(i=t.image)&&"string"!=typeof i&&i.width&&i.height?t.image:this.__image;if(!r)return 0;var o="width"===e?"height":"width",a=t[o];return null==a?r[e]:r[e]/r[o]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return js},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Bt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ba);$s.prototype.type="image";var Ys=Math.round;function Xs(e,t,n){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;e.x1=i,e.x2=r,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(Ys(2*i)===Ys(2*r)&&(e.x1=e.x2=Us(i,s,!0)),Ys(2*o)===Ys(2*a)&&(e.y1=e.y2=Us(o,s,!0)),e):e}}
vendor: 1,272 bytes, line 2
2function qs(e,t,n){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;e.x=i,e.y=r,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=Us(i,s,!0),e.y=Us(r,s,!0),e.width=Math.max(Us(i+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(Us(r+a,s,!1)-e.y,0===a?0:1),e):e}}function Us(e,t,n){if(!t)return e;var i=Ys(2*e);return(i+Ys(t))%2==0?i/2:(i+(n?1:-1))/2}var Zs=function(){this.x=0,this.y=0,this.width=0,this.height=0},Ks={},Js=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getDefaultShape=function(){return new Zs},t.prototype.buildPath=function(e,t){var n,i,r,o;if(this.subPixelOptimize){var a=qs(Ks,t,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,i=t.y,r=t.width,o=t.height;t.r?function(e,t){var n,i,r,o,a,s=t.x,l=t.y,u=t.width,c=t.height,d=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"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>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-i,l),0!==i&&e.arc(s+u-i,l+i,i,-Math.PI/2,0),e.lineTo(s+u,l+c-r),0!==r&&e.arc(s+u-r,l+c-r,r,0,Math.PI/2),e.lineTo(s+o,l
vendor: 8,422 bytes, line 2
2+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,i,r,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Fs);Js.prototype.type="rect";var Qs={fill:"#000"},el={style:L({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},Ra.style)},tl=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Qs,n.attr(t),n}return i(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,ll(e=this.style),z(e.rich,ll),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Bt(0,0,0,0),t=this._children,n=[],i=null,r=0;r<t.length;r++){var o=t[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),(i=i||e.clone()).union(e)):(i=i||a.clone()).union(a)}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Qs},t.prototype.setTextContent=function(e){throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,i=e.rich||n&&{};return k(e,t),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,t){for(var n=H(t),i=0;i<n.length;i++){var r=n[i];e[r]=e[r]||{},k(e[r],t[r])}},t.prototype.getAnimationStyleProps=function(){return el},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||s,n=e.padding,i=function(e,t){null!=e&&(e+="");var n,i=t.overflow,r=t.padding,o=t.font,a="truncate"===i,s=Ir(o),l=oe(t.lineHeight,s),u=!!t.backgroundColor,c="truncate"===t.lineOverflow,d=!1,p=t.width,h=(n=null==p||"break"!==i&&"breakAll"!==i?e?e.split("\n"):[]:e?Ea(e,t.font,p,"breakAll"===i,0).lines:[]).length*l,f=oe(t.height,h);if(h>f&&c){var g=Math.floor(f/l);d=d||n.length>g,n=n.slice(0,g)}if(e&&a&&null!=p)for(var m=Sa(p,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v={},y=0;y<n.length;y++)Ma(v,n[y],m),n[y]=v.textLine,d=d||v.isTruncated;var x=f,w=0;for(y=0;y<n.length;y++)w=Math.max(br(n[y],o),w);null==p&&(p=w);var _=w;return r&&(x+=r[0]+r[2],_+=r[1]+r[3],p+=r[1]+r[3]),u&&(_=p),{lines:n,height:f,outerWidth:_,outerHeight:x,lineHeight:l,calculatedLineHeight:s,contentWidth:w,contentHeight:h,width:p,isTruncated:d}}(pl(e),e),r=hl(e),o=!!e.backgroundColor,a=i.outerHeight,l=i.outerWidth,u=i.contentWidth,c=i.lines,d=i.lineHeight,p=this._defaultStyle;this.isTruncated=!!i.isTruncated;var h=e.x||0,f=e.y||0,g=e.align||p.align||"left",m=e.verticalAlign||p.verticalAlign||"top",v=h,y=Cr(f,i.contentHeight,m);if(r||n){var x=Tr(h,l,g),w=Cr(f,a,m);r&&this._renderBackground(e,e,x,w,l,a)}y+=d/2,n&&(v=dl(h,g,n),"top"===m?y+=n[0]:"bottom"===m&&(y-=n[2]));for(var _=0,b=!1,S=(cl("fill"in e?e.fill:(b=!0,p.fill))),M=(ul("stroke"in e?e.stroke:o||p.autoStroke&&!b?null:(_=2,p.stroke))),T=e.textShadowBlur>0,C=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),I=i.calculatedLineHeight,A=0;A<c.length;A++){var D=this._getOrCreateChild(Hs),k=D.createStyle();D.useStyle(k),k.text=c[A],k.x=v,k.y=y,g&&(k.textAlign=g),k.textBaseline="middle",k.opacity=e.opacity,k.strokeFirst=!0,T&&(k.shadowBlur=e.textShadowBlur||0,k.shadowColor=e.textShadowColor||"transparent",k.shadowOffsetX=e.textShadowOffsetX||0,k.shadowOffsetY=e.textShadowOffsetY||0),k.stroke=M,k.fill=S,M&&(k.lineWidth=e.lineWidth||_,k.lineDash=e.lineDash,k.lineDashOffset=e.lineDashOffset||0),k.font=t,al(k,e),y+=d,C&&D.setBoundingRect(new Bt(Tr(k.x,u,k.textAlign),Cr(k.y,I,k.textBaseline),u,I))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new Aa;if(null!=e&&(e+=""),!e)return n;for(var i,r=t.width,o=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},l=_a.lastIndex=0;null!=(i=_a.exec(e));){var u=i.index;u>l&&Da(n,e.substring(l,u),t,s),Da(n,i[2],t,s,i[1]),l=_a.lastIndex}l<e.length&&Da(n,e.substring(l,e.length),t,s);var c=[],d=0,p=0,h=t.padding,f="truncate"===a,g="truncate"===t.lineOverflow,m={};function v(e,t,n){e.width=t,e.lineHeight=n,d+=n,p=Math.max(p,t)}e:for(var y=0;y<n.lines.length;y++){for(var x=n.lines[y],w=0,_=0,b=0;b<x.tokens.length;b++){var S=(O=x.tokens[b]).styleName&&t.rich[O.styleName]||{},M=O.textPadding=S.padding,T=M?M[1]+M[3]:0,C=O.font=S.font||t.font;O.contentHeight=Ir(C);var I=oe(S.height,O.contentHeight);if(O.innerHeight=I,M&&(I+=M[0]+M[2]),O.height=I,O.lineHeight=ae(S.lineHeight,t.lineHeight,I),O.align=S&&S.align||t.align,O.verticalAlign=S&&S.verticalAlign||"middle",g&&null!=o&&d+O.lineHeight>o){var A=n.lines.length;b>0?(x.tokens=x.tokens.slice(0,b),v(x,_,w),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y),n.isTruncated=n.isTruncated||n.lines.length<A;break e}var D=S.width,k=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))O.percentWidth=D,c.push(O),O.contentWidth=br(O.text,C);else{if(k){var L=S.backgroundColor,E=L&&L.image;E&&wa(E=va(E))&&(O.width=Math.max(O.width,E.width*I/E.height))}var P=f&&null!=r?r-_:null;null!=P&&P<O.width?!k||P<T?(O.text="",O.width=O.contentWidth=0):(ba(m,O.text,P-T,C,t.ellipsis,{minChar:t.truncateMinChar}),O.text=m.text,n.isTruncated=n.isTruncated||m.isTruncated,O.width=O.contentWidth=br(O.text,C)):O.contentWidth=br(O.text,C)}O.width+=T,_+=O.width,S&&(w=Math.max(w,O.lineHeight))}v(x,_,w)}for(n.outerWidth=n.width=oe(r,p),n.outerHeight=n.height=oe(o,d),n.contentHeight=d,n.contentWidth=p,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]),y=0;y<c.length;y++){var O,R=(O=c[y]).percentWidth;O.width=parseInt(R,10)/100*n.width}return n}(pl(e),e),n=t.width,i=t.outerWidth,r=t.outerHeight,o=e.padding,a=e.x||0,s=e.y||0,l=this._defaultStyle,u=e.align||l.align,c=e.verticalAlign||l.verticalAlign;this.isTruncated=!!t.isTruncated;var d=Tr(a,i,u),p=Cr(s,r,c),h=d,f=p;o&&(h+=o[3],f+=o[0]);var g=h+n;hl(e)&&this._renderBackground(e,e,d,p,i,r);for(var m=!!e.backgroundColor,v=0;v<t.lines.length;v++){for(var y=t.lines[v],x=y.tokens,w=x.length,_=y.lineHeight,b=y.width,S=0,M=h,T=g,C=w-1,I=void 0;S<w&&(!(I=x[S]).align||"left"===I.align);)this._placeToken(I,e,_,f,M,"left",m),b-=I.width,M+=I.width,S++;for(;C>=0&&"right"===(I=x[C]).align;)this._placeToken(I,e,_,f,T,"right",m),b-=I.width,T-=I.width,C--;for(M+=(n-(M-h)-(g-T)-b)/2;S<=C;)I=x[S],this._placeToken(I,e,_,f,M+I.width/2,"center",m),M+=I.width,S++;f+=_}},t.prototype._placeToken=function(e,t,n,i,r,o,a){var l=t.rich[e.styleName]||{};l.text=e.text;var u=e.verticalAlign,c=i+n/2;"top"===u?c=i+e.height/2:"bottom"===u&&(c=i+n-e.height/2),!e.isLineHolder&&hl(l)&&this._renderBackground(l,t,"right"===o?r-e.width:"center"===o?r-e.width/2:r,c-e.height/2,e.width,e.height);var d=!!l.backgroundColor,p=e.textPadding;
vendor: 8,955 bytes, line 2
2p&&(r=dl(r,o,p),c-=e.height/2-p[0]-e.innerHeight/2);var h=this._getOrCreateChild(Hs),f=h.createStyle();h.useStyle(f);var g=this._defaultStyle,m=!1,v=0,y=cl("fill"in l?l.fill:"fill"in t?t.fill:(m=!0,g.fill)),x=ul("stroke"in l?l.stroke:"stroke"in t?t.stroke:d||a||g.autoStroke&&!m?null:(v=2,g.stroke)),w=l.textShadowBlur>0||t.textShadowBlur>0;f.text=e.text,f.x=r,f.y=c,w&&(f.shadowBlur=l.textShadowBlur||t.textShadowBlur||0,f.shadowColor=l.textShadowColor||t.textShadowColor||"transparent",f.shadowOffsetX=l.textShadowOffsetX||t.textShadowOffsetX||0,f.shadowOffsetY=l.textShadowOffsetY||t.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=e.font||s,f.opacity=ae(l.opacity,t.opacity,1),al(f,l),x&&(f.lineWidth=ae(l.lineWidth,t.lineWidth,v),f.lineDash=oe(l.lineDash,t.lineDash),f.lineDashOffset=t.lineDashOffset||0,f.stroke=x),y&&(f.fill=y);var _=e.contentWidth,b=e.contentHeight;h.setBoundingRect(new Bt(Tr(f.x,_,f.textAlign),Cr(f.y,b,f.textBaseline),_,b))},t.prototype._renderBackground=function(e,t,n,i,r,o){var a,s,l,u=e.backgroundColor,c=e.borderWidth,d=e.borderColor,p=u&&u.image,h=u&&!p,f=e.borderRadius,g=this;if(h||e.lineHeight||c&&d){(a=this._getOrCreateChild(Js)).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(h)(l=a.style).fill=u||null,l.fillOpacity=oe(e.fillOpacity,1);else if(p){(s=this._getOrCreateChild($s)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=i,v.width=r,v.height=o}c&&d&&((l=a.style).lineWidth=c,l.stroke=d,l.strokeOpacity=oe(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=ae(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return sl(e)&&(t=[e.fontStyle,e.fontWeight,ol(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&ce(t)||e.textFont||e.font},t}(Ba),nl={left:!0,right:1,center:1},il={top:1,bottom:1,middle:1},rl=["fontStyle","fontWeight","fontSize","fontFamily"];function ol(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e}function al(e,t){for(var n=0;n<rl.length;n++){var i=rl[n],r=t[i];null!=r&&(e[i]=r)}}function sl(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function ll(e){if(e){e.font=tl.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||nl[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||il[n]?n:"top",e.padding&&(e.padding=le(e.padding))}}function ul(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function cl(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function dl(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function pl(e){var t=e.text;return null!=t&&(t+=""),t}function hl(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var fl=qo(),gl=function(e,t,n,i){if(i){var r=fl(i);r.dataIndex=n,r.dataType=t,r.seriesIndex=e,r.ssrType="chart","group"===i.type&&i.traverse((function(i){var r=fl(i);r.seriesIndex=e,r.dataIndex=n,r.dataType=t,r.ssrType="chart"}))}},ml=1,vl={},yl=qo(),xl=qo(),wl=["emphasis","blur","select"],_l=["normal","emphasis","blur","select"],bl=10,Sl="highlight",Ml="downplay",Tl="select",Cl="unselect",Il="toggleSelect";function Al(e){return null!=e&&"none"!==e}function Dl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function kl(e){Dl(e,"emphasis",2)}function Ll(e){2===e.hoverState&&Dl(e,"normal",0)}function El(e){Dl(e,"blur",1)}function Pl(e){1===e.hoverState&&Dl(e,"normal",0)}function Ol(e){e.selected=!0}function Rl(e){e.selected=!1}function Nl(e,t,n){t(e,n)}function zl(e,t,n){Nl(e,t,n),e.isGroup&&e.traverse((function(e){Nl(e,t,n)}))}function Bl(e,t){switch(t){case"emphasis":e.hoverState=2;break;case"normal":e.hoverState=0;break;case"blur":e.hoverState=1;break;case"select":e.selected=!0}}function Vl(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,i){var r=n&&P(n,"select")>=0,o=!1;if(e instanceof Fs){var a=yl(e),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Al(s)||Al(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=k({},i),(u=k({},u)).fill=s):!Al(u.fill)&&Al(s)?(o=!0,i=k({},i),(u=k({},u)).fill=li(s)):!Al(u.stroke)&&Al(l)&&(o||(i=k({},i),u=k({},u)),u.stroke=li(l)),i.style=u}}if(i&&null==i.z2){o||(i=k({},i));var c=e.z2EmphasisLift;i.z2=e.z2+(null!=c?c:bl)}return i}(this,0,t,n);if("blur"===e)return function(e,t,n){var i=P(e.currentStates,t)>=0,r=e.style.opacity,o=i?null:function(e,t,n,i){for(var r=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,t)}return o}(e,["opacity"],t,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=k({},n),a=k({opacity:i?r:.1*o.opacity},a),n.style=a),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=k({},n);var i=e.z2SelectLift;n.z2=e.z2+(null!=i?i:9)}return n}(this,0,n)}return n}function Fl(e){e.stateProxy=Vl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Vl),n&&(n.stateProxy=Vl)}function Gl(e,t){!Ul(e,t)&&!e.__highByOuter&&zl(e,kl)}function Hl(e,t){!Ul(e,t)&&!e.__highByOuter&&zl(e,Ll)}function Wl(e,t){e.__highByOuter|=1<<(t||0),zl(e,kl)}function jl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&zl(e,Ll)}function $l(e){zl(e,El)}function Yl(e){zl(e,Pl)}function Xl(e){zl(e,Ol)}function ql(e){zl(e,Rl)}function Ul(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Zl(e){var t=e.getModel(),n=[],i=[];t.eachComponent((function(t,r){var o=xl(r),a="series"===t,s=a?e.getViewOfSeriesModel(r):e.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(e){Pl(e)})),a&&n.push(r)),o.isBlured=!1})),z(i,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function Kl(e,t,n,i){var r=i.getModel();function o(e,t){for(var n=0;n<t.length;n++){var i=e.getItemGraphicEl(t[n]);i&&Yl(i)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=r.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries((function(e){var r=a===e,u=e.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!r||"coordinateSystem"===n&&!(u&&s?u===s:r)||"series"===t&&r)){if(i.getViewOfSeriesModel(e).group.traverse((function(e){e.__highByOuter&&r&&"self"===t||El(e)})),N(t))o(e.getData(),t);else if(Z(t))for(var c=H(t),d=0;d<c.length;d++)o(e.getData(c[d]),t[c[d]]);l.push(e),xl(e).isBlured=!0}})),r.eachComponent((function(e,t){if("series"!==e){var n=i.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}}))}}function Jl(e,t,n){if(null!=e&&null!=t){var i=n.getModel().getComponent(e,t);if(i){xl(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(e){El(e)}))}}}function Ql(e,t,n,i){var r={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return r;var o=i.getModel().getComponent(e,t);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if(uu(l[u])||Co("param should be highDownDispatcher"),"self"===fl(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function eu(e){z(e.getAllData(),(function(t){var n=t.data,i=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,i)?Xl(t):ql(t)}))}))}function tu(e){var t=[];return e.eachSeries((function(e){z(e.getAllData(),(function(n){n.data;var i=n.type,r=e.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:e.seriesIndex};null!=i&&(o.dataType=i),t.push(o)}}))})),t}function nu(e,t,n){lu(e,!0),zl(e,Fl),ru(e,t,n)}function iu(e,t,n,i){i?function(e){lu(e,!1)}(e):nu(e,t,n)}function ru(e,t,n){var i=fl(e);null!=t?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var ou=["emphasis","blur","select"],au={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function su(e,t,n,i){n=n||"itemStyle";for(var r=0;r<ou.length;r++){var o=ou[r],a=t.getModel([o,n]);e.ensureState(o).style=i?i(a):a[au[n]]()}}function lu(e,t){var n=!1===t,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function uu(e){return!(!e||!e.__highDownDispatcher)}function cu(e){var t=e.type;return t===Tl||t===Cl||t===Il}function du(e){var t=e.type;return t===Sl||t===Ml}var pu=ws.CMD,hu=[[],[],[]],fu=Math.sqrt,gu=Math.atan2;function mu(e,t){if(t){var n,i,r,o,a,s,l=e.data,u=e.len(),c=pu.M,d=pu.C,p=
vendor: 3,273 bytes, line 2
2pu.L,h=pu.R,f=pu.A,g=pu.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:case p:i=1;break;case d:i=3;break;case g:i=2;break;case f:var m=t[4],v=t[5],y=fu(t[0]*t[0]+t[1]*t[1]),x=fu(t[2]*t[2]+t[3]*t[3]),w=gu(-t[1]/x,t[0]/y);l[r]*=y,l[r++]+=m,l[r]*=x,l[r++]+=v,l[r++]*=y,l[r++]*=x,l[r++]+=w,l[r++]+=w,o=r+=2;break;case h:s[0]=l[r++],s[1]=l[r++],We(s,s,t),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],We(s,s,t),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var _=hu[a];_[0]=l[r++],_[1]=l[r++],We(_,_,t),l[o++]=_[0],l[o++]=_[1]}}e.increaseVersion()}}var vu=Math.sqrt,yu=Math.sin,xu=Math.cos,wu=Math.PI;function _u(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function bu(e,t){return(e[0]*t[0]+e[1]*t[1])/(_u(e)*_u(t))}function Su(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(bu(e,t))}function Mu(e,t,n,i,r,o,a,s,l,u,c){var d=l*(wu/180),p=xu(d)*(e-n)/2+yu(d)*(t-i)/2,h=-1*yu(d)*(e-n)/2+xu(d)*(t-i)/2,f=p*p/(a*a)+h*h/(s*s);f>1&&(a*=vu(f),s*=vu(f));var g=(r===o?-1:1)*vu((a*a*(s*s)-a*a*(h*h)-s*s*(p*p))/(a*a*(h*h)+s*s*(p*p)))||0,m=g*a*h/s,v=g*-s*p/a,y=(e+n)/2+xu(d)*m-yu(d)*v,x=(t+i)/2+yu(d)*m+xu(d)*v,w=Su([1,0],[(p-m)/a,(h-v)/s]),_=[(p-m)/a,(h-v)/s],b=[(-1*p-m)/a,(-1*h-v)/s],S=Su(_,b);if(bu(_,b)<=-1&&(S=wu),bu(_,b)>=1&&(S=0),S<0){var M=Math.round(S/wu*1e6)/1e6;S=2*wu+M%2*wu}c.addData(u,y,x,a,s,w,S,d,o)}var Tu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Cu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var Iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.applyTransform=function(e){},t}(Fs);function Au(e){return null!=e.setData}function Du(e,t){var n=function(e){var t=new ws;if(!e)return t;var n,i=0,r=0,o=i,a=r,s=ws.CMD,l=e.match(Tu);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),p=void 0,h=c.match(Cu)||[],f=h.length,g=0;g<f;g++)h[g]=parseFloat(h[g]);for(var m=0;m<f;){var v=void 0,y=void 0,x=void 0,w=void 0,_=void 0,b=void 0,S=void 0,M=i,T=r,C=void 0,I=void 0;switch(d){case"l":i+=h[m++],r+=h[m++],p=s.L,t.addData(p,i,r);break;case"L":i=h[m++],r=h[m++],p=s.L,t.addData(p,i,r);break;case"m":i+=h[m++],r+=h[m++],p=s.M,t.addData(p,i,r),o=i,a=r,d="l";break;case"M":i=h[m++],r=h[m++],p=s.M,t.addData(p,i,r),o=i,a=r,d="L";break;case"h":i+=h[m++],p=s.L,t.addData(p,i,r);break;case"H":i=h[m++],p=s.L,t.addData(p,i,r);break;case"v":r+=h[m++],p=s.L,t.addData(p,i,r);break;case"V":r=h[m++],p=s.L,t.addData(p,i,r);break;case"C":p=s.C,t.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),i=h[m-2],r=h[m-1];break;case"c":p=s.C,t.addData(p,h[m++]+i,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i,h[m++]+r),i+=h[m-2],r+=h[m-1];break;case"S":v=i,y=r,C=t.len(),I=t.data,n===s.C&&(v+=i-I[C-4],y+=r-I[C-3]),p=s.C,M=h[m++],T=h[m++],i=h[m++],r=h[m++],t.addData(p,v,y,M,T,i,r);break;case"s":v=i,y=r,C=t.len(),I=t.data,n===s.C&&(v+=i-I[C-4],y+=r-I[C-3]),p=s.C,M=i+h[m++],T=r+h[m++],i+=h[m++],r+=h[m++],t.addData(p,v,y,M,T,i,r);break;case"Q":M=h[m++],T=h[m++],i=h[m++],r=h[m++],p=s.Q,t.addData(p,M,T,i,r);break;case"q":M=h[m++]+i,T=h[m++]+r,i+=h[m++],r+=h[m++],p=s.Q,t.addData(p,M,T,i,r);break;case"T":v=i,y=r,C=t.len(),I=t.data,n===s.Q&&(v+=i-I[C-4],y+=r-I[C-3]),i=h[m++],r=h[m++],p=s.Q,t.addData(p,v,y,i,r);break;case"t":v=i,y=r,C=t.len(),I=t.data,n===s.Q&&(v+=i-I[C-4],y+=r-I[C-3]),i+=h[m++],r+=h[m++],p=s.Q,t.addData(p,v,y,i,r);break;
vendor: 10,390 bytes, line 2
2case"A":x=h[m++],w=h[m++],_=h[m++],b=h[m++],S=h[m++],Mu(M=i,T=r,i=h[m++],r=h[m++],b,S,x,w,_,p=s.A,t);break;case"a":x=h[m++],w=h[m++],_=h[m++],b=h[m++],S=h[m++],Mu(M=i,T=r,i+=h[m++],r+=h[m++],b,S,x,w,_,p=s.A,t)}}"z"!==d&&"Z"!==d||(p=s.Z,t.addData(p),i=o,r=a),n=p}return t.toStatic(),t}(e),i=k({},t);return i.buildPath=function(e){if(Au(e))e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1);else{var t=e;n.rebuildPath(t,1)}},i.applyTransform=function(e){mu(n,e),this.dirtyShape()},i}function ku(e,t){return new Iu(Du(e,t))}function Lu(e,t){t=t||{};var n=new Fs;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?mu(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var Eu=function(){this.cx=0,this.cy=0,this.r=0},Pu=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getDefaultShape=function(){return new Eu},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(Fs);Pu.prototype.type="circle";var Ou=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Ru=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getDefaultShape=function(){return new Ou},t.prototype.buildPath=function(e,t){var n=.5522848,i=t.cx,r=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(i-o,r),e.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),e.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),e.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),e.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),e.closePath()},t}(Fs);Ru.prototype.type="ellipse";var Nu=Math.PI,zu=2*Nu,Bu=Math.sin,Vu=Math.cos,Fu=Math.acos,Gu=Math.atan2,Hu=Math.abs,Wu=Math.sqrt,ju=Math.max,$u=Math.min,Yu=1e-4;function Xu(e,t,n,i,r,o,a){var s=e-n,l=t-i,u=(a?o:-o)/Wu(s*s+l*l),c=u*l,d=-u*s,p=e+c,h=t+d,f=n+c,g=i+d,m=(p+f)/2,v=(h+g)/2,y=f-p,x=g-h,w=y*y+x*x,_=r-o,b=p*g-f*h,S=(x<0?-1:1)*Wu(ju(0,_*_*w-b*b)),M=(b*x-y*S)/w,T=(-b*y-x*S)/w,C=(b*x+y*S)/w,I=(-b*y+x*S)/w,A=M-m,D=T-v,k=C-m,L=I-v;return A*A+D*D>k*k+L*L&&(M=C,T=I),{cx:M,cy:T,x0:-c,y0:-d,x1:M*(r/_-1),y1:T*(r/_-1)}}function qu(e,t){var n,i=ju(t.r,0),r=ju(t.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=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=t.cx,c=t.cy,d=!!t.clockwise,p=Hu(l-s),h=p>zu&&p%zu;if(h>Yu&&(p=h),i>Yu)if(p>zu-Yu)e.moveTo(u+i*Vu(s),c+i*Bu(s)),e.arc(u,c,i,s,l,!d),r>Yu&&(e.moveTo(u+r*Vu(l),c+r*Bu(l)),e.arc(u,c,r,l,s,d));else{var f=void 0,g=void 0,m=void 0,v=void 0,y=void 0,x=void 0,w=void 0,_=void 0,b=void 0,S=void 0,M=void 0,T=void 0,C=void 0,I=void 0,A=void 0,D=void 0,k=i*Vu(s),L=i*Bu(s),E=r*Vu(l),P=r*Bu(l),O=p>Yu;if(O){var R=t.cornerRadius;R&&(f=(n=function(e){var t;if($(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(R))[0],g=n[1],m=n[2],v=n[3]);var N=Hu(i-r)/2;if(y=$u(N,m),x=$u(N,v),w=$u(N,f),_=$u(N,g),M=b=ju(y,x),T=S=ju(w,_),(b>Yu||S>Yu)&&(C=i*Vu(l),I=i*Bu(l),A=r*Vu(s),D=r*Bu(s),p<Nu)){var z=function(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,c=a-r,d=s-o,p=d*l-c*u;if(!(p*p<Yu))return[e+(p=(c*(t-o)-d*(e-r))/p)*l,t+p*u]}(k,L,A,D,C,I,E,P);if(z){var B=k-z[0],V=L-z[1],F=C-z[0],G=I-z[1],H=1/Bu(Fu((B*F+V*G)/(Wu(B*B+V*V)*Wu(F*F+G*G)))/2),W=Wu(z[0]*z[0]+z[1]*z[1]);M=$u(b,(i-W)/(H+1)),T=$u(S,(r-W)/(H-1))}}}if(O)if(M>Yu){var j=$u(m,M),Y=$u(v,M),X=Xu(A,D,k,L,i,j,d),q=Xu(C,I,E,P,i,Y,d);e.moveTo(u+X.cx+X.x0,c+X.cy+X.y0),M<b&&j===Y?e.arc(u+X.cx,c+X.cy,M,Gu(X.y0,X.x0),Gu(q.y0,q.x0),!d):(j>0&&e.arc(u+X.cx,c+X.cy,j,Gu(X.y0,X.x0),Gu(X.y1,X.x1),!d),e.arc(u,c,i,Gu(X.cy+X.y1,X.cx+X.x1),Gu(q.cy+q.y1,q.cx+q.x1),!d),Y>0&&e.arc(u+q.cx,c+q.cy,Y,Gu(q.y1,q.x1),Gu(q.y0,q.x0),!d))}else e.moveTo(u+k,c+L),e.arc(u,c,i,s,l,!d);else e.moveTo(u+k,c+L);r>Yu&&O?T>Yu?(j=$u(f,T),X=Xu(E,P,C,I,r,-(Y=$u(g,T)),d),q=Xu(k,L,A,D,r,-j,d),e.lineTo(u+X.cx+X.x0,c+X.cy+X.y0),T<S&&j===Y?e.arc(u+X.cx,c+X.cy,T,Gu(X.y0,X.x0),Gu(q.y0,q.x0),!d):(Y>0&&e.arc(u+X.cx,c+X.cy,Y,Gu(X.y0,X.x0),Gu(X.y1,X.x1),!d),e.arc(u,c,r,Gu(X.cy+X.y1,X.cx+X.x1),Gu(q.cy+q.y1,q.cx+q.x1),d),j>0&&e.arc(u+q.cx,c+q.cy,j,Gu(q.y1,q.x1),Gu(q.y0,q.x0),!d))):(e.lineTo(u+E,c+P),e.arc(u,c,r,l,s,d)):e.lineTo(u+E,c+P)}else e.moveTo(u,c);e.closePath()}}}var Uu=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},Zu=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getDefaultShape=function(){return new Uu},t.prototype.buildPath=function(e,t){qu(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Fs);Zu.prototype.type="sector";var Ku=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Ju=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getDefaultShape=function(){return new Ku},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)},t}(Fs);function Qu(e,t,n){var i=t.smooth,r=t.points;if(r&&r.length>=2){if(i){var o=function(e,t,n,i){var r,o,a,s,l=[],u=[],c=[],d=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,h=e.length;p<h;p++)je(a,a,e[p]),$e(s,s,e[p]);je(a,a,i[0]),$e(s,s,i[1])}for(p=0,h=e.length;p<h;p++){var f=e[p];if(n)r=e[p?p-1:h-1],o=e[(p+1)%h];else{if(0===p||p===h-1){l.push(Ie(e[p]));continue}r=e[p-1],o=e[p+1]}Le(u,o,r),Ne(u,u,t);var g=Be(f,r),m=Be(f,o),v=g+m;0!==v&&(g/=v,m/=v),Ne(c,u,-g),Ne(d,u,m);var y=De([],f,c),x=De([],f,d);i&&($e(y,y,a),je(y,y,s),$e(x,x,a),je(x,x,s)),l.push(y),l.push(x)}return n&&l.push(l.shift()),l}(r,i,n,t.smoothConstraint);e.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],u=o[2*s+1],c=r[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(r[0][0],r[0][1]),s=1;for(var d=r.length;s<d;s++)e.lineTo(r[s][0],r[s][1])}n&&e.closePath()}}Ju.prototype.type="ring";var ec=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},tc=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getDefaultShape=function(){return new ec},t.prototype.buildPath=function(e,t){Qu(e,t,!0)},t}(Fs);tc.prototype.type="polygon";var nc=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},ic=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new nc},t.prototype.buildPath=function(e,t){Qu(e,t,!1)},t}(Fs);ic.prototype.type="polyline";var rc={},oc=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},ac=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new oc},t.prototype.buildPath=function(e,t){var n,i,r,o;if(this.subPixelOptimize){var a=Xs(rc,t,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=t.x1,i=t.y1,r=t.x2,o=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),e.lineTo(r,o))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Fs);ac.prototype.type="line";var sc=[],lc=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function uc(e,t,n){var i=e.cpx2,r=e.cpy2;return null!=i||null!=r?[(n?wn:xn)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?wn:xn)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?In:Cn)(e.x1,e.cpx1,e.x2,t),(n?In:Cn)(e.y1,e.cpy1,e.y2,t)]}var cc=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new lc},t.prototype.buildPath=function(e,t){var n=t.x1,i=t.y1,r=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,i),null==l||null==u?(c<1&&(Dn(n,a,r,c,sc),a=sc[1],r=sc[2],Dn(i,s,o,c,sc),s=sc[1],o=sc[2]),e.quadraticCurveTo(a,s,r,o)):(c<1&&(Sn(n,a,l,r,c,sc),a=sc[1],l=sc[2],r=sc[3],Sn(i,s,u,o,c,sc),s=sc[1],u=sc[2],o=sc[3]),e.bezierCurveTo(a,s,l,u,r,o)))},t.prototype.pointAt=function(e){return uc(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=uc(this.shape,e,!0);return ze(t,t)},t}(Fs);cc.prototype.type="bezier-curve";var dc=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},pc=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dc},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),u=Math.sin(o);e.moveTo(l*r+n,u*r+i),e.arc(n,i,r,o,a,!s)},t}(Fs);pc.prototype.type="arc";var hc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return i(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Fs.prototype.getBoundingRect.call(this)},t}(Fs),fc=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),gc=function(e){function t(t,n,i,r,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,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 i(t,e),t}(fc),mc=function(e){function t(t,n,i,r,o){var a=e.call(this,r)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return i(t,e),t}(fc),vc=[0,0],yc=[0,0],xc=new Dt,wc=new Dt,_c=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Dt;for(n=0;n<2;n++)this._axes[n]=new Dt;
vendor: 3,036 bytes, line 2
2e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,r=e.x,o=e.y,a=r+e.width,s=o+e.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),t)for(var l=0;l<4;l++)n[l].transform(t);for(Dt.sub(i[0],n[1],n[0]),Dt.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return xc.set(1/0,1/0),wc.set(0,0),!this._intersectCheckOneSide(this,e,xc,wc,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,xc,wc,i,-1)&&(n=!1,i)||i||Dt.copy(t,n?xc:wc),n},e.prototype._intersectCheckOneSide=function(e,t,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,vc),this._getProjMinMaxOnAxis(s,t._corners,yc),vc[1]<yc[0]||vc[0]>yc[1]){if(a=!1,r)return a;var u=Math.abs(yc[0]-vc[1]),c=Math.abs(vc[0]-yc[1]);Math.min(u,c)>i.len()&&(u<c?Dt.scale(i,l,-u*o):Dt.scale(i,l,c*o))}else n&&(u=Math.abs(yc[0]-vc[1]),c=Math.abs(vc[0]-yc[1]),Math.min(u,c)<n.len()&&(u<c?Dt.scale(n,l,u*o):Dt.scale(n,l,-c*o)))}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],r=this._origin,o=t[0].dot(i)+r[e],a=o,s=o,l=1;l<t.length;l++){var u=t[l].dot(i)+r[e];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},e}(),bc=[],Sc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return i(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++)(t=this._displayables[e]).parent=this,t.update(),t.parent=null;for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Bt(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();
vendor: 6,726 bytes, line 2
2n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(bc)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(e,t))return!0;return!1},t}(Ba),Mc=qo();function Tc(e,t,n,i,r){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return i?(l=oe(i.duration,200),u=oe(i.easing,"cubicOut"),c=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),u=t.getShallow(s?"animationEasingUpdate":"animationEasing"),c=t.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),Y(c)&&(c=c(n,r)),Y(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}function Cc(e,t,n,i,r,o,a){var s,l=!1;Y(r)?(a=o,o=r,r=null):Z(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=Tc(e,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null);if(c&&c.duration>0){var d={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};l?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function Ic(e,t,n,i,r,o){Cc("update",e,t,n,i,r,o)}function Ac(e,t,n,i,r,o){Cc("enter",e,t,n,i,r,o)}function Dc(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if("leave"===e.animators[t].scope)return!0;return!1}function kc(e,t,n,i,r,o){Dc(e)||Cc("leave",e,t,n,i,r,o)}function Lc(e,t,n,i){e.removeTextContent(),e.removeTextGuideLine(),kc(e,{style:{opacity:0}},t,n,i)}function Ec(e,t,n){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||Lc(e,t,n,i)})):Lc(e,t,n,i)}function Pc(e){Mc(e).oldStyle=e.style}var Oc=Math.max,Rc=Math.min,Nc={};function zc(e){return Fs.extend(e)}var Bc=function(e,t){var n=Du(e,t);return function(e){function t(t){var i=e.call(this,t)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return i(t,e),t}(Iu)};function Vc(e,t){return Bc(e,t)}function Fc(e,t){Nc[e]=t}function Gc(e){if(Nc.hasOwnProperty(e))return Nc[e]}function Hc(e,t,n,i){var r=ku(e,t);return n&&("center"===i&&(n=jc(n,r.getBoundingRect())),Yc(r,n)),r}function Wc(e,t,n){var i=new $s({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var r={width:e.width,height:e.height};i.setStyle(jc(t,r))}}});return i}function jc(e,t){var n,i=t.width/t.height,r=e.height*i;return n=r<=e.width?e.height:(r=e.width)/i,{x:e.x+e.width/2-r/2,y:e.y+e.height/2-n/2,width:r,height:n}}var $c=function(e,t){for(var n=[],i=e.length,r=0;r<i;r++){var o=e[r];n.push(o.getUpdatedPathProxy(!0))}var a=new Fs(t);return a.createPathProxy(),a.buildPath=function(e){if(Au(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a};function Yc(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Xc(e,t){return Xs(e,e,{lineWidth:t}),e}var qc=Us;function Uc(e,t){for(var n=wt([]);e&&e!==t;)bt(n,e.getLocalTransform(),n),e=e.parent;return n}function Zc(e,t,n){return t&&!N(t)&&(t=yr.getLocalTransform(t)),n&&(t=Ct([],t)),We([],e,t)}function Kc(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-i:"right"===e?i:0,"top"===e?-r:"bottom"===e?r:0];return o=Zc(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Jc(e){return!e.isGroup}function Qc(e,t,n){if(e&&t){var i=(r={},e.traverse((function(e){Jc(e)&&e.anid&&(r[e.anid]=e)})),r);t.traverse((function(e){if(Jc(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),Ic(e,r,n,fl(e).dataIndex)}}}))}var r;function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=k({},e.shape)),t}}function ed(e,t){return B(e,(function(e){var n=e[0];n=Oc(n,t.x),n=Rc(n,t.x+t.width);var i=e[1];return i=Oc(i,t.y),[n,i=Rc(i,t.y+t.height)]}))}function td(e,t){var n=Oc(e.x,t.x),i=Rc(e.x+e.width,t.x+t.width),r=Oc(e.y,t.y),o=Rc(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function nd(e,t,n){var i=k({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),L(r,n),new $s(i)):Hc(e.replace("path://",""),i,n,"center")}function id(e,t,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(rd(e,t,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function rd(e,t,n,i,r,o,a,s){var l,u=n-e,c=i-t,d=a-r,p=s-o,h=od(d,p,u,c);if((l=h)<=1e-6&&l>=-1e-6)return!1;var f=e-r,g=t-o,m=od(f,g,u,c)/h;if(m<0||m>1)return!1;var v=od(f,g,d,p)/h;return!(v<0||v>1)}function od(e,t,n,i){return e*i-n*t}function ad(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=X(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&z(H(l),(function(e){_e(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=fl(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:L({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function sd(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function ld(e,t){if(e)if($(e))for(var n=0;n<e.length;n++)sd(e[n],t);else sd(e,t)}Fc("circle",Pu),Fc("ellipse",Ru),Fc("sector",Zu),Fc("ring",Ju),Fc("polygon",tc),Fc("polyline",ic),Fc("rect",Js),Fc("line",ac),Fc("bezierCurve",cc),Fc("arc",pc);var ud=Object.freeze({__proto__:null,updateProps:Ic,initProps:Ac,removeElement:kc,removeElementWithFadeOut:Ec,isElementRemoved:Dc,extendShape:zc,extendPath:Vc,registerShape:Fc,getShapeClass:Gc,makePath:Hc,makeImage:Wc,mergePath:$c,resizePath:Yc,subPixelOptimizeLine:Xc,subPixelOptimizeRect:function(e){return qs(e.shape,e.shape,e.style),e},subPixelOptimize:qc,getTransform:Uc,applyTransform:Zc,transformDirection:Kc,groupTransition:Qc,clipPointsByRect:ed,clipRectByRect:td,createIcon:nd,linePolygonIntersect:id,lineLineIntersect:rd,setTooltipConfig:ad,traverseElements:ld,Group:Fr,Image:$s,Text:tl,Circle:Pu,Ellipse:Ru,Sector:Zu,Ring:Ju,Polygon:tc,Polyline:ic,Rect:Js,Line:ac,BezierCurve:cc,Arc:pc,IncrementalDisplayable:Sc,CompoundPath:hc,LinearGradient:gc,RadialGradient:mc,BoundingRect:Bt,OrientedBoundingRect:_c,Point:Dt,Path:Fs}),cd={};function dd(e,t){for(var n=0;n<wl.length;n++){var i=wl[n],r=t[i],o=e.ensureState(i);o.style=o.style||{},o.style.text=r}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}
vendor: 2,657 bytes, line 2
2function pd(e,t,n){var i,r=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=Y(e.defaultText)?e.defaultText(o,e,n):e.defaultText);for(var l={normal:i},u=0;u<wl.length;u++){var c=wl[u],d=t[c];l[c]=oe(r?r.getFormattedLabel(o,c,null,a,d&&d.get("formatter")):null,i)}return l}function hd(e,t,n,i){n=n||cd;for(var r=e instanceof tl,o=!1,a=0;a<_l.length;a++)if((p=t[_l[a]])&&p.getShallow("show")){o=!0;break}var s=r?e:e.getTextContent();if(o){r||(s||(s=new tl,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var l=pd(n,t),u=t.normal,c=!!u.getShallow("show"),d=gd(u,i&&i.normal,n,!1,!r);for(d.text=l.normal,r||e.setTextConfig(md(u,n,!1)),a=0;a<wl.length;a++){var p,h=wl[a];if(p=t[h]){var f=s.ensureState(h),g=!!oe(p.getShallow("show"),c);g!==c&&(f.ignore=!g),f.style=gd(p,i&&i[h],n,!0,!r),f.style.text=l[h],r||(e.ensureState(h).textConfig=md(p,n,!0))}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(d.x=s.style.x),null!=s.style.y&&(d.y=s.style.y),s.ignore=!c,s.useStyle(d),s.dirty(),n.enableTextSetter&&(bd(s).setLabelText=function(e){var i=pd(n,t,e);dd(s,i)})}else s&&(s.ignore=!0);e.dirty()}function fd(e,t){t=t||"label";for(var n={normal:e.getModel(t)},i=0;i<wl.length;i++){var r=wl[i];n[r]=e.getModel([r,t])}return n}function gd(e,t,n,i,r){var o={};return function(e,t,n,i,r){n=n||cd;var o,a=t.ecModel,s=a&&a.option.textStyle,l=function(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||cd).rich;if(n){t=t||{};for(var i=H(n),r=0;r<i.length;r++)t[i[r]]=1}e=e.parentModel}return t}(t);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);wd(o[u]={},c,s,n,i,r,!1,!0)}o&&(e.rich=o);var d=t.get("overflow");d&&(e.overflow=d);var p=t.get("minMargin");null!=p&&(e.margin=p),wd(e,t,s,n,i,r,!0,!1)}(o,e,n,i,r),t&&k(o,t),o}function md(e,t,n){t=t||{};var i,r={},o=e.getShallow("rotate"),a=oe(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(i=e.getShallow("position")||(n?null:"inside"))&&(i=t.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"===e.get("color")?t.inheritColor||null:"auto",r}var vd=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],yd=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],xd=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];
vendor: 5,222 bytes, line 2
2function wd(e,t,n,i,r,o,a,s){n=!r&&n||cd;var l=i&&i.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=oe(t.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||("auto"===u&&Ao("color: 'auto'","color: 'inherit'"),u=l||null),"inherit"!==c&&"auto"!==c||("auto"===c&&Ao("color: 'auto'","color: 'inherit'"),c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var p=oe(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(e.lineWidth=p);var h=oe(t.getShallow("textBorderType"),n.textBorderType);null!=h&&(e.lineDash=h);var f=oe(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),r||null!=d||s||(d=i&&i.defaultOpacity),null!=d&&(e.opacity=d),r||o||null==e.fill&&i.inheritColor&&(e.fill=i.inheritColor);for(var g=0;g<vd.length;g++){var m=vd[g];null!=(y=oe(t.getShallow(m),n[m]))&&(e[m]=y)}for(g=0;g<yd.length;g++)m=yd[g],null!=(y=t.getShallow(m))&&(e[m]=y);if(null==e.verticalAlign){var v=t.getShallow("baseline");null!=v&&(e.verticalAlign=v)}if(!a||!i.disableBox){for(g=0;g<xd.length;g++){var y;m=xd[g],null!=(y=t.getShallow(m))&&(e[m]=y)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||("auto"===e.backgroundColor&&Ao("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||("auto"===e.borderColor&&Ao("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=l)}}function _d(e,t){var n=t&&t.getModel("textStyle");return ce([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var bd=qo();function Sd(e,t,n,i){if(e){var r=bd(e);r.prevValue=r.value,r.value=n;var o=t.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=t)}}function Md(e,t,n,i,r){var o=bd(e);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=oe(o.interpolatedValue,o.prevValue),l=o.value;e.percent=0,(null==o.prevValue?Ac:Ic)(e,{percent:1},i,t,null,(function(i){var u=ia(n,o.precision,s,l,i);o.interpolatedValue=1===i?null:u;var c=pd({labelDataIndex:t,labelFetcher:r,defaultText:a?a(u):u+""},o.statesModels,u);dd(e,c)}))}}var Td,Cd,Id=["textStyle","color"],Ad=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Dd=new tl,kd=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Id):null)},e.prototype.getFont=function(){return _d({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ad.length;n++)t[Ad[n]]=this.getShallow(Ad[n]);return Dd.useStyle(t),Dd.update(),Dd.getBoundingRect()},e}(),Ld=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Ed=ha(Ld),Pd=function(){function e(){}return e.prototype.getLineStyle=function(e){return Ed(this,e)},e}(),Od=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Rd=ha(Od),Nd=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Rd(this,e,t)},e}(),zd=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},e.prototype.mergeOption=function(e,t){A(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,i=null==n?n:n[e];if(null==i&&!t){var r=this.parentModel;r&&(i=r.getShallow(e))}return i},e.prototype.getModel=function(t,n){var i=null!=t,r=i?this.parsePath(t):null;return new e(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(I(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!o.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;
vendor: 4,598 bytes, line 2
2i<e.length&&(!e[i]||null!=(n=n&&"object"==typeof n?n[e[i]]:null));i++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();sa(zd),Td=zd,Cd=["__\0is_clz",ua++].join("_"),Td.prototype[Cd]=!0,ue(!Td.isInstance,'The method "is" can not be defined.'),Td.isInstance=function(e){return!(!e||!e[Cd])},R(zd,Pd),R(zd,Nd),R(zd,ga),R(zd,kd);var Bd=Math.round(10*Math.random());function Vd(e){return[e||"",Bd++].join("_")}function Fd(e,t){return A(A({},e,!0),t,!0)}var Gd="ZH",Hd="EN",Wd=Hd,jd={},$d={},Yd=o.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||Wd).toUpperCase().indexOf(Gd)>-1?Gd:Wd;function Xd(e,t){e=e.toUpperCase(),$d[e]=new zd(t),jd[e]=t}function qd(e){return $d[e]}Xd(Hd,{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:". "}}}}),Xd(Gd,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}
2,",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var Ud=1e3,Zd=6e4,Kd=36e5,Jd=864e5,Qd=31536e6,ep={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}"},tp="{yyyy}-{MM}-{dd}",np={year:"{yyyy}",month:"{yyyy}-{MM}",day:tp,hour:tp+" "+ep.hour,minute:tp+" "+ep.minute,second:tp+" "+ep.second,millisecond:ep.none},ip=["year","month","day","hour","minute","second","millisecond"],rp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function op(e,t){return"0000".substr(0,t-(e+="").length)+e}function ap(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function sp(e){return e===ap(e)}function lp(e,t,n,i){var r=co(e),o=r[dp(n)](),a=r[pp(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[hp(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[fp(n)](),d=(c-1)%12+1,p=r[gp(n)](),h=r[mp(n)](),f=r[vp(n)](),g=c>=12?"pm":"am",m=g.toUpperCase(),v=(i instanceof zd?i:qd(i||Yd)||$d[Wd]).getModel("time"),y=v.get("month"),x=v.get("monthAbbr"),w=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,op(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,op(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,op(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,op(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,op(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,op(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,op(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,op(f,3)).replace(/{S}/g,f+"")}function up(e,t){var n=co(e),i=n[pp(t)]()+1,r=n[hp(t)](),o=n[fp(t)](),a=n[gp(t)](),s=n[mp(t)](),l=0===n[vp(t)](),u=l&&0===s,c=u&&0===a,d=c&&0===o,p=d&&1===r;return p&&1===i?"year":p?"month":d?"day":c?"hour":u?"minute":l?"second":"millisecond"}function cp(e,t,n){var i=U(e)?co(e):e;switch(t=t||up(e,n)){case"year":return i[dp(n)]();case"half-year":return i[pp(n)]()>=6?1:0;case"quarter":return Math.floor((i[pp(n)]()+1)/4);case"month":return i[pp(n)]();case"day":return i[hp(n)]();case"half-day":return i[fp(n)]()/24;case"hour":return i[fp(n)]();case"minute":return i[gp(n)]();case"second":return i[mp(n)]();case"millisecond":return i[vp(n)]()}}function dp(e){return e?"getUTCFullYear":"getFullYear"}function pp(e){return e?"getUTCMonth":"getMonth"}function hp(e){return e?"getUTCDate":"getDate"}function fp(e){return e?"getUTCHours":"getHours"}function gp(e){return e?"getUTCMinutes":"getMinutes"}function mp(e){return e?"getUTCSeconds":"getSeconds"}function vp(e){return e?"getUTCMilliseconds":"getMilliseconds"}function yp(e){return e?"setUTCFullYear":"setFullYear"}function xp(e){return e?"setUTCMonth":"setMonth"}function wp(e){return e?"setUTCDate":"setDate"}function _p(e){return e?"setUTCHours":"setHours"}function bp(e){return e?"setUTCMinutes":"setMinutes"}function Sp(e){return e?"setUTCSeconds":"setSeconds"}function Mp(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Tp(e){if(!yo(e))return X(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Cp(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Ip=le;function Ap(e,t,n){function i(e){return e&&ce(e)?e:"-"}function r(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,a=e instanceof Date;if(o||a){var s=o?co(e):e;if(!isNaN(+s))return lp(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===t)return q(e)?i(e):U(e)&&r(e)?e+"":"-";var l=vo(e);return r(l)?Tp(l):q(e)?i(e):"boolean"==typeof e?e+"":"-"}var Dp=["a","b","c","d","e","f","g"],kp=function(e,t){return"{"+e+(null==t?"":t)+"}"};
vendor: 4,136 bytes, line 2
2function Lp(e,t,n){$(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o<r.length;o++){var a=Dp[o];e=e.replace(kp(a),kp(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=t[s][r[l]];e=e.replace(kp(Dp[l],s),n?ot(u):u)}return e}function Ep(e,t){var n=X(e)?{color:e,extraCssText:t}:e||{},i=n.color,r=n.type;t=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:'+ot(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ot(i)+";"+(t||"")+'"></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}}:""}function Pp(e,t){return t=t||"transparent",X(e)?e:Z(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Op(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Rp=z,Np=["left","right","top","bottom","width","height"],zp=[["width","left","right"],["height","top","bottom"]];function Bp(e,t,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild((function(l,u){var c,d,p=l.getBoundingRect(),h=t.childAt(u+1),f=h&&h.getBoundingRect();if("horizontal"===e){var g=p.width+(f?-f.x+p.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var m=p.height+(f?-f.y+p.y:0);(d=a+m)>r||l.newline?(o+=s+n,a=0,d=m,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=d+n)}))}var Vp=Bp;function Fp(e,t,n){n=Ip(n||0);var i=t.width,r=t.height,o=Jr(e.left,i),a=Jr(e.top,r),s=Jr(e.right,i),l=Jr(e.bottom,r),u=Jr(e.width,i),c=Jr(e.height,r),d=n[2]+n[0],p=n[1]+n[3],h=e.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(c)&&(c=r-l-d-a),null!=h&&(isNaN(u)&&isNaN(c)&&(h>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-c-d),e.left||e.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(e.top||e.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-d}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(c)&&(c=r-d-a-(l||0));var f=new Bt(o+n[3],a+n[0],u,c);return f.margin=n,f}function Gp(e,t,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||e).x=e.x,o.y=e.y,!s&&!l)return!1;if("raw"===u)a="group"===e.type?new Bt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();(a=a.clone()).applyTransform(c)}var d=Fp(L({width:a.width,height:a.height},t),n,i),p=s?d.x-a.x:0,h=l?d.y-a.y:0;return"raw"===u?(o.x=p,o.y=h):(o.x+=p,o.y+=h),o===e&&e.markRedraw(),!0}function Hp(e){var t=e.layoutMode||e.constructor.layoutMode;return Z(t)?t:t?{type:t}:null}function Wp(e,t,n){var i=n&&n.ignoreSize;!$(i)&&(i=[i,i]);var r=a(zp[0],0),o=a(zp[1],1);function a(n,r){var o={},a=0,u={},c=0;if(Rp(n,(function(t){u[t]=e[t]})),Rp(n,(function(e){s(t,e)&&(o[e]=u[e]=t[e]),l(o,e)&&a++,l(u,e)&&c++})),i[r])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var d=0;d<n.length;d++){var p=n[d];if(!s(o,p)&&s(e,p)){o[p]=e[p];break}}return o}return u}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){Rp(e,(function(e){t[e]=n[e]}))}u(zp[0],e,r),u(zp[1],e,o)}function jp(e){return $p({},e)}function $p(e,t){return t&&e&&Rp(Np,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}j(Bp,"vertical"),j(Bp,"horizontal");var Yp=qo(),Xp=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.uid=Vd("ec_cpt_model"),r}return i(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Hp(this),i=n?jp(e):{};A(e,t.getTheme().get(this.mainType)),A(e,this.getDefaultOption()),n&&Wp(e,i,n)},t.prototype.mergeOption=function(e,t){A(this.option,e,!0);var n=Hp(this);
vendor: 15,534 bytes, line 2
2n&&Wp(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[oa])}(e))return e.defaultOption;var t=Yp(this);if(!t.defaultOption){for(var n=[],i=e;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=A(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return ea(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(zd);la(Xp,zd),pa(Xp),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var i=aa(e);t[i.main]=n},e.determineSubType=function(n,i){var r=i.type;if(!r){var o=aa(n).main;e.hasSubTypes(n)&&t[o]&&(r=t[o](i))}return r}}(Xp),function(e,t){function n(e){var n={},r=[];return z(e,(function(o){var a=i(n,o),s=function(e,t){var n=[];return z(e,(function(e){P(t,e)>=0&&n.push(e)})),n}(a.originalDeps=t(o),e);a.entryCount=s.length,0===a.entryCount&&r.push(o),z(s,(function(e){P(a.predecessor,e)<0&&a.predecessor.push(e);var t=i(n,e);P(t.successor,e)<0&&t.successor.push(o)}))})),{graph:n,noEntryList:r}}function i(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,t,i,r){if(e.length){var o=n(t),a=o.graph,s=o.noEntryList,l={};for(z(e,(function(e){l[e]=!0}));s.length;){var u=s.pop(),c=a[u],d=!!l[u];d&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),z(c.successor,d?h:p)}z(l,(function(){var n;throw n=Do("Circular dependency may exists: ",l,e,t),new Error(n)}))}function p(e){a[e].entryCount--,0===a[e].entryCount&&s.push(e)}function h(e){l[e]=!0,p(e)}}}(Xp,(function(e){var t=[];return z(Xp.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=B(t,(function(e){return aa(e).main})),"dataset"!==e&&P(t,"dataset")<=0&&t.unshift("dataset"),t}));var qp="";"undefined"!=typeof navigator&&(qp=navigator.platform||"");var Up="rgba(0, 0, 0, 0.2)",Zp={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Up,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Up,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Up,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Up,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Up,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Up,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qp.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},Kp=ve(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Jp="original",Qp="arrayRows",eh="objectRows",th="keyedColumns",nh="typedArray",ih="unknown",rh="column",oh="row",ah=1,sh=2,lh=3,uh=qo();function ch(e,t,n){var i={},r=ph(t);if(!r||!e)return i;var o,a,s=[],l=[],u=t.ecModel,c=uh(u).datasetMap,d=r.uid+"_"+n.seriesLayoutBy;z(e=e.slice(),(function(t,n){var r=Z(t)?t:e[n]={name:t};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var p=c.get(d)||c.set(d,{categoryWayDim:a,valueWayDim:0});function h(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function f(e){var t=e.dimsDef;return t?t.length:1}return z(e,(function(e,t){var n=e.name,r=f(e);if(null==o){var a=p.valueWayDim;h(i[n],a,r),h(l,a,r),p.valueWayDim+=r}else o===t?(h(i[n],0,r),h(s,0,r)):(a=p.categoryWayDim,h(i[n],a,r),h(l,a,r),p.categoryWayDim+=r)})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function dh(e,t,n){var i={};if(!ph(e))return i;var r,o=t.sourceFormat,a=t.dimensionsDefine;o!==eh&&o!==th||z(a,(function(e,t){"name"===(Z(e)?e.name:e)&&(r=t)}));var s=function(){for(var e={},i={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=fh(t.data,o,t.seriesLayoutBy,a,t.startIndex,l);s.push(c);var d=c===lh;if(d&&null==e.v&&l!==r&&(e.v=l),(null==e.n||e.n===e.v||!d&&s[e.n]===lh)&&(e.n=l),p(e)&&s[e.n]!==lh)return e;d||(c===sh&&null==i.v&&l!==r&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function p(e){return null!=e.v&&null!=e.n}return p(e)?e:p(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 ph(e){if(!e.get("data",!0))return ea(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Jo).models[0]}function hh(e,t){return fh(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function fh(e,t,n,i,r,o){var a,s,l;if(J(e))return lh;if(i){var u=i[o];Z(u)?(s=u.name,l=u.type):X(u)&&(s=u)}if(null!=l)return"ordinal"===l?ah:lh;if(t===Qp){var c=e;if(n===oh){for(var d=c[o],p=0;p<(d||[]).length&&p<5;p++)if(null!=(a=y(d[r+p])))return a}else for(p=0;p<c.length&&p<5;p++){var h=c[r+p];if(h&&null!=(a=y(h[o])))return a}}else if(t===eh){var f=e;if(!s)return lh;for(p=0;p<f.length&&p<5;p++)if((m=f[p])&&null!=(a=y(m[s])))return a}else if(t===th){if(!s)return lh;if(!(d=e[s])||J(d))return lh;for(p=0;p<d.length&&p<5;p++)if(null!=(a=y(d[p])))return a}else if(t===Jp){var g=e;for(p=0;p<g.length&&p<5;p++){var m,v=zo(m=g[p]);if(!$(v))return lh;if(null!=(a=y(v[o])))return a}}function y(e){var t=X(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?sh:lh:t&&"-"!==e?ah:void 0}return lh}var gh=ve();var mh,vh,yh,xh=qo(),wh=qo(),_h=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var i=Oo(this.get("color",!0)),r=this.get("colorLayer",!0);return Sh(this,xh,i,r,e,t,n)},e.prototype.clearColorPalette=function(){!function(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}(this,xh)},e}();function bh(e,t,n,i){var r=Oo(e.get(["aria","decal","decals"]));return Sh(e,wh,r,null,t,n,i)}function Sh(e,t,n,i,r,o,a){var s=t(o=o||e),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?function(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}(i,a):n;if((c=c||n)&&c.length){var d=c[l];return r&&(u[r]=d),s.paletteIdx=(l+1)%c.length,d}}var Mh="\0_ec_inner",Th={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},Ch={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Ih={};var Ah=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(e,t,n,i,r,o){i=i||{},this.option=null,this._theme=new zd(i),this._locale=new zd(r),this._optionManager=o},t.prototype.setOption=function(e,t,n){ue(null!=e,"option is null/undefined"),ue(1!==e[Mh],"please use chart.getOption()");var i=Lh(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Lh(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);z(r,(function(e,t){if(!Xp.hasClass(t)){var n=Th[t];n&&!Ih[n]&&(Co("Component "+t+" is used but not imported.\nimport { "+n+" } from 'echarts/components';\necharts.use(["+n+"]);"),Ih[n]=!0)}})),this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):yh(this,r),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=i.getMediaOption(this);a.length&&z(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=ve(),s=t&&t.replaceMergeMainTypeMap;uh(this).datasetMap=ve(),z(e,(function(e,t){null!=e&&(Xp.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?I(e):A(n[t],e,!0))})),s&&s.each((function(e,t){Xp.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),Xp.topologicalTravel(o,Xp.getAllClassMainTypes(),(function(t){var o=function(e,t,n){var i=gh.get(t);if(!i)return n;var r=i(e);if(!r)return n;for(var o=0;o<r.length;o++)ue(Yo(r[o]));return n.concat(r)}(this,t,Oo(e[t])),a=i.get(t),l=Vo(a,o,a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll");(function(e,t,n){z(e,(function(e){var i=e.newOption;Z(i)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,i){return t.type?t.type:n?n.subType:i.determineSubType(e,t)}(t,i,e.existing,n))}))})(l,t,Xp),n[t]=null,i.set(t,null),r.set(t,0);var u,c,d=[],p=[],h=0;z(l,(function(e,n){var i=e.existing,r=e.newOption;if(r){var o="series"===t,a=Xp.getClass(t,e.keyInfo.subType,!o);if(!a){var s=e.keyInfo.subType,l=Ch[s];return void(Ih[s]||(Ih[s]=!0,Co(l?"Series "+s+" is used but not imported.\nimport { "+l+" } from 'echarts/charts';\necharts.use(["+l+"]);":"Unknown series "+s)))}if("tooltip"===t){if(u)return void(c||(To("Currently only one tooltip component is allowed."),c=!0));u=!0}if(i&&i.constructor===a)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var f=k({componentIndex:n},e.keyInfo);k(i=new a(r,this,this,f),f),e.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),p.push(i),h++):(d.push(void 0),p.push(void 0))}),this),n[t]=d,i.set(t,p),r.set(t,h),"series"===t&&mh(this)}),this),this._seriesIndices||mh(this)},t.prototype.getOption=function(){var e=I(this.option);return z(e,(function(t,n){if(Xp.hasClass(n)){for(var i=Oo(t),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Yo(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,e[n]=i}})),delete e[Mh],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,r=e.id,o=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=i?(n=[],z(Oo(i),(function(e){a[e]&&n.push(a[e])}))):n=null!=r?Dh("id",r,a):null!=o?Dh("name",o,a):F(a,(function(e){return!!e})),kh(n,e)):[]},t.prototype.findComponents=function(e){var t,n,i,r,o,a=e.query,s=e.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(t=a)||null==t[n]&&null==t[i]&&null==t[r]?null:{mainType:s,index:t[n],id:t[i],name:t[r]});return o=kh(l?this.queryComponents(l):F(this._componentsMap.get(s),(function(e){return!!e})),e),e.filter?F(o,e.filter):o},t.prototype.eachComponent=function(e,t,n){var i=this._componentsMap;if(Y(e)){var r=t,o=e;i.each((function(e,t){for(var n=0;e&&n<e.length;n++){var i=e[n];i&&o.call(r,t,i,i.componentIndex)}}))}else for(var a=X(e)?i.get(e):Z(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Ho(e,null);return F(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return F(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return F(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){vh(this),z(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)}),this)},t.prototype.eachRawSeries=function(e,t){z(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){vh(this),z(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===e&&t.call(n,r,i)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return z(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return vh(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){vh(this);var n=[];z(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];e.call(t,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=ve(n)},t.prototype.restoreData=function(e){mh(this);var t=this._componentsMap,n=[];t.each((function(e,t){Xp.hasClass(t)&&n.push(t)})),Xp.topologicalTravel(n,Xp.getAllClassMainTypes(),(function(n){z(t.get(n),(function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,r=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=r&&e.name!==r}}(t,e)||t.restoreData()}))}))},t.internalField=(mh=function(e){var t=e._seriesIndices=[];z(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=ve(t)},vh=function(e){if(!e._seriesIndices)throw new Error("Option should contains series.")},void(yh=function(e,t){e.option={},e.option[Mh]=1,e._componentsMap=ve({series:[]}),e._componentsCount=ve();var n=t.aria;Z(n)&&null==n.enabled&&(n.enabled=!0),function(e,t){var n=e.color&&!e.colorLayer;z(t,(function(t,i){"colorLayer"===i&&n||Xp.hasClass(i)||("object"==typeof t?e[i]=e[i]?A(e[i],t,!1):I(t):null==e[i]&&(e[i]=t))}))}(t,e._theme.option),A(t,Zp,!1),e._mergeOption(t,null)})),t}(zd);function Dh(e,t,n){if($(t)){var i=ve();return z(t,(function(e){null!=e&&null!=Ho(e,null)&&i.set(e,!0)})),F(n,(function(t){return t&&i.get(t[e])}))}var r=Ho(t,null);return F(n,(function(t){return t&&null!=r&&t[e]===r}))}function kh(e,t){return t.hasOwnProperty("subType")?F(e,(function(e){return e&&e.subType===t.subType})):e}function Lh(e){var t=ve();return e&&z(Oo(e.replaceMerge),(function(e){ue(Xp.hasClass(e),'"'+e+'" is not val
2id component main type in "replaceMerge"'),t.set(e,!0)})),{replaceMergeMainTypeMap:t}}R(Ah,_h);var Eh=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Ph=function(e){z(Eh,(function(t){this[t]=W(e[t],e)}),this)},Oh={},Rh=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];z(Oh,(function(i,r){var o=i.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){z(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){Oh[e]=t},e.get=function(e){return Oh[e]},e}(),Nh=/^(min|max)?(.+)$/,zh=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(z(Oo(e.series),(function(e){e&&e.data&&J(e.data)&&pe(e.data)})),z(Oo(e.dataset),(function(e){e&&e.source&&J(e.source)&&pe(e.source)}))),e=I(e);var i=this._optionBackup,r=function(e,t,n){var i,r,o=[],a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||a&&a.timeline);function p(e){z(t,(function(t){t(e,n)}))}return a?(r=a).timeline||(r.timeline=s):((d||c)&&(e.options=e.media=null),r=e),c&&($(u)?z(u,(function(e){e&&!e.option&&Z(e.query)&&Z(e.query.option)&&Co("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),e&&e.option&&(e.query?o.push(e):i||(i=e))})):Co("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),p(r),z(l,(function(e){return p(e)})),z(o,(function(e){return p(e.option)})),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(e,t,!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},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],I(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=I(n[i.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,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 u=0,c=o.length;u<c;u++)Bh(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,!(t.join(",")===n.join(",")))&&(l=B(s,(function(e){return I(-1===e?a.option:o[e].option)}))),this._currentMediaIndices=s,l},e}();function Bh(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return z(e,(function(e,t){var n=t.match(Nh);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(i[a],e,o)||(r=!1)}})),r}var Vh=z,Fh=Z,Gh=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Hh(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=Gh.length;n<i;n++){var r=Gh[n],o=t.normal,a=t.emphasis;o&&o[r]&&(Ao("itemStyle.normal."+r,r),e[r]=e[r]||{},e[r].normal?A(e[r].normal,o[r]):e[r].normal=o[r],o[r]=null),a&&a[r]&&(Ao("itemStyle.emphasis."+r,"emphasis."+r),e[r]=e[r]||{},e[r].emphasis?A(e[r].emphasis,a[r]):e[r].emphasis=a[r],a[r]=null)}}function Wh(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(Io("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),n?(e[t].normal=e[t].emphasis=null,L(e[t],i)):e[t]=i),r&&(Io(t+".emphasis has been changed to emphasis."+t+" since 4.0"),e.emphasis=e.emphasis||{},e.emphasis[t]=r,r.focus&&(e.emphasis.focus=r.focus),r.blurScope&&(e.emphasis.blurScope=r.blurScope))}}function jh(e){Wh(e,"itemStyle"),Wh(e,"lineStyle"),Wh(e,"areaStyle"),Wh(e,"label"),Wh(e,"labelLine"),Wh(e,"upperLabel"),Wh(e,"edgeLabel")}function $h(e,t){var n=Fh(e)&&e[t],i=Fh(n)&&n.textStyle;if(i){Io("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var r=0,o=No.length;r<o;r++){var a=No[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function Yh(e){e&&(jh(e),$h(e,"label"),e.emphasis&&$h(e.emphasis,"label"))}function Xh(e){return $(e)?e:e?[e]:[]}function qh(e){return($(e)?e[0]:e)||{}}function Uh(e,t){Vh(Xh(e.series),(function(e){Fh(e)&&function(e){if(Fh(e)){Hh(e),jh(e),$h(e,"label"),$h(e,"upperLabel"),$h(e,"edgeLabel"),e.emphasis&&($h(e.emphasis,"label"),$h(e.emphasis,"upperLabel"),$h(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Hh(t),Yh(t));var n=e.markLine;n&&(Hh(n),Yh(n));var i=e.markArea;i&&Yh(i);var r=e.data;if("graph"===e.type){r=r||e.nodes;var o=e.links||e.edges;if(o&&!J(o))for(var a=0;a<o.length;a++)Yh(o[a]);z(e.categories,(function(e){jh(e)}))}if(r&&!J(r))for(a=0;a<r.length;a++)Yh(r[a]);if((t=e.markPoint)&&t.data){var s=t.data;for(a=0;a<s.length;a++)Yh(s[a])}if((n=e.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)$(l[a])?(Yh(l[a][0]),Yh(l[a][1])):Yh(l[a])}"gauge"===e.type?($h(e,"axisLabel"),$h(e,"title"),$h(e,"detail")):"treemap"===e.type?(Wh(e.breadcrumb,"itemStyle"),z(e.levels,(function(e){jh(e)}))):"tree"===e.type&&jh(e.leaves)}}(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Vh(n,(function(t){Vh(Xh(e[t]),(function(e){e&&($h(e,"axisLabel"),$h(e.axisPointer,"label"))}))})),Vh(Xh(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;$h(t,"axisLabel"),$h(t&&t.axisPointer,"label")})),Vh(Xh(e.calendar),(function(e){Wh(e,"itemStyle"),$h(e,"dayLabel"),$h(e,"monthLabel"),$h(e,"yearLabel")})),Vh(Xh(e.radar),(function(e){$h(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.n
2ame,delete e.name,Io("name property in radar component has been changed to axisName")),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap,Io("nameGap property in radar component has been changed to axisNameGap")),Vh(e.indicator,(function(e){e.text&&Ao("text","name","radar.indicator")}))})),Vh(Xh(e.geo),(function(e){Fh(e)&&(Yh(e),Vh(Xh(e.regions),(function(e){Yh(e)})))})),Vh(Xh(e.timeline),(function(e){Yh(e),Wh(e,"label"),Wh(e,"itemStyle"),Wh(e,"controlStyle",!0);var t=e.data;$(t)&&z(t,(function(e){Z(e)&&(Wh(e,"label"),Wh(e,"itemStyle"))}))})),Vh(Xh(e.toolbox),(function(e){Wh(e,"iconStyle"),Vh(e.feature,(function(e){Wh(e,"iconStyle")}))})),$h(qh(e.axisPointer),"label"),$h(qh(e.tooltip).axisPointer,"label")}function Zh(e){e&&z(Kh,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var Kh=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Jh=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Qh=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ef(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Qh.length;n++){var i=Qh[n][1],r=Qh[n][0];null!=t[i]&&(t[r]=t[i],Ao(i,r))}}function tf(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(Ao("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function nf(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,Ao("downplay","blur","sunburst"))}function rf(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&rf(e[n].children,t)}function of(e,t){Uh(e,t),e.series=Oo(e.series),z(e.series,(function(e){if(Z(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow,Ao("clipOverflow","clip","line"));else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise,Ao("clockWise","clockwise")),tf(e.label),(r=e.data)&&!J(r))for(var n=0;n<r.length;n++)tf(r[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(Ao("hoverOffset","emphasis.scaleSize"),e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var i=function(e,t){for(var n=t.split(","),i=e,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(e,"pointer.color");null!=i&&function(e,t,n,i){for(var r,o=t.split(","),a=e,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)}(e,"itemStyle.color",i)}else if("bar"===t){var r;if(ef(e),ef(e.backgroundStyle),ef(e.emphasis),(r=e.data)&&!J(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(ef(r[n]),ef(r[n]&&r[n].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o,Ao("highlightPolicy","emphasis.focus","sunburst"))),nf(e),rf(e.data,nf)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(Ao("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(Ao("mapType","map","map"),e.map=e.mapType),e.mapLocation&&(Io("`mapLocation` is not used anymore."),L(e,e.mapLocation)));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(Ao("hoverAnimation","emphasis.scale"),e.emphasis.scale=e.hoverAnimation)),Zh(e)}})),e.dataRange&&(e.visualMap=e.dataRange),z(Jh,(function(t){var n=e[t];n&&($(n)||(n=[n]),z(n,(function(e){Zh(e)})))}))}function af(e){z(e,(function(t,n){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var d,p,h=a.get(t.stackedDimension,c);if(isNaN(h))return r;s?p=a.getRawIndex(c):d=a.get(t.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,d)),p>=0){var v=m.data.getByRawIndex(m.stackResultDimension,p);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&h>=0&&v>0||"samesign"===l&&h<=0&&v<0){h=oo(h,v),f=v;break}}}return i[0]=h,i[1]=f,i}))}))}var sf,lf,uf,cf,df,pf=function(e){this.data=e.data||(e.sourceFormat===th?{}:[]),this.sourceFormat=e.sourceFormat||ih,this.seriesLayoutBy=e.seriesLayoutBy||rh,this.startIndex=e.startIndex||
vendor: 11,757 bytes, line 2
20,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];null==i.type&&hh(this,n)===ah&&(i.type="ordinal")}};function hf(e){return e instanceof pf}function ff(e,t,n){n=n||mf(e);var i=t.seriesLayoutBy,r=function(e,t,n,i,r){var o,a;if(!e)return{dimensionsDefine:vf(r),startIndex:a,dimensionsDetectedCount:o};if(t===Qp){var s=e;"auto"===i||null==i?yf((function(e){null!=e&&"-"!==e&&(X(e)?null==a&&(a=1):a=0)}),n,s,10):a=U(i)?i:i?1:0,r||1!==a||(r=[],yf((function(e,t){r[t]=null!=e?e+"":""}),n,s,1/0)),o=r?r.length:n===oh?s.length:s[0]?s[0].length:null}else if(t===eh)r||(r=function(e){for(var t,n=0;n<e.length&&!(t=e[n++]););if(t)return H(t)}(e));else if(t===th)r||(r=[],z(e,(function(e,t){r.push(t)})));else if(t===Jp){var l=zo(e[0]);o=$(l)&&l.length||1}else t===nh&&ue(!!r,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:vf(r),dimensionsDetectedCount:o}}(e,n,i,t.sourceHeader,t.dimensions);return new pf({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:I(t)})}function gf(e){return new pf({data:e,sourceFormat:J(e)?nh:Jp})}function mf(e){var t=ih;if(J(e))t=nh;else if($(e)){0===e.length&&(t=Qp);for(var n=0,i=e.length;n<i;n++){var r=e[n];if(null!=r){if($(r)||J(r)){t=Qp;break}if(Z(r)){t=eh;break}}}}else if(Z(e))for(var o in e)if(_e(e,o)&&N(e[o])){t=th;break}return t}function vf(e){if(e){var t=ve();return B(e,(function(e,n){var i={name:(e=Z(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=t.get(i.name);return r?i.name+="-"+r.count++:t.set(i.name,{count:1}),i}))}}function yf(e,t,n,i){if(t===oh)for(var r=0;r<n.length&&r<i;r++)e(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)e(o[r],r)}}function xf(e){var t=e.sourceFormat;return t===eh||t===th}var wf=function(){function e(e,t){var n=hf(e)?e:gf(e);this._source=n;var i=this._data=n.data;if(n.sourceFormat===nh){if(null==t)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=t,this._data=i}df(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;df=function(e,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=cf[kf(a,s)];if(ue(c,"Invalide sourceFormat: "+a),k(e,c),a===nh)e.getItem=t,e.count=i,e.fillStorage=n;else{var d=Sf(a,s);e.getItem=W(d,null,r,l,u);var p=Cf(a,s);e.count=W(p,null,r,l,u)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,i=this._dimSize,r=i*e,o=0;o<i;o++)t[o]=n[r+o];return t},n=function(e,t,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],u=null==s[1]?-1/0:s[1],c=t-e,d=n[a],p=0;p<c;p++){var h=r[p*o+a];d[e+p]=h,h<l&&(l=h),h>u&&(u=h)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[Qp+"_"+rh]={pure:!0,appendData:r},e[Qp+"_"+oh]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[eh]={pure:!0,appendData:r},e[th]={pure:!0,appendData:function(e){var t=this._data;z(e,(function(e,n){for(var i=t[n]||(t[n]=[]),r=0;r<(e||[]).length;r++)i.push(e[r])}))}},e[Jp]={appendData:r},e[nh]={persistent:!1,pure:!0,appendData:function(e){ue(J(e),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},cf=e}(),e}(),_f=function(e,t,n,i){return e[i]},bf=((sf={})[Qp+"_"+rh]=function(e,t,n,i){return e[i+t]},sf[Qp+"_"+oh]=function(e,t,n,i,r){i+=t;for(var o=r||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},sf[eh]=_f,sf[th]=function(e,t,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name;if(null==s)throw new Error;var l=e[s];o[a]=l?l[i]:null}return o},sf[Jp]=_f,sf);function Sf(e,t){var n=bf[kf(e,t)];return ue(n,'Do not support get item on "'+e+'", "'+t+'".'),n}var Mf=function(e,t,n){return e.length},Tf=((lf={})[Qp+"_"+rh]=function(e,t,n){return Math.max(0,e.length-t)},lf[Qp+"_"+oh]=function(e,t,n){var i=e[0];return i?Math.max(0,i.length-t):0},lf[eh]=Mf,lf[th]=function(e,t,n){var i=n[0].name;if(null==i)throw new Error;var r=e[i];return r?r.length:0},lf[Jp]=Mf,lf);function Cf(e,t){var n=Tf[kf(e,t)];return ue(n,'Do not support count on "'+e+'", "'+t+'".'),n}var If=function(e,t,n){return e[t]},Af=((uf={})[Qp]=If,uf[eh]=function(e,t,n){return e[n]},uf[th]=If,uf[Jp]=function(e,t,n){var i=zo(e);return i instanceof Array?i[t]:i},uf[nh]=If,uf);function Df(e){var t=Af[e];return ue(t,'Do not support get value on "'+e+'".'),t}function kf(e,t){return e===Qp?e+"_"+t:e}function Lf(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var r=e.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=r.getDimensionProperty(a);return Df(o)(i,a,s)}var l=i;return o===Jp&&(l=zo(i)),l}}}var Ef=/\{@(.+?)\}/g,Pf=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,p=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:r,data:a,dataType:t,value:i,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,i,r,o){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);return o&&(s.value=o.interpolatedValue),null!=i&&$(s.value)&&(s.value=s.value[i]),r||(r=a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),Y(r)?(s.status=t,s.dimensionIndex=i,r(s)):X(r)?Lp(r,s).replace(Ef,(function(t,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1),isNaN(r)&&Co("Invalide label formatter: @"+n+", only support @[0], @[1], @[2], ..."));var s=Lf(a,e,r);if(o&&$(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},e.prototype.getRawValue=function(e,t){return Lf(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Of(e){var t,n;return Z(e)?e.type?n=e:console.warn("The return type of `formatTooltip` is not supported: "+Do(e)):t=e,{text:t,frag:n}}function Rf(e){return new Nf(e)}var Nf=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,i=e&&e.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&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(n?(ue(null!=n._outputDueEnd),this._dueEnd=n._outputDueEnd):(ue(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var p=this._dueIndex,h=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(o||p<h)){var f=this._progress;if($(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],p,h,l,u);else this._doProgress(f,p,h,l,u)}this._dueIndex=h;var m=null!=this._settedOutputEnd?this._settedOutputEnd:h;ue(m>=this._outputDueEnd),this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,i,r){zf.reset(t,n,i,r),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:zf.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),$(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){ue(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),zf=function(){var e,t,n,i,r,o={reset:function(l,u,c,d){t=l,e=u,n=c,i=d,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%r*n+Math.ceil(t/r),a=t>=e?null:o<i?o:t;return t++,a}}();function Bf(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||U(e)||null==e||"-"===e||(e=+co(e)),null==e||""===e?NaN:Number(e))}var Vf=ve({number:function(e){return parseFloat(e)},time:function(e){return+co(e)},trim:function(e){return X(e)?ce(e):e}});function Ff(e){return Vf.get(e)}var Gf={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Hf=function(){function e(e,t){U(t)||ko('rvalue of "<", ">", "<=", ">=" can only be number in filter.'),this._opFn=Gf[e],this._rvalFloat=vo(t)}return e.prototype.evaluate=function(e){return U(e)?this._opFn(e,this._rvalFloat):this._opFn(vo(e),this._rvalFloat)},e}(),Wf=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=U(e)?e:vo(e),i=U(t)?t:vo(t),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=X(e),s=X(t);a&&(n=s?e:0),s&&(i=a?t:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),jf=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=vo(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=vo(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function $f(e,t){return"eq"===e||"ne"===e?new jf("eq"===e,t):_e(Gf,e)?new Hf(e,t):null}var Yf=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Bf(e,t)},e}();function Xf(e){var t=e.sourceFormat;
vendor: 21,543 bytes, line 2
2return Qf(t)||ko("`getRawData` is not supported in source format "+t),e.data}function qf(e){var t=e.sourceFormat,n=e.data;if(Qf(t)||ko("`cloneRawData` is not supported in source format "+t),t===Qp){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(t===eh){for(i=[],r=0,o=n.length;r<o;r++)i.push(k({},n[r]));return i}}function Uf(e,t,n){if(null!=n)return U(n)||!isNaN(n)&&!_e(t,n)?e[n]:_e(t,n)?t[n]:void 0}function Zf(e){return I(e)}var Kf=ve();function Jf(e,t,n,i){t.length||ko("Must have at least one upstream dataset."),Z(e)||ko("transform declaration must be an object rather than "+typeof e+".");var r=e.type,o=Kf.get(r);o||ko('Can not find transform on type "'+r+'".');var a,s=B(t,(function(e){return function(e,t){var n=new Yf,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex;e.seriesLayoutBy!==rh&&ko('`seriesLayoutBy` of upstream dataset can only be "column" in data transform.');var a=[],s={},l=e.dimensionsDefine;if(l)z(l,(function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};a.push(i),null!=n&&(_e(s,n)&&ko('dimension name "'+n+'" duplicated.'),s[n]=i)}));else for(var u=0;u<e.dimensionsDetectedCount;u++)a.push({index:u});var c=Sf(r,rh);t.__isBuiltIn&&(n.getRawDataItem=function(e){return c(i,o,a,e)},n.getRawData=W(Xf,null,e)),n.cloneRawData=W(qf,null,e);var d=Cf(r,rh);n.count=W(d,null,i,o,a);var p=Df(r);n.retrieveValue=function(e,t){var n=c(i,o,a,e);return h(n,t)};var h=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=a[t];return n?p(e,t,n.name):void 0}};return n.getDimensionInfo=W(Uf,null,a,s),n.cloneAllDimensionInfo=W(Zf,null,a),n}(e,o)})),l=Oo(o.transform({upstream:s[0],upstreamList:s,config:I(e.config)}));return e.print&&Mo("log",B(l,(function(e){var t=null!=i?" === pipe index: "+i:"";return["=== dataset index: "+n.datasetIndex+t+" ===","- transform result data:",Do(e.data),"- transform result dimensions:",Do(e.dimensions)].join("\n")})).join("\n"),a),B(l,(function(e,n){var i;Z(e)||ko("A transform should not return some empty results."),e.data||ko("Transform result data should be not be null or undefined"),Qf(mf(e.data))||ko("Transform result data should be array rows or object rows.");var r=t[0];if(r&&0===n&&!e.dimensions){var o=r.startIndex;o&&(e.data=r.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:rh,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:rh,sourceHeader:0,dimensions:e.dimensions};return ff(e.data,i,null)}))}function Qf(e){return e===Qp||e===eh}var eg,tg="undefined",ng=typeof Uint32Array===tg?Array:Uint32Array,ig=typeof Uint16Array===tg?Array:Uint16Array,rg=typeof Int32Array===tg?Array:Int32Array,og=typeof Float64Array===tg?Array:Float64Array,ag={float:og,int:rg,ordinal:Array,number:Array,time:og};function sg(e){return e>65535?ng:ig}function lg(e,t,n,i,r){var o=ag[n||"float"];if(r){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(i)}var ug=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ve()}return e.prototype.initData=function(e,t,n){ue(Y(e.getItem)&&Y(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),r=this.defaultDimValueGetter=eg[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];var o=xf(i);this._dimensions=B(t,(function(e){return o&&ue(null!=e.property),{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(e);if(null!=r){if(i[r].type===t)return r}else r=i.length;return i[r]={type:t},n.set(e,r),this._chunks[r]=new ag[t||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[e]=[1/0,-1/0]);for(var s=r[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=t,i.ordinalOffset=a,i.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){ue(!this._indices,"appendData can only be called on raw data.");var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<r;l++)lg(n,l,(h=i[l]).type,s,!0);for(var u=[],c=a;c<s;c++)for(var d=c-a,p=0;p<r;p++){var h=i[p],f=eg.arrayRows.call(this,e[d]||u,h.property,d,p);n[p][c]=f;var g=o[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=B(o,(function(e){return e.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),lg(r,u,c.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,r,s);else for(var d=[],p=e;p<t;p++){d=i.getItem(p,d);for(var h=0;h<a;h++){var f=r[h],g=this._dimValueGetter(d,l[h],p,h);f[p]=g;var m=s[h];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],i=[];if(null==t){t=e,e=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=e;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,i=this.count();n<i;n++){var r=this.get(e,n);isNaN(r)||(t+=r)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(t[o]<e)i=o+1;else{if(!(t[o]>e))return o;r=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks[e],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=t-i[this.getRawIndex(l)],d=Math.abs(c);d<=n&&((d<o||d===o&&c>=0&&a<0)&&(o=d,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;r<i;r++)e[r]=t[r]}else e=new n(t.buffer,0,i)}else for(e=new(n=sg(this._rawCount))(this.count()),r=0;r<e.length;r++)e[r]=r;return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(sg(n._rawCount))(i),o=[],a=e.length,s=0,l=e[0],u=n._chunks,c=0;c<i;c++){var d=void 0,p=n.getRawIndex(c);if(0===a)d=t(c);else if(1===a)d=t(u[l][p],c);else{for(var h=0;h<a;h++)o[h]=u[e[h]][p];o[h]=c,d=t.apply(null,o)}d&&(r[s++]=p)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=H(e),r=i.length;if(!r)return this;var o=t.count(),a=new(sg(t._rawCount))(o),s=0,l=i[0],u=e[l][0],c=e[l][1],d=t._chunks,p=!1;if(!t._indices){var h=0;if(1===r){for(var f=d[i[0]],g=0;g<n;g++)((x=f[g])>=u&&x<=c||isNaN(x))&&(a[s++]=h),h++;p=!0}else if(2===r){f=d[i[0]];var m=d[i[1]],v=e[i[1]][0],y=e[i[1]][1];for(g=0;g<n;g++){var x=f[g],w=m[g];(x>=u&&x<=c||isNaN(x))&&(w>=v&&w<=y||isNaN(w))&&(a[s++]=h),h++}p=!0}}if(!p)if(1===r)for(g=0;g<o;g++){var _=t.getRawIndex(g);((x=d[i[0]][_])>=u&&x<=c||isNaN(x))&&(a[s++]=_)}else for(g=0;g<o;g++){for(var b=!0,S=(_=t.getRawIndex(g),0);S<r;S++){var M=i[S];((x=d[M][_])<e[M][0]||x>e[M][1])&&(b=!1)}b&&(a[s++]=t.getRawIndex(g))}return s<o&&(t._indices=a),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var i=e._chunks,r=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var d=e.getRawIndex(c),p=0;p<o;p++)s[p]=i[t[p]][d];s[o]=c;var h=n&&n.apply(null,s);if(null!=h)for("object"!=typeof h&&(r[0]=h,h=r),u=0;u<h.length;u++){var f=t[u],g=h[u],m=l[f],v=i[f];v&&(v[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}},e.prototype.lttbDownSample=function(e,t){var n,i,r,o=this.clone([e],!0),a=o._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),d=new(sg(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));d[l++]=c;for(var p=1;p<s-1;p+=u){for(var h=Math.min(p+u,s-1),f=Math.min(p+2*u,s),g=(f+h)/2,m=0,v=h;v<f;v++){var y=a[T=this.getRawIndex(v)];isNaN(y)||(m+=y)}m/=f-h;var x=p,w=Math.min(p+u,s),_=p-1,b=a[c];n=-1,r=x;var S=-1,M=0;for(v=x;v<w;v++){var T;y=a[T=this.getRawIndex(v)],isNaN(y)?(M++,S<0&&(S=T)):(i=Math.abs((_-g)*(y-b)-(_-v)*(m-b)))>n&&(n=i,r=T)}M>0&&M<w-x&&(d[l++]=Math.min(S,r),r=Math.max(S,r)),d[l++]=r,c=r}return d[l++]=this.getRawIndex(s-1),o._count=l,o._indices=d,o.getRawIndex=this._getRawIdx,o},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),i=n._chunks,r=Math.floor(1/t),o=i[e],a=this.count(),s=new(sg(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var c=u,d=o[this.getRawIndex(c)],p=u,h=o[this.getRawIndex(p)],f=r;u+r>a&&(f=a-u);for(var g=0;g<f;g++){var m=o[this.getRawIndex(u+g)];m<d&&(d=m,c=u+g),m>h&&(h=m,p=u+g)}var v=this.getRawIndex(c),y=this.getRawIndex(p);c<p?(s[l++]=v,s[l++]=y):(s[l++]=y,s[l++]=v)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,i){for(var r=this.clone([e],!0),o=r._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=r._rawExtent[e]=[1/0,-1/0],d=new(sg(this._rawCount))(Math.ceil(u/s)),p=0,h=0;h<u;h+=s){s>u-h&&(s=u-h,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(h+f);a[f]=l[g]}var m=n(a),v=this.getRawIndex(Math.min(h+i(a,m)||0,u-1));l[v]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),d[p++]=v}return r._count=p,r._indices=d,r._updateGetRawIdx(),r},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:t(r);break;case 1:t(i[e[0]][a],r);break;case 2:t(i[e[0]][a],i[e[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[e[s]][a];l[s]=r,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[e].slice();if(i=this._extent[e])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=t[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[e]=i,i},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][t]);return n},e.prototype.clone=function(t,n){var i,r,o=new e,a=this._chunks,s=t&&V(t,(function(e,t){return e[t]=!0,e}),{});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},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=I(this._extent),e._rawExtent=I(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return Bf(e[i],this._dimensions[i])}eg={arrayRows:e,objectRows:function(e,t,n,i){return Bf(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return Bf(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}(),cg=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(pg(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,t=[u._getVersionSign()]}else s=J(a=o.get("data",!0))?nh:Jp,t=[];var c=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},p=oe(c.seriesLayoutBy,d.seriesLayoutBy)||null,h=oe(c.sourceHeader,d.sourceHeader),f=oe(c.dimensions,d.dimensions);e=p!==d.seriesLayoutBy||!!h!=!!d.sourceHeader||f?[ff(a,{seriesLayoutBy:p,sourceHeader:h,dimensions:f},s)]:[]}else{var g=n;if(r){var m=this._applyTransform(i);e=m.sourceList,t=m.upstreamSignList}else e=[ff(g.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}ue(e&&t),this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);ue(null!=r||null!=i),null!=r&&1!==e.length&&hg("When using `fromTransformResult`, there should be only one upstream dataset");var o,a=[],s=[];return z(e,(function(e){e.prepareSource();var t=e.getSource(r||0);null==r||t||hg("Can not retrieve result by `fromTransformResult`: "+r),a.push(t),s.push(e._getVersionSign())})),i?t=function(e,t,n){var i=Oo(e),r=i.length;r||ko("If `transform` declared, it should at least contain one transform.");for(var o=0,a=r;o<a;o++)t=Jf(i[o],t,n,1===r?null:o),o!==a-1&&(t.length=Math.max(t.length,1));return t}(i,a,{datasetIndex:n.componentIndex}):null!=r&&(t=[(o=a[0],new pf({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:I(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){ue(pg(this._sourceHost),"Can only call getDataStore on series source manager.");var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];pg(this._sourceHost)&&a?o=a._innerGetDataStore(e,t,n):(o=new ug).initData(new wf(t,e.length),e),r[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(pg(e)){var t=ph(e);return t?[t.getSourceManager()]:[]}return B(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?ea(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Jo).models:[]}(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,i=this._sourceHost;if(pg(i))e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function dg(e){e.option.transform&&pe(e.option.transform)}function pg(e){return"series"===e.mainType}function hg(e){throw new Error(e)}function fg(e){var t=e.lineHeight;return null==t?"line-height:1":"line-height:"+ot(t+"")+"px"}function gg(e,t){var n=e.color||"#6e7079",i=e.fontSize||12,r=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+ot(i+"")+"px;color:"+ot(n)+";font-weight:"+ot(r+""),valueStyle:"font-size:"+ot(a+"")+"px;color:"+ot(o)+";font-weight:"+ot(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var mg=[0,10,20,30],vg=["","\n","\n\n","\n\n\n"];function yg(e,t){return t.type=e,t}function xg(e){return"section"===e.type}function wg(e){return xg(e)?bg:Sg}function _g(e){if(xg(e)){var t=0,n=e.blocks.length,i=n>1||n>0&&!e.noHeader;return z(e.blocks,(function(e){var n=_g(e);n>=t&&(t=n+ +(i&&(!n||xg(e)&&!e.noHeader)))})),t}return 0}function bg(e,t,n,i){var r,o=t.noHeader,a=(r=_g(t),{html:mg[r],richText:vg[r]}),s=[],l=t.blocks||[];ue(!l||$(l)),l=l||[];var u=e.orderMode;if(t.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(_e(c,u)){var d=new Wf(c[u],null);l.sort((function(e,t){return d.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===u&&l.reverse()}z(l,(function(n,r){var o=t.valueFormatter,l=wg(n)(o?k(k({},e),{valueFormatter:o}):e,n,r>0?a.html:0,i);null!=l&&s.push(l)}));var p="richText"===e.renderMode?s.join(a.richText):Tg(i,s.join(""),o?n:a.html);if(o)return p;var h=Ap(t.header,"ordinal",e.useUTC),f=gg(i,e.renderMode).nameStyle,g=fg(i);return"richText"===e.renderMode?Cg(e,h,f)+a.richText+p:Tg(i,'<div style="'+f+";"+g+';">'+ot(h)+"</div>"+p,n)}function Sg(e,t,n,i){var r=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return B(e=$(e)?e:[e],(function(e,t){return Ap(e,$(h)?h[t]:h,u)}))};if(!o||!a){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),p=o?"":Ap(l,"ordinal",u),h=t.valueType,f=a?[]:c(t.value,t.dataIndex),g=!s||!o,m=!s&&o,v=gg(i,r),y=v.nameStyle,x=v.valueStyle;return"richText"===r?(s?"":d)+(o?"":Cg(e,p,y))+(a?"":function(e,t,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle($(t)?t.join("  "):t,o)}(e,f,g,m,x)):Tg(i,(s?"":d)+(o?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+ot(e)+"</span>"}(p,!s,y))+(a?"":function(e,t,n,i){return'<span style="'+(t?"float:right;margin-left:"+(n?"10px":"20px"):"")+";"+i+'">'+B(e=$(e)?e:[e],(function(e){return ot(e)})).join("&nbsp;&nbsp;")+"</span>"}(f,g,m,x)),n)}}function Mg(e,t,n,i,r,o){if(e)return wg(e)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,o)}function Tg(e,t,n){return'<div style="margin: '+n+"px 0 0;"+fg(e)+';">'+t+'<div style="clear:both"></div></div>'}function Cg(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Ig(e,t){return Pp(e.getData().getItemVisual(t,"style")[e.visualDrawType])}function Ag(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var Dg=function(){function e(){this.richTextStyles={},this._nextStyleNameId=xo()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,r=Ep({color:t,type:e,renderMode:n,markerId:i});return X(r)?r:(ue(i),this.richTextStyles[i]=r.style,r.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};$(t)?z(t,(function(e){return k(n,e)})):k(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}();function kg(e){var t,n,i,r,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,d=o.getRawValue(a),p=$(d),h=Ig(o,a);if(c>1||p&&!c){var f=function(e,t,n,i,r){var o=t.getData(),a=V(e,(function(e,t,n){var i=o.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(yg("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return i.length?z(i,(function(e){c(Lf(o,n,e),e)})):z(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(d,o,a,u,h);t=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=t=Lf(l,a,u[0]),n=g.type}else r=t=p?d[0]:d;var m=$o(o),v=m&&o.name||"",y=l.getName(a),x=s?v:y;
vendor: 12,216 bytes, line 2
2return yg("section",{header:v,noHeader:s||!m,sortParam:r,blocks:[yg("nameValue",{markerType:"item",markerColor:h,name:x,noName:!ce(x),value:t,valueType:n,dataIndex:a})].concat(i||[])})}var Lg=qo();function Eg(e,t){return e.getName(t)||e.getId(t)}var Pg="__universalTransitionEnabled",Og=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return i(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Rf({count:Ng,reset:zg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(Lg(this).sourceManager=new cg(this)).prepareSource();var i=this.getInitialData(e,n);Vg(i,this),this.dataTask.context.data=i,ue(i,"getInitialData returned invalid data."),Lg(this).dataBeforeProcessed=i,Rg(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Hp(this),i=n?jp(e):{},r=this.subType;Xp.hasClass(r)&&(r+="Series"),A(e,t.getTheme().get(this.subType)),A(e,this.getDefaultOption()),Ro(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Wp(e,i,n)},t.prototype.mergeOption=function(e,t){e=A(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Hp(this);n&&Wp(this.option,e,n);var i=Lg(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(e,t);Vg(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Lg(this).dataBeforeProcessed=r,Rg(this),this._initSelectedMapFromData(r)},t.prototype.fillDataTextStyle=function(e){if(e&&!J(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Ro(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=Gg(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}return Lg(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Gg(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Lg(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return ve(e)},t.prototype.getSourceManager=function(){return Lg(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Lg(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return kg({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(o.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=_h.prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(t);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=Eg(r,e[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=H(e),n=[],i=0;i<t.length;i++){var r=e[t[i]];r>=0&&n.push(r)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[Eg(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Pg])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,r=this.option,o=r.selectedMode,a=t.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){Z(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=t[l];s[d=Eg(e,u)]=!0,this._selectedDataIndicesMap[d]=e.getRawIndex(u)}}else if("single"===o||!0===o){var c=t[a-1],d=Eg(e,c);r.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((i={})[d]=e.getRawIndex(c),i)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var i=e.getRawDataItem(n);i&&i.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Xp.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Xp);function Rg(e){var t=e.name;$o(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return z(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}(e)||t)}function Ng(e){return e.model.getRawData().count()}function zg(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Bg}function Bg(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Vg(e,t){z(ye(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,j(Fg,t))}))}function Fg(e,t){var n=Gg(e);return n&&n.setOutputEnd((t||this).count()),t}function Gg(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}R(Og,Pf),R(Og,_h),la(Og,Xp);var Hg=function(){function e(){this.group=new Fr,this.uid=Vd("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();function Wg(){var e=qo();return function(t){var n=e(t),i=t.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"}}sa(Hg),pa(Hg);var jg=qo(),$g=Wg(),Yg=function(){function e(){this.group=new Fr,this.uid=Vd("viewChart"),this.renderTask=Rf({plan:Ug,reset:Zg}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){throw new Error("render method must been implemented")},e.prototype.highlight=function(e,t,n,i){var r=e.getData(i&&i.dataType);r?qg(r,i,"emphasis"):Co("Unknown dataType "+i.dataType)},e.prototype.downplay=function(e,t,n,i){var r=e.getData(i&&i.dataType);r?qg(r,i,"normal"):Co("Unknown dataType "+i.dataType)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.eachRendered=function(e){ld(this.group,e)},e.markUpdateMethod=function(e,t){jg(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function Xg(e,t,n){e&&uu(e)&&("emphasis"===t?Wl:jl)(e,n)}function qg(e,t,n){var i=Xo(e,t),r=t&&null!=t.highlightKey?function(e){var t=vl[e];return null==t&&ml<=32&&(t=vl[e]=ml++),t}(t.highlightKey):null;null!=i?z(Oo(i),(function(t){Xg(e.getItemGraphicEl(t),n,r)})):e.eachItemGraphicEl((function(e){Xg(e,n,r)}))}function Ug(e){return $g(e.model)}function Zg(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=r&&jg(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,i,r),Kg[l]}sa(Yg,["dispose"]),pa(Yg);var Kg={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Jg="\0__throttleOriginMethod",Qg="\0__throttleRate",em="\0__throttleType";function tm(e,t,n){var i,r,o,a,s,l=0,u=0,c=null;function d(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var p=function(){for(var e=[],p=0;p<arguments.length;p++)e[p]=arguments[p];i=(new Date).getTime(),o=this,a=e;var h=s||t,f=s||n;s=null,r=i-(f?l:u)-h,clearTimeout(c),f?c=setTimeout(d,h):r>=0?d():c=setTimeout(d,-r),l=i};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(e){s=e},p}function nm(e,t,n,i){var r=e[t];if(r){var o=r[Jg]||r,a=r[em];if(r[Qg]!==n||a!==i){if(null==n||!i)return e[t]=o;(r=e[t]=tm(o,n,"debounce"===i))[Jg]=o,r[em]=i,r[Qg]=n}return r}}function im(e,t){var n=e[t];n&&n[Jg]&&(n.clear&&n.clear(),e[t]=n[Jg])}var rm=qo(),om={itemStyle:ha(Od,!0),lineStyle:ha(Ld,!0)},am={lineStyle:"stroke",itemStyle:"fill"};function sm(e,t){return e.visualStyleMapper||om[t]||(console.warn("Unknown style type '"+t+"'."),om.itemStyle)}function lm(e,t){return e.visualDrawType||am[t]||(console.warn("Unknown style type '"+t+"'."),"fill")}var um={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),o=sm(e,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=lm(e,i),l=o[s],u=Y(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[s]||(o[s]=d,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Y(o.fill)?d:o.fill,o.stroke="auto"===o.stroke||Y(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=k({},o);r[s]=u(i),t.setItemVisual(n,"style",r)}}}},cm=new zd,dm={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=sm(e,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){cm.option=n[i];var a=r(cm);k(e.ensureUniqueItemVisual(t,"style"),a),cm.option.decal&&(e.setItemVisual(t,"decal",cm.option.decal),cm.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},pm={performRawSeries:!0,overallReset:function(e){var t=ve();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),rm(e).scope=r}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},r=t.getData(),o=rm(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=lm(t,a);r.each((function(e){var t=r.getRawIndex(e);i[t]=e})),n.each((function(e){var a=i[e];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,o,c)}}))}}))}},hm=Math.PI;var fm=function(){function e(e,t,n,i){this._stageTaskMap=ve(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRen
vendor: 5,421 bytes, line 2
2der)&&e.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData().count(),r=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,o=e.get("large")&&i>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=ve();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;z(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,{});ue(!(i.reset&&i.overallReset),'"reset" and "overallReset" must not be both specified.'),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}z(e,(function(e,s){if(!i.visualType||i.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,p=c.agentStubMap;p.each((function(e){a(i,e)&&(e.dirty(),d=!0)})),d&&c.dirty(),o.updatePayload(c,n);var h=o.getPerformArgs(c,i.block);p.each((function(e){e.perform(h)})),c.perform(h)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,o=t.seriesTaskMap,a=t.seriesTaskMap=ve(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||Rf({plan:xm,reset:wm,count:Sm}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,o=t.overallTask=t.overallTask||Rf({reset:gm});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=ve(),l=e.seriesType,u=e.getTargetSeries,c=!0,d=!1;function p(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(d=!0,Rf({reset:mm,onDirty:ym})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,r._pipe(e,n)}ue(!e.createOnAllSeries,'"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(c=!1,z(n.getSeries(),p)),d&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return Y(e)&&(e={overallReset:e,seriesType:Mm(e)}),e.uid=Vd("stageHandler"),t&&(e.visualType=t),e},e}();function gm(e){e.overallReset(e.ecModel,e.api,e.payload)}function mm(e){return e.overallProgress&&vm}function vm(){this.agent.dirty(),this.getDownstream().dirty()}function ym(){this.agent&&this.agent.dirty()}function xm(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function wm(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Oo(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?B(t,(function(e,t){return bm(t)})):_m}var _m=bm(0);function bm(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function Sm(e){return e.data.count()}function Mm(e){Tm=null;try{e(Cm,Im)}catch(e){}return Tm}var Tm,Cm={},Im={};function Am(e,t){for(var n in t.prototype)e[n]=be}Am(Cm,Ah),Am(Im,Ph),Cm.eachSeriesByType=Cm.eachRawSeriesByType=function(e){Tm=e},Cm.eachComponent=function(e){"series"===e.mainType&&e.subType&&(Tm=e.subType)};var Dm=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],km={color:Dm,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Dm]}
vendor: 30,020 bytes, line 2
2,Lm="#B9B8CE",Em="#100C2A",Pm=function(){return{axisLine:{lineStyle:{color:Lm}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Om=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Rm={darkMode:!0,color:Om,backgroundColor:Em,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Lm},pageTextStyle:{color:Lm}},textStyle:{color:Lm},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Lm}},dataZoom:{borderColor:"#71708A",textStyle:{color:Lm},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:Lm}},timeline:{lineStyle:{color:Lm},label:{color:Lm},controlStyle:{color:Lm,borderColor:Lm}},calendar:{itemStyle:{color:Em},dayLabel:{color:Lm},monthLabel:{color:Lm},yearLabel:{color:Lm}},timeAxis:Pm(),logAxis:Pm(),valueAxis:Pm(),categoryAxis:Pm(),line:{symbol:"circle"},graph:{color:Om},gauge:{title:{color:Lm},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Lm},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Rm.categoryAxis.splitLine.show=!1;var Nm=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},i={};if(X(e)){var r=aa(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};z(e,(function(e,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var d=r.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(r)&&(n[r]=e,s=!0),s||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){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=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,i,r));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),zm=["symbol","symbolSize","symbolRotate","symbolOffset"],Bm=zm.concat(["symbolKeepAspect"]),Vm={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<zm.length;a++){var s=zm[a],l=e.get(s);Y(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual(k({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(e)){var u=H(r);return{dataEach:o?function(t,n){for(var i=e.getRawValue(n),o=e.getDataParams(n),a=0;a<u.length;a++){var s=u[a];t.setItemVisual(n,s,r[s](i,o))}}:null}}}}},Fm={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),i=0;i<Bm.length;i++){var r=Bm[i],o=n.getShallow(r,!0);null!=o&&e.setItemVisual(t,r,o)}}:null}}};function Gm(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:console.warn("Unknown visual type "+n)}}function Hm(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:console.warn("Unknown visual type "+t)}}function Wm(e,t,n,i){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,i);break;default:console.warn("Unknown visual type "+n)}}function jm(e,t){function n(t,n){var i=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){i.push(e.seriesIndex)})),i}z([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,i,r){Ao((t=k({},t)).type,e[1]),r.dispatchAction(k(t,{type:e[1],seriesIndex:n(i,t)}))}))}))}function $m(e,t,n,i,r){var o=e+t;n.isSilent(o)||(Io("event "+o+" is deprecated."),i.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,i=e.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var l=e.getData(),u=Xo(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:e.id,name:$(u)?l.getName(u[0]):l.getName(u),selected:X(i)?i:k({},i)})}})))}function Ym(e,t,n){for(var i;e&&(!t(e)||(i=e,!n));)e=e.__hostTarget||e.parent;return i}var Xm=Math.round(9*Math.random()),qm="function"==typeof Object.defineProperty,Um=function(){function e(){this._id="__ec_inner_"+Xm++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return qm?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),Zm=Fs.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i+o),e.lineTo(n-r,i+o),e.closePath()}}),Km=Fs.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i),e.lineTo(n,i+o),e.lineTo(n-r,i),e.closePath()}}),Jm=Fs.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,d=Math.sin(u),p=Math.cos(u),h=.6*a,f=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*h,l+s+p*h,n,i-f,n,i),e.bezierCurveTo(n,i-f,n-c+d*h,l+s+p*h,n-c,l+s),e.closePath()}}),Qm=Fs.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,o=t.y,a=i/3*2;e.moveTo(r,o),e.lineTo(r+a,o+n),e.lineTo(r,o+n/4*3),e.lineTo(r-a,o+n),e.lineTo(r,o),e.closePath()}}),ev={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var o=Math.min(n,i);r.x=e,r.y=t,r.width=o,r.height=o},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},tv={};z({line:ac,rect:Js,roundRect:Js,square:Js,circle:Pu,diamond:Km,pin:Jm,arrow:Qm,triangle:Zm},(function(e,t){tv[t]=new e}));var nv=Fs.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=Dr(e,t,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.position&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var r=tv[i];r||(r=tv[i="rect"]),ev[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function iv(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function rv(e,t,n,i,r,o,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?Wc(e.slice(8),new Bt(t,n,i,r),a?"center":"cover"):0===e.indexOf("path://")?Hc(e.slice(7),{},new Bt(t,n,i,r),a?"center":"cover"):new nv({shape:{symbolType:e,x:t,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=iv,o&&s.setColor(o),s}function ov(e){return $(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function av(e,t){if(null!=e)return $(e)||(e=[e,e]),[Jr(e[0],t[0])||0,Jr(oe(e[1],e[0]),t[1])||0]}function sv(e){return isFinite(e)}function lv(e,t,n){for(var i="radial"===t.type?function(e,t,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=sv(a)?a:.5,s=sv(s)?s:.5,l=l>=0&&sv(l)?l:.5,e.createRadialGradient(a,s,0,a,s,l)}(e,t,n):function(e,t,n){var i=null==t.x?0:t.x,r=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.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=sv(i)?i:0,r=sv(r)?r:1,o=sv(o)?o:0,a=sv(a)?a:0,e.createLinearGradient(i,o,r,a)}(e,t,n),r=t.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function uv(e){return parseInt(e,10)}function cv(e,t,n){var i=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(e);return(e[r]||uv(s[i])||uv(e.style[i]))-(uv(s[o])||0)-(uv(s[a])||0)|0}function dv(e){var t,n,i=e.style,r=i.lineDash&&i.lineWidth>0&&(t=i.lineDash,n=i.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:U(t)?[t]:$(t)?t:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(r=B(r,(function(e){return e/a})),o/=a)}return[r,o]}var pv=new ws(!0);function hv(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function fv(e){return"string"==typeof e&&"none"!==e}function gv(e){var t=e.fill;return null!=t&&"none"!==t}function mv(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function vv(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function yv(e,t,n){var i=ya(t.image,t.__image,n);if(wa(i)){var r=e.createPattern(i,t.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*Se),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}var xv=["shadowBlur","shadowOffsetX","shadowOffsetY"],wv=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function _v(e,t,n,i,r){var o=!1;if(!i&&t===(n=n||{}))return!1;if(i||t.opacity!==n.opacity){Mv(e,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Oa.opacity:a}(i||t.blend!==n.blend)&&(o||(Mv(e,r),o=!0),e.globalCompositeOperation=t.blend||Oa.blend);for(var s=0;s<xv.length;s++){var l=xv[s];(i||t[l]!==n[l])&&(o||(Mv(e,r),o=!0),e[l]=e.dpr*(t[l]||0))}return(i||t.shadowColor!==n.shadowColor)&&(o||(Mv(e,r),o=!0),e.shadowColor=t.shadowColor||Oa.shadowColor),o}function bv(e,t,n,i,r){var o=Tv(t,r.inHover),a=i?null:n&&Tv(n,r.inHover)||{};if(o===a)return!1;var s=_v(e,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Mv(e,r),s=!0),fv(o.fill)&&(e.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Mv(e,r),s=!0),fv(o.stroke)&&(e.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Mv(e,r),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(Mv(e,r),s=!0),e.lineWidth=l)}for(var u=0;u<wv.length;u++){var c=wv[u],d=c[0];(i||o[d]!==a[d])&&(s||(Mv(e,r),s=!0),e[d]=o[d]||c[1])}return s}function Sv(e,t){var n=t.transform,i=e.dpr||1;n?e.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):e.setTransform(i,0,0,i,0,0)}function Mv(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Tv(e,t){return t&&e.__hoverStyle||e.style}function Cv(e,t){Iv(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Iv(e,t,n,i){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=-2,void(t.__isRendered=!1);var o,a,l=t.__clipPaths,u=n.prevElClipPaths,c=!1,d=!1;if(u&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(l,u)||(u&&u.length&&(Mv(e,n),e.restore(),d=c=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),l&&l.length&&(Mv(e,n),e.save(),function(e,t,n){for(var i=!1,r=0;r<e.length;r++){var o=e[r];i=i||o.isZeroArea(),Sv(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=i}(l,e,n),c=!0),n.prevElClipPaths=l),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var p=n.prevEl;p||(d=c=!0);var h=t instanceof Fs&&t.autoBatch&&function(e){var t=gv(e),n=hv(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);c||(o=r,a=p.transform,o&&a?o[0]!==a[0]||o[1]!==a[1]||o[2]!==a[2]||o[3]!==a[3]||o[4]!==a[4]||o[5]!==a[5]:o||a)?(Mv(e,n),Sv(e,t)):h||Mv(e,n);var f=Tv(t,n.inHover);t instanceof Fs?(1!==n.lastDrawType&&(d=!0,n.lastDrawType=1),bv(e,t,p,d,n),h&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,i){var r,o=hv(n),a=gv(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||pv,d=t.__dirty;if(!i){var p=n.fill,h=n.stroke,f=a&&!!p.colorStops,g=o&&!!h.colorStops,m=a&&!!p.image,v=o&&!!h.image,y=void 0,x=void 0,w=void 0,_=void 0,b=void 0;(f||g)&&(b=t.getBoundingRect()),f&&(y=d?lv(e,p,b):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(x=d?lv(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),m&&(w=d||!t.__canvasFillPattern?yv(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=w),v&&(_=d||!t.__canvasStrokePattern?yv(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),f?e.fillStyle=y:m&&(w?e.fillStyle=w:a=!1),g?e.strokeStyle=x:v&&(_?e.strokeStyle=_:o=!1)}var S,M,T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(S=(r=dv(t))[0],M=r[1]);var C=!0;(u||4&d)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),C=!1),c.reset(),t.buildPath(c,t.shape,i),c.toStatic(),t.pathUpdated()),C&&c.rebuildPath(e,l?s:1),S&&(e.setLineDash(S),e.lineDashOffset=M),i||(n.strokeFirst?(o&&vv(e,n),a&&mv(e,n)):(a&&mv(e,n),o&&vv(e,n))),S&&e.setLineDash([])}(e,t,f,h),h&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof Hs?(3!==n.lastDrawType&&(d=!0,n.lastDrawType=3),bv(e,t,p,d,n),function(e,t,n){var i,r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||s,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(o=(i=dv(t))[0],a=i[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(hv(n)&&e.strokeText(r,n.x,n.y),gv(n)&&e.fillText(r,n.x,n.y)):(gv(n)&&e.fillText(r,n.x,n.y),hv(n)&&e.strokeText(r,n.x,n.y)),o&&e.setLineDash([])}}(e,t,f)):t instanceof $s?(2!==n.lastDrawType&&(d=!0,n.lastDrawType=2),function(e,t,n,i,r){_v(e,Tv(t,r.inHover),n&&Tv(n,r.inHover),i,r)}(e,t,p,d,n),function(e,t,n){var i=t.__image=ya(n.image,t.__image,t,t.onload);if(i&&wa(i)){var r=n.x||0,o=n.y||0,a=t.getWidth(),s=t.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 u=n.sx||0,c=n.sy||0;e.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var d=a-(u=n.sx),p=s-(c=n.sy);e.drawImage(i,u,c,d,p,r,o,a,s)}else e.drawImage(i,r,o,a,s)}}(e,t,f)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(d=!0,n.lastDrawType=4),function(e,t,n){var i=t.getDisplayables(),r=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=i.length;o<a;o++)(c=i[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Iv(e,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c;for(var l=0,u=r.length;l<u;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Iv(e,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),h&&i&&Mv(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var Av=new Um,Dv=new zn(100),kv=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Lv(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),i=t.getZr(),r="svg"===i.painter.type;e.dirty&&Av.delete(e);var o=Av.get(e);if(o)return o;var a=L(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,o=[n],s=!0,l=0;l<kv.length;++l){var u=a[kv[l]];if(null!=u&&!$(u)&&!X(u)&&!U(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){t=o.join(",")+(r?"-svg":"");var c=Dv.get(t);c&&(r?e.svgElement=c:e.image=c)}var p,h=Pv(a.dashArrayX),f=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(U(e)){var t=Math.ceil(e);return[t,t]}var n=B(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}(a.dashArrayY),g=Ev(a.symbol),m=(_=h,B(_,(function(e){return Ov(e)}))),v=Ov(f),y=!r&&d.createCanvas(),x=r&&{tag:"g",attrs:{},key:"dcl",children:[]},w=function(){for(var e=1,t=0,n=m.length;t<n;++t)e=_o(e,m[t]);var i=1;for(t=0,n=g.length;t<n;++t)i=_o(i,g[t].length);e*=i;var r=v*m.length*g.length,o=function(e){console.warn("Calculated decal size is greater than "+e+" due to decal option settings so "+e+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+e+" to be larger to avoid incontinuity.")};return e>a.maxTileWidth&&o("maxTileWidth"),r>a.maxTileHeight&&o("maxTileHeight"),{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();var _;y&&(y.width=w.width*n,y.height=w.height*n,p=y.getContext("2d")),function(){p&&(p.clearRect(0,0,y.width,y.height),a.backgroundColor&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,y.width,y.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(!(e<=0))for(var o=-v,s=0,l=0,u=0;o<w.height;){if(s%2==0){for(var c=l/2%g.length,d=0,m=0,_=0;d<2*w.width;){var b=0;for(t=0;t<h[u].length;++t)b+=h[u][t];if(b<=0)break;if(m%2==0){var S=.5*(1-a.symbolSize),M=d+h[u][m]*S,T=o+f[s]*S,C=h[u][m]*a.symbolSize,I=f[s]*a.symbolSize,A=_/2%g[c].length;D(M,T,C,I,g[c][A])}d+=h[u][m],++_,++m===h[u].length&&(m=0)}++u===h.length&&(u=0)}o+=f[s],++l,++s===f.length&&(s=0)}function D(e,t,o,s,l){var u=r?1:n,c=rv(l,e*u,t*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var d=i.painter.renderOneToVNode(c);d&&x.children.push(d)}else Cv(p,c)}}(),s&&Dv.put(t,y||x),e.image=y,e.svgElement=x,e.svgWidth=w.width,e.svgHeight=w.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,Av.set(e,s),e.dirty=!1,s}function Ev(e){if(!e||0===e.length)return[["rect"]];if(X(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!X(e[n])){t=!1;break}if(t)return Ev([e]);var i=[];for(n=0;n<e.length;++n)X(e[n])?i.push([e[n]]):i.push(e[n]);return i}function Pv(e){if(!e||0===e.length)return[[0,0]];if(U(e))return[[r=Math.ceil(e),r]];for(var t=!0,n=0;n<e.length;++n)if(!U(e[n])){t=!1;break}if(t)return Pv([e]);var i=[];for(n=0;n<e.length;++n)if(U(e[n])){var r=Math.ceil(e[n]);i.push([r,r])}else(r=B(e[n],(function(e){return Math.ceil(e)}))).length%2==1?i.push(r.concat(r)):i.push(r);return i}function Ov(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var Rv=new Ue,Nv={};function zv(e){return Nv[e]||Co("Implementation of "+e+" doesn't exists."),Nv[e]}var Bv=2e3,Vv=4500,Fv={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:Bv,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:Vv,ARIA:6e3,DECAL:7e3}},Gv="__flagInMainProcess",Hv="__pendingUpdate",Wv="__needsUpdateStatus",jv=/^[a-zA-Z0-9_]+$/,$v="__connectUpdateStatus";function Yv(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return qv(this,e,t);yy(this.id)}}function Xv(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return qv(this,e,t)}}function qv(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Ue.prototype[t].apply(e,n)}var Uv,Zv,Kv,Jv,Qv,ey,ty,ny,iy,ry,oy,ay,sy,ly,uy,cy,dy,py,hy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Ue),fy=hy.prototype;fy.on=Xv("on"),fy.off=Xv("off");var gy=function(e){function t(t,i,r){var a=e.call(this,new Nm)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],r=r||{},X(i)&&(i=My[i]),a._dom=t;var s="canvas",l="auto",u=!1,c=o.hasGlobalWindow?window:n.g;c&&(s=oe(c.__ECHARTS__DEFAULT__RENDERER__,s),l=oe(c.__ECHARTS__DEFAULT__COARSE_POINTER,l),u=oe(c.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,u)),r.ssr&&qr((function(e){var t=fl(e),n=t.dataIndex;if(null!=n){var i=ve();return i.set("series_index",t.seriesIndex),i.set("data_index",n),t.ssrType&&i.set("ssr_type",t.ssrType),i}}));var d=a._zr=$r(t,{renderer:r.renderer||s,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:oe(r.useDirtyRect,u),useCoarsePointer:oe(r.useCoarsePointer,l),pointerSize:r.pointerSize});a._ssr=r.ssr,a._throttledZrFlush=tm(W(d.flush,d),17),(i=I(i))&&of(i,!0),a._theme=i,a._locale=function(e){if(X(e)){var t=jd[e.toUpperCase()]||{};return e===Gd||e===Hd?I(t):A(I(t),I(jd[Wd]),!1)}return A(I(e),I(jd[Wd]),!1)}(r.locale||Yd),a._coordSysMgr=new Rh;var p=a._api=uy(a);function h(e,t){return e.__prio-t.__prio}return en(Sy,h),en(_y,h),a._scheduler=new fm(a,p,_y,Sy),a._messageCenter=new hy,a._initEvents(),a.resize=W(a.resize,a),d.animation.on("frame",a._onframe,a),ry(d,a),oy(d,a),pe(a),a}return i(t,e),t.prototype._onframe=function(){if(!this._disposed){py(this);var e=this._scheduler;if(this[Hv]){var t=this[Hv].silent;this[Gv]=!0;try{Uv(this),Jv.update.call(this,null,this[Hv].updateParams)}catch(e){throw this[Gv]=!1,this[Hv]=null,e}this._zr.flush(),this[Gv]=!1,this[Hv]=null,ny.call(this,t),iy.call(this,t)}else if(e.unfinished){var n=1,i=this._model,r=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),ey(this,i),e.performVisualTasks(i),ly(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(this[Gv])Co("`setOption` should not be called during main process.");else if(this._disposed)yy(this.id);else{var i,r,o;if(Z(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,o=t.transition,t=t.notMerge),this[Gv]=!0,!this._model||t){var a=new zh(this._api),s=this._theme,l=this._model=new Ah;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:r},by);var u={seriesTransition:o,optionChanged:!0};if(n)this[Hv]={silent:i,updateParams:u},this[Gv]=!1,this.getZr().wakeUp();else{try{Uv(this),Jv.update.call(this,null,u)}catch(e){throw this[Hv]=null,this[Gv]=!1,e}this._ssr||this._zr.flush(),this[Hv]=null,this[Gv]=!1,ny.call(this,i),iy.call(this,i)}}},t.prototype.setTheme=function(){Io("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||o.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return Ao("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;if("canvas"!==t.type)throw new Error("renderToCanvas can only be used in the canvas renderer.");return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;if("svg"!==t.type)throw new Error("renderToSVGString can only be used in the svg renderer.");return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(o.svgSupported){var e=this._zr;return z(e.storage.getDisplayList(),(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,i=[],r=this;z(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return z(i,(function(e){e.group.ignore=!1})),o}yy(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(Iy[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],p=e&&e.pixelRatio||this.getDevicePixelRatio();z(Cy,(function(o,d){if(o.group===n){var p=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(I(e)),h=o.getDom().getBoundingClientRect();a=i(h.left,a),s=i(h.top,s),l=r(h.right,l),u=r(h.bottom,u),c.push({dom:p,left:h.left,top:h.top})}}));var h=(l*=p)-(a*=p),f=(u*=p)-(s*=p),g=d.createCanvas(),m=$r(g,{renderer:t?"svg":"canvas"});if(m.resize({width:h,height:f}),t){var v="";return z(c,(function(e){var t=e.left-a,n=e.top-s;v+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),m.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return e.connectedBackgroundColor&&m.add(new Js({shape:{x:0,y:0,width:h,height:f},style:{fill:e.connectedBackgroundColor}})),z(c,(function(e){var t=new $s({style:{x:e.left*p-a,y:e.top*p-s,image:e.dom}});m.add(t)})),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}yy(this.id)},t.prototype.convertToPixel=function(e,t){return Qv(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return Qv(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return z(Zo(this._model,e),(function(e,i){i.indexOf("Models")>=0&&z(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint?n=n||o.containPoint(t,e):To(i+": "+(o?"The found component do not support containPoint.":"No view mapping to the found component."))}else To(i+": containPoint is not supported")}),this)}),this),!!n;yy(this.id)},t.prototype.getVisual=function(e,t){var n=Zo(this._model,e,{defaultMainType:"series"}),i=n.seriesModel;i||To("There is no specified series model");var r=i.getData(),o=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=o?Gm(r,o,t):Hm(r,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,i=this;z(vy,(function(e){var t=function(t){var n,r=i.getModel(),o=t.target,a="globalout"===e;if(a?n={}:o&&Ym(o,(function(e){var t=fl(e);if(t&&null!=t.dataIndex){var i=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return n=i&&i.getDataParams(t.dataIndex,t.dataType,o)||{},!0}if(t.eventData)return n=k({},t.eventData),!0}),!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&i["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];a||u&&c||To("model or view can not be found by params"),n.event=t,n.type=e,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:c},i.trigger(e,n)}};t.zrEventfulCallAtLast=!0,i._zr.on(e,t,i)})),z(wy,(function(e,t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),z(["selectchanged"],(function(e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",(function(e){var i=n.getModel();e.isFromClick?($m("map","selectchanged",t,i,e),$m("pie","selectchanged",t,i,e)):"select"===e.fromAction?($m("map","selected",t,i,e),$m("pie","selected",t,i,e)):"unselect"===e.fromAction&&($m("map","unselected",t,i,e),$m("pie","unselected",t,i,e))}))},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?yy(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)yy(this.id);else{this._disposed=!0,this.getDom()&&ta(this.getDom(),ky,"");var e=this,t=e._api,n=e._model;
2z(e._componentsViews,(function(e){e.dispose(n,t)})),z(e._chartsViews,(function(e){e.dispose(n,t)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Cy[e.id]}},t.prototype.resize=function(e){if(this[Gv])Co("`resize` should not be called during main process.");else if(this._disposed)yy(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[Hv]&&(null==i&&(i=this[Hv].silent),n=!0,this[Hv]=null),this[Gv]=!0;try{n&&Uv(this),Jv.update.call(this,{type:"resize",animation:k({duration:0},e&&e.animation)})}catch(e){throw this[Gv]=!1,e}this[Gv]=!1,ny.call(this,i),iy.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)yy(this.id);else if(Z(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Ty[e]){var n=Ty[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}else To("Loading effects "+e+" not exists.")},t.prototype.hideLoading=function(){this._disposed?yy(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=k({},e);return t.type=wy[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)yy(this.id);else if(Z(t)||(t={silent:!!t}
vendor: 4,052 bytes, line 2
2),xy[e.type]&&this._model)if(this[Gv])this._pendingActions.push(e);else{var n=t.silent;ty.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&o.browser.weChat&&this._throttledZrFlush(),ny.call(this,n),iy.call(this,n)}},t.prototype.updateLabelLayout=function(){Rv.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)yy(this.id);else{var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);ue(e.data&&n),n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){for(var t=[],n=e.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&t.push(r)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return r(e,n,i,-1/0),!0}))}}function r(e,t,n,i){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],t,n,i),i);else e.z=t,e.zlevel=n,i=Math.max(e.z2,i);if(o&&(o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var u=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function a(e,t){t.eachRendered((function(e){if(!Dc(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function s(e,n){var i=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(e){if(e.states&&e.states.emphasis){if(Dc(e))return;if(e instanceof Fs&&function(e){var t=yl(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}}))}Uv=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Zv(e,!0),Zv(e,!1),t.plan()},Zv=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var d=aa(e.type),p=t?Hg.getClass(d.main,d.sub):Yg.getClass(d.sub);ue(p,d.sub+" does not exist."),(c=new p).init(n,s),o[u]=c,r.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&i.prepareView(c,e,n,s)}for(t?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u),l=0;l<r.length;){var c=r[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Kv=function(e,t,n,i,r){var o=e._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,u=n.excludeSeriesId;null!=u&&(l=ve(),z(Oo(u),(function(e){var t=Ho(e,null);null!=t&&l.set(t,!0)}))),o&&o.eachComponent(s,(function(t){if(!l||null==l.get(t.id))if(du(n))if(t instanceof Og)n.type!==Sl||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var i=e.seriesIndex,r=e.getData(t.dataType);if(r){var o=Xo(r,t);o=($(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 u=fl(a);Kl(i,u.focus,u.blurScope,n)}
vendor: 10,051 bytes, line 2
2else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=c&&Kl(i,c,d,n)}}else Co("Unknown dataType "+t.dataType)}(t,n,e._api);else{var i=Ql(t.mainType,t.componentIndex,n.name,e._api),r=i.focusSelf,o=i.dispatchers;n.type===Sl&&r&&!n.notBlur&&Jl(t.mainType,t.componentIndex,e._api),o&&z(o,(function(e){n.type===Sl?Wl(e):jl(e)}))}else cu(n)&&t instanceof Og&&(function(e,t){if(cu(t)){var n=t.dataType,i=Xo(e.getData(n),t);$(i)||(i=[i]),e[t.type===Il?"toggleSelect":t.type===Tl?"select":"unselect"](i,n)}}(t,n,e._api),eu(t),dy(e))}),e),o&&o.eachComponent(s,(function(t){l&&null!=l.get(t.id)||c(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else z([].concat(e._componentsViews).concat(e._chartsViews),c);function c(i){i&&i.__alive&&i[t]&&i[t](i.__model,o,e._api,n)}},Jv={prepareAndUpdate:function(e){Uv(this),Jv.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(t),s.restoreData(i,t),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,t),ey(this,i),a.update(i,r),e(i),s.performVisualTasks(i,t),ay(this,i,r,t,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Rv.trigger("afterupdate",i,r)}},updateTransform:function(t){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(t);var o=[];i.eachComponent((function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,t);l&&l.update&&o.push(s)}else o.push(s)}}));var a=ve();i.eachSeries((function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var s=o.updateTransform(e,i,r,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)})),e(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:a}),ly(this,i,r,t,{},a),Rv.trigger("afterupdate",i,r)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),Yg.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),ay(this,n,this._api,t,{}),Rv.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries((function(e){e.getData().clearAllVisual()})),Yg.markUpdateMethod(t,"updateVisual"),e(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent((function(e,r){if("series"!==e){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,t)}})),i.eachSeries((function(e){n._chartsMap[e.__viewId].updateVisual(e,i,n._api,t)})),Rv.trigger("afterupdate",i,this._api))},updateLayout:function(e){Jv.update.call(this,e)}},Qv=function(e,t,n,i){if(e._disposed)yy(e.id);else{for(var r,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=Zo(o,n),l=0;l<a.length;l++){var u=a[l];if(u[t]&&null!=(r=u[t](o,s,i)))return r}To("No coordinate system that supports "+t+" found by the given finder.")}},ey=function(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))},ty=function(e,t){var n=this,i=this.getModel(),r=e.type,o=e.escapeConnect,a=xy[r],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&aa(l[0]);this[Gv]=!0;var d=[e],p=!1;e.batch&&(p=!0,d=B(e.batch,(function(t){return(t=L(k({},t),e)).batch=null,t})));var h,f=[],g=cu(e),m=du(e);if(m&&Zl(this._api),z(d,(function(t){if((h=(h=a.action(t,n._model,n._api))||k({},t)).type=s.event||h.type,f.push(h),m){var i=Ko(e),r=i.queryOptionMap,o=i.mainTypeSpecified?r.keys()[0]:"series";Kv(n,u,t,o),dy(n)}else g?(Kv(n,u,t,"series"),dy(n)):c&&Kv(n,u,t,c.main,c.sub)})),"none"!==u&&!m&&!g&&!c)try{this[Hv]?(Uv(this),Jv.update.call(this,e),this[Hv]=null):Jv[u].call(this,e)}catch(e){throw this[Gv]=!1,e}if(h=p?{type:s.event||r,escapeConnect:o,batch:f}:f[0],this[Gv]=!1,!t){var v=this._messageCenter;if(v.trigger(h.type,h),g){var y={type:"selectchanged",escapeConnect:o,selected:tu(i),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};v.trigger(y.type,y)}}},ny=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();ty.call(this,n,e)}},iy=function(e){!e&&this.trigger("updated")},ry=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[Hv]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},oy=function(e,t){e.on("mouseover",(function(e){var n=Ym(e.target,uu);n&&(function(e,t,n){uu(e)||Co("param should be highDownDispatcher");var i=fl(e),r=Ql(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&Jl(i.componentMainType,i.componentIndex,n),z(o,(function(e){return Gl(e,t)}))):(Kl(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&Jl(i.componentMainType,i.componentIndex,n),Gl(e,t))}(n,e,t._api),dy(t))})).on("mouseout",(function(e){var n=Ym(e.target,uu);n&&(function(e,t,n){uu(e)||Co("param should be highDownDispatcher"),Zl(n);var i=fl(e),r=Ql(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?z(r,(function(e){return Hl(e,t)})):Hl(e,t)}(n,e,t._api),dy(t))})).on("click",(function(e){var n=Ym(e.target,(function(e){return null!=fl(e).dataIndex}),!0);if(n){var i=n.selected?"unselect":"select",r=fl(n);t._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}}))},ay=function(e,t,n,i,r){(function(e){var t=[],n=[],i=!1;if(e.eachComponent((function(e,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:r.componentIndex,type:e,key:s})})),i){var r,o,a=t.concat(n);en(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),z(a,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,a=t.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)}))}})(t),sy(e,t,n,i,r),z(e._chartsViews,(function(e){e.__alive=!1})),ly(e,t,n,i,r),z(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))},sy=function(e,t,i,r,o,l){z(l||e._componentsViews,(function(e){var o=e.__model;a(0,e),e.render(o,t,i,r),n(o,e),s(o,e)}))},ly=function(e,t,i,r,l,u){var c=e._scheduler;l=k(l||{},{updatedSeries:t.getSeries()}),Rv.trigger("series:beforeupdate",t,i,l);var d=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;c.updatePayload(i,r),a(0,n),u&&u.get(t.uid)&&i.dirty(),i.perform(c.getPerformArgs(i))&&(d=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}(t,n),eu(t)})),c.unfinished=d||c.unfinished,Rv.trigger("series:layoutlabels",t,i,l),Rv.trigger("series:transition",t,i,l),t.eachSeries((function(t){var i=e._chartsMap[t.__viewId];n(t,i),s(t,i)})),function(e,t){var n=e._zr.storage,i=0;n.traverse((function(e){e.isGroup||i++})),i>t.get("hoverLayerThreshold")&&!o.node&&!o.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,t),Rv.trigger("series:afterupdate",t,i,l)},dy=function(e){e[Wv]=!0,e.getZr().wakeUp()},py=function(e){e[Wv]&&(e.getZr().storage.traverse((function(e){Dc(e)||t(e)})),e[Wv]=!1)},uy=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Wl(t,n),dy(e)},n.prototype.leaveEmphasis=function(t,n){jl(t,n),dy(e)},n.prototype.enterBlur=function(t){$l(t),dy(e)},n.prototype.leaveBlur=function(t){Yl(t),dy(e)},n.prototype.enterSelect=function(t){Xl(t),dy(e)},n.prototype.leaveSelect=function(t){ql(t),dy(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(Ph))(e)},cy=function(e){function t(e,t){for(var n=0;n<e.length;n++)e[n][$v]=t}z(wy,(function(n,i){e._messageCenter.on(i,(function(n){if(Iy[e.group]&&0!==e[$v]){if(n&&n.escapeConnect)return;var i=e.makeActionFromEvent(n),r=[];z(Cy,(function(t){t!==e&&t.group===e.group&&r.push(t)})),t(r,0),z(r,(function(e){1!==e[$v]&&e.dispatchAction(i)})),t(r,2)}}))}))}}(),t}(Ue),my=gy.prototype;my.on=Yv("on"),my.off=Yv("off"),my.one=function(e,t,n){var i=this;Io("ECharts#one is deprecated."),this.on.call(this,e,(function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];t&&t.apply&&t.apply(this,r),i.off(e,n)}),n)};var vy=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function yy(e){To("Instance "+e+" has been disposed")}var xy={},wy={},_y=[],by=[],Sy=[],My={},Ty={},Cy={},Iy={},Ay=+new Date-0,Dy=+new Date-0,ky="_echarts_instance_";function Ly(e){Iy[e]=!1}var Ey=Ly;function Py(e){return Cy[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,ky)]}function Oy(e,t){My[e]=t}function Ry(e){P(by,e)<0&&by.push(e)}function Ny(e,t){$y(_y,e,t,2e3)}function zy(e){Vy("afterinit",e)}function By(e){Vy("afterupdate",e)}function Vy(e,t){Rv.on(e,t)}function Fy(e,t,n){Y(t)&&(n=t,t="");var i=Z(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,wy[t]||(ue(jv.test(i)&&jv.test(t)),xy[i]||(xy[i]={action:n,actionInfo:e}),wy[t]=i)}function Gy(e,t){Rh.register(e,t)}function Hy(e,t){$y(Sy,e,t,1e3,"layout")}function Wy(e,t){$y(Sy,e,t,3e3,"visual")}var jy=[];function $y(e,t,n,i,r){if((Y(t)||Z(t))&&(n=t,t=i),isNaN(t)||null==t)throw new Error("Illegal priority");if(z(e,(function(e){ue(e.__raw!==n)})),!(P(jy,n)>=0)){jy.push(n);var o=fm.wrapStageHandler(n,r);o.__prio=t,o.__raw=n,e.push(o)}}function Yy(e,t){Ty[e]=t}function Xy(e,t,n){var i=zv("registerMap");
vendor: 1,474 bytes, line 2
2i&&i(e,t,n)}var qy=function(e){var t=(e=I(e)).type;t||ko("Must have a `type` when `registerTransform`.");var n=t.split(":");2!==n.length&&ko('Name must include namespace like "ns:regression".');var i=!1;"echarts"===n[0]&&(t=n[1],i=!0),e.__isBuiltIn=i,Kf.set(t,e)};Wy(Bv,um),Wy(Vv,dm),Wy(Vv,pm),Wy(Bv,Vm),Wy(Vv,Fm),Wy(7e3,(function(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(e){var n=i.getItemVisual(e,"decal");n&&(i.ensureUniqueItemVisual(e,"style").decal=Lv(n,t))}));var r=i.getVisual("decal");r&&(i.getVisual("style").decal=Lv(r,t))}}))})),Ry(of),Ny(900,(function(e){var t=ve();e.eachSeries((function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),r=e.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:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),t.each(af)})),Yy("default",(function(e,t){L(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",
vendor: 34,717 bytes, line 2
2spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Fr,i=new Js({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r,o=new tl({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Js({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&((r=new pc({shape:{startAngle:-hm/2,endAngle:-hm/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*hm/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*hm/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n})),Fy({type:Sl,event:Sl,update:Sl},be),Fy({type:Ml,event:Ml,update:Ml},be),Fy({type:Tl,event:Tl,update:Tl},be),Fy({type:Cl,event:Cl,update:Cl},be),Fy({type:Il,event:Il,update:Il},be),Oy("light",km),Oy("dark",Rm);var Uy=[],Zy={registerPreprocessor:Ry,registerProcessor:Ny,registerPostInit:zy,registerPostUpdate:By,registerUpdateLifecycle:Vy,registerAction:Fy,registerCoordinateSystem:Gy,registerLayout:Hy,registerVisual:Wy,registerTransform:qy,registerLoading:Yy,registerMap:Xy,registerImpl:function(e,t){Nv[e]&&Co("Already has an implementation of "+e+"."),Nv[e]=t},PRIORITY:Fv,ComponentModel:Xp,ComponentView:Hg,SeriesModel:Og,ChartView:Yg,registerComponentModel:function(e){Xp.registerClass(e)},registerComponentView:function(e){Hg.registerClass(e)},registerSeriesModel:function(e){Og.registerClass(e)},registerChartView:function(e){Yg.registerClass(e)},registerSubTypeDefaulter:function(e,t){Xp.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Yr(e,t)}};function Ky(e){$(e)?z(e,(function(e){Ky(e)})):P(Uy,e)>=0||(Uy.push(e),Y(e)&&(e={install:e}),e.install(Zy))}function Jy(e){return null==e?0:e.length||1}function Qy(e){return e}var ex=function(){function e(e,t,n,i,r,o){this._old=e,this._new=t,this._oldKeyGetter=n||Qy,this._newKeyGetter=i||Qy,this.context=r,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),r=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,r,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=i[o],s=n[a],l=Jy(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},r=[],o=[];this._initIndexMap(e,n,r,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=Jy(l),d=Jy(u);if(c>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),i[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var p=0;p<c;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=t[i],o=Jy(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);t[i]=null}},e.prototype._initIndexMap=function(e,t,n,i){for(var r=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[i](e[o],o);if(r||(n[o]=a),t){var s=t[a],l=Jy(s);0===l?(t[a]=o,r&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}(),tx=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function nx(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function ix(e){return"category"===e?"ordinal":"time"===e?"time":"float"}var rx=function(e){this.otherDims={},null!=e&&k(this,e)},ox=qo(),ax={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},sx=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=cx(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return oe(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=xf(this.source),n=!dx(e),i="",r=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var d=this.getSourceDimension(o);d&&(s=t?d.name:null,l=d.type)}r.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=ax[l]||"f",u&&(i+=u.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===t)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function lx(e){return e instanceof sx}function ux(e){for(var t=ve(),n=0;n<(e||[]).length;n++){var i=e[n],r=Z(i)?i.name:i;null!=r&&null==t.get(r)&&t.set(r,n)}return t}function cx(e){var t=ox(e);return t.dimNameMap||(t.dimNameMap=ux(e.dimensionsDefine))}function dx(e){return e>30}var px,hx,fx,gx,mx,vx,yx,xx=Z,_x=B,bx="undefined"==typeof Int32Array?Array:Int32Array,Sx=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Mx=["_approximateExtent"],Tx=function(){function e(e,t){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;lx(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],d=X(c)?new rx({name:c}):c instanceof rx?c:new rx(c),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var h=d.otherDims=d.otherDims||{};o.push(p),r[p]=d,null!=l[p]&&(s=!0),d.createInvertedIndices&&(a[p]=[]),0===h.itemName&&(this._nameDimIdx=u),0===h.itemId&&(this._idDimIdx=u),ue(i||d.storeDimIndex>=0),i&&(d.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=ve();z(o,(function(e){f.set(r[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var i=this._schema.getSourceDimension(t);return i?i.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(U(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(null==t)throw new Error("Unknown dimension "+e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var i,r=this;if(e instanceof ug&&(i=e),!i){var o=this.dimensions,a=hf(e)||N(e)?new wf(e,o.length):e;i=new ug;var s=_x(o,(function(e){return{type:r._dimInfos[e].type,property:e}}));i.initData(a,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function(e,t){var n={},i=n.encode={},r=ve(),o=[],a=[],s={};z(e.dimensions,(function(t){var n,l=e.getDimensionInfo(t),u=l.coordDim;if(u){ue(null==Kp.get(u));var c=l.coordDimIndex;nx(i,u)[c]=t,l.isExtraCoord||(r.set(u,1),!("ordinal"===(n=l.type)||"time"===n)&&(o[0]=t),nx(s,u)[c]=e.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(t)}Kp.each((function(e,t){var n=nx(i,t),r=l.otherDims[t];null!=r&&!1!==r&&(n[r]=l.name)}))}));var l=[],u={};r.each((function(e,t){var n=i[t];u[t]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=B(l,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.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 tx(s,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=t[s],o&&yx(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==nh&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===Jp&&!n.pure)for(var o=[],a=e;a<t;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&Bo(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=Ho(l,null));var u=s.id;null==r[a]&&null!=u&&(r[a]=Ho(u,null))}}if(this._shouldMakeIdFromName())for(a=e;a<t;a++)yx(this,a);px(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){xx(e)?k(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=fx(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},e.prototype.getId=function(e){return hx(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,i=this._store;return $(e)?i.getValues(_x(e,(function(e){return n._getStoreDimIndex(e)})),t):i.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if(!n)throw new Error("Do not supported yet");var i=n&&n[t];return null==i||isNaN(i)?-1:i},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){Y(e)&&(n=t,t=e,e=[]);var i=n||this,r=_x(gx(e),this._getStoreDimIndex,this);this._store.each(r,i?W(t,i):t)},e.prototype.filterSelf=function(e,t,n){Y(e)&&(n=t,t=e,e=[]);var i=n||this,r=_x(gx(e),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?W(t,i):t),this},e.prototype.selectRange=function(e){var t=this,n={};return z(H(e),(function(i){var r=t._getStoreDimIndex(i);n[r]=e[i]})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){Y(e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,(function(){i.push(t&&t.apply(this,arguments))}),n),i},e.prototype.map=function(e,t,n,i){var r=n||i||this,o=_x(gx(e),this._getStoreDimIndex,this),a=vx(this);return a._store=this._store.map(o,r?W(t,r):t),a},e.prototype.modify=function(e,t,n,i){var r=this,o=n||i||this;z(gx(e),(function(e){r.getDimensionInfo(e).isCalculationCoord||console.error("Danger: only stack dimension can be modified")}));var a=_x(gx(e),this._getStoreDimIndex,this);this._store.modify(a,o?W(t,o):t)},e.prototype.downSample=function(e,t,n,i){var r=vx(this);return r._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),r},e.prototype.minmaxDownSample=function(e,t){var n=vx(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=vx(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new zd(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new ex(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return hx(e,t)}),(function(e){return hx(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},xx(e)?k(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return null==i?this.getVisual(t):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&($(r=this.getVisual(t))?r=r.slice():xx(r)&&(r=k({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,xx(t)?k(i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){xx(e)?k(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?k(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;gl(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){z(this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:_x(this.dimensions,this._getDimInfo,this),this.hostModel)),mx(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];Y(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(se(arguments)))})},e.internalField=(px=function(e){var t=e._invertedIndicesMap;z(t,(function(n,i){var r=e._dimInfos[i],o=r.ordinalMeta,a=e._store;if(o){n=t[i]=new bx(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}}))},fx=function(e,t,n){return Ho(e._getCategory(t,n),null)},hx=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=fx(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},gx=function(e){return $(e)||(e=null!=e?[e]:[]),e},vx=function(t){var n=new e(t._schema?t._schema:_x(t.dimensions,t._getDimInfo,t),t.hostModel);return mx(n,t),n},mx=function(e,t){z(Sx.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,z(Mx,(function(n){e[n]=I(t[n])})),e._calculationInfo=k({},t._calculationInfo)},void(yx=function(e,t){var n=e._nameList,i=e._idList,r=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=i[t];if(null==a&&null!=r&&(n[t]=a=fx(e,r,t)),null==s&&null!=o&&(i[t]=s=fx(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[t]=s}})),e}();function Cx(e,t){hf(e)||(e=gf(e));var n=(t=t||{}).coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],r=ve(),o=[],a=function(e,t,n,i){var r=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return z(t,(function(e){var t;Z(e)&&(t=e.dimsDef)&&(r=Math.max(r,t.length))})),r}(e,n,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&dx(a),l=i===e.dimensionsDefine,u=l?cx(e):ux(i),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var d=ve(c),p=new rg(a),h=0;h<p.length;h++)p[h]=-1;function f(e){var t=p[e];if(t<0){var n=i[e],r=Z(n)?n:{name:n},a=new rx,s=r.name;null!=s&&null!=u.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 p[e]=l,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(h=0;h<a;h++)f(h);d.each((function(e,t){var n=Oo(e).slice();if(1===n.length&&!X(n[0])&&n[0]<0)d.set(t,!1);else{var i=d.set(t,[]);z(n,(function(e,n){var r=X(e)?u.get(e):e;null!=r&&r<a&&(i[n]=r,m(f(r),t,n))}))}}));var g=0;function m(e,t,n){null!=Kp.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,r.set(t,!0))}z(n,(function(e){var t,n,i,r;if(X(e))t=e,r={};else{t=(r=e).name;var o=r.ordinalMeta;r.ordinalMeta=null,(r=k({},r)).ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=d.get(t);if(!1!==s){if(!(s=Oo(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}z(s,(function(e,o){var a=f(e);if(l&&null!=r.type&&(a.type=r.type),m(L(a,r),t,o),null==a.name&&n){var s=n[o];!Z(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&L(a.otherDims,i)}))}}));var v=t.generateCoord,y=t.generateCoordCount,x=null!=y;y=v?y||1:0;var w=v||"value";function _(e){null==e.name&&(e.name=e.coordDim)}if(s)z(o,(function(e){_(e)})),o.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var b=0;b<a;b++){var S=f(b);null==S.coordDim&&(S.coordDim=Ix(w,r,x),S.coordDimIndex=0,(!v||y<=0)&&(S.isExtraCoord=!0),y--),_(S),null!=S.type||hh(e,b)!==ah&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(e){for(var t=ve(),n=0;n<e.length;n++){var i=e[n],r=i.name,o=t.get(r)||0;o>0&&(i.name=r+(o-1)),o++,t.set(r,o)}}(o),new sx({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Ix(e,t,n){if(n||t.hasKey(e)){for(var i=0;t.hasKey(e+i);)i++;e+=i}return t.set(e,!0),e}var Ax=function(e){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=e};var Dx={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",Jo).models[0],o=e.getReferringComponents("yAxis",Jo).models[0];if(!r)throw new Error('xAxis "'+re(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+re(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found');t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),kx(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),kx(o)&&(i.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",Jo).models[0];if(!r)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],n.set("single",r),kx(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",Jo).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),kx(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),kx(a)&&(i.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,o=r.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();z(o.parallelAxisIndex,(function(e,o){var s=r.getComponent("parallelAxis",e),l=a[o];n.set(l,s),kx(s)&&(i.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function kx(e){return"category"===e.get("type")}function Lx(e,t,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(e){return!lx(e.schema)}(t)?(r=t.schema,i=r.dimensions,o=t.store):i=t;var l,u,c,d,p=!(!e||!e.get("stack"));if(z(i,(function(e,t){X(e)&&(i[t]=e={name:e}),p&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,f=u.type,g=0;z(i,(function(e){e.coordDim===h&&g++}));var m={name:c,coordDim:h,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(c,f)),r.appendCalculationDimension(m),r.appendCalculationDimension(v)):(i.push(m),i.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:c}}function Ex(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Px(e,t){return Ex(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Ox(e,t,n){n=n||{};var i,r=t.getSourceManager(),o=!1;e?(o=!0,i=gf(e)):o=(i=r.getSource()).sourceFormat===Jp;var a=function(e){var t=e.get("coordinateSystem"),n=new Ax(t),i=Dx[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,i=e.get("coordinateSystem"),r=Rh.get(i);return t&&t.coordSysDims&&(n=B(t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var r=i.get("type");n.type=ix(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(t,a),l=n.useEncodeDefaulter,u=Y(l)?l:l?j(ch,s,t):null,c=Cx(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),d=function(e,t,n){var i,r;return n&&z(e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(r=!0)})),r||null==i||(e[i].otherDims.itemName=0),i}(c.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(c),h=Lx(t,{schema:c,store:p}),f=new Tx(c,t);f.setCalculationInfo(h);var g=null!=d&&function(e){if(e.sourceFormat===Jp)return!$(zo(function(e){for(var t=0;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[])))}(i)?function(e,t,n,i){return i===d?n:this.defaultDimValueGetter(e,t,n,i)}:null;return f.hasItemOption=!1,f.initData(o?i:p,null,g),f}var Rx=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();pa(Rx);var Nx=0,zx=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Nx}return e.createByAxisModel=function(t){var n=t.option,i=n.data,r=i&&B(i,Bx);return new e({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!X(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return null==(t=i.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ve(this.categories))},e}();function Bx(e){return Z(e)&&null!=e.value?e.value:e+""}function Vx(e){return"interval"===e.type||"log"===e.type}function Fx(e,t,n,i){var r={},o=e[1]-e[0],a=r.interval=fo(o/t,!0);null!=n&&a<n&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=Hx(a);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Wx(e,0,t),Wx(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(r.niceTickExtent=[Qr(Math.ceil(e[0]/a)*a,s),Qr(Math.floor(e[1]/a)*a,s)],e),r}function Gx(e){var t=Math.pow(10,ho(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Qr(n*t)}function Hx(e){return to(e)+2}function Wx(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function jx(e,t){return e>=t[0]&&e<=t[1]}function $x(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Yx(e,t){return e*(t[1]-t[0])+t[0]}var Xx=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new zx({})),$(i)&&(i=new zx({categories:B(i,(function(e){return Z(e)?e.value:e}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return i(t,e),t.prototype.parse=function(e){return null==e?NaN:X(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return jx(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return $x(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(Yx(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);r<a;++r){var s=t[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},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Rx);Rx.registerClass(Xx);var qx=Qr,Ux=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return i(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return jx(e,this._extent)},t.prototype.normalize=function(e){return $x(e,this._extent)},t.prototype.scale=function(e){return Yx(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Hx(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;n[0]<i[0]&&(e?o.push({value:qx(i[0]-t,r)}):o.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=qx(a+t,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&&(e?o.push({value:qx(s+t,r)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<t.length;r++){for(var o=t[r],a=t[r-1],s=0,l=[],u=(o.value-a.value)/e;s<e-1;){var c=qx(a.value+(s+1)*u);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=to(e.value)||0:"auto"===n&&(n=this._intervalPrecision),Tp(qx(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=Fx(i,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=qx(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=qx(Math.ceil(t[1]/r)*r))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(Rx);Rx.registerClass(Ux);var Zx="undefined"!=typeof Float32Array,Kx=Zx?Float32Array:Array;function Jx(e){return $(e)?Zx?new Float32Array(e):e:new Kx(e)}var Qx="__ec_stack_";function ew(e){return e.get("stack")||Qx+e.seriesIndex}function tw(e){return e.dim+e.index}function nw(e,t){var n=[];return t.eachSeriesByType(e,(function(e){sw(e)&&n.push(e)})),n}function iw(e){var t=function(e){var t={};z(e,(function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=e.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 u=a.get(o,s);t[r]?t[r].push(u):t[r]=[u]}}));var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(r){r.sort((function(e,t){return e-t}));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}(e),n=[];return z(e,(function(e){var i,r=e.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=t[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),c=Math.abs(u[1]-u[0]);i=s?l/c*s:l}else{var d=e.getData();i=Math.abs(o[1]-o[0])/d.count()}var p=Jr(e.get("barWidth"),i),h=Jr(e.get("barMaxWidth"),i),f=Jr(e.get("barMinWidth")||(lw(e)?.5:1),i),g=e.get("barGap"),m=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:h,barMinWidth:f,barGap:g,barCategoryGap:m,axisKey:tw(r),stackId:ew(e)})})),rw(n)}function rw(e){var t={};z(e,(function(e,n){var i=e.axisKey,r=e.bandWidth,o=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[i]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var d=e.barGap;null!=d&&(o.gap=d);var p=e.barCategoryGap;
vendor: 5,043 bytes, line 2
2null!=p&&(o.categoryGap=p)}));var n={};return z(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=e.categoryGap;if(null==o){var a=H(i).length;o=Math.max(35-4*a,15)+"%"}var s=Jr(o,r),l=Jr(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),z(i,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width)i=e.width,t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,u-=i+l*i,c--;else{var i=d;t&&t<i&&(i=Math.min(t,u)),n&&n>i&&(i=n),i!==d&&(e.width=i,u-=i+l*i,c--)}})),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var p,h=0;z(i,(function(e,t){e.width||(e.width=d),p=e,h+=e.width*(1+l)})),p&&(h-=p.width*l);var f=-h/2;z(i,(function(e,i){n[t][i]=n[t][i]||{bandWidth:r,offset:f,width:e.width},f+=e.width*(1+l)}))})),n}function ow(e,t){var n=nw(e,t),i=iw(n);z(n,(function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),r=ew(e),o=i[tw(n)][r],a=o.offset,s=o.width;t.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function aw(e){return{seriesType:e,plan:Wg(),reset:function(e){if(sw(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(r.dim)),a=t.getDimensionIndex(t.mapDimension(i.dim)),s=e.get("showBackground",!0),l=t.mapDimension(r.dim),u=t.getCalculationInfo("stackResultDimension"),c=Ex(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=r.isHorizontal(),p=function(e,t){var n=t.model.get("startValue");return n||(n=0),t.toGlobalCoord(t.dataToCoord("log"===t.type?n>0?n:1:n))}(0,r),h=lw(e),f=e.get("barMinHeight")||0,g=u&&t.getDimensionIndex(u),m=t.getLayout("size"),v=t.getLayout("offset");return{progress:function(e,t){for(var i,r=e.count,l=h&&Jx(3*r),u=h&&s&&Jx(3*r),y=h&&Jx(r),x=n.master.getRect(),w=d?x.width:x.height,_=t.getStore(),b=0;null!=(i=e.next());){var S=_.get(c?g:o,i),M=_.get(a,i),T=p,C=void 0;c&&(C=+S-_.get(o,i));var I=void 0,A=void 0,D=void 0,k=void 0;if(d){var L=n.dataToPoint([S,M]);c&&(T=n.dataToPoint([C,M])[0]),I=T,A=L[1]+v,D=L[0]-T,k=m,Math.abs(D)<f&&(D=(D<0?-1:1)*f)}else L=n.dataToPoint([M,S]),c&&(T=n.dataToPoint([M,C])[1]),I=L[0]+v,A=T,D=m,k=L[1]-T,Math.abs(k)<f&&(k=(k<=0?-1:1)*f);h?(l[b]=I,l[b+1]=A,l[b+2]=d?D:k,u&&(u[b]=d?x.x:I,u[b+1]=d?A:x.y,u[b+2]=w),y[i]=i):t.setItemLayout(i,{x:I,y:A,width:D,height:k}),b+=3}h&&t.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:d})}}}}}}function sw(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function lw(e){return e.pipelineContext&&e.pipelineContext.large}var uw=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return i(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return lp(e.value,np[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(ap(this._minLevelUnit))]||np.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var i=this.getSetting("useUTC");return function(e,t,n,i,r){var o=null;if(X(n))o=n;else if(Y(n))o=n(e.value,t,{level:e.level});else{var a=k({},ep);if(e.level>0)for(var s=0;s<ip.length;++s)a[ip[s]]="{primary|"+a[ip[s]]+"}";var l=n?!1===n.inherit?n:L(n,a):a,u=up(e.value,r);if(l[u])o=l[u];else if(l.inherit){for(s=rp.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if($(o)){var c=null==e.level?0:e.level>=0?e.level:o.length+e.level;o=o[c=Math.min(c,o.length-1)]}}return lp(new Date(e.value),o,r,i)}(e,t,n,this.getSetting("locale"),i)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var i=this.getSetting("useUTC"),r=function(e,t,n,i){var r=1e4,o=rp,a=0;function s(e,t,n,r,o,a,s){for(var l=new Date(t),u=t,c=l[r]();u<n&&u<=i[1];)s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(e,r,o){var a=[],l=!r.length;if(!function(e,t,n,i){var r=co(t),o=co(n),a=function(e){return cp(r,e,i)===cp(o,e,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},d=function(){return c()&&a("minute")},p=function(){return d()&&a("second")},h=function(){return p()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return p();case"millisecond":return h()}}(ap(e),i[0],i[1],n)){l&&(r=[{value:mw(new Date(i[0]),e,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,d=r[u+1].value;if(c!==d){var p=void 0,h=void 0,f=void 0,g=!1;switch(e){case"year":p=Math.max(1,Math.round(t/Jd/365)),h=dp(n),f=yp(n);break;case"half-year":case"quarter":case"month":p=pw(t),h=pp(n),f=xp(n);break;case"week":case"half-week":case"day":p=dw(t),h=hp(n),f=wp(n),g=!0;break;case"half-day":case"quarter-day":case"hour":p=hw(t),h=fp(n),f=_p(n);break;case"minute":p=fw(t,!0),h=gp(n),f=bp(n);break;case"second":p=fw(t,!1),h=mp(n),f=Sp(n);break;case"millisecond":p=gw(t),h=vp(n),f=Mp(n)}s(p,c,d,h,f,g,a),"year"===e&&o.length>1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;
vendor: 15,726 bytes, line 2
2u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],d=0,p=0,h=0;h<o.length&&a++<r;++h){var f=ap(o[h]);if(sp(o[h])&&(l(o[h],u[u.length-1]||[],c),f!==(o[h+1]?ap(o[h+1]):null))){if(c.length){p=d,c.sort((function(e,t){return e.value-t.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]&&d++)}var y=(i[1]-i[0])/t;if(d>1.5*y&&p>y/1.5)break;if(u.push(g),d>y||e===o[h])break}c=[]}}a>=r&&To("Exceed safe limit.");var x=F(B(u,(function(e){return F(e,(function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd}))})),(function(e){return e.length>0})),w=[],_=x.length-1;for(h=0;h<x.length;++h)for(var b=x[h],S=0;S<b.length;++S)w.push({value:b[S].value,level:_-h});w.sort((function(e,t){return e.value-t.value}));var M=[];for(h=0;h<w.length;++h)0!==h&&w[h].value===w[h-1].value||M.push(w[h]);return M}(this._minLevelUnit,this._approxInterval,i,t);return(n=n.concat(r)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=Jd,t[1]+=Jd),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-Jd}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=cw.length,a=Math.min(function(e,t,n,i){for(;n<i;){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n}(cw,this._approxInterval,0,o),o-1);this._interval=cw[a][1],this._minLevelUnit=cw[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return U(e)?e:+co(e)},t.prototype.contain=function(e){return jx(this.parse(e),this._extent)},t.prototype.normalize=function(e){return $x(this.parse(e),this._extent)},t.prototype.scale=function(e){return Yx(e,this._extent)},t.type="time",t}(Ux),cw=[["second",Ud],["minute",Zd],["hour",Kd],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",Qd/2],["year",Qd]];function dw(e,t){return(e/=Jd)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function pw(e){return(e/=2592e6)>6?6:e>3?3:e>2?2:1}function hw(e){return(e/=Kd)>12?12:e>6?6:e>3.5?4:e>2?2:1}function fw(e,t){return(e/=t?Zd:Ud)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function gw(e){return fo(e,!0)}function mw(e,t,n){var i=new Date(e);switch(ap(t)){case"year":case"month":i[xp(n)](0);case"day":i[wp(n)](1);case"hour":i[_p(n)](0);case"minute":i[bp(n)](0);case"second":i[Sp(n)](0),i[Mp(n)](0)}return i.getTime()}Rx.registerClass(uw);var vw=Rx.prototype,yw=Ux.prototype,xw=Qr,ww=Math.floor,_w=Math.ceil,bw=Math.pow,Sw=Math.log,Mw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Ux,t._interval=0,t}return i(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,i=t.getExtent();return B(yw.getTicks.call(this,e),(function(e){var t=e.value,r=Qr(bw(this.base,t));return r=t===n[0]&&this._fixMin?Cw(r,i[0]):r,{value:r=t===n[1]&&this._fixMax?Cw(r,i[1]):r}}),this)},t.prototype.setExtent=function(e,t){var n=Sw(this.base);e=Sw(Math.max(0,e))/n,t=Sw(Math.max(0,t))/n,yw.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=vw.getExtent.call(this);t[0]=bw(e,t[0]),t[1]=bw(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=Cw(t[0],n[0])),this._fixMax&&(t[1]=Cw(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=Sw(e[0])/Sw(t),e[1]=Sw(e[1])/Sw(t),vw.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var i=po(n);for(e/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[Qr(_w(t[0]/i)*i),Qr(ww(t[1]/i)*i)];this._interval=i,this._niceExtent=r}},t.prototype.calcNiceExtent=function(e){yw.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return jx(e=Sw(e)/Sw(this.base),this._extent)},t.prototype.normalize=function(e){return $x(e=Sw(e)/Sw(this.base),this._extent)},t.prototype.scale=function(e){return e=Yx(e,this._extent),bw(this.base,e)},t.type="log",t}(Rx),Tw=Mw.prototype;function Cw(e,t){return xw(e,to(t))}Tw.getMinorTicks=yw.getMinorTicks,Tw.getLabel=yw.getLabel,Rx.registerClass(Mw);var Iw=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var r=t.get("min",!0);null==r&&(r=t.get("startValue",!0));var o=this._modelMinRaw=r;Y(o)?this._modelMinNum=Lw(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Lw(e,o));var a=this._modelMaxRaw=t.get("max",!0);if(Y(a)?this._modelMaxNum=Lw(e,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=Lw(e,a)),i)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=$(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?(console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Ar(l[0],1),Ar(l[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=e?i?0:NaN:t-r[0]*o),null==s&&(s=e?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=ie(a)||ie(s)||e&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(a=d,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){ue(!this.frozen),this[Dw[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=Aw[e];ue(!this.frozen&&null==this[n]),this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),Aw={min:"_determinedMin",max:"_determinedMax"},Dw={min:"_dataMin",max:"_dataMax"};function kw(e,t,n){var i=e.rawExtentInfo;return i||(i=new Iw(e,t,n),e.rawExtentInfo=i,i)}function Lw(e,t){return null==t?null:ie(t)?NaN:e.parse(t)}function Ew(e,t){var n=e.type,i=kw(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&"time"===n){var s=nw("bar",a),l=!1;if(z(s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var u=iw(s),c=function(e,t,n,i){var r=n.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=function(e,t,n){if(e&&t){var i=e[tw(t)];return null!=i&&null!=n?i[ew(n)]:i}}(i,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;z(a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;z(a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,d=c/(1-(s+l)/o)-c;return{min:e-=d*(s/u),max:t+=d*(l/u)}}(r,o,t,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function Pw(e,t){var n=t,i=Ew(e,n),r=i.extent,o=n.get("splitNumber");e instanceof Mw&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function Ow(e,t){if(t=t||e.get("type"))switch(t){case"category":return new Xx({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new uw({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Rx.getClass(t)||Ux)}}function Rw(e){var t,n,i=e.getLabelModel().get("formatter"),r="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=i,function(t,i){return e.scale.getFormattedLabel(t,i,n)}):X(i)?function(t){return function(n){var i=e.scale.getLabel(n);return t.replace("{value}",null!=i?i:"")}}(i):Y(i)?(t=i,function(n,i){return null!=r&&(i=n.value-r),t(Nw(e,n),i,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function Nw(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function zw(e,t){var n=t*Math.PI/180,i=e.width,r=e.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new Bt(e.x,e.y,o,a)}function Bw(e){var t=e.get("interval");return null==t?"auto":t}function Vw(e){return"category"===e.type&&0===Bw(e.getLabelModel())}function Fw(e,t){var n={};return z(e.mapDimensionsAll(t),(function(t){n[Px(e,t)]=!0})),H(n)}var Gw=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}();var Hw={isDimensionStacked:Ex,enableDataStack:Lx,getStackedDimension:Px};var Ww=Object.freeze({__proto__:null,createList:function(e){return Ox(null,e)},getLayoutRect:Fp,dataStack:Hw,createScale:function(e,t){var n=t;t instanceof zd||(n=new zd(t));var i=Ow(n);return i.setExtent(e[0],e[1]),Pw(i,n),i},mixinAxisModelCommonMethods:function(e){R(e,Gw)},getECData:fl,createTextStyle:function(e,t){return gd(e,null,null,"normal"!==(t=t||{}).state)},createDimensions:function(e,t){return Cx(e,t).dimensions},createSymbol:rv,enableHoverEmphasis:nu});function jw(e,t){return Math.abs(e-t)<1e-8}function $w(e,t,n){var i=0,r=e[0];if(!r)return!1;for(var o=1;o<e.length;o++){var a=e[o];i+=As(r[0],r[1],a[0],a[1],t,n),r=a}var s=e[0];return jw(r[0],s[0])&&jw(r[1],s[1])||(i+=As(r[0],r[1],s[0],s[1],t,n)),0!==i}var Yw=[];function Xw(e,t){for(var n=0;n<e.length;n++)We(e[n],e[n],t)}function qw(e,t,n,i){for(var r=0;r<e.length;r++){var o=e[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(je(t,t,o),$e(n,n,o))}}var Uw=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),Zw=function(e,t){this.type="polygon",this.exterior=e,this.interiors=t},Kw=function(e){this.type="linestring",this.points=e},Jw=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return i(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,i=0;i<t.length;i++){var r=t[i],o=r.exterior,a=o&&o.length;a>n&&(e=r,n=a)}if(e)return function(e){for(var t=0,n=0,i=0,r=e.length,o=e[r-1][0],a=e[r-1][1],s=0;s<r;s++){var l=e[s][0],u=e[s][1],c=o*u-l*a;t+=c,n+=(o+l)*c,i+=(a+u)*c,o=l,a=u}return t?[n/t/3,i/t/3,t]:[e[0][0]||0,e[0][1]||0]}(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0];return z(this.geometries,(function(t){"polygon"===t.type?qw(t.exterior,n,i,e):z(t.points,(function(t){qw(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new Bt(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e: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($w(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if($w(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new Bt(e,t,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(Xw(c.exterior,s),z(c.interiors,(function(e){Xw(e,s)}))):z(c.points,(function(e){Xw(e,s)}))}(r=this._rect).copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(Uw),Qw=function(e){function t(t,n){var i=e.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return i(t,e),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],i=wt(Yw),r=e;r&&!r.isGeoSVGGraphicRoot;)bt(i,r.getLocalTransform(),i),r=r.parent;return Ct(i,i),We(n,n,i),n},t}(Uw);function e_(e,t,n){for(var i=0;i<e.length;i++)e[i]=t_(e[i],t[i],n)}function t_(e,t,n){for(var i=[],r=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.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 n_(e,t){return B(F((e=function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;return null==n&&(n=1024),z(t.features,(function(e){var t=e.geometry,i=t.encodeOffsets,r=t.coordinates;if(i)switch(t.type){case"LineString":t.coordinates=t_(r,i,n);break;case"Polygon":case"MultiLineString":e_(r,i,n);break;case"MultiPolygon":z(r,(function(e,t){return e_(e,i[t],n)}))}})),t.UTF8Encoding=!1,t}(e)).features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,i=e.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new Zw(o[0],o.slice(1)));break;case"MultiPolygon":z(i.coordinates,(function(e){e[0]&&r.push(new Zw(e[0],e.slice(1)))}));break;case"LineString":r.push(new Kw([i.coordinates]));break;case"MultiLineString":r.push(new Kw(i.coordinates))}var a=new Jw(n[t||"name"],r,n.cp);return a.properties=n,a}))}var i_=Object.freeze({__proto__:null,linearMap:Kr,round:Qr,asc:eo,getPrecision:to,getPrecisionSafe:no,getPixelPrecision:io,getPercentWithPrecision:function(e,t,n){return e[t]&&ro(e,n)[t]||0},MAX_SAFE_INTEGER:ao,remRadian:so,isRadianAroundZero:lo,parseDate:co,quantity:po,quantityExponent:ho,nice:fo,quantile:go,reformIntervals:mo,isNumeric:yo,numericToNumber:vo}),r_=Object.freeze({__proto__:null,parse:co,format:lp}),o_=Object.freeze({__proto__:null,extendShape:zc,extendPath:Vc,makePath:Hc,makeImage:Wc,mergePath:$c,resizePath:Yc,createIcon:nd,updateProps:Ic,initProps:Ac,getTransform:Uc,clipPointsByRect:ed,clipRectByRect:td,registerShape:Fc,getShapeClass:Gc,Group:Fr,Image:$s,Text:tl,Circle:Pu,Ellipse:Ru,Sector:Zu,Ring:Ju,Polygon:tc,Polyline:ic,Rect:Js,Line:ac,BezierCurve:cc,Arc:pc,IncrementalDisplayable:Sc,CompoundPath:hc,LinearGradient:gc,RadialGradient:mc,BoundingRect:Bt}),a_=Object.freeze({__proto__:null,addCommas:Tp,toCamelCase:Cp,normalizeCssArray:Ip,encodeHTML:ot,formatTpl:Lp,getTooltipMarker:Ep,formatTime:function(e,t,n){Ao("echarts.format.formatTime","echarts.time.format"),"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var i=co(t),r=n?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),c=i[r+"Seconds"](),d=i[r+"Milliseconds"]();return e.replace("MM",op(a,2)).replace("M",a).replace("yyyy",o).replace("yy",op(o%100+"",2)).replace("dd",op(s,2)).replace("d",s).replace("hh",op(l,2)).replace("h",l).replace("mm",op(u,2)).replace("m",u).replace("ss",op(c,2)).replace("s",c).replace("SSS",op(d,3))},capitalFirst:function(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e},truncateText:function(e,t,n,i,r){var o={};return ba(o,e,t,n,i,r),o.text},getTextRect:function(e,t,n,i,r,o,a,s){return new tl({style:{text:e,font:t,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}
2).getBoundingRect()}}),s_=Object.freeze({__proto__:null,map:B,each:z,indexOf:P,inherits:O,reduce:V,filter:F,bind:W,curry:j,isArray:$,isString:X,isObject:Z,isFunction:Y,extend:k,defaults:L,clone:I,merge:A}),l_=qo();function u_(e,t){var n=B(t,(function(t){return e.scale.parse(t)}));return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function c_(e){var t=e.getLabelModel().get("customValues");if(t){var n=Rw(e),i=e.scale.getExtent();return{labels:B(F(u_(e,t),(function(e){return e>=i[0]&&e<=i[1]})),(function(t){var i={value:t};return{formattedLabel:n(i),rawLabel:e.scale.getLabel(i),tickValue:t}}))}}return"category"===e.type?function(e){var t=e.getLabelModel(),n=p_(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=Rw(e);return{labels:B(t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}(e)}function d_(e,t){var n=e.getTickModel().get("customValues");if(n){var i=e.scale.getExtent();return{ticks:F(u_(e,n),(function(e){return e>=i[0]&&e<=i[1]}))}}return"category"===e.type?function(e,t){var n,i,r=h_(e,"ticks"),o=Bw(t),a=f_(r,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),Y(o))n=y_(e,o,!0);else if("auto"===o){var s=p_(e,e.getLabelModel());i=s.labelCategoryInterval,n=B(s.labels,(function(e){return e.tickValue}))}else n=v_(e,i=o,!0);return g_(r,o,{ticks:n,tickCategoryInterval:i})}(e,t):{ticks:B(e.scale.getTicks(),(function(e){return e.value}))}}function p_(e,t){var n,i=h_(e,"labels"),r=Bw(t);return f_(i,r)||g_(i,r,{labels:Y(r)?y_(e,r):v_(e,n="auto"===r?m_(e):r),labelCategoryInterval:n})}function h_(e,t){return l_(e)[t]||(l_(e)[t]=[])}function f_(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function g_(e,t,n){return e.push({key:t,value:n}),n}function m_(e){var t=l_(e).autoInterval;return null!=t?t:l_(e).autoInterval=e.calculateCategoryInterval()}function v_(e,t,n){var i=Rw(e),r=e.scale,o=r.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Vw(e),p=a.get("showMinLabel")||d,h=a.get("showMaxLabel")||d;p&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:e})}return h&&f-l!==o[1]&&g(o[1]),s}function y_(e,t,n){var i=e.scale,r=Rw(e),o=[];return z(i.getTicks(),(function(e){var a=i.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:r(e),rawLabel:a,tickValue:s})})),o}var x_=[0,1],w_=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return io(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&__(n=n.slice(),i.count()),Kr(e,x_,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&__(n=n.slice(),i.count());var r=Kr(e,n,x_,t);return this.scale.scale(r)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=B(d_(this,t).ticks,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);return function(e,t,n,i){var r=t.length;if(e.onBand&&!n&&r){var o,a,s=e.getExtent();if(1===r)t[0].coord=s[0],o=t[1]={coord:s[1],tickValue:t[0].tickValue};else{var l=t[r-1].tickValue-t[0].tickValue,u=(t[r-1].coord-t[0].coord)/l;z(t,(function(e){e.coord-=u/2}));var c=e.scale.getExtent();a=1+c[1]-t[r-1].tickValue,o={coord:t[r-1].coord+u*a,tickValue:c[1]+1},t.push(o)}var d=s[0]>s[1];p(t[0].coord,s[0])&&(i?t[0].coord=s[0]:t.shift()),i&&p(s[0],t[0].coord)&&t.unshift({coord:s[0]}),p(s[1],o.coord)&&(i?o.coord=s[1]:t.pop()),i&&p(o.coord,s[1])&&t.pu
vendor: 27,688 bytes, line 2
2sh({coord:s[1]})}function p(e,t){return e=Qr(e),t=Qr(t),d?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),B(this.scale.getMinorTicks(e),(function(e){return B(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},e.prototype.getViewLabels=function(){return c_(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),n=Rw(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,r=e.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],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(i)),d=Math.abs(u*Math.sin(i)),p=0,h=0;l<=o[1];l+=s){var f,g,m=Mr(n({value:l}),t.font,"center","top");f=1.3*m.width,g=1.3*m.height,p=Math.max(p,f,7),h=Math.max(h,g,7)}var v=p/c,y=h/d;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),w=l_(e.model),_=e.getExtent(),b=w.lastAutoInterval,S=w.lastTickCount;return null!=b&&null!=S&&Math.abs(b-x)<=1&&Math.abs(S-a)<=1&&b>x&&w.axisExtent0===_[0]&&w.axisExtent1===_[1]?x=b:(w.lastTickCount=a,w.lastAutoInterval=x,w.axisExtent0=_[0],w.axisExtent1=_[1]),x}(this)},e}();function __(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var b_=2*Math.PI,S_=ws.CMD,M_=["top","right","bottom","left"];function T_(e,t,n,i,r){var o=n.width,a=n.height;switch(e){case"top":i.set(n.x+o/2,n.y-t),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+t),r.set(0,1);break;case"left":i.set(n.x-t,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+t,n.y+a/2),r.set(1,0)}}function C_(e,t,n,i,r,o,a,s,l){a-=e,s-=t;var u=Math.sqrt(a*a+s*s),c=(a/=u)*n+e,d=(s/=u)*n+t;if(Math.abs(i-r)%b_<1e-4)return l[0]=c,l[1]=d,u-n;if(o){var p=i;i=Ts(r),r=Ts(p)}else i=Ts(i),r=Ts(r);i>r&&(r+=b_);var h=Math.atan2(s,a);if(h<0&&(h+=b_),h>=i&&h<=r||h+b_>=i&&h+b_<=r)return l[0]=c,l[1]=d,u-n;var f=n*Math.cos(i)+e,g=n*Math.sin(i)+t,m=n*Math.cos(r)+e,v=n*Math.sin(r)+t,y=(f-a)*(f-a)+(g-s)*(g-s),x=(m-a)*(m-a)+(v-s)*(v-s);return y<x?(l[0]=f,l[1]=g,Math.sqrt(y)):(l[0]=m,l[1]=v,Math.sqrt(x))}function I_(e,t,n,i,r,o,a,s){var l=r-e,u=o-t,c=n-e,d=i-t,p=Math.sqrt(c*c+d*d),h=(l*(c/=p)+u*(d/=p))/p;s&&(h=Math.min(Math.max(h,0),1)),h*=p;var f=a[0]=e+h*c,g=a[1]=t+h*d;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}function A_(e,t,n,i,r,o,a){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var s=e+n,l=t+i,u=a[0]=Math.min(Math.max(r,e),s),c=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var D_=[];function k_(e,t,n){var i=A_(t.x,t.y,t.width,t.height,e.x,e.y,D_);return n.set(D_[0],D_[1]),i}function L_(e,t,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=t.data,d=e.x,p=e.y,h=0;h<c.length;){var f=c[h++];1===h&&(s=o=c[h],l=a=c[h+1]);var g=u;switch(f){case S_.M:o=s=c[h++],a=l=c[h++];break;case S_.L:g=I_(o,a,c[h],c[h+1],d,p,D_,!0),o=c[h++],a=c[h++];break;case S_.C:g=Mn(o,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],d,p,D_),o=c[h++],a=c[h++];break;case S_.Q:g=kn(o,a,c[h++],c[h++],c[h],c[h+1],d,p,D_),o=c[h++],a=c[h++];break;case S_.A:var m=c[h++],v=c[h++],y=c[h++],x=c[h++],w=c[h++],_=c[h++];h+=1;var b=!!(1-c[h++]);i=Math.cos(w)*y+m,r=Math.sin(w)*x+v,h<=1&&(s=i,l=r),g=C_(m,v,x,w,w+_,b,(d-m)*x/y+m,p,D_),o=Math.cos(w+_)*y+m,a=Math.sin(w+_)*x+v;break;case S_.R:g=A_(s=o=c[h++],l=a=c[h++],c[h++],c[h++],d,p,D_);break;case S_.Z:g=I_(o,a,s,l,d,p,D_,!0),o=s,a=l}g<u&&(u=g,n.set(D_[0],D_[1]))}return u}var E_=new Dt,P_=new Dt,O_=new Dt,R_=new Dt,N_=new Dt;function z_(e,t){if(e){var n=e.getTextGuideLine(),i=e.getTextContent();if(i&&n){var r=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||M_,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=e.getComputedTransform(),d=c&&Ct([],c),p=t.get("length2")||0;u&&O_.copy(u);for(var h=0;h<a.length;h++){T_(a[h],0,s,E_,R_),Dt.scaleAndAdd(P_,E_,R_,p),P_.transform(d);var f=e.getBoundingRect(),g=u?u.distance(P_):e instanceof Fs?L_(P_,e.path,O_):k_(P_,f,O_);g<l&&(l=g,P_.transform(c),O_.transform(c),O_.toArray(o[0]),P_.toArray(o[1]),E_.toArray(o[2]))}F_(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var B_=[],V_=new Dt;function F_(e,t){if(t<=180&&t>0){t=t/180*Math.PI,E_.fromArray(e[0]),P_.fromArray(e[1]),O_.fromArray(e[2]),Dt.sub(R_,E_,P_),Dt.sub(N_,O_,P_);var n=R_.len(),i=N_.len();if(!(n<.001||i<.001)){R_.scale(1/n),N_.scale(1/i);var r=R_.dot(N_);if(Math.cos(t)<r){var o=I_(P_.x,P_.y,O_.x,O_.y,E_.x,E_.y,B_,!1);V_.fromArray(B_),V_.scaleAndAdd(N_,o/Math.tan(Math.PI-t));var a=O_.x!==P_.x?(V_.x-P_.x)/(O_.x-P_.x):(V_.y-P_.y)/(O_.y-P_.y);if(isNaN(a))return;a<0?Dt.copy(V_,P_):a>1&&Dt.copy(V_,O_),V_.toArray(e[1])}}}}function G_(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,E_.fromArray(e[0]),P_.fromArray(e[1]),O_.fromArray(e[2]),Dt.sub(R_,P_,E_),Dt.sub(N_,O_,P_);var i=R_.len(),r=N_.len();if(!(i<.001||r<.001)&&(R_.scale(1/i),N_.scale(1/r),R_.dot(t)<Math.cos(n))){var o=I_(P_.x,P_.y,O_.x,O_.y,E_.x,E_.y,B_,!1);V_.fromArray(B_);var a=Math.PI/2,s=a+Math.acos(N_.dot(t))-n;if(s>=a)Dt.copy(V_,O_);else{V_.scaleAndAdd(N_,o/Math.tan(Math.PI/2-s));var l=O_.x!==P_.x?(V_.x-P_.x)/(O_.x-P_.x):(V_.y-P_.y)/(O_.y-P_.y);if(isNaN(l))return;l<0?Dt.copy(V_,P_):l>1&&Dt.copy(V_,O_)}V_.toArray(e[1])}}}function H_(e,t,n,i){var r="normal"===n,o=r?e:e.ensureState(n);o.ignore=t;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?e.useStyle(s):o.style=s}function W_(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Ve(i[0],i[1]),o=Ve(i[1],i[2]);if(!r||!o)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=He([],i[1],i[0],a/r),l=He([],i[1],i[2],a/o),u=He([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)e.lineTo(i[c][0],i[c][1])}function j_(e,t,n){var i=e.getTextGuideLine(),r=e.getTextContent();if(r){for(var o=t.normal,a=o.get("show"),s=r.ignore,l=0;l<_l.length;l++){var u=_l[l],c=t[u],d="normal"===u;if(c){var p=c.get("show");if((d?s:oe(r.states[u]&&r.states[u].ignore,s))||!oe(p,a)){var h=d?i:i&&i.states[u];h&&(h.ignore=!0),i&&H_(i,!0,u,c);continue}i||(i=new ic,e.setTextGuideLine(i),d||!s&&a||H_(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),H_(i,!1,u,c)}}if(i){L(i.style,n),i.style.fill=null;var f=o.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=W_}}else i&&e.removeTextGuideLine()}function $_(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<wl.length;i++){var r=wl[i];n[r]=e.getModel([r,t])}return n}function Y_(e){for(var t=[],n=0;n<e.length;n++){var i=e[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,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new _c(a,o):null;t.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return t}function X_(e,t,n,i,r,o){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,u=!1,c=0,d=0;d<a;d++){var p=e[d],h=p.rect;(s=h[t]-l)<0&&(h[t]-=s,p.label[t]-=s,u=!0),c+=Math.max(-s,0),l=h[t]+h[n]}c>0&&o&&w(-c/a,0,a);var f,g,m=e[0],v=e[a-1];return y(),f<0&&_(-f,.8),g<0&&_(g,.8),y(),x(f,g,1),x(g,f,-1),y(),f<0&&b(-f),g<0&&b(g),u}function y(){f=m.rect[t]-i,g=r-v.rect[t]-v.rect[n]}function x(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){w(i*n,0,a);var r=i+e;r<0&&_(-r*n,1)}else _(-e*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o<r;o++){var a=e[o];a.rect[t]+=n,a.label[t]+=n}}function _(i,r){for(var o=[],s=0,l=1;l<a;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);o.push(c),s+=c}if(s){var d=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++)w(o[l]*d,0,l+1);else for(l=a-1;l>0;l--)w(-o[l-1]*d,l,a)}}function b(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),i=0;i<a-1;i++)if(t>0?w(n,0,i+1):w(-n,a-i-1,a),(e-=n)<=0)return}}function q_(e,t,n,i){return X_(e,"y","height",t,n,i)}function U_(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new Bt(0,0,0,0);function i(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var r=0;r<e.length;r++){var o=e[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=o.obb,p=!1,h=0;h<t.length;h++){var f=t[h];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new _c(f.localRect,f.transform)),d||(d=new _c(s,l)),d.intersect(f.obb)){p=!0;break}}}p?(i(u),c&&i(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function Z_(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function K_(e,t){var n=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:Z_(i&&i.shape.points)}}var J_=["align","verticalAlign","width","height","fontSize"],Q_=new yr,eb=qo(),tb=qo();function nb(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null!=t[r]&&(e[r]=t[r])}}var ib=["x","y","rotation"],rb=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,r){var o=i.style,a=i.__hostTarget.textConfig||{},s=i.getComputedTransform(),l=i.getBoundingRect().plain();Bt.applyTransform(l,l,s),s?Q_.setLocalTransform(s):(Q_.x=Q_.y=Q_.rotation=Q_.originX=Q_.originY=0,Q_.scaleX=Q_.scaleY=1),Q_.rotation=Ts(Q_.rotation);var u,c=i.__hostTarget;if(c){u=c.getBoundingRect().plain();var d=c.getComputedTransform();Bt.applyTransform(u,u,d)}var p=u&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:e,dataType:t,layoutOption:r,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:Q_.x,y:Q_.y,scaleX:Q_.scaleX,scaleY:Q_.scaleY,rotation:Q_.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}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(Y(i)||H(i).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var r=e.getTextContent(),o=fl(e);r&&!r.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,r,i)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function i(e,t){return function(){z_(e,t)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=(u=Y(o.layoutOption)?o.layoutOption(K_(o,s)):o.layoutOption)||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var d=!1;if(null!=u.x?(a.x=Jr(u.x,t),a.setStyle("x",0),d=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=Jr(u.y,n),a.setStyle("y",0),d=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var p=s.getTextGuideLine();p&&(p.setShape({points:u.labelLinePoints}),d=!1)}eb(a).needsUpdateLabelLine=d,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var h=0;h<J_.length;h++){var f=J_[h];a.setStyle(f,null!=u[f]?u[f]:l.style[f])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var g=o.seriesModel;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}},e.prototype.layout=function(e){var t,n=e.getWidth(),i=e.getHeight(),r=Y_(this._labelList),o=F(r,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),a=F(r,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));X_(o,"x","width",0,n,t),q_(a,0,i),U_(F(r,(function(e){return e.layoutOption.hideOverlap})))},e.prototype.processLabelsOverall=function(){var e=this;z(this._chartViewList,(function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,r=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!i,a=t.getTextContent();!o&&a&&(o=eb(a).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),r&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=fl(e),r=i.dataIndex;if(n&&null!=r){var o=t.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style");if(l){var u=o.getVisual("drawType");s.stroke=l[u]}var c=a.getModel("labelLine");j_(e,$_(a),s),z_(e,c)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Dc(e))){var r=(h=eb(n)).oldLayout,o=fl(e),a=o.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(r){n.attr(r);var u=e.prevStates;u&&(P(u,"select")>=0&&n.attr(h.oldLayoutSelect),P(u,"emphasis")>=0&&n.attr(h.oldLayoutEmphasis)),Ic(n,s,t,a)}else if(n.attr(s),!bd(n).valueAnimation){var c=oe(n.style.opacity,1);n.style.opacity=0,Ac(n,{style:{opacity:c}},t,a)}if(h.oldLayout=s,n.states.select){var d=h.oldLayoutSelect={};nb(d,s,ib),nb(d,n.states.select,ib)}if(n.states.emphasis){var p=h.oldLayoutEmphasis={};nb(p,s,ib),nb(p,n.states.emphasis,ib)}Md(n,a,l,t,t)}if(i&&!i.ignore&&!i.invisible){r=(h=tb(i)).oldLayout;var h,f={points:i.shape.points};r?(i.attr({shape:r}),Ic(i,{shape:f},t)):(i.setShape(f),i.style.strokePercent=0,Ac(i,{style:{strokePercent:1}},t)),h.oldLayout=f}},e}(),ob=qo();var ab=Math.sin,sb=Math.cos,lb=Math.PI,ub=2*Math.PI,cb=180/lb,db=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){this._add("C",e,t,n,i,r,o)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,r,o){this.ellipse(e,t,n,n,0,i,r,o)},e.prototype.ellipse=function(e,t,n,i,r,o,a,s){var l,u=a-o,c=!s,d=Math.abs(u),p=hi(d-ub)||(c?u>=ub:-u>=ub),h=u>0?u%ub:u%ub+ub;l=!!p||!hi(d)&&h>=lb==!!c;var f=e+n*sb(o),g=t+i*ab(o);this._start&&this._add("M",f,g);var m=Math.round(r*cb);if(p){var v=1/this._p,y=(c?1:-1)*(ub-v);this._add("A",n,i,m,1,+c,e+n*sb(o+y),t+i*ab(o+y)),v>.01&&this._add("A",n,i,m,0,+c,f,g)}else{var x=e+n*sb(a),w=t+i*ab(a);this._add("A",n,i,m,+l,+c,x,w)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,r,o,a,s,l){for(var u=[],c=this._p,d=1;d<arguments.length;d++){var p=arguments[d];if(isNaN(p))return void(this._invalid=!0);u.push(Math.round(p*c)/c)}this._d.push(e+u.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),pb="none",hb=Math.round;var fb=["lineCap","miterLimit","lineJoin"],gb=B(fb,(function(e){return"stroke-"+e.toLowerCase()}));function mb(e,t,n,i){var r=null==t.opacity?1:t.opacity;if(n instanceof $s)e("opacity",r);else{if(function(e){var t=e.fill;return null!=t&&t!==pb}(t)){var o=di(t.fill);e("fill",o.color);var a=null!=t.fillOpacity?t.fillOpacity*o.opacity*r:o.opacity*r;(i||a<1)&&e("fill-opacity",a)}else e("fill",pb);if(function(e){var t=e.stroke;return null!=t&&t!==pb}(t)){var s=di(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=null!=t.strokeOpacity?t.strokeOpacity*s.opacity*r:s.opacity*r,d=t.strokeFirst;if((i||1!==u)&&e("stroke-width",u),(i||d)&&e("paint-order",d?"stroke":"fill"),(i||c<1)&&e("stroke-opacity",c),t.lineDash){var p=dv(n),h=p[0],f=p[1];h&&(f=hb(f||0),e("stroke-dasharray",h.join(",")),(f||i)&&e("stroke-dashoffset",f))}else i&&e("stroke-dasharray",pb);for(var g=0;g<fb.length;g++){var m=fb[g];if(i||t[m]!==zs[m]){var v=t[m]||zs[m];v&&e(gb[g],v)}}}else i&&e("stroke",pb)}}var vb="http://www.w3.org/2000/svg",yb="http://www.w3.org/1999/xlink",xb="ecmeta_";function wb(e){return document.createElementNS(vb,e)}function _b(e,t,n,i,r){return{tag:e,attrs:n||{},children:i,text:r,key:t}}function bb(e,t){var n=(t=t||{}).newline?"\n":"";return function e(t){var i=t.children,r=t.tag,o=t.attrs,a=t.text;return function(e,t){var n=[];if(t)for(var i in t){var r=t[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}(r,o)+("style"!==r?ot(a):a||"")+(i?""+n+B(i,(function(t){return e(t)})).join(n)+n:"")+("</"+r+">")}(e)}function Sb(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Mb(e,t,n,i){return _b("svg","root",{width:e,height:t,xmlns:vb,"xmlns:xlink":yb,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var Tb=0;function Cb(){return Tb++}var Ib={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"},Ab="transform-origin";function Db(e,t,n){var i=k({},e.shape);k(i,t),e.buildPath(n,i);var r=new db;return r.reset(Si(e)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function kb(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[Ab]=n+"px "+i+"px")}var Lb={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Eb(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Pb(e){return X(e)?Ib[e]?"cubic-bezier("+Ib[e]+")":Pn(e)?e:"":""}function Ob(e,t,n,i){var r=e.animators,o=r.length,a=[];if(e instanceof hc){if(m=function(e,t,n){var i,r,o=e.shape.paths,a={};if(z(o,(function(e){var t=Sb(n.zrId);t.animation=!0,Ob(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=H(o),u=l.length;if(u){var c=o[r=l[u-1]];for(var d in c){var p=c[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var h in s){var f=s[h].animation;f.indexOf(r)>=0&&(i=f)}}})),i){t.d=!1;var s=Eb(a,n);return i.replace(r,s)}}(e,t,n))a.push(m);else if(!o)return}else if(!o)return;for(var s={},l=0;l<o;l++){var u=r[l],c=[u.getMaxTime()/1e3+"s"],d=Pb(u.getClip().easing),p=u.getDelay();d?c.push(d):c.push("linear"),p&&c.push(p/1e3+"s"),u.getLoop()&&c.push("infinite");var h=c.join(" ");s[h]=s[h]||[h,[]],s[h][1].push(u)}function f(r){var o,a=r[1],s=a.length,l={},u={},c={},d="animation-timing-function";function p(e,t,n){for(var i=e.getTracks(),r=e.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 u=0;u<s.length;u++){var c=s[u],p=Math.round(c.time/r*100)+"%",h=Pb(c.easing),f=c.rawValue;(X(f)||U(f))&&(t[p]=t[p]||{},t[p][l]=c.rawValue,h&&(t[p][d]=h))}}}}for(var h=0;h<s;h++)(S=(b=a[h]).targetName)?"shape"===S&&p(b,u):!i&&p(b,l);for(var f in l){var g={};wr(g,e),k(g,l[f]);var m=Mi(g),v=l[f][d];c[f]=m?{transform:m}:{},kb(c[f],g),v&&(c[f][d]=v)}var y=!0;for(var f in u){c[f]=c[f]||{};var x=!o;v=u[f][d],x&&(o=new ws);var w=o.len();o.reset(),c[f].d=Db(e,u[f],o);var _=o.len();if(!x&&w!==_){y=!1;break}v&&(c[f][d]=v)}if(!y)for(var f in c)delete c[f].d;if(!i)for(h=0;h<s;h++){var b,S;"style"===(S=(b=a[h]).targetName)&&p(b,c,(function(e){return Lb[e]}))}var M,T=H(c),C=!0;for(h=1;h<T.length;h++){var I=T[h-1],A=T[h];if(c[I][Ab]!==c[A][Ab]){C=!1;break}M=c[I][Ab]}if(C&&M){for(var f in c)c[f][Ab]&&delete c[f][Ab];t[Ab]=M}if(F(T,(function(e){return H(c[e]).length>0})).length)return Eb(c,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-"+Cb();n.cssNodes["."+v]={animation:a.join(",")},t.class=v}}function Rb(e,t,n,i){var r=JSON.stringify(e),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+Cb(),n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=e),t.class=t.class?t.class+" "+o:o}var Nb=Math.round;function zb(e){return e&&X(e.src)}function Bb(e){return e&&Y(e.toDataURL)}function Vb(e,t,n,i){mb((function(r,o){var a="fill"===r||"stroke"===r;a&&_i(o)?Zb(t,e,r,i):a&&yi(o)?Kb(n,e,r,i):e[r]=o,a&&i.ssr&&"none"===o&&(e["pointer-events"]="visible")}),t,n,!1),function(e,t,n){var i=e.style;if(function(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}(i)){var r=function(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(e),o=n.shadowCache,a=o[r];if(!a){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=i.shadowOffsetX||0,d=i.shadowOffsetY||0,p=i.shadowBlur,h=di(i.shadowColor),f=h.opacity,g=h.color,m=p/2/l+" "+p/2/u;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=_b("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[_b("feDropShadow","",{dx:c/l,dy:d/u,stdDeviation:m,"flood-color":g,"flood-opacity":f})]),o[r]=a}t.filter=bi(a)}}(n,e,i)}function Fb(e,t){var n=Xr(t);n&&(n.each((function(t,n){null!=t&&(e[(xb+n).toLowerCase()]=t+"")})),t.isSilent()&&(e[xb+"silent"]="true"))}function Gb(e){return hi(e[0]-1)&&hi(e[1])&&hi(e[2])&&hi(e[3]-1)}function Hb(e,t,n){if(t&&(!function(e){return hi(e[4])&&hi(e[5])}(t)||!Gb(t))){var i=n?10:1e4;e.transform=Gb(t)?"translate("+Nb(t[4]*i)/i+" "+Nb(t[5]*i)/i+")":function(e){return"matrix("+fi(e[0])+","+fi(e[1])+","+fi(e[2])+","+fi(e[3])+","+gi(e[4])+","+gi(e[5])+")"}(t)}}function Wb(e,t,n){for(var i=e.points,r=[],o=0;o<i.length;o++)r.push(Nb(i[o][0]*n)/n),r.push(Nb(i[o][1]*n)/n);t.points=r.join(" ")}function jb(e){return!e.smooth}var $b,Yb,Xb={circle:[($b=["cx","cy","r"],Yb=B($b,(function(e){return"string"==typeof e?[e,e]:e})),function(e,t,n){for(var i=0;i<Yb.length;i++){var r=Yb[i],o=e[r[0]];null!=o&&(t[r[1]]=Nb(o*n)/n)}})],polyline:[Wb,jb],polygon:[Wb,jb]};function qb(e,t){var n=e.style,i=e.shape,r=Xb[e.type],o={},a=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&Si(e)||4;if(!r||t.willUpdate||r[1]&&!r[1](i)||a&&function(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}(e)||l<1){var c=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;c&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var p=d.getVersion(),h=e,f=h.__svgPathBuilder;h.__svgPathVersion===p&&f&&l===h.__svgPathStrokePercent||(f||(f=h.__svgPathBuilder=new db),f.reset(u),d.rebuildPath(f,l),f.generateStr(),h.__svgPathVersion=p,h.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=e.type;var g=Math.pow(10,u);r[0](i,o,g)}return Hb(o,e.transform),Vb(o,n,e,t),Fb(o,e),t.animation&&Ob(e,o,t),t.emphasis&&function(e,t,n){if(!e.ignore)if(e.isSilent())Rb(u={"pointer-events":"none"},t,n,!0);else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},r=i.fill;if(!r){var o=e.style&&e.style.fill,a=e.states.select&&e.states.select.style&&e.states.select.style.fill,s=e.currentStates.indexOf("select")>=0&&a||o;s&&(r=li(s))}var l=i.lineWidth;l&&(l/=!i.strokeNoScale&&e.transform?e.transform[0]:1);var u={cursor:"pointer"};r&&(u.fill=r),i.stroke&&(u.stroke=i.stroke),l&&(u["stroke-width"]=l),Rb(u,t,n,!0)}}(e,o,t),_b(s,e.id+"",o)}function Ub(e,t){return e instanceof Fs?qb(e,t):e instanceof $s?function(e,t){var n=e.style,i=n.image;if(i&&!X(i)&&(zb(i)?i=i.src:Bb(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),Hb(a,e.transform),Vb(a,n,e,t),Fb(a,e),t.animation&&Ob(e,a,t),_b("image",e.id+"",a)}}(e,t):e instanceof Hs?function(e,t){var n=e.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||s,o=n.x||0,l=function(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}(n.y||0,Ir(r),n.textBaseline),u={"dominant-baseline":"central","text-anchor":mi[n.textAlign]||n.textAlign};if(sl(n)){var c="",d=n.fontStyle,p=ol(n.fontSize);if(!parseFloat(p))return;var h=n.fontFamily||a,f=n.fontWeight;c+="font-size:"+p+";font-family:"+h+";",d&&"normal"!==d&&(c+="font-style:"+d+";"),f&&"normal"!==f&&(c+="font-weight:"+f+";"),u.style=c}else u.style="font: "+r;return i.match(/\s/)&&(u["xml:space"]="preserve"),o&&(u.x=o),l&&(u.y=l),Hb(u,e.transform),Vb(u,n,e,t),Fb(u,e),t.animation&&Ob(e,u,t),_b("text",e.id+"",u,void 0,i)}}(e,t):void 0}function Zb(e,t,n,i){var r,o=e[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(xi(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!wi(o))return void C("Illegal gradient type.");r="radialGradient",a.cx=oe(o.x,.5),a.cy=oe(o.y,.5),a.r=oe(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var d=100*gi(s[u].offset)+"%",p=di(s[u].color),h=p.color,f=p.opacity,g={offset:d};g["stop-color"]=h,f<1&&(g["stop-opacity"]=f),l.push(_b("stop",u+"",g))}var m=bb(_b(r,"",a,l)),v=i.gradientCache,y=v[m];y||(y=i.zrId+"-g"+i.gradientIdx++,v[m]=y,a.id=y,i.defs[y]=_b(r,y,a,l)),t[n]=bi(y)}function Kb(e,t,n,i){var r,o=e.style[n],a=e.getBoundingRect(),s={},l=o.repeat,u="no-repeat"===l,c="repeat-x"===l,d="repeat-y"===l;if(vi(o)){var p=o.imageWidth,h=o.imageHeight,f=void 0,g=o.image;if(X(g)?f=g:zb(g)?f=g.src:Bb(g)&&(f=g.toDataURL()),"undefined"==typeof Image){var m="Image width/height must been given explictly in svg-ssr renderer.";ue(p,m),ue(h,m)}else if(null==p||null==h){var v=function(e,t){if(e){var n=e.elm,i=p||t.width,r=h||t.height;"pattern"===e.tag&&(c?(r=1,i/=a.width):d&&(i=1,r/=a.height)),e.attrs.width=i,e.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},y=ya(f,null,e,(function(e){u||v(b,e),v(r,e)}));y&&y.width&&y.height&&(p=p||y.width,h=h||y.height)}r=_b("image","img",{href:f,width:p,height:h}),s.width=p,s.height=h}else o.svgElement&&(r=I(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(r){var x,w;u?x=w=1:c?(w=1,x=s.width/a.width):d?(x=1,w=s.height/a.height):s.patternUnits="userSpaceOnUse",null==x||isNaN(x)||(s.width=x),null==w||isNaN(w)||(s.height=w);var _=Mi(o);_&&(s.patternTransform=_);var b=_b("pattern","",s,[r]),S=bb(b),M=i.patternCache,T=M[S];T||(T=i.zrId+"-p"+i.patternIdx++,M[S]=T,s.id=T,b=i.defs[T]=_b("pattern",T,s,[r])),t[n]=bi(T)}}function Jb(e,t,n){var i=n.clipPathCache,r=n.defs,o=i[e.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};i[e.id]=o,r[o]=_b("clipPath",o,a,[qb(e,n)])}t["clip-path"]=bi(o)}function Qb(e){return document.createTextNode(e)}
vendor: 4,156 bytes, line 2
2function eS(e,t,n){e.insertBefore(t,n)}function tS(e,t){e.removeChild(t)}function nS(e,t){e.appendChild(t)}function iS(e){return e.parentNode}function rS(e){return e.nextSibling}function oS(e,t){e.textContent=t}var aS=_b("","");function sS(e){return void 0===e}function lS(e){return void 0!==e}function uS(e,t,n){for(var i={},r=t;r<=n;++r){var o=e[r].key;void 0!==o&&(null!=i[o]&&console.error("Duplicate key "+o),i[o]=r)}return i}function cS(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function dS(e){var t,n=e.children,i=e.tag;if(lS(i)){var r=e.elm=wb(i);if(fS(aS,e),$(n))for(t=0;t<n.length;++t){var o=n[t];null!=o&&nS(r,dS(o))}else lS(e.text)&&!Z(e.text)&&nS(r,Qb(e.text))}else e.elm=Qb(e.text);return e.elm}function pS(e,t,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&eS(e,dS(o),t)}}function hS(e,t,n,i){for(;n<=i;++n){var r=t[n];null!=r&&(lS(r.tag)?tS(iS(r.elm),r.elm):tS(e,r.elm))}}function fS(e,t){var n,i=t.elm,r=e&&e.attrs||{},o=t.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:120!==n.charCodeAt(0)?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?i.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?i.setAttributeNS(yb,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function gS(e,t){var n=t.elm=e.elm,i=e.children,r=t.children;e!==t&&(fS(e,t),sS(t.text)?lS(i)&&lS(r)?i!==r&&function(e,t,n){for(var i,r,o,a=0,s=0,l=t.length-1,u=t[0],c=t[l],d=n.length-1,p=n[0],h=n[d];a<=l&&s<=d;)null==u?u=t[++a]:null==c?c=t[--l]:null==p?p=n[++s]:null==h?h=n[--d]:cS(u,p)?(gS(u,p),u=t[++a],p=n[++s]):cS(c,h)?(gS(c,h),c=t[--l],h=n[--d]):cS(u,h)?(gS(u,h),eS(e,u.elm,rS(c.elm)),u=t[++a],h=n[--d]):cS(c,p)?(gS(c,p),eS(e,c.elm,u.elm),c=t[--l],p=n[++s]):(sS(i)&&(i=uS(t,a,l)),sS(r=i[p.key])||(o=t[r]).tag!==p.tag?eS(e,dS(p),u.elm):(gS(o,p),t[r]=void 0,eS(e,o.elm,u.elm)),p=n[++s]);(a<=l||s<=d)&&(a>l?pS(e,null==n[d+1]?null:n[d+1].elm,n,s,d):hS(e,t,a,l))}(n,i,r):lS(r)?(lS(e.text)&&oS(n,""),pS(n,null,r,0,r.length-1)):lS(i)?hS(n,i,0,i.length-1):lS(e.text)&&oS(n,""):e.text!==t.text&&(lS(i)&&hS(n,i,0,i.length-1),oS(n,t.text)))}var mS=0,vS=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=yS("refreshHover"),this.configLayer=yS("configLayer"),this.storage=t,this._opts=n=k({},n),this.root=e,this._id="zr"+mS++,this._oldVNode=Mb(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=wb("svg");fS(null,this._oldVNode),i.appendChild(r),e.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",function(e,t){if(cS(e,t))gS(e,t);else{var n=e.elm,i=iS(n);dS(t),null!==i&&(eS(i,t.elm,rS(n)),hS(i,[e],0,0))}}(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return Ub(e,Sb(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=Sb(this._id);r.animation=e.animation,r.willUpdate=e.willUpdate,r.compress=e.compress,r.emphasis=e.emphasis,r.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(e,t,n,i){var r;if(n&&"none"!==n)if(r=_b("rect","bg",{width:e,height:t,x:"0",y:"0"}),_i(n))Zb({fill:n},r.attrs,"fill",i);else if(yi(n))Kb({style:{fill:n},dirty:be,getBoundingRect:function(){return{width:e,height:t}}},r.attrs,"fill",i);else{var o=di(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=e.compress?null:this._mainVNode=_b("g","main",{},[]);this._paintList(t,r,s?s.children:o),s&&o.push(s);
vendor: 5,894 bytes, line 2
2var l=B(H(r.defs),(function(e){return r.defs[e]}));if(l.length&&o.push(_b("defs","defs",{},l)),e.animation){var u=function(e,t,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=B(H(e),(function(t){return t+r+B(H(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+o})).join(i),s=B(H(t),(function(e){return"@keyframes "+e+r+B(H(t[e]),(function(n){return n+r+B(H(t[e][n]),(function(i){var r=t[e][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(u){var c=_b("style","stl",{},[],u);o.push(c)}}return Mb(n,i,o,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},bb(this.renderToVNode({animation:oe(e.cssAnimation,!0),emphasis:oe(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:oe(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,r,o=e.length,a=[],s=0,l=0,u=0;u<o;u++){var c=e[u];if(!c.invisible){var d=c.__clipPaths,p=d&&d.length||0,h=r&&r.length||0,f=void 0;for(f=Math.max(p-1,h-1);f>=0&&(!d||!r||d[f]!==r[f]);f--);for(var g=h-1;g>f;g--)i=a[--s-1];for(var m=f+1;m<p;m++){var v={};Jb(d[m],v,t);var y=_b("g","clip-g-"+l++,v,[]);(i?i.children:n).push(y),a[s++]=y,i=y}r=d;var x=Ub(c,t);x&&(i?i.children:n).push(x)}}},e.prototype.resize=function(e,t){var n=this._opts,i=this.root,r=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),i&&r&&(r.style.display="none",e=cv(i,0,n),t=cv(i,1,n),r.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,r){var o=r.style;o.width=e+"px",o.height=t+"px"}if(yi(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",e),a.setAttribute("height",t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",e),s.setAttribute("height",t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=Ti(t))&&n+"base64,"+t:n+"charset=UTF-8,"+encodeURIComponent(t)},e}();function yS(e){return function(){C('In SVG mode painter not support method "'+e+'"')}}function xS(e,t,n){var i=d.createCanvas(),r=t.getWidth(),o=t.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",e)),i.width=r*n,i.height=o*n,i}var wS=function(e){function t(t,n,i){var r,o=e.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||lr,"string"==typeof t?r=xS(t,n,i):Z(t)&&(t=(r=t).id),o.id=t,o.dom=r;var a=r.style;return a&&(we(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return i(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=xS("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Bt(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length)(t=new Bt(0,0,0,0)).copy(e),o.push(t);else{for(var t,n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(e)){var d=new Bt(0,0,0,0);d.copy(c),d.union(e),o[u]=d,n=!0;break}if(s){l.copy(e),l.union(c);var p=e.width*e.height,h=c.width*c.height,f=l.width*l.height-p-h;f<i&&(i=f,r=u)}}s&&(o[r].union(e),n=!0),n||((t=new Bt(0,0,0,0)).copy(e),o.push(t)),s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c)if(h=e[c]){var d=h.shouldBePainted(n,i,!0,!0);(f=h.__isRendered&&(1&h.__dirty||!d)?h.getPrevPaintRect():null)&&u(f);var p=d&&(1&h.__dirty||!h.__isRendered)?h.getPaintRect():null;p&&u(p)}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h,f;d=(h=t[c])&&h.shouldBePainted(n,i,!0,!0),!h||d&&h.__zr||!h.__isRendered||(f=h.getPrevPaintRect())&&u(f)}do{for(r=!1,c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/u,a/u));var d=this.domBack;function p(e,n,i,o){if(r.clearRect(e,n,i,o),t&&"transparent"!==t){var a=void 0;ee(t)?(a=(t.global||t.__width===i&&t.__height===o)&&t.__canvasGradient||lv(r,t,{x:0,y:0,width:i,height:o}
vendor: 17,622 bytes, line 2
2),t.__canvasGradient=a,t.__width=i,t.__height=o):te(t)&&(t.scaleX=t.scaleX||u,t.scaleY=t.scaleY||u,a=yv(r,t,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),r.save(),r.fillStyle=a||t,r.fillRect(e,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(d,e,n,i,o),r.restore())}!n||s?p(0,0,o,a):n.length&&z(n,(function(e){p(e.x*u,e.y*u,e.width*u,e.height*u)}))},t}(Ue),_S=1e5,bS=314159,SS=.01;var MS=function(){function e(e,t,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=k({},n||{}),this.dpr=n.devicePixelRatio||lr,this._singleCanvas=r,this.root=e,e.style&&(we(e),e.innerHTML=""),this.storage=t;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(r){var s=e,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new wS(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=bS,o.push(bS),this._domRoot=e}else{this._width=cv(e,0,n),this._height=cv(e,1,n);var d=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(d)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,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=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(_S)),i||(i=n.ctx).save(),Iv(i,a,r,o===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(_S)},e.prototype.paintOne=function(e,t){Cv(e,t)},e.prototype._paintList=function(e,t,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;an((function(){s._paintList(e,t,n,i)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(bS).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var i=this,r=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&r.push(u)}for(var c=!0,d=!1,p=function(o){var s,l=r[o],u=l.ctx,p=a&&l.createRepaintRects(e,t,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=e[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 x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=e[s];if(r.__inHover&&(d=!0),i._doPaintEl(r,l,a,t,n,s===l.__endIndex-1),g&&Date.now()-m>15)break}n.prevElClipPaths&&u.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var w=h.dpr,_=0;_<p.length;++_){var b=p[_];u.save(),u.beginPath(),u.rect(b.x*w,b.y*w,b.width*w,b.height*w),u.clip(),x(b),u.restore()}else u.save(),x(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)},h=this,f=0;f<r.length;f++)p(f);return o.wxa&&z(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:c,needsRefreshHover:d}},e.prototype._doPaintEl=function(e,t,n,i,r,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!i||s&&s.intersect(i))&&(Iv(a,e,r,o),e.setPrevPaintRect(s))}else Iv(a,e,r,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=bS);var n=this._layers[e];return n||((n=new wS("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?A(n,this._layerConfig[e],!0):this._layerConfig[e-SS]&&A(n,this._layerConfig[e-SS],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(n[e])C("ZLevel "+e+" has been used already");else if(function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(r>0&&e>i[0]){for(s=0;s<r-1&&!(i[s]<e&&i[s+1]>e);s++);a=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}else C("Layer of zlevel "+e+" is not valid")},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];e.call(t,this._layers[r],r)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&e.call(t,o,r)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||e.call(t,o,r)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++)if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}var i,r,o=null,a=0;for(r=0;r<e.length;r++){var s,l=(s=e[r]).zlevel,u=void 0;i!==l&&(i=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?SS:0),this._needsManuallyCompositing),u.__builtin__||C("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,t(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}t(r),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,z(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?A(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];r!==e&&r!==e+SS||A(this._layers[r],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(P(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=cv(r,0,i),t=cv(r,1,i),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(bS).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new wS("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,r=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,i,r):e.renderToCanvas&&(n.save(),e.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 u=a[s];Iv(n,u,o,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();var TS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return i(t,e),t.prototype.getInitialData=function(e){var t=e.coordinateSystem;if("polar"!==t&&"cartesian2d"!==t)throw new Error("Line not support coordinateSystem besides cartesian and polar");return Ox(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Fr,n=rv("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*e.itemHeight,s=rv(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?r:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Og);function CS(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Lf(e,t,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Lf(e,t,n[a]));return o.join(" ")}}function IS(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!$(t))return t+"";for(var i=[],r=0;r<n.length;r++){var o=e.getDimensionIndex(n[r]);o>=0&&i.push(t[o])}return i.join(" ")}var AS=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.updateData(t,n,i,r),o}return i(t,e),t.prototype._createSymbol=function(e,t,n,i,r){this.removeAll();var o=rv(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=DS,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Wl(this.childAt(0))},t.prototype.downplay=function(){jl(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,r){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{(p=this.childAt(0)).silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(d):Ic(p,d,a,n),Pc(p)}if(this._updateCommon(e,n,s,i,r),l){var p=this.childAt(0);u||(d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}},p.scaleX=p.scaleY=0,p.style.opacity=0,Ac(p,d,a,n))}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,r){var o,a,s,l,u,c,d,p,h,f=this.childAt(0),g=e.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,h=i.cursorStyle,c=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(t),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"),u=v.get("blurScope"),c=v.get("disabled"),d=fd(m),p=v.getShallow("scale"),h=m.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var x=av(e.getItemVisual(t,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),h&&f.attr("cursor",h);var w=e.getItemVisual(t,"style"),_=w.fill;if(f instanceof $s){var b=f.style;f.useStyle(k({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},w))}else f.__isEmptyBrush?f.useStyle(k({},w)):f.useStyle(w),f.style.decal=null,f.setColor(_,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var T=r&&r.useNameLabel;hd(f,d,{labelFetcher:g,labelDataIndex:t,defaultText:function(t){return T?e.getName(t):CS(e,t)},inheritColor:_,defaultOpacity:w.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==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;C.scaleX=this._sizeX*I,C.scaleY=this._sizeY*I,this.setSymbolScale(1),iu(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),r=fl(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&kc(a,{style:{opacity:0}},t,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();kc(i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:r,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return ov(e.getItemVisual(t,"symbolSize"))},t}(Fr);function DS(e,t){this.parent.drift(e,t)}function kS(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function LS(e){return null==e||Z(e)||(e={isIgnore:e}),e||{}}function ES(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:fd(t),cursorStyle:t.get("cursor")}}var PS=function(){function e(e){this.group=new Fr,this._SymbolCtor=e||AS}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=LS(t);var n=this.group,i=e.hostModel,r=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=ES(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||n.removeAll(),e.diff(r).add((function(i){var r=u(i);if(kS(e,r,i,t)){var a=new o(e,i,s,l);a.setPosition(r),e.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,d){var p=r.getItemGraphicEl(d),h=u(c);if(kS(e,h,c,t)){var f=e.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(e,c,s,l)).setPosition(h);else{p.updateData(e,c,s,l);var m={x:h[0],y:h[1]};a?p.attr(m):Ic(p,m,i)}n.add(p),e.setItemGraphicEl(c,p)}else n.remove(p)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=ES(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=LS(n);for(var r=e.start;r<e.end;r++){var o=t.getItemLayout(r);if(kS(t,o,r,n)){var a=new this._SymbolCtor(t,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){ld(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}();function OS(e,t,n){var i=e.getBaseAxis(),r=e.getOtherAxis(i),o=function(e,t){var n=0,i=e.scale.getExtent();return"start"===t?n=i[0]:"end"===t?n=i[1]:U(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}(r,n),a=i.dim,s=r.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radiu
2s"===s?1:0,d=B(e.dimensions,(function(e){return t.mapDimension(e)})),p=!1,h=t.getCalculationInfo("stackResultDimension");return Ex(t,d[0])&&(p=!0,d[0]=h),Ex(t,d[1])&&(p=!0,d[1]=h),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function RS(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}var NS=Math.min,zS=Math.max;function BS(e,t){return isNaN(e)||isNaN(t)}function VS(e,t,n,i,r,o,a,s,l){for(var u,c,d,p,h,f,g=n,m=0;m<i;m++){var v=t[2*g],y=t[2*g+1];if(g>=r||g<0)break;if(BS(v,y)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](v,y),d=v,p=y;else{var x=v-u,w=y-c;if(x*x+w*w<.5){g+=o;continue}if(a>0){for(var _=g+o,b=t[2*_],S=t[2*_+1];b===v&&S===y&&m<i;)m++,g+=o,b=t[2*(_+=o)],S=t[2*_+1],x=(v=t[2*g])-u,w=(y=t[2*g+1])-c;var M=m+1;if(l)for(;BS(b,S)&&M<i;)M++,b=t[2*(_+=o)],S=t[2*_+1];var T=.5,C=0,I=0,A=void 0,D=void 0;if(M>=i||BS(b,S))h=v,f=y;else{C=b-u,I=S-c;var k=v-u,L=b-v,E=y-c,P=S-y,O=void 0,R=void 0;if("x"===s){var N=C>0?1:-1;h=v-N*(O=Math.abs(k))*a,f=y,A=v+N*(R=Math.abs(L))*a,D=y}else if("y"===s){var z=I>0?1:-1;h=v,f=y-z*(O=Math.abs(E))*a,A=v,D=y+z*(R=Math.abs(P))*a}else O=Math.sqrt(k*k+E*E),h=v-C*a*(1-(T=(R=Math.sqrt(L*L+P*P))/(R+O))),f=y-I*a*(1-T),D=y+I*a*T,A=NS(A=v+C*a*T,zS(b,v)),D=NS(D,zS(S,y)),A=zS(A,NS(b,v)),f=y-(I=(D=zS(D,NS(S,y)))-y)*O/R,h=NS(h=v-(C=A-v)*O/R,zS(u,v)),f=NS(f,zS(c,y)),A=v+(C=v-(h=zS(h,NS(u,v))))*R/O,D=y+(I=y-(f=zS(f,NS(c,y))))*R/O}e.bezierCurveTo(d,p,h,f,v,y),d=A,p=D}else e.lineTo(v,y)}u=v,c=y,g+=o}return m}var FS=function(){this.smooth=0,this.smoothConstraint=!0},GS=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return i(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new FS},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0&&BS(n[2*r-2],n[2*r-1]);r--);for(;i<r&&BS(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=VS(e,n,i,r,r,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=ws.CMD,a="x"===t,s=[],l=0;l<r.length;){var u=void 0,c=void 0,d=void 0,p=void 0,h=void 0,f=void 0,g=void 0;
vendor: 11,236 bytes, line 2
2switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(u=r[l++],c=r[l++],(g=a?(e-n)/(u-n):(e-i)/(c-i))<=1&&g>=0){var m=a?(c-i)*g+i:(u-n)*g+n;return a?[e,m]:[m,e]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],d=r[l++],p=r[l++],h=r[l++],f=r[l++];var v=a?_n(n,u,d,h,e,s):_n(i,c,p,f,e,s);if(v>0)for(var y=0;y<v;y++){var x=s[y];if(x<=1&&x>=0)return m=a?xn(i,c,p,f,x):xn(n,u,d,h,x),a?[e,m]:[m,e]}n=h,i=f}}},t}(Fs),HS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(FS),WS=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return i(t,e),t.prototype.getDefaultShape=function(){return new HS},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0&&BS(n[2*o-2],n[2*o-1]);o--);for(;r<o&&BS(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=VS(e,n,r,o,o,1,t.smooth,a,t.connectNulls);VS(e,i,r+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),r+=s+1,e.closePath()}},t}(Fs);function jS(e,t,n,i,r){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var d=new Js({shape:{x:a,y:s,width:l,height:u}});if(t){var p=e.getBaseAxis(),h=p.isHorizontal(),f=p.inverse;h?(f&&(d.shape.x+=l),d.shape.width=0):(f||(d.shape.y+=u),d.shape.height=0);var g=Y(r)?function(e){r(e,d)}:null;Ac(d,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return d}function $S(e,t,n){var i=e.getArea(),r=Qr(i.r0,1),o=Qr(i.r,1),a=new Zu({shape:{cx:Qr(e.cx,1),cy:Qr(e.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,Ac(a,{shape:{endAngle:i.endAngle,r:o}},n)),a}function YS(e,t,n,i,r){return e?"polar"===e.type?$S(e,t,n):"cartesian2d"===e.type?jS(e,t,n,i,r):null:null}function XS(e,t){return e.type===t}function qS(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function US(e){for(var t=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[t,n],[i,r]]}function ZS(e,t){var n=US(e),i=n[0],r=n[1],o=US(t),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 KS(e){return U(e)?e:e?.5:0}function JS(e,t,n,i,r){var o=n.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,u=[],c=[],d=[],p=[];if(r){for(l=0;l<e.length;l+=2){var h=t||e;isNaN(h[l])||isNaN(h[l+1])||p.push(e[l],e[l+1])}e=p}for(l=0;l<e.length-2;l+=2)switch(d[0]=e[l+2],d[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),i){case"end":u[a]=d[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var f=(c[a]+d[a])/2,g=[];u[a]=g[a]=f,u[1-a]=c[1-a],g[1-a]=d[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=d[1-a],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function QS(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count())if("cartesian2d"===t.type){for(var r,o,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=t.getAxis(r),u=B(o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),c=u.length,d=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var p=function(e,t){var n,i,r=[],o=e.length;function a(e,t,n){var i=e.coord;return{coord:n,color:ti((n-i)/(t.coord-i),[e.color,t.color])}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){i?r.push(a(i,l,t)):n&&r.push(a(n,l,0),a(n,l,t));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),h=p.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var f=p[0].coord-10,g=p[h-1].coord+10,m=g-f;if(m<.001)return"transparent";z(p,(function(e){e.offset=(e.coord-f)/m})),p.push({offset:h?p[h-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:d[0]||"transparent"});var v=new gc(0,0,0,0,p,!0);return v[r]=f,v[r+"2"]=g,v}console.warn("Visual map on line style only support x or y dimension.")}else console.warn("Visual map on line style is only supported on cartesian2d.")}function eM(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*AS.getSymbolSize(t,a)[e.isHorizontal()?1:0]>i)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return z(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function tM(e,t){return[e[2*t],e[2*t+1]]}function nM(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<wl.length;t++)if(e.get([wl[t],"endLabel","show"]))return!0;return!1}function iM(e,t,n,i){if(XS(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=nM(i)?function(n,i){e._endLabelOnDuring(n,i,a,s,o,r,t)}:null,u=t.getBaseAxis().isHorizontal(),c=jS(t,n,i,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var d=c.shape,p=Math.max(d.width,d.height);u?(d.y-=p,d.height+=2*p):(d.x-=p,d.width+=2*p)}return l&&l(1,c),c}return i.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),$S(t,n,i)}var rM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(){var e=new Fr,t=new PS;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=W(this._changePolyState,this)},t.prototype.render=function(e,t,n){var i=e.coordinateSystem,r=this.group,o=e.getData(),a=e.getModel("lineStyle"),s=e.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===i.type,c=this._coordSys,d=this._symbolDraw,p=this._polyline,h=this._polygon,f=this._lineGroup,g=!t.ssr&&e.get("animation"),m=!s.isEmpty(),v=s.get("origin"),y=OS(i,o,v),x=m&&function(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),r=Jx(2*i),o=0;o<i;o++){var a=RS(n,e,t,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(i,o,y),w=e.get("showSymbol"),_=e.get("connectNulls"),b=w&&!u&&eM(e,o,i),S=this._data;S&&S.eachItemGraphicEl((function(e,t){e.__temp&&(r.remove(e),S.setItemGraphicEl(t,null))})),w||d.remove(),r.add(f);var M,T=!u&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(M=i.getArea()).width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var C=QS(o,i,n)||o.getVisual("style")[o.getVisual("drawType")];if(p&&c.type===i.type&&T===this._step){m&&!h?h=this._newPolygon(l,x):h&&!m&&(f.remove(h),h=this._polygon=null),u||this._initOrUpdateEndLabel(e,i,Pp(C));var I=f.getClipPath();I?Ac(I,{shape:iM(this,i,!1,e).shape},e):f.setClipPath(iM(this,i,!0,e)),w&&d.updateData(o,{isIgnore:b,clipShape:M,disableAnimation:!0,getSymbolPoint:function(e){return[l[2*e],l[2*e+1]]}}),qS(this._stackedOnPoints,x)&&qS(this._points,l)||(g?this._doUpdateAnimation(o,x,i,n,T,v,_):(T&&(x&&(x=JS(x,l,i,T,_)),l=JS(l,null,i,T,_)),p.setShape({points:l}),h&&h.setShape({points:l,stackedOnPoints:x})))}else w&&d.updateData(o,{isIgnore:b,clipShape:M,disableAnimation:!0,getSymbolPoint:function(e){return[l[2*e],l[2*e+1]]}}),g&&this._initSymbolLabelAnimation(o,i,M),T&&(x&&(x=JS(x,l,i,T,_)),l=JS(l,null,i,T,_)),p=this._newPolyline(l),m?h=this._newPolygon(l,x):h&&(f.remove(h),h=this._polygon=null),u||this._initOrUpdateEndLabel(e,i,Pp(C)),f.setClipPath(iM(this,i,!0,e));var A=e.getModel("emphasis"),D=A.get("focus"),k=A.get("blurScope"),E=A.get("disabled");p.useStyle(L(a.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),su(p,e,"lineStyle"),p.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1),fl(p).seriesIndex=e.seriesIndex,iu(p,D,k,E);var P=KS(e.get("smooth")),O=e.get("smoothMonotone");if(p.setShape({smooth:P,smoothMonotone:O,connectNulls:_}),h){var R=o.getCalculationInfo("stackedOnSeries"),N=0;h.useStyle(L(s.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),R&&(N=KS(R.get("smooth"))),h.setShape({smooth:P,stackedOnSmooth:N,smoothMonotone:O,connectNulls:_}),su(h,e,"areaStyle"),fl(h).seriesIndex=e.seriesIndex,iu(h,D,k,E)}var z=this._changePolyState;o.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=o,this._coordSys=i,this._stackedOnPoints=x,this._points=l,this._step=T,this._valueOrigin=v,e.get("triggerLineEvent")&&(this.packEventData(e,p),h&&this.packEventData(e,h))},t.prototype.packEventData=function(e,t){fl(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var r=e.getData(),o=Xo(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],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,d=e.get("z")||0;(s=new AS(r,o)).x=l,s.y=u,s.setZ(c,d);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=d,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Yg.prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var r=e.getData(),o=Xo(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 Yg.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;Bl(this._polyline,e),t&&Bl(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new GS({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new WS({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,r,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),r=!1):"polar"===t.type&&(i="angle"===o.dim,r=!0);var s=e.hostModel,l=s.get("animationDuration");Y(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=Y(u)?u(null):u;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var d=[e.x,e.y],p=void 0,h=void 0,f=void 0;if(n)if(r){var g=n,m=t.pointToCoord(d);i?(p=g.startAngle,h=g.endAngle,f=-m[1]/180*Math.PI):(p=g.r0,h=g.r,f=m[0])}else{var v=n;i?(p=v.x,h=v.x+v.width,f=e.x):(p=v.y+v.height,h=v.y,f=e.y)}var y=h===p?0:(f-p)/(h-p);a&&(y=1-y);var x=Y(u)?u(o):l*y+c,w=s.getSymbolPath(),_=w.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),_&&_.animateFrom({style:{opacity:0}
vendor: 12,579 bytes, line 2
2},{duration:300,delay:x}),w.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(nM(e)){var r=e.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 tl({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(e){for(var t=e.length/2;t>0&&(n=e[2*t-2],i=e[2*t-1],isNaN(n)||isNaN(i));t--);var n,i;return t-1}(a);l>=0&&(hd(o,fd(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?IS(r,n):CS(r,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),p=o.get("precision"),h=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,v=t.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?h:0)*(m?-1:1),w=(g?0:-h)*(m?-1:1),_=g?"x":"y",b=function(e,t,n){for(var i,r,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=e[2*u+a],!isNaN(r)&&!isNaN(e[2*u+1-a]))if(0!==u){if(i<=t&&r>=t||i>=t&&r<=t){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(t-i)/(r-i)}}(u,y,_),S=b.range,M=S[1]-S[0],T=void 0;if(M>=1){if(M>1&&!d){var C=tM(u,S[0]);s.attr({x:C[0]+x,y:C[1]+w}),r&&(T=c.getRawValue(S[0]))}else{(C=l.getPointOn(y,_))&&s.attr({x:C[0]+x,y:C[1]+w});var I=c.getRawValue(S[0]),A=c.getRawValue(S[1]);r&&(T=ia(n,p,I,A,b.t))}i.lastFrameIndex=S[0]}else{var D=1===e||i.lastFrameIndex>0?S[0]:0;C=tM(u,D),r&&(T=c.getRawValue(D)),s.attr({x:C[0]+x,y:C[1]+w})}if(r){var k=bd(s);"function"==typeof k.setLabelText&&k.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=function(e,t,n,i,r,o,a){for(var s=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),l=[],u=[],c=[],d=[],p=[],h=[],f=[],g=OS(r,t,a),m=e.getLayout("points")||[],v=t.getLayout("points")||[],y=0;y<s.length;y++){var x=s[y],w=!0,_=void 0,b=void 0;switch(x.cmd){case"=":_=2*x.idx,b=2*x.idx1;var S=m[_],M=m[_+1],T=v[b],C=v[b+1];(isNaN(S)||isNaN(M))&&(S=T,M=C),l.push(S,M),u.push(T,C),c.push(n[_],n[_+1]),d.push(i[b],i[b+1]),f.push(t.getRawIndex(x.idx1));break;case"+":var I=x.idx,A=g.dataDimsForPoint,D=r.dataToPoint([t.get(A[0],I),t.get(A[1],I)]);b=2*I,l.push(D[0],D[1]),u.push(v[b],v[b+1]);var k=RS(g,r,t,I);c.push(k[0],k[1]),d.push(i[b],i[b+1]),f.push(t.getRawIndex(I));break;case"-":w=!1}w&&(p.push(x),h.push(h.length))}h.sort((function(e,t){return f[e]-f[t]}));var L=l.length,E=Jx(L),P=Jx(L),O=Jx(L),R=Jx(L),N=[];for(y=0;y<h.length;y++){var z=h[y],B=2*y,V=2*z;E[B]=l[V],E[B+1]=l[V+1],P[B]=u[V],P[B+1]=u[V+1],O[B]=c[V],O[B+1]=c[V+1],R[B]=d[V],R[B+1]=d[V+1],N[y]=p[z]}return{current:E,next:P,stackedOnCurrent:O,stackedOnNext:R,status:N}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),d=c.current,p=c.stackedOnCurrent,h=c.next,f=c.stackedOnNext;if(r&&(p=JS(c.stackedOnCurrent,c.current,n,r,a),d=JS(c.current,null,n,r,a),f=JS(c.stackedOnNext,c.next,n,r,a),h=JS(c.next,null,n,r,a)),ZS(d,h)>3e3||l&&ZS(p,f)>3e3)return s.stopAnimation(),s.setShape({points:h}),void(l&&(l.stopAnimation(),l.setShape({points:h,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=d;var g={shape:{points:h}};c.current!==d&&(g.shape.__points=c.next),s.stopAnimation(),Ic(s,g,u),l&&(l.setShape({points:d,stackedOnPoints:p}),l.stopAnimation(),Ic(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=c.status,y=0;y<v.length;y++)if("="===v[y].cmd){var x=e.getItemGraphicEl(v[y].idx1);x&&m.push({el:x,ptIdx:y})}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<m.length;t++){var n=m[t].el,i=2*m[t].ptIdx;n.x=e[i],n.y=e[i+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Yg);function oM(e,t){return{seriesType:e,plan:Wg(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,r=e.pipelineContext,o=t||r.large;if(i){var a=B(i.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Ex(n,a[0])&&(a[0]=l),Ex(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),d=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,r=o&&Jx(n*s),a=[],l=[],p=e.start,h=0;p<e.end;p++){var f=void 0;if(1===s){var g=u.get(c,p);f=i.dataToPoint(g,null,l)}else a[0]=u.get(c,p),a[1]=u.get(d,p),f=i.dataToPoint(a,null,l);o?(r[h++]=f[0],r[h++]=f[1]):t.setItemLayout(p,f.slice())}o&&t.setLayout("points",r)}}}}}}var aM={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},sM=function(e){return Math.round(e.length/2)};function lM(e){return{seriesType:e,reset:function(e,t,n){var i=e.getData(),r=e.get("sampling"),o=e.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(c||1),p=Math.round(a/d);if(isFinite(p)&&p>1){"lttb"===r?e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p)):"minmax"===r&&e.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/p));var h=void 0;X(r)?h=aM[r]:Y(r)&&(h=r),h&&e.setData(i.downSample(i.mapDimension(l.dim),1/p,h,sM))}}}}}var uM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.getInitialData=function(e,t){return Ox(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(e),o=i.dataToPoint(r);if(n)z(i.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var i=e.getTicksCoords(),a=e.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===t[n]||"y1"===t[n];if(l&&!a&&(s+=1),i.length<2)return;if(2===i.length)return void(o[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var u=void 0,c=void 0,d=1,p=0;p<i.length;p++){var h=i[p].coord,f=p===i.length-1?i[p-1].tickValue+d:i[p].tickValue;if(f===s){c=h;break}if(f<s)u=h;else if(null!=u&&f>s){c=(h+u)/2;break}1===p&&(d=f-i[0].tickValue)}null==c&&(u?u&&(c=i[i.length-1].coord):c=i[0].coord),o[n]=e.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Og);Og.registerClass(uM);var cM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.getInitialData=function(){return Ox(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Fd(uM.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(uM),dM=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},pM=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return i(t,e),t.prototype.getDefaultShape=function(){return new dM},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-r),s=r+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,d=2*Math.PI,p=c?u-l<d:l-u<d;p||(l=u-(c?d:-d));var h=Math.cos(l),f=Math.sin(l),g=Math.cos(u),m=Math.sin(u);p?(e.moveTo(h*r+n,f*r+i),e.arc(h*s+n,f*s+i,a,-Math.PI+l,l,!c)):e.moveTo(h*o+n,f*o+i),e.arc(n,i,o,l,u,!c),e.arc(g*s+n,m*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&e.arc(n,i,r,u,l,c)},t}(Fs);function hM(e,t,n){return t*Math.sin(e)*(n?-1:1)}function fM(e,t,n){return t*Math.cos(e)*(n?1:-1)}function gM(e,t,n){var i=e.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;$(i)||(i=[i,i,i,i]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:B(i,(function(e){return Ar(e,r)}))}}var mM=Math.max,vM=Math.min;var yM=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return i(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var r=e.get("coordinateSystem");"cartesian2d"===r||"polar"===r?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i)):To("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){ld(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var r,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,d=function(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&("category"!==i.type&&To("`realtimeSort` will not work because this bar series is not based on a category axis."),"cartesian2d"!==t.type&&To("`realtimeSort` will not work because this bar series is not on cartesian2d.")),n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}(e,l);d&&this._enableRealtimeSort(d,a,n);var p=e.get("clip",!0)||d,h=function(e,t){var n=e.getArea&&e.getArea();if(XS(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.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=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],x=this._backgroundEls,w=i&&i.isInitSort,_=i&&"changeAxisOrder"===i.type;function b(e){var t=CM[l.type](a,e),n=function(e,t,n){return new("polar"===e.type?Zu:Js)({shape:PM(t,n,e),silent:!0,z2:0})}(l,r,t);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),i=CM[l.type](a,t,n);if(g&&b(t),a.hasValue(t)&&TM[l.type](i)){var s=!1;p&&(s=xM[l.type](h,i));var m=wM[l.type](e,a,t,i,r,c,u.model,!1,f);d&&(m.forceLabelAnimation=!0),AM(m,a,t,n,i,e,r,"polar"===l.type),w?m.attr({shape:i}):d?_M(d,c,m,i,t,r,!1,!1):Ac(m,{shape:i},e,t),a.setItemGraphicEl(t,m),o.add(m),m.ignore=s}})).update((function(t,n){var i=a.getItemModel(t),S=CM[l.type](a,t,i);if(g){var M=void 0;0===x.length?M=b(n):((M=x[n]).useStyle(m.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",v):M.setShape("
2cornerRadius",v),y[t]=M);var T=CM[l.type](a,t);Ic(M,{shape:PM(r,T,l)},c,t)}var C=s.getItemGraphicEl(n);if(a.hasValue(t)&&TM[l.type](S)){var I=!1;if(p&&(I=xM[l.type](h,S))&&o.remove(C),C?Pc(C):C=wM[l.type](e,a,t,S,r,c,u.model,!!C,f),d&&(C.forceLabelAnimation=!0),_){var A=C.getTextContent();if(A){var D=bd(A);null!=D.prevValue&&(D.prevValue=D.value)}}else AM(C,a,t,i,S,e,r,"polar"===l.type);w?C.attr({shape:S}):d?_M(d,c,C,S,t,r,!0,_):Ic(C,{shape:S},e,t,null),a.setItemGraphicEl(t,C),C.ignore=I,o.add(C)}else o.remove(C)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&Ec(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Fr);S.removeAll();for(var M=0;M<y.length;++M)S.add(y[M]);o.add(S),this._backgroundEls=y,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),LM(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),LM(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&YS(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var i=this;if(t.count()){var r=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(t,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var i=[];return e.each(e.mapDimension(t.dim),(function(e,t){var r=n(t);r=null==r?NaN:r,i.push({dataIndex:t,mappedValue:r,ordinalNumber:e})})),i.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:B(i,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var i=n.scale,r=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var r=this._dataSort(e,n,t);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,r=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;
vendor: 5,968 bytes, line 2
2e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){Ec(t,e,fl(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Yg),xM={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=mM(t.x,e.x),s=vM(t.x+t.width,r),l=mM(t.y,e.y),u=vM(t.y+t.height,o),c=s<a,d=u<l;return t.x=c&&a>r?s:a,t.y=d&&l>o?u:l,t.width=c?0:s-a,t.height=d?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=vM(t.r,e.r),o=mM(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;return n<0&&(i=t.r,t.r=t.r0,t.r0=i),a}},wM={cartesian2d:function(e,t,n,i,r,o,a,s,l){var u=new Js({shape:k({},i),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(e,t,n,i,r,o,a,s,l){var u=!r&&l?pM:Zu,c=new u({shape:i,z2:1});c.name="item";var d,p,h=IM(r);if(c.calculateTextPosition=(d=h,p=({isRoundCap:u===pM}||{}).isRoundCap,function(e,t,n){var i=t.position;if(!i||i instanceof Array)return Dr(e,t,n);var r=d(i),o=null!=t.distance?t.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,h=(u+c)/2,f=a.startAngle,g=a.endAngle,m=(f+g)/2,v=p?Math.abs(u-c)/2:0,y=Math.cos,x=Math.sin,w=s+u*y(f),_=l+u*x(f),b="left",S="top";switch(r){case"startArc":w=s+(c-o)*y(m),_=l+(c-o)*x(m),b="center",S="top";break;case"insideStartArc":w=s+(c+o)*y(m),_=l+(c+o)*x(m),b="center",S="bottom";break;case"startAngle":w=s+h*y(f)+hM(f,o+v,!1),_=l+h*x(f)+fM(f,o+v,!1),b="right",S="middle";break;case"insideStartAngle":w=s+h*y(f)+hM(f,-o+v,!1),_=l+h*x(f)+fM(f,-o+v,!1),b="left",S="middle";break;case"middle":w=s+h*y(m),_=l+h*x(m),b="center",S="middle";break;case"endArc":w=s+(u+o)*y(m),_=l+(u+o)*x(m),b="center",S="bottom";break;case"insideEndArc":w=s+(u-o)*y(m),_=l+(u-o)*x(m),b="center",S="top";break;case"endAngle":w=s+h*y(g)+hM(g,o+v,!0),_=l+h*x(g)+fM(g,o+v,!0),b="left",S="middle";break;case"insideEndAngle":w=s+h*y(g)+hM(g,-o+v,!0),_=l+h*x(g)+fM(g,-o+v,!0),b="right",S="middle";break;default:return Dr(e,t,n)}return(e=e||{}).x=w,e.y=_,e.align=b,e.verticalAlign=S,e}),o){var f=r?"r":"endAngle",g={};c.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?Ic:Ac)(c,{shape:g},o)}return c}};function _M(e,t,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Ic:Ac)(n,{shape:l},t,r,null),(a?Ic:Ac)(n,{shape:u},t?e.baseAxis.model:null,r)}function bM(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var SM=["x","y","width","height"],MM=["cx","cy","r","startAngle","endAngle"],TM={cartesian2d:function(e){return!bM(e,SM)},polar:function(e){return!bM(e,MM)}},CM={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),r=n?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.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(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function IM(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function AM(e,t,n,i,r,o,a,s){var l=t.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=e.shape;k(u,gM(i.getModel("itemStyle"),u,!0)),e.setShape(u)}}else{var c=i.get(["itemStyle","borderRadius"])||0;e.setShape("r",c)}e.useStyle(l);var d=i.getShallow("cursor");d&&e.attr("cursor",d);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",h=fd(i);hd(e,h,{labelFetcher:o,labelDataIndex:n,defaultText:CS(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var f=e.getTextContent();if(s&&f){var g=i.get(["label","position"]);e.textConfig.inside="middle"===g||null,function(e,t,n,i){if(U(i))e.setTextConfig({rotation:i});else if($(t))e.setTextConfig({rotation:0});else{var r,o=e.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(t);switch(u){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 e.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}(e,"outside"===g?p:g,IM(a),i.get(["label","rotate"]))}Sd(f,h,o.getRawValue(n),(function(e){return IS(t,e)}));var m=i.getModel(["emphasis"]);iu(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),su(e,i),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(r)&&(e.style.fill="none",e.style.stroke="none",z(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var DM=function(){},kM=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return i(t,e),t.prototype.getDefaultShape=function(){return new DM},t.prototype.buildPath=function(e,t){for(var n=t.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],e.rect(o[0],o[1],a[0],a[1])},t}(Fs);function LM(e,t,n,i){var r=e.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=e.getModel("backgroundStyle"),u=r.getLayout("largeBackgroun
2dPoints");if(u){var c=new kM({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var d=new kM({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=o,d.largeDataIndices=a,d.barWidth=s,t.add(d),d.useStyle(r.getVisual("style")),d.style.stroke=null,fl(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",EM),d.on("mousemove",EM)),n&&n.push(d)}var EM=tm((function(e){var t=function(e,t,n){for(var i=e.baseDimIdx,r=1-i,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,d=o.length/3;c<d;c++){var p=3*c;if(l[i]=u,l[r]=o[p+2],s[i]=o[p+i],s[r]=o[p+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,e.offsetX,e.offsetY);fl(this).dataIndex=t>=0?t:null}),30,!1);function PM(e,t,n){if(XS(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}var o=t;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}var OM=2*Math.PI,RM=Math.PI/180;function NM(e,t){return Fp(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function zM(e,t){var n=NM(e,t),i=e.get("center"),r=e.get("radius");$(r)||(r=[0,r]);var o,a,s=Jr(n.width,t.getWidth()),l=Jr(n.height,t.getHeight()),u=Math.min(s,l),c=Jr(r[0],u/2),d=Jr(r[1],u/2),p=e.coordinateSystem;if(p){var h=p.dataToPoint(i);o=h[0]||0,a=h[1]||0}else $(i)||(i=[i,i]),o=Jr(i[0],s)+n.x,a=Jr(i[1],l)+n.y;return{cx:o,cy:a,r0:c,r:d}}function BM(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),r=NM(e,n),o=zM(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*RM,d=e.get("endAngle"),p=e.get("padAngle")*RM;d="auto"===d?c-OM:-d*RM;var h=e.get("minAngle")*RM+p,f=0;t.each(i,(function(e){!isNaN(e)&&f++}));var g=t.getSum(i),m=Math.PI/(g||f)*2,v=e.get("clockwise"),y=e.get("roseType"),x=e.get("stillShowZeroSum"),w=t.getDataExtent(i);w[0]=0;var _=v?1:-1,b=[c,d],S=_*p/2;xs(b,!v),c=b[0],d=b[1];var M=VM(e);M.startAngle=c,M.endAngle=d,M.clockwise=v;var T=Math.abs(d-c),C=T,I=0,A=c;if(t.setLayout({viewRect:r,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:s,r0:u,r:y?NaN:l});else{(i="area"!==y?0===g&&x?m:e*m:T/f)<h?(i=h,C-=h):I+=e;var r=A+_*i,o=0,c=0;p>i?c=o=A+_*i/2:(o=A+S,c=r-S),t.setItemLayout(n,{angle:i,startAngle:o,endAngle:c,clockwise:v,cx:a,cy:s,r0:u,r:y?Kr(e,w,[u,l]):l}),A=r}})),C<OM&&f)if(C<=.001){var D=T/f;t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n);i.angle=D;var r=0,o=0;D<p?o=r=c+_*(n+.5)*D:(r=c+_*n*D+S,o=c+_*(n+1)*D-S),i.startAngle=r,i.endAngle=o}}))}else m=C/I,A=c,t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n),r=i.angle===h?h:e*m,o=0,a=0;r<p?a=o=A+_*r/2:(o=A+S,a=A+_*r-S),i.startAngle=o,i.endAngle=a,A+=_*r}}))}))}var VM=qo();function FM(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf((function(e){for(var t=i.getName(e),r=0;r<n.length;r++)if(!n[r].isSelected(t))return!1;return!0}))}}}}var GM=Math.PI/180;function HM(e,t,n,i,r,o,a,s,l,u){if(!(e.length<2)){for(var c=e.length,d=0;d<c;d++)if("outer"===e[d].position&&"labelLine"===e[d].labelAlignTo){var p=e[d].label.x-u;e[d].linePoints[1][0]+=p,e[d].label.x=u}q_(e,l,l+a)&&function(e){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var d=l.label.x-t-l.len2*r,p=i+l.len,f=Math.abs(d)<p?Math.sqrt(c*c/(1-d*d/p/p)):p;u.rB=f,u.maxY=c}u.list.push(l)}h(o),h(a)}(e)}function h(e){for(var o=e.rB,a=o*o,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-n),c=i+l.len,d=c*c,p=Math.sqrt(Math.abs((1-u*u/a)*d)),h=t+(p+l.len2)*r,f=h-l.label.x;WM(l,l.targetTextWidth-f*r,!0),l.label.x=h}}}function WM(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var i=e.label,r=i.style,o=e.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(t<c||n){var d=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);
vendor: 22,555 bytes, line 2
2var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",a)}else{var h=t-l,f=t<c?h:n?h>e.unconstrainedWidth?null:h: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 jM(e){return"center"===e.position}function $M(e){var t,n,i=e.getData(),r=[],o=!1,a=(e.get("minShowLabelAngle")||0)*GM,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,d=s.y,p=s.height;function h(e){e.ignore=!0}i.each((function(e){var s=i.getItemGraphicEl(e),d=s.shape,p=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(e),m=g.getModel("label"),v=m.get("position")||g.get(["emphasis","label","position"]),y=m.get("distanceToLabelLine"),x=m.get("alignTo"),w=Jr(m.get("edgeDistance"),u),_=m.get("bleedMargin"),b=g.getModel("labelLine"),S=b.get("length");S=Jr(S,u);var M=b.get("length2");if(M=Jr(M,u),Math.abs(d.endAngle-d.startAngle)<a)return z(p.states,h),p.ignore=!0,void(f&&(z(f.states,h),f.ignore=!0));if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(p)){var T,C,I,A,D=(d.startAngle+d.endAngle)/2,k=Math.cos(D),L=Math.sin(D);t=d.cx,n=d.cy;var E="inside"===v||"inner"===v;if("center"===v)T=d.cx,C=d.cy,A="center";else{var P=(E?(d.r+d.r0)/2*k:d.r*k)+t,O=(E?(d.r+d.r0)/2*L:d.r*L)+n;if(T=P+3*k,C=O+3*L,!E){var R=P+k*(S+l-d.r),N=O+L*(S+l-d.r),B=R+(k<0?-1:1)*M;T="edge"===x?k<0?c+w:c+u-w:B+(k<0?-y:y),C=N,I=[[P,O],[R,N],[B,N]]}A=E?"center":"edge"===x?k>0?"right":"left":k>0?"left":"right"}var V=Math.PI,F=0,G=m.get("rotate");if(U(G))F=G*(V/180);else if("center"===v)F=0;else if("radial"===G||!0===G)F=k<0?-D+V:-D;else if("tangential"===G&&"outside"!==v&&"outer"!==v){var H=Math.atan2(k,L);H<0&&(H=2*V+H),L>0&&(H=V+H),F=H-V}if(o=!!F,p.x=T,p.y=C,p.rotation=F,p.setStyle({verticalAlign:"middle"}),E){p.setStyle({align:A});var W=p.states.select;W&&(W.x+=p.x,W.y+=p.y)}else{var j=p.getBoundingRect().clone();j.applyTransform(p.getComputedTransform());var $=(p.style.margin||0)+2.1;j.y-=$/2,j.height+=$,r.push({label:p,labelLine:f,position:v,len:S,len2:M,minTurnAngle:b.get("minTurnAngle"),maxSurfaceAngle:b.get("maxSurfaceAngle"),surfaceNormal:new Dt(k,L),linePoints:I,textAlign:A,labelDistance:y,labelAlignTo:x,edgeDistance:w,bleedMargin:_,rect:j,unconstrainedWidth:j.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:E})}})),!o&&e.get("avoidLabelOverlap")&&function(e,t,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,p=0;p<e.length;p++){var h=e[p].label;jM(e[p])||(h.x<t?(c=Math.min(c,h.x),l.push(e[p])):(d=Math.max(d,h.x),u.push(e[p])))}for(p=0;p<e.length;p++)if(!jM(m=e[p])&&m.linePoints){if(null!=m.labelStyleWidth)continue;h=m.label;var f,g=m.linePoints;f="edge"===m.labelAlignTo?h.x<t?g[2][0]-m.labelDistance-a-m.edgeDistance:a+r-m.edgeDistance-g[2][0]-m.labelDistance:"labelLine"===m.labelAlignTo?h.x<t?c-a-m.bleedMargin:a+r-d-m.bleedMargin:h.x<t?h.x-a-m.bleedMargin:a+r-h.x-m.bleedMargin,m.targetTextWidth=f,WM(m,f)}for(HM(u,t,n,i,1,0,o,0,s,d),HM(l,t,n,i,-1,0,o,0,s,c),p=0;p<e.length;p++){var m;if(!jM(m=e[p])&&m.linePoints){h=m.label,g=m.linePoints;var v="edge"===m.labelAlignTo,y=h.style.padding,x=y?y[1]+y[3]:0,w=h.style.backgroundColor?0:x,_=m.rect.width+w,b=g[1][0]-g[2][0];v?h.x<t?g[2][0]=a+m.edgeDistance+_+m.labelDistance:g[2][0]=a+r-m.edgeDistance-_-m.labelDistance:(h.x<t?g[2][0]=h.x+m.labelDistance:g[2][0]=h.x-m.labelDistance,g[1][0]=g[2][0]+b),g[1][1]=g[2][1]=h.y}}}(r,t,n,l,u,p,c,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&&(z(m.states,h),m.ignore=!0);var x=m.states.select;x&&(x.x+=m.x,x.y+=m.y)}if(v){var w=g.linePoints;y||!w?(z(v.states,h),v.ignore=!0):(F_(w,g.minTurnAngle),G_(w,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:w}),m.__hostTarget.textGuideLineConfig={anchor:new Dt(w[0][0],w[0][1])})}}}var YM=function(e){function t(t,n,i){var r=e.call(this)||this;r.z2=2;var o=new tl;return r.setTextContent(o),r.updateData(t,n,i,!0),r}return i(t,e),t.prototype.updateData=function(e,t,n,i){var r=this,o=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),l=e.getItemLayout(t),u=k(gM(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(Ac(r,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,Ac(r,{shape:{r:l.r}},o,t)):null!=n?(r.setShape({startAngle:n,endAngle:n}),Ac(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,t)):(r.shape.endAngle=l.startAngle,Ic(r,{shape:{endAngle:l.endAngle}},o,t))}else Pc(r),Ic(r,{shape:u},o,t);r.useStyle(e.getItemVisual(t,"style")),su(r,a);var d=(l.startAngle+l.endAngle)/2,p=o.get("selectedOffset"),h=Math.cos(d)*p,f=Math.sin(d)*p,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,e,t),r.ensureState("emphasis").shape=k({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},gM(s.getModel("itemStyle"),l)),k(r.ensureState("select"),{x:h,y:f,shape:gM(a.getModel(["select","itemStyle"]),l)}),k(r.ensureState("blur"),{shape:gM(a.getModel(["blur","itemStyle"]),l)});var m=r.getTextGuideLine(),v=r.getTextContent();m&&k(m.ensureState("select"),{x:h,y:f}),k(v.ensureState("select"),{x:h,y:f}),iu(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var i=this,r=t.getItemModel(n),o=r.getModel("labelLine"),a=t.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;hd(i,fd(r),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new ic,this.setTextGuideLine(d)),j_(this,$_(r),{stroke:s,opacity:ae(o.get(["lineStyle","opacity"]),l,1)})}},t}(Zu),XM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return i(t,e),t.prototype.render=function(e,t,n,i){var r,o=e.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&e.get("showEmptyCircle")){var c=VM(e),d=new Zu({shape:k(zM(e,n),c)});d.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,s.add(d)}o.diff(a).add((function(e){var t=new YM(o,e,r);o.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(o,e,r),n.off("click"),s.add(n),o.setItemGraphicEl(e,n)})).remove((function(t){Ec(a.getItemGraphicEl(t),e,t)})).execute(),$M(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var i=e[0]-n.cx,r=e[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},t.type="pie",t}(Yg);function qM(e,t,n){t=$(t)&&{coordDimensions:t}||k({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=Cx(i,t).dimensions,o=new Tx(r,e);return o.initData(i,n),o}var UM=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),ZM=qo(),KM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new UM(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return qM(this,{coordDimensions:["value"],encodeDefaulter:j(dh,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=ZM(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(e){o.push(e)})),r=i.seats=ro(o,n.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,t);return a.percent=r[t]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){Ro(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Og);var JM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return i(t,e),t.prototype.getInitialData=function(e,t){return Ox(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Og),QM=function(){},eT=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return i(t,e),t.prototype.getDefaultShape=function(){return new QM},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,r=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&r[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],d=i[n++];isNaN(c)||isNaN(d)||u&&!u.contain(c,d)||(a.x=c-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(e,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,i=t.size,r=this._ctx,o=this.softClipShape;if(r){for(e=this._off;e<n.length;){var a=n[e++],s=n[e++];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=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){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,u=i[l]-o/2,c=i[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return e=n[0],t=n[1],i.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var d=n[c++],p=n[c++];a=Math.min(d,a),l=Math.max(d,l),s=Math.min(p,s),u=Math.max(p,u)}e=this._rect=new Bt(a-r/2,s-o/2,l-a+r,u-s+o)}return e},t}(Fs),tT=function(){function e(){this.group=new Fr}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var i=this._newAdded[0],r=t.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=e.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new eT({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=n.clipShape||null,e.symbolProxy=rv(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<4;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var l=fl(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),nT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n){var i=e.getData();this._updateSymbolDraw(i,e).updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData();this._updateSymbolDraw(i,e).incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=oM("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new tT:new PS,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Yg),iT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Xp),rT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Jo).models[0]},t.type="cartesian2dAxis",t}(Xp);R(rT,Gw);var oT={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)"]}}},aT=A({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},oT),sT=A({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}}},oT),lT={category:aT,value:sT,time:A({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},sT),log:L({logBase:10},sT)},uT={value:1,category:1,time:1,log:1};function cT(e,t,n,r){z(uT,(function(o,a){var s=A(A({},lT[a],!0),r,!0),l=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+a,n}return i(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Hp(this),i=n?jp(e):{};A(e,t.getTheme().get(a+"Axis")),A(e,this.getDefaultOption()),e.type=dT(e),n&&Wp(e,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=zx.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+a,n.defaultOption=s,n}(n);e.registerComponentModel(l)})),e.registerSubTypeDefaulter(t+"Axis",dT)}function dT(e){return e.type||(e.data?"category":"value")}var pT=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return B(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),F(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),hT=["x","y"];function fT(e){return"interval"===e.type||"time"===e.type}var gT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=hT,t}return i(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(fT(e)&&fT(t)){var n=e.getExtent(),i=t.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,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,d=r[1]-i[0]*u,p=this._transform=[l,0,0,u,c,d];this._invTransform=Ct([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),r=this.getArea(),o=new Bt(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],r=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return We(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=a.toGlobalCoord(a.dataToCoord(r,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return We(n,e,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=r.coordToData(r.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1])-e,r=Math.min(n[0],n[1])-e,o=Math.max(t[0],t[1])-i+e,a=Math.max(n[0],n[1])-r+e;return new Bt(i,r,o,a)},t}(pT),mT=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return i(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(w_);function vT(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,f="x"===u?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[p[l]]:d[0],"x"===u?f[p[l]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),re(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}
2function yT(e){return"cartesian2d"===e.get("coordinateSystem")}function xT(e){var t={xAxisModel:null,yAxisModel:null};return z(t,(function(n,i){var r=i.replace(/Model$/,""),o=e.getReferringComponents(r,Jo).models[0];if(!o)throw new Error(r+' "'+ae(e.get(r+"Index"),e.get(r+"Id"),0)+'" not found');t[i]=o})),t}var wT=Math.log;function _T(e,t,n){var i=Ux.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=Ew(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var p=wT(e.base);u=[wT(u[0])/p,wT(u[1])/p]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var h=i.getExtent.call(e);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var f=i.getInterval.call(e),g=u[0],m=u[1];if(c&&d)f=(m-g)/a;else if(c)for(m=u[0]+f*a;m<u[1]&&isFinite(m)&&isFinite(u[1]);)f=Gx(f),m=u[0]+f*a;else if(d)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=Gx(f),g=u[1]-f*a;else{e.getTicks().length-1>a&&(f=Gx(f));var v=f*a;(g=Qr((m=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(g=0,m=Qr(v)):m>0&&u[1]<=0&&(m=0,g=-Qr(v))}var y=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(e,g+f*y,m+f*x),i.setInterval.call(e,f),(y||x)&&i.setNiceExtent.call(e,g+f,m-f);var w,_,b,S=i.getTicks.call(e);S[1]&&(w=f,_=Math.pow(10,ho(Math.abs(w))),0!==(b=Math.abs(w/_))&&1!==b&&2!==b&&3!==b&&5!==b||no(S[1].value)>no(f))&&To("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}var bT=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=hT,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=H(e),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=e[+n[o]],s=a.model,l=a.scale;Vx(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(Pw(l,s),Vx(l)&&(t=a))}r.length&&(t||Pw((t=r.pop()).scale,t.model),z(r,(function(e){_T(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var r={};z(n.x,(function(e){MT(n,"y",e,r)})),z(n.y,(function(e){MT(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),r=!n&&e.get("containLabel"),o=Fp(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){z(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),function(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}(e,t?o.x:o.y)}))}s(),r&&(z(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();r=n instanceof Xx?n.count():(i=n.getTicks()).length;var a,s=e.getLabelModel(),l=Rw(e),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;c<r;c+=u){var d=l(i?i[c]:{value:o[0]+c},c),p=zw(s.getTextRect(d),s.get("rotate")||0);a?a.union(p):a=p}return a}}(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}})),s()),z(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Z(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===e||r[i].getAxis("y").index===t)return r[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,i=e.seriesModel,r=e.xAxisModel||i&&i.getReferringComponents("xAxis",Jo).models[0],o=e.yAxisModel||i&&i.getReferringComponents("yAxis",Jo).models[0],a=e.gridModel,s=this._coordsList;return i?P(s,t=i.coordinateSystem)<0&&(t=null):r&&o?t=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(t=this._coordsList[0]),{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);
vendor: 19,495 bytes, line 2
2function l(t){return function(n,i){if(ST(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new mT(t,Ow(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[t][i]=u,s[t]++}}}this._axesMap=a,z(a.x,(function(t,n){z(a.y,(function(r,o){var a="x"+n+"y"+o,s=new gT(a);s.master=i,s.model=e,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(t),s.addAxis(r)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){z(Fw(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}z(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(yT(e)){var i=xT(e),r=i.xAxisModel,o=i.yAxisModel;if(!ST(r,t)||!ST(o,t))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return z(this.getCartesians(),(function(i){var r=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(r);P(t,r)<0&&t.push(r),P(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var i=[];return t.eachComponent("grid",(function(r,o){var a=new e(r,t,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),t.eachSeries((function(e){if(yT(e)){var t=xT(e),n=t.xAxisModel,i=t.yAxisModel,r=n.getCoordSysModel();if(!r)throw new Error('Grid "'+ae(n.get("gridIndex"),n.get("gridId"),0)+'" not found');if(n.getCoordSysModel()!==i.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid");var o=r.coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}})),i},e.dimensions=hT,e}();function ST(e,t){return e.getCoordSysModel()===t}function MT(e,t,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)TT(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&TT(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(e){return e.dim+"_"+e.index}}function TT(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}(e)}var CT=Math.PI,IT=function(){function e(e,t){this.group=new Fr,this.opt=t,this.axisModel=e,L(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Fr({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!AT[e]},e.prototype.add=function(e){AT[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var i,r,o=so(t-e);return lo(o)?(r=n>0?"top":"bottom",i="center"):lo(o-CT)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<CT?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),AT={axisLine:function(e,t,n,i){var r=t.get(["axisLine","show"]);if("auto"===r&&e.handleAutoShown&&(r=e.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(We(s,s,a),We(l,l,a));var c=k({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new ac({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Xc(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var p=t.get(["axisLine","symbol"]);if(null!=p){var h=t.get(["axisLine","symbolSize"]);X(p)&&(p=[p,p]),(X(h)||U(h))&&(h=[h,h]);var f=av(t.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];z([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.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(t,i){if("none"!==p[i]&&null!=p[i]){var r=rv(p[i],-g/2,-m/2,g,m,c.stroke,!0),o=t.r+t.offset,a=u?l:s;r.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(e,t,n,i){var r=function(e,t,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=ET(r.getTicksCoords(),t.transform,l,L(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}}(n,i,t,e),o=function(e,t,n,i){var r=n.axis;if(re(i.axisLabelShow,n.get(["axisLabel","show"]))&&!r.scale.isBlank()){var o=n.getModel("axisLabel"),a=o.get("margin"),s=r.getViewLabels(),l=(re(i.labelRotate,o.get("rotate"))||0)*CT/180,u=IT.innerTextLayout(i.rotation,l,i.labelDirection),c=n.getCategories&&n.getCategories(!0),d=[],p=IT.isLabelSilent(n),h=n.get("triggerEvent");return z(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(c&&c[g]){var x=c[g];Z(x)&&x.textStyle&&(y=new zd(x.textStyle,o,n.ecModel))}var w=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=r.dataToCoord(g),b=y.getShallow("align",!0)||u.textAlign,S=oe(y.getShallow("alignMinLabel",!0),b),M=oe(y.getShallow("alignMaxLabel",!0),b),T=y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||u.textVerticalAlign,C=oe(y.getShallow("verticalAlignMinLabel",!0),T),I=oe(y.getShallow("verticalAlignMaxLabel",!0),T),A=new tl({x:_,y:i.labelOffset+i.labelDirection*a,rotation:u.rotation,silent:p,z2:10+(l.level||0),style:gd(y,{text:m,align:0===f?S:f===s.length-1?M:b,verticalAlign:0===f?C:f===s.length-1?I:T,fill:Y(w)?w("category"===r.type?v:"value"===r.type?g+"":g,f):w})});if(A.anid="label_"+g,ad({el:A,componentModel:n,itemName:m,formatterParamsExtra:{isTruncated:function(){return A.isTruncated},value:v,tickIndex:f}}),h){var D=IT.makeAxisEventDataBase(n);D.targetType="axisLabel",D.value=v,D.tickIndex=f,"category"===r.type&&(D.dataIndex=g),fl(A).eventData=D}t.add(A),A.updateTransform(),d.push(A),e.add(A),A.decomposeTransform()})),d}}(n,i,t,e);(function(e,t,n){if(!Vw(e.axis)){var i=e.get(["axisLabel","showMinLabel"]),r=e.get(["axisLabel","showMaxLabel"]);n=n||[];var o=(t=t||[])[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],d=n[n.length-1],p=n[n.length-2];!1===i?(DT(o),DT(u)):kT(o,a)&&(i?(DT(a),DT(c)):(DT(o),DT(u))),!1===r?(DT(s),DT(d)):kT(l,s)&&(r?(DT(l),DT(p)):(DT(s),DT(d)))}})(t,o,r),function(e,t,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),u=L(s.getLineStyle(),L(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var d=ET(a[c],t.transform,l,u,"minorticks_"+c),p=0;p<d.length;p++)e.add(d[p])}}(n,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])&&U_(Y_(B(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}}))))},axisName:function(e,t,n,i){var r=re(e.axisName,t.get("name"));if(r){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),p=d[0]>d[1]?-1:1,h=["start"===s?d[0]-p*c:"end"===s?d[1]+p*c:(d[0]+d[1])/2,LT(s)?e.labelOffset+l*c:0],f=t.get("nameRotate");null!=f&&(f=f*CT/180),LT(s)?o=IT.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(o=function(e,t,n,i){var r,o,a=so(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;return lo(a-CT/2)?(o=l?"bottom":"top",r="center"):lo(a-1.5*CT)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*CT&&a>CT/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(e.rotation,s,f||0,d),null!=(a=e.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),m=t.get("nameTruncate",!0)||{},v=m.ellipsis,y=re(e.nameTruncateMaxWidth,m.maxWidth,a),x=new tl({x:h[0],y:h[1],rotation:o.rotation,silent:IT.isLabelSilent(t),style:gd(u,{text:r,font:g,overflow:"truncate",width:y,ellipsis:v,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(ad({el:x,componentModel:t,itemName:r}),x.__fullText=r,x.anid="name",t.get("triggerEvent")){var w=IT.makeAxisEventDataBase(t);w.targetType="axisName",w.name=r,fl(x).eventData=w}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function DT(e){e&&(e.ignore=!0)}function kT(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=wt([]);return Mt(r,r,-e.rotation),n.applyTransform(bt([],r,e.getLocalTransform())),i.applyTransform(bt([],r,t.getLocalTransform())),n.intersect(i)}}function LT(e){return"middle"===e||"center"===e}function ET(e,t,n,i,r){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(We(a,a,t),We(s,s,t));var c=new ac({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Xc(c.shape,c.style.lineWidth),c.anid=r+"_"+e[l].tickValue,o.push(c)}return o}function PT(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var i=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];z(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=zT(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(z(n.getAxes(),j(h,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var c="axis"===u.get("trigger"),d="cross"===u.get(["axisPointer","type"]),p=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||d)&&z(p.baseAxes,j(h,!d||"cross",c)),d&&z(p.otherAxes,j(h,"cross",!1))}}function h(i,s,c){var d=c.model.getModel("axisPointer",r),p=d.get("show");if(p&&("auto"!==p||i||NT(d))){null==s&&(s=d.get("triggerTooltip"));var h=(d=i?function(e,t,n,i,r,o){var a=t.getModel("axisPointer"),s={};z(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){s[e]=I(a.get(e))})),s.snap="category"!==e.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 u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&L(l,c.textStyle)}}return e.model.getModel("axisPointer",new zd(s,n,i))}(c,u,r,t,i,s):d).get("snap"),f=d.get("triggerEmphasis"),g=zT(c.model),m=s||h||"category"===c.type,v=e.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:f,involveSeries:m,snap:h,useHandle:NT(d),seriesModels:[],linkGroup:null};l[g]=v,e.seriesInvolved=e.seriesInvolved||m;var y=function(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var o=e[r]||{};if(OT(o[i+"AxisId"],n.id)||OT(o[i+"AxisIndex"],n.componentIndex)||OT(o[i+"AxisName"],n.name))return r}}(o,c);if(null!=y){var x=a[y]||(a[y]={axesInfo:{}});x.axesInfo[g]=v,x.mapper=o[y].mapper,v.linkGroup=x}}}}))}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),r=t.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==t.get(["axisPointer","show"],!0)&&z(e.coordSysAxesInfo[zT(n.model)],(function(e){var i=e.axis;n.getAxis(i.dim)===i&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}(n,e),n}function OT(e,t){return"all"===e||$(e)&&P(e,t)>=0||e===t}function RT(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[zT(e)]}function NT(e){return!!e.get(["handle","show"])}function zT(e){return e.type+"||"+e.id}var BT={},VT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(t,n,i,r){this.axisPointerClass&&function(e){var t=RT(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=NT(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=t.axis.scale.isBlank()?"hide":"show")}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},t.prototype.updateAxisPointer=function(e,t,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var r=t.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(e){var t=RT(e);return t&&t.axisPointerModel}(e);o?(this._axisPointer||(this._axisPointer=new r)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){if(BT[e])throw new Error("axisPointer "+e+" exists");BT[e]=t},t.getAxisPointerClass=function(e){return e&&BT[e]},t.type="axis",t}(Hg),FT=qo();function GT(e,t,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(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,d=FT(e).splitAreaColors,p=ve(),h=0;if(d)for(var f=0;f<u.length;f++){var g=d.get(u[f].tickValue);if(null!=g){h=(g+(c-1)*f)%c;break}}var m=r.toGlobalCoord(u[0].coord),v=a.getAreaStyle();for(s=$(s)?s:[s],f=1;f<u.length;f++){var y=r.toGlobalCoord(u[f].coord),x=void 0,w=void 0,_=void 0,b=void 0;r.isHorizontal()?(x=m,w=l.y,_=y-x,b=l.height,m=x+_):(x=l.x,w=m,_=l.width,m=w+(b=y-w));var S=u[f-1].tickValue;null!=S&&p.set(S,h),t.add(new Js({anid:null!=S?"area_"+S:null,shape:{x,y:w,width:_,height:b},style:L({fill:s[h]},v),autoBatch:!0,silent:!0})),h=(h+1)%c}FT(e).splitAreaColors=p}}}function HT(e){FT(e).splitAreaColors=null}var WT=["axisLine","axisTickLabel","axisName"],jT=["splitArea","splitLine","minorSplitLine"],$T=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return i(t,e),t.prototype.render=function(t,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Fr,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=vT(a,t),l=new IT(t,k({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Vx(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},s));z(WT,l.add,l),this._axisGroup.add(l.getGroup()),z(jT,(function(e){t.get([e,"show"])&&YT[e](this,this._axisGroup,t,a)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||Qc(o,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)}},t.prototype.remove=function(){HT(this)},t.type="cartesianAxis",t}(VT),YT={splitLine:function(e,t,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"),u=!1!==o.get("showMaxLine");s=$(s)?s:[s];for(var c=i.coordinateSystem.getRect(),d=r.isHorizontal(),p=0,h=r.getTicksCoords({tickModel:o}),f=[],g=[],m=a.getLineStyle(),v=0;v<h.length;v++){var y=r.toGlobalCoord(h[v].coord);if((0!==v||l)&&(v!==h.length-1||u)){var x=h[v].tickValue;d?(f[0]=y,f[1]=c.y,g[0]=y,g[1]=c.y+c.height):(f[0]=c.x,f[1]=y,g[0]=c.x+c.width,g[1]=y);var w=p++%s.length,_=new ac({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},style:L({stroke:s[w]},m),silent:!0});Xc(_.shape,m.lineWidth),t.add(_)}}}},minorSplitLine:function(e,t,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 u=[],c=[],d=o.getLineStyle(),p=0;p<l.length;p++)for(var h=0;h<l[p].length;h++){var f=r.toGlobalCoord(l[p][h].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new ac({anid:"minor_line_"+l[p][h].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:d,silent:!0});Xc(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,n,i){GT(e,t,n,i)}},XT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.type="xAxis",t}($T),qT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=XT.type,t}return i(t,e),t.type="yAxis",t}($T),UT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return i(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Js({shape:e.coordinateSystem.getRect(),style:L({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Hg),ZT={offset:0};function KT(e){e.registerComponentView(UT),e.registerComponentModel(iT),e.registerCoordinateSystem("cartesian2d",bT),cT(e,"x",rT,ZT),cT(e,"y",rT,ZT),e.registerComponentView(XT),e.registerComponentView(qT),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function JT(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var r=i.getIndicatorAxes();z(r,(function(e,o){t.each(t.mapDimension(r[o].dim),(function(e,t){n[t]=n[t]||[];var r=i.dataToPoint(e,o);n[t][o]=QT(r)?r:eC(i)}))})),t.each((function(e){var r=G(n[e],(function(e){return QT(e)}))||eC(i);n[e].push(r.slice()),t.setItemLayout(e,n[e])}))}}))}function QT(e){return!isNaN(e[0])&&!isNaN(e[1])}function eC(e){return[e.cx,e.cy]}function tC(e){var t=e.polar;if(t){$(t)||(t=[t]);var n=[];z(t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],$(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}z(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var nC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,r=this.group,o=e.getData(),a=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=ov(e.getItemVisual(t,"symbolSize")),r=rv(n,-1,-1,2,2),o=e.getItemVisual(t,"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 l(t,n,i,r,o,a){i.removeAll();for(var l=0;l<n.length-1;l++){var u=s(r,o);u&&(u.__dimIdx=l,t[l]?(u.setPosition(t[l]),ud[a?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},e,o)):u.setPosition(n[l]),i.add(u))}}function u(e){return B(e,(function(e){return[i.cx,i.cy]}))}o.diff(a).add((function(t){var n=o.getItemLayout(t);if(n){var i=new tc,r=new ic,a={shape:{points:n}};i.shape.points=u(n),r.shape.points=u(n),Ac(i,a,e,t),Ac(r,a,e,t);var s=new Fr,c=new Fr;s.add(r),s.add(i),s.add(c),l(r.shape.points,n,c,o,t,!0),o.setItemGraphicEl(t,s)}})).update((function(t,n){var i=a.getItemGraphicEl(n),r=i.childAt(0),s=i.
vendor: 4,118 bytes, line 2
2childAt(1),u=i.childAt(2),c={shape:{points:o.getItemLayout(t)}};c.shape.points&&(l(r.shape.points,c.shape.points,u,o,t,!1),Pc(s),Pc(r),Ic(r,c,e),Ic(s,c,e),o.setItemGraphicEl(t,i))})).remove((function(e){r.remove(a.getItemGraphicEl(e))})).execute(),o.eachItemGraphicEl((function(e,t){var n=o.getItemModel(t),i=e.childAt(0),a=e.childAt(1),s=e.childAt(2),l=o.getItemVisual(t,"style"),u=l.fill;r.add(e),i.useStyle(L(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),su(i,n,"lineStyle"),su(a,n,"areaStyle");var c=n.getModel("areaStyle"),d=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=d,z(["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();a.ensureState(e).ignore=i&&d})),a.useStyle(L(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var p=n.getModel("emphasis"),h=p.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof $s){var i=e.style;e.useStyle(k({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else e.useStyle(l),e.setColor(u),e.style.strokeNoScale=!0;e.ensureState("emphasis").style=I(h);var r=o.getStore().get(o.getDimensionIndex(e.__dimIdx),t);(null==r||isNaN(r))&&(r=""),hd(e,fd(n),{labelFetcher:o.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:r,inheritColor:u,defaultOpacity:l.opacity})})),iu(e,p.get("focus"),p.get("blurScope"),p.get("disabled"))})),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Yg),iC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return i(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new UM(W(this.getData,this),W(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return qM(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(e),a=""===o?this.name:o,s=Ig(this,e);return yg("section",{header:a,sortBlocks:!0,blocks:B(r,(function(t){var n=i.get(i.mapDimension(t.dim),e);return yg("nameValue",{markerType:"subItem",markerColor:s,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(B(n.dimensions,(function(e){return t.mapDimension(e)})),e),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)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Og),rC=lT.value;function oC(e,t){return L({show:t},e)}var aC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=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"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),d=B(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 p=a;null!=d.color&&(p=L({color:d.color},a));var h=A(I(d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:d.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:c},!1);if(X(l)){var f=h.name;h.name=l.replace("{value}",null!=f?f:"")}else Y(l)&&(h.name=l(h.name,h));var g=new zd(h,null,this.ecModel);return R(g,Gw.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine
vendor: 4,421 bytes, line 2
2:A({lineStyle:{color:"#bbb"}},rC.axisLine),axisLabel:oC(rC.axisLabel,!1),axisTick:oC(rC.axisTick,!1),splitLine:oC(rC.splitLine,!0),splitArea:oC(rC.splitArea,!0),indicator:[]},t}(Xp),sC=["axisLine","axisTickLabel","axisName"],lC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem;z(B(t.getIndicatorAxes(),(function(e){var n=e.model.get("showName")?e.name:"";return new IT(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(e){z(sC,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),d=s.get("color"),p=$(c)?c:[c],h=$(d)?d:[d],f=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=t.cx,y=t.cy,x=0;x<m.length;x++)l&&f[I(f,p,x)].push(new Pu({shape:{cx:v,cy:y,r:m[x].coord}})),u&&x<m.length-1&&g[I(g,h,x)].push(new Ju({shape:{cx:v,cy:y,r0:m[x].coord,r:m[x+1].coord}}));else{var w,_=B(n,(function(e,n){var i=e.getTicksCoords();return w=null==w?i.length-1:Math.min(i.length-1,w),B(i,(function(e){return t.coordToPoint(e.coord,n)}))})),b=[];for(x=0;x<=w;x++){for(var S=[],M=0;M<n.length;M++)S.push(_[M][x]);S[0]?S.push(S[0].slice()):console.error("Can't draw value axis "+x),l&&f[I(f,p,x)].push(new ic({shape:{points:S}})),u&&b&&g[I(g,h,x-1)].push(new tc({shape:{points:S.concat(b)}})),b=S.slice().reverse()}}var T=a.getLineStyle(),C=s.getAreaStyle();z(g,(function(e,t){this.group.add($c(e,{style:L({stroke:"none",fill:h[t%h.length]},C),silent:!0}))}),this),z(f,(function(e,t){this.group.add($c(e,{style:L({fill:"none",stroke:p[t%p.length]},T),silent:!0}))}),this)}function I(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(Hg),uC=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return i(t,e),t}(w_),cC=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=B(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new uC(n,new Ux);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var r,o=Math.atan2(-n,t),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(r=u,s=l,a=c)}return[s,+(r&&r.coordToData(i))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r)/2;this.cx=Jr(n[0],i),this.cy=Jr(n[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");(X(a)||U(a))&&(a=[0,a]),this.r0=Jr(a[0],o),this.r=Jr(a[1],o),z(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;z(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,r){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var o=t.getData();z(n,(function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))}))}}),this);var r=i.get("splitNumber"),o=new Ux;o.setExtent(0,r),o.setInterval(1),z(n,(function(e,t){_T(e.scale,e.model,o)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o}
vendor: 17,483 bytes, line 2
2)),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},e.dimensions=[],e}();function dC(e){e.registerCoordinateSystem("radar",cC),e.registerComponentModel(aC),e.registerComponentView(lC),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}var pC="\0_ec_interaction_mutex";function hC(e,t){return!!fC(e)[t]}function fC(e){return e[pC]||(e[pC]={})}Fy({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},be);var gC=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var i=W(n._mousedownHandler,n),r=W(n._mousemoveHandler,n),o=W(n._mouseupHandler,n),a=W(n._mousewheelHandler,n),s=W(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=L(I(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",r),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",r),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",s)},n}return i(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!gt(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&yC("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!hC(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,r=this._y,o=t-i,a=n-r;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&ft(e.event),vC(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:i,oldY:r,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){gt(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=yC("zoomOnMouseWheel",e,this._opt),n=yC("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,r=Math.abs(i),o=e.offsetX,a=e.offsetY;if(0!==i&&(t||n)){if(t){var s=r>3?1.4:r>1?1.2:1.1;mC(this,"zoom","zoomOnMouseWheel",e,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);mC(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){hC(this._zr,"globalPan")||mC(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(Ue);function mC(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(ft(i.event),vC(e,t,n,i,r))}function vC(e,t,n,i,r){r.isAvailableBehavior=W(yC,null,n,i),e.trigger(t,r)}function yC(e,t,n){var i=n[e];return!e||i&&(!X(i)||t.event[i+"Key"])}function xC(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function wC(e,t,n,i){var r=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var _C,bC={axisPointer:1,tooltip:1,brush:1};function SC(e,t,n){var i=t.getComponentByElement(e.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!bC.hasOwnProperty(i.mainType)&&r&&r.model!==n}function MC(e){X(e)&&(e=(new DOMParser).parseFromString(e,"text/xml"));var t=e;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var TC={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"},CC=H(TC),IC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},AC=H(IC),DC=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=MC(e);if(!n)throw new Error("Illegal svg");this._defsUsePending=[];var i=new Fr;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),RC(n,i,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i[0].style[i[1]]=e[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var d=VC(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&&(u=jC(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var p=i;(i=new Fr).add(p),p.scaleX=p.scaleY=u.scale,p.x=u.x,p.y=u.y}return t.ignoreRootClip||null==a||null==s||i.setClipPath(new Js({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},e.prototype._parseNode=function(e,t,n,i,r,o){var a,s=e.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!r){var u=_C[s];if(u&&_e(_C,s)){a=u.call(this,e,t);var c=e.getAttribute("name");if(c){var d={name:c,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});t.add(a)}}var p=kC[s];if(p&&_e(kC,s)){var h=p.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=h)}}if(a&&a.isGroup)for(var g=e.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},e.prototype._parseText=function(e,t){var n=new Hs({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});PC(t,n),RC(e,n,this._defsUsePending,!1,!1),function(e,t){var n=t.__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",e.style.textBaseline=r}var o=t.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}(n,t);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,t.add(n),n},e.internalField=void(_C={g:function(e,t){var n=new Fr;return PC(t,n),RC(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Js;return PC(t,n),RC(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new Pu;return PC(t,n),RC(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new ac;return PC(t,n),RC(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new Ru;return PC(t,n),RC(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=OC(i));var r=new tc({shape:{points:n||[]},silent:!0});return PC(t,r),RC(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=OC(i));var r=new ic({shape:{points:n||[]},silent:!0});return PC(t,r),RC(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var n=new $s;return PC(t,n),RC(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Fr;return PC(t,a),RC(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new Fr;return PC(t,a),RC(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(e,t){var n=ku(e.getAttribute("d")||"");return PC(t,n),RC(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),e}(),kC={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),r=parseInt(e.getAttribute("y2")||"0",10),o=new gc(t,n,i,r);return LC(e,o),EC(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),r=new mc(t,n,i);return LC(e,r),EC(e,r),r}};function LC(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function EC(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i,r=n.getAttribute("offset");i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};WC(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function PC(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),L(t.__inheritedStyle,e.__inheritedStyle))}function OC(e){for(var t=VC(e),n=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),o=parseFloat(t[i+1]);n.push([r,o])}return n}function RC(e,t,n,i,r){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(FC,(function(e,t,n){return i.push(t,n),""}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=VC(a);switch(r=r||[1,0,0,1,0,0],s){case"translate":St(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Tt(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Mt(r,r,-parseFloat(l[0])*GC,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":bt(r,[1,0,Math.tan(parseFloat(l[0])*GC),1,0,0],r);break;case"skewY":bt(r,[1,Math.tan(parseFloat(l[0])*GC),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])}}t.setLocalTransform(r)}}(e,t),WC(e,a,s),i||function(e,t,n){for(var i=0;i<CC.length;i++){var r=CC[i];null!=(o=e.getAttribute(r))&&(t[TC[r]]=o)}for(i=0;i<AC.length;i++){var o;r=AC[i],null!=(o=e.getAttribute(r))&&(n[IC[r]]=o)}}(e,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=zC(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=zC(o,"stroke",a.stroke,n)),z(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=a[e]&&(o.style[e]=parseFloat(a[e]))})),z(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=a[e]&&(o.style[e]=a[e])})),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=B(VC(a.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var NC=/^url\(\s*#(.*?)\)/;function zC(e,t,n,i){var r=n&&n.match(NC);if(!r)return"none"===n&&(n=null),n;var o=ce(r[1]);i.push([e,t,o])}var BC=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function VC(e){return e.match(BC)||[]}var FC=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,GC=Math.PI/180;var HC=/([^\s:;]+)\s*:\s*([^:;]+)/g;function WC(e,t,n){var i,r=e.getAttribute("style");if(r)for(HC.lastIndex=0;null!=(i=HC.exec(r));){var o=i[1],a=_e(TC,o)?TC[o]:null;a&&(t[a]=i[2]);var s=_e(IC,o)?IC[o]:null;s&&(n[s]=i[2])}}function jC(e,t){var n=t.width/e.width,i=t.height/e.height,r=Math.min(n,i);return{scale:r,x:-(e.x+e.width/2)*r+(t.x+t.width/2),y:-(e.y+e.height/2)*r+(t.y+t.height/2)}}var $C=ve(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),YC=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=ve(),this._freedGraphics=[],this._mapName=e,this._parsedXML=MC(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=function(e){var t=[],n=ve();return z(e,(function(e){if(null==e.namedFrom){var i=new Qw(e.name,e.el);t.push(i),n.set(e.name,i)}})),{regions:t,regionsMap:n}}(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n,i,r;try{ue(null!=(n=(t=e&&(i=e,r={ignoreViewBox:!0,ignoreRootClip:!0},(new DC).parse(i,r))||{}).root))}catch(e){throw new Error("Invalid svg format\n"+e.message)}var o=new Fr;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=t.width,s=t.height,l=t.viewBoxRect,u=this._boundingRect;if(!u){var c=void 0,d=void 0,p=void 0,h=void 0;if(null!=a?(c=0,p=a):l&&(c=l.x,p=l.width),null!=s?(d=0,h=s):l&&(d=l.y,h=l.height),null==c||null==d){var f=n.getBoundingRect();null==c&&(c=f.x,p=f.width),null==d&&(d=f.y,h=f.height)}u=this._boundingRect=new Bt(c,d,p,h)}if(l){var g=jC(l,u);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new Js({shape:u.plain()}));var m=[];return z(t.named,(function(e){var t;null!=$C.get(e.svgNodeTagLower)&&(m.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse((function(e){e.silent=!1})))})),{root:o,boundingRect:u,named:m}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();for(var XC=[126,25],qC="南海诸岛",UC=[[[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]]],ZC=0;ZC<UC.length;ZC++)for(var KC=0;KC<UC[ZC].length;KC++)UC[ZC][KC][0]/=10.5,UC[ZC][KC][1]/=-14,UC[ZC][KC][0]+=XC[0],UC[ZC][KC][1]+=XC[1];var JC={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};var QC=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var eI=function(){function e(e,t,n){var i;this.type="geoJSON",this._parsedMap=ve(),this._mapName=e,this._specialAreas=n,this._geoJSON=X(i=t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:tI(i)})}var r=ve(),o=[];return z(n.regions,(function(t){var n=t.name;e&&_e(e,n)&&(t=t.cloneShallow(n=e[n])),o.push(t),r.set(n,t)})),{regions:o,boundingRect:n.boundingRect||new Bt(0,0,0,0),regionsMap:r}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,i=this._geoJSON;try{t=i?n_(i,e):[]}catch(e){throw new Error("Invalid geoJson format\n"+e.message)}return function(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===qC)return;t.push(new Jw(qC,B(UC,(function(e){return{type:"polygon",exterior:e}})),XC))}}(n,t),z(t,(function(e){var t=e.name;(function(e,t){if("china"===e){var n=JC[t.name];if(n){var i=t.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,t.setCenter(i)}}})(n,e),function(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:QC[0]})}(n,e);var i=this._specialAreas&&this._specialAreas[t];i&&e.transformTo(i.left,i.top,i.width,i.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function tI(e){for(var t,n=0;n<e.length;
vendor: 4,118 bytes, line 2
2n++){var i=e[n].getBoundingRect();(t=t||i.clone()).union(i)}return t}var nI=ve(),iI=function(e,t,n){if(t.svg){var i=new YC(e,t.svg);nI.set(e,i)}else{var r=t.geoJson||t.geoJSON;r&&!t.features?n=t.specialAreas:r=t,i=new eI(e,r,n),nI.set(e,i)}},rI=function(e){return nI.get(e)},oI=function(e){var t=nI.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},aI=function(e,t,n){var i=nI.get(e);if(i)return i.load(t,n);console.error("Map "+e+" not exists. The GeoJSON of the map must be provided.")},sI=["rect","circle","line","ellipse","polygon","polyline","path"],lI=ve(sI),uI=ve(sI.concat(["g"])),cI=ve(sI.concat(["g"])),dI=qo();function pI(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function hI(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var fI=function(){function e(e){var t=new Fr;this.uid=Vd("ec_map_draw"),this._controller=new gC(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Fr),t.add(this._svgGroup=new Fr)}return e.prototype.draw=function(e,t,n,i,r){var o="geo"===e.mainType,a=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),d=c.raw,p=c.roam;!l.childAt(0)||r?(u.x=p.x,u.y=p.y,u.scaleX=p.scaleX,u.scaleY=p.scaleY,u.dirty()):Ic(u,p,e);var h=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:h,isGeo:o,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ve(),n=ve(),i=this._regionsGroup,r=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function c(e){for(var t=[],n=!l&&s&&s.project,i=0;i<e.length;++i){var r=u(e[i],n);r&&t.push(r)}return t}function d(e){return{shape:{points:c(e)}}}i.removeAll(),z(e.geo.regions,(function(r){var c=r.name,p=t.get(c),h=n.get(c)||{},f=h.dataIdx,g=h.regionModel;if(!p){p=t.set(c,new Fr),i.add(p),f=a?a.indexOfName(c):null;var m=(g=e.isGeo?o.getRegionModel(c):a?a.getItemModel(f):null).get("silent",!0);null!=m&&(p.silent=m),n.set(c,{dataIdx:f,regionModel:g})}var v=[],y=[];z(r.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=wI(t,l)),z(t,(function(e){v.push(new tc(d(e)))}))}else{var n=e.points;l&&(n=wI(n,l,!0)),z(n,(function(e){y.push(new ic(d(e)))}))}}));var x=u(r.getCenter(),s&&s.project);function w(t,n){if(t.length){var i=new hc({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});p.add(i),gI(e,i,f,g),mI(e,i,c,g,o,f,x),n&&(hI(i),z(i.states,hI))}}w(v),w(y,!0)})),t.each((function(t,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;vI(e,t,i,s,o,a),yI(e,t,i,s,o),xI(e,t,i,s,o)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=ve(),r=!1;z(this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);null!=lI.get(s)&&l instanceof Ba&&gI(e,l,u,c),l instanceof Ba&&(l.culling=!0);var d=c.get("silent",!0);null!=d&&(l.silent=d),l.z2EmphasisLift=0,t.namedFrom||(null!=cI.get(s)&&mI(e,l,n,c,o,u,null),vI(e,l,n,c,o,u),yI(e,l,n,c,o),null!=uI.get(s)&&("self"===xI(e,l,n,c,o)&&(r=!0),(i.get(n)||i.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(r,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){Fl(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=n&&(t.opacity=n),e.ensureState("emphasis")}}
vendor: 5,224 bytes, line 2
2))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(e);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=rI(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=rI(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}r.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,xC(o,e.dx,e.dy),n.dispatchAction(k(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,wC(o,e.scale,e.originX,e.originY),n.dispatchAction(k(s(),{totalZoom:o.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(t,r,o){return i.containPoint([r,o])&&!SC(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=dI(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,i){var r=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){r._mouseDownFlag=!0})),t.on("click",(function(e){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},e}();function gI(e,t,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=pI(r),u=pI(o),c=pI(s),d=pI(a),p=e.data;if(p){var h=p.getItemVisual(n,"style"),f=p.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),f&&(l.decal=Lv(f,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=d,Fl(t)}function mI(e,t,n,i,r,o,a){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var d=l?n:o,p=void 0;(!s||o>=0)&&(p=r);var h=a?{normal:{align:"center",verticalAlign:"middle"}}:null;hd(t,fd(i),{labelFetcher:p,labelDataIndex:d,defaultText:n},h);var f=t.getTextContent();if(f&&(dI(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function vI(e,t,n,i,r,o){e.data?e.data.setItemGraphicEl(o,t):fl(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function yI(e,t,n,i,r){e.data||ad({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function xI(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return iu(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&function(e,t,n){var i=fl(e);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=n}(t,r,n),a}function wI(e,t,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),z(e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}var _I=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id)(o=this._mapDraw)&&r.add(o.group);else if(e.needsDrawMap){var o=this._mapDraw||new fI(n);r.add(o.group),o.draw(e,t,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,r=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var o=i.getItemLayout(n);
vendor: 4,373 bytes, line 2
2if(o&&o.point){var a=o.point,s=o.offset,l=new Pu({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var u=e.mainSeries.getData(),c=i.getName(n),d=u.indexOfName(c),p=i.getItemModel(n),h=p.getModel("label"),f=u.getItemGraphicEl(d);hd(l,fd(p),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:c}),l.disableLabelAnimation=!0,h.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(e){Bl(l,e)}}r.add(l)}}}))},t.type="map",t}(Yg),bI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return i(t,e),t.prototype.getInitialData=function(e){for(var t=qM(this,{coordDimensions:["value"],encodeDefaulter:j(dh,this)}),n=ve(),i=[],r=0,o=t.count();r<o;r++){var a=t.getName(r);n.set(a,r)}return z(aI(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,(function(e){var r,o=e.name,a=n.get(o),s=e.properties&&e.properties.echartsStyle;null==a?(r={name:o},i.push(r)):r=t.getRawDataItem(a),s&&A(r,s)})),t.appendData(i),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),r=this.getRawValue(e),o=i.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return yg("section",{header:s.join(", "),noHeader:!s.length,blocks:[yg("nameValue",{name:o,value:r})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=rv(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Og);function SI(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)})),z(t,(function(e,t){for(var n=function(e,t){var n={};return z(e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var r="ec-"+e.getName(i);n[r]=n[r]||[],isNaN(t)||n[r].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,r){for(var o="ec-"+e[0].getName(r),a=0,s=1/0,l=-1/0,u=n[o].length,c=0;c<u;c++)s=Math.min(s,n[o][c]),l=Math.max(l,n[o][c]),a+=n[o][c];return 0===u?NaN:"min"===t?s:"max"===t?l:"average"===t?a/u:a}))}(B(e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=0===i&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]}))}function MI(e){var t={};e.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var r={};z(n.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var o=i.getName(t),a=n.getRegion(o);if(a&&!isNaN(e)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(t,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};
vendor: 32,094 bytes, line 2
2n.showLabel=!r[t],o.setItemLayout(e,n)})),t[i]=!0}}))}var TI=We,CI=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new yr,n._rawTransformable=new yr,n.name=t,n}return i(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new Bt(e,t,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,i){this._transformTo(e,t,n,i),this._viewRect=new Bt(e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Bt(e,t,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[Jr(e[0],t.getWidth()),Jr(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=We([],i,e),n=We([],n,e),t.originX=i[0],t.originY=i[1],t.x=n[0]-i[0],t.y=n[1]-i[1],t.scaleX=t.scaleY=r,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),_t(this.transform||(this.transform=[]),t.transform||[1,0,0,1,0,0]),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],Ct(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new yr;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?TI(n,e,i):Ce(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?TI([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=II(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=II(t);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(yr);function II(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var AI={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},DI=["lng","lat"],kI=function(e){function t(t,n,i){var r=e.call(this,t)||this;r.dimensions=DI,r.type="geo",r._nameCoordMap=ve(),r.map=n;var o,a=i.projection,s=aI(n,i.nameMap,i.nameProperty),l=rI(n),u=r.resourceType=l?l.type:null,c=r.regions=s.regions,d=AI[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,a&&("geoSVG"===u&&(To("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),a=null),a.project&&a.unproject||(To("project and unproject must be both provided in the projeciton."),a=null)),r.projection=a,a)for(var p=0;p<c.length;p++){var h=c[p].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:oe(i.aspectScale,d.aspectScale),r._invertLongitute=!a&&d.invertLongitute,r}return i(t,e),t.prototype._transformTo=function(e,t,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 Bt(e,t,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(X(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,i){return e.prototype.dataToPoint.call(this,t,n,i)},t.prototype.convertToPixel=function(e,t,n){var i=LI(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=LI(t);return i===this?i.pointToData(n):null},t}(CI);function LI(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Jo).models[0]||{}).coordinateSystem:null}function EI(e,t){var n=e.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],u=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var c=function(e,t,n,a){for(var s=n-e,l=a-t,u=0;u<=100;u++){var c=u/100,d=o.project([e+s*c,t+l*c]);je(i,i,d),$e(r,r,d)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else console.error("Invalid boundingCoords")}var d,p,h,f=this.getBoundingRect(),g=e.get("layoutCenter"),m=e.get("layoutSize"),v=t.getWidth(),y=t.getHeight(),x=f.width/f.height*this.aspectScale,w=!1;if(g&&m&&(d=[Jr(g[0],v),Jr(g[1],y)],p=Jr(m,Math.min(v,y)),isNaN(d[0])||isNaN(d[1])||isNaN(p)?console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):w=!0),w)h={},x>1?(h.width=p,h.height=p/x):(h.height=p,h.width=p*x),h.y=d[1]-h.height/2,h.x=d[0]-h.width/2;else{var _=e.getBoxLayoutParams();_.aspect=x,h=Fp(_,{width:v,height:y})}this.setViewRect(h.x,h.y,h.width,h.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}R(kI,CI);var PI=new(function(){function e(){this.dimensions=DI}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,r){var o=e.get("map"),a=new kI(o+r,o,k({nameMap:e.get("nameMap")},i(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=EI,a.resize(e,t)})),e.eachSeries((function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),z(r,(function(e,r){var o=B(e,(function(e){return e.get("nameMap")})),a=new kI(r,r,k({nameMap:D(o)},i(e[0])));a.zoomLimit=re.apply(null,B(e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=EI,a.resize(e[0],t),z(e,(function(e){e.coordinateSystem=a,function(e,t){z(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),o=ve(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);return z(aI(t,n,i).regions,(function(e){var t=e.name,n=o.get(t),i=e.properties&&e.properties.echartsStyle;n||(n={name:t},r.push(n)),i&&A(n,i)})),r},e}()),OI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.init=function(e,t,n){var i=rI(e.map);if(i&&"geoJSON"===i.type){var r=e.itemStyle=e.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(e,n),Ro(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=PI.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=V(t.regions||[],(function(t,i){var r=i.name;return r&&(t.set(r,new zd(i,e,e.ecModel)),i.selected&&(n[r]=!0)),t}),ve()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new zd(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),i="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:e};return Y(i)?(r.status=t,i(r)):X(i)?i.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Xp);function RI(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function NI(e,t,n,i){var r=e.getZoom(),o=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(o):e.dataToPoint(o);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(RI(e,s),i)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(r*a,u),l)/r}e.scaleX*=a,e.scaleY*=a;var c=(t.originX-e.x)*(a-1),d=(t.originY-e.y)*(a-1);e.x-=c,e.y-=d,e.updateTransform(),e.setCenter(RI(e,s),i),e.setZoom(a*r)}return{center:e.getCenter(),zoom:e.getZoom()}}var zI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return i(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,i){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new fI(n));var r=this._mapDraw;r.draw(e,t,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=e.get("silent"),this.group.add(r.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;Ym(e.target,(function(e){return null!=(t=fl(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var i=this;this._mapDraw.group.traverse((function(e){var t=fl(e).eventData;if(t)return i._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Hg);function BI(e,t,n){iI(e,t,n)}function VI(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name),z(n.coordinateSystem.regions,(function(e){i[e.name]=n.isSelected(e.name)||!1}));var o=[];z(i,(function(e,t){i[t]&&o.push(t)})),r.push({geoIndex:n.componentIndex,name:o})})),{selected:i,allSelected:r,name:e.name}}))}e.registerCoordinateSystem("geo",PI),e.registerComponentModel(OI),e.registerComponentView(zI),e.registerImpl("registerMap",BI),e.registerImpl("getMap",(function(e){return oI(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},(function(t){var r=t.coordinateSystem;if("geo"===r.type){var o=NI(r,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===i&&z(t.seriesGroup,(function(e){e.setCenter(o.center),e.setZoom(o.zoom)}))}}))}))}function FI(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){!function(e){for(var t=e.children,n=t.length,i=0,r=0;--n>=0;){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=function(e,t,n,i){if(t){for(var r=e,o=e,a=o.parentNode.children[0],s=t,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,d=s.hierNode.modifier;s=jI(s),o=$I(o),s&&o;){r=jI(r),a=$I(a),r.hierNode.ancestor=e;var p=s.hierNode.prelim+d-o.hierNode.prelim-u+i(s,o);p>0&&(XI(YI(s,e,n),e,p),u+=p,l+=p),d+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!jI(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=d-l),o&&!$I(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function GI(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function HI(e){return arguments.length?e:qI}function WI(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function jI(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function $I(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function YI(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function XI(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function qI(e,t){return e.parentNode===t.parentNode?1:2}var UI=function(){this.parentPoint=[],this.childPoints=[]},ZI=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new UI},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],a=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Jr(t.forkPosition,1),d=[];d[l]=r[l],d[u]=r[u]+(a[u]-r[u])*c,e.moveTo(r[0],r[1]),e.lineTo(d[0],d[1]),e.moveTo(o[0],o[1]),d[l]=o[l],e.lineTo(d[0],d[1]),d[l]=a[l],e.lineTo(d[0],d[1]),e.lineTo(a[0],a[1]);for(var p=1;p<i-1;p++){var h=n[p];e.moveTo(h[0],h[1]),d[l]=h[l],e.lineTo(d[0],d[1])}},t}(Fs),KI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Fr,n}return i(t,e),t.prototype.init=function(e,t){this._controller=new gC(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var i=e.getData(),r=e.layoutInfo,o=this._mainGroup;"radial"===e.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(e,n),this._updateController(e,t,n);var a=this._data;i.diff(a).add((function(t){JI(i,t)&&QI(i,t,null,o,e)})).update((function(t,n){var r=a.getItemGraphicEl(n);JI(i,t)?QI(i,t,r,o,e):r&&nA(a,n,r,o,e)})).remove((function(t){var n=a.getItemGraphicEl(t);n&&nA(a,t,n,o,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl((function(t,i){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})}))})),this._data=i},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),i=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])}));var r=[],o=[];Ua(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=e.coordinateSystem=new CI;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!SC(t,n,e)})),r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){xC(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){wC(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1;return((t.getZoom()-1)*n+1)/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Yg);function JI(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function QI(e,t,n,i,r){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=e.tree.root,d=a.parentNode===c?a:a.parentNode||a,p=e.getItemGraphicEl(d.dataIndex),h=d.getLayout(),f=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:h,g=a.getLayout();o?((n=new AS(e,t,null,{symbolInnerColor:u,useNameLabel:!0})).x=f.x,n.y=f.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Ic(n,{x:g.x,y:g.y},r);var m=n.getSymbolPath();if("radial"===r.get("layout")){var v=c.children[0],y=v.getLayout(),x=v.children.length,w=void 0,_=void 0;if(g.x===y.x&&!0===a.isExpand&&v.children.length){var b={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};(w=Math.atan2(b.y-y.y,b.x-y.x))<0&&(w=2*Math.PI+w),(_=b.x<y.x)&&(w-=Math.PI)}else(w=Math.atan2(g.y-y.y,g.x-y.x))<0&&(w=2*Math.PI+w),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(_=g.x<y.x)&&(w-=Math.PI):(_=g.x>y.x)||(w-=Math.PI);var S=_?"left":"right",M=s.getModel("label"),T=M.get("rotate"),C=T*(Math.PI/180),I=m.getTextContent();I&&(m.setTextConfig({position:M.get("position")||S,rotation:null==T?-w:C,origin:"center"}),I.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),D="relative"===A?ye(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;D&&(fl(n).focus=D),function(e,t,n,i,r,o,a,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),d=e.getOrient(),p=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(g||(g=i.__edge=new cc({shape:iA(c,d,p,r,r)})),Ic(g,{shape:iA(c,d,p,o,a)},e));else if("polyline"===u){if("orthogonal"!==c)throw new Error("The polyline edgeShape can only be used in orthogonal layout");if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var m=t.children,v=[],y=0;y<m.length;y++){var x=m[y].getLayout();v.push([x.x,x.y])}g||(g=i.__edge=new ZI({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:d,forkPosition:h}})),Ic(g,{shape:{parentPoint:[a.x,a.y],childPoints:v}},e)}}g&&("polyline"!==u||t.isExpand)&&(g.useStyle(L({strokeNoScale:!0,fill:null},f)),su(g,l,"lineStyle"),Fl(g),s.add(g))}(r,a,c,n,f,h,g,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);i&&1===i.hoverState||Bl(n.__edge,t)}})}function eA(e,t,n,i,r){var o=tA(t.tree.root,e),a=o.source,s=o.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var u=t.getItemGraphicEl(a.dataIndex).__edge,c=l.__edge||(!1===a.isExpand||1===a.children.length?u:void 0),d=i.get("edgeShape"),p=i.get("layout"),h=i.get("orient"),f=i.get(["lineStyle","curveness"]);c&&("curve"===d?kc(c,{shape:iA(p,h,f,s,s),style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}):"polyline"===d&&"orthogonal"===i.get("layout")&&kc(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}))}}function tA(e,t){for(var n,i=t.parentNode===e?t:t.parentNode||t;null==(n=i.getLayout());)i=i.parentNode===e?i:i.parentNode||i;return{source:i,sourceLayout:n}}function nA(e,t,n,i,r){var o=e.tree.getNodeByDataIndex(t),a=tA(e.tree.root,o).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};kc(n,{x:a.x+1,y:a.y+1},r,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach((function(t){eA(t,e,i,r,s)})),eA(o,e,i,r,s)}function iA(e,t,n,i,r){var o,a,s,l,u,c,d,p;if("radial"===e){u=i.rawX,d=i.rawY,c=r.rawX,p=r.rawY;var h=WI(u,d),f=WI(u,d+(p-d)*n),g=WI(c,p+(d-p)*n),m=WI(c,p);return{x1:h.x||0,y1:h.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 u=i.x,d=i.y,c=r.x,p=r.y,"LR"!==t&&"RL"!==t||(o=u+(c-u)*n,a=d,s=c+(u-c)*n,l=p),"TB"!==t&&"BT"!==t||(o=u,a=d+(p-d)*n,s=c,l=p+(d-p)*n),{x1:u,y1:d,x2:c,y2:p,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var rA=qo();function oA(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,dA(t,n,e),z(n,(function(n){z(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,j(aA,e))}))})),t.wrapMethod("cloneShallow",j(lA,e)),z(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,j(sA,e))})),ue(n[t.dataType]===t)}function aA(e,t){if(rA(i=this).mainData===i){var n=k({},rA(this).datas);n[this.dataType]=t,dA(t,n,e)}else pA(t,this.dataType,rA(this).mainData,e);var i;return t}function sA(e,t){return e.struct&&e.struct.update(),t}function lA(e,t){return z(rA(t).datas,(function(n,i){n!==t&&pA(n.cloneShallow(),i,t,e)})),t}function uA(e){var t=rA(this).mainData;return null==e||null==t?t:rA(t).datas[e]}function cA(){var e=rA(this).mainData;return null==e?[{data:e}]:B(H(rA(e).datas),(function(t){return{type:t,data:rA(e).datas[t]}}))}function dA(e,t,n){rA(e).datas={},z(t,(function(t,i){pA(t,i,e,n)}))}function pA(e,t,n,i){rA(n).datas[t]=e,rA(e).mainData=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=uA,e.getLinkedDataAll=cA}var hA=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){Y(e)&&(n=t,t=e,e=null),X(e=e||{})&&(e={order:e});var i,r=e.order||"preorder",o=this[e.attr||"children"];"preorder"===r&&(i=t.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(e,t,n);"postorder"===r&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].getNodeById(e);if(r)return r}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].contains(e);if(r)return r}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),fA=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var r=new e(n),o=[],a=1;(function e(t,n){var i=t.value;a=Math.max(a,$(i)?i.length:1),o.push(t);var s=new hA(Ho(t.name,""),r);n?function(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}(s,n):r.root=s,r._nodes.push(s);var l=t.children;if(l)for(var u=0;u<l.length;u++)e(l[u],s)})(t),r.root.updateDepthAndHeight(0);var s=Cx(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new Tx(s,n);return l.initData(o),i&&i(l),oA({mainData:l,struct:r,structAttr:"tree"}),r.update(),r},e}();function gA(e,t,n){if(e&&P(t,e.type)>=0){var i=n.getData().tree.root,r=e.targetNode;if(X(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function mA(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function vA(e,t){return P(mA(e),t)>=0}function yA(e,t){for(var n=[];e;){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var xA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return i(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new zd(n,this,this.ecModel),r=fA.createTree(t,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}));var o=0;r.eachNode("preorder",(function(e){e.depth>o&&(o=e.depth)}));var a=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:o;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=a})),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(e),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return yg("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=yA(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Og);function wA(e,t){for(var n,i=[e];n=i.pop();)if(t(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function _A(e,t){e.eachSeriesByType("tree",(function(e){!function(e,t){var n=function(e,t){return Fp(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=HI((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(r=n.width,o=n.height,a=HI());var s=e.getData().tree.root,l=s.children[0];if(l){(function(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[t];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(e,t,n){for(var i,r=[e],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();)t(i,n)}(l,FI,a),s.hierNode.modifier=-l.hierNode.prelim,wA(l,GI);var u=l,c=l,d=l;wA(l,(function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>c.getLayout().x&&(c=e),e.depth>d.depth&&(d=e)}));var p=u===c?1:a(u,c)/2,h=p-u.getLayout().x,f=0,g=0,m=0,v=0;if("radial"===i)f=r/(c.getLayout().x+p+h),g=o/(d.depth-1||1),wA(l,(function(e){m=(e.getLayout().x+h)*f,v=(e.depth-1)*g;var t=WI(m,v);e.setLayout({x:t.x,y:t.y,rawX:m,rawY:v},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+p+h),f=r/(d.depth-1||1),wA(l,(function(e){v=(e.getLayout().x+h)*g,m="LR"===y?(e.depth-1)*f:r-(e.depth-1)*f,e.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(f=r/(c.getLayout().x+p+h),g=o/(d.depth-1||1),wA(l,(function(e){m=(e.getLayout().x+h)*f,v="TB"===y?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:m,y:v},!0)})))}}}(e,t)}))}function bA(e){e.eachSeriesByType("tree",(function(e){var t=e.getData();t.tree.eachNode((function(e){var n=e.getModel().getModel("itemStyle").getItemStyle();k(t.ensureUniqueItemVisual(e.dataIndex,"style"),n)}))}))}var SA=["treemapZoomToNode","treemapRender","treemapMove"];function MA(e){var t=e.getData().tree,n={};t.eachNode((function(t){for(var i=t;i&&i.depth>
vendor: 5,780 bytes, line 2
21;)i=i.parentNode;var r=bh(e.ecModel,i.name||i.dataIndex+"",n);t.setVisual("decal",r)}))}var TA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return i(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};CA(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new zd({itemStyle:r},this,t),a=B((i=e.levels=function(e,t){var n=Oo(t.get("color")),i=Oo(t.get(["aria","decal","decals"]));if(n){var r,o;z(e=e||[],(function(e){var t=new zd(e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var a=e[0]||(e[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),e}}(i,t))||[],(function(e){return new zd(e,o,t)}),this),s=fA.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?a[n.depth]:null;return e.parentModel=i||o,e}))}));return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e);return yg("nameValue",{name:i.getName(e),value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=yA(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},k(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=ve(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){MA(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.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:[]},t}(Og);function CA(e){var t=0;z(e.children,(function(e){CA(e);var n=e.value;$(n)&&(n=n[0]),t+=n}));var n=e.value;$(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),$(e.value)?e.value[0]=n:e.value=n}var IA=function(){function e(e){this.group=new Fr,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.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"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(e,c,a,s,l,u,i),Gp(o,c.pos,c.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=Ho(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,t.emptyItemWidth);t.totalWidth+=a+8,t.renderList.push({node:i,text:r,width:a})}},e.prototype._renderContent=function(e,t,n,i,r,o,a){for(var s=0,l=t.emptyItemWidth,u=e.get(["breadcrumb","height"]),c=(w=t.pos,_=t.box,b=void 0,S=void 0,M=void 0,T=void 0,C=void 0,I=void 0,A=void 0,S=_.width,M=_.height,T=Jr(w.left,S),C=Jr(w.top,M),I=Jr(w.right,S),A=Jr(w.bottom,M),(isNaN(T)||isNaN(parseFloat(w.left)))&&(T=0),(isNaN(I)||isNaN(parseFloat(w.right)))&&(I=S),(isNaN(C)||isNaN(parseFloat(w.top)))&&(C=0),(isNaN(A)||isNaN(parseFloat(w.bottom)))&&(A=M),b=Ip(b||0),{width:Math.max(I-T-b[1]-b[3],0),height:Math.max(A-C-b[0]-b[2],0)}),d=t.totalWidth,p=t.renderList,h=i.getModel("itemStyle").getItemStyle(),f=p.length-1;f>=0;f--){var g=p[f],m=g.node,v=g.width,y=g.text;d>c.width&&(d-=v-l,v=l,y=null);var x=new tc({shape:{points:AA(s,0,v,u,f===p.length-1,0===f)},style:L(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new tl({style:gd(r,{text:y})}),textConfig:{position:"inside"},z2:1e5,onclick:j(a,m)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=gd(o,{text:y}),x.ensureState("emphasis").style=h,iu(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),DA(x,e,m),s+=v+8}var w,_,b,S,M,T,C,I,A},e.prototype.remove=function(){this.group.removeAll()},e}();function AA(e,t,n,i,r,o){var a=[[r?e:e-5,t],[e+n,t],[e+n,t+i],[r?e:e-5,t+i]];return!o&&a.splice(2,0,[e+n+5,t+i/2]),!r&&a.push([e,t+i/2]),a}function DA(e,t,n){fl(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&yA(n,t)}}var kA=function(){function e(){this._storage=[],this._elExistsMap={}}
vendor: 4,176 bytes, line 2
2return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._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},e}();var LA=Fr,EA=Js,PA="label",OA="upperLabel",RA=ha([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),NA=function(e){var t=RA(e);return t.stroke=t.fill=t.lineWidth=null,t},zA=qo(),BA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return i(t,e),t.prototype.render=function(e,t,n,i){if(!(P(t.findComponents({mainType:"series",subType:"treemap",query:i}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var r=gA(i,["treemapZoomToNode","treemapRootToNode"],e),o=i&&i.type,a=e.layoutInfo,s=!this._oldTree,l=this._storage,u="treemapRootToNode"===o&&r&&l?{rootNodeGroup:l.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,c=this._giveContainerGroup(a),d=e.get("animation"),p=this._doRender(c,e,u);!d||s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?p.renderFinally():this._doAnimation(c,p,e,u),this._resetController(n),this._renderBreadcrumb(e,n,r)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new LA,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i=t.getData().tree,r=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function u(e,i,r,u){return function(e,t,n,i,r,o,a,s,l,u){if(a){var c=a.getLayout(),d=e.getData(),p=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var h=c.width,f=c.height,g=c.borderWidth,m=c.invisible,v=a.getRawIndex(),y=s&&s.getRawIndex(),x=a.viewChildren,w=c.upperHeight,_=x&&x.length,b=p.getModel("itemStyle"),S=p.getModel(["emphasis","itemStyle"]),M=p.getModel(["blur","itemStyle"]),T=p.getModel(["select","itemStyle"]),C=b.get("borderRadius")||0,I=H("nodeGroup",LA);if(I){if(l.add(I),I.x=c.x||0,I.y=c.y||0,I.markRedraw(),zA(I).nodeWidth=h,zA(I).nodeHeight=f,c.isAboveViewRoot)return I;var A=H("background",EA,u,20);A&&z(I,A,_&&c.upperLabelHeight);var D=p.getModel("emphasis"),L=D.get("focus"),E=D.get("blurScope"),P=D.get("disabled"),O="ancestor"===L?a.getAncestorsIndices():"descendant"===L?a.getDescendantIndices():L;if(_)uu(I)&&lu(I,!1),A&&(lu(A,!P),d.setItemGraphicEl(a.dataIndex,A),ru(A,O,E));else{var R=H("content",EA,u,30);R&&B(I,R),A.disableMorphing=!0,A&&uu(A)&&lu(A,!1),lu(I,!P),d.setItemGraphicEl(a.dataIndex,I);var N=p.getShallow("cursor");N&&R.attr("cursor",N),ru(I,O,E)}return I}}}function z(t,n,i){var r=fl(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:h,height:f,r:C}),m)V(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=NA(b);l.fill=s;var u=RA(S);u.fill=S.get("borderColor");var c=RA(M);c.fill=M.get("borderColor");var d=RA(T);if(d.fill=T.get("borderColor"),i){var p=h-2*g;F(n,s,o.opacity,{x:g,y:0,width:p,height:w})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=d,Fl(n)}t.add(n)}function B(t,n){var i=fl(n);i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(h-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)V(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=NA(b);u.fill=l,u.decal=s.decal;var c=RA(S),d=RA(M),p=RA(T);F(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=d,n.ensureState("select").style=p,Fl(n)}t.add(n)}function V(e){!e.invisible&&o.push(e)}
vendor: 11,025 bytes, line 2
2function F(t,n,i,r){var o=p.getModel(r?OA:PA),s=Ho(p.get("name"),null),l=o.getShallow("show");hd(t,fd(p,r?OA:PA),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var d=u.style,h=le(d.padding||0);r&&(t.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-h[1]-h[3],0),n=Math.max((r?r.height:t.shape.height)-h[0]-h[2],0);d.width===e&&d.height===n||u.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",G(d,r,c);var f=u.getState("emphasis");G(f?f.style:null,r,c)}}function G(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function H(e,i,o,a){var s=null!=y&&n[e][y],l=r[e];return s?(n[e][y]=null,W(l,s)):m||((s=new i)instanceof Ba&&(s.z2=function(e,t){return 100*e+t}(o,a)),j(l,s)),t[e][v]=s}function W(e,t){var n=e[v]={};t instanceof LA?(n.oldX=t.x,n.oldY=t.y):n.oldShape=k({},t.shape)}function j(e,t){var n=e[v]={},o=a.parentNode,s=t instanceof Fr;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}(t,a,s,n,o,l,e,i,r,u)}!function e(t,n,i,r,o){function a(e){return e.getId()}function s(a,s){var l=null!=a?t[a]:null,c=null!=s?n[s]:null,d=u(l,c,i,o);d&&e(l&&l.viewChildren||[],c&&c.viewChildren||[],d,r,o+1)}r?(n=t,z(t,(function(e,t){!e.isRemoved()&&s(t,t)}))):new ex(n,t,a,a).add(s).update(s).remove(j(s,null)).execute()}(i.root?[i.root]:[],r&&r.root?[r.root]:[],e,i===r||!r,0);var c=function(e){var t={nodeGroup:[],background:[],content:[]};return e&&z(e,(function(e,n){var i=t[n];z(e,(function(e){e&&(i.push(e),zA(e).willDelete=!0)}))})),t}(s);if(this._oldTree=i,this._storage=a,this._controllerHost){var d=this.seriesModel.layoutInfo,p=i.root.getLayout();p.width===d.width&&p.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:o,willDeleteEls:c,renderFinally:function(){z(c,(function(e){z(e,(function(e){e.parent&&e.parent.remove(e)}))})),z(l,(function(e){e.invisible=!0,e.dirty()}))}}},t.prototype._doAnimation=function(e,t,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Y(r)?0:r)||0,s=(Y(o)?null:o)||"cubicOut",l=new kA;z(t.willDeleteEls,(function(e,t){z(e,(function(e,n){if(!e.invisible){var r,o=e.parent,u=zA(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,d=0;u.willDelete||(c=u.nodeWidth/2,d=u.nodeHeight/2),r="nodeGroup"===t?{x:c,y:d,style:{opacity:0}}:{shape:{x:c,y:d,width:0,height:0},style:{opacity:0}}}r&&l.add(e,r,a,0,s)}}))})),z(this._storage,(function(e,n){z(e,(function(e,i){var r=t.lastsForAnimation[n][i],o={};r&&(e instanceof Fr?null!=r.oldX&&(o.x=e.x,o.y=e.y,e.x=r.oldX,e.y=r.oldY):(r.oldShape&&(o.shape=k({},e.shape),e.setShape(r.oldShape)),r.fadein?(e.setStyle("opacity",0),o.style={opacity:1}):1!==e.style.opacity&&(o.style={opacity:1})),l.add(e,o,a,0,s))}))}),this),this._state="animating",l.finished(W((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),t||((t=this._controller=new gC(e.getZr())).enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),t.on("pan",W(this._onPan,this)),t.on("zoom",W(this._onZoom,this)));var i=new Bt(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,n){return i.contain(t,n)}))},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,i=e.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 Bt(o.x,o.y,o.width,o.height),l=this._controllerHost;a=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=i,a){var c=a.min||0,d=a.max||1/0;u=Math.max(Math.min(d,u),c)}var p=u/l.zoom;l.zoom=u;var h=this.seriesModel.layoutInfo,f=[1,0,0,1,0,0];St(f,f,[-(t-=h.x),-(n-=h.y)]),Tt(f,f,[p,p]),St(f,f,[t,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}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._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&&Op(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(n={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new IA(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(vA(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){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(e,t),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;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(Yg);var VA=z,FA=Z,GA=-1,HA=function(){function e(t){var n=t.mappingMethod,i=t.type,r=this.option=I(t);this.type=i,this.mappingMethod=n,this._normalizeData=JA[n];var o=e.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(WA(r),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,z(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}(r)):"category"===n?r.categories?function(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(VA(t,(function(e,t){n[e]=t})),!$(i)){var r=[];Z(i)?VA(i,(function(e,t){var i=n[t];r[null!=i?i:GA]=e})):r[-1]=i,i=KA(e,r)}for(var o=t.length-1;o>=0;o--)null==i[o]&&(delete n[t[o]],t.pop())}(r):WA(r,!0):(ue("linear"!==n||r.dataExtent),WA(r))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return W(this._normalizeData,this)},e.listVisualTypes=function(){return H(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){Z(e)?z(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var r,o=$(t)?[]:Z(t)?{}:(r=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(i,e,t);r?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,i={};return t&&VA(e.visualHandlers,(function(e,r){t.hasOwnProperty(r)&&(i[r]=t[r],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if($(e))e=e.slice();else{if(!FA(e))return[];var t=[];VA(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,r=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||X(s)&&s===e+"")return o;n&&d(s,o)}}for(o=0,a=t.length;o<a;o++){var l=t[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(QA(c[1],e,u[1]))return o}else if(u[1]===1/0){if(QA(c[0],u[0],e))return o}else if(QA(c[0],u[0],e)&&QA(c[1],e,u[1]))return o;n&&d(u[0],o),n&&d(u[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function d(t,n){var o=Math.abs(t-e);o<r&&(r=o,i=n)}},e.visualHandlers={color:{applyVisual:YA("color"),getColorMapper:function(){var e=this.option;return W("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),XA.call(this,e)}:function(t,n,i){var r=!!i;return!n&&(t=this._normalizeData(t)),i=Qn(t,e.parsedVisual,i),r?i:oi(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return oi(Qn(e,this.option.parsedVisual),"rgba")},category:XA,piecewise:function(e,t){var n=ZA.call(this,t);return null==n&&(n=oi(Qn(e,this.option.parsedVisual),"rgba")),n},fixed:qA}},colorHue:jA((function(e,t){return ii(e,t)})),colorSaturation:jA((function(e,t){return ii(e,null,t)})),colorLightness:jA((function(e,t){return ii(e,null,null,t)})),colorAlpha:jA((function(e,t){return ri(e,t)})),decal:{applyVisual:YA("decal"),_normalizedToVisual:{linear:null,category:XA,piecewise:null,fixed:null}},opacity:{applyVisual:YA("opacity"),_normalizedToVisual:UA([0,1])},liftZ:{applyVisual:YA("liftZ"),_normalizedToVisual:{linear:qA,category:qA,piecewise:qA,fixed:qA}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:$A,category:XA,piecewise:function(e,t){var n=ZA.call(this,t);return null==n&&(n=$A.call(this,e)),n},fixed:qA}},symbolSize:{applyVisual:YA("symbolSize"),_normalizedToVisual:UA([0,1])}},e}();function WA(e,t){var n=e.visual,i=[];Z(n)?VA(n,(function(e){i.push(e)})):null!=n&&i.push(n);t||1!==i.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(i[1]=i[0]),KA(e,i)}function jA(e){return{applyVisual:function(t,n,i){var r=this.mapValueToVisual(t);i("color",e(n("color"),r))},_normalizedToVisual:UA([0,1])}}function $A(e){var t=this.option.visual;return t[Math.round(Kr(e,[0,1],[0,t.length-1],!0))]||{}}function YA(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function XA(e){var t=this.option.visual;return t[this.option.loop&&e!==GA?e%t.length:e]}function qA(){return this.option.visual[0]}function UA(e){return{linear:function(t){return Kr(t,e,this.option.visual,!0)},category:XA,piecewise:function(t,n){var i=ZA.call(this,n);return null==i&&(i=Kr(t,e,this.option.visual,!0)),i},fixed:qA}}function ZA(e){var t=this.option,n=t.pieceList;
vendor: 9,439 bytes, line 2
2if(t.hasSpecialVisual){var i=n[HA.findPieceIndex(e,n)];if(i&&i.visual)return i.visual[this.type]}}function KA(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=B(t,(function(e){var t=Zn(e);return t||To("'"+e+"' is an illegal color, fallback to '#000000'",!0),t||[0,0,0,1]}))),t}var JA={linear:function(e){return Kr(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=HA.findPieceIndex(e,t,!0);if(null!=n)return Kr(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?GA:t},fixed:be};function QA(e,t,n){return e?t<=n:t<n}var eD=qo(),tD={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||nD(t,{},e.getViewRoot().getAncestors(),e)}};function nD(e,t,n,i){var r=e.getModel(),o=e.getLayout(),a=e.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel("itemStyle"),u=function(e,t,n){var i=k({},t),r=n.designatedVisualItemStyle;return z(["color","colorAlpha","colorSaturation"],(function(n){r[n]=t[n];var o=e.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}(l,t,i),c=a.ensureUniqueItemVisual(e.dataIndex,"style"),d=l.get("borderColor"),p=l.get("borderColorSaturation");null!=p&&(d=function(e,t){return null!=t?ii(t,null,null,e):null}(p,s=iD(u))),c.stroke=d;var h=e.viewChildren;if(h&&h.length){var f=function(e,t,n,i,r,o){if(o&&o.length){var a=oD(t,"color")||null!=r.color&&"none"!==r.color&&(oD(t,"colorAlpha")||oD(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:a.name,dataExtent:u,visual:a.range};"color"!==d.type||"index"!==c&&"id"!==c?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var p=new HA(d);return eD(p).drColorMappingBy=c,p}}}(0,r,o,0,u,h);z(h,(function(e,t){(e.depth>=n.length||e===n[e.depth])&&nD(e,function(e,t,n,i,r,o){var a=k({},t);if(r){var s=r.type,l="color"===s&&eD(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(r,u,e,t,f,i),n,i)}))}else s=iD(u),c.fill=s}}function iD(e){var t=rD(e,"color");if(t){var n=rD(e,"colorAlpha"),i=rD(e,"colorSaturation");return i&&(t=ii(t,null,null,i)),n&&(t=ri(t,n)),t}}function rD(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function oD(e,t){var n=e.get(t);return $(n)&&n.length?{name:t,range:n}:null}var aD=Math.max,sD=Math.min,lD=re,uD=z,cD=["itemStyle","borderWidth"],dD=["itemStyle","gapWidth"],pD=["upperLabel","show"],hD=["upperLabel","height"],fD={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),o=n.getHeight(),a=e.option,s=Fp(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Jr(lD(s.width,l[0]),r),c=Jr(lD(s.height,l[1]),o),d=i&&i.type,p=gA(i,["treemapZoomToNode","treemapRootToNode"],e),h="treemapRender"===d||"treemapMove"===d?i.rootRect:null,f=e.getViewRoot(),g=mA(f);if("treemapMove"!==d){var m="treemapZoomToNode"===d?function(e,t,n,i,r){var o,a=(t||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*e.option.zoomToNodeRatio;o=a.parentNode;){for(var c=0,d=o.children,p=0,h=d.length;p<h;p++)c+=d[p].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=o.getModel(),m=g.get(cD);(u+=4*m*m+(3*m+Math.max(m,xD(g)))*Math.pow(u,.5))>ao&&(u=ao),a=o}u<l&&(u=l);var v=Math.pow(u/l,.5);return[i*v,r*v]}(e,p,f,u,c):h?[h.width,h.height]:[u,c],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var y={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};f.hostTree.clearLayouts();var x={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};f.setLayout(x),gD(f,y,!1,0),x=f.getLayout(),uD(g,(function(e,t){var n=(g[t+1]||f).getValue();e.setLayout(k({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var w=e.getData().tree.root;w.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;for(var a=[o.width/2,o.height/2],s=r;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}(s,h,p),!0),e.setLayoutInfo(s),yD(w,new Bt(-s.x,-s.y,r,o),g,f,0)}};function gD(e,t,n,i){var r,o;if(!e.isRemoved()){var a=e.getLayout();r=a.width,o=a.height;var s=e.getModel(),l=s.get(cD),u=s.get(dD)/2,c=xD(s),d=Math.max(l,c),p=l-u,h=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0);var f=(r=aD(r-2*p,0))*(o=aD(o-p-h,0)),g=function(e,t,n,i,r,o){var a=e.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return e.viewChildren=[];!function(e,t){t&&e.sort((function(e,n){var i="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===i?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i}))}(a=F(a,(function(e){return!e.isRemoved()})),s);var u=function(e,t,n){for(var i=0,r=0,o=t.length;r<o;r++)i+=t[r].getValue();var a,s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],uD(t,(function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}(t,a,s);if(0===u.sum)return e.viewChildren=[];if(u.sum=function(e,t,n,i,r){if(!i)return n;for(var o=e.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*t<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}(t,n,u.sum,s,a),0===u.sum)return e.viewChildren=[];for(var c=0,d=a.length;c<d;c++){var p=a[c].getValue()/u.sum*n;a[c].setLayout({area:p})}return l&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0),e.viewChildren=a,e.setLayout({dataExtent:u.dataExtent},!0),a}(e,s,f,t,n,i);if(g.length){var m={x:p,y:h,width:r,height:o},v=sD(r,o),y=1/0,x=[];x.area=0;for(var w=0,_=g.length;w<_;){var b=g[w];x.push(b),x.area+=b.getLayout().area;var S=mD(x,v,t.squareRatio);S<=y?(w++,y=S):(x.area-=x.pop().getLayout().area,vD(x,v,m,u,!1),v=sD(m.width,m.height),x.length=x.area=0,y=1/0)}if(x.length&&vD(x,v,m,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(w=0,_=g.length;w<_;w++)gD(g[w],t,n,i+1)}}}function mD(e,t,n){for(var i=0,r=1/0,o=0,a=void 0,s=e.length;o<s;o++)(a=e[o].getLayout().area)&&(a<r&&(r=a),a>i&&(i=a));var l=e.area*e.area,u=t*t*n;return l?aD(u*i/l,l/(u*r)):1/0}function vD(e,t,n,i,r){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var d=0,p=e.length;d<p;d++){var h=e[d],f={},g=c?h.getLayout().area/c:0,m=f[l[a]]=aD(c-2*i,0),v=n[s[o]]+n[l[o]]-u,y=d===p-1||v<g?v:g,x=f[l[o]]=aD(y-2*i,0);f[s[a]]=n[s[a]]+sD(i,m/2),f[s[o]]=u+sD(i,x/2),u+=y,h.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function yD(e,t,n,i,r){var o=e.getLayout(),a=n[r],s=a&&a===e;if(!(a&&!s||r===n.length&&e!==i)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(o),isAboveViewRoot:s},!0);var l=new Bt(t.x-o.x,t.y-o.y,t.width,t.height);uD(e.viewChildren||[],(function(e){yD(e,l,n,i,r+1)}))}}function xD(e){return e.get(pD)?e.get(hD):0}function wD(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph().data,r=n.mapArray(n.getName);i.filterSelf((function(e){var n=i.getItemModel(e).getShallow("category");if(null!=n){U(n)&&(n=r[n]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(n))return!1}return!0}))}))}function _D(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.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=e.getColorFromPalette(o,t)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e).getShallow("category");if(null!=t){X(t)&&(t=r["ec-"+t]);var o=n.getItemVisual(t,"style");k(i.ensureUniqueItemVisual(e,"style"),o);for(var a=["symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)i.setItemVisual(e,a[s],n.getItemVisual(t,a[s]))}}))}))}function bD(e){return e instanceof Array||(e=[e,e]),e}function SD(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),i=bD(e.get("edgeSymbol")),r=bD(e.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",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var i=n.getItemModel(e),r=t.getEdgeByIndex(e),o=bD(i.getShallow("symbol",!0)),a=bD(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(k(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=r.node2.getVisual("style"),l.stroke=u&&u.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 MD="--\x3e",TD=function(e){return e.get("autoCurveness")||null},CD=function(e,t){var n=TD(e),i=20,r=[];if(U(n))i=n;else if($(n))return void(e.__curvenessList=n);t>i&&(i=t);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));e.__curvenessList=r},ID=function(e,t,n){var i=[e.id,e.dataIndex].join("."),r=[t.id,t.dataIndex].join(".");return[n.uid,i,r].join(MD)}
vendor: 4,602 bytes, line 2
2,AD=function(e){var t=e.split(MD);return[t[0],t[2],t[1]].join(MD)},DD=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function kD(e,t,n,i){var r=TD(t),o=$(r);if(!r)return null;var a=function(e,t){var n=ID(e.node1,e.node2,t);return t.__edgeMap[n]}(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=function(e,t){return DD(ID(e.node1,e.node2,t),t)+DD(ID(e.node2,e.node1,t),t)}(e,t);CD(t,u),e.lineStyle=e.lineStyle||{};var c=ID(e.node1,e.node2,t),d=t.__curvenessList,p=o||u%2?0:1;if(a.isForward)return d[p+s];var h=AD(c),f=DD(h,t),g=d[s+f+p];return i?o?r&&0===r[0]?(f+p)%2?g:-g:((f%2?0:1)+p)%2?g:-g:(f+p)%2?g:-g:d[s+f+p]}function LD(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),ED(n,e)}}function ED(e,t){e.eachEdge((function(e,n){var i=ae(e.getModel().get(["lineStyle","curveness"]),-kD(e,t,n,!0),0),r=Ie(e.node1.getLayout()),o=Ie(e.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]),e.setLayout(a)}))}function PD(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),r=[];z(n.dimensions,(function(e){r=r.concat(i.mapDimensionsAll(e))}));for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}ED(i.graph,e)}else t&&"none"!==t||LD(e)}))}function OD(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX;return((t.getZoom()-1)*n+1)/i}function RD(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var ND=Math.PI,zD=[];function BD(e,t,n,i){var r=e.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),a=e.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,d=a.count();if(a.setLayout({cx:l,cy:u}),d){if(n){var p=r.pointToData(i),h=p[0],f=p[1],g=[h-l,f-u];ze(g,g),Ne(g,g,c),n.setLayout([l+g[0],u+g[1]],!0),FD(n,e.get(["circular","rotateLabel"]),l,u)}VD[t](e,s,a,c,l,u,d),s.eachEdge((function(t,n){var i,r=ae(t.getModel().get(["lineStyle","curveness"]),kD(t,e,n),0),o=Ie(t.node1.getLayout()),a=Ie(t.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+r&&(i=[l*(r*=3)+s*(1-r),u*r+c*(1-r)]),t.setLayout([o,a,i])}))}}}var VD={value:function(e,t,n,i,r,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);t.eachNode((function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n}))},symbolSize:function(e,t,n,i,r,o,a){var s=0;zD.length=a;var l=OD(e);t.eachNode((function(e){var t=RD(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/i);isNaN(n)&&(n=ND/2),zD[e.dataIndex]=n,s+=2*n}));var u=(2*ND-s)/a/2,c=0;t.eachNode((function(e){var t=u+zD[e.dataIndex];c+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+o]),c+=t}))}};function FD(e,t,n,i){var r=e.getGraphicEl();if(r){var o=e.getModel().get(["label","rotate"])||0,a=r.getSymbolPath();if(t){var s=e.getLayout(),l=Math.atan2(s[1]-i,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var c=u?"left":"right";a.setTextConfig({rotation:-l,position:c,origin:"center"});var d=a.ensureState("emphasis");k(d.textConfig||(d.textConfig={}),{position:c})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function GD(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&BD(e,"symbolSize")}))}var HD=ke;function WD(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),r=i.data,o=i.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?r.each((function(e){var t=r.getId(e);r.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&BD(e,"value"):LD(e);var l=r.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),d=a.get("edgeLength"),p=$(c)?c:[c,c],h=$(d)?d:[d,d];h=[h[1],h[0]];var f=r.mapArray("value",(function(e,t){var n=r.getItemLayout(t),i=Kr(e,l,p);return isNaN(i)&&(i=(p[0]+p[1])/2),{w:i,rep:i,fixed:r.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(t,n){var r=i.getEdgeByIndex(n),o=Kr(t,u,h);isNaN(o)&&(o=(h[0]+h[1])/2);var a=r.getModel(),s=ae(r.getModel().get(["lineStyle","curveness"]),-kD(r,e,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}}
vendor: 3,022 bytes, line 2
2)),m=t.getBoundingRect(),v=function(e,t,n){for(var i=e,r=t,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var d=i[c];d.p||(d.p=Te(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=Ie(d.p),d.edges=null}var p,h,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(e){i[e].fixed=!0},setUnfixed:function(e){i[e].fixed=!1},beforeStep:function(e){p=e},afterStep:function(e){h=e},step:function(e){p&&p(i,r);for(var t=[],n=i.length,o=0;o<r.length;o++){var a=r[o];if(!a.ignoreForceLayout){var s=a.n1;Le(t,(m=a.n2).p,s.p);var c=Ee(t)-a.d,d=m.w/(s.w+m.w);isNaN(d)&&(d=0),ze(t,t),!s.fixed&&HD(s.p,s.p,t,d*c*g),!m.fixed&&HD(m.p,m.p,t,-(1-d)*c*g)}}for(o=0;o<n;o++)(x=i[o]).fixed||(Le(t,l,x.p),HD(x.p,x.p,t,u*g));for(o=0;o<n;o++){s=i[o];for(var f=o+1;f<n;f++){var m;Le(t,(m=i[f]).p,s.p),0===(c=Ee(t))&&(Ae(t,Math.random()-.5,Math.random()-.5),c=1);var v=(s.rep+m.rep)/c/c;!s.fixed&&HD(s.pp,s.pp,t,v),!m.fixed&&HD(m.pp,m.pp,t,-v)}}var y=[];for(o=0;o<n;o++){var x;(x=i[o]).fixed||(Le(y,x.p,x.pp),HD(x.p,x.p,y,g),Ce(x.pp,x.p))}var w=(g*=.992)<.01;h&&h(i,r,w),e&&e(w)}}}(f,g,{rect:m,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep((function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].fixed&&Ce(e[n].p,i.getNodeByIndex(n).getLayout())})),v.afterStep((function(e,t,o){for(var a=0,s=e.length;a<s;a++)e[a].fixed||i.getNodeByIndex(a).setLayout(e[a].p),n[r.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var l=t[a],u=i.getEdgeByIndex(a),c=l.n1.p,d=l.n2.p,p=u.getLayout();(p=p?p.slice():[])[0]=p[0]||[],p[1]=p[1]||[],Ce(p[0],c),Ce(p[1],d),+l.curveness&&(p[2]=[(c[0]+d[0])/2-(c[1]-d[1])*l.curveness,(c[1]+d[1])/2-(d[0]-c[0])*l.curveness]),u.setLayout(p)}})),e.forceLayout=v,e.preservedPoints=n,v.step()}else e.forceLayout=null}))}function jD(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var r=e.getData(),o=[],a=[];Ua(r.mapArray((function(e){var t=r.getItemModel(e);return[+t.get("x"),+t.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(e,t,n){return Fp(k(e.getBoxLayoutParams(),{aspect:n}),{width:t.getWidth(),height:t.getHeight()})}(e,t,s);isNaN(s)&&(o=[l.x,l.y],a=[l.x+l.width,l.y+l.height]);var u=a[0]-o[0],c=a[1]-o[1],d=l.width,p=l.height,h=e.coordinateSystem=new CI;h.zoomLimit=e.get("scaleLimit"),h.setBoundingRect(o[0],o[1],u,c),h.setViewRect(l.x,l.y,d,p),h.setCenter(e.get("center"),t),h.setZoom(e.get("zoom")),n.push(h)}})),n}var $D,YD=ac.prototype,XD=cc.prototype,qD=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function UD(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}i((function(){return null!==$D&&$D.apply(this,arguments)||this}),$D=qD);var ZD=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return i(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new qD}
vendor: 6,677 bytes, line 2
2,t.prototype.buildPath=function(e,t){UD(t)?YD.buildPath.call(this,e,t):XD.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return UD(this.shape)?YD.pointAt.call(this,e):XD.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=UD(t)?[t.x2-t.x1,t.y2-t.y1]:XD.tangentAt.call(this,e);return ze(n,n)},t}(Fs),KD=["fromSymbol","toSymbol"];function JD(e){return"_"+e+"Type"}function QD(e,t,n){var i=t.getItemVisual(n,e);if(!i||"none"===i)return i;var r=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=ov(r);return i+l+av(a||0,l)+(o||"")+(s||"")}function ek(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var r=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=ov(r),u=av(a||0,l),c=rv(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function tk(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var nk=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createLine(t,n,i),r}return i(t,e),t.prototype._createLine=function(e,t,n){var i=e.hostModel,r=function(e){var t=new ZD({name:"line",subPixelOptimize:!0});return tk(t.shape,e),t}(e.getItemLayout(t));r.shape.percent=0,Ac(r,{shape:{percent:1}},i,t),this.add(r),z(KD,(function(n){var i=ek(n,e,t);this.add(i),this[JD(n)]=QD(n,e,t)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=e.getItemLayout(t),a={shape:{}};tk(a.shape,o),Ic(r,a,i,t),z(KD,(function(n){var i=QD(n,e,t),r=JD(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=ek(n,e,t);this.add(o)}this[r]=i}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var p=e.getItemModel(t),h=p.getModel("emphasis");o=h.getModel("lineStyle").getLineStyle(),a=p.getModel(["blur","lineStyle"]).getLineStyle(),s=p.getModel(["select","lineStyle"]).getLineStyle(),u=h.get("disabled"),c=h.get("focus"),d=h.get("blurScope"),l=fd(p)}var f=e.getItemVisual(t,"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,z(KD,(function(e){var t=this.childOfName(e);if(t){t.setColor(g),t.style.opacity=f.opacity;for(var n=0;n<wl.length;n++){var i=wl[n],o=r.getState(i);if(o){var a=o.style||{},s=t.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}t.markRedraw()}}),this);var m=i.getRawValue(t);hd(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return i.getFormattedLabel(t,n,e.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==m?e.getName(t):isFinite(m)?Qr(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 x=y.get("distance");$(x)||(x=[x,x]),v.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),iu(this,c,d,u)},t.prototype.highlight=function(){Wl(this)},t.prototype.downplay=function(){jl(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");tk(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(t||n||i&&!i.ignore){for(var r=1,o=this.parent;o;)o.scaleX&&(r/=o.scaleX),o=o.parent;var a=e.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=Le([],u,l);if(ze(c,c),t&&(t.setPosition(l),S(t,0),t.scaleX=t.scaleY=r*s,t.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,h=i.__labelDistance,f=h[0]*r,g=h[1]*r,m=s/2,v=a.tangentAt(m),y=[v[1],-v[0]],x=a.pointAt(m);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var w=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var _=-Math.atan2(v[1],v[0]);u[0]<l[0]&&(_=Math.PI+_),i.rotation=_}var b=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":b=-g,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":b=g,p="top";break;default:b=0,p="middle"}switch(i.__position){case"end":i.x=c[0]*f+u[0],i.y=c[1]*g+u[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*w+l[0],i.y=l[1]+b,d=v[0]<0?"right":"left",i.originX=-f*w,i.originY=-b;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+b,d="center",i.originY=-b;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*w+u[0],i.y=u[1]+b,d=v[0]>=0?"right":"left",i.originX=f*w,i.originY=-b}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var i=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(Fr),ik=function(){function e(e){this.group=new Fr,this._LineCtor=e||nk}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=e,r||i.removeAll();var o=rk(e);e.diff(r).add((function(n){t._doAdd(e,n,o)})).update((function(n,i){t._doUpdate(r,e,i,n,o)})).remove((function(e){i.remove(r.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=rk(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||function(e){return e.animators&&e.animators.length>0}(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i<e.end;
vendor: 4,176 bytes, line 2
2i++)if(ak(t.getItemLayout(i))){var r=new this._LineCtor(t,i,this._seriesScope);r.traverse(n),this.group.add(r),t.setItemGraphicEl(i,r),this._progressiveEls.push(r)}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){ld(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(ak(e.getItemLayout(t))){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},e.prototype._doUpdate=function(e,t,n,i,r){var o=e.getItemGraphicEl(n);ak(t.getItemLayout(i))?(o?o.updateData(t,i,r):o=new this._LineCtor(t,i,r),t.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},e}();function rk(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:fd(t)}}function ok(e){return isNaN(e[0])||isNaN(e[1])}function ak(e){return e&&!ok(e[0])&&!ok(e[1])}var sk=[],lk=[],uk=[],ck=Cn,dk=Ge,pk=Math.abs;function hk(e,t,n){for(var i,r=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1)sk[0]=ck(r[0],o[0],a[0],c),sk[1]=ck(r[1],o[1],a[1],c),(h=pk(dk(sk,t)-l))<s&&(s=h,i=c);for(var d=0;d<32;d++){var p=i+u;lk[0]=ck(r[0],o[0],a[0],i),lk[1]=ck(r[1],o[1],a[1],i),uk[0]=ck(r[0],o[0],a[0],p),uk[1]=ck(r[1],o[1],a[1],p);var h=dk(lk,t)-l;if(pk(h)<.01)break;var f=dk(uk,t)-l;u/=2,h<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function fk(e,t){var n=[],i=Dn,r=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[Ie(l[0]),Ie(l[1])],l[2]&&l.__original.push(Ie(l[2])));var d=l.__original;if(null!=l[2]){if(Ce(r[0],d[0]),Ce(r[1],d[2]),Ce(r[2],d[1]),u&&"none"!==u){var p=RD(e.node1),h=hk(r,d[0],p*t);i(r[0][0],r[1][0],r[2][0],h,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],h,n),r[0][1]=n[3],r[1][1]=n[4]}c&&"none"!==c&&(p=RD(e.node2),h=hk(r,d[1],p*t),i(r[0][0],r[1][0],r[2][0],h,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],h,n),r[1][1]=n[1],r[2][1]=n[2]),Ce(l[0],r[0]),Ce(l[1],r[2]),Ce(l[2],r[1])}else Ce(o[0],d[0]),Ce(o[1],d[1]),Le(a,o[1],o[0]),ze(a,a),u&&"none"!==u&&(p=RD(e.node1),ke(o[0],o[0],a,p*t)),c&&"none"!==c&&(p=RD(e.node2),ke(o[1],o[1],a,-p*t)),Ce(l[0],o[0]),Ce(l[1],o[1])}))}function gk(e){return"view"===e.type}var mk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.init=function(e,t){var n=new PS,i=new ik,r=this.group;this._controller=new gC(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(gk(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Ic(s,l,e)}fk(e.getGraph(),OD(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,p);var h=e.get("layout");u.graph.eachNode((function(t){var n=t.dataIndex,r=t.getGraphicEl(),o=t.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(h){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,p),d.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),t.setLayout({fixed:!0},!0),BD(e,"symbolSize",t,[o.offsetX,o.offsetY]),i.updateLayout(e);break;default:u.setItemLayout(n,[r.x,r.y]),ED(e.getGraph(),e),i.updateLayout(e)}})).on("dragend",(function(){d&&d.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(fl(r).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emp
2hasis","focus"]);t&&"adjacency"===n&&(fl(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var f="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=u.getLayout("cx"),m=u.getLayout("cy");u.graph.eachNode((function(e){FD(e,f,g,m)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;!function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))}()},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!SC(t,n,e)})),gk(e.coordinateSystem)?(r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){xC(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){wC(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),fk(e.getGraph(),OD(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=OD(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){fk(e.getGraph(),OD(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Yg);function vk(e){return"_EC_"+e}var yk=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[vk(e)]){var i=new xk(e,t);return i.hostGraph=this,this.nodes.push(i),n[vk(e)]=i,i}console.error("Graph nodes have duplicate name or id")},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[vk(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,r=this._edgesMap;if(U(e)&&(e=this.nodes[e]),U(t)&&(t=this.nodes[t]),e instanceof xk||(e=i[vk(e)]),t instanceof xk||(t=i[vk(t)]),e&&t){var o=e.id+"-"+t.id,a=new wk(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),r[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof xk&&(e=e.id),t instanceof xk&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){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&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof xk||(t=this._nodesMap[vk(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,t,null))for(var a=[t];a.length;){var s=a.shift(),l=s[r];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(e.call(i,c,s))return;a.push(c),c.__visited=!0}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)n[e.getRawIndex(r)].dataIndex=r;for(t.filterSelf((function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0})),r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)i[t.getRawIndex(r)].dataIndex=r},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)t.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),xk=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=ve(),t=ve(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var r=[i.node1],o=[i.node2],a=0;a<r.length;){var s=r[a];a++,t.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)e.set(s.inEdges[l].dataIndex,!0),r.push(s.inEdges[l].node1)}for(a=0;a<o.length;){var u=o[a];for(a++,t.set(u.dataIndex,!0),l=0;l<u.outEdges.length;l++)e.set(u.outEdges[l].dataIndex,!0),o.push(u.outEdges[l].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),wk=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=ve(),t=ve();e.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],r=0;r<n.length;){var o=n[r];r++,t.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)e.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}for(r=0;r<i.length;){var s=i[r];for(r++,t.set(s.dataIndex,!0),a=0;a<s.outEdges.length;a++)e.set(s.outEdges[a].dataIndex,!0),i.push(s.outEdges[a].node2)}return{edge:e.keys(),node:t.keys()}},e}();function _k(e,t){return{getValue:function(n){var i=this[e][t];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)}
vendor: 5,341 bytes, line 2
2,setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}function bk(e,t,n,i,r){for(var o=new yk(i),a=0;a<e.length;a++)o.addNode(re(e[a].id,e[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<t.length;a++){var c=t[a],d=c.source,p=c.target;o.addEdge(d,p,u)&&(l.push(c),s.push(re(Ho(c.id,null),d+" > "+p)),u++)}var h,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)h=Ox(e,n);else{var g=Rh.get(f),m=g&&g.dimensions||[];P(m,"value")<0&&m.concat(["value"]);var v=Cx(e,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;(h=new Tx(v,n)).initData(e)}var y=new Tx(["value"],n);return y.initData(l,s),r&&r(h,y),oA({mainData:h,struct:o,structAttr:"graph",datas:{node:h,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}R(xk,_k("hostGraph","data")),R(wk,_k("hostGraph","edgeData"));var Sk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return i(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new UM(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Ro(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n,i=e.edges||e.links||[],r=e.data||e.nodes||[],o=this;if(r&&i){TD(n=this)&&(n.__curvenessList=[],n.__edgeMap={},CD(n));var a=bk(r,i,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e){var t=o._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e}));var n=zd.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=r,i}function r(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=r,e.getModel=i,e}))}));return z(a.edges,(function(e){!function(e,t,n,i){if(TD(n)){var r=ID(e,t,n),o=n.__edgeMap,a=o[AD(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)}}(e.node1,e.node2,this,e.dataIndex)}),this),a.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),yg("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return kg({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=B(this.option.categories||[],(function(e){return null!=e.value?e:k({value:0},e)})),t=new Tx(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Og),Mk={type:"graphRoam",event:"graphRoam",update:"none"};var Tk=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},Ck=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return i(t,e),t.prototype.getDefaultShape=function(){return new Tk},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,r=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=r/3?1:2),l=t.y-i(a)*o*(o>=r/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+i(a)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(a)*o,t.y-i(a)*o),e.lineTo(s,l)},t}(Fs);function Ik(e,t){var n=null==e?"":e+"";return t&&(X(t)?n=t.replace("{value}",n):Y(t)&&(n=t(e))),n}var Ak=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),r=function(e,t){var n=e.get("
2center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r);return{cx:Jr(n[0],t.getWidth()),cy:Jr(n[1],t.getHeight()),r:Jr(e.get("radius"),o/2)}}(e,n);this._renderMain(e,t,n,i,r),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,r){var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),c=u.get("roundCap")?pM:Zu,d=u.get("show"),p=u.getModel("lineStyle"),h=p.get("width"),f=[s,l];xs(f,!a);for(var g=(l=f[1])-(s=f[0]),m=s,v=[],y=0;d&&y<i.length;y++){var x=new c({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-h,r:r.r},silent:!0});x.setStyle({fill:i[y][1]}),x.setStyle(p.getLineStyle(["color","width"])),v.push(x),m=l}v.reverse(),z(v,(function(e){return o.add(e)}));var w=function(e){if(e<=0)return i[0][1];var t;for(t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]};this._renderTicks(e,t,n,w,r,s,l,a,h),this._renderTitleAndDetail(e,t,n,w,r),this._renderAnchor(e,r),this._renderPointer(e,t,n,w,r,s,l,a,h)},t.prototype._renderTicks=function(e,t,n,i,r,o,a,s,l){for(var u,c,d=this.group,p=r.cx,h=r.cy,f=r.r,g=+e.get("min"),m=+e.get("max"),v=e.getModel("splitLine"),y=e.getModel("axisTick"),x=e.getModel("axisLabel"),w=e.get("splitNumber"),_=y.get("splitNumber"),b=Jr(v.get("length"),f),S=Jr(y.get("length"),f),M=o,T=(a-o)/w,C=T/_,I=v.getModel("lineStyle").getLineStyle(),A=y.getModel("lineStyle").getLineStyle(),D=v.get("distance"),k=0;k<=w;k++){if(u=Math.cos(M),c=Math.sin(M),v.get("show")){var L=new ac({shape:{x1:u*(f-(E=D?D+l:l))+p,y1:c*(f-E)+h,x2:u*(f-b-E)+p,y2:c*(f-b-E)+h},style:I,silent:!0});"auto"===I.stroke&&L.setStyle({stroke:i(k/w)}),d.add(L)}if(x.get("show")){var E=x.get("distance")+D,P=Ik(Qr(k/w*(m-g)+g),x.get("formatter")),O=i(k/w),R=u*(f-b-E)+p,N=c*(f-b-E)+h,z=x.get("rotate"),B=0;"radial"===z?(B=-M+2*Math.PI)>Math.PI/2&&(B+=Math.PI):"tangential"===z?B=-M-Math.PI/2:U(z)&&(B=z*Math.PI/180),0===B?d.add(new tl({style:gd(x,{text:P,x:R,y:N,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:O}),silent:!0})):d.add(new tl({style:gd(x,{text:P,x:R,y:N,verticalAlign:"middle",align:"center"},{inheritColor:O}),silent:!0,originX:R,originY:N,rotation:B}))}if(y.get("show")&&k!==w){E=(E=y.get("distance"))?E+l:l;for(var V=0;V<=_;V++){u=Math.cos(M),c=Math.sin(M);var F=new ac({shape:{x1:u*(f-E)+p,y1:c*(f-E)+h,x2:u*(f-S-E)+p,y2:c*(f-S-E)+h},silent:!0,style:A});"auto"===A.stroke&&F.setStyle({stroke:i((k+V/_)/w)}),d.add(F),M+=C}M-=C}else M+=T}},t.prototype._renderPointer=function(e,t,n,i,r,o,a,s,l){var u=this.group,c=this._data,d=this._progressEls,p=[],h=e.get(["pointer","show"]),f=e.getModel("progress"),g=f.get("show"),m=e.getData(),v=m.mapDimension("value"),y=+e.get("min"),x=+e.get("max"),w=[y,x],_=[o,a];function b(t,n){var i,o=m.getItemModel(t).getModel("pointer"),a=Jr(o.get("width"),r.r),s=Jr(o.get("length"),r.r),l=e.get(["pointer","icon"]),u=o.get("offsetCenter"),c=Jr(u[0],r.r),d=Jr(u[1],r.r),p=o.get("keepAspect");return(i=l?rv(l,c-a/2,d-s,a,s,null,p):new Ck({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:d}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(e,t){var n=f.get("roundCap")?pM:Zu,i=f.get("overlap"),a=i?f.get("width"):l/m.count(),u=i?r.r-a:r.r-(e+1)*a,c=i?r.r:r.r-e*a,d=new n({shape:{startAngle:o,endAngle:t,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:c}});return i&&(d.z2=Kr(m.get(v,e),[y,x],[100,0],!0)),d}(g||h)&&(m.diff(c).add((function(t){var n=m.get(v,t);if(h){var i=b(t,o);Ac(i,{rotation:-((isNaN(+n)?_[0]:Kr(n,w,_,!0))+Math.PI/2)},e),u.add(i),m.setItemGraphicEl(t,i)}if(g){var r=S(t,o),a=f.get("clip");Ac(r,{shape:{endAngle:Kr(n,w,_,a)}},e),u.add(r),gl(e.seriesIndex,m.dataType,t,r),p[t]=r}})).update((function(t,n){var i=m.get(v,t);if(h){var r=c.getItemGraphicEl(n),a=r?r.rotation:o,s=b(t,a);s.rotation=a,Ic(s,{rotation:-((isNaN(+i)?_[0]:Kr(i,w,_,!0))+Math.PI/2)},e),u.add(s),m.setItemGraphicEl(t,s)}if(g){var l=d[n],y=S(t,l?l.shape.endAngle:o),x=f.get("clip");Ic(y,{shape:{endAngle:Kr(i,w,_,x)}},e),u.add(y),gl(e.seriesIndex,m.dataType,t,y),p[t]=y}})).execute(),m.each((function(e){var t=m.getItemModel(e),n=t.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(h){var s=m.getItemGraphicEl(e),l=m.getItemVisual(e,"style"),u=l.fill;if(s instanceof $s){var c=s.style;s.useStyle(k({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}
vendor: 12,616 bytes, line 2
2else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Kr(m.get(v,e),w,[0,1],!0))),s.z2EmphasisLift=0,su(s,t),iu(s,r,o,a)}if(g){var d=p[e];d.useStyle(m.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,su(d,t),iu(d,r,o,a)}})),this._progressEls=p)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=rv(r,t.cx-i/2+Jr(o[0],t.r),t.cy-i/2+Jr(o[1],t.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,r){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new Fr,d=[],p=[],h=e.isAnimationEnabled(),f=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){d[e]=new tl({silent:!0}),p[e]=new tl({silent:!0})})).update((function(e,t){d[e]=o._titleEls[t],p[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),g=new Fr,m=i(Kr(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),x=r.cx+Jr(y[0],r.r),w=r.cy+Jr(y[1],r.r);(A=d[t]).attr({z2:f?0:2,style:gd(v,{x,y:w,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(A)}var _=n.getModel("detail");if(_.get("show")){var b=_.get("offsetCenter"),S=r.cx+Jr(b[0],r.r),M=r.cy+Jr(b[1],r.r),T=Jr(_.get("width"),r.r),C=Jr(_.get("height"),r.r),I=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:m,A=p[t],D=_.get("formatter");A.attr({z2:f?0:2,style:gd(_,{x:S,y:M,text:Ik(o,D),width:isNaN(T)?null:T,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:I})}),Sd(A,{normal:_},o,(function(e){return Ik(e,D)})),h&&Md(A,t,a,e,{getFormattedLabel:function(e,t,n,i,r,a){return Ik(a?a.interpolatedValue:o,D)}}),g.add(A)}c.add(g)})),this.group.add(c),this._titleEls=d,this._detailEls=p},t.type="gauge",t}(Yg),Dk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return i(t,e),t.prototype.getInitialData=function(e,t){return qM(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Og);var kk=["itemStyle","opacity"],Lk=function(e){function t(t,n){var i=e.call(this)||this,r=i,o=new ic,a=new tl;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return i(t,e),t.prototype.updateData=function(e,t,n){var i=this,r=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(kk);l=null==l?1:l,n||Pc(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,Ac(i,{style:{opacity:l}},r,t)):Ic(i,{style:{opacity:l},shape:{points:a.points}},r,t),su(i,o),this._updateLabel(e,t),iu(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t).label,l=e.getItemVisual(t,"style"),u=l.fill;hd(r,fd(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:l.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var c=s.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new Dt(c[0][0],c[0][1]):null},Ic(r,{style:{x:s.x,y:s.y}},o,t),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),j_(n,$_(a),{stroke:u})},t}(tc),Ek=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return i(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add((function(e){var t=new Lk(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){Ec(r.getItemGraphicEl(t),e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Yg),Pk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new UM(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return qM(this,{coordDimensions:["value"],encodeDefaulter:j(dh,this)})},t.prototype._defaultLabelLine=function(e){Ro(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Og);function Ok(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),r=e.get("sort"),o=function(e,t){return Fp(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),a=e.get("orient"),s=o.width,l=o.height,u=function(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),r=[],o="ascending"===t,a=0,s=e.count();a<s;a++)r[a]=a;return Y(t)?r.sort(t):"none"!==t&&r.sort((function(e,t){return o?i[e]-i[t]:i[t]-i[e]})),r}(n,r),c=o.x,d=o.y,p="horizontal"===a?[Jr(e.get("minSize"),l),Jr(e.get("maxSize"),l)]:[Jr(e.get("minSize"),s),Jr(e.get("maxSize"),s)],h=n.getDataExtent(i),f=e.get("min"),g=e.get("max");null==f&&(f=Math.min(h[0],0)),null==g&&(g=h[1]);var m=e.get("funnelAlign"),v=e.get("gap"),y=(("horizontal"===a?s:l)-v*(n.count()-1))/n.count(),x=function(e,t){if("horizontal"===a){var r=Kr(n.get(i,e)||0,[f,g],p,!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[[t,o],[t,o+r]]}var u,h=Kr(n.get(i,e)||0,[f,g],p,!0);switch(m){case"left":u=c;break;case"center":u=c+(s-h)/2;break;case"right":u=c+s-h}return[[u,t],[u+h,t]]};"ascending"===r&&(y=-y,v=-v,"horizontal"===a?c+=s:d+=l,u=u.reverse());for(var w=0;w<u.length;w++){var _=u[w],b=u[w+1],S=n.getItemModel(_);if("horizontal"===a){var M=S.get(["itemStyle","width"]);null==M?M=y:(M=Jr(M,s),"ascending"===r&&(M=-M));var T=x(_,c),C=x(b,c+M);c+=M+v,n.setItemLayout(_,{points:T.concat(C.slice().reverse())})}else{var I=S.get(["itemStyle","height"]);null==I?I=y:(I=Jr(I,l),"ascending"===r&&(I=-I)),T=x(_,d),C=x(b,d+I),d+=I+v,n.setItemLayout(_,{points:T.concat(C.slice().reverse())})}}!function(e){var t=e.hostModel.get("orient");e.each((function(n){var i,r,o,a,s=e.getItemModel(n),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=e.getItemLayout(n),d=c.points,p="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(p)"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 h=void 0,f=void 0,g=void 0,m=void 0,v=u.get("length");"vertical"===t&&["top","bottom"].indexOf(l)>-1&&(l="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),"horizontal"===t&&["left","right"].indexOf(l)>-1&&(l="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right.")),"left"===l?(h=(d[3][0]+d[0][0])/2,f=(d[3][1]+d[0][1])/2,r=(g=h-v)-5,i="right"):"right"===l?(h=(d[1][0]+d[2][0])/2,f=(d[1][1]+d[2][1])/2,r=(g=h+v)+5,i="left"):"top"===l?(h=(d[3][0]+d[0][0])/2,o=(m=(f=(d[3][1]+d[0][1])/2)-v)-5,i="center"):"bottom"===l?(h=(d[1][0]+d[2][0])/2,o=(m=(f=(d[1][1]+d[2][1])/2)+v)+5,i="center"):"rightTop"===l?(h="horizontal"===t?d[3][0]:d[1][0],f="horizontal"===t?d[3][1]:d[1][1],"horizontal"===t?(o=(m=f-v)-5,i="center"):(r=(g=h+v)+5,i="top")):"rightBottom"===l?(h=d[2][0],f=d[2][1],"horizontal"===t?(o=(m=f+v)+5,i="center"):(r=(g=h+v)+5,i="bottom")):"leftTop"===l?(h=d[0][0],f="horizontal"===t?d[0][1]:d[1][1],"horizontal"===t?(o=(m=f-v)-5,i="center"):(r=(g=h-v)-5,i="right")):"leftBottom"===l?(h="horizontal"===t?d[1][0]:d[3][0],f="horizontal"===t?d[1][1]:d[2][1],"horizontal"===t?(o=(m=f+v)+5,i="center"):(r=(g=h-v)-5,i="right")):(h=(d[1][0]+d[2][0])/2,f=(d[1][1]+d[2][1])/2,"horizontal"===t?(o=(m=f+v)+5,i="center"):(r=(g=h+v)+5,i="left")),"horizontal"===t?r=g=h:o=m=f,a=[[h,f],[g,m]]}c.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:p}}))}(n)}))}var Rk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new Fr,n._initialized=!1,n}return i(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._dataGroup,o=e.getData(),a=this._data,s=e.coordinateSystem,l=s.dimensions,u=Bk(e);if(o.diff(a).add((function(e){Vk(zk(o,r,e,l,s),o,e,u)})).update((function(t,n){var i=a.getItemGraphicEl(n),r=Nk(o,t,l,s);o.setItemGraphicEl(t,i),Ic(i,{shape:{points:r}},e,t),Pc(i),Vk(i,o,t,u)})).remove((function(e){var t=a.getItemGraphicEl(e);r.remove(t)})).execute(),!this._initialized){this._initialized=!0;var c=function(e,t,n){var i=e.model,r=e.getRect(),o=new Js({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),Ac(o,{shape:{width:r.width,height:r.height}},t,n),o}(s,e,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(c)}this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var i=t.getData(),r=t.coordinateSystem,o=r.dimensions,a=Bk(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=zk(i,this._dataGroup,l,o,r);u.incremental=!0,Vk(u,i,l,a),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Yg);function Nk(e,t,n,i){for(var r=[],o=0;o<n.length;o++){var a=n[o],s=e.get(e.mapDimension(a),t);l=s,("category"===i.getAxis(a).type?null==l:null==l||isNaN(l))||r.push(i.dataToPoint(s,a))}var l;return r}function zk(e,t,n,i,r){var o=Nk(e,n,i,r),a=new ic({shape:{points:o},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function Bk(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),ie(t=vo(t))&&(t=0),{smooth:t}}function Vk(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var r=t.getItemModel(n),o=r.getModel("emphasis");su(e,r,"lineStyle"),iu(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var Fk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return i(t,e),t.prototype.getInitialData=function(e,t){return Ox(null,this,{useEncodeDefaulter:W
vendor: 4,684 bytes, line 2
2(Gk,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,(function(t,r){e===t&&i.push(n.getRawIndex(r))})),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Og);function Gk(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return z(t.dimensions,(function(e){var t=+e.replace("dim","");n[e]=t})),n}}var Hk=["lineStyle","opacity"],Wk={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var r=i[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(n).get(Hk,!0);null!=o&&(r=o)}t.ensureUniqueItemVisual(n,"style").opacity=r}),e.start,e.end)}}}};function jk(e){(function(e){if(!e.parallel){var t=!1;z(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}})(e),function(e){z(Oo(e.parallelAxis),(function(t){if(Z(t)){var n=t.parallelIndex||0,i=Oo(e.parallel)[n];i&&i.parallelAxisDefault&&A(t,i.parallelAxisDefault,!1)}}))}(e)}var $k=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},z(Yk,(function(e,t){n.getZr().on(t,this._handlers[t]=W(e,this))}),this)),nm(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){im(this,"_throttledDispatchExpand"),z(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(k({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Hg),Yk={mousedown:function(e){Xk(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(Xk(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&Xk(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function Xk(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var qk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&A(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){z(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];z(F(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this),(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Xp),Uk=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return i(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(w_);function Zk(e,t,n,i,r,o){e=e||0;var a=n[1]-n[0];if(null!=r&&(r=Jk(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(t[1]-t[0]);
vendor: 10,027 bytes, line 2
2s=Jk(s,[0,a]),r=o=Jk(s,[r,o]),i=0}t[0]=Jk(t[0],n),t[1]=Jk(t[1],n);var l=Kk(t,i);t[i]+=e;var u,c=r||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,t[i]=Jk(t[i],d),u=Kk(t,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(t[1-i]=t[i]+l.sign*r),u=Kk(t,i),null!=o&&u.span>o&&(t[1-i]=t[i]+u.sign*o),t}function Kk(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function Jk(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var Qk=z,eL=Math.min,tL=Math.max,nL=Math.floor,iL=Math.ceil,rL=Qr,oL=Math.PI,aL=function(){function e(e,t,n){this.type="parallel",this._axesMap=ve(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;Qk(i,(function(e,n){var i=r[n],o=t.getComponent("parallelAxis",i),a=this._axesMap.set(e,new Uk(e,Ow(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)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],a=e[r];return o>=n&&o<=n+t.axisLength&&a>=i&&a<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();Qk(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),Pw(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=Fp(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=sL(t.get("axisExpandWidth"),l),d=sL(t.get("axisExpandCount")||0,[0,u]),p=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=t.get("axisExpandWindow");h?(e=sL(h[1]-h[0],l),h[1]=h[0]+e):(e=sL(c*(d-1),l),(h=[c*(t.get("axisExpandCenter")||nL(u/2))-e/2])[1]=h[0]+e);var f=(s-e)/(u-d);f<3&&(f=0);var g=[nL(rL(h[0]/c,1))+1,iL(rL(h[1]/c,1))-1],m=f/c*h[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:p,axisExpandWidth:c,axisCollapseWidth:f,axisExpandWindow:h,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),Qk(n,(function(t,n){var o=(i.axisExpandable?uL:lL)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:oL/2,vertical:0},l=[a[r].x+e.x,a[r].y+e.y],u=s[r],c=[1,0,0,1,0,0];Mt(c,c,u),St(c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];z(o,(function(t){a.push(e.mapDimension(t)),s.push(r.get(t).model)}));for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var c=void 0;if(l){c="active";for(var d=e.getValues(a,u),p=0,h=o.length;p<h;p++)if("inactive"===s[p].getActiveState(d[p])){c="inactive";break}}else c="normal";t(c,u)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,r=e.length;i<r;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){return Zc([e,0],this._axesLayout[t].transform)},e.prototype.getAxisLayout=function(e){return I(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),d=null!=c[0];if(u)d&&u&&s<r*c[0]?(l="jump",a=s-r*c[2]):d&&u&&s>r*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),(a*=t.axisExpandWidth/u)?Zk(a,i,o,"all"):l="none";else{var p=i[1]-i[0];(i=[tL(0,o[1]*s/p-p/2)])[1]=eL(o[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:l}},e}();function sL(e,t){return eL(tL(e,t[0]),t[1])}function lL(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function uL(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],u=o,c=!0):(n=r-(a-1-e)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}var cL={create:function(e,t){var n=[];return e.eachComponent("parallel",(function(i,r){var o=new aL(i,e,t);o.name="parallel_"+r,o.resize(i,t),i.coordinateSystem=o,o.model=i,n.push(o)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",Jo).models[0];e.coordinateSystem=t.coordinateSystem}})),n}},dL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return i(t,e),t.prototype.getAreaSelectStyle=function(){return ha([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=I(e);if(t)for(var n=t.length-1;n>=0;n--)eo(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;i<r;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"},t}(Xp);R(dL,Gw);var pL=!0,hL=Math.min,fL=Math.max,gL=Math.pow,mL="globalPan",vL={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},yL={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},xL={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},wL=0,_L=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},ue(t),n._zr=t,n.group=new Fr,n._uid="brushController_"+wL++,z(qL,(function(e,t){this._handlers[t]=W(e,this)}),n),n}return i(t,e),t.prototype.enableBrush=function(e){return ue(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||function(e,t,n){fC(e)[t]=n}(t,mL,this._uid),z(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=A(I(xL),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;(function(e,t,n){var i=fC(e);i[t]===n&&(i[t]=null)})(e,mL,this._uid),z(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};z(e,(function(e){t[e.panelId]=I(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._mounted=!0,this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){ue(this._mounted),e=B(e,(function(e){return A(I(xL),e,!0)}));var t=this._covers,n=this._covers=[],i=this,r=this._creatingCover;return new ex(t,e,(function(e,t){return o(e.__brushOption,t)}),o).add(a).update(a).remove((function(e){t[e]!==r&&i.group.remove(t[e])})).execute(),this;function o(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function a(o,a){var s=e[o];if(null!=a&&t[a]===r)n[o]=t[a];else{var l=n[o]=null!=a?(t[a].__brushOption=s,t[a]):SL(i,bL(i,s));CL(i,l)}}},t.prototype.unmount=function(){if(this._mounted)return this.enableBrush(!1),kL(this),this._zr.remove(this.group),this._mounted=!1,this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Ue);function bL(e,t){var n=ZL[t.brushType].createCover(e,t);return n.__brushOption=t,TL(n,t),e.group.add(n),n}function SL(e,t){var n=IL(t);return n.endCreating&&(n.endCreating(e,t),TL(t,t.__brushOption)),t}function ML(e,t){var n=t.__brushOption;IL(t).updateCoverShape(e,t,n.range,n)}function TL(e,t){var n=t.z;null==n&&(n=1e4),e.traverse((function(e){e.z=n,e.z2=n}))}function CL(e,t){IL(t).updateCommon(e,t),ML(e,t)}function IL(e){return ZL[e.__brushOption.brushType]}function AL(e,t,n){var i,r=e._panels;if(!r)return pL;var o=e._transform;return z(r,(function(e){e.isTargetByCursor(t,n,o)&&(i=e)})),i}function DL(e,t){var n=e._panels;if(!n)return pL;var i=t.__brushOption.panelId;return null!=i?n[i]:pL}function kL(e){var t=e._covers,n=t.length;return z(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function LL(e,t){var n=B(e._covers,(function(e){var t=e.__brushOption,n=I(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function EL(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function PL(e,t,n,i){var r=new Fr;return r.add(new Js({name:"main",style:zL(n),silent:!0,draggable:!0,cursor:"move",drift:j(FL,e,t,r,["n","s","w","e"]),ondragend:j(LL,t,{isEnd:!0})})),z(i,(function(n){r.add(new Js({name:n.join(""),style:{opacity:0}
vendor: 4,645 bytes, line 2
2,draggable:!0,silent:!0,invisible:!0,drift:j(FL,e,t,r,n),ondragend:j(LL,t,{isEnd:!0})}))})),r}function OL(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=fL(r,6),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],d=n[1][1],p=c-o+r/2,h=d-o+r/2,f=c-a,g=d-s,m=f+r,v=g+r;NL(e,t,"main",a,s,f,g),i.transformable&&(NL(e,t,"w",l,u,o,v),NL(e,t,"e",p,u,o,v),NL(e,t,"n",l,u,m,o),NL(e,t,"s",l,h,m,o),NL(e,t,"nw",l,u,o,o),NL(e,t,"ne",p,u,o,o),NL(e,t,"sw",l,h,o,o),NL(e,t,"se",p,h,o,o))}function RL(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(zL(n)),r.attr({silent:!i,cursor:i?"move":"default"}),z([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=t.childOfName(n.join("")),o=1===n.length?VL(e,n[0]):function(e,t){var n=[VL(e,t[0]),VL(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?yL[o]+"-resize":null})}))}function NL(e,t,n,i,r,o,a){var s=t.childOfName(n);s&&s.setShape(function(e){var t=hL(e[0][0],e[1][0]),n=hL(e[0][1],e[1][1]);return{x:t,y:n,width:fL(e[0][0],e[1][0])-t,height:fL(e[0][1],e[1][1])-n}}(WL(e,t,[[i,r],[i+o,r+a]])))}function zL(e){return L({strokeNoScale:!0},e.brushStyle)}function BL(e,t,n,i){var r=[hL(e,n),hL(t,i)],o=[fL(e,n),fL(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function VL(e,t){return{left:"w",right:"e",top:"n",bottom:"s"}[Kc({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return Uc(e.group)}(e))]}function FL(e,t,n,i,r,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=HL(t,r,o);z(i,(function(e){var t=vL[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(BL(s[0][0],s[1][0],s[0][1],s[1][1])),CL(t,n),LL(t,{isEnd:!1})}function GL(e,t,n,i){var r=t.__brushOption.range,o=HL(e,n,i);z(r,(function(e){e[0]+=o[0],e[1]+=o[1]})),CL(e,t),LL(e,{isEnd:!1})}function HL(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function WL(e,t,n){var i=DL(e,t);return i&&i!==pL?i.clipPath(n,e._transform):I(n)}function jL(e){var t=e.event;t.preventDefault&&t.preventDefault()}function $L(e,t,n){return e.childOfName("main").contain(t,n)}function YL(e,t,n,i){var r,o=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],r=n[0]-i[0],o=n[1]-i[1];return gL(r*r+o*o,.5)>6}(e)||o){if(a&&!o){"single"===s.brushMode&&kL(e);var l=I(s);l.brushType=XL(l.brushType,a),l.panelId=a===pL?null:a.panelId,o=e._creatingCover=bL(e,l),e._covers.push(o)}if(o){var u=ZL[XL(e._brushType,a)];o.__brushOption.range=u.getCreatingRange(WL(e,o,e._track)),i&&(SL(e,o),u.updateCommon(e,o)),ML(e,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&AL(e,t,n)&&kL(e)&&(r={isEnd:i,removeOnClick:!0});return r}function XL(e,t){return"auto"===e?(ue(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):e}var qL={mousedown:function(e){if(this._dragging)UL(this,e);else if(!e.target||!e.target.draggable){jL(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=AL(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}(e,t.offsetX,t.offsetY)){var i=e._zr,r=e._covers,o=AL(e,t,n);if(!e._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===pL||s.panelId===o.panelId)&&ZL[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}(this,e,i),this._dragging){jL(e);var r=YL(this,e,i,!1);r&&LL(this,r)}},mouseup:function(e){UL(this,e)}};function UL(e,t){if(e._dragging){jL(t);var n=t.offsetX,i=t.offsetY,r=e.group.transformCoordToLocal(n,i),o=YL(e,t,r,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&LL(e,o)}}var ZL={lineX:KL(0),lineY:KL(1),rect:{createCover:function(e,t){function n(e){return e}return PL({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=EL(e);return BL(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){OL(e,t,n,i)},updateCommon:RL,contain:$L},polygon:{createCover:function(e,t){var n=new Fr;return n.add(new ic({name:"main",style:zL(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new tc({name:"main",draggable:!0,drift:j(GL,e,t),ondragend:j(LL,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:WL(e,t,n
vendor: 6,372 bytes, line 2
2)})},updateCommon:RL,contain:$L}};function KL(e){return{createCover:function(t,n){return PL({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=EL(t);return[hL(n[0][e],n[1][e]),fL(n[0][e],n[1][e])]},updateCoverShape:function(t,n,i,r){var o,a=DL(t,n);if(a!==pL&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),OL(t,n,l,r)},updateCommon:RL,contain:$L}}function JL(e){return e=tE(e),function(t){return ed(t,e)}}function QL(e,t){return e=tE(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(r||0)]}}function eE(e,t,n){var i=tE(e);return function(e,r){return i.contain(r[0],r[1])&&!SC(e,t,n)}}function tE(e){return Bt.create(e)}var nE=["axisLine","axisTickLabel","axisName"],iE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new _L(n.getZr())).on("brush",W(this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!function(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Fr,this.group.add(this._axisGroup),e.get("show")){var o=function(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,c=k({strokeContainThreshold:l},a.getAxisLayout(u)),d=new IT(e,c);z(nE,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(c,s,e,o,l,n),Qc(r,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=Bt.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:JL(u),isTargetByCursor:eE(u,o,i),getLinearBrushOtherExtent:QL(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(e){var t=e.axis;return B(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,r=B(t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Hg);var rE={type:"axisAreaSelect",event:"axisAreaSelected"};var oE={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function aE(e){e.registerComponentView($k),e.registerComponentModel(qk),e.registerCoordinateSystem("parallel",cL),e.registerPreprocessor(jk),e.registerComponentModel(dL),e.registerComponentView(iE),cT(e,"parallel",dL,oE),function(e){e.registerAction(rE,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}(e)}var sE=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},lE=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getDefaultShape=function(){return new sE},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Wl(this)},t.prototype.downplay=function(){jl(this)},t}(Fs),uE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return i(t,e),t.prototype.render=function(e,t,n){var i=this,r=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,l=a.height,u=e.getData(),c=e.getData("edge"),d=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(t){var n=new lE,i=fl(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,a,u,p,h,f,g,m,v=t.getModel(),y=v.getModel("lineStyle"),x=y.get("curveness"),w=t.node1.getLayout(),_=t.node1.getModel(),b=_.get("localX"),S=_.get("localY"),M=t.node2.getLayout(),T=t.node2.getModel(),C=T.get("localX"),I=T.get("localY"),A=t.getLayout();n.shape.extent=Math.max(1,A.dy),n.shape.orient=d,"vertical"===d?(r=(null!=b?b*s:w.x)+A.sy,a=(null!=S?S*l:w.y)+w.dy,u=(null!=C?C*s:M.x)+A.ty,h=r,f=a*(1-x)+(p=null!=I?I*l:M.y)*x,g=u,m=a*x+p*(1-x)):(r=(null!=b?b*s:w.x)+w.dx,a=(null!=S?S*l:w.y)+A.sy,h=r*(1-x)+(u=null!=C?C*s:M.x)*x,f=a,g=r*x+u*(1-x),m=p=(null!=I?I*l:M.y)+A.ty),n.setShape({x1:r,y1:a,x2:u,y2:p,cpx1:h,cpy1:f,cpx2:g,cpy2:m}),n.useStyle(y.getItemStyle()),cE(n.style,d,t);var D=""+v.get("value"),k=fd(v,"edgeLabel");hd(n,k,{labelFetcher:{getFormattedLabel:function(t,n,i,r,o,a){return e.getFormattedLabel(t,n,"edge",r,ae(o,k.normal&&k.normal.get("formatter"),D),a)}},labelDataIndex:t.dataIndex,defaultText:D}),n.setTextConfig({position:"inside"});var L=v.getModel("emphasis");su(n,v,"lineStyle",(function(e){var n=e.getItemStyle();return cE(n,d,t),n})),o.add(n),c.setItemGraphicEl(t.dataIndex,n);var E=L.get("focus");iu(n,"adjacency"===E?t.getAdjacentDataIndices():"trajectory"===E?t.getTrajectoryDataIndices():E,L.get("blurScope"),L.get("disabled"))})),r.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),d=i.get(["itemStyle","borderRadius"])||0,p=new Js({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});hd(p,fd(i),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}}
vendor: 16,623 bytes, line 2
2,labelDataIndex:t.dataIndex,defaultText:t.id}),p.disableLabelAnimation=!0,p.setStyle("fill",t.getVisual("color")),p.setStyle("decal",t.getVisual("style").decal),su(p,i),o.add(p),u.setItemGraphicEl(t.dataIndex,p),fl(p).dataType="node";var h=c.get("focus");iu(p,"adjacency"===h?t.getAdjacentDataIndices():"trajectory"===h?t.getTrajectoryDataIndices():h,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(t,r){u.getItemModel(r).get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(function(e,t,n){var i=new Js({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Ac(i,{shape:{width:e.width+20}},t,n),i}(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Yg);function cE(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");X(i)&&X(r)&&(e.fill=new gc(0,0,+("horizontal"===t),+("vertical"===t),[{color:i,offset:0},{color:r,offset:1}]))}}var dE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=e.levels||[];this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++){if(!(null!=r[a].depth&&r[a].depth>=0))throw new Error("levels[i].depth is mandatory and should be natural number");o[r[a].depth]=new zd(r[a],this,t)}return bk(i,n,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e}))})).data},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),o=r.data,a=r.value;return yg("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(e).getLayout().value,l=this.getDataParams(e,n).data.name;return yg("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(t).getLayout().value;i.value=r}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Og);function pE(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),r=function(e,t){return Fp(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=r;var o=r.width,a=r.height,s=e.getGraph(),l=s.nodes,u=s.edges;(function(e){z(e,(function(e){var t=bE(e.outEdges,_E),n=bE(e.inEdges,_E),i=e.getValue()||0,r=Math.max(t,n,i);e.setLayout({value:r},!0)}))})(l),function(e,t,n,i,r,o,a,s,l){(function(e,t,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],d=0,p=0;p<t.length;p++)s[p]=1;for(p=0;p<e.length;p++)l[p]=e[p].inEdges.length,0===l[p]&&u.push(e[p]);for(var h=-1;u.length;){for(var f=0;f<u.length;f++){var g=u[f],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>h&&(h=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 x=g.outEdges[y];s[t.indexOf(x)]=0;var w=x.node2;0==--l[e.indexOf(w)]&&c.indexOf(w)<0&&c.push(w)}}++d,u=c,c=[]}for(p=0;p<s.length;p++)if(1===s[p])throw new Error("Sankey is a DAG, the original data has cycle!");var _=h>d-1?h:d-1;a&&"left"!==a&&function(e,t,n,i){if("right"===t){for(var r=[],o=e,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];r.indexOf(c.node1)<0&&r.push(c.node1)}}o=r,r=[],++a}z(e,(function(e){hE(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&function(e,t){z(e,(function(e){hE(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}(e,i)}(e,a,0,_),function(e,t,n){z(e,(function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)}))}(e,"vertical"===o?(r-n)/_:(i-n)/_,o)})(e,t,n,r,o,s,l),function(e,t,n,i,r,o,a){var s=function(e,t){var n=[],i="vertical"===t?"y":"x",r=na(e,(function(e){return e.getLayout()[i]}));return r.keys.sort((function(e,t){return e-t})),z(r.keys,(function(e){n.push(r.buckets.get(e))})),n}(e,a);(function(e,t,n,i,r,o){var a=1/0;z(e,(function(e){var t=e.length,s=0;z(e,(function(e){s+=e.getLayout().value}));var l="vertical"===o?(i-(t-1)*r)/s:(n-(t-1)*r)/s;l<a&&(a=l)})),z(e,(function(e){z(e,(function(e,t){var n=e.getLayout().value*a;"vertical"===o?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),z(t,(function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)}))})(s,t,n,i,r,a),fE(s,r,n,i,a);for(var l=1;o>0;o--)gE(s,l*=.99,a),fE(s,r,n,i,a),SE(s,l,a),fE(s,r,n,i,a)}(e,t,o,r,i,a,s),function(e,t){var n="vertical"===t?"x":"y";z(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),z(e,(function(e){var t=0,n=0;z(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),z(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}(e,s)}(l,u,n,i,o,a,0!==F(l,(function(e){return 0===e.getLayout().value})).length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))}))}function hE(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function fE(e,t,n,i,r){var o="vertical"===r?"x":"y";z(e,(function(e){var a,s,l;e.sort((function(e,t){return e.getLayout()[o]-t.getLayout()[o]}));for(var u=0,c=e.length,d="vertical"===r?"dx":"dy",p=0;p<c;p++)(l=u-(s=e[p]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[d]+t;if((l=u-t-("vertical"===r?i:n))>0)for(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a,p=c-2;p>=0;--p)(l=(s=e[p]).getLayout()[o]+s.getLayout()[d]+t-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}))}function gE(e,t,n){z(e.slice().reverse(),(function(e){z(e,(function(e){if(e.outEdges.length){var i=bE(e.outEdges,mE,n)/bE(e.outEdges,_E);if(isNaN(i)){var r=e.outEdges.length;i=r?bE(e.outEdges,vE,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-wE(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-wE(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function mE(e,t){return wE(e.node2,t)*e.getValue()}function vE(e,t){return wE(e.node2,t)}function yE(e,t){return wE(e.node1,t)*e.getValue()}function xE(e,t){return wE(e.node1,t)}function wE(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function _E(e){return e.getValue()}function bE(e,t,n){for(var i=0,r=e.length,o=-1;++o<r;){var a=+t(e[o],n);isNaN(a)||(i+=a)}return i}function SE(e,t,n){z(e,(function(e){z(e,(function(e){if(e.inEdges.length){var i=bE(e.inEdges,yE,n)/bE(e.inEdges,_E);if(isNaN(i)){var r=e.inEdges.length;i=r?bE(e.inEdges,xE,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-wE(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-wE(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function ME(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes,i=t.edges;if(n.length){var r=1/0,o=-1/0;z(n,(function(e){var t=e.getLayout().value;t<r&&(r=t),t>o&&(o=t)})),z(n,(function(t){var n=new HA({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),i=t.getModel().get(["itemStyle","color"]);null!=i?(t.setVisual("color",i),t.setVisual("style",{fill:i})):(t.setVisual("color",n),t.setVisual("style",{fill:n}))}))}i.length&&z(i,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}var TE=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&null!=t.get(e)},e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!this._hasEncodeRule("x")):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),i=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,c=this._baseAxisDim=l[u],d=l[1-u],p=[r,o],h=p[u].get("type"),f=p[1-u].get("type"),g=e.data;if(g&&i){var m=[];z(g,(function(e,t){var n;$(e)?(n=e.slice(),e.unshift(t)):$(e.value)?((n=k({},e)).value=n.value.slice(),e.value.unshift(t)):n=e,m.push(n)})),e.data=m}var v=this.defaultValueDimensions,y=[{name:c,type:ix(h),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:ix(f),dimsDef:v.slice()}];return qM(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:j(ch,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),CE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.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 i(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Og);R(CE,TE,!0);var IE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(o).add((function(e){if(i.hasValue(e)){var t=kE(i.getItemLayout(e),i,e,a,!0);i.setItemGraphicEl(e,t),r.add(t)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(Pc(n),LE(s,n,i,e)):n=kE(s,i,e,a),r.add(n),i.setItemGraphicEl(e,n)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(Yg),AE=function(){},DE=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return i(t,e),t.prototype.getDefaultShape=function(){return new AE},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(Fs);function kE(e,t,n,i,r){var o=e.ends,a=new DE({shape:{points:r?EE(o,i,e):o}});return LE(e,a,t,n,r),a}function LE(e,t,n,i,r){var o=n.hostModel;(0,ud[r?"initProps":"updateProps"])(t,{shape:{points:e.ends}},o,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var a=n.getItemModel(i),s=a.getModel("emphasis");su(t,a),iu(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function EE(e,t,n){return B(e,(function(e){return(e=e.slice())[t]=n.initBaseline,e}))}var PE=z;function OE(e){var t=function(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),r=P(n,i);r<0&&(r=n.length,n[r]=i,t[r]={axis:i,seriesModels:[]}),t[r].seriesModels.push(e)})),t}(e);PE(t,(function(e){var t=e.seriesModels;t.length&&(function(e){var t,n=e.axis,i=e.seriesModels,r=i.length,o=e.boxWidthList=[],a=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;PE(i,(function(e){l=Math.max(l,e.getData().count())}));var u=n.getExtent();t=Math.abs(u[1]-u[0])/l}PE(i,(function(e){var n=e.get("boxWidth");$(n)||(n=[n,n]),s.push([Jr(n[0],t)||0,Jr(n[1],t)||0])}));var c=.8*t-2,d=c/r*.3,p=(c-d*(r-1))/r,h=p/2-c/2;PE(i,(function(e,t){a.push(h),h+=d+p,o.push(Math.min(Math.max(p,s[t][0]),s[t][1]))}))}(e),PE(t,(function(t,n){!function(e,t,n){var i=e.coordinateSystem,r=e.getData(),o=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],u=r.mapDimension(l[a]),c=r.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var d=0;d<r.count();d++){var p=r.get(u,d),h=x(p,c[2],d),f=x(p,c[0],d),g=x(p,c[1],d),m=x(p,c[3],d),v=x(p,c[4],d),y=[];w(y,g,!1),w(y,m,!0),y.push(f,g,v,m),_(y,f),_(y,v),_(y,h),r.setItemLayout(d,{initBaseline:h[s],ends:y})}function x(e,n,o){var l,u=r.get(n,o),c=[];return c[a]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c))[a]+=t,l}function w(e,t,n){var i=t.slice(),r=t.slice();i[a]+=o,r[a]-=o,n?e.push(i,r):e.push(r,i)}function _(e,t){var n=t.slice(),i=t.slice();n[a]-=o,i[a]+=o,e.push(n,i)}}(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}var RE={type:"echarts:boxplot",transform:function(e){var t=e.upstream;t.sourceFormat!==Qp&&ko(Do("source data is not applicable for this boxplot transform. Expect number[][]."));var n=function(e,t){for(var n=[],i=[],r=(t=t||{}).boundIQR,o="none"===r||0===r,a=0;a<e.length;a++){var s=eo(e[a].slice()),l=go(s,.25),u=go(s,.5),c=go(s,.75),d=s[0],p=s[s.length-1],h=(null==r?1.5:r)*(c-l),f=o?d:Math.max(d,l-h),g=o?p:Math.min(p,c+h),m=t.itemNameFormatter,v=Y(m)?m({value:a}):X(m)?m.replace("{value}",a+""):a+"";n.push([v,f,l,u,c,g]);for(var y=0;y<s.length;y++){var x=s[y];if(x<f||x>g){var w=[v,x];i.push(w)}}}return{boxData:n,outliers:i}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var NE=["itemStyle","borderColor"],zE=["itemStyle","borderColor0"],BE=["itemStyle","borderColorDoji"],VE=["itemStyle","color"],FE=["itemStyle","color0"];function GE(e,t){return t.get(e>0?VE:FE)}function HE(e,t){return t.get(0===e?BE:e>0?NE:zE)}var WE={seriesType:"candlestick",plan:Wg(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;null!=(n=e.next());){var i=t.getItemModel(n),r=t.getItemLayout(n).sign,o=i.getItemStyle();o.fill=GE(r,i),o.stroke=HE(r,i)||o.fill,k(t.ensureUniqueItemVisual(n,"style"),o)}}}}},jE=["color","borderColor"],$E=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){ld(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("
2clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&UE(s,a))return;var l=qE(a,0,!0);Ac(l,{shape:{points:a.ends}},e,n),ZE(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(t.hasValue(a)){var c=t.getItemLayout(a);o&&UE(s,c)?i.remove(u):(u?(Ic(u,{shape:{points:c.ends}},e,a),Pc(u)):u=qE(c),ZE(u,t,a,r),i.add(u),t.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),eP(e,this.group);var t=e.get("clip",!0)?YS(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n,i=t.getData(),r=i.getLayout("isSimpleBox");null!=(n=e.next());){var o=qE(i.getItemLayout(n));ZE(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){eP(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Yg),YE=function(){},XE=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return i(t,e),t.prototype.getDefaultShape=function(){return new YE},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Fs);function qE(e,t,n){var i=e.ends;return new XE({shape:{points:n?KE(i,e):i},z2:100})}function UE(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function ZE(e,t,n,i){var r=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,su(e,r);var o=t.getItemLayout(n).sign;z(e.states,(function(e,t){var n=r.getModel(t),i=GE(o,n),a=HE(o,n)||i,s=e.style||(e.style={});i&&(s.fill=i),a&&(s.stroke=a)}));var a=r.getModel("emphasis");iu(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function KE(e,t){return B(e,(function(e){return(e=e.slice())[1]=t.initBaseline,e}))}var JE=function(){},QE=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return i(t,e),t.prototype.getDefaultShape=function(){return new JE},t.prototype.buildPath=function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];e.moveTo(r,n[i++]),e.lineTo(r,n[i++])}else i+=3},t}(Fs);function eP(e,t,n,i){var r=e.getData().getLayout("largePoints"),o=new QE({shape:{points:r},__sign:1,ignoreCoarsePointer:!0});t.add(o);var a=new QE({shape:{points:r},__sign:-1,ignoreCoarsePointer:!0});t.add(a);var s=new QE({shape:{points:r},__sign:0,ignoreCoarsePointer:!0});t.add(s),tP(1,o,e),tP(-1,a,e),tP(0,s,e),i&&(o.incremental=!0,a.incremental=!0),n&&n.push(o,a)}function tP(e,t,n,i){var r=HE(e,n)||GE(e,n),o=n.getModel("itemStyle").getItemStyle(jE);t.useStyle(o),t.style.fill=null,t.style.stroke=r}var nP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return i(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Og);function iP(e){e&&$(e.series)&&z(e.series,(function(e){Z(e)&&"k"===e.type&&(e.type="candlestick")}))}R(nP,TE,!0);var rP={seriesType:"candlestick",plan:Wg(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=function(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=Jr(oe(e.get("barMaxWidth"),r),r),a=Jr(oe(e.get("barMinWidth"),
vendor: 29,299 bytes, line 2
21),r),s=e.get("barWidth");return null!=s?Jr(s,r):Math.max(Math.min(r/2,o),a)}(e,n),r=["x","y"],o=n.getDimensionIndex(n.mapDimension(r[0])),a=B(n.mapDimensionsAll(r[1]),n.getDimensionIndex,n),s=a[0],l=a[1],u=a[2],c=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(o<0||a.length<4))return{progress:e.pipelineContext.large?function(n,i){for(var r,a,d=Jx(4*n.count),p=0,h=[],f=[],g=i.getStore(),m=!!e.get(["itemStyle","borderColorDoji"]);null!=(a=n.next());){var v=g.get(o,a),y=g.get(s,a),x=g.get(l,a),w=g.get(u,a),_=g.get(c,a);isNaN(v)||isNaN(w)||isNaN(_)?(d[p++]=NaN,p+=3):(d[p++]=oP(g,a,y,x,l,m),h[0]=v,h[1]=w,r=t.dataToPoint(h,null,f),d[p++]=r?r[0]:NaN,d[p++]=r?r[1]:NaN,h[1]=_,r=t.dataToPoint(h,null,f),d[p++]=r?r[1]:NaN)}i.setLayout("largePoints",d)}:function(e,n){for(var r,a=n.getStore();null!=(r=e.next());){var d=a.get(o,r),p=a.get(s,r),h=a.get(l,r),f=a.get(u,r),g=a.get(c,r),m=Math.min(p,h),v=Math.max(p,h),y=M(m,d),x=M(v,d),w=M(f,d),_=M(g,d),b=[];T(b,x,0),T(b,y,1),b.push(I(_),I(x),I(w),I(y));var S=!!n.getItemModel(r).get(["itemStyle","borderColorDoji"]);n.setItemLayout(r,{sign:oP(a,r,p,h,l,S),initBaseline:p>h?x[1]:y[1],ends:b,brushRect:C(f,g,d)})}function M(e,n){var i=[];return i[0]=n,i[1]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function T(e,t,n){var r=t.slice(),o=t.slice();r[0]=qc(r[0]+i/2,1,!1),o[0]=qc(o[0]-i/2,1,!0),n?e.push(r,o):e.push(o,r)}function C(e,t,n){var r=M(e,n),o=M(t,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function I(e){return e[0]=qc(e[0],1),e}}}}};function oP(e,t,n,i,r,o){return n>i?-1:n<i?1:o?0:t>0?e.get(r,t-1)<=i?1:-1:1}function aP(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var sP=function(e){function t(t,n){var i=e.call(this)||this,r=new AS(t,n),o=new Fr;return i.add(r),i.add(o),i.updateData(t,n),i}return i(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=rv(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),r.add(a)}aP(r,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}aP(n,e)},t.prototype.highlight=function(){Wl(this)},t.prototype.downplay=function(){jl(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var r=this.childAt(1),o=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=ov(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),u=l&&l.fill,c=o.getModel("emphasis");r.setScale(s),r.traverse((function(e){e.setStyle("fill",u)}));var d=av(e.getItemVisual(t,"symbolOffset"),s);d&&(r.x=d[0],r.y=d[1]);var p=e.getItemVisual(t,"symbolRotate");r.rotation=(p||0)*Math.PI/180||0;var h={};h.showEffectOn=i.get("showEffectOn"),h.rippleScale=o.get(["rippleEffect","scale"]),h.brushType=o.get(["rippleEffect","brushType"]),h.period=1e3*o.get(["rippleEffect","period"]),h.effectOffset=t/e.count(),h.z=i.getShallow("z")||0,h.zlevel=i.getShallow("zlevel")||0,h.symbolType=a,h.color=u,h.rippleEffectColor=o.get(["rippleEffect","color"]),h.rippleNumber=o.get(["rippleEffect","number"]),"render"===h.showEffectOn?(this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==h.showEffectOn&&n.startEffectAnimation(h):"normal"===e&&"render"!==h.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=h,iu(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(Fr),lP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.init=function(){this._symbolDraw=new PS(sP)},t.prototype.render=function(e,t,n){var i=e.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(r.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var i=e.getData();this.group.dirty();var r=oM("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=It(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Yg),uP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return i(t,e),t.prototype.getInitialData=function(e,t){return Ox(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Og);var cP=function(e){function t(t,n,i){var r=e.call(this)||this;return r.add(r.createLine(t,n,i)),r._updateEffectSymbol(t,n),r}return i(t,e),t.prototype.createLine=function(e,t,n){return new nk(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");$(i)||(i=[i,i]);var o=e.getItemVisual(t,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==r&&(this.remove(s),(s=rv(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(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var r=e.getItemLayout(n),o=1e3*t.get("period"),a=t.get("loop"),s=t.get("roundTrip"),l=t.get("constantSpeed"),u=re(t.get("delay"),(function(t){return t/e.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 c=void 0;c=Y(u)?u(n):u,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,i,r){if(t>0){e.__t=0;var o=this,a=e.animate("",i).when(r?2*t:t,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(e)}));i||a.done((function(){o.remove(e)})),a.start()}},t.prototype._getLineLength=function(e){return Ve(e.__p1,e.__cp1)+Ve(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],a=o.slice(),s=Cn,l=In;o[0]=s(t[0],i[0],n[0],r),o[1]=s(t[1],i[1],n[1],r);var u=e.__t<1?l(t[0],i[0],n[0],r):l(n[0],i[0],t[0],1-r),c=e.__t<1?l(t[1],i[1],n[1],r):l(n[1],i[1],t[1],1-r);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*Ve(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*Ve(t,o):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=o[0],e.y=o[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(Fr),dP=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createPolyline(t,n,i),r}return i(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),r=new ic({shape:{points:i}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel;Ic(this.childAt(0),{shape:{points:e.getItemLayout(t)}},i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),r=e.getItemModel(t),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var u=r.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,iu(this,a,s,l)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(Fr),pP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return i(t,e),t.prototype.createLine=function(e,t,n){return new dP(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,r=1;r<t.length;r++){var o=t[r-1],a=t[r];i+=Ve(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},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(t<this._lastFramePercent){for(o=Math.min(a+1,r-1);o>=0&&!(i[o]<=t);o--);o=Math.min(o,r-2)}else{for(o=a;o<r&&!(i[o]>t);o++);o=Math.min(o-1,r-2)}var s=(t-i[o])/(i[o+1]-i[o]),l=n[o],u=n[o+1];e.x=l[0]*(1-s)+s*u[0],e.y=l[1]*(1-s)+s*u[1];var c=e.__t<1?u[0]-l[0]:l[0]-u[0],d=e.__t<1?u[1]-l[1]:l[1]-u[1];e.rotation=-Math.atan2(d,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(cP),hP=function(){this.polyline=!1,this.curveness=0,this.segs=[]},fP=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return i(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hP},t.prototype.buildPath=function(e,t){var n,i=t.segs,r=t.curveness;if(t.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){e.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)e.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],c=i[n++];if(e.moveTo(s,l),r>0){var d=(s+u)/2-(l-c)*r,p=(l+c)/2-(u-s)*r;e.quadraticCurveTo(d,p,u,c)}else e.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){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 u=i[s++],c=i[s++],d=1;d<l;d++)if(_s(u,c,p=i[s++],h=i[s++],o,e,t))return a;a++}else for(a=0,s=0;s<i.length;){u=i[s++],c=i[s++];var p=i[s++],h=i[s++];if(r>0){if(Ss(u,c,(u+p)/2-(c-h)*r,(c+h)/2-(p-u)*r,p,h,o,e,t))return a}else if(_s(u,c,p,h,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return e=n[0],t=n[1],i.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a<t.length;){var s=t[a++],l=t[a++];n=Math.min(s,n),r=Math.max(s,r),i=Math.min(l,i),o=Math.max(l,o)}e=this._rect=new Bt(n,i,r,o)}return e},t}(Fs),gP=function(){function e(){this.group=new Fr}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],i=t.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,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new fP({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var r=t.getVisual("style");r&&r.stroke&&e.setStyle("stroke",r.stroke),e.setStyle("fill",null);var o=fl(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){o.dataIndex=null;var n=e.hoverDataIdx;n>0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),mP={seriesType:"lines",plan:Wg(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c<r.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var d=0,p=[];for(c=r.start;c<r.end;c++){var h=e.getLineCoords(c,a);n&&(s[d++]=h);for(var f=0;f<h;f++)p=t.dataToPoint(a[f],!1,p),s[d++]=p[0],s[d++]=p[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=o.getItemModel(c),m=(h=e.getLineCoords(c,a),[]);if(n)for(var v=0;v<h;v++)m.push(t.dataToPoint(a[v]));else{m[0]=t.dataToPoint(a[0]),m[1]=t.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(c,m)}}}}Co("The lines series must have a coordinate system.")}},vP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e),o=e.get("zlevel"),a=e.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(e)&&a>0&&(l?console.warn("SVG render mode doesn't support lines with trail effect"):s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=e.get("clip",!0)&&YS(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData();this._updateLineDraw(i,e).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=mP.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),o=t.pipelineContext.large;return i&&o&&console.warn("Large lines not support effect"),n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new gP:new ik(r?i?pP:dP:i?cP:nk),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(Yg),yP="undefined"==typeof Uint32Array?Array:Uint32Array,xP="undefined"==typeof Float64Array?Array:Float64Array;function wP(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),e.data=B(t,(function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),D([t,e[0],e[1]])})))}var _P=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return i(t,e),t.prototype.init=function(t){t.data=t.data||[],wP(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(wP(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=ye(this._flatCoords,t.flatCoords),this._flatCoordsOffset=ye(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");if(!(n instanceof Array&&n.length>0&&n[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(n)+". Lines must have 2d coords array in data item.");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r<i;r++)t[r]=t[r]||[],t[r][0]=this._flatCoords[n+2*r],t[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(e);for(r=0;r<o.length;r++)t[r]=t[r]||[],t[r][0]=o[r][0],t[r][1]=o[r][1];return o.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),U(e[0])){for(var n=e.length,i=new yP(n),r=new xP(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=e[l++];i[a++]=o+t,i[a++]=u;for(var c=0;c<u;c++){var d=e[l++],p=e[l++];if(r[o++]=d,r[o++]=p,l>n)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){if(!Rh.get(e.coordinateSystem))throw new Error("Unknown coordinate system "+e.coordinateSystem);var n=new Tx(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,i,r){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().getItemModel(e),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),yg("nameValue",{name:s.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Og);function bP(e){return e instanceof Array||(e=[e,e]),e}var SP={seriesType:"lines",reset:function(e){var t=bP(e.get("symbol")),n=bP(e.get("symbolSize")),i=e.getData();return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(e,t){var n=e.getItemModel(t),i=bP(n.getShallow("symbol",!0)),r=bP(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}:null}}};var MP=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=d.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,d=c.getContext("2d"),p=e.length;c.width=t,c.height=n;for(var h=0;h<p;++h){var f=e[h],g=f[0],m=f[1],v=i(f[2]);d.globalAlpha=v,d.drawImage(a,g-u,m-u)}if(!c.width||!c.height)return c;for(var y=d.getImageData(0,0,c.width,c.height),x=y.data,w=0,_=x.length,b=this.minOpacity,S=this.maxOpacity-b;w<_;){v=x[w+3]/256;var M=4*Math.floor(255*v);if(v>0){var T=o(v)?s:l;v>0&&(v=v*S+b),x[w++]=T[M],x[w++]=T[M+1],x[w++]=T[M+2],x[w++]=T[M+3]*v*256}else w+=4}return d.putImageData(y,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=d.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},e}();function TP(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var CP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n){var i;if(t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),!i)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):TP(r)&&this._renderOnGeo(r,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var r=t.coordinateSystem;r&&(TP(r)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){ld(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,r){var o,a,s,l,u=e.coordinateSystem,c=XS(u,"cartesian2d");if(c){var d=u.getAxis("x"),p=u.getAxis("y");if("category"!==d.type||"category"!==p.type)throw new Error("Heatmap on cartesian must have two category axes");if(!d.onBand||!p.onBand)throw new Error("Heatmap on cartesian must have two axes with boundaryGap true");o=d.getBandWidth()+.5,a=p.getBandWidth()+.5,s=d.scale.getExtent(),l=p.scale.getExtent()}for(var h=this.group,f=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),x=fd(e),w=e.getModel("emphasis"),_=w.get("focus"),b=w.get("blurScope"),S=w.get("disabled"),M=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],T=n;T<i;T++){var C=void 0,I=f.getItemVisual(T,"style");if(c){var A=f.get(M[0],T),D=f.get(M[1],T);if(isNaN(f.get(M[2],T))||isNaN(A)||isNaN(D)||A<s[0]||A>s[1]||D<l[0]||D>l[1])continue;var k=u.dataToPoint([A,D]);C=new Js({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:I})}else{if(isNaN(f.get(M[1],T)))continue;C=new Js({z2:1,shape:u.dataToRect([f.get(M[0],T)]).contentShape,style:I})}if(f.hasItemOption){var L=f.getItemModel(T),E=L.getModel("emphasis");g=E.getModel("itemStyle").getItemStyle(),m=L.getModel(["blur","itemStyle"]).getItemStyle(),v=L.getModel(["select","itemStyle"]).getItemStyle(),y=L.get(["itemStyle","borderRadius"]),_=E.get("focus"),b=E.get("blurScope"),S=E.get("disabled"),x=fd(L)}C.shape.r=y;var P=e.getRawValue(T),O="-";P&&null!=P[2]&&(O=P[2]+""),hd(C,x,{labelFetcher:e,labelDataIndex:T,defaultOpacity:I.opacity,defaultText:O}),C.ensureState("emphasis").style=g,C.ensureState("blur").style=m,C.ensureState("select").style=v,iu(C,_,b,S),C.incremental=r,r&&(C.states.emphasis.hoverLayer=!0),h.add(C),f.setItemGraphicEl(T,C),this._progressiveEls&&this._progressiveEls.push(C)}},t.prototype._renderOnGeo=function(e,t,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new MP;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),u=e.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),d=Math.max(l.y,0),p=Math.min(l.width+l.x,i.getWidth()),h=Math.min(l.height+l.y,i.getHeight()),f=p-c,g=h-d,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,(function(t,n,i){var r=e.dataToPoint([t,n]);return r[0]-=c,r[1]-=d,r.push(i),r})),y=n.getExtent(),x="visualMap.continuous"===n.type?function(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}(y,n.option.range):function(e,t,n){var i=e[1]-e[0],r=(t=B(t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}))).length,o=0;return function(e){var i;for(i=o;i<r;i++)if((a=t[i].interval)[0]<=e&&e<=a[1]){o=i;break}if(i===r)for(i=o-1;i>=0;i--){var a;if((a=t[i].interval)[0]<=e&&e<=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()},x);var w=new $s({style:{width:f,height:g,x:c,y:d,image:s.canvas},silent:!0});this.group.add(w)},t.type="heatmap",t}(Yg),IP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.getInitialData=function(e,t){return Ox(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Rh.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Og);var AP=["itemStyle","borderWidth"],DP=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],kP=new Pu,LP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:DP[+s],categoryDim:DP[1-+s]};r.diff(o).add((function(e){if(r.hasValue(e)){var t=VP(r,e),n=EP(r,e,t,u),o=HP(r,u,n);r.setItemGraphicEl(e,o),i.add(o),XP(o,u,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var a=VP(r,e),s=EP(r,e,a,u),l=jP(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?function(e,t,n){var i=n.animationModel,r=n.dataIndex;Ic(e.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?RP(e,t,n,!0):NP(e,0,n,!0),zP(e,n,!0),BP(e,t,n,!0)}(n,u,s):n=HP(r,u,s,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),XP(n,u,s)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&WP(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();
vendor: 3,702 bytes, line 2
2var c=e.get("clip",!0)?YS(e.coordinateSystem,!1,e):null;return c?i.setClipPath(c):i.removeClipPath(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){WP(i,fl(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(Yg);function EP(e,t,n,i){var r=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),d={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?n:null,hoverScale:c&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};(function(e,t,n,i,r){var o,a=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if($(s)){var d=[PP(l,s[0])-u,PP(l,s[1])-u];d[1]<d[0]&&d.reverse(),o=d[c]}else o=null!=s?PP(l,s)-u:t?i.coordSysExtent[a.index][c]-u:n[a.wh];r.boundingLength=o,t&&(r.repeatCutLength=n[a.wh]);var p="x"===a.xy,h=l.inverse;r.pxSign=p&&!h||!p&&h?o>=0?1:-1:o>0?1:-1})(n,o,r,i,d),function(e,t,n,i,r,o,a,s,l,u){var c,d=l.valueDim,p=l.categoryDim,h=Math.abs(n[p.wh]),f=e.getItemVisual(t,"symbolSize");(c=$(f)?f.slice():null==f?["100%","100%"]:[f,f])[p.index]=Jr(c[p.index],h),c[d.index]=Jr(c[d.index],i?h:Math.abs(o)),u.symbolSize=c,(u.symbolScale=[c[0]/s,c[1]/s])[d.index]*=(l.isHorizontal?-1:1)*a}(e,t,r,o,0,d.boundingLength,d.pxSign,u,i,d),function(e,t,n,i,r){var o=e.get(AP)||0;o&&(kP.attr({scaleX:t[0],scaleY:t[1],rotation:n}),kP.updateTransform(),o/=kP.getLineScale(),o*=t[i.valueDim.index]),r.valueLineWidth=o||0}(n,d.symbolScale,l,i,d);var p=d.symbolSize,h=av(n.get("symbolOffset"),p);return function(e,t,n,i,r,o,a,s,l,u,c,d){var p=c.categoryDim,h=c.valueDim,f=d.pxSign,g=Math.max(t[h.index]+s,0),m=g;if(i){var v=Math.abs(l),y=re(e.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var w=Jr(y,t[h.index]),_=Math.max(g+2*w,0),b=x?0:2*w,S=yo(i),M=S?i:qP((v+b)/_);_=g+2*(w=(v-M*g)/2/(x?M:Math.max(M-1,1))),b=x?0:2*w,S||"fixed"===i||(M=u?qP((Math.abs(u)+b)/_):0),m=M*_-b,d.repeatTimes=M,d.symbolMargin=w}var T=f*(m/2),C=d.pathPosition=[];C[p.index]=n[p.wh]/2,C[h.index]="start"===a?T:"end"===a?l-T:l/2,o&&(C[0]+=o[0],C[1]+=o[1]);var I=d.bundlePosition=[];I[p.index]=n[p.xy],I[h.index]=n[h.xy];var A=d.barRectShape=k({},n);A[h.wh]=f*Math.max(Math.abs(n[h.wh]),Math.abs(C[h.index]+T)),A[p.wh]=n[p.wh];var D=d.clipShape={};D[p.xy]=-n[p.xy],D[p.wh]=c.ecSize[p.wh],D[h.xy]=0,D[h.wh]=n[h.wh]}(n,p,r,o,0,h,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function PP(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function OP(e){var t=e.symbolPatternSize,n=rv(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function RP(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,d=o[t.valueDim.index]+a+2*n.symbolMargin;for($P(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?YP(e,null,f(c),n,i):YP(e,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(e)})),c++}));c<u;c++){var p=OP(n);p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,r.add(p);var h=f(c);YP(p,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,i)}function f(e){var t=s.slice(),i=n.pxSign,r=e;return("start"===n.symbolRepeatDirection?i>
vendor: 9,208 bytes, line 2
20:i<0)&&(r=u-1-e),t[l.index]=d*(r-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function NP(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?YP(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=OP(n),r.add(o),YP(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 zP(e,t,n){var i=k({},t.barRectShape),r=e.__pictorialBarRect;r?YP(r,null,{shape:i},t,n):((r=e.__pictorialBarRect=new Js({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,e.add(r))}function BP(e,t,n,i){if(n.symbolClip){var r=e.__pictorialClipPath,o=k({},n.clipShape),a=t.valueDim,s=n.animationModel,l=n.dataIndex;if(r)Ic(r,{shape:o},s,l);else{o[a.wh]=0,r=new Js({shape:o}),e.__pictorialBundle.setClipPath(r),e.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],ud[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function VP(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=FP,n.isAnimationEnabled=GP,n}function FP(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function GP(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function HP(e,t,n,i){var r=new Fr,o=new Fr;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?RP(r,t,n):NP(r,0,n),zP(r,n,i),BP(r,t,n,i),r.__pictorialShapeStr=jP(e,n),r.__pictorialSymbolMeta=n,r}function WP(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];$P(i,(function(e){o.push(e)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),z(o,(function(e){kc(e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function jP(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function $P(e,t,n){z(e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function YP(e,t,n,i,r,o){t&&e.attr(t),i.symbolClip&&!r?n&&e.attr(n):n&&ud[r?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,o)}function XP(e,t,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(),u=r.getShallow("cursor"),c=o.get("focus"),d=o.get("blurScope"),p=o.get("scale");$P(e,(function(e){if(e instanceof $s){var t=e.style;e.useStyle(k({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=a,p&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2}));var h=t.valueDim.posDesc[+(n.boundingLength>0)],f=e.__pictorialBarRect;f.ignoreClip=!0,hd(f,fd(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:CS(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),iu(e,c,d,o.get("disabled"))}function qP(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var UP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return i(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Fd(uM.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(uM);var ZP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return i(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,o=this.group,a=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(e){return e.name}o.x=0,o.y=l.y+u[0];var d=new ex(this._layersSeries||[],a,c,c),p=[];function h(t,n,s){var l=r._layers;if("remove"!==t){for(var u,c,d=[],h=[],f=a[n].indices,g=0;g<f.length;g++){var m=i.getItemLayout(f[g]),v=m.x,y=m.y0,x=m.y;d.push(v,y),h.push(v,y+x),u=i.getItemVisual(f[g],"style")}var w=i.getItemLayout(f[0]),_=e.getModel("label").get("margin"),b=e.getModel("emphasis");if("add"===t){var S=p[n]=new Fr;c=new WS({shape:{points:d,stackedOnPoints:h,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(c),o.add(S),e.isAnimationEnabled()&&c.setClipPath(function(e,t,n){var i=new Js({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Ac(i,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),i}(c.getBoundingRect(),e,(function(){c.removeClipPath()})))}else S=l[s],c=S.childAt(0),o.add(S),p[n]=S,Ic(c,{shape:{points:d,stackedOnPoints:h}},e),Pc(c);hd(c,fd(e),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var M=c.getTextContent();M&&(M.x=w.x-_,M.y=w.y0+w.y/2),c.useStyle(u),i.setItemGraphicEl(n,c),su(c,e),iu(c,b.get("focus"),b.get("blurScope"),b.get("disabled"))}else o.remove(l[n])}d.add(W(h,this,"add")).update(W(h,this,"update")).remove(W(h,this,"remove")).execute(),this._layersSeries=a,this._layers=p},t.type="themeRiver",t}(Yg);var KP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new UM(W(this.getData,this),W(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=na(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),r=[];i.buckets.each((function(e,t){r.push({name:t,dataList:e})}));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 u=r[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,e[t]=[u,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",Jo).models[0].get("type"),i=F(e.data,(function(e){return void 0!==e[2]})),r=this.fixData(i||[]),o=[],a=this.nameMap=ve(),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 u=Cx(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:ix(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new Tx(u,this);return c.initData(r),c},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var r=e.mapDimension("single"),o=na(n,(function(t){return e.get("name",t)})),a=[];return o.buckets.each((function(t,n){t.sort((function(t,n){return e.get(r,t)-e.get(r,n)})),a.push({name:n,indices:t})})),a},t.prototype.getAxisTooltipData=function(e,t,n){$(e)||(e=e?[e]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,d=o[l].indices.length,p=0;p<d;++p){var h=r.get(e[0],o[l].indices[p]),f=Math.abs(h-t);f<=u&&(i=h,u=f,c=o[l].indices[p])}a.push(c)}return{dataIndices:a,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData();return yg("nameValue",{name:i.getName(e),value:i.get(i.mapDimension("value"),e)})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Og);function JP(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=e.get("boundaryGap"),a=n.getAxis();i.boundaryGap=o,"horizontal"===a.orient?(o[0]=Jr(o[0],r.height),o[1]=Jr(o[1],r.height),QP(t,e,r.height-o[0]-o[1])):(o[0]=Jr(o[0],r.width),o[1]=Jr(o[1],r.width),QP(t,e,r.width-o[0]-o[1])),t.setLayout("layoutInfo",i)}))}function QP(e,t,n){if(e.count())for(var i,r=t.coordinateSystem,o=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),l=B(o,(function(t){return B(t.indices,(function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n}))})),u=function(e){for(var t=e.length,n=e[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<t;++l)s+=e[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(o-i[u])/2;o=0;for(var c=0;c<n;++c){var d=i[c]+r[c];d>o&&(o=d)}return{y0:r,max:o}}(l),c=u.y0,d=n/u.max,p=o.length,h=o[0].indices.length,f=0;f<h;++f){i=c[f]*d,e.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<p;++g)i+=l[g-1][f][1]*d,e.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*d})}}var eO=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.z2=2,o.textConfig={inside:!0},fl(o).seriesIndex=n.seriesIndex;
vendor: 6,035 bytes, line 2
2var a=new tl({z2:4,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,i,r),o}return i(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;fl(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),u=k({},l);u.label=null;var c=t.getVisual("style");c.lineJoin="bevel";var d=t.getVisual("decal");d&&(c.decal=Lv(d,r));var p=gM(a.getModel("itemStyle"),u,!0);k(u,p),z(wl,(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=gM(n,u);i&&(t.shape=i)})),e?(o.setShape(u),o.shape.r=l.r0,Ac(o,{shape:{r:l.r}},n,t.dataIndex)):(Ic(o,{shape:u},n),Pc(o)),o.useStyle(c),this._updateLabel(n);var h=a.getShallow("cursor");h&&o.attr("cursor",h),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus");iu(this,"relative"===f?ye(t.getAncestorsIndices(),t.getDescendantIndices()):"ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=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),u=this,c=u.getTextContent(),d=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,h=i.get("show")&&!(null!=p&&Math.abs(o)<p);function f(e,t){var n=e.get(t);return null==n?i.get(t):n}c.ignore=!h,z(_l,(function(i){var p="normal"===i?n.getModel("label"):n.getModel([i,"label"]),h="normal"===i,g=h?c:c.ensureState(i),m=e.getFormattedLabel(d,i);h&&(m=m||t.node.name),g.style=gd(p,{},null,"normal"!==i,!0),m&&(g.style.text=m);var v=p.get("show");null==v||h||(g.ignore=!v);var y,x=f(p,"position"),w=h?u:u.states[i],_=w.style.fill;w.textConfig={outsideFill:"inherit"===p.get("color")?_:null,inside:"outside"!==x};var b=f(p,"distance")||0,S=f(p,"align"),M=f(p,"rotate"),T=.5*Math.PI,C=1.5*Math.PI,I=Ts("tangential"===M?Math.PI/2-a:a),A=I>T&&!lo(I-T)&&I<C;"outside"===x?(y=r.r+b,S=A?"right":"left"):S&&"center"!==S?"left"===S?(y=r.r0+b,S=A?"right":"left"):"right"===S&&(y=r.r-b,S=A?"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(p,"verticalAlign")||"middle",g.x=y*s+r.cx,g.y=y*l+r.cy;var D=0;"radial"===M?D=Ts(-a)+(A?Math.PI:0):"tangential"===M?D=Ts(Math.PI/2-a)+(A?Math.PI:0):U(M)&&(D=M*Math.PI/180),g.rotation=Ts(D)})),c.dirtyStyle()},t}(Zu),tO="sunburstRootToNode",nO="sunburstHighlight";var iO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n,i){var r=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,s=e.getViewRoot(),l=this.group,u=e.get("renderLabelForZeroData"),c=[];s.eachNode((function(e){c.push(e)}));var d=this._oldChildren||[];(function(i,r){function s(e){return e.getId()}function c(s,c){!function(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,e,t,n),o.setItemGraphicEl(i.dataIndex,r.piece)):(c=r,c&&c.piece&&(l.remove(c.piece),c.piece=null));else if(i){var s=new eO(i,e,t,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}var c}(null==s?null:i[s],null==c?null:r[c])}0===i.length&&0===r.length||new ex(r,i,s,s).add(c).update(c).remove(j(c,null)).execute()})(c,d),function(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,e,t,n):(r.virtualPiece=new eO(i,e,t,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(e){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1;e.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");a&&Op(a,o.get("target",!0)||"_blank")}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:tO,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var i=e[0]-n.cx,r=e[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},t.type="sunburst",t}(Yg),rO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return i(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};oO(n);var i=this._levelModels=B(e.levels||[],(function(e){return new zd(e,this,t)}),this),r=fA.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t),o=i[n.depth];return o&&(e.parentModel=o),e}))}));return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=yA(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){MA(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}}
vendor: 5,265 bytes, line 2
2,animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Og);function oO(e){var t=0;z(e.children,(function(e){oO(e);var n=e.value;$(n)&&(n=n[0]),t+=n}));var n=e.value;$(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),$(e.value)?e.value[0]=n:e.value=n}var aO=Math.PI/180;function sO(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");$(i)||(i=[0,i]),$(t)||(t=[t,t]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=Jr(t[0],r),l=Jr(t[1],o),u=Jr(i[0],a/2),c=Jr(i[1],a/2),d=-e.get("startAngle")*aO,p=e.get("minAngle")*aO,h=e.getData().tree.root,f=e.getViewRoot(),g=f.depth,m=e.get("sort");null!=m&&lO(f,m);var v=0;z(f.children,(function(e){!isNaN(e.getValue())&&v++}));var y=f.getValue(),x=Math.PI/(y||v)*2,w=f.depth>0,_=f.height-(w?-1:1),b=(c-u)/(_||1),S=e.get("clockwise"),M=e.get("stillShowZeroSum"),T=S?1:-1,C=function(t,n){if(t){var i=n;if(t!==h){var r=t.getValue(),o=0===y&&M?x:r*x;o<p&&(o=p),i=n+T*o;var c=t.depth-g-(w?-1:1),d=u+b*c,f=u+b*(c+1),m=e.getLevelModel(t);if(m){var v=m.get("r0",!0),_=m.get("r",!0),I=m.get("radius",!0);null!=I&&(v=I[0],_=I[1]),null!=v&&(d=Jr(v,a/2)),null!=_&&(f=Jr(_,a/2))}t.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:S,cx:s,cy:l,r0:d,r:f})}if(t.children&&t.children.length){var A=0;z(t.children,(function(e){A+=C(e,n+A)}))}return i-n}};if(w){var I=u,A=u+b,D=2*Math.PI;h.setLayout({angle:D,startAngle:d,endAngle:d+D,clockwise:S,cx:s,cy:l,r0:I,r:A})}C(f,d)}))}function lO(e,t){var n=e.children||[];e.children=function(e,t){if(Y(t)){var n=B(e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),B(n,(function(t){return e[t.index]}))}var i="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n}))}(n,t),n.length&&z(e.children,(function(e){lO(e,t)}))}function uO(e){var t={};e.eachSeriesByType("sunburst",(function(e){var n=e.getData(),i=n.tree;i.eachNode((function(r){var o=r.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(e,n,i){for(var r=e;r&&r.depth>1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&X(o)&&(o=Jn(o,(e.depth-1)/(i-1)*.5)),o}(r,e,i.root.height)),k(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)}))}))}var cO={color:"fill",borderColor:"stroke"},dO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},pO=qo(),hO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return Ox(null,this)},t.prototype.getDataParams=function(t,n,i){var r=e.prototype.getDataParams.call(this,t,n);return i&&(r.info=pO(i).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Og);function fO(e,t){return t=t||[0,0],B(["x","y"],(function(n,i){var r=this.getAxis(n),o=t[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function gO(e,t){return t=t||[0,0],B([0,1],(function(n){var i=t[n],r=e[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function mO(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function vO(e,t){return t=t||[0,0],B(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),o=t[i],a=e[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)}var yO={};function xO(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||_e(e,"text")))}function wO(e,t,n){var i,r,o,a=e;if("text"===t)o=a;else{o={},_e(a,"text")&&(o.text=a.text),_e(a,"rich")&&(o.rich=a.rich),_e(a,"textFill")&&(o.fill=a.textFill),_e(a,"textStroke")&&(o.stroke=a.textStroke),_e(a,"fontFamily")&&(o.fontFamily=a.fontFamily),_e(a,"fontSize")&&(o.fontSize=a.fontSize),_e(a,"fontStyle")&&(o.fontStyle=a.fontStyle),_e(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=_e(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),_e(a,"textPosition")&&(i.position=a.textPosition),_e(a,"textOffset")&&(i.offset=a.textOffset),_e(a,"textRotation")&&(i.rotation=a.textRotation),_e(a,"textDistance")&&(i.distance=a.textDistance)}return _O(o,e),z(o.rich,(function(e){_O(e,e)})),{textConfig:i,textContent:r}}function _O(e,t){t&&(t.font=t.textFont||t.font,_e(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),_e(t,"textAlign")&&(e.align=t.textAlign),_e(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),_e(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),_e(t,"textWidth")&&(e.width=t.textWidth),_e(t,"textHeight")&&(e.height=t.textHeight),_e(t,"textBackgroun
2dColor")&&(e.backgroundColor=t.textBackgroundColor),_e(t,"textPadding")&&(e.padding=t.textPadding),_e(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),_e(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),_e(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),_e(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),_e(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),_e(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),_e(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function bO(e,t,n){var i=e;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=e.fill||"#000";SO(i,t);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=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,z(t.rich,(function(e){SO(e,e)})),i}function SO(e,t){t&&(_e(t,"fill")&&(e.textFill=t.fill),_e(t,"stroke")&&(e.textStroke=t.fill),_e(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),_e(t,"font")&&(e.font=t.font),_e(t,"fontStyle")&&(e.fontStyle=t.fontStyle),_e(t,"fontWeight")&&(e.fontWeight=t.fontWeight),_e(t,"fontSize")&&(e.fontSize=t.fontSize),_e(t,"fontFamily")&&(e.fontFamily=t.fontFamily),_e(t,"align")&&(e.textAlign=t.align),_e(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),_e(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),_e(t,"width")&&(e.textWidth=t.width),_e(t,"height")&&(e.textHeight=t.height),_e(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),_e(t,"padding")&&(e.textPadding=t.padding),_e(t,"borderColor")&&(e.textBorderColor=t.borderColor),_e(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),_e(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),_e(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),_e(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),_e(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),_e(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),_e(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),_e(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),_e(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),_e(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function MO(e,t){var n=e+"^_^"+t;yO[n]||(console.warn('[ECharts] DEPRECATED: "'+e+'" has been deprecated. '+t),yO[n]=!0)}var TO={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},CO=H(TO),IO=V(xr,(function(e,t){return e[t]=1,e}),{}),AO=xr.join(", "),DO=["","style","shape","extra"],kO=qo();function LO(e,t,n,i,r){var o=e+"Animation",a=Tc(e,i,r)||{},s=kO(t).userDuring;return a.duration>0&&(a.during=s?W(FO,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),k(a,n[o]),a}function EO(e,t,n,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=kO(e),u=t.style;l.userDuring=t.during;var c={},d={};if(function(e,t,n){for(var i=0;i<CO.length;i++){var r=CO[i],o=TO[r],a=t[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(i=0;i<xr.length;i++){var s=xr[i];null!=t[s]&&(n[s]=t[s])}}(0,t,d),HO("shape",t,d),HO("extra",t,d),!o&&s&&(function(e,t,n){for(var i=t.transition,r=RO(i)?xr:Oo(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=e[a];NO(a,"el.transition"),n[a]=s}}}(e,t,c),GO("shape",e,t,c),GO("extra",e,t,c),function(e,t,n,i){if(n){var r,o=e.style;if(o){var a=n.transition,s=t.transition;if(a&&!RO(a)){var l=Oo(a);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var c=o[f=l[u]];r[f]=c}}else if(e.getAnimationStyleProps&&(RO(s)||RO(a)||P(s,"style")>=0)){var d=e.getAnimationStyleProps(),p=d?d.style:null;if(p){!r&&(r=i.style={});var h=H(n);for(u=0;u<h.length;u++){var f;p[f=h[u]]&&(c=o[f],r[f]=c)}}}}}}(e,t,u,c)),d.style=u,function(e,t,n){var i=t.style;if(!e.isGroup&&i){if(n){e.useStyle({});for(var r=e.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(e.style)}
2}e.setStyle(i)}t&&(t.style=null,t&&e.attr(t),t.style=i)}(e,d,a),function(e,t){_e(t,"silent")&&(e.silent=t.silent),_e(t,"ignore")&&(e.ignore=t.ignore),e instanceof Ba&&_e(t,"invisible")&&(e.invisible=t.invisible),e instanceof Fs&&_e(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}(e,t),s)if(o){var p={};z(DO,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(p[e]=p[e]||{}),k(e?p[e]:p,n.enterFrom))}));var h=LO("enter",e,t,n,r);h.duration>0&&e.animateFrom(p,h)}else!function(e,t,n,i,r){if(r){var o=LO("update",e,t,i,n);o.duration>0&&e.animateFrom(r,o)}}(e,t,r||0,n,c);PO(e,t),u?e.dirty():e.markRedraw()}function PO(e,t){for(var n=kO(e).leaveToProps,i=0;i<DO.length;i++){var r=DO[i],o=r?t[r]:t;o&&o.leaveTo&&(n||(n=kO(e).leaveToProps={}),r&&(n[r]=n[r]||{}),k(r?n[r]:n,o.leaveTo))}}function OO(e,t,n,i){if(e){var r=e.parent,o=kO(e).leaveToProps;if(o){var a=LO("update",e,t,n,0);a.done=function(){r.remove(e),i&&i()},e.animateTo(o,a)}else r.remove(e),i&&i()}}function RO(e){return"all"===e}var NO,zO={},BO={setTransform:function(e,t){return ue(_e(IO,e),"Only "+AO+" available in `setTransform`."),zO.el[e]=t,this},getTransform:function(e){return ue(_e(IO,e),"Only "+AO+" available in `getTransform`."),zO.el[e]},setShape:function(e,t){VO(e);var n=zO.el;return(n.shape||(n.shape={}))[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){VO(e);var t=zO.el.shape;if(t)return t[e]},setStyle:function(e,t){VO(e);var n=zO.el,i=n.style;return i&&(ie(t)&&To("style."+e+" must not be assigned with NaN."),i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){VO(e);var t=zO.el.style;if(t)return t[e]},setExtra:function(e,t){return VO(e),(zO.el.extra||(zO.el.extra={}))[e]=t,this},getExtra:function(e){VO(e);var t=zO.el.extra;if(t)return t[e]}};function VO(e){if("transition"===e||"enterFrom"===e||"leaveTo"===e)throw new Error('key must not be "'+e+'"')}function FO(){var e=this,t=e.el;if(t){var n=kO(t).userDuring,i=e.userDuring;n===i?(zO.el=t,i(BO)):e.el=e.userDuring=null}}function GO(e,t,n,i){var r=n[e];if(r){var o,a=t[e];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[e]={}),RO(l))k(o,a);else for(var u=Oo(l),c=0;c<u.length;c++){var d=a[h=u[c]];o[h]=d}else if(RO(s)||P(s,e)>=0){!o&&(o=i[e]={});var p=H(a);for(c=0;c<p.length;c++){var h;d=a[h=p[c]],WO(r[h],d)&&(o[h]=d)}}}}}function HO(e,t,n){var i=t[e];if(i)for(var r=n[e]={},o=H(i),a=0;a<o.length;a++){var s=o[a];r[s]=Pi(i[s])}}function WO(e,t){return N(e)?e!==t:null!=e&&isFinite(e)}NO=function(e,t){_e(IO,e)||To("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+H(IO).join("`, `")+"` are permitted.")};var jO=qo(),$O=["percent","easing","shape","style","extra"];function YO(e){e.stopAnimation("keyframe"),e.attr(jO(e))}function XO(e,t,n){if(n.isAnimationEnabled()&&t)if($(t))z(t,(function(t){XO(e,t,n)}));else{var i=t.keyframes,r=t.duration;if(n&&null==r){var o=Tc("enter",n,0);r=o&&o.duration}if(i&&r){var a=jO(e);z(DO,(function(n){if(!n||e[n]){var o,s=!1;i.sort((function(e,t){return e.percent-t.percent})),z(i,(function(i){var l=e.animators,u=n?i[n]:i;if(i.percent>=1&&(s=!0),u){var c=H(u);if(n||(c=F(c,(function(e){return P($O,e)<0}))),c.length){o||((o=e.animate(n,t.loop,!0)).scope="keyframe");for(var d=0;d<l.length;d++)l[d]!==o&&l[d].targetName===o.targetName&&l[d].stopTracks(c);n&&(a[n]=a[n]||{});var p=n?a[n]:a;z(c,(function(t){p[t]=((n?e[n]:e)||{})[t]})),o.whenWithKeys(r*i.percent,u,c,i.easing)}}})),o&&(s||To("End frame with percent: 1 is missing in the keyframeAnimation.",!0),o.delay(t.delay||0).duration(r).start(t.easing))}}))}}}var qO="emphasis",UO="normal",ZO="blur",KO="select",JO=[UO,qO,ZO,KO],QO={normal:["itemStyle"],emphasis:[qO,"itemStyle"],blur:[ZO,"itemStyle"],select:[KO,"itemStyle"]},eR={normal:["label"],emphasis:[qO,"label"],blur:[ZO,"label"],select:[KO,"label"]},tR=["x","y"],nR={normal:{},emphasis:{},blur:{},select:{}},iR={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:W(fO,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:W(gO,e)}}},single:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:W(mO,e)}}},polar:function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=e.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:W(vO,e)}}},calendar:function(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}};function rR(e){return e instanceof Fs}function oR(e){return e instanceof Ba}var aR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._data,o=e.getData(),a=this.group,s=dR(e,o,t,n);r||a.removeAll(),o.diff(r).add((function(t){hR(n,null,t,s(t,i),e,a,o)})).remove((function(t){var n=r.getItemGraphicEl(t);n&&OO(n,pO(n).option,e)})).update((function(t,l){var u=r.getItemGraphicEl(l);hR(n,u,t,s(t,i),e,a,o)})).execute();var l=e.get("clip",!0)?YS(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,r){var o=t.getData(),a=dR(t,o,n,i),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var u=e.start;u<e.end;u++){var c=hR(null,null,u,a(u,r),t,this.group,o);c&&(c.traverse(l),s.push(c))}},t.prototype.eachRendered=function(e){ld(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,i){var r=t.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},t.type="custom",t}(Yg);function sR(e){var t,n=e.type;if("path"===n){var i=e.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=SR(i);
vendor: 2,044 bytes, line 2
2t=Hc(o,null,r,i.layout||"center"),pO(t).customPathData=o}else if("image"===n)t=new $s({}),pO(t).customImagePath=e.style.image;else if("text"===n)t=new tl({});else if("group"===n)t=new Fr;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=Gc(n);a||ko('graphic type "'+n+'" can not be found.'),t=new a}return pO(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function lR(e,t,n,i,r,o,a){YO(t);var s=r&&r.normal.cfg;s&&t.setTextConfig(s),i&&null==i.transition&&(i.transition=tR);var l=i&&i.style;if(l){if("text"===t.type){var u=l;_e(u,"textFill")&&(u.fill=u.textFill),_e(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,d=rR(t)?l.decal:null;e&&d&&(d.dirty=!0,c=Lv(d,e)),l.__decalPattern=c}oR(t)&&l&&(c=l.__decalPattern)&&(l.decal=c),EO(t,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),XO(t,i.keyframeAnimation,o)}function uR(e,t,n,i,r){var o=t.isGroup?null:t,a=r&&r[e].cfg;if(o){var s=o.ensureState(e);if(!1===i){var l=o.getState(e);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),Fl(o)}}function cR(e,t,n){var i=n===UO,r=i?t:vR(t,n),o=r?r.z2:null;null!=o&&((i?e:e.ensureState(n)).z2=o||0)}function dR(e,t,n,i){var r=e.get("renderItem"),o=e.coordinateSystem,a={};o&&(ue(r,"series.render is required."),ue(o.prepareCustoms||iR[o.type],"This coordSys does not support custom series."),a=o.prepareCustoms?o.prepareCustoms(o):iR[o.type](o));for(var s,l,u=L({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)},style:function(n,i){MO("api.style","Please write literal style directly instead."),null==i&&(i=s);var r=t.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=y(i,UO).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:X(o)?o:"#000"},c=x(i,UO),d=gd(c,null,u,!1,!0);d.text=c.getShallow("show")?oe(e.getFormattedLabel(i,UO),CS(t,i)):null;var p=md(c,u,!1);return _(n,l),l=bO(l,d,p),n&&w(l,n),l.legacy=!0,l}
vendor: 9,761 bytes, line 2
2,ordinalRawValue:function(e,n){null==n&&(n=s),e=e||0;var i=t.getDimensionInfo(e);if(!i){var r=t.getDimensionIndex(e);return r>=0?t.getStore().get(r,n):void 0}var o=t.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,i){MO("api.styleEmphasis","Please write literal style directly instead."),null==i&&(i=s);var r=y(i,qO).getItemStyle(),o=x(i,qO),a=gd(o,null,null,!0,!0);a.text=o.getShallow("show")?ae(e.getFormattedLabel(i,qO),e.getFormattedLabel(i,UO),CS(t,i)):null;var l=md(o,null,!0);return _(n,r),r=bO(r,a,l),n&&w(r,n),r.legacy=!0,r},visual:function(e,n){if(null==n&&(n=s),_e(cO,e)){var i=t.getItemVisual(n,"style");return i?i[cO[e]]:null}if(_e(dO,e))return t.getItemVisual(n,e)},barLayout:function(e){if("cartesian2d"===o.type)return function(e){var t=[],n=e.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o<e.count;o++)t.push(L({bandWidth:r,axisKey:i,stackId:Qx+o},e));var a=rw(t),s=[];for(o=0;o<e.count;o++){var l=a[i][Qx+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}(L({axis:o.getBaseAxis()},e))},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(e){return _d(e,n)}},a.api||{}),c={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:pR(e.getData())},d={},p={},h={},f={},g=0;g<JO.length;g++){var m=JO[g];h[m]=e.getModel(QO[m]),f[m]=e.getModel(eR[m])}function v(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=v(e).getModel(QO[n])):v(e).getModel(QO[n]):h[n]}function x(e,n){return t.hasItemOption?e===s?p[n]||(p[n]=v(e).getModel(eR[n])):v(e).getModel(eR[n]):f[n]}return function(e,n){return s=e,l=null,d={},p={},r&&r(L({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},c),u)};function w(e,t){for(var n in t)_e(t,n)&&(e[n]=t[n])}function _(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function pR(e){var t={};return z(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim;(t[r]=t[r]||[])[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function hR(e,t,n,i,r,o,a){if(i){var s=fR(e,t,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&iu(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(t)}function fR(e,t,n,i,r,o){ue(i,"should not have an null/undefined element setting");var a=-1,s=t;t&&gR(t,i,r)&&(a=P(o.childrenRef(),t),t=null);var l,u,c=!t,d=t;d?d.clearStates():(d=sR(i),s&&(l=s,(u=d).copyTransform(l),oR(u)&&oR(l)&&(u.setStyle(l.style),u.z=l.z,u.z2=l.z2,u.zlevel=l.zlevel,u.invisible=l.invisible,u.ignore=l.ignore,rR(u)&&rR(l)&&u.setShape(l.shape)))),!1===i.morph?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),nR.normal.cfg=nR.normal.conOpt=nR.emphasis.cfg=nR.emphasis.conOpt=nR.blur.cfg=nR.blur.conOpt=nR.select.cfg=nR.select.conOpt=null,nR.isLegacy=!1,function(e,t,n,i,r,o){if(!e.isGroup){mR(n,null,o),mR(n,qO,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=sR(a),e.setTextContent(c)),lR(null,c,t,a,null,i,r);for(var d=a&&a.style,p=0;p<JO.length;p++){var h=JO[p];if(h!==UO){var f=o[h].conOpt;uR(h,c,0,yR(a,f,h),null)}}d?c.dirty():c.markRedraw()}}}}(d,n,i,r,c,nR),function(e,t,n,i,r){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&gR(a,o,i)&&(a=null),a||(ue(rR(a=sR(o)),"Only any type of `path` can be used in `clipPath`, rather than "+a.type+"."),e.setClipPath(a)),lR(null,a,t,o,null,i,r)}}(d,n,i,r,c),lR(e,d,n,i,nR,r,c),_e(i,"info")&&(pO(d).info=i.info);for(var p=0;p<JO.length;p++){var h=JO[p];if(h!==UO){var f=vR(i,h);uR(h,d,0,yR(i,f,h),nR)}}return function(e,t,n){if(!e.isGroup){var i=e,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=t.z2;null!=a&&(i.z2=a||0);for(var s=0;s<JO.length;s++)cR(i,t,JO[s])}}(d,i,r),"group"===i.type&&function(e,t,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(a||l||u)if(l)g={api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:t},new ex(g.oldChildren,g.newChildren,wR,wR,g).add(_R).update(_R).remove(bR).execute();else{u&&t.removeAll();for(var c=0;c<a;c++){var d=o[c],p=t.childAt(c);d?(null==d.ignore&&(d.ignore=!1),fR(e,p,n,d,r,t)):(ue(p,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),p.ignore=!0)}for(var h=t.childCount()-1;h>=c;h--){var f=t.childAt(h);xR(t,f,r)}}var g}(e,d,n,i,r),a>=0?o.replaceAt(d,a):o.add(d),d}function gR(e,t,n){var i,r=pO(e),o=t.type,a=t.shape,s=t.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&((i=a)&&(_e(i,"pathData")||_e(i,"d")))&&SR(a)!==r.customPathData||"image"===o&&_e(s,"image")&&s.image!==r.customImagePath}function mR(e,t,n){var i=t?vR(e,t):e,r=t?yR(e,i,qO):e.style,o=e.type,a=i?i.textConfig:null,s=e.textContent,l=s?t?vR(s,t):s:null;if(r&&(n.isLegacy||xO(r,o,!!a,!!l))){n.isLegacy=!0;var u=wO(r,o,!t);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text"),ue("text"===c.type,'textContent.type must be "text"')}var d=t?n[t]:n.normal;d.cfg=a,d.conOpt=l}function vR(e,t){return t?e?e[t]:null:e}function yR(e,t,n){var i=t&&t.style;return null==i&&n===qO&&e&&(i=e.styleEmphasis),i}function xR(e,t,n){t&&OO(t,pO(e).option,n)}function wR(e,t){var n=e&&e.name;return null!=n?n:"e\0\0"+t}function _R(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;fR(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function bR(e){var t=this.context,n=t.oldChildren[e];n&&OO(n,pO(n).option,t.seriesModel)}function SR(e){return e&&(e.pathData||e.d)}var MR=qo(),TR=I,CR=W,IR=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var r=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,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,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var d=j(AR,t,c);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,t)}else a=this._group=new Fr,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);ER(a,t,!0),this._renderHandle(r)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,o=t.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=RT(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,r){},e.prototype.createPointerEl=function(e,t,n,i){var r=t.pointer;if(r){var o=MR(e).pointerEl=new ud[r.type](TR(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var r=MR(e).labelEl=new tl(TR(t.label));e.add(r),kR(r,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=MR(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var r=MR(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{x:t.label.x,y:t.label.y}),kR(r,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,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||(t=!0,r=this._handle=nd(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){ft(e.event)},onmousedown:CR(this._onHandleDragMove,this,0,0),drift:CR(this._onHandleDragMove,this),ondragend:CR(this._onHandleDragEnd,this)}),i.add(r)),ER(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");$(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,nm(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){AR(this._axisPointerModel,!t&&this._moveAnimation,this._handle,LR(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(LR(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(LR(i)),MR(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),im(this,"_doDispat
2chAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function AR(e,t,n,i){DR(MR(n).lastProp,i)||(MR(n).lastProp=i,t?Ic(n,i,e):(n.stopAnimation(),n.attr(i)))}function DR(e,t){if(Z(e)&&Z(t)){var n=!0;return z(t,(function(t,i){n=n&&DR(e[i],t)})),!!n}return e===t}function kR(e,t){e[t.get(["label","show"])?"show":"hide"]()}function LR(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function ER(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}function PR(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle()).fill=null:"shadow"===n&&((t=i.getAreaStyle()).stroke=null),t}function OR(e,t,n,i,r){var o=RR(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Ip(a.get("padding")||0),l=a.getFont(),u=Mr(o,l),c=r.position,d=u.width+s[1]+s[3],p=u.height+s[0]+s[2],h=r.align;"right"===h&&(c[0]-=d),"center"===h&&(c[0]-=d/2);var f=r.verticalAlign;"bottom"===f&&(c[1]-=p),"middle"===f&&(c[1]-=p/2),function(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(c,d,p,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:gd(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function RR(e,t,n,i,r){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:r.precision}),a=r.formatter;if(a){var s={value:Nw(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};z(i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&s.seriesData.push(r)})),X(a)?o=a.replace("{value}",o):Y(a)&&(o=a(s))}return o}function NR(e,t,n){var i=[1,0,0,1,0,0];return Mt(i,i,n.rotation),St(i,i,n.position),Zc([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function zR(e,t,n,i,r,o){var a=IT.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),OR(t,i,r,o,{position:NR(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function BR(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function VR(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function FR(e,t,n,i,r,o){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var GR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=HR(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=PR(i),d=WR[s](o,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}zR(t,e,vT(a.model,n),n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=vT(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=NR(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=HR(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];d[l]=u[l];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(IR);function HR(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var WR={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:BR([t,n[0]],[t,n[1]],jR(e))}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:VR([t-i/2,n[0]],[i,r],jR(e))}}};function jR(e){return"x"===e.dim?0:1}var $R=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Xp),YR=qo(),XR=z;function qR(e,t,n){if(!o.node){var i=t.getZr();YR(i).records||(YR(i).records={}),function(e,t){function n(n,i){e.on(n,(function(n){var r=function(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}(t);XR(YR(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),function(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}(r.pendings,t)}))}YR(e).initialized||(YR(e).initialized=!0,n("click",j(ZR,"click")),n("mousemove",j(ZR,"mousemove")),n("globalout",UR))}(i,t),(YR(i).records[e]||(YR(i).records[e]={})).handler=n}}function UR(e,t,n){e.handler("leave",null,n)}function ZR(e,t,n,i){t.handler(e,n,i)}function KR(e,t){if(!o.node){var n=t.getZr();(YR(n).records||{})[e]&&(YR(n).records[e]=null)}}var JR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";qR("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>
vendor: 15,722 bytes, line 2
2=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){KR("axisPointer",t)},t.prototype.dispose=function(e,t){KR("axisPointer",t)},t.type="axisPointer",t}(Hg);function QR(e,t){var n,i=[],r=e.seriesIndex;if(null==r||!(n=t.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Xo(o,e);if(null==a||a<0||$(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,d=u.dim,p="x"===c||"radius"===c?1:0,h=o.mapDimension(d),f=[];f[p]=o.get(h,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(B(l.dimensions,(function(e){return o.mapDimension(e)})),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 eN=qo();function tN(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,a=e.dispatchAction||W(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){aN(r)&&(r=QR({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=aN(r),u=o.axesInfo,c=s.axesInfo,d="leave"===i||aN(r),p={},h={},f={list:[],map:{}},g={showPointer:j(iN,h),showTooltip:j(rN,f)};z(s.coordSysMap,(function(e,t){var n=l||e.containPoint(r);z(s.coordSysAxesInfo[t],(function(e,t){var i=e.axis,o=function(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}(u,e);if(!d&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&nN(e,a,g,!1,p)}}))}));var m={};return z(c,(function(e,t){var n=e.linkGroup;n&&!h[t]&&z(n.axesInfo,(function(t,i){var r=h[i];if(t!==e&&r){var o=r.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,oN(t),oN(e)))),m[e.key]=o}}))})),z(m,(function(e,t){nN(c[t],e,g,!0,p)})),function(e,t,n){var i=n.axesInfo=[];z(t,(function(t,n){var r=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}(h,c,p),function(e,t,n,i){if(!aN(t)&&e.list.length){var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}else i({type:"hideTip"})}(f,r,e,a),function(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",o=eN(i)[r]||{},a=eN(i)[r]={};z(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&z(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];z(o,(function(e,t){!a[t]&&l.push(e)})),z(a,(function(e,t){!o[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),p}}function nN(e,t,n,i,r){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,i=n.dim,r=e,o=[],a=Number.MAX_VALUE,s=-1;return z(t.seriesModels,(function(t,l){var u,c,d=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var p=t.getAxisTooltipData(d,e,n);c=p.dataIndices,u=p.nestestValue}else{if(!(c=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null)).length)return;u=t.getData().get(d[0],c[0])}if(null!=u&&isFinite(u)){var h=e-u,f=Math.abs(h);f<=a&&((f<a||h>=0&&s<0)&&(a=f,s=h,r=u,o.length=0),z(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:r}}(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&k(r,s[0]),!i&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function iN(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function rN(e,t,n,i){var r=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=zT(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim: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 oN(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function aN(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function sN(e){VT.registerAxisPointerClass("CartesianAxisPointer",GR),e.registerComponentModel($R),e.registerComponentView(JR),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!$(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=PT(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},tN)}var lN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.makeElOption=function(e,t,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(t),u=i.get("type");if(u&&"none"!==u){var c=PR(i),d=uN[u](o,a,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]);OR(e,n,i,r,function(e,t,n,i,r){var o=t.axis,a=o.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,d=i.getRadiusAxis().getExtent();if("radius"===o.dim){var p=[1,0,0,1,0,0];Mt(p,p,s),St(p,p,[i.cx,i.cy]),l=Zc([a,-r],p);var h=t.getModel("axisLabel").get("rotate")||0,f=IT.innerTextLayout(s,h*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=d[1];l=i.coordToPoint([g+r,a]);var m=i.cx,v=i.cy;u=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(t,n,0,a,p))},t}(IR);var uN={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:BR(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:FR(t.cx,t.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:FR(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}},cN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Xp),dN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Jo).models[0]},t.type="polarAxis",t}(Xp);R(dN,Gw);var pN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.type="angleAxis",t}(dN),hN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.type="radiusAxis",t}(dN),fN=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return i(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(w_);fN.prototype.dataToRadius=w_.prototype.dataToCoord,fN.prototype.radiusToData=w_.prototype.coordToData;var gN=qo(),mN=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return i(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=Mr(null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),d=gN(e.model),p=d.lastAutoInterval,h=d.lastTickCount;return null!=p&&null!=h&&Math.abs(p-c)<=1&&Math.abs(h-r)<=1&&p>c?c=p:(d.lastTickCount=r,d.lastAutoInterval=c),c},t}(w_);mN.prototype.dataToAngle=w_.prototype.dataToCoord,mN.prototype.angleToData=w_.prototype.coordToData;var vN=["radius","angle"],yN=function(){function e(e){this.dimensions=vN,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new fN,this._angleAxis=new mN,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){return this["_"+e+"Axis"]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[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(t*t+n*n);t/=s,n/=s;for(var l=Math.atan2(-n,t)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),i=Math.PI/180,r=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,o=n*n+i*i,a=this.r,s=this.r0;return a!==s&&o-r<=a*a&&o+r>=s*s}}},e.prototype.convertToPixel=function(e,t,n){return xN(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return xN(t)===this?this.pointToData(n):null},e}();function xN(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function wN(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();z(Fw(t,"radius"),(function(e){r.scale.unionExtentFromData(t,e)})),z(Fw(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),Pw(i.scale,i.model),Pw(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 _N(e,t){var n;if(e.type=t.get("type"),e.scale=Ow(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),function(e){return"angleAxis"===e.mainType}(t)){e.inverse=e.inverse!==t.get("clockwise");var i=t.get("startAngle"),r=null!==(n=t.get("endAngle"))&&void 0!==n?n:i+(e.inverse?-360:360);e.setExtent(i,r)}t.axis=e,e.model=t}var bN={dimensions:vN,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var r=new yN(i+"");r.update=wN;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");_N(o,s),_N(a,l),function(e,t,n){var i=t.get("center"),r=n.getWidth(),o=n.getHeight();e.cx=Jr(i[0],r),e.cy=Jr(i[1],o);var a=e.getRadiusAxis(),s=Math.min(r,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:$(l)||(l=[0,l]);var u=[Jr(l[0],s),Jr(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(r,e,t),n.push(r),e.coordinateSystem=r,r.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",Jo).models[0];if(!t)throw new Error('Polar "'+re(e.get("polarIndex"),e.get("polarId"),0)+'" not found');e.coordinateSystem=t.coordinateSystem}})),n}},SN=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function MN(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function TN(e){return e.getRadiusAxis().inverse?0:1}function CN(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var IN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return i(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=B(n.getViewLabels(),(function(e){e=I(e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));CN(s),CN(o),z(SN,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||AN[t](this.group,e,i,o,a,r,s)}),this)}},t.type="angleAxis",t}(VT),AN={axisLine:function(e,t,n,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,c=l.getExtent(),d=TN(n),p=d?0:1,h=360===Math.abs(c[1]-c[0])?"Circle":"Arc";(a=0===o[p]?new ud[h]({shape:{cx:n.cx,cy:n.cy,r:o[d],startAngle:-c[0]*u,endAngle:-c[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new Ju({shape:{cx:n.cx,cy:n.cy,r:o[d],r0:o[p]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(a)},axisTick:function(e,t,n,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[TN(n)],u=B(i,(function(e){return new ac({shape:MN(n,[l,l+s],e.coord)})}));e.add($c(u,{style:L(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[TN(n)],c=[],d=0;d<r.length;d++)for(var p=0;p<r[d].length;p++)c.push(new ac({shape:MN(n,[u,u+l],r[d][p].coord)}));e.add($c(c,{style:L(s.getModel("lineStyle").getLineStyle(),L(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,r,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");z(a,(function(i,r){var a=l,d=i.tickValue,p=o[TN(n)],h=n.coordToPoint([p+u,i.coord]),f=n.cx,g=n.cy,m=Math.abs(h[0]-f)/p<.3?"center":h[0]>f?"left":"right",v=Math.abs(h[1]-g)/p<.3?"middle":h[1]>g?"top":"bottom";if(s&&s[d]){var y=s[d];Z(y)&&y.textStyle&&(a=new zd(y.textStyle,l,l.ecModel))}
vendor: 41,915 bytes, line 2
2var x=new tl({silent:IT.isLabelSilent(t),style:gd(a,{x:h[0],y:h[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(e.add(x),c){var w=IT.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=i.rawLabel,fl(x).eventData=w}}),this)},splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<i.length;c++){var d=l++%s.length;u[d]=u[d]||[],u[d].push(new ac({shape:MN(n,o,i[c].coord)}))}for(c=0;c<u.length;c++)e.add($c(u[c],{style:L({stroke:s[c%s.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var u=0;u<r[l].length;u++)s.push(new ac({shape:MN(n,o,r[l][u].coord)}));e.add($c(s,{style:a.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,r,o){if(i.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=Math.PI/180,d=-i[0].coord*c,p=Math.min(o[0],o[1]),h=Math.max(o[0],o[1]),f=t.get("clockwise"),g=1,m=i.length;g<=m;g++){var v=g===m?i[0].coord:i[g].coord,y=l++%s.length;u[y]=u[y]||[],u[y].push(new Zu({shape:{cx:n.cx,cy:n.cy,r0:p,r:h,startAngle:d,endAngle:-v*c,clockwise:f},silent:!0})),d=-v*c}for(g=0;g<u.length;g++)e.add($c(u[g],{style:L({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}},DN=["axisLine","axisTickLabel","axisName"],kN=["splitLine","splitArea","minorSplitLine"],LN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return i(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,i=this._axisGroup=new Fr;this.group.add(i);var r=e.axis,o=r.polar,a=o.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=a.getExtent()[0],c=r.getExtent(),d=function(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}(o,e,u),p=new IT(e,d);z(DN,p.add,p),i.add(p.getGroup()),Qc(n,i,e),z(kN,(function(t){e.get([t,"show"])&&!r.scale.isBlank()&&EN[t](this.group,e,o,u,c,s,l)}),this)}},t.type="radiusAxis",t}(VT),EN={splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,u=n.getAngleAxis(),c=Math.PI/180,d=u.getExtent(),p=360===Math.abs(d[1]-d[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var h=[],f=0;f<o.length;f++){var g=l++%s.length;h[g]=h[g]||[],h[g].push(new ud[p]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[f].coord,0),startAngle:-d[0]*c,endAngle:-d[1]*c,clockwise:u.inverse}}))}for(f=0;f<h.length;f++)e.add($c(h[f],{style:L({stroke:s[f%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,r,o,a){if(a.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new Pu({shape:{cx:n.cx,cy:n.cy,r:a[u][c].coord}}));e.add($c(l,{style:L({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,r,o){if(o.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=o[0].coord,d=1;d<o.length;d++){var p=l++%s.length;u[p]=u[p]||[],u[p].push(new Zu({shape:{cx:n.cx,cy:n.cy,r0:c,r:o[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[d].coord}for(d=0;d<u.length;d++)e.add($c(u[d],{style:L({fill:s[d%s.length]},a.getAreaStyle()),silent:!0}))}}};function PN(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function ON(e,t){return t.dim+e.model.componentIndex}function RN(e,t,n){var i={},r=function(e){var t={};z(e,(function(e,n){var i=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),a=ON(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var d=PN(e);c[d]||u.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var p=Jr(e.get("barWidth"),l),h=Jr(e.get("barMaxWidth"),l),f=e.get("barGap"),g=e.get("barCategoryGap");p&&!c[d].width&&(p=Math.min(u.remainedWidth,p),c[d].width=p,u.remainedWidth-=p),h&&(c[d].maxWidth=h),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return z(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=Jr(e.categoryGap,r),a=Jr(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),z(i,(function(e,t){var n=e.maxWidth;n&&n<u&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,d=0;z(i,(function(e,t){e.width||(e.width=u),c=e,d+=e.width*(1+a)})),c&&(d-=c.width*a);var p=-d/2;z(i,(function(e,i){n[t][i]=n[t][i]||{offset:p,width:e.width},p+=e.width*(1+a)}))})),n}(F(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),a=ON(n,o),s=PN(e),l=r[a][s],u=l.offset,c=l.width,d=n.getOtherAxis(o),p=e.coordinateSystem.cx,h=e.coordinateSystem.cy,f=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;i[s]=i[s]||[];for(var m=t.mapDimension(d.dim),v=t.mapDimension(o.dim),y=Ex(t,m),x="radius"!==o.dim||!e.get("roundCap",!0),w=d.model.get("startValue"),_=d.dataToCoord(w||0),b=0,S=t.count();b<S;b++){var M=t.get(m,b),T=t.get(v,b),C=M>=0?"p":"n",I=_;y&&(i[s][T]||(i[s][T]={p:_,n:_}),I=i[s][T][C]);var A=void 0,D=void 0,k=void 0,L=void 0;if("radius"===d.dim){var E=d.dataToCoord(M)-_,P=o.dataToCoord(T);Math.abs(E)<f&&(E=(E<0?-1:1)*f),A=I,D=I+E,L=(k=P-u)-c,y&&(i[s][T][C]=D)}else{var O=d.dataToCoord(M,x)-_,R=o.dataToCoord(T);Math.abs(O)<g&&(O=(O<0?-1:1)*g),D=(A=R+u)+c,k=I,L=I+O,y&&(i[s][T][C]=L)}t.setItemLayout(b,{cx:p,cy:h,r0:A,r:D,startAngle:-k*Math.PI/180,endAngle:-L*Math.PI/180,clockwise:k>=L})}}}))}var NN={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},zN={splitNumber:5},BN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.type="polar",t}(Hg);function VN(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.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],e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),re(t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var c=t.rotate;return null==c&&(c=e.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-c:c,r.z2=1,r}var FN=["axisLine","axisTickLabel","axisName"],GN=["splitArea","splitLine"],HN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return i(t,e),t.prototype.render=function(t,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Fr;var s=VN(t),l=new IT(t,s);z(FN,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),z(GN,(function(e){t.get([e,"show"])&&WN[e](this,this.group,this._axisGroup,t)}),this),Qc(a,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)},t.prototype.remove=function(){HT(this)},t.type="singleAxis",t}(VT),WN={splitLine:function(e,t,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];for(var l=a.get("width"),u=i.coordinateSystem.getRect(),c=r.isHorizontal(),d=[],p=0,h=r.getTicksCoords({tickModel:o}),f=[],g=[],m=0;m<h.length;++m){var v=r.toGlobalCoord(h[m].coord);c?(f[0]=v,f[1]=u.y,g[0]=v,g[1]=u.y+u.height):(f[0]=u.x,f[1]=v,g[0]=u.x+u.width,g[1]=v);var y=new ac({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});Xc(y.shape,l);var x=p++%s.length;d[x]=d[x]||[],d[x].push(y)}var w=a.getLineStyle(["color"]);for(m=0;m<d.length;++m)t.add($c(d[m],{style:L({stroke:s[m%s.length]},w),silent:!0}))}},splitArea:function(e,t,n,i){GT(e,n,i,i)}},jN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Xp);R(jN,Gw.prototype);var $N=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return i(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(w_),YN=["single"],XN=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=YN,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=this.dimension,r=new $N(i,Ow(e),[0,0],e.get("type"),e.get("position")),o="category"===r.type;r.onBand=o&&e.get("boundaryGap"),r.inverse=e.get("inverse"),r.orient=e.get("orient"),e.axis=r,r.model=e,r.coordinateSystem=this,this._axis=r},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();z(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),Pw(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=Fp({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],r=t.inverse?1:0;t.setExtent(i[r],i[1-r]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],r=e.isHorizontal();e.toGlobalCoord=r?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=r?function(e){return e-t}:function(e){return i-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){return qN(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return qN(t)===this?this.pointToData(n):null},e}();function qN(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var UN={create:function(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,r){var o=new XN(i,e,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",Jo).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n},dimensions:YN},ZN=["x","y"],KN=["width","height"],JN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.coordinateSystem,s=tz(a,1-ez(o)),l=a.dataToPoint(t)[0],u=i.get("type");if(u&&"none"!==u){var c=PR(i),d=QN[u](o,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}zR(t,e,VN(n),n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=VN(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=NR(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,a=ez(r),s=tz(o,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=tz(o,1-a),c=(u[1]+u[0])/2,d=[c,c];return d[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(IR),QN={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:BR([t,n[0]],[t,n[1]],ez(e))}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:VR([t-i/2,n[0]],[i,r],ez(e))}}};function ez(e){return e.isHorizontal()?0:1}function tz(e,t){var n=e.getRect();return[n[ZN[t]],n[ZN[t]]+n[KN[t]]]}var nz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.type="single",t}(Hg);var iz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.init=function(t,n,i){var r=jp(t);e.prototype.init.apply(this,arguments),rz(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),rz(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Xp);function rz(e,t){var n,i=e.cellSize;1===(n=$(i)?i:e.cellSize=[i,i]).length&&(n[1]=n[0]);var r=B([0,1],(function(e){return function(e,t){return null!=e[zp[t][0]]||null!=e[zp[t][1]]&&null!=e[zp[t][2]]}(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Wp(e,t,{type:"box",ignoreSize:r})}var oz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,a,i),this._renderYearText(e,o,a,i),this._renderMonthText(e,s,a,i),this._renderWeekText(e,s,o,a,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new Js({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},t.prototype._renderLines=function(e,t,n,i){var r=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){p(u.formatedDate),0===c&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var d=u.date;d.setMonth(d.getMonth()+1),u=o.getDateInfo(d)}function p(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}p(o.getNextNDay(t.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)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new ic({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),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},t.prototype._formatterLabel=function(e,t){return X(e)&&e?(n=e,z(t,(function(e,t){n=n.replace("{"+t+"}",i?ot(e):e)})),n):Y(e)?e(t):t.nameMap;var n,i},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var o=t[0],a=t[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]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.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,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,d={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},p=t.start.y;+t.end.y>+t.start.y&&(p=p+"-"+t.end.y);var h=r.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:p},g=this._formatterLabel(h,f),m=new tl({z2:30,style:gd(r,{text:g}),silent:r.get("silent")});m.attr(this._yearTextPositionControl(m,d[a],n,a,o)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(o="center"),"start"===i&&(a="bottom")):(s+=r,t&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!X(o)||(o&&(t=qd(o)||t),o=t.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,d="horizontal"===n?0:1;a="start"===s?-a:a;for(var p="center"===l,h=r.get("silent"),f=0;f<u[c].length-1;f++){var g=u[c][f].slice(),m=this._firstDayOfMonth[f];if(p){var v=this._firstDayPoints[f];g[d]=(v[d]+u[0][f+1][d])/2}var y=r.get("formatter"),x=o[+m.m-1],w={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:x},_=this._formatterLabel(y,w),b=new tl({z2:30,style:k(gd(r,{text:_}),this._monthTextPositionControl(g,p,n,s,a)),silent:h});i.add(b)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,r){var o="center",a="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,i,r){var o=e.getModel("dayLabel");if(o.get("show")){var a=e.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();l&&!X(l)||(l&&(t=qd(l)||t),l=t.get(["time","dayOfWeekShort"])||B(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]})));var d=a.getNextNDay(n.end.time,7-n.lweek).time,p=[a.getCellWidth(),a.getCellHeight()];u=Jr(u,Math.min(p[1],p[0])),"start"===s&&(d=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var h=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+c)%7);var y=new tl({z2:30,style:k(gd(o,{text:l[g]}),this._weekTextPositionControl(v,i,s,u,p)),silent:h});r.add(y)}}},t.type="calendar",t}(Hg),az=864e5,sz=function(){function e(t,n,i){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){var t=(e=co(e)).getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,r=e.getDate(),o=r<10?"0"+r:""+r,a=e.getDay();return{y:t+"",m:i,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+i+"-"+o,date:e}},e.prototype.getNextNDay=function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},e.prototype.update=function(e,t){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];z([0,1],(function(e){u(r,e)&&(o[i[e]]=r[e]*a[e])}));var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=Fp(o,s);function u(e,t){return null!=e[t]&&"auto"!==e[t]}z([0,1],(function(e){u(r,e)||(r[e]=l[i[e]]/a[e])})),this._sw=r[0],this._sh=r[1]},e.prototype.dataToPoint=function(e,t){$(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,r=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+az))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]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=lz(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=lz(t);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if($(t)&&1===t.length&&(t=t[0]),$(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[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);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return C("Invalid date range."),t;var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/az)-Math.floor(n[0].time/az)+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 u=Math.floor((i+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var r=7*(e-1)-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function lz(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}function uz(e,t){var n;return z(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}var cz=["transition","enterFrom","leaveTo"],dz=cz.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function pz(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?cz:dz,r=0;r<i.length;r++){var o=i[r];null==e[o]&&null!=t[o]&&(e[o]=t[o])}}var hz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return i(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,r=n.elements=t?[]:n.elements,o=[];this._flatten(i,o,null);var a=Vo(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];z(a,(function(e,t){var n=e.newOption;ue(Z(n)||e.existing,"Empty graphic option definition"),n&&(s.push(n),function(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}(e,n),function(e,t,n){var i=k({},n),r=e[t],o=n.$action||"merge";if("merge"===o)if(r){var a=n.type;ue(!a||r.type===a,'Please set $action: "replace" to change `type`'),A(r,i,!0),Wp(r,i,{ignoreSize:!0}),$p(n,r),pz(n,r),pz(n,r,"shape"),pz(n,r,"style"),pz(n,r,"extra"),n.clipPath=r.clipPath}else e[t]=i;else"replace"===o?e[t]=i:"remove"===o&&r&&(e[t]=null)}(r,t,n),function(e,t){if(e&&(e.hv=t.hv=[uz(t,["left","right"]),uz(t,["top","bottom"])],"group"===e.type)){var n=e,i=t;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(r[t],n))}),this),n.elements=F(r,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){z(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;i&&i.length&&this._flatten(i,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Xp),fz={path:null,compoundPath:null,group:Fr,image:$s,text:tl},gz=qo(),mz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.init=function(){this._elMap=ve()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group,r=e.get("z"),o=e.get("zlevel");z(t,(function(t){var a=Ho(t.id,null),s=null!=a?n.get(a):null,l=Ho(t.parentId,null),u=null!=l?n.get(l):i,c=t.type,d=t.style;"text"===c&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=t.textContent,h=t.textConfig;if(d&&xO(d,c,!!h,!!p)){var f=wO(d,c,!0);!h&&f.textConfig&&(h=t.textConfig=f.textConfig),!p&&f.textContent&&(p=f.textContent)}var g=function(e){return e=k({},e),z(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Np),(function(t){delete e[t]})),e}(t);s&&ue(u===s.parent,"Changing parent is not supported.");var m=t.$action||"merge",v="merge"===m,y="replace"===m;if(v){var x=s;(C=!s)?x=yz(a,u,t.type,n):(x&&(gz(x).isNew=!1),YO(x)),x&&(EO(x,g,e,{isInit:C}),wz(x,t,r,o))}else if(y){xz(s,t,n,e);var w=yz(a,u,t.type,n);w&&(EO(w,g,e,{isInit:!0}),wz(w,t,r,o))}else"remove"===m&&(PO(s,t),xz(s,t,n,e));var _=n.get(a);if(_&&p)if(v){var b=_.getTextContent();b?b.attr(p):_.setTextContent(new tl(p))}else y&&_.setTextContent(new tl(p));if(_){var S=t.clipPath;if(S){var M=S.type,T=void 0,C=!1;if(v){var I=_.getClipPath();T=(C=!I||gz(I).type!==M)?vz(M):I}else y&&(C=!0,T=vz(M));_.setClipPath(T),EO(T,S,e,{isInit:C}),XO(T,S.keyframeAnimation,e)}var A=gz(_);_.setTextConfig(h),A.option=t,function(e,t,n){var i=fl(e).eventData;e.silent||e.ignore||i||(i=fl(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}(_,e,t),ad({el:_,componentModel:e,itemName:_.name,itemTooltipOption:t.tooltip}),XO(_,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,r=this._elMap,o=t.getWidth(),a=t.getHeight(),s=["x","y"],l=0;l<n.length;l++)if((f=null!=(h=Ho((p=n[l]).id,null))?r.get(h):null)&&f.isGroup){var u=(g=f.parent)===i,c=gz(f),d=gz(g);c.width=Jr(c.option.width,u?o:d.width)||0,c.height=Jr(c.option.height,u?a:d.height)||0}for(l=n.length-1;l>=0;l--){var p,h,f;if(f=null!=(h=Ho((p=n[l]).id,null))?r.get(h):null){var g=f.parent,m=(d=gz(g),{}),v=Gp(f,p,g===i?{width:o,height:a}:{width:d.width,height:d.height},null,{hv:p.hv,boundingMode:p.bounding},m);if(!gz(f).isNew&&v){for(var y=p.transition,x={},w=0;w<s.length;w++){var _=s[w],b=m[_];y&&(RO(y)||P(y,_)>=0)?x[_]=b:f[_]=b}Ic(f,x,e,0)}else f.attr(m)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){xz(n,gz(n).option,t,e._lastGraphicModel)})),this._elMap=ve()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Hg);function vz(e){ue(e,"graphic type MUST be set");var t=_e(fz,e)?fz[e]:Gc(e);ue(t,"graphic type "+e+" can not be found");var n=new t({});return gz(n).type=e,n}function yz(e,t,n,i){var r=vz(n);return t.add(r),i.set(e,r),gz(r).id=e,gz(r).isNew=!0,r}function xz(e,t,n,i){e&&e.parent&&("group"===e.type&&e.traverse((function(e){xz(e,t,n,i)})),OO(e,t,i),n.removeKey(gz(e).id))}function wz(e,t,n,i){e.isGroup||z([["cursor",Ba.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];_e(t,i)?e[i]=oe(t[i],n[1]):null==e[i]&&(e[i]=n[1])})),z(H(t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=Y(i)?i:null}})),_e(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}var _z=["x","y","radius","angle","single"],bz=["cartesian2d","polar","singleAxis"];function Sz(e){return ue(e),e+"Axis"}function Mz(e,t){var n,i=ve(),r=[],o=ve();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis((function(e,n){var r=i.get(e);r&&r[n]&&(t=!0)})),t}(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),r.push(e),e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return r}function Tz(e){var t=e.ecModel,n={infoList:[],infoMap:ve()};return e.eachTargetAxis((function(e,i){var r=t.getComponent(Sz(e),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 Cz=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),Iz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return i(t,e),t.prototype.init=function(e,t,n){var i=Az(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=Az(e);A(this.option,e,!0),A(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;z([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=ve();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return z(_z,(function(n){var i=this.getReferringComponents(Sz(n),Qo);if(i.specified){t=!0;var r=new Cz;z(i.models,(function(e){r.add(e.componentIndex)})),e.set(n,r)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var r="vertical"===t?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}function o(t,n){var r=t[0];if(r){var o=new Cz;if(o.add(r.componentIndex),e.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",Jo).models[0];a&&z(t,(function(e){r.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",Jo).models[0]&&o.add(e.componentIndex)}))}}}i&&o(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single"),i&&z(_z,(function(t){if(i){var r=n.findComponents({mainType:Sz(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new Cz;o.add(r[0].componentIndex),e.set(t,o),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");z([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=e[i[0]],a=null!=e[i[1]];o&&!a?t[r]="percent":!o&&a?t[r]="value":n?t[r]=n[r]:o&&(t[r]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(Sz(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){z(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){ue(e&&null!=t);var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(Sz(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;z([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;z(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,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;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return ue(this._orient),this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Xp);function Az(e){var t={};return z(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var Dz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.type="dataZoom.select",t}(Iz),kz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(Hg),Lz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.type="dataZoom.select",t}(kz),Ez=z,Pz=eo,Oz=function(){function e(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(function(e){var t=e.get("coordinateSystem");return P(bz,t)>=0}(t)){var n=Sz(this._dimName),i=t.getReferringComponents(n,Jo).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return I(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];Ez(["start","end"],(function(l,u){var c=e[l],d=e[l+"Value"];"percent"===r[u]?(null==c&&(c=o[u]),d=i.parse(Kr(c,o,n))):(t=!0,c=Kr(d=null==d?n[u]:i.parse(d),n,o)),s[u]=null==d||isNaN(d)?n[u]:d,a[u]=null==c||isNaN(c)?o[u]:c})),Pz(s),Pz(a);var l=this._minMaxSpan;function u(e,t,n,r,o){var a=o?"Span":"ValueSpan";Zk(0,e,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)t[s]=Kr(e[s],n,r,!0),o&&(t[s]=i.parse(t[s]))}return t?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var i=[1/0,-1/0];Ez(n,(function(e){!function(e,t,n){t&&z(Fw(t,n),(function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])}))}(i,e.getData(),t)}));var r=e.getAxisModel(),o=kw(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=e.get("filterMode"),o=this._valueWindow;"none"!==r&&Ez(i,(function(e){var t=e.getData(),i=t.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=t.getStore(),s=B(i,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,r,l=0;l<i.length;l++){var u=a.get(s[l],e),c=!isNaN(u),d=u<o[0],p=u>o[1];if(c&&!d&&!p)return!0;c&&(r=!0),d&&(t=!0),p&&(n=!0)}return r&&t&&n}))}else Ez(i,(function(n){if("empty"===r)e.setData(t=t.map(n,(function(e){return function(e){return e>=o[0]&&e<=o[1]}(e)?e:NaN})));else{var i={};i[n]=o,t.selectRange(i)}}));Ez(i,(function(e){t.setApproximateExtent(o,e)}))}}))}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;Ez(["min","max"],(function(i){var r=t.get(i+"Span"),o=t.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Kr(n[0]+o,n,[0,100],!0):null!=r&&(o=Kr(r,[0,100],n,!0)-n[0]),e[i+"Span"]=r,e[i+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=io(n,[0,500]);i=Math.min(i,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},e}();var Rz={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=e.getComponent(Sz(i),r);t(i,r,o,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new Oz(t,i,o,e),n.push(r.__dzAxisProxy))}));var i=ve();return z(n,(function(e){z(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};var Nz=!1;function zz(e){Nz||(Nz=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Rz),function(e){e.registerAction("dataZoom",(function(e,t){z(Mz(t,e),(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function Bz(e){e.registerComponentModel(Dz),e.registerComponentView(Lz),zz(e)}var Vz=function(){},Fz={};function Gz(e,t){Fz[e]=t}function Hz(e){return Fz[e]}var Wz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;z(this.option.feature,(function(e,n){var i=Hz(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),A(e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0}
vendor: 4,530 bytes, line 2
2,t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Xp);function jz(e,t){var n=Ip(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),new Js({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1})}var $z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t,n,i){var r=this.group;if(r.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];z(s,(function(e,t){u.push(t)})),new ex(this._featureNames||[],u).add(c).update(c).remove(j(c,null)).execute(),this._featureNames=u,function(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Fp(i,o,r);Vp(t.get("orient"),e,t.get("itemGap"),a.width,a.height),Gp(e,i,o,r)}(r,e,n),r.add(jz(r.getBoundingRect(),e)),a||r.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!Y(l)&&t){var u=l.style||(l.style={}),c=Mr(t,tl.makeFont(u)),d=e.x+r.x,p=!1;e.y+r.y+o+c.height>n.getHeight()&&(a.position="top",p=!0);var h=p?-5-c.height:o+10;d+c.width/2>n.getWidth()?(a.position=["100%",h],u.align="right"):d-c.width/2<0&&(a.position=[0,h],u.align="left")}}))}function c(c,d){var p,h=u[c],f=u[d],g=s[h],m=new zd(g,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===h&&(g.title=i.newTitle),h&&!f){if(function(e){return 0===e.indexOf("my")}(h))p={onclick:m.option.onclick,featureName:h};else{var v=Hz(h);if(!v)return;p=new v}l[h]=p}else if(!(p=l[f]))return;p.uid=Vd("toolbox-feature"),p.model=m,p.ecModel=t,p.api=n;var y=p instanceof Vz;h||!f?!m.get("show")||y&&p.unusable?y&&p.remove&&p.remove(t,n):(function(i,s,l){var u,c,d=i.getModel("iconStyle"),p=i.getModel(["emphasis","iconStyle"]),h=s instanceof Vz&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};X(h)?(u={})[l]=h:u=h,X(f)?(c={})[l]=f:c=f;var g=i.iconPaths={};z(u,(function(l,u){var h=nd(l,{},{x:-o/2,y:-o/2,width:o,height:o});h.setStyle(d.getItemStyle()),h.ensureState("emphasis").style=p.getItemStyle();var f=new tl({style:{text:c[u],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null,font:_d({fontStyle:p.get("textFontStyle"),fontFamily:p.get("textFontFamily"),fontSize:p.get("textFontSize"),fontWeight:p.get("textFontWeight")},t)},ignore:!0});h.setTextContent(f),ad({el:h,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),h.__title=c[u],h.on("mouseover",(function(){var t=p.getItemStyle(),i=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";f.setStyle({fill:p.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),h.setTextConfig({position:p.get("textPosition")||i}),f.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===i.get(["iconStatus",u])?Wl:jl)(h),r.add(h),h.on("click",W(s.onclick,s,t,n,u)),g[u]=h}))}(m,p,h),m.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?Wl:jl)(i[e])},p instanceof Vz&&p.render&&p.render(m,t,n,i)):y&&p.dispose&&p.dispose(t,n)}},t.prototype.updateView=function(e,t,n,i){z(this._features,(function(e){e instanceof Vz&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){z(this._features,(function(n){n instanceof Vz&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){z(this._features,(function(n){n instanceof Vz&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(Hg);var Yz=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),a=r?"svg":n.get("type",!0)||"png",s=t.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroun
vendor: 24,036 bytes, line 2
2dColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),l=o.browser;if("function"!=typeof MouseEvent||!l.newEdge&&(l.ie||l.edge))if(window.navigator.msSaveOrOpenBlob||r){var u=s.split(","),c=u[0].indexOf("base64")>-1,d=r?decodeURIComponent(u[1]):u[1];c&&(d=window.atob(d));var p=i+"."+a;if(window.navigator.msSaveOrOpenBlob){for(var h=d.length,f=new Uint8Array(h);h--;)f[h]=d.charCodeAt(h);var g=new Blob([f]);window.navigator.msSaveOrOpenBlob(g,p)}else{var m=document.createElement("iframe");document.body.appendChild(m);var v=m.contentWindow,y=v.document;y.open("image/svg+xml","replace"),y.write(d),y.close(),v.focus(),y.execCommand("SaveAs",!0,p),document.body.removeChild(m)}}else{var x=n.get("lang"),w='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',_=window.open();_.document.write(w),_.document.title=i}else{var b=document.createElement("a");b.download=i+"."+a,b.target="_blank",b.href=s;var S=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(S)}},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(Vz),Xz="__ec_magicType_stack__",qz=[["line","bar"],["stack"]],Uz=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return z(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var i=this.model,r=i.get(["seriesIndex",n]);if(Zz[n]){var o,a={series:[]};z(qz,(function(e){P(e,n)>=0&&z(e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},(function(e){var t=e.subType,r=e.id,o=Zz[n](t,r,e,i);o&&(L(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=e.getReferringComponents(u,Jo).models[0].componentIndex;a[u]=a[u]||[];for(var d=0;d<=c;d++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=A({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},t}(Vz),Zz={line:function(e,t,n,i){if("bar"===e)return A({id:t,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(e,t,n,i){if("line"===e)return A({id:t,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(e,t,n,i){var r=n.get("stack")===Xz;if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),A({id:t,stack:r?"":Xz},i.get(["option","stack"])||{},!0)}};Fy({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var Kz=new Array(60).join("-"),Jz="\t";function Qz(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var eB=new RegExp("[\t]+","g");function tB(e,t){var n=e.split(new RegExp("\n*"+Kz+"\n*","g")),i={series:[]};return z(n,(function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(Jz)>=0)return!0}(e)){var r=function(e){for(var t=e.split(/\n+/g),n=[],i=B(Qz(t.shift()).split(eB),(function(e){return{name:e,data:[]}})),r=0;r<t.length;r++){var o=Qz(t[r]).split(eB);n.push(o.shift());for(var a=0;a<o.length;a++)i[a]&&(i[a].data[r]=o[a])}return{series:i,categories:n}}(e),o=t[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(e){for(var t=e.split(/\n+/g),n=Qz(t.shift()),i=[],r=0;r<t.length;r++){var o=Qz(t[r]);if(o){var a=o.split(eB),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}(e),i.series.push(r)})),i}var nB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.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 u=i.get("optionToContent"),c=i.get("contentToOption"),d=function(e){var t,n,i,r=function(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}(e);return{value:F([(n=r.seriesGroupByCategoryAxis,i=[],z(n,(function(e,t){var n=e.categoryAxis,r=e.valueAxis.dim,o=[" "].concat(B(e.series,(function(e){return e.name}))),a=[n.model.getCategories()];z(e.series,(function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(r),(function(e){return e})))}));for(var s=[o.join(Jz)],l=0;l<a[0].length;l++){for(var u=[],c=0;c<a.length;c++)u.push(a[c][l]);s.push(u.join(Jz))}i.push(s.join("\n"))})),i.join("\n\n"+Kz+"\n\n")),(t=r.other,B(t,(function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,r=arguments[e-1],o=t.getName(r),a=0;a<e-1;a++)i[a]=arguments[a];n.push((o?o+Jz:"")+i.join(Jz))})),n.join("\n")})).join("\n\n"+Kz+"\n\n"))],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+Kz+"\n\n"),meta:r.meta}}(e);if(Y(u)){var p=u(t.getOption());X(p)?s.innerHTML=p:Q(p)&&s.appendChild(p)}else{l.readOnly=i.get("readOnly");var h=l.style;h.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",h.color=i.get("textColor"),h.borderColor=i.get("textareaBorderColor"),h.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 x=this;function w(){n.removeChild(r),x._dom=null}ht(v,"click",w),ht(y,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)return To("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),void w();var e;try{e=Y(c)?c(s,t.getOption()):tB(l.value,f)}catch(e){throw w(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),w()})),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},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(Vz);function iB(e,t){return B(e,(function(e,n){var i=t&&t[n];if(Z(i)&&!$(i)){Z(e)&&!$(e)||(e={value:e});var r=null!=i.name&&null==e.name;return e=L(e,i),r&&delete e.name,e}return e}))}Fy({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];z(e.newOption.series,(function(e){var i=t.getSeriesByName(e.name)[0];if(i){var r=i.get("data");n.push({name:e.name,data:iB(e.data,r)})}else n.push(k({type:"scatter"},e))})),t.mergeOption(L({series:n},e.newOption))}));var rB=z,oB=qo();function aB(e){var t=oB(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var sB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.onclick=function(e,t){(function(e){oB(e).snapshots=null})(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","restore","title"])}},t}(Vz);Fy({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var lB=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],uB=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var r=dB(t,e);z(pB,(function(e,t){(!n||!n.include||P(n.include,t)>=0)&&e(r,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=gB[e.brushType](0,n,t);e.__rangeOffset={offset:vB[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){z(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&z(i.coordSyses,(function(i){var r=gB[e.brushType](1,i,e.range,!0);n(e,r.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){z(e,(function(e){var n,i,r,o,a,s=this.findTargetInfo(e,t);if(ue(!s||!0===s||e.coordRange,"coordRange must be specified when coord index specified."),ue(!s||!0!==s||e.range,"range must be specified in global brush."),e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;var l=gB[e.brushType](0,s.coordSys,e.coordRange),u=e.__rangeOffset;e.range=u?vB[e.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=xB(n),o=xB(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)},e.prototype.makePanelOpts=function(e,t){return B(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:JL(i),isTargetByCursor:eE(i,e,n.coordSysModel),getLinearBrushOtherExtent:QL(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&P(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=dB(t,e),r=0;r<n.length;r++){var o=n[r],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<hB.length;s++)if(hB[s](i,o))return o}return!0},e}();function cB(e){return e[0]>e[1]&&e.reverse(),e}function dB(e,t){return Zo(e,t,{includeMainTypes:lB})}var pB={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,o=ve(),a={},s={};(n||i||r)&&(z(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),z(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),z(r,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var r=e.coordinateSystem,o=[];z(r.getCartesians(),(function(e,t){(P(n,e.getAxis("x").model)>=0||P(i,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:fB.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){z(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:fB.geo})}))}},hB=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],fB={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Uc(e)),t}},gB={lineX:j(mB,0),lineY:j(mB,1),rect:function(e,t,n,i){var r=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[cB([r[0],o[0]]),cB([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:B(n,(function(n){var o=e?t.pointToData(n,i):t.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 mB(e,t,n,i){ue("cartesian2d"===n.type,"lineX/lineY brush is available only in cartesian2d.");var r=n.getAxis(["x","y"][e]),o=cB(B([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(i[e]),!0):r.toGlobalCoord(r.dataToCoord(i[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var vB={lineX:j(yB,0),lineY:j(yB,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return B(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function yB(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function xB(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var wB,_B,bB=z,SB=Po+"toolbox-dataZoom_",MB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new _L(n.getZr()),this._brushController.on("brush",W(this._onBrush,this)).mount()),function(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new uB(CB(e),t,{include:["grid"]}).makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,i,n),function(e,t){e.setIconStatus("back",function(e){return aB(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){TB[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new uB(CB(this.model),i,{include:["grid"]}).matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(r("x",n,t[0]),r("y",n,t[1])):r({lineX:"x",lineY:"y"}[i],n,t)}})),function(e,t){var n=aB(e);rB(t,(function(t,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=e.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(t)}(i,n),this._dispatchZoomAction(n)}function r(e,t,r){var o=t.getAxis(e),a=o.model,s=function(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(e,t.componentIndex)&&(i=n)})),i}(e,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=Zk(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];bB(e,(function(e,n){t.push(I(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(Vz),TB={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=aB(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return rB(n,(function(e,n){for(var r=t.length-1;r>=0;r--)if(e=t[r][n]){i[n]=e;break}})),i}(this.ecModel))}};function CB(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}wB="dataZoom",_B=function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),r=[],o=Zo(e,CB(i));return bB(o.xAxisModels,(function(e){return a(e,"xAxis","xAxisIndex")})),bB(o.yAxisModels,(function(e){return a(e,"yAxis","yAxisIndex")})),r}function a(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:SB+t+o};a[n]=o,r.push(a)}},ue(null==gh.get(wB)&&_B),gh.set(wB,_B);var IB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Xp);function AB(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function DB(e){if(o.domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n<i;n++)if(e[n]in t)return e[n]}var kB=DB(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function LB(e,t){if(!e)return t;t=Cp(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var EB=LB(DB(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),PB=LB(kB,"transform"),OB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(o.transform3dSupported?"will-change:transform;":"");function RB(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!o.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var a=o.transform3dSupported,s="translate"+(a?"3d":"")+"("+i+","+r+(a?",0":"")+")";return n?"top:0;left:0;"+PB+":"+s+";":[["top",0],["left",0],[kB,s]]}function NB(e,t,n){var i=[],r=e.get("transitionDuration"),a=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),d=e.getModel("textStyle"),p=Ag(e,"html"),h=u+"px "+c+"px "+s+"px "+l;return i.push("box-shadow:"+h),t&&r&&i.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,r="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,r+=o.transformSupported?","+PB+i:",left"+i+",top"+i),EB+":"+r}(r,n)),a&&i.push("background-color:"+a),z(["width","color","radius"],(function(t){var n="border-"+t,r=Cp(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))})),i.push(function(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont());var r=oe(e.get("lineHeight"),Math.round(3*n/2));n&&t.push("line-height:"+r+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),z(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}(d)),null!=p&&i.push("padding:"+Ip(p).join("px ")+"px"),i.join(";")+";"}function zB(e,t,n,i,r){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&function(e,t,n,i,r){tt(et,t,i,r,!0)&&tt(e,n,et[0],et[1])}(e,a,n,i,r)}else{e[0]=i,e[1]=r;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var BB=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,o.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),r=t.appendTo,a=r&&(X(r)?document.querySelector(r):Q(r)?r:Y(r)&&r(e.getDom()));zB(this._styleCoord,i,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!s._enterable){var t=i.handler;pt(i.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=(o="position",(a=(r=t).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?o?a[o]:a:null),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r,o,a,s=e.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=OB+NB(e,!this._firstShow,this._longHide)+RB(r[0],r[1],!0)+"border-color:"+Pp(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,r){var o=this.el;if(null!=e){var a="";if(X(r)&&"item"===n.get("trigger")&&!AB(n)&&(a=function(e,t,n){if(!X(n)||"inside"===n)return"";var i=e.get("backgroundColor"),r=e.get("borderWidth");t=Pp(t);var o,a,s="left"===(a=n)?"right":"right"===a?"left":"top"===a?"bottom":"top",l=Math.max(1.5*Math.round(r),6),u="",c=PB+":";P(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(o="left"===s?-225:-45)+"deg)"):(u+="left
2:50%",c+="translateX(-50%) rotate("+(o="top"===s?225:45)+"deg)");var d=o*Math.PI/180,p=l+r,h=p*Math.abs(Math.cos(d))+p*Math.abs(Math.sin(d)),f=t+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((h-Math.SQRT2*r)/2+Math.SQRT2*r-(h-p)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),X(e))o.innerHTML=e+a;else if(e){o.innerHTML="",$(e)||(e=[e]);for(var s=0;s<e.length;s++)Q(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(zB(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var i=this.el.style;z(RB(n[0],n[1]),(function(e){i[e[0]]=e[1]}))}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",o.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(W(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),VB=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),HB(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,i,r){var o=this;Z(e)&&ko("Passing DOM nodes as content is not supported in richText tooltip!"),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new tl({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Ag(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),z(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=n.get(e)})),z(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){o.el.style[e]=a.get(e)||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}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=GB(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var i=this._styleCoord;HB(i,this._zr,e,t),e=i[0],t=i[1];var r=n.style,o=FB(r.borderWidth||0),a=GB(r);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(W(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function FB(e){return Math.max(0,e)}function GB(e){var t=FB(e.shadowBlur||0),n=FB(e.shadowOffsetX||0),i=FB(e.shadowOffsetY||0);return{left:FB(t-n),right:FB(t+n),top:FB(t-i),bottom:FB(t+i)}}
vendor: 12,891 bytes, line 2
2function HB(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var WB=new Js({shape:{x:-1,y:-1,width:2,height:2}}),jB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.init=function(e,t){if(!o.node&&t.getDom()){var n=e.getComponent("tooltip"),i=this._renderMode="auto"===(r=n.get("renderMode"))?o.domSupported?"html":"richText":r||"html";this._tooltipContent="richText"===i?new VB(t):new BB(t,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}var r},t.prototype.render=function(e,t,n){if(!o.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?nm(this,"_updatePosition",50,"fixRate"):im(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");qR("itemTooltip",this._api,W((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.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(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!o.node&&n.getDom()){var r=YB(i,n);this._ticket="";var a=i.dataByCoordSys,s=function(e,t,n){var i=Ko(e).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,a=ea(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse((function(t){var n=fl(t).tooltipConfig;if(n&&n.name===e.name)return o=t,!0})),o?{componentMainType:r,componentIndex:a.componentIndex,el:o}:void 0}}(i,t,n);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var u=WB;u.x=i.x,u.y=i.y,u.update(),fl(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},r)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:a,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var c=QR(i,t),d=c.point[0],p=c.point[1];null!=d&&null!=p&&this._tryShow({offsetX:d,offsetY:p,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))}},t.prototype.manuallyHideTip=function(e,t,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(YB(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=t.getSeriesByIndex(r);if(s&&"axis"===$B([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}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,e);else if(n){var r,o;if("legend"===fl(n).ssrType)return;this._lastDataByCoordSys=null,Ym(n,(function(e){return null!=fl(e).dataIndex?(r=e,!0):null!=fl(e).tooltipConfig?(o=e,!0):void 0}),!0),r?this._showSeriesItemTooltip(e,r,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=W(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],o=$B([t.tooltipOption],i),a=this._renderMode,s=[],l=yg("section",{blocks:[],noHeader:!0}),u=[],c=new Dg;z(e,(function(e){z(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var o=RR(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=yg("section",{header:o,noHeader:!ce(o),sortBlocks:!0,blocks:[]});l.blocks.push(d),z(e.seriesDataIndices,(function(l){var p=n.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,f=p.getDataParams(h);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=Nw(t.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",Pp(f.color),a);var g=Of(p.formatTooltip(h,!0,null)),m=g.frag;if(m){var v=$B([p],i).get("valueFormatter");d.blocks.push(v?k({valueFormatter:v},m):m)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var d=t.position,p=o.get("order"),h=Mg(l,c,a,p,n.get("useUTC"),o.get("textStyle"));h&&u.unshift(h);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,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,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,r=fl(t),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),d=this._renderMode,p=e.positionDefault,h=$B([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=h.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),m=new Dg;g.marker=m.makeTooltipMarker("item",Pp(g.color),d);var v=Of(s.formatTooltip(l,!1,u)),y=h.get("order"),x=h.get("valueFormatter"),w=v.frag,_=w?Mg(x?k({valueFormatter:x},w):w,m,d,y,i.get("useUTC"),h.get("textStyle")):v.text,b="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,_,g,b,e.offsetX,e.offsetY,e.position,e.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i="html"===this._renderMode,r=fl(t),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;X(o)&&(o={content:o,formatter:o},a=!0),a&&i&&o.content&&((o=I(o)).content=ot(o.content));var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=e.positionDefault,c=$B(s,this._tooltipModel,u?{position:u}:null),d=c.get("content"),p=Math.random()+"",h=new Dg;this._showOrMove(c,(function(){var n=I(c.get("formatterParams")||{});this._showTooltipContent(c,d,n,p,e.offsetX,e.offsetY,e.position,t,h)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,r,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var d=t,p=this._getNearestPoint([r,o],n,e.get("trigger"),e.get("borderColor")).color;if(c)if(X(c)){var h=e.ecModel.get("useUTC"),f=$(n)?n[0]:n;d=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(d=lp(f.axisValue,d,h)),d=Lp(d,n,!0)}else if(Y(c)){var g=W((function(t,i){t===this._ticket&&(u.setContent(i,l,e,p,a),this._updatePosition(e,a,r,o,u,n,s))}),this);this._ticket=i,d=c(n,i,g)}else d=c;u.setContent(d,l,e,p,a),u.show(e,p),this._updatePosition(e,a,r,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||$(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:$(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=r.getSize(),c=e.get("align"),d=e.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),Y(t)&&(t=t([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),$(t))n=Jr(t[0],s),i=Jr(t[1],l);else if(Z(t)){var h=t;h.width=u[0],h.height=u[1];var f=Fp(h,{width:s,height:l});n=f.x,i=f.y,c=null,d=null}else if(X(t)&&a)n=(g=function(e,t,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-r/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-r/2,l=t.y+c+a;break;case"left":s=t.x-r-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}(t,p,u,e.get("borderWidth")))[0],i=g[1];else{var g;n=(g=function(e,t,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>i?e-=l+o:e+=o),null!=a&&(t+u+a>r?t-=u+a:t+=a),[e,t]}(n,i,r,s,l,c?null:20,d?null:20))[0],i=g[1]}c&&(n-=XB(c)?u[0]/2:"right"===c?u[0]:0),d&&(i-=XB(d)?u[1]/2:"bottom"===d?u[1]:0),AB(e)&&(n=(g=function(e,t,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,[e=Math.max(e,0),t=Math.max(t,0)]}(n,i,r,s,l))[0],i=g[1]),r.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===e.length;return r&&z(n,(function(n,o){var a=n.dataByAxis||[],s=(e[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&z(a,(function(e,n){var o=s[n]||{},a=e.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===l.length)&&z(a,(function(e,t){var n=l[t];r=r&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&z(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!r},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!o.node&&t.getDom()&&(im(this,"_updatePosition"),this._tooltipContent.dispose(),KR("itemTooltip",t))},t.type="tooltip",t}(Hg);function $B(e,t,n){var i,r=t.ecModel;n?(i=new zd(n,r,r),i=new zd(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof zd&&(a=a.get("tooltip",!0)),X(a)&&(a={formatter:a}),a&&(i=new zd(a,i,r)))}return i}function YB(e,t){return e.dispatchAction||W(t.dispatchAction,t)}function XB(e){return"center"===e||"middle"===e}var qB=["rect","polygon","keep","clear"];function UB(e,t){var n=Oo(e?e.brush:[]);if(n.length){var i=[];z(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var r=e&&e.toolbox;$(r)&&(r=r[0]),r||(r={feature:{}},e.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),function(e){var t={};z(e,(function(e){t[e]=1})),e.length=0,z(t,(function(t,n){e.push(n)}))}(s),t&&!s.length&&s.push.apply(s,qB)}}var ZB=z;function KB(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function JB(e,t,n){var i={};return ZB(t,(function(t){var r,o=i[t]=((r=function(){}).prototype.__hidden=r.prototype,new r);ZB(e[t],(function(e,i){if(HA.isValidType(i)){var r={type:i,visual:e};n&&n(r,t),o[i]=new HA(r),"opacity"===i&&((r=I(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new HA(r))}}))})),i}function QB(e,t,n){var i;z(n,(function(e){t.hasOwnProperty(e)&&KB(t[e])&&(i=!0)})),i&&z(n,(function(n){t.hasOwnProperty(n)&&KB(t[n])?e[n]=I(t[n]):delete e[n]}))}var eV={lineX:tV(0),lineY:tV(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&$w(n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var r=e.x,o=e.y,a=e.width,s=e.height,l=i[0];return!!($w(i,r,o)||$w(i,r+a,o)||$w(i,r,o+s)||$w(i,r+a,o+s)||Bt.create(e).contain(l[0],l[1])||id(r,o,r+a,o,i)||id(r,o,r,o+s,i)||id(r+a,o,r+a,o+s,i)||id(r,o+s,r+a,o+s,i))||void 0}}};function tV(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var r=i.range;return nV(t[e],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),nV(s[0],a)||nV(s[1],a)||nV(a[0],s)||nV(a[1],s)}}}}function nV(e,t){return t[0]<=e&&e<=t[1]}var iV=["inBrush","outOfBrush"],rV="__ecBrushSelect",oV="__ecInBrushSelectEvent";function aV(e){e.eachComponent({mainType:"brush"},(function(t){(t.brushTargetManager=new uB(t.option,e)).setInputRanges(t.areas,e)}))}function sV(e,t,n){var i,r,o=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),aV(e),e.eachComponent({mainType:"brush"}
vendor: 15,214 bytes, line 2
2,(function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:I(t.areas),selected:[]};o.push(a);var s=t.option,l=s.brushLink,u=[],c=[],d=[],p=!1;n||(i=s.throttleType,r=s.throttleDelay);var h=B(t.areas,(function(e){var t=cV[e.brushType],n=L({boundingRect:t?t(e):void 0},e);return n.selectors=function(e){var t=e.brushType,n={point:function(i){return eV[t].point(i,n,e)},rect:function(i){return eV[t].rect(i,n,e)}};return n}(n),n})),f=JB(t.option,iV,(function(e){e.mappingMethod="fixed"}));function g(e){return"all"===l||!!u[e]}function m(e){return!!e.length}function v(n,i,r){if(n.brushSelector&&!function(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&($(n)?P(n,t)<0:t!==n)}(t,i)&&(z(h,(function(i){t.brushTargetManager.controlSeries(i,n,e)&&r.push(i),p=p||m(r)})),g(i)&&m(r))){var o=n.getData();o.each((function(e){uV(n,r,o,e)&&(c[e]=1)}))}}$(l)&&z(l,(function(e){u[e]=1})),e.eachSeries((function(e,t){var n=d[t]=[];"parallel"===e.subType?function(e,t){var n=e.coordinateSystem;p=p||n.hasAxisBrushed(),g(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(c[t]=1)}))}(e,t):v(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var i=d[t],r=e.getData(),o=g(t)?function(e){return c[e]?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return uV(e,i,r,t)?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(t)?p:m(i))&&function(e,t,n,i,r,o){var a,s={};function l(e){return Gm(n,a,e)}function u(e,t){Wm(n,a,e,t)}function c(e,c){a=null==o?e:c;var d=n.getRawDataItem(a);if(!d||!1!==d.visualMap)for(var p=i.call(r,e),h=t[p],f=s[p],g=0,m=f.length;g<m;g++){var v=f[g];h[v]&&h[v].applyVisual(e,l,u)}}z(e,(function(e){var n=HA.prepareVisualTypes(t[e]);s[e]=n})),null==o?n.each(c):n.each([o],c)}(iV,f,r,o)}))})),function(e,t,n,i,r){if(r){var o=e.getZr();o[oV]||(o[rV]||(o[rV]=lV),nm(o,rV,n,t)(e,i))}}(t,i,r,o,n)}function lV(e,t){if(!e.isDisposed()){var n=e.getZr();n[oV]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[oV]=!1}}function uV(e,t,n,i){for(var r=0,o=t.length;r<o;r++){var a=t[r];if(e.brushSelector(i,n,a.selectors,a))return!0}}var cV={rect:function(e){return dV(e.range)},polygon:function(e){for(var t,n=e.range,i=0,r=n.length;i<r;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&dV(t)}};function dV(e){return new Bt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var pV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new _L(t.getZr())).on("brush",W(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){aV(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:I(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:I(n),$from:t})},t.type="brush",t}(Hg),hV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return i(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&QB(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){ue($(e)),z(e,(function(e){ue(e.brushType,"Illegal areas")})),e&&(this.areas=B(e,(function(e){return fV(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=fV(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Xp);function fV(e,t){return A({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new zd(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var gV=["rect","polygon","lineX","lineY","keep","clear"],mV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t,n){var i,r,o;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=i,this._brushMode=r,z(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return z(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){return{show:!0,type:gV.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:e.getLocaleModel().get(["toolbox","brush","title"])}},t}(Vz);var vV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return i(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Xp),yV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,r=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=oe(e.get("textBaseline"),e.get("textVerticalAlign")),l=new tl({style:gd(r,{text:e.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),d=new tl({style:gd(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),h=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!p&&!f,d.silent=!h&&!f,p&&l.on("click",(function(){Op(p,"_"+e.get("target"))})),h&&d.on("click",(function(){Op(h,"_"+e.get("subtarget"))})),fl(l).eventData=fl(d).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(l),c&&i.add(d);var g=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=Fp(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||("middle"===(a=e.get("left")||e.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=e.get("top")||e.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 x=v.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var _=new Js({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(_)}},t.type="title",t}(Hg);var xV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return i(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],z(n,(function(t,n){var i,o=Ho(zo(t),"");Z(t)?(i=I(t)).value=n:i=n,e.push(i),r.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new Tx([{name:"value",type:o}],this)).initData(e,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Xp),wV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.type="timeline.slider",t.defaultOption=Fd(xV.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(xV);R(wV,Pf.prototype);var _V=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.type="timeline",t}(Hg),bV=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o}return i(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(w_),SV=Math.PI,MV=qo(),TV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){return yg("nameValue",{noName:!0,value:a.scale.getLabel({value:e})})},z(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,r,a,e)}),this),this._renderAxisLabel(i,o,a,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i,r,o,a=e.get(["label","position"]),s=e.get("orient"),l=function(e,t){return Fp(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}(e,t),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<t.getHeight()/2?"-":"+":l.x+l.width/2<t.getW
vendor: 2,172 bytes, line 2
2idth()/2?"+":"-":X(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:SV/2},p="vertical"===s?l.height:l.width,h=e.getModel("controlStyle"),f=h.get("show",!0),g=f?h.get("itemSize"):0,m=f?h.get("itemGap"):0,v=g+m,y=e.get(["label","rotate"])||0;y=y*SV/180;var x=h.get("position",!0),w=f&&h.get("showPlayBtn",!0),_=f&&h.get("showPrevBtn",!0),b=f&&h.get("showNextBtn",!0),S=0,M=p;"left"===x||"bottom"===x?(w&&(i=[0,0],S+=v),_&&(r=[S,0],S+=v),b&&(o=[M-g,0],M-=v)):(w&&(i=[M-g,0],M-=v),_&&(r=[0,0],S+=v),b&&(o=[M-g,0],M-=v));var T=[S,M];return e.get("inverse")&&T.reverse(),{viewRect:l,mainLength:p,orient:s,rotation:d[s],labelRotation:y,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[s],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:T,controlSize:g,controlGap:m}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=[1,0,0,1,0,0],a=r.x,s=r.y+r.height;St(o,o,[-a,-s]),Mt(o,o,-SV/2),St(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=m(r),u=m(n.getBoundingRect()),c=m(i.getBoundingRect()),d=[n.x,n.y],p=[i.x,i.y];p[0]=d[0]=l[0][0];var h,f=e.labelPosOpt;function g(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}null==f||X(f)?(v(d,u,l,1,h="+"===f?0:1),v(p,c,l,1,1-h)):(v(d,u,l,1,h=f>=0?0:1),p[1]=d[1]+f),n.setPosition(d),i.setPosition(p),n.rotation=i.rotation=e.rotation,g(n),g(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new Xx({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new uw({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Ux}}(t,i);r.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();
vendor: 4,113 bytes, line 2
2var a=new bV("value",r,e.axisExtent,i);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new Fr;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new ac({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:k({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new ac({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:L({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],z(a,(function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:W(r._changeTimeline,r,e.value)},p=CV(s,l,t,d);p.ensureState("emphasis").style=u.getItemStyle(),p.ensureState("progress").style=c.getItemStyle(),nu(p);var h=fl(p);s.get("tooltip")?(h.dataIndex=e.value,h.dataModel=i):h.dataIndex=h.dataModel=null,r._tickSymbols.push(p)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],z(a,(function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),d=n.dataToCoord(i.tickValue),p=new tl({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:W(r._changeTimeline,r,a),silent:!1,style:gd(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});p.ensureState("emphasis").style=gd(u),p.ensureState("progress").style=gd(c),t.add(p),nu(p),MV(p).dataIndex=a,r._tickLabels.push(p)}))}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,o=e.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(e,n,l,u){if(e){var c=Ar(oe(i.get(["controlStyle",n+"BtnSize"]),r),r),d=function(e,t,n,i){var r=i.style,o=nd(e.get(["controlStyle",t]),i||{},new Bt(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}(i,n+"Icon",[0,-c/2,c,c],{x:e[0],y:e[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});d.ensureState("emphasis").style=s,t.add(d),nu(d)}}c(e.nextBtnPosition,"next",W(this._changeTimeline,this,u?"-":"+")),c(e.prevBtnPosition,"prev",W(this._changeTimeline,this,u?"+":"-")),c(e.playPosition,l?"stop":"play",W(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=W(s._handlePointerDrag,s),e.ondragend=W(s._handlePointerDragend,s),IV(e,s._progressLine,o,n,i,!0)},onUpdate:function(e){IV(e,s._progressLine,o,n,i)}};this._currentPointer=CV(a,a,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=eo(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;(t||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){return Zc(e,this._mainGroup.getL
vendor: 2,347 bytes, line 2
2ocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t,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-e);s<i&&(i=s,t=o)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",MV(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(_V);function CV(e,t,n,i,r,o){var a=t.get("color");r?(r.setColor(a),n.add(r),o&&o.onUpdate(r)):((r=rv(e.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r));var s=t.getItemStyle(["color"]);r.setStyle(s),i=A({rectHover:!0,z2:100},i,!0);var l=ov(e.get("symbolSize"));i.scaleX=l[0]/2,i.scaleY=l[1]/2;var u=av(e.get("symbolOffset"),l);u&&(i.x=(i.x||0)+u[0],i.y=(i.y||0)+u[1]);var c=e.get("symbolRotate");return i.rotation=(c||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function IV(e,t,n,i,r,o){if(!e.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function AV(e){var t=e&&e.timeline;$(t)||(t=t?[t]:[]),z(t,(function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),DV(e),kV(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});kV(i,"position")||(i.position=e.controlPosition),"none"!==i.position||kV(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}z(e.data||[],(function(e){Z(e)&&!$(e)&&(!kV(e,"value")&&kV(e,"name")&&(e.value=e.name),DV(e))}))}(e)}))}function DV(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};z(i,(function(e,t){o[t]||kV(r,t)||(r[t]=e)}
vendor: 19,365 bytes, line 2
2)),n.label&&!kV(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function kV(e,t){return e.hasOwnProperty(t)}function LV(e,t){if(!e)return!1;for(var n=$(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}function EV(e){Ro(e,"label",["show"])}var PV=qo(),OV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return i(t,e),t.prototype.init=function(e,t,n){if("marker"===this.type)throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(o.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,i){var r=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),o=PV(e)[r];n&&n.data?(o?o._mergeOption(n,t,!0):(i&&EV(n),z(n.data,(function(e){e instanceof Array?(EV(e[0]),EV(e[1])):EV(e)})),k(o=this.createMarkerModelFromSeries(n,this,t),{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),o.__hostSeries=e),PV(e)[r]=o):PV(e)[r]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return yg("section",{header:this.name,blocks:[yg("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=Pf.prototype.getDataParams.call(this,e,t),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},t.getMarkerModelFromSeries=function(e,t){return PV(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Xp);R(OV,Pf.prototype);var RV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(OV);function NV(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function zV(e,t,n,i,r,o){var a=[],s=Ex(t,i)?t.getCalculationInfo("stackResultDimension"):i,l=WV(t,s,e),u=t.indicesOfNearest(s,l)[0];a[r]=t.get(n,u),a[o]=t.get(s,u);var c=t.get(i,u),d=to(t.get(i,u));return(d=Math.min(d,20))>=0&&(a[o]=+a[o].toFixed(d)),[a,c]}var BV={min:j(zV,"min"),max:j(zV,"max"),average:j(zV,"average"),median:j(zV,"median")};function VV(e,t){if(t){var n=e.getData(),i=e.coordinateSystem,r=i&&i.dimensions;if(!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!$(t.coord)&&$(r)){var o=FV(t,n,i,e);if((t=I(t)).type&&BV[t.type]&&o.baseAxis&&o.valueAxis){var a=P(r,o.baseAxis.dim),s=P(r,o.valueAxis.dim),l=BV[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&$(r))for(var u=t.coord,c=0;c<2;c++)BV[u[c]]&&(u[c]=WV(n,n.mapDimension(r[c]),u[c]));else t.coord=[];return t}}function FV(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(function(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function GV(e,t){return!(e&&e.containData&&t.coord&&!NV(t))||e.containData(t.coord)}function HV(e,t){return e?function(e,n,i,r){return Bf(r<2?e.coord&&e.coord[r]:e.value,t[r])}:function(e,n,i,r){return Bf(e.value,t[r])}}function WV(e,t,n){if("average"===n){var i=0,r=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,r++)})),i/r}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var jV=qo(),$V=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.init=function(){this.markerGroupMap=ve()},t.prototype.render=function(e,t,n){var i=this,r=this.markerGroupMap;r.each((function(e){jV(e).keep=!1})),t.eachSeries((function(e){var r=OV.getMarkerModelFromSeries(e,i.type);r&&i.renderSeries(e,r,t,n)})),r.each((function(e){!jV(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){jV(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;z(e,(function(e){var i=OV.getMarkerModelFromSeries(e,n.type);i&&i.getData().eachItemGraphicEl((function(e){e&&(t?$l(e):Yl(e))}))}))},t.type="marker",t}(Hg);function YV(e,t,n){var i=t.coordinateSystem;e.each((function(r){var o,a=e.getItemModel(r),s=Jr(a.get("x"),n.getWidth()),l=Jr(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var u=e.get(i.dimensions[0],r),c=e.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(r,o)}))}var XV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=OV.getMarkerModelFromSeries(e,"markPoint");t&&(YV(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new PS),u=function(e,t,n){var i;i=e?B(e&&e.dimensions,(function(e){return k(k({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Tx(i,n),o=B(n.get("data"),j(VV,t));e&&(o=F(o,j(GV,e)));var a=HV(!!e,i);return r.initData(o,null,a),r}(r,e,t);t.setData(u),YV(t.getData(),e,i),u.each((function(e){var n=u.getItemModel(e),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Y(i)||Y(r)||Y(o)||Y(s)){var c=t.getRawValue(e),d=t.getDataParams(e);Y(i)&&(i=i(c,d)),Y(r)&&(r=r(c,d)),Y(o)&&(o=o(c,d)),Y(s)&&(s=s(c,d))}var p=n.getModel("itemStyle").getItemStyle(),h=Hm(a,"color");p.fill||(p.fill=h),u.setItemVisual(e,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:p})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){fl(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}($V);var qV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(OV),UV=qo(),ZV=function(e,t,n,i){var r,o=e.getData();if($(i))r=i;else{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=t.getAxis(null!=i.yAxis?"y":"x"),l=re(i.yAxis,i.xAxis);else{var u=FV(i,o,t,e);s=u.valueAxis,l=WV(o,Px(o,u.valueDataDim),a)}var c="x"===s.dim?0:1,d=1-c,p=I(i),h={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,h.coord[d]=1/0;var f=n.get("precision");f>=0&&U(l)&&(l=+l.toFixed(Math.min(f,20))),p.coord[c]=h.coord[c]=l,r=[p,h,{type:a,valueIndex:i.valueIndex,value:l}]}else C("Invalid markLine data."),r=[]}var g=[VV(e,r[0]),VV(e,r[1]),k({},r[2])];return g[2].type=g[2].type||null,A(g[2],g[0]),A(g[2],g[1]),g};function KV(e){return!isNaN(e)&&!isFinite(e)}function JV(e,t,n,i){var r=1-e,o=i.dimensions[e];return KV(t[r])&&KV(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function QV(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(JV(1,n,i,e)||JV(0,n,i,e)))return!0}return GV(e,t[0])&&GV(e,t[1])}function eF(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Jr(s.get("x"),r.getWidth()),u=Jr(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,d=e.get(c[0],t),p=e.get(c[1],t);o=a.dataToPoint([d,p])}if(XS(a,"cartesian2d")){var h=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions,KV(e.get(c[0],t))?o[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):KV(e.get(c[1],t))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}var tF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=OV.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),r=UV(t).from,o=UV(t).to;r.each((function(t){eF(r,t,!0,e,n),eF(o,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new ik);this.group.add(l.group);var u=function(e,t,n){var i;i=e?B(e&&e.dimensions,(function(e){return k(k({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Tx(i,n),o=new Tx(i,n),a=new Tx([],n),s=B(n.get("data"),j(ZV,t,e,n));e&&(s=F(s,j(QV,e)));var l=HV(!!e,i);return r.initData(B(s,(function(e){return e[0]})),null,l),o.initData(B(s,(function(e){return e[1]})),null,l),a.initData(B(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,e,t),c=u.from,d=u.to,p=u.line;UV(t).from=c,UV(t).to=d,t.setData(p);var h=t.get("symbol"),f=t.get("symbolSize"),g=t.get("symbolRotate"),m=t.get("symbolOffset");function v(t,n,r){var o=t.getItemModel(n);eF(t,n,r,e,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Hm(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:oe(o.get("symbolOffset",!0),m[r?0:1]),symbolRotate:oe(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:oe(o.get("symbolSize"),f[r?0:1]),symbol:oe(o.get("symbol",!0),h[r?0:1]),style:s})}$(h)||(h=[h,h]),$(f)||(f=[f,f]),$(g)||(g=[g,g]),$(m)||(m=[m,m]),u.from.each((function(e){v(c,e,!0),v(d,e,!1)})),p.each((function(e){var t=p.getItemModel(e).getModel("lineStyle").getLineStyle();p.setItemLayout(e,[c.getItemLayout(e),d.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),p.setItemVisual(e,{fromSymbolKeepAspect:c.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(e,"symbolOffset"),fromSymbolRotate:c.getItemVisual(e,"symbolRotate"),fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(e,"symbolOffset"),toSymbolRotate:d.getItemVisual(e,"symbolRotate"),toSymbolSize:d.getItemVisual(e,"symbolSize"),toSymbol:d.getItemVisual(e,"symbol"),style:t})})),l.updateData(p),u.line.eachItemGraphicEl((function(e){fl(e).dataModel=t,e.traverse((function(e){fl(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}($V);var nF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(OV),iF=qo(),rF=function(e,t,n,i){var r=i[0],o=i[1];if(r&&o){var a=VV(e,r),s=VV(e,o),l=a.coord,u=s.coord;l[0]=re(l[0],-1/0),l[1]=re(l[1],-1/0),u[0]=re(u[0],1/0),u[1]=re(u[1],1/0);var c=D([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function oF(e){return!isNaN(e)&&!isFinite(e)}function aF(e,t,n,i){var r=1-e;return oF(t[r])&&oF(n[r])}function sF(e,t){var n=t.coord[0],i=t.coord[1],r={coord:n,x:t.x0,y:t.y0},o={coord:i,x:t.x1,y:t.y1};return XS(e,"cartesian2d")?!(!n||!i||!aF(1,n,i)&&!aF(0,n,i))||function(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!NV(t)&&!NV(n))||e.containZone(t.coord,n.coord)}(e,r,o):GV(e,r)||GV(e,o)}function lF(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Jr(s.get(n[0]),r.getWidth()),u=Jr(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var c=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),p=a.clampData(c),h=a.clampData(d),f=[];"x0"===n[0]?f[0]=p[0]>h[0]?d[0]:c[0]:f[0]=p[0]>h[0]?c[0]:d[0],"y0"===n[1]?f[1]=p[1]>h[1]?d[1]:c[1]:f[1]=p[1]>h[1]?c[1]:d[1],o=i.getMarkerPosition(f,n,!0)}else{var g=[y=e.get(n[0],t),x=e.get(n[1],t)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(XS(a,"cartesian2d")){var m=a.getAxis("x"),v=a.getAxis("y"),y=e.get(n[0],t),x=e.get(n[1],t);oF(y)?o[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):oF(x)&&(o[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var uF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],cF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=OV.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var r=B(uF,(function(r){return lF(i,t,r,e,n)}));i.setItemLayout(t,r),i.getItemGraphicEl(t).setShape("points",r)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Fr});this.group.add(l.group),this.markKeep(l);var u=function(e,t,n){var i,r,o=["x0","y0","x1","y1"];if(e){var a=B(e&&e.dimensions,(function(e){var n=t.getData();return k(k({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}));r=B(o,(function(e,t){return{name:e,type:a[t%2].type}})),i=new Tx(r,n)}else i=new Tx(r=[{name:"value",type:"float"}],n);var s=B(n.get("data"),j(rF,t,e,n));e&&(s=F(s,j(sF,e)));var l=e?function(e,t,n,i){return Bf(e.coord[Math.floor(i/2)][i%2],r[i])}:function(e,t,n,i){return Bf(e.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}(r,e,t);t.setData(u),u.each((function(t){var n=B(uF,(function(n){return lF(u,t,n,e,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),d=[o.parse(u.get("x0",t)),o.parse(u.get("x1",t))],p=[s.parse(u.get("y0",t)),s.parse(u.get("y1",t))];eo(d),eo(p);var h=!!(l[0]>d[1]||l[1]<d[0]||c[0]>p[1]||c[1]<p[0]);u.setItemLayout(t,{points:n,allClipped:h});var f=u.getItemModel(t).getModel("itemStyle").getItemStyle(),g=Hm(a,"color");f.fill||(f.fill=g,X(f.fill)&&(f.fill=ri(f.fill,.4))),f.stroke||(f.stroke=g),u.setItemVisual(t,"style",f)})),u.diff(iF(l).data).add((function(e){var t=u.getItemLayout(e);if(!t.allClipped){var n=new tc({shape:{points:t.points}});u.setItemGraphicEl(e,n),l.group.add(n)}})).update((function(e,n){var i=iF(l).data.getItemGraphicEl(n),r=u.getItemLayout(e);r.allClipped?i&&l.group.remove(i):(i?Ic(i,{shape:{points:r.points}},t,e):i=new tc({shape:{points:r.points}}),u.setItemGraphicEl(e,i),l.group.add(i))})).remove((function(e){var t=iF(l).data.getItemGraphicEl(e);l.group.remove(t)})).execute(),u.eachItemGraphicEl((function(e,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");e.useStyle(u.getItemVisual(n,"style")),hd(e,fd(i),{labelFetcher:t,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:X(r.fill)?ri(r.fill,1):"#000"}),su(e,i),iu(e,null,null,i.get(["emphasis","disabled"])),fl(e).dataModel=t})),iF(l).data=u,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}($V);var dF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return i(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),$(t)&&z(t,(function(e,i){X(e)&&(e={type:e}),t[i]=A(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(a)),a.length?t=t.concat(a):r=!0}else r=!0;r&&$o(i)&&t.push(i.name)})),this._availableNames=n;var i=this.get("data")||t,r=ve(),o=B(i,(function(e){return(X(e)||U(e))&&(e={name:e}),r.get(e.name)?null:(r.set(e.name,!0),new zd(e,this,this.ecModel))}),this);this._data=F(o,(function(e){return!!e}))},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&z(this._data,(function(e){t[e.get("name")]=!1})),t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;z(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;z(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&P(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miter
vendor: 10,366 bytes, line 2
2Limit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Xp),pF=j,hF=z,fF=Fr,gF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return i(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new fF),this.group.add(this._selectorGroup=new fF),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),d=Fp(l,u,c),p=this.layoutInner(e,r,d,i,a,s),h=Fp(L({width:p.width,height:p.height},l),u,c);this.group.x=h.x-p.x,this.group.y=h.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=jz(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,r,o,a){var s=this.getContentGroup(),l=ve(),u=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),hF(t.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new fF;return d.newline=!0,void s.add(d)}var p=n.getSeriesByName(a)[0];if(!l.get(a)){if(p){var h=p.getData(),f=h.getVisual("legendLineStyle")||{},g=h.getVisual("legendIcon"),m=h.getVisual("style"),v=this._createItem(p,a,o,r,t,e,f,m,g,u,i);v.on("click",pF(mF,a,null,i,c)).on("mouseover",pF(yF,p.name,null,i,c)).on("mouseout",pF(xF,p.name,null,i,c)),n.ssr&&v.eachChild((function(e){var t=fl(e);t.seriesIndex=p.seriesIndex,t.dataIndex=o,t.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 p=d.indexOfName(a),h=d.getItemVisual(p,"style"),f=d.getItemVisual(p,"legendIcon"),g=Zn(h.fill);g&&0===g[3]&&(g[3]=.2,h=k(k({},h),{fill:oi(g,"rgba")}));var m=this._createItem(s,a,o,r,t,e,{},h,f,u,i);m.on("click",pF(mF,null,a,i,c)).on("mouseover",pF(yF,null,a,i,c)).on("mouseout",pF(xF,null,a,i,c)),n.ssr&&m.eachChild((function(e){var t=fl(e);t.seriesIndex=s.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(a,!0)}}),this);l.get(a)||console.warn(a+" series not exists. Legend data should be same with series name or data name.")}}),this),r&&this._createSelector(r,t,i,o,a)},t.prototype._createSelector=function(e,t,n,i,r){var o=this.getSelectorGroup();hF(e,(function(e){var i=e.type,r=new tl({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});o.add(r),hd(r,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),nu(r)}))},t.prototype._createItem=function(e,t,n,i,r,o,a,s,l,u,c){var d,p,h,f=e.visualDrawType,g=r.get("itemWidth"),m=r.get("itemHeight"),v=r.isSelected(t),y=i.get("symbolRotate"),x=i.get("symbolKeepAspect"),w=i.get("icon"),_=function(e,t,n,i,r,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),hF(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?Lv(d,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var p=t.getModel("lineStyle"),h=p.getLineStyle();if(s(h,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===h.stroke&&(h.stroke=i.fill),!o){var f=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}(l=w||l||"roundRect",i,a,s,f,v,c),b=new fF,S=i.getModel("textStyle");if(!Y(e.getLegendIcon)||w&&"inherit"!==w){var M="inherit"===w&&e.getData().getVisual("symbol")?"inherit"===y?e.getData().getVisual("symbolRotate"):y:0;b.add((d={itemWidth:g,itemHeight:m,icon:l,iconRotate:M,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:x},p=d.icon||"roundRect",(h=rv(p,0,0,d.itemWidth,d.itemHeight,d.itemStyle.fill,d.symbolKeepAspect)).setStyle(d.itemStyle),h.rotation=(d.iconRotate||0)*Math.PI/180,h.setOrigin([d.itemWidth/2,d.itemHeight/2]),p.indexOf("empty")>-1&&(h.style.stroke=h.style.fill,h.style.fill="#fff",h.style.lineWidth=2),h))}else b.add(e.getLegendIcon({itemWidth:g,itemHeight:m,icon:l,iconRotate:y,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:x}));var T="left"===o?g+5:-5,C=o,I=r.get("formatter"),A=t;X(I)&&I?A=I.replace("{name}",null!=t?t:""):Y(I)&&(A=I(t));var D=v?S.getTextColor():i.get("inactiveColor");b.add(new tl({style:gd(S,{text:A,x:T,y:m/2,fill:D,align:C,verticalAlign:"middle"},{inheritColor:D})}));var k=new Js({shape:b.getBoundingRect(),style:{fill:"transparent"}}),L=i.getModel("tooltip");return L.get("show")&&ad({el:k,componentModel:r,itemName:t,itemTooltipOption:L.option}),b.add(k),b.eachChild((function(e){e.silent=!0})),k.silent=!u,this.getContentGroup().add(b),nu(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Vp(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Vp("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],p=e.get("selectorButtonGap",!0),h=e.getOrient().index,f=0===h?"width":"height",g=0===h?"height":"width",m=0===h?"y":"x";"end"===o?d[h]+=l[f]+p:u[h]+=c[f]+p,d[1-h]+=l[g]/2-c[g]/2,s.x=d[0],s.y=d[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+p+c[f],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+d[1-h]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Hg);function mF(e,t,n,i){xF(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),yF(e,t,n,i)}function vF(e){for(var t,n=e.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(t=n[i].states.emphasis);)i++;return t&&t.hoverLayer}function yF(e,t,n,i){vF(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function xF(e,t,n,i){vF(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}function wF(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function _F(e,t,n){var i="allSelect"===e||"inverseSelect"===e,r={},o=[];n.eachComponent({mainType:"legend",query:t},(function(n){i?n[e]():n[e](t.name),bF(n,r),o.push(n.componentIndex)}));var a={};return n.eachComponent("legend",(function(e){z(r,(function(t,n){e[t?"select":"unSelect"](n)})),bF(e,a)})),i?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function bF(e,t){var n=t||{};return z(e.getData(),(function(t){var i=t.get("name");if("\n"!==i&&""!==i){var r=e.isSelected(i);_e(n,i)?n[i]=n[i]&&r:n[i]=r}})),n}function SF(e){e.registerComponentModel(dF),e.registerComponentView(gF),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,wF),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(e){e.registerAction("legendToggleSelect","legendselectchanged",j(_F,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",j(_F,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",j(_F,"inverseSelect")),e.registerAction("legendSelect","legendselected",j(_F,"select")),e.registerAction("legendUnSelect","legendunselected",j(_F,"unSelect"))}(e)}var MF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,i){var r=jp(t);e.prototype.init.call(this,t,n,i),TF(this,t,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),TF(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Fd(dF.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(dF);function TF(e,t,n){var i=[1,1];i[e.getOrient().index]=0,Wp(t,n,{type:"box",ignoreSize:!!i})}var CF=Fr,IF=["width","height"],AF=["x","y"],DF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return i(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new CF),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new CF)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,i,r,o,a,s){var l=this;e.prototype.renderInner.call(this,t,n,i,r,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),d=$(c)?c:[c,c];h("pagePrev",0);var p=n.getModel("pageTextStyle");function h(e,t){var i=e+"DataIndex",o=nd(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:W(l._pageGo,l,i,n,r)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});o.name=e,u.add(o)}
vendor: 6,894 bytes, line 2
2u.add(new tl({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=IF[s],u=AF[s],c=IF[1-s],d=AF[1-s];r&&Vp("horizontal",a,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),h=a.getBoundingRect(),f=[-h.x,-h.y],g=I(n);r&&(g[l]=n[l]-h[l]-p);var m=this._layoutContentAndController(e,i,g,s,l,c,d,u);if(r){if("end"===o)f[s]+=m[l]+p;else{var v=h[l]+p;f[s]-=v,m[u]-=v}m[l]+=h[l]+p,f[1-s]+=m[d]+m[c]/2-h[c]/2,m[c]=Math.max(m[c],h[c]),m[d]=Math.min(m[d],h[d]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,t,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;Vp(e.get("orient"),l,e.get("itemGap"),i?n.width:null,i?null:n.height),Vp("horizontal",c,e.get("pageButtonItemGap",!0));var d=l.getBoundingRect(),p=c.getBoundingRect(),h=this._showController=d[r]>n[r],f=[-d.x,-d.y];t||(f[i]=l[s]);var g=[0,0],m=[-p.x,-p.y],v=oe(e.get("pageButtonGap",!0),e.get("itemGap",!0));h&&("end"===e.get("pageButtonPosition",!0)?m[i]+=n[r]-p[r]:g[i]+=p[r]+v),m[1-i]+=d[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(m);var y={x:0,y:0};if(y[r]=h?n[r]:d[r],y[o]=Math.max(d[o],p[o]),y[a]=Math.min(0,p[a]+m[1-i]),u.__rectSize=n[r],h){var x={x:0,y:0};x[r]=Math.max(n[r]-p[r]-v,0),x[o]=y[o],u.setClipPath(new Js({shape:x})),u.__rectSize=x[r]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(e);return null!=w.pageIndex&&Ic(l,{x:w.contentPosition[0],y:w.contentPosition[1]},h?e:null),this._updatePageInfoView(e,w),y},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;z(["pagePrev","pageNext"],(function(i){var r=null!=t[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;i&&r&&i.setStyle("text",X(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=IF[r],a=AF[r],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,d=c?1:0,p={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var h=y(u);p.contentPosition[r]=-h.s;for(var f=s+1,g=h,m=h,v=null;f<=c;++f)(!(v=y(l[f]))&&m.e>g.s+i||v&&!x(v,g.s))&&(g=m.i>g.i?m:v)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),m=v;for(f=s-1,g=h,m=h,v=null;f>=-1;--f)(v=y(l[f]))&&x(m,v.s)||!(g.i<m.i)||(m=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=v;return p;function y(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)})),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(gF);function kF(e){Ky(SF),e.registerComponentModel(MF),e.registerComponentView(DF),function(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}(e)}var LF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.type="dataZoom.inside",t.defaultOption=Fd(Iz.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Iz),EF=qo();function PF(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function OF(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function RF(e,t,n,i){return e.coordinateSystem.containPoint([n,i])}function NF(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=EF(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=ve());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){z(Tz(e).infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(e,t){var n={model:t,containsPoint:j(RF,t),dispatchAction:j(OF,e),dataZoomInfoMap:null,controller:null},i=n.controller=new gC(e.getZr());return z(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(t){var i=[];n.dataZoomInfoMap.each((function(r){if(t.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[e],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}(t,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=ve())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,r=e.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(t=r.get(o))}if(t){var a=function(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return e.each((function(e){var o=e.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+t]&&(t=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),nm(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else PF(i,e)}))}))}var zF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return i(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),function(e,t,n){EF(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}(i,t,{pan:W(BF.pan,this),zoom:W(BF.zoom,this),scrollMove:W(BF.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){(function(e,t){for(var n=EF(e).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=t.uid;s.get(l)&&(s.removeKey(l),s.keys().length||PF(n,a))}}})(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(kz),BF={zoom:function(e,t,n,i){var r=this.range,o=r.slice(),a=e.axisModels[0];
vendor: 13,516 bytes, line 2
2if(a){var s=FF[t](null,[i.originX,i.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Zk(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:VF((function(e,t,n,i,r,o){var a=FF[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:VF((function(e,t,n,i,r,o){return FF[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n).signal*(e[1]-e[0])*o.scrollDelta}))};function VF(e){return function(t,n,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s)return Zk(e(a,s,t,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var FF={grid:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function GF(e){zz(e),e.registerComponentModel(LF),e.registerComponentView(zF),NF(e)}var HF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Fd(Iz.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Iz),WF=Js,jF="horizontal",$F="vertical",YF=["line","bar","candlestick","scatter"],XF={easing:"cubicOut",duration:100,delay:0},qF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return i(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=W(this._onBrush,this),this._onBrushEnd=W(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,r){if(e.prototype.render.apply(this,arguments),nm(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){im(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Fr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:t.getWidth(),height:t.getHeight()},o=this._orient===jF?{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=jp(e.option);z(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=o[e])}));var s=Fp(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===$F&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=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!==jF||r?n===jF&&r?{scaleY:a?1:-1,scaleX:-1}:n!==$F||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=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new WF({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new WF({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:W(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)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u=r.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var d,p=[0,t[1]],h=[0,t[0]],f=[[t[0],0],[0,0]],g=[],m=h[1]/(r.count()-1),v=0,y=Math.round(r.count()/t[0]);r.each([a],(function(e,t){if(y>0&&t%y)v+=m;else{var n=null==e||isNaN(e)||""===e,i=n?0:Kr(e,u,p,!0);n&&!d&&t?(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=[t[0],t[1]];for(var x=this.dataZoomModel,w=0;w<3;w++){var _=b(1===w);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function b(e){var t=x.getModel(e?"selectedDataBackground":"dataBackground"),n=new Fr,i=new tc({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new ic({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(r,o){z(e.getAxisProxy(r,o).getTargetSeriesModels(),(function(e){if(!(n||!0!==t&&P(YF,e.get("type"))<0)){var a,s=i.getComponent(Sz(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new WF({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new WF({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)"}})),z([0,1],(function(t){var o=a.get("handleIcon");!tv[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o,Io("handleIcon now needs 'path://' prefix when using a path string"));var s=rv(o,-1,0,2,2,null,!0);s.attr({cursor:UF(this._orient),draggable:!0,drift:W(this._onDragMove,this,t),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Jr(u,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(),nu(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[t]=s);var d=a.getModel("textStyle"),p=(a.get("handleLabel")||{}).show||!1;e.add(i[t]=new tl({silent:!0,invisible:!p,style:gd(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=c;if(u){var p=Jr(a.get("moveHandleSize"),o[1]),h=t.moveHandle=new Js({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=t.moveHandleIcon=rv(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+p/2-.5,h.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(p,10));(d=t.moveZone=new Js({invisible:!0,shape:{y:o[1]-m,height:p+m}})).on("mouseover",(function(){s.enterEmphasis(h)})).on("mouseout",(function(){s.leaveEmphasis(h)})),r.add(h),r.add(g),r.add(d)}d.attr({draggable:!0,cursor:UF(this._orient),drift:W(this._onDragMove,this,"all"),ondragstart:W(this._showDataInfo,this,!0),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Kr(e[0],[0,100],t,!0),Kr(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Zk(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?Kr(o.minSpan,a,r,!0):null,null!=o.maxSpan?Kr(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=eo([Kr(i[0],r,a,!0),Kr(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=eo(n.slice()),r=this._size;z([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:r[1]/2-o/2})}),this),t.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]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new Js,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=eo(this._handleEnds.slice());function d(e){var t=Uc(n.handles[e].parent,this.group),a=Kc(0===e?"right":"left",t),s=this._handleWidth/2+5,l=Zc([c[e]+(0===e?-s:s),this._size[1]/2],t);i[e].setStyle({x:l[0],y:l[1],verticalAlign:r===jF?"middle":a,align:r===jF?a:"center",text:o[e]})}d.call(this,0),d.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(r,20));return Y(i)?i(e,o):X(i)?i.replace("{value}",o):o},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,i=e||this._dragging?n:t,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)},t.prototype._onDragMove=function(e,t,n,i){this._dragging=!0,ft(i.event);
vendor: 13,301 bytes, line 2
2var r=Zc([t,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(e,r[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Dt(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=eo([Kr(n.x,i,r,!0),Kr(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(ft(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new WF({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(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?XF:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=Tz(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),r=this.api.getHeight();e={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return e},t.type="dataZoom.slider",t}(kz);function UF(e){return"vertical"===e?"ns-resize":"ew-resize"}function ZF(e){e.registerComponentModel(HF),e.registerComponentView(qF),zz(e)}var KF=function(e,t,n){var i=I((JF[e]||{})[t]);return n&&$(i)?i[i.length-1]:i},JF={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},QF=HA.mapVisual,eG=HA.eachVisual,tG=$,nG=z,iG=eo,rG=Kr,oG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.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 i(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&QB(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=W(e,this),this.controllerVisuals=JB(this.option.controller,t,e),this.targetVisuals=JB(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=Oo(e),t},t.prototype.eachTargetSeries=function(e,t){z(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],$(e)&&(e=e.slice(),i=!0);var l=t?e:i?[u(e[0]),u(e[1])]:u(e);return X(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):Y(s)?i?s(e[0],e[1]):s(e):i?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=iG([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});A(i,n),A(r,n);var o=this.isCategory();function a(n){tG(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}a.call(this,i),a.call(this,r),function(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},nG(i,(function(e,t){if(HA.isValidType(t)){var n=KF(t,"inactive",o);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";nG(this.stateList,(function(a){var s=this.itemSize,l=e[a];l||(l=e[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=t&&I(t)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&I(n)||(o?s[0]:[s[0],s[0]])),l.symbol=QF(l.symbol,(function(e){return"none"===e?r:e}));var u=l.symbolSize;if(null!=u){var c=-1/0;eG(u,(function(e){e>c&&(c=e)})),l.symbolSize=QF(u,(function(e){return rG(e,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,r)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Xp),aG=[20,140],sG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=aG[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=aG[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):$(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),z(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=eo((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=lG(0,0,this.getExtent()),n=lG(0,0,this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;a<l&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&r(t[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(t[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Fd(oG.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(oG);function lG(e,t,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 uG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return i(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,i):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Ip(t.get("padding")||0),i=e.getBoundingRect();e.add(new Js({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:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){var i=(n=n||{}).forceState,r=this.visualMapModel,o={};if("color"===t){var a=r.get("contentColor");o.color=a}function s(e){return o[e]}function l(e,t){o[e]=t}var u=r.controllerVisuals[i||r.getValueState(e)];return z(HA.prepareVisualTypes(u),(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),HA.dependsOn(i,t)&&r&&r.applyVisual(e,s,l)})),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;Gp(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,i){},t.type="visualMap",t}(Hg),cG=[["left","right","width"],["top","bottom","height"]];function dG(e,t,n){var i=e.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:t.getWidth(),height:t.getHeight()},a="horizontal"===i.orient?1:0,s=cG[a],l=[0,null,10],u={},c=0;c<3;c++)u[cG[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var d=[["x","width",3],["y","height",0]][a],p=Fp(u,o,i.padding);return s[(p.margin[d[2]]||0)+p[d[0]]+.5*p[d[1]]<.5*o[d[1]]?0:1]}function pG(e,t){return z(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var hG=Kr,fG=z,gG=Math.min,mG=Math.max,vG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return i(t,e),t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=W(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=W(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var i=t[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),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new tl({style:gd(d,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,r=this._orient,o=this._useHandle,a=dG
vendor: 6,444 bytes, line 2
2(t,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new Fr;s.add(l),l.add(n.outOfRange=yG()),l.add(n.inRange=yG(null,o?wG(this._orient):null,W(this._dragHandle,this,"all",!1),W(this._dragHandle,this,"all",!0))),l.setClipPath(new Js({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=t.textStyleModel.getTextRect("国"),c=mG(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,i,c,r),this._createHandle(t,s,1,i,c,r)),this._createIndicator(t,s,i,c,r),e.add(s)},t.prototype._createHandle=function(e,t,n,i,r,o){var a=W(this._dragHandle,this,n,!1),s=W(this._dragHandle,this,n,!0),l=Ar(e.get("handleSize"),i[0]),u=rv(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=wG(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){ft(e.event)}}),u.x=i[0]/2,u.useStyle(e.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),lu(u,!0),t.add(u);var d=this.visualMapModel.textStyleModel,p=new tl({cursor:c,draggable:!0,drift:a,onmousemove:function(e){ft(e.event)},ondragend:s,style:gd(d,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var h=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=h,f.handleLabels[n]=p},t.prototype._createIndicator=function(e,t,n,i,r){var o=Ar(e.get("indicatorSize"),n[0]),a=rv(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(a instanceof $s){var l=a.style;a.useStyle(k({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);t.add(a);var u=this.visualMapModel.textStyleModel,c=new tl({silent:!0,invisible:!0,style:gd(u,{x:0,y:0,text:""})});this.group.add(c);var d=[("horizontal"===r?i/2:6)+n[0]/2,0],p=this._shapes;p.indicator=a,p.indicatorLabel=c,p.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,r[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():xG(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[hG(t[0],n,i,!0),hG(t[1],n,i,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];Zk(t,i,r,e,0);var o=n.getExtent();this._dataInterval=[hG(i[0],r,o,!0),hG(i[1],r,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,r=[0,t.itemSize[1]],o=e?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)},t.prototype._createBarVisual=function(e,t,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,r),a=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[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]}},t.prototype._makeColorGradient=function(e,t){var n=[],i=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var r=1;r<100;r++){var o=e[0]+i*r;if(o>e[1])break;n.push({color:this.getControllerVisual(o,"color",t),offset:r/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new Fr("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){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);fG([0,1],(function(u){var c=r[u];c.setStyle("fill",t.handlesColor[u]),c.y=e[u];var d=hG(e[u],[0,a[1]],s,!0),p=this.getControllerVisual(d,"symbolSize");c.scaleX=c.scaleY=p/a[0],c.x=a[0]-p/2;var h=Zc(n.handleLabelPoints[u],Uc(c,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(a[0]-p)/2:(a[0]-p)/-2;h[1]+=f}o[u].setStyle({x:h[0],y:h[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,"symbolSize"),p=hG(e,o,s,!0),h=a[0]-d/2,f={x:u.x,y:u.y};u.y=p,u.x=h;var g=Zc(l.indicatorLabelPoint,Uc(u,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(t),verticalAlign:y?v:"middle",align:y?"center":v});var x={x:h,y:p,style:{fill:c}},w={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var _={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,_),m.animateTo(w,_)}else u.attr(x),m.attr(w);this._firstShowIndicator=!1;var b=this._shapes.handleLabels;if(b)for(var S=0;S<b.length;S++)this.api.enterBlur(b[S])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,
vendor: 7,395 bytes, line 2
2!0);i[1]=gG(mG(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();e=gG(mG(r[0],e),r[1]);var a=function(e,t,n){var i=6,r=e.get("hoverLinkDataSize");return r&&(i=hG(r,t,n,!0)/2),i}(n,o,r),s=[e-a,e+a],l=hG(e,r,o,!0),u=[hG(s[0],r,o,!0),hG(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,d=[];(t||xG(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var p=function(e,t){var n={},i={};return r(e||[],n),r(t||[],i,n),[o(n),o(i)];function r(e,t,n){for(var i=0,r=e.length;i<r;i++){var o=Ho(e[i].seriesId,null);if(null==o)return;for(var a=Oo(e[i].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(t[o]||(t[o]={}))[c]=1}}}function o(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i])if(t)n.push(+i);else{var r=o(e[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}(c,d);this._dispatchHighDown("downplay",pG(p[0],n)),this._dispatchHighDown("highlight",pG(p[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(Ym(e.target,(function(e){var n=fl(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(t.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",pG(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,i){var r=Uc(t,i?null:this.group);return $(e)?Zc(e,r,n):Kc(e,r,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(uG);function yG(e,t,n,i){return new tc({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){ft(e.event)},ondragend:i})}function xG(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function wG(e){return"vertical"===e?"ns-resize":"ew-resize"}var _G={type:"selectDataRange",event:"dataRangeSelected",update:"update"},bG=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},SG=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var i,r,o,a,s,l=e.pipelineContext;!t.isTargetSeries(e)||l&&l.large||n.push((i=t.stateList,r=t.targetVisuals,o=W(t.getValueState,t),a=t.getDataDimensionIndex(e.getData()),s={},z(i,(function(e){var t=HA.prepareVisualTypes(r[e]);s[e]=t})),{progress:function(e,t){var n,i;function l(e){return Gm(t,i,e)}function u(e,n){Wm(t,i,e,n)}null!=a&&(n=t.getDimensionIndex(a));for(var c=t.getStore();null!=(i=e.next());){var d=t.getRawDataItem(i);if(!d||!1!==d.visualMap)for(var p=null!=a?c.get(n,i):i,h=o(p),f=r[h],g=s[h],m=0,v=g.length;m<v;m++){var y=g[m];f[y]&&f[y].applyVisual(p,l,u)}}}}))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(W(MG,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),e.getData().setVisual("visualMeta",i)}}];function MG(e,t,n,i){for(var r=t.targetVisuals[i],o=HA.prepareVisualTypes(r),a={color:Hm(e.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,d,p)}return a.color;function d(e){return a[e]}function p(e,t){a[e]=t}}var TG=z;function CG(e){var t=e&&e.visualMap;$(t)||(t=t?[t]:[]),TG(t,(function(e){if(e){IG(e,"splitList")&&!IG(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&$(t)&&TG(t,(function(e){Z(e)&&(IG(e,"start")&&!IG(e,"min")&&(e.min=e.start),IG(e,"end")&&!IG(e,"max")&&(e.max=e.end))}))}}))}function IG(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var AG=!1;function DG(e){AG||(AG=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(_G,bG),z(SG,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(CG))}function kG(e){e.registerComponentModel(sG),e.registerComponentView(vG),DG(e)}var LG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return i(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],EG[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var r=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=I(r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=B(this._pieceList,(function(e){return e=I(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=HA.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}z(t.pieces,(function(e){z(i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),z(n,(function(e,n){var i=!1;z(this.stateList,(function(e){i=i||o(t,e,n)||o(t.target,e,n)}),this),!i&&z(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=KF(n,"inRange"===e?"active":"inactive",r)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,z(i,(function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;z(i,(function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(o?r[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=I(e)},t.prototype.getValueState=function(e){var t=HA.findPieceIndex(e,this._pieceList);
vendor: 4,627 bytes, line 2
2return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(t,i){HA.findPieceIndex(t,n)===e&&r.push(i)}),this),t.push({seriesId:i.id,dataIndex:r})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],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 z(r,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=e(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Fd(oG.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(oG),EG={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.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;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),mo(e),z(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;z(t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),PG(t,e)},pieces:function(e){var t=this.option;z(t.pieces,(function(t,n){Z(t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var r=i.value=t.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],u=[],c=0;c<2;c++){for(var d=[["gte","gt","min"],["lte","lt","max"]][c],p=0;p<3&&null==o[c];p++)o[c]=t[d[p]],a[c]=s[p],u[c]=2===p;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]>o[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=HA.retrieveVisuals(t),e.push(i)}),this),PG(t,e),mo(e),z(e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function PG(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var OG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return i(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=re(t.get("showLabel",!0),!u),d=!t.get("selectedMode");u&&this._renderEndsText(e,u[0],s,c,a),z(l.viewPieceList,(function(i){var l=i.piece,u=new Fr;u.onclick=W(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var p=t.getRepresentValue(l);if(this._createItemSymbol(u,p,[0,0,s[0],s[1]],d),c){var h=this.visualMapModel.getValueState(p);u.add(new tl({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"===h?.5:1},silent:d}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,c,a),Vp(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:pG(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return dG(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,r){if(t){var o=new Fr,a=this.visualMapModel.textStyleModel;
vendor: 5,401 bytes, line 2
2o.add(new tl({style:gd(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=B(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,i){var r=rv(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color"));r.silent=i,e.add(r)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var r=I(n.selected),o=t.getSelectedMapKey(e);"single"===i||!0===i?(r[o]=!0,z(r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},t.type="visualMap.piecewise",t}(uG);function RG(e){e.registerComponentModel(LG),e.registerComponentView(OG),DG(e)}var NG={label:{enabled:!0},decal:{show:!1}},zG=qo(),BG={};function VG(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=I(NG);A(i.label,e.getLocaleModel().get("aria"),!1),A(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var t=ve();e.eachSeries((function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),zG(e).scope=n}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(Y(t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=bh(t.ecModel,t.name,BG,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=t.getRawData(),a={},s=zG(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=o.count();o.each((function(e){var i=a[e],r=o.getName(e)||e+"",c=bh(t.ecModel,r,s,l),d=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(d,c))}))}}function u(e,t){var n=e?k(k({},t),e):t;return n.dirty=!0,n}}))}}(),function(){var i=t.getZr().dom;if(i){var a=e.getLocaleModel().get("aria"),s=n.getModel("label");if(s.option=L(s.option,a),s.get("enabled"))if(i.setAttribute("role","img"),s.get("description"))i.setAttribute("aria-label",s.get("description"));else{var l,u=e.getSeriesCount(),c=s.get(["data","maxCount"])||10,d=s.get(["series","maxCount"])||10,p=Math.min(u,d);if(!(u<1)){var h=function(){var t=e.get("title");return t&&t.length&&(t=t[0]),t&&t.text}();l=h?r(s.get(["general","withTitle"]),{title:h}):s.get(["general","withoutTitle"]);var f=[];l+=r(u>1?s.get(["series","multiple","prefix"]):s.get(["series","single","prefix"]),{seriesCount:u}),e.eachSeries((function(e,t){if(t<p){var n=void 0,i=e.get("name")?"withName":"withoutName";n=r(n=u>1?s.get(["series","multiple",i]):s.get(["series","single",i]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:o(e.subType)});var a=e.getData();a.count()>c?n+=r(s.get(["data","partialData"]),{displayCnt:c}):n+=s.get(["data","allData"]);for(var l=s.get(["data","separator","middle"]),d=s.get(["data","separator","end"]),h=s.get(["data","excludeDimensionId"]),g=[],m=0;m<a.count();m++)if(m<c){var v=a.getName(m),y=h?F(a.getValues(m),(function(e,t){return-1===P(h,t)})):a.getValues(m),x=s.get(["data",v?"withName":"withoutName"]);g.push(r(x,{name:v,value:y.join(l)}))}n+=g.join(l)+d,f.push(n)}}));var g=s.getModel(["series","multiple","separator"]),m=g.get("middle"),v=g.get("end");l+=f.join(m)+v,i.setAttribute("aria-label",l)}}}}()}function r(e,t){if(!X(e))return e;var n=e;return z(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function o(t){var n=e.getLocaleModel().get(["series","typeNames"]);return n[t]||n.chart}}function FG(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},z(["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}var GG={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},HG=function(){function e(e){null==(this._condVal=X(e)?new RegExp(e):ne(e)?e:null)&&ko(Do("Illegal regexp",e,"in"))}return e.prototype.evaluate=function(e){var t=typeof e;return X(t)?this._condVal.test(e):!!U(t)&&this._condVal.test(e+"")},e}(),WG=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),jG=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),$G=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),YG=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),XG=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:t))return!1;return!0},e}();function qG(e,t){if(!0===e||!1===e){var n=new WG;return n.value=e,n}return ZG(e)||ko(Do("Illegal config. Expect a plain object but actually",e)),e.and?UG("and",e,t):e.or?UG("or",e,t):e.not?function(e,t){var n=e.not,i="";i=Do('"not" condition should only be `not: {}`.',"Illegal condition:",e),ZG(n)||ko(i);var r=new YG;return r.child=qG(n,t),r.child||ko(i),r}(e,t):function(e,t){for(var n=t.prepareGetValue(e),i=[],r=H(e),o=e.parser,a=o?Ff(o):null,
2s=0;s<r.length;s++){var l=r[s];if("parser"!==l&&!t.valueGetterAttrMap.get(l)){var u=_e(GG,l)?GG[l]:l,c=e[l],d=a?a(c):c,p=$f(u,d)||"reg"===u&&new HG(d);p||ko(Do('Illegal relational operation: "'+l+'" in condition:',e)),i.push(p)}}i.length||ko(Do("Relational condition must have at least one operator.","Illegal condition:",e));var h=new XG;return h.valueGetterParam=n,h.valueParser=a,h.getValue=t.getValue,h.subCondList=i,h}(e,t)}function UG(e,t,n){var i,r=t[e];i=Do('"and"/"or" condition should only be `'+e+": [...]` and must not be empty array.","Illegal condition:",t),$(r)||ko(i),r.length||ko(i);var o="and"===e?new jG:new $G;return o.children=B(r,(function(e){return qG(e,n)})),o.children.length||ko(i),o}function ZG(e){return Z(e)&&!N(e)}var KG=function(){function e(e,t){this._cond=qG(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();var JG,QG={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,i=(s=e.config,l={valueGetterAttrMap:ve({dimension:!0}),prepareGetValue:function(e){var t=e.dimension;_e(e,"dimension")||ko(Do('Relation condition must has prop "dimension" specified.',"Illegal condition:",e));var i=n.getDimensionInfo(t);return i||ko(Do("Can not find dimension info via: "+t+".\n","Existing dimensions: ",n.cloneAllDimensionInfo(),".\n","Illegal condition:",e,".\n")),{dimIdx:i.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}},new KG(s,l)),r=[],o=0,a=n.count();o<a;o++)t=n.getRawDataItem(o),i.evaluate()&&r.push(t);var s,l;return{data:r}}};JG=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" ");var eH={type:"echarts:sort",transform:function(e){var t=e.upstream,n=Oo(e.config);n.length||ko("Empty `config` in sort transform.");var i=[];z(n,(function(e){var n=e.dimension,r=e.order,o=e.parser,a=e.incomparable;null==n&&ko('Sort transform config must has "dimension" specified.'+JG),"asc"!==r&&"desc"!==r&&ko('Sort transform config must has "order" specified.'+JG),a&&"min"!==a&&"max"!==a&&ko('incomparable must be "min" or "max" rather than "'+a+'".'),"asc"!==r&&"desc"!==r&&ko('order must be "asc" or "desc" rather than "'+r+'".');var s=t.getDimensionInfo(n);s||ko(Do("Can not find dimension info via: "+n+".\n","Existing dimensions: ",t.cloneAllDimensionInfo(),".\n","Illegal config:",e,".\n"));var l=o?Ff(o):null;o&&!l&&ko(Do("Invalid parser name "+o+".\n","Illegal config:",e,".\n")),i.push({dimIdx:s.index,parser:l,comparator:new Wf(r,a)})}));var r=t.sourceFormat;r!==Qp&&r!==eh&&ko('sourceFormat "'+r+'" is not supported yet');for(var o=[],a=0,s=t.count();a<s;a++)o.push(t.getRawDataItem(a));return o.sort((function(e,n){for(var r=0;r<i.length;r++){var o=i[r],a=t.retrieveValueFromItem(e,o.dimIdx),s=t.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:o}}};var tH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return i(t,e),t.prototype.init=function(t,n,i){e.prototype.init.call(this,t,n,i),this._sourceManager=new cg(this),dg(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),dg(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:rh},t}(Xp),nH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return i(t,e),t.type="dataset",t}(Hg);var iH=ws.CMD;function rH(e,t){return Math.abs(e-t)<1e-5}function oH(e){var t,n,i,r,o,a=e.data,s=e.len(),l=[],u=0,c=0,d=0,p=0;function h(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function f(e,n,i,r){rH(e,i)&&rH(n,r)||t.push(e,n,i,r,i,r)}function g(e,n,i,r,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=n<e?-1:1,c=Math.cos(e),d=Math.sin(e),p=Math.cos(n),h=Math.sin(n),f=c*o+i,g=d*a+r,m=p*o+i,v=h*a+r,y=o*l*u,x=a*l*u;t.push(f-y*d,g+x*c,m+y*h,v-x*p,m,v)}for(var m=0;m<s;){var v=a[m++],y=1===m;switch(y&&(d=u=a[m],p=c=a[m+1],v!==iH.L&&v!==iH.C&&v!==iH.Q||(t=[d,p])),v){case iH.M:u=d=a[m++],c=p=a[m++],h(d,p);break;
vendor: 4,334 bytes, line 2
2case iH.L:f(u,c,n=a[m++],i=a[m++]),u=n,c=i;break;case iH.C:t.push(a[m++],a[m++],a[m++],a[m++],u=a[m++],c=a[m++]);break;case iH.Q:n=a[m++],i=a[m++],r=a[m++],o=a[m++],t.push(u+2/3*(n-u),c+2/3*(i-c),r+2/3*(n-r),o+2/3*(i-o),r,o),u=r,c=o;break;case iH.A:var x=a[m++],w=a[m++],_=a[m++],b=a[m++],S=a[m++],M=a[m++]+S;m+=1;var T=!a[m++];n=Math.cos(S)*_+x,i=Math.sin(S)*b+w,y?h(d=n,p=i):f(u,c,n,i),u=Math.cos(M)*_+x,c=Math.sin(M)*b+w;for(var C=(T?-1:1)*Math.PI/2,I=S;T?I>M:I<M;I+=C)g(I,T?Math.max(I+C,M):Math.min(I+C,M),x,w,_,b);break;case iH.R:d=u=a[m++],p=c=a[m++],n=d+a[m++],i=p+a[m++],h(n,p),f(n,p,n,i),f(n,i,d,i),f(d,i,d,p),f(d,p,n,p);break;case iH.Z:t&&f(u,c,d,p),u=d,c=p}}return t&&t.length>2&&l.push(t),l}function aH(e,t,n,i,r,o,a,s,l,u){if(rH(e,n)&&rH(t,i)&&rH(r,a)&&rH(o,s))l.push(a,s);else{var c=2/u,d=c*c,p=a-e,h=s-t,f=Math.sqrt(p*p+h*h);p/=f,h/=f;var g=n-e,m=i-t,v=r-a,y=o-s,x=g*g+m*m,w=v*v+y*y;if(x<d&&w<d)l.push(a,s);else{var _=p*g+h*m,b=-p*v-h*y;if(x-_*_<d&&_>=0&&w-b*b<d&&b>=0)l.push(a,s);else{var S=[],M=[];Sn(e,n,r,a,.5,S),Sn(t,i,o,s,.5,M),aH(S[0],M[0],S[1],M[1],S[2],M[2],S[3],M[3],l,u),aH(S[4],M[4],S[5],M[5],S[6],M[6],S[7],M[7],l,u)}}}}function sH(e,t,n){var i=e[t],r=e[1-t],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=[],u=0;u<a;u++)l.push(s);var c=n-a*s;if(c>0)for(u=0;u<c;u++)l[u%a]+=1;return l}function lH(e,t,n){for(var i=e.r0,r=e.r,o=e.startAngle,a=e.endAngle,s=Math.abs(a-o),l=s*r,u=r-i,c=l>Math.abs(u),d=sH([l,u],c?0:1,t),p=(c?s:u)/d.length,h=0;h<d.length;h++)for(var f=(c?u:s)/d[h],g=0;g<d[h];g++){var m={};c?(m.startAngle=o+p*h,m.endAngle=o+p*(h+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+p*h,m.r=i+p*(h+1)),m.clockwise=e.clockwise,m.cx=e.cx,m.cy=e.cy,n.push(m)}}function uH(e,t,n,i){return e*i-n*t}function cH(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,c=a-r,d=s-o,p=uH(c,d,l,u);if(Math.abs(p)<1e-6)return null;var h=uH(e-r,t-o,c,d)/p;return h<0||h>1?null:new Dt(h*l+e,h*u+t)}function dH(e,t,n){var i=new Dt;Dt.sub(i,n,t),i.normalize();var r=new Dt;return Dt.sub(r,e,t),r.dot(i)}function pH(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function hH(e){var t=e.points,n=[],i=[];Ua(t,n,i);var r=new Bt(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new Dt,c=new Dt;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),function(e,t,n){for(var i=e.length,r=[],o=0;o<i;o++){var a=e[o],s=e[(o+1)%i],l=cH(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&r.push({projPt:dH(l,t,n),pt:l,idx:o})}if(r.length<2)return[{points:e},{points:e}];r.sort((function(e,t){return e.projPt-t.projPt}));var u=r[0],c=r[r.length-1];if(c.idx<u.idx){var d=u;u=c,c=d}var p=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],f=[p],g=[h];for(o=u.idx+1;o<=c.idx;o++)pH(f,e[o].slice());for(pH(f,h),pH(f,p),o=c.idx+1;o<=u.idx+i;o++)pH(g,e[o%i].slice());return pH(g,p),pH(g,h),[{points:f},{points:g}]}(t,u,c)}function fH(e,t,n,i){if(1===n)i.push(t);else{var r=Math.floor(n/2),o=e(t);fH(e,o[0],r,i),fH(e,o[1],n-r,i)}return i}function gH(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function mH(e,t){var n,i=[],r=e.shape;switch(e.type){case"rect":(function(e,t,n){for(var i=e.width,r=e.height,o=i>r,a=sH([i,r],o?0:1,t),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",d=e[s]/a.length,p=0;p<a.length;p++)for(var h=e[l]/a[p],f=0;f<a[p];f++){var g={};g[u]=p*d,g[c]=f*h,g[s]=d,g[l]=h,g.x+=e.x,g.y+=e.y,n.push(g)}})(r,t,i),n=Js;break;case"sector":lH(r,t,i),n=Zu;break;case"circle":lH({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},t,i),n=Zu;break;default:var o=e.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=B(function(e,t){var n=oH(e),i=[];t=t||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 u=2;u<o.length;){var c=o[u++],d=o[u++],p=o[u++],h=o[u++],f=o[u++],g=o[u++];aH(s,l,c,d,p,h,f,g,a,t),s=f,l=g}i.push(a)}return i}(e.getUpdatedPathProxy(),a),(function(e){return function(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}(e)})),l=s.length;if(0===l)fH(hH,{points:s[0]},t,i);else if(l===t)for(var u=0;u<l;u++)i.push({points:s[u]});else{var c=0,d=B(s,(function(e){var t=[],n=[];Ua(e,t,n);var i=(n[1]-t[1])*(n[0]-t[0]);return c+=i,{poly:e,area:i}}));d.sort((function(e,t){return t.area-e.area}));var p=t;for(u=0;
vendor: 2,883 bytes, line 2
2u<l;u++){var h=d[u];if(p<=0)break;var f=u===l-1?p:Math.ceil(h.area/c*t);f<0||(fH(hH,{points:h.poly},f,i),p-=f)}}n=tc}if(!n)return function(e,t){for(var n=[],i=0;i<t;i++)n.push(Lu(e));return n}(e,t);var g=[];for(u=0;u<i.length;u++){var m=new n;m.setShape(i[u]),gH(e,m),g.push(m)}return g}function vH(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var r=[],o=[],a=n<i?e:t,s=Math.min(n,i),l=Math.abs(i-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,d=[a[0],a[1]],p=l,h=2;h<s;){var f=a[h-2],g=a[h-1],m=a[h++],v=a[h++],y=a[h++],x=a[h++],w=a[h++],_=a[h++];if(p<=0)d.push(m,v,y,x,w,_);else{for(var b=Math.min(p,c-1)+1,S=1;S<=b;S++){var M=S/b;Sn(f,m,y,w,M,r),Sn(g,v,x,_,M,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],x=o[6]}p-=b-1}}return a===e?[d,t]:[e,d]}function yH(e,t){for(var n=e.length,i=e[n-2],r=e[n-1],o=[],a=0;a<t.length;)o[a++]=i,o[a++]=r;return o}function xH(e){for(var t=0,n=0,i=0,r=e.length,o=0,a=r-2;o<r;a=o,o+=2){var s=e[a],l=e[a+1],u=e[o],c=e[o+1],d=s*c-u*l;t+=d,n+=(s+u)*d,i+=(l+c)*d}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,i/t/3,t]}function wH(e,t,n,i){for(var r=(e.length-2)/6,o=1/0,a=0,s=e.length,l=s-2,u=0;u<r;u++){for(var c=6*u,d=0,p=0;p<s;p+=2){var h=0===p?c:(c+p-2)%l+2,f=e[h]-n[0],g=e[h+1]-n[1],m=t[p]-i[0]-f,v=t[p+1]-i[1]-g;d+=m*m+v*v}d<o&&(o=d,a=u)}return a}function _H(e){for(var t=[],n=e.length,i=0;i<n;i+=2)t[i]=e[n-i-2],t[i+1]=e[n-i-1];return t}function bH(e){return e.__isCombineMorphing}var SH="__mOriginal_";function MH(e,t,n){var i=SH+t,r=e[i]||e[t];e[i]||(e[i]=e[t]);var o=n.replace,a=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=o?o.apply(this,t):r.apply(this,t),a&&a.apply(this,t),e}}function TH(e,t){var n=SH+t;e[n]&&(e[t]=e[n],e[n]=null)}function CH(e,t){for(var n=0;n<e.length;n++)for(var i=e[n],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=t[0]*o+t[2]*a+t[4],i[r++]=t[1]*o+t[3]*a+t[5]}}function IH(e,t){var n=e.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),r=function(e,t){for(var n,i,r,o=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,d=void 0;l?u?(i=c=(n=vH(l,u))[0],r=d=n[1]):(d=yH(r||l,l),c=l):(c=yH(i||u,u),d=u),o.push(c),a.push(d)}return[o,a]}(oH(n),oH(i)),o=r[0],a=r[1],s=e.getComputedTransform(),l=t.getComputedTransform();s&&CH(o,s),l&&CH(a,l),MH(t,"updateTransform",{replace:function(){this.transform=null}}),t.transform=null;var u=function(e,t,n,i){for(var r,o=[],a=0;a<e.length;a++){var s=e[a],l=t[a],u=xH(s),c=xH(l);null==r&&(r=u[2]<0!=c[2]<0);var d=[],p=[],h=0,f=1/0,g=[],m=s.length;r&&(s=_H(s));for(var v=6*wH(s,l,u,c),y=m-2,x=0;x<y;x+=2){var w=(v+x)%y+2;d[x+2]=s[w]-u[0],d[x+3]=s[w+1]-u[1]}if(d[0]=s[v]-u[0],d[1]=s[v+1]-u[1],n>0)for(var _=i/n,b=-i/2;b<=i/2;b+=_){var S=Math.sin(b),M=Math.cos(b),T=0;for(x=0;x<s.length;x+=2){var C=d[x],I=d[x+1],A=l[x]-c[0],D=l[x+1]-c[1],k=A*M-D*S,L=A*S+D*M;g[x]=k,g[x+1]=L;var E=k-C,P=L-I;T+=E*E+P*P}if(T<f){f=T,h=b;
vendor: 6,138 bytes, line 2
2for(var O=0;O<g.length;O++)p[O]=g[O]}}else for(var R=0;R<m;R+=2)p[R]=l[R]-c[0],p[R+1]=l[R+1]-c[1];o.push({from:d,to:p,fromCp:u,toCp:c,rotation:-h})}return o}(o,a,10,Math.PI),c=[];MH(t,"buildPath",{replace:function(e){for(var n=t.__morphT,i=1-n,r=[],o=0;o<u.length;o++){var a=u[o],s=a.from,l=a.to,d=a.rotation*n,p=a.fromCp,h=a.toCp,f=Math.sin(d),g=Math.cos(d);He(r,p,h,n);for(var m=0;m<s.length;m+=2){var v=s[m],y=s[m+1],x=v*i+(S=l[m])*n,w=y*i+(M=l[m+1])*n;c[m]=x*g-w*f+r[0],c[m+1]=x*f+w*g+r[1]}var _=c[0],b=c[1];for(e.moveTo(_,b),m=2;m<s.length;){var S=c[m++],M=c[m++],T=c[m++],C=c[m++],I=c[m++],A=c[m++];_===S&&b===M&&T===I&&C===A?e.lineTo(I,A):e.bezierCurveTo(S,M,T,C,I,A),_=I,b=A}}}})}function AH(e,t,n){if(!e||!t)return t;var i=n.done,r=n.during;return IH(e,t),t.__morphT=0,t.animateTo({__morphT:1},L({during:function(e){t.dirtyShape(),r&&r(e)},done:function(){TH(t,"buildPath"),TH(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape(),i&&i()}},n)),t}function DH(e,t,n,i,r,o){e=r===n?0:Math.round(32767*(e-n)/(r-n)),t=o===i?0:Math.round(32767*(t-i)/(o-i));for(var a,s=0,l=32768;l>0;l/=2){var u=0,c=0;(e&l)>0&&(u=1),(t&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(e=l-1-e,t=l-1-t),a=e,e=t,t=a)}return s}function kH(e){var t=1/0,n=1/0,i=-1/0,r=-1/0,o=B(e,(function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]}));return B(o,(function(o,a){return{cp:o,z:DH(o[0],o[1],t,n,i,r),path:e[a]}})).sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function LH(e){return mH(e.path,e.count)}function EH(e){return $(e[0])}function PH(e,t){for(var n=[],i=e.length,r=0;r<i;r++)n.push({one:e[r],many:[]});for(r=0;r<t.length;r++){var o=t[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(t[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 u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var OH={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var r=Lu(e.path);r.setStyle("opacity",n),t.push(r)}return t},split:null};function RH(e,t,n,i,r,o){if(e.length&&t.length){var a=Tc("update",i,r);if(a&&a.duration>0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);EH(e)&&(s=e,l=t),EH(t)&&(s=t,l=e);for(var d=s?s===e:e.length>t.length,p=s?PH(l,s):PH(d?t:e,[d?e:t]),h=0,f=0;f<p.length;f++)h+=p[f].many.length;var g=0;for(f=0;f<p.length;f++)m(p[f],d,g,h),g+=p[f].many.length}}function m(e,t,i,r,a){var s=e.many,l=e.one;if(1!==s.length||a)for(var d=L({dividePath:OH[n],individualDelay:u&&function(e,t,n,o){return u(e+i,r)}},c),p=t?function(e,t,n){var i=[];!function e(t){for(var n=0;n<t.length;n++){var r=t[n];bH(r)?e(r.childrenRef()):r instanceof Fs&&i.push(r)}}(e);var r=i.length;if(!r)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(n.dividePath||LH)({path:t,count:r});if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};i=kH(i),o=kH(o);for(var a=n.done,s=n.during,l=n.individualDelay,u=new yr,c=0;c<r;c++){var d=i[c],p=o[c];p.parent=t,p.copyTransform(u),l||IH(d,p)}function h(e){for(var t=0;t<o.length;t++)o[t].addSelfToZr(e)}function f(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,TH(t,"addSelfToZr"),TH(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return o},MH(t,"addSelfToZr",{after:function(e){h(e)}}),MH(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<o.length;t++)o[t].removeSelfFromZr(e)}});var g=o.length;if(l){var m=g,v=function(){0==--m&&(f(),a&&a())};for(c=0;c<g;c++){var y=l?L({delay:(n.delay||0)+l(c,g,i[c],o[c]),done:v},n):n;AH(i[c],o[c],y)}}else t.__morphT=0,t.animateTo({__morphT:1},L({during:function(e){for(var n=0;n<g;n++){var i=o[n];i.__morphT=t.__morphT,i.dirtyShape()}s&&s(e)},done:function(){f();for(var t=0;t<e.length;t++)TH(e[t],"updateTransform");a&&a()}},n));return t.__zr&&h(t.__zr),{fromIndividuals:i,toIndividuals:o,count:g}}(s,l,d):function(e,t,n){var i=t.length,r=[],o=n.dividePath||LH;if(bH(e)){!function e(t){for(var n=0;n<t.length;n++){var i=t[n];bH(i)?e(i.childrenRef()):i instanceof Fs&&r.push(i)}}(e.childrenRef());var a=r.length;if(a<i)for(var s=0,l=a;l<i;l++)r.push(Lu(r[s++%a]));r.length=i}else{r=o({path:e,count:i});var u=e.getComputedTransform();for(l=0;l<r.length;l++)r[l].setLocalTransform(u);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}r=kH(r),t=kH(t);var c=n.individualDelay;for(l=0;l<i;l++){var d=c?L({delay:(n.delay||0)+c(l,i,r[l],t[l])},n):n;AH(r[l],t[l],d)}return{fromIndividuals:r,toIndividuals:t,count:t.length}}(l,s,d),h=p.fromIndividuals,f=p.toIndividuals,g=h.length,v=0;v<g;v++)y=u?L({delay:u(v,g)},c):c,o(h[v],f[v],t?s[v]:e.one,t?e.one:s[v],y);else{var y,x=t?s[0]:l,w=t?l:s[0];bH(x)?m({many:[x],one:w},!0,i,r,!0):(AH(x,w,y=u?L({delay:u(i,r)},c):c),o(x,w,x,w,y))}}}function NH(e){if(!e)return[];if($(e)){for(var t=[],n=0;n<e.length;n++)t.push(NH(e[n]));return t}var i=[];return e.traverse((function(e){e instanceof Fs&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)})),i}var zH=qo();function BH(e,t,n,i){var r=function(e,t){for(var n=e.dimensions,i=0;i<n.length;i++){var r=e.getDimensionInfo(n[i]);if(r&&0===r.otherDims[t])return n[i]}}(e,i?"itemChildGroupId":"itemGroupId");if(r)return function(e,t,n){var i=e.getDimensionInfo(n),r=i&&i.ordinalMeta;if(i){var o=e.get(i.name,t);return r&&r.categories[o]||o+""}}(e,t,r);var o=e.getRawDataItem(t),a=i?"childGroupId":"groupId";return o&&o[a]?o[a]+"":i?void 0:n||e.getId(t)}function VH(e){var t=[];return z(e,(function(e){var n=e.data,i=e.dataGroupId;if(n.count()>1e4)To("Universal transition is disabled on large data > 10k.");else for(var r=n.getIndices(),o=0;o<r.length;o++)t.push({data:n,groupId:BH(n,o,i,!1),childGroupId:BH(n,o,i,!0),divide:e.divide,dataIndex:o})})),t}function FH(e,t,n){e.traverse((function(e){e instanceof Fs&&Ac(e,{style:{opacity:0}
vendor: 16,585 bytes, line 2
2},t,{dataIndex:n,isFrom:!0})}))}function GH(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function HH(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function WH(e,t,n){var i=Tc("update",n,t);i&&e.traverse((function(e){if(e instanceof Ba){var t=function(e){return Mc(e).oldStyle}(e);t&&e.animateFrom({style:t},i)}}))}function jH(e,t,n){var i=VH(e),r=VH(t);function o(e,t,n,i,r){(n||e)&&t.animateFrom({style:n&&n!==e?k(k({},n.style),e.style):e.style},r)}var a=!1,s=0,l=ve(),u=ve();i.forEach((function(e){e.groupId&&l.set(e.groupId,!0),e.childGroupId&&u.set(e.childGroupId,!0)}));for(var c=0;c<r.length;c++){var d=r[c].groupId;if(u.get(d)){s=1;break}var p=r[c].childGroupId;if(p&&l.get(p)){s=2;break}}function h(e,t){return function(n){var i=n.data,r=n.dataIndex;return t?i.getId(r):e?1===s?n.childGroupId:n.groupId:2===s?n.childGroupId:n.groupId}}var f=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var r=e[i],o=t[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(i,r),g={};if(!f)for(c=0;c<r.length;c++){var m=r[c],v=m.data.getItemGraphicEl(m.dataIndex);v&&(g[v.id]=!0)}function y(e,t){var n=i[t],s=r[e],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&g[u.id]||c&&(HH(c),u?(HH(u),GH(u),a=!0,RH(NH(u),NH(c),s.divide,l,e,o)):FH(c,l,e)):c&&WH(c,s.dataIndex,l)}new ex(i,r,h(!0,f),h(!1,f),null,"multiple").update(y).updateManyToOne((function(e,t){var n=r[e],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),c=F(B(t,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==u&&!g[e.id]}));u&&(HH(u),c.length?(z(c,(function(e){HH(e),GH(e)})),a=!0,RH(NH(c),NH(u),n.divide,l,e,o)):FH(u,l,n.dataIndex))})).updateOneToMany((function(e,t){var n=i[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=F(B(e,(function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)})),(function(e){return e&&e!==s})),u=r[e[0]].data.hostModel;l.length&&(z(l,(function(e){return HH(e)})),s?(HH(s),GH(s),a=!0,RH(NH(s),NH(l),n.divide,u,e[0],o)):z(l,(function(t){return FH(t,u,e[0])})))}})).updateManyToMany((function(e,t){new ex(t,e,(function(e){return i[e].data.getId(i[e].dataIndex)}),(function(e){return r[e].data.getId(r[e].dataIndex)})).update((function(n,i){y(e[n],t[i])})).execute()})).execute(),a&&z(t,(function(e){var t=e.data.hostModel,i=t&&n.getViewOfSeriesModel(t),r=Tc("update",t,0);i&&t.isAnimationEnabled()&&r&&r.duration>0&&i.group.traverse((function(e){e instanceof Fs&&!e.animators.length&&e.animateFrom({style:{opacity:0}},r)}))}))}function $H(e){return e.getModel("universalTransition").get("seriesKey")||e.id}function YH(e){return $(e)?e.sort().join(","):e}function XH(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function qH(e,t){for(var n=0;n<e.length;n++)if(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)return n}Ky([function(e){e.registerPainter("canvas",MS)}]),Ky([function(e){e.registerPainter("svg",vS)}]),Ky([function(e){e.registerChartView(rM),e.registerSeriesModel(TS),e.registerLayout(oM("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,lM("line"))},function(e){e.registerChartView(yM),e.registerSeriesModel(cM),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,j(ow,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,aw("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,lM("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))},function(e){e.registerChartView(XM),e.registerSeriesModel(KM),jm("pie",e.registerAction),e.registerLayout(j(BM,"pie")),e.registerProcessor(FM("pie")),e.registerProcessor(function(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!(U(i)&&!isNaN(i)&&i<0)}))}}}("pie"))},function(e){Ky(KT),e.registerSeriesModel(JM),e.registerChartView(nT),e.registerLayout(oM("scatter"))},function(e){Ky(dC),e.registerChartView(nC),e.registerSeriesModel(iC),e.registerLayout(JT),e.registerProcessor(FM("radar")),e.registerPreprocessor(tC)},function(e){Ky(VI),e.registerChartView(_I),e.registerSeriesModel(bI),e.registerLayout(MI),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,SI),jm("map",e.registerAction)},function(e){e.registerChartView(KI),e.registerSeriesModel(xA),e.registerLayout(_A),e.registerVisual(bA),function(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=NI(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}(e)},function(e){e.registerSeriesModel(TA),e.registerChartView(BA),e.registerVisual(tD),e.registerLayout(fD),function(e){for(var t=0;t<SA.length;t++)e.registerAction({type:SA[t],update:"updateView"},be);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},(function(t,n){var i=gA(e,["treemapZoomToNode","treemapRootToNode"],t);if(i){var r=t.getViewRoot();r&&(e.direction=vA(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}))}))}(e)},function(e){e.registerChartView(mk),e.registerSeriesModel(Sk),e.registerProcessor(wD),e.registerVisual(_D),e.registerVisual(SD),e.registerLayout(PD),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,GD),e.registerLayout(WD),e.registerCoordinateSystem("graphView",{dimensions:CI.dimensions,create:jD}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},be),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},be),e.registerAction(Mk,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=NI(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))},function(e){e.registerChartView(Ak),e.registerSeriesModel(Dk)},function(e){e.registerChartView(Ek),e.registerSeriesModel(Pk),e.registerLayout(Ok),e.registerProcessor(FM("funnel"))},function(e){Ky(aE),e.registerChartView(Rk),e.registerSeriesModel(Fk),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Wk)},function(e){e.registerChartView(uE),e.registerSeriesModel(dE),e.registerLayout(pE),e.registerVisual(ME),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},function(e){e.registerSeriesModel(CE),e.registerChartView(IE),e.registerLayout(OE),e.registerTransform(RE)},function(e){e.registerChartView($E),e.registerSeriesModel(nP),e.registerPreprocessor(iP),e.registerVisual(WE),e.registerLayout(rP)},function(e){e.registerChartView(lP),e.registerSeriesModel(uP),e.registerLayout(oM("effectScatter"))},function(e){e.registerChartView(vP),e.registerSeriesModel(_P),e.registerLayout(mP),e.registerVisual(SP)},function(e){e.registerChartView(CP),e.registerSeriesModel(IP)},function(e){e.registerChartView(LP),e.registerSeriesModel(UP),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,j(ow,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,aw("pictorialBar"))},function(e){e.registerChartView(ZP),e.registerSeriesModel(KP),e.registerLayout(JP),e.registerProcessor(FM("themeRiver"))},function(e){e.registerChartView(iO),e.registerSeriesModel(rO),e.registerLayout(j(sO,"sunburst")),e.registerProcessor(j(FM,"sunburst")),e.registerVisual(uO),function(e){e.registerAction({type:tO,update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t,n){var i=gA(e,[tO],t);if(i){var r=t.getViewRoot();r&&(e.direction=vA(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}))})),e.registerAction({type:nO,update:"none"},(function(e,t,n){e=k({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t){var n=gA(e,[nO],t);n&&(e.dataIndex=n.node.dataIndex)})),Ao("sunburstHighlight","highlight"),n.dispatchAction(k(e,{type:"highlight"}))})),e.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(e,t,n){e=k({},e),Ao("sunburstUnhighlight","downplay"),n.dispatchAction(k(e,{type:"downplay"}))}))}(e)},function(e){e.registerChartView(aR),e.registerSeriesModel(hO)}]),Ky((function(e){Ky(KT),Ky(sN)})),Ky((function(e){Ky(sN),VT.registerAxisPointerClass("PolarAxisPointer",lN),e.registerCoordinateSystem("polar",bN),e.registerComponentModel(cN),e.registerComponentView(BN),cT(e,"angle",pN,NN),cT(e,"radius",hN,zN),e.registerComponentView(IN),e.registerComponentView(LN),e.registerLayout(j(RN,"bar"))})),Ky(VI),Ky((function(e){Ky(sN),VT.registerAxisPointerClass("SingleAxisPointer",JN),e.registerComponentView(nz),e.registerComponentView(HN),e.registerComponentModel(jN),cT(e,"single",jN,jN.defaultOption),e.registerCoordinateSystem("single",UN)})),Ky(aE),Ky((function(e){e.registerComponentModel(iz),e.registerComponentView(oz),e.registerCoordinateSystem("calendar",sz)})),Ky((function(e){e.registerComponentModel(hz),e.registerComponentView(mz),e.registerPreprocessor((function(e){var t=e.graphic;$(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))})),Ky((function(e){e.registerComponentModel(Wz),e.registerComponentView($z),Gz("saveAsImage",Yz),Gz("magicType",Uz),Gz("dataView",nB),Gz("dataZoom",MB),Gz("restore",sB),Ky(Bz)})),Ky((function(e){Ky(sN),e.registerComponentModel(IB),e.registerComponentView(jB),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},be),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},be)})),Ky(sN),Ky((function(e){e.registerComponentView(pV),e.registerComponentModel(hV),e.registerPreprocessor(UB),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,sV),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},be),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},be),Gz("brush",mV)})),Ky((function(e){e.registerComponentModel(vV),e.registerComponentView(yV)})),Ky((function(e){e.registerComponentModel(wV),e.registerComponentView(TV),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),L({currentIndex:i.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}(e),e.registerPreprocessor(AV)})),Ky((function(e){e.registerComponentModel(RV),e.registerComponentView(XV),e.registerPreprocessor((function(e){LV(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))})),Ky((function(e){e.registerComponentModel(qV),e.registerComponentView(tF),e.registerPreprocessor((function(e){LV(e.series,"markLine")&&(e.markLine=e.markLine||{})}))})),Ky((function(e){e.registerComponentModel(nF),e.registerComponentView(cF),e.registerPreprocessor((function(e){LV(e.series,"markArea")&&(e.markArea=e.markArea||{})}))})),Ky((function(e){Ky(SF),Ky(kF)})),Ky((function(e){Ky(GF),Ky(ZF)})),Ky(GF),Ky(ZF),Ky((function(e){Ky(kG),Ky(RG)})),Ky(kG),Ky(RG),Ky((function(e){e.registerPreprocessor(FG),e.registerVisual(e.PRIORITY.VISUAL.ARIA,VG)})),Ky((function(e){e.registerTransform(QG),e.registerTransform(eH)})),Ky((function(e){e.registerComponentModel(tH),e.registerComponentView(nH)})),Ky((function(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){z(Oo(n.seriesTransition),(function(e){z(Oo(e.to),(function(e){for(var t=n.updatedSeries,i=0;i<t.length;i++)(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)&&(t[i][Pg]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var i=zH(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)z(Oo(r),(function(e){!function(e,t,n,i){var r=[],o=[];z(Oo(e.from),(function(e){var n=qH(t.oldSeries,e);n>=0&&r.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:XH(t.oldData[n]),groupIdDim:e.dimension})})),z(Oo(e.to),(function(e){var i=qH(n.updatedSeries,e);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:t.oldDataGroupIds[i],data:r,divide:XH(r),groupIdDim:e.dimension})}})),r.length>0&&o.length>0&&jH(r,o,i)}(e,i,n,t)}));else{var o=function(e,t){var n=ve(),i=ve(),r=ve();function o(e){n.get(e)&&To("Duplicated seriesKey in universalTransition "+e)}return z(e.oldSeries,(function(t,n){var o=e.oldDataGroupIds[n],a=e.oldData[n],s=$H(t),l=YH(s);i.set(l,{dataGroupId:o,data:a}),$(s)&&z(s,(function(e){r.set(e,{key:l,dataGroupId:o,data:a})}))})),z(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),a=e.getData(),s=$H(e),l=YH(s),u=i.get(l);if(u)o(l),n.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:XH(u.data),data:u.data}],newSeries:[{dataGroupId:t,divide:XH(a),data:a}]});else if($(s)){o(l);var c=[];z(s,(function(e){var t=i.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:XH(t.data),data:t.data})})),c.length&&n.set(l,{oldSeries:c,newSeries:[{dataGroupId:t,data:a,divide:XH(a)}]})}else{var d=r.get(s);if(d){var p=n.get(d.key);p||(p={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:XH(d.data)}],newSeries:[]},n.set(d.key,p)),p.newSeries.push({dataGroupId:t,data:a,divide:XH(a)})}}}})),n}(i,n);z(o.keys(),(function(e){var n=o.get(e);jH(n.oldSeries,n.newSeries,t)}))}z(n.updatedSeries,(function(e){e[Pg]&&(e[Pg]=!1)}))}for(var a=e.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],u=i.oldData=[],c=0;c<a.length;c++){var d=a[c].getData();d.count()<1e4&&(s.push(a[c]),l.push(a[c].get("dataGroupId")),u.push(d))}}))})),Ky((function(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var i=ob(t).labelManager;i||(i=ob(t).labelManager=new rb),i.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var i=ob(t).labelManager;n.updatedSeries.forEach((function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()}))})),e.Axis=w_,e.ChartView=Yg,e.ComponentModel=Xp,e.ComponentView=Hg,e.List=Tx,e.Model=zd,e.PRIORITY=Fv,e.SeriesModel=Og,e.color=ui,e.connect=function(e){if($(e)){var t=e;e=null,z(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+Dy++,z(t,(function(t){t.group=e}))}return Iy[e]=!0,e},e.dataTool={},e.dependencies={zrender:"5.6.1"},e.disConnect=Ey,e.disconnect=Ly,e.dispose=function(e){X(e)?e=Cy[e]:e instanceof gy||(e=Py(e)),e instanceof gy&&!e.isDisposed()&&e.dispose()},e.env=o,e.extendChartView=function(e){var t=Yg.extend(e);return Yg.registerClass(t),t},e.extendComponentModel=function(e){var t=Xp.extend(e);return Xp.registerClass(t),t},e.extendComponentView=function(e){var t=Hg.extend(e);return Hg.registerClass(t),t},e.extendSeriesModel=function(e){var t=Og.extend(e);return Og.registerClass(t),t},e.format=a_,e.getCoordinateSystemDimensions=function(e){var t=Rh.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},e.getInstanceByDom=Py,e.getInstanceById=function(e){return Cy[e]},e.getMap=function(e){var t=zv("getMap");return t&&t(e)},e.graphic=o_,e.helper=Ww,e.init=function(e,t,n){var i=!(n&&n.ssr);
2if(i){if(!e)throw new Error("Initialize failed: invalid dom.");var r=Py(e);if(r)return To("There is a chart instance already initialized on the dom."),r;!Q(e)||"CANVAS"===e.nodeName.toUpperCase()||(e.clientWidth||n&&null!=n.width)&&(e.clientHeight||n&&null!=n.height)||To("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var o=new gy(e,t,n);return o.id="ec_"+Ay++,Cy[o.id]=o,i&&ta(e,ky,o.id),cy(o),Rv.trigger("afterinit",o),o},e.innerDrawElementOnCanvas=Cv,e.matrix=At,e.number=i_,e.parseGeoJSON=n_,e.parseGeoJson=n_,e.registerAction=Fy,e.registerCoordinateSystem=Gy,e.registerLayout=Hy,e.registerLoading=Yy,e.registerLocale=Xd,e.registerMap=Xy,e.registerPostInit=zy,e.registerPostUpdate=By,e.registerPreprocessor=Ry,e.registerProcessor=Ny,e.registerTheme=Oy,e.registerTransform=qy,e.registerUpdateLifecycle=Vy,e.registerVisual=Wy,e.setCanvasCreator=function(e){Io("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),p({createCanvas:e})},e.setPlatformAPI=p,e.throttle=tm,e.time=r_,e.use=Ky,e.util=s_,e.vector=Ye,e.version="5.6.0",e.zrUtil=Me,e.zrender=Ur,Object.defineProperty(e,"__esModule",{value:!0})}(t)},1966:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PLAN_RESTRICTION_MESSAGE=void 0,t.getCorpCodeFromURL=function(){try{const e=new URL(window.location.href).pathname.split("?")[0].split("#")[0].split("/").filter((e=>e));let t="";return t=e.includes("company_report")?e[e.indexOf("company_report")+1]:e[0]||"",t.includes("?")&&(t=t.split("?")[0]),t.includes("#")&&(t=t.split("#")[0]),t}catch(e){return""}},t.getShareIdFromURL=c,t.getActiveShareId=d,t.withActiveShareId=p,t.recordActiveShareId=function(e){sessionStorage.setItem(u,e)},t.clearActiveShareId=function(){sessionStorage.removeItem(u)},t.getCookie=h,t.updateCookie=function(e,t){const n=new Date;n.setTime(n.getTime()+6048e5);const i="expires="+n.toUTCString();document.cookie=`${e}=${encodeURIComponent(t)}; ${i}; path=/`},t.debounce=function(e,t){let n=null;return function(i){n&&clearTimeout(n),n=setTimeout(e,t,i)}},t.refineSearchInput=function(e){const t=e.substring(0,51);return/[^\w\sㄱ-힣,.\(\)&\-]/.test(t)||""===t.trim()?"":t},t.createNotSearchedComponent=function(e,t){if(null!==e&&!e.firstChild){const n=document.createElement("tr"),i=n.appendChild(document.createElement("td")).appendChild(document.createElement("span"));i.style.verticalAlign="middle",i.textContent="검색 결과가 없습니다.",i.classList.add("p-0","fs-6","fw-normal"),e.appendChild(n),t()}t()},t.createSearchedComponent=function(e,t,n,i){const r=document.createElement("tr");r.classList.add("align-middle");const a="web"===o.PLATFORM?p(`/company_report/${t}`):`/html/company_report.html?corp_code=${t}`,s=r.appendChild(document.createElement("td"));s.textContent=n,s.classList.add("text-start","text-gray-medium","cursor-pointer","ps-5"),s.style.width="12%";const l=r.appendChild(document.createElement("td"));l.style.width="68%";const u=l.appendChild(document.createElement("a"));u.href=a,u.textContent=e,u.classList.add("btn","synap-btn-link","p-0","fs-6","fw-normal","d-block","w-100","h-100","text-start");const c=r.appendChild(document.createElement("td"));return c.textContent="Y"==i?"코스피":"코스닥",c.classList.add("text-end","text-gray-medium","cursor-pointer","pe-5"),c.style.width="20%",c.style.whiteSpace="nowrap",r.addEventListener("click",(()=>{window.location.href=a})),r},t.ellipsisStr=function(e,t=7,n=12){return function(e){return/^[A-Za-z\s]+$/.test(e)}(e)?e.length>n?e.slice(0,n)+"...":e:e.length>t?e.slice(0,t)+"...":e},t.createViewerWebTitle=function(e){return`${e} - DartPoint AI, 전자공시기반 AI 기업정보`},t.createViewerHrefLink=function(e,t,n,i,r,a){const s=t.replace(".pdf","");let l=`${o.SERVER_ADDR}/company_report/disclosure?corpCode=${e}&fnm=${s}&webTitle=${n}&fileTitle=${i}`;return void 0!==r&&(l+=`&pn=${r}`),a&&(l+=`&shareId=${a}`),l},t.numberFormatter=f,t.setFinancialValue=function(e,t,n=1e6,i=!1){if(null==e)return"-";if(0===e)return 0;let r="";return i&&e>0&&(r="+"),t?"KRW"==t&&Math.abs(e)<n?`${r}${f(e)}(원)`:"KRW"==t&&Math.abs(e)>=n?`${r}${f(Math.floor(e/n))}`:`${r}${f(e)}(${t})`:`${r}${f(e)}`},t.numberToKoreanUnits=function(e,t){const n=Math.pow(10,4);if(0===e)return"0";const i=e<0?"-":"";let r=Math.abs(e),o=0;for(;r>=n;)r/=n,o++;let a=f(r.toFixed(0));const s=t/Math.pow(n,o);return void 0!==t&&s<1&&(a=r.toFixed(1)),o>0?i+a+["만","억","조","경"][o-1]:i+a},t.formatToKoreanCurrency=g,t.formatToMillionKoreanCurrency=function(e,t=!0){if("number"!=typeof e||isNaN(e)||0===e)return t?"- 원":"-";const n=e<0,i=e=Math.abs(e),r=1e12,o=1e8,a=1e7;let s="";return e>=r&&(s=f(Math.floor(e/r))+"조 ",e%=r),e>=o&&(s+=f(Math.floor(e/o))+"억 ",e%=o),i<1e9&&e>=a&&(s+=f(Math.floor(e/a))+"천만 "),s=""===s?f(e):s.trim(),t&&(s+="원"),n&&(s="-"+s),s},t.formatByCurrency=function(e,t,n=!1,i=!0){const r=parseFloat(e);
2if("KRW"===t)return g(e,n,i);const o={USD:"en-US",CNY:"zh-CN",HKD:"zh-HK",JPY:"ja-JP"}[t]||"en-US";return r.toLocaleString(o,{style:"currency",currency:t,maximumFractionDigits:0})},t.cloneModalElement=m,t.makeAlertModal=function(e,t){const n=m("alert-modal",e);n.querySelector(".modal-dialog").classList.add("modal-dialog-centered"),n.querySelector(".alert-content").textContent=t,n&&new bootstrap.Modal(n).show()},t.makeSmallAlertModal=v,t.showSmallConfirmModal=function(e,t,n){var i,r;const o=m("confirm-modal",e);if(!o)return;const a=o.querySelector(".confirm-content");a.innerHTML=t,a.style.textAlign="center",null===(i=o.querySelector(".modal-dialog"))||void 0===i||i.classList.add("modal-dialog-centered","modal-sm"),document.body.appendChild(o);const s=new bootstrap.Modal(o);s.show(),null===(r=o.querySelector("#btnModalConfirm"))||void 0===r||r.addEventListener("click",(()=>{s.hide(),n()})),o.addEventListener("hidden.bs.modal",(()=>o.remove()))},t.showPlanRestrictionModal=function(e=t.PLAN_RESTRICTION_MESSAGE){var n;const i="plan-restriction-modal",r=e=>{e.addEventListener("show.bs.modal",(()=>{requestAnimationFrame((()=>{const e=document.querySelectorAll(".modal-backdrop"),t=e[e.length-1];t&&(t.style.zIndex="1058")}))}),{once:!0})},o=document.getElementById(i);if(o){const t=o.querySelector(".confirm-content");
2return t&&(t.innerHTML=e,t.style.textAlign="center"),r(o),void bootstrap.Modal.getOrCreateInstance(o).show()}const a=m("confirm-modal",i);if(!a)return;const s=a.querySelector(".confirm-content");s.innerHTML=e,s.style.textAlign="center",null===(n=a.querySelector(".modal-dialog"))||void 0===n||n.classList.add("modal-dialog-centered");const l=a.querySelector("#btnModalConfirm");l.textContent="Pro 플랜 구독하기",document.body.appendChild(a);const u=new bootstrap.Modal(a);l.addEventListener("click",(e=>{e.preventDefault(),u.hide(),window.location.href="/subscribe"})),r(a),u.show()},t.showLoginModal=function(e){const t=m("confirm-modal",e),n=t.querySelector(".confirm-content");n.textContent="로그인 후 이용 가능합니다.",n.style.textAlign="center",t.querySelector(".modal-dialog").classList.add("modal-dialog-centered","login-modal-dialog"),t&&(new bootstrap.Modal(t).show(),t.querySelector(".btn-confirm").addEventListener("click",(function(){window.location.href="/loginPage.cmd?appId=du"})))},t.isInternalIP=function(){return i(this,void 0,void 0,(function*(){l&&0===h("auth_code").length&&(200===(yield fetch(`${o.SERVER_ADDR}/auth/configure`,{method:"POST"})).status?function(){const e=document.querySelector("#btnLogin");if(!e)return;const t=e.parentElement;if(!t)return;const n=document.createElement("button");n.className="btn synap-btn-link",n.style.width="auto",n.id="btnSignup",n.innerHTML="회원가입",n.addEventListener("click",(function(){return(0,a.verifyAuthentication)()?void window.location.reload():void(window.location.href="/regist/?appId=du")})),t.insertBefore(n,null!=e?e:t.firstChild)}():function(){const e=document.querySelector("#btnSignup");null==e||e.remove()}())}))},t.setLoginLogoutBtns=function(){const e=document.querySelector("header");if(!e)return;const t=e.querySelector("span");if(!t)return;const n=t.querySelector("#btnLogout");n&&n.addEventListener("click",(()=>{(0,a.logout)()}));const i=t.querySelector("#btnMyPage");i&&i.addEventListener("click",(()=>{window.location.href="/mypage"}));const r=t.querySelector("#btnLogin");r&&r.addEventListener("click",(()=>{window.location.href="/loginPage.cmd?appId=du"})),s.default.show_admin_btn&&n&&fetch("/auth/is-admin").then((e=>e.json())).then((e=>{e.is_admin?function(){var e,t;const n=document.querySelector("header"),i=null!==(e=null==n?void 0:n.querySelector("#subscribeHeaderBtnWrapper ~ span"))&&void 0!==e?e:null==n?void 0:n.querySelector("span");if(!i)return;if(i.querySelector("#btnAdmin"))return;const r=document.createElement("a");r.className="badge badge-light-danger fw-bold fs-8 text-decoration-none",r.style.cssText="cursor:pointer; align-self:center; margin-right:0.5rem;",r.id="btnAdmin",r.href="/dashboard",r.innerHTML="관리자";const o=null!==(t=i.querySelector("#btnLogout"))&&void 0!==t?t:i.querySelector("#btnLogin");o?i.insertBefore(r,o):i.appendChild(r)}():y()})).catch((()=>y()))},t.getLocaleDateString=function(){const e=new Intl.DateTimeFormat("default",{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date);return`${e.find((e=>"year"===e.type)).value}-${e.find((e=>"month"===e.type)).value}-${e.find((e=>"day"===e.type)).value}`},t.getYAxisMinMaxVal=function(e,t){const n=Math.floor(Math.min(...e)),i=Math.floor(Math.max(...e)),r=1===t?1:0;return[Math.floor(n/t)*t-r,Math.ceil(i/t)*t+r]},t.getYAxisMedian=function(e,t){return e.map((e=>Math.trunc(e/2)))},t.resizeTargetComponentRow=function(e){const t=document.getElementById("corporationInfoContainer"),n=document.getElementById("financialHealthContainer"),i=document.getElementById("corporationInfoFinancialHealthRow"),r=document.getElementById("executiveContainer"),o=document.getElementById("employeeContainer"),a=document.getElementById("executiveEmployeeRow"),s=document.getElementById("revenueContainer"),l=document.getElementById("operatingIncomeContainer"),u=document.getElementById("netIncomeContainer"),c=document.getElementById("financeSummaryRow");if("corporation_info"==e)return n.classList.contains("d-none")&&i.classList.add("d-none"),t.classList.add("d-none"),n.classList.remove("col-xl-5"),void n.classList.remove("col-xxl-5");if("financial_health"==e)return t.classList.contains("d-none")&&i.classList.add("d-none"),n.classList.add("d-none"),t.classList.remove("col-xl-7"),void t.classList.remove("col-xxl-7");if("executive"==e)return o.classList.contains("d-none")&&a.classList.add("d-none"),r.classList.add("d-none"),void o.classList.remove("col-xxxl-5");if("employee"==e)return r.classList.contains("d-none")&&a.classList.add("d-none"),o.classList.add("d-none"),void r.classList.remove("col-xxxl-7");if(["financial","dividends","industry","disclosure","sentiment","shareholder","forecasts","related","stockHistory"].includes(e))document.getElementById(`${e}Row`).classList.add("d-none");else if(["revenue","operatingIncome","netIncome"].includes(e)){"revenue"===e&&s.classList.add("d-none"),"operatingIncome"===e&&l.classList.add("d-none"),"netIncome"===e&&u.classList.add("d-none");const t=[s,l,u].filter((e=>!e.classList.contains("d-none"))),n=t.length,i={1:["col-xl-12","col-xxl-12"],2:["col-xl-6","col-xxl-6"],3:["col-xl-4","col-xxl-4"]};0===n?c.classList.add("d-none"):(c.classList.remove("d-none"),t.forEach((e=>{e.classList.remove("col-xl-4","col-xl-6","col-xl-12","col-xxl-4","col-xxl-6","col-xxl-12"),e.classList.add(...i[n])})))}else;},t.getIntervalFromData=function(e,t=5,n,i){if(!Array.isArray(e)||0===e.length)return 1;const r=isNaN(i)?Math.max(...e):i;return((e,t,n)=>{const i=t-e,r=i/n,o=Math.floor(Math.log10(r)),a=Math.pow(10,o);let s=Math.floor(r/a+.5)*a;const l=i/s/n;return l<.5?s/=2:l>1.5&&(s*=2),Math.max(1,s)})(isNaN(n)?Math.min(...e):n,r,t)},t.isMobile=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},t.isMobileTablet=function(){return!!/iPad/i.test(navigator.userAgent)||(!(!/Android/i.test(navigator.userAgent)||/Mobile/i.test(navigator.userAgent))||(!(!/Windows/i.test(navigator.userAgent)||!/Touch/i.test(navigator.userAgent)||/Mobile/i.test(navigator.userAgent))||!(!/Kindle/i.test(navigator.userAgent)&&!/Silk/i.test(navigator.userAgent))))},t.handleCorporateInfoTooltip=function(e){if(!(e.scrollWidth>e.clientWidth))return;let t;e.addEventListener("touchstart",(()=>{t&&t.dispose(),t=new bootstrap.Tooltip(e,{title:e.title,placement:"top",trigger:"manual",customClass:"tooltip-corp-info"}),t.show()})),document.addEventListener("touchstart",(n=>{t&&n.target!==e&&(t.dispose(),t=null)}))},t.hideIndicatorsOnMultipleCharts=function(e,t,n=!1,i=!1){t.forEach((t=>{t.addEventListener("touchstart",(()=>{e.forEach((e=>{n&&x(e),i&&_(e)}))}))})),document.addEventListener("touchstart",(r=>{const o=r.target;t.includes(o)||o.classList.contains("chart-tooltip")||e.forEach((e=>{n&&w(e),i&&b(e)}))}))},t.hideTooltipOnTouchEnd=function(e,t,n=!1,i=!1){t.addEventListener("touchstart",(()=>{n&&x(e),i&&_(e)})),document.addEventListener("touchstart",(r=>{const o=r.target;o===t||o.classList.contains("chart-tooltip")||(n&&w(e),i&&b(e))}))},t.preventSingleLegendDeselect=function(e){e.on("legendselectchanged",(function(t){let n=t.selected;Object.values(n).some((e=>!0===e))||(n[t.name]=!0,e.setOption({legend:{selected:n}}))}))},t.hasScript=function(e){const t=new DOMParser;e=S(e);const n=t.parseFromString(e,"text/html");if(n.querySelectorAll("script").length>0)return!0;const i=n.querySelectorAll("*");for(const e of Array.from(i))for(const t of Array.from(e.attributes)){const e=t.name.toLowerCase(),n=t.value.toLowerCase();if(e.startsWith("on"))return!0;
2if(("href"===e||"src"===e)&&n.includes("javascript:"))return!0}return!1},t.escapeHTML=function(e){if(null==e||""===e)return"";const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"," ":"&nbsp;"},n=new RegExp("(&amp;|&lt;|&gt;|&quot;|&#039;|&nbsp;)","g"),i=[];let r=e.replace(n,(e=>(i.push(e),`@@${i.length-1}@@`)));return r=r.replace(/[&<>"' ]/g,(e=>t[e])),r.replace(/@@(\d+)@@/g,((e,t)=>i[t]))},t.unescapeHTML=S,t.getI18nPrevious=function(){return document.body.dataset.i18nPrevious||"이전"},t.getI18nNext=function(){return document.body.dataset.i18nNext||"다음"},t.getI18nFirst=function(){return document.body.dataset.i18nFirst||"처음"},t.getI18nLast=function(){return document.body.dataset.i18nLast||"마지막"},t.getI18nNoResults=function(){return document.body.dataset.i18nNoResults||"검색 결과가 없습니다."},t.getI18nLoading=M,t.getI18nSearching=function(){return document.body.dataset.i18nSearching||"검색 중"},t.getI18nPageInfo=function(e,t,n){return(document.body.dataset.i18nPageInfoTemplate||"{from}~{to} / 전체 {total}건").replace("{from}",String(e)).replace("{to}",String(t)).replace("{total}",String(n))},t.showComponentSpinner=T,t.formatYearMonthKR=function(e){const t=new Date(e);return`${t.getFullYear()}년 ${String(t.getMonth()+1).padStart(2,"0")}월`},t.hideComponentSpinner=C,t.showContentLoading=function(e,t,n=3,i){return t.style.filter=`blur(${n}px)`,t.style.pointerEvents="none",T(e,i)},t.hideContentLoading=function(e,t,n){t.style.filter="",t.style.pointerEvents="",C(e,n)},t.formatKoreanDate=function(e){return`${e.getFullYear()}년 ${e.getMonth()+1}월 ${e.getDate()}일 ${["일요일","월요일","화요일","수요일","목요일","금요일","토요일"][e.getDay()]}`},t.cloneApiKeyRequestLogModal=function(e,t){const n=document.getElementById(e),i=null==n?void 0:n.cloneNode(!0);return i&&i instanceof HTMLElement&&(i.id=t),i},t.downloadBlobAsFile=function(e,t){return i(this,arguments,void 0,(function*(e,t,n="파일 다운로드 중 오류가 발생했습니다.",i){const r=yield e.blob();let o="";const a=e.headers.get("Content-Disposition");if(a){const e=a.match(/filename\*=UTF-8''([^;]+)/i)||a.match(/filename="?([^;]+)"?/i);e&&e[1]&&(o=decodeURIComponent(e[1].replace(/['"]/g,"")))}if(i){const e=i.lastIndexOf("."),t=e>=0?i.slice(e).toLowerCase():"";(!o||t&&!o.toLowerCase().endsWith(t))&&(o=i)}if(!o)return v(t,n),!1;const s=window.URL.createObjectURL(r),l=document.createElement("a");return l.href=s,l.download=o,l.click(),window.URL.revokeObjectURL(s),!0}))},t.redirectToUserEdit=I,t.getKstToday=function(){const e=new Intl.DateTimeFormat("en-CA",{timeZone:"Asia/Seoul"}).format(new Date),[t,n,i]=e.split("-").map(Number);return new Date(t,n-1,i)},t.parseKstDate=function(e){const t=new Intl.DateTimeFormat("en-CA",{timeZone:"Asia/Seoul"}).format(new Date(`${e}T00:00:00+09:00`)),[n,i,r]=t.split("-").map(Number);return new Date(n,i-1,r)},t.isProSubscribed=A,t.setHeaderSubscribePlanBtn=function(){return i(this,void 0,void 0,(function*(){var e;const t=document.querySelector("header"),n=null!==(e=null==t?void 0:t.querySelector("#subscribeHeaderBtnWrapper"))&&void 0!==e?e:null==t?void 0:t.querySelector("span");if(!n)return;const i=document.createElement("button");i.id="btnSubscribeHeader",i.style.width="auto",i.style.marginRight="1rem",i.className="btn btn-subscribe-header",i.innerHTML='구독<span class="subscribe-suffix">하기</span>',i.onclick=()=>{window.location.href=h("auth_code")?"/subscribe":"/loginPage.cmd?appId=du"},h("auth_code")&&(yield A()).result&&(i.className="btn btn-pro-header",i.textContent="PRO",i.onclick=()=>I("du")),n.prepend(i)}))};const o=n(5835),a=n(9940),s=r(n(4654)),l=!0,u="assistant_share_id";function c(){if(window.location.pathname.startsWith("/mypage"))return"";const e=window.location.pathname.split("/").filter(Boolean);if(e.includes("company_report")){const t=e.indexOf("company_report");return t+2<e.length?e[t+2]:""}return e.length>=2?e[1]:""}function d(){return c()||sessionStorage.getItem(u)||""}function p(e){const t=d();return t?`${e}/${t}`:e}function h(e){const t=document.cookie.split(";").map((e=>e.trim()));for(const n of t){const[t,i]=n.split("=");if(t===e)return i}return""}function f(e){return new Intl.NumberFormat("en-US").format(e)}function g(e,t=!1,n=!0,i=!1){if("number"!=typeof e||isNaN(e)||0===e)return n?"- 원":"-";const r=e<0;let o="";
2const a=1e12,s=1e8,l=1e6,u=(e=Math.abs(e))>=1e10;return i&&(t&&e>=s?e=Math.round(e/s)*s:e>=l&&(e=Math.round(e/l)*l)),e>=a&&(o=f(Math.floor(e/a))+"조 ",e%=a),e>=s&&(o+=f(Math.floor(e/s))+"억 ",e%=s),t&&u||!(e>=l)||(o+=f(Math.floor(e/l))+"백만 "),o=""===o?f(e):o.trim(),n&&(o+="원"),r&&(o="-"+o),o}function m(e,t){const n=document.getElementById(e),i=null==n?void 0:n.cloneNode(!0);return i&&void 0!==i.id&&(i.id=t),i}function v(e,t){const n=m("alert-modal",e);n.querySelector(".modal-dialog").classList.add("modal-dialog-centered","modal-sm");const i=n.querySelector(".alert-content");i.innerHTML=t,i.classList.add("mb-0","text-center"),n&&new bootstrap.Modal(n).show()}function y(){var e;null===(e=document.querySelector("#btnAdmin"))||void 0===e||e.remove()}function x(e){e.dispatchAction({type:"showTip"})}function w(e){e.dispatchAction({type:"hideTip"})}function _(e){e.dispatchAction({type:"updateAxisPointer",axisPointer:{show:!0}})}function b(e){e.dispatchAction({type:"updateAxisPointer",axisPointer:{show:!1}})}function S(e){const t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#039;":"'","&nbsp;":" "};return e.replace(/&amp;|&lt;|&gt;|&quot;|&#039;|&nbsp;/g,(e=>t[e]))}function M(){return document.body.dataset.i18nLoading||"로딩 중"}function T(e,t,n=!1){const i=document.createElement("span");i.className="component-spinner-overlay",n&&i.classList.add("component-spinner-background");const r=document.createElement("span"),o=document.createElement("span"),a=document.createElement("span");return r.id="component-indicator-label",r.textContent=null!=t?t:M(),o.classList.add("d-flex"),o.id="component-indicator-progress",a.classList.add("spinner"),o.appendChild(a),i.appendChild(r),i.appendChild(o),"static"===getComputedStyle(e).position&&(e.style.position="relative"),e.appendChild(i),i.style.top="50%",i.style.left="50%",i}function C(e,t){t&&e.contains(t)&&e.removeChild(t)}function I(e){fetch(`${o.SERVER_ADDR}/auth/getEncUserInfo`,{method:"GET"}).then((e=>e.json())).then((t=>{const n=t.user_info,i=document.createElement("form");i.method="POST",i.action=`${o.SERVER_ADDR}/userEdit/?appId=${e}`;const r=document.createElement("input");r.type="hidden",r.name="appId",r.value=e,i.appendChild(r);const a=document.createElement("input");a.type="hidden",a.name="encryptInfo",a.value=n,i.appendChild(a),document.body.appendChild(i),i.submit()})).catch((e=>{window.location.href="/mypage/interests"}))}function A(){return i(this,void 0,void 0,(function*(){try{const e=yield fetch("/payment/plan_user_info",{method:"GET"});if(!e.ok)return{status:!1,result:!1};const t=yield e.json();return{status:null==t?void 0:t.status,result:t.result}}catch(e){return{status:!1,result:!1}}}))}t.PLAN_RESTRICTION_MESSAGE="해당 기능은 Pro 플랜 구독 시 이용할 수 있습니다"},2810:function(e,t,n){"use strict";var i,r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);
2r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),a=0;a<n.length;a++)"default"!==n[a]&&r(t,e,n[a]);return o(t,e),t}),s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getCorpStockInfo=S,t.setTrendStockSlider=function(){const e=document.getElementById("trendStockSwiperContainer"),t={pagination:!1,loop:!0,watchSlidesProgress:!0,loopAdditionalSlides:3,centeredSlides:!0,grabCursor:!0,autoplay:{delay:3e3,disableOnInteraction:!1},breakpoints:{0:{slidesPerView:3},[g]:{slidesPerView:5}}};Object.assign(e,t),e.initialize(),e.addEventListener("click",(t=>{var n;const i=t.target,r=null==i?void 0:i.closest("swiper-slide"),o=null==r?void 0:r.getAttribute("data-swiper-slide-index");if(!o)return;const a=parseInt(o);null===(n=e.swiper)||void 0===n||n.slideToLoop(a)}))},t.setTrendCorpSlider=function(){const e=document.getElementById("trendCorpSwiperContainer"),t=Math.floor(window.innerWidth)<g?"horizontal":"vertical",n={pagination:!1,loop:!0,watchSlidesProgress:!0,loopAdditionalSlides:3,centeredSlides:!0,grabCursor:!0,breakpoints:{0:{slidesPerView:3},[g]:{slidesPerView:5}},scrollbar:{el:".swiper-scrollbar",hide:!0},direction:t,mousewheel:"vertical"===t,on:{afterInit:e=>{var t,n,i;const r=null===(t=null==e?void 0:e.slides)||void 0===t?void 0:t[e.activeIndex],o=null===(i=null===(n=null==r?void 0:r.querySelector(".slot-item-container"))||void 0===n?void 0:n.dataset)||void 0===i?void 0:i.code;o&&I(o)},slideChangeTransitionEnd:e=>{var t,n,i;const r=null===(t=null==e?void 0:e.slides)||void 0===t?void 0:t[e.activeIndex],o=null===(i=null===(n=null==r?void 0:r.querySelector(".slot-item-container"))||void 0===n?void 0:n.dataset)||void 0===i?void 0:i.code;o&&I(o)}}};Object.assign(e,n),e.initialize(),e.addEventListener("click",(e=>{var t;const n=e.target,i=null==n?void 0:n.closest("swiper-slide");if(!i.classList.contains("swiper-slide-active"))return;const r=i.querySelector(".slot-item-container"),o=null===(t=null==r?void 0:r.dataset)||void 0===t?void 0:t.code;o&&(window.location.href=`/${o}`)}))},t.renderCorpStockInfoContainer=M,t.renderCorpStockChartContainer=T,t.setCorpStockData=C,t.renderCorpStockContainer=I,t.resetStockSwiperAutoplay=A,t.bindTrendCorpButtonEvents=function(){var e,t;const n=document.getElementById("trendCorpSwiperContainer").swiper;null===(e=document.getElementById("trendCorpSlidePrev"))||void 0===e||e.addEventListener("click",(()=>{null==n||n.slideNext(),A()})),null===(t=document.getElementById("trendCorpSlideNext"))||void 0===t||t.addEventListener("click",(()=>{null==n||n.slidePrev(),A()}))},t.bindTrendStockButtonEvents=function(){var e,t;const n=document.getElementById("trendStockSwiperContainer").swiper;null===(e=document.getElementById("trendStockSlidePrev"))||void 0===e||e.addEventListener("click",(()=>{null==n||n.slideNext(),A()})),null===(t=document.getElementById("trendStockSlideNext"))||void 0===t||t.addEventListener("click",(()=>{null==n||n.slidePrev(),A()}))},t.bindCorpStockChartHoverAutoplay=function(){const e=document.getElementById("trendStockSwiperContainer").swiper,t=document.getElementById("corpStockChartContainer");t&&e&&(t.addEventListener("mouseenter",(()=>{var t,n;try{null===(n=null===(t=e.autoplay)||void 0===t?void 0:t.stop)||void 0===n||n.call(t)}catch(e){}})),t.addEventListener("mouseleave",(()=>{var t,n;try{null===(n=null===(t=e.autoplay)||void 0===t?void 0:t.start)||void 0===n||n.call(t)}catch(e){}})))},t.linkTrendSwipersController=function(){const e=document.getElementById("trendStockSwiperContainer").swiper,t=document.getElementById("trendCorpSwiperContainer").swiper;e&&t&&(e.controller.control=t,t.controller.control=e)},t.renderTrendStock=function(){return s(this,void 0,void 0,(function*(){document.getElementById("trendStockSwiperContainer").innerHTML="";const e=document.getElementById("trendStockContainer");document.getElementById("trendCorpSwiperContainer").innerHTML="";const t=document.getElementById("trendCorpContainer");return(yield D())?(C(y.data),function(){const e=document.getElementById("trendCorpSwiperContainer"),t=document.getElementById("trendCorpContainer");new ResizeObserver((()=>{var t;const n=e.swiper,i=Math.floor(window.innerWidth)<g?"horizontal":"vertical";if(n&&n.params.direction!==i){n.params.mousewheel="vertical"===i,k(),n.changeDirection(i,!0);const e=document.getElementById("trendStockSwiperContainer");
2null===(t=null==e?void 0:e.swiper)||void 0===t||t.update()}})).observe(t)}(),!0):(e.classList.add("d-none"),t.classList.add("d-none"),!1)}))},t.applyTrendButtonDirectionStyles=k;const l=n(5835),u=a(n(803)),c=n(7148);n(3538);const d=n(4581),p=n(1966);(0,c.register)();const h=18e5,f=6e4,g=1180;let m="3m",v={},y={data:[],update_time:0};const x=document.getElementById("stockPriceChart"),w=u.init(x,null,{renderer:"canvas"}),_=document.getElementById("stockVolumeChart"),b=u.init(_,null,{renderer:"canvas"});function S(e){return s(this,arguments,void 0,(function*(e,t=m){try{const n=yield fetch(`${l.SERVER_ADDR}/stock_info/${e}?dt_range=${t}`,{method:"GET"});if(!n.ok)return null;const i=yield n.json();return 0===Object.keys(i.data).length||0===Object.keys(i.data.header).length?null:i}catch(e){return null}}))}function M(e){const t=v[e];(0,d.updateStockPriceDetails)(t.data),(0,d.updateCorpFinancialInfo)(t.data)}function T(e){const t=v[e],n=(0,d.getUnifiedRightMargin)(t.data),i=(0,d.getUnifiedLeftMargin)(t.data)+n/2,r=(0,d.genPriceChartOption)(t.data,i,n,m);w.setOption(r);const o=(0,d.genVolumeChartOption)(t.data,i,n,m);b.setOption(o),u.connect([w,b]);const a=x.querySelector("canvas"),s=_.querySelector("canvas"),l=[w,b],c=[a,s];(0,p.hideIndicatorsOnMultipleCharts)(l,c,!0,!0)}function C(e){const t=document.getElementById("trendStockSwiperContainer"),n=document.getElementById("trendCorpSwiperContainer");e.forEach(((e,i)=>{v[e.dart_corp_code]={corpInfo:{corpName:e.corp_name,stockCode:e.stock_code},data:{}},function(e,t){const n=document.createElement("swiper-slide");n.className="trend-stock-item",n.setAttribute("data-code",t.dart_corp_code);const i=document.createElement("div");i.className="w-100 h-100 px-5 d-flex align-items-center",i.setAttribute("data-code",t.dart_corp_code);const r=Number(t.previous_day_diff||0),o=r>0,a=r<0,s=o?"stock-price-up":a?"stock-price-down":"",l=s,u=o?'<i class="bi bi-caret-up-fill ms-1 stock-price-up"></i>':a?'<i class="bi bi-caret-down-fill ms-1 stock-price-down"></i>':'<i class="bi bi-dot text-secondary ms-1"></i>',c=t.previous_day_rate?`${t.previous_day_rate}%`:"-";i.innerHTML=`\n        <div class="w-100 swiper-item-link">\n            <div class="stock-price-corpnm">\n                <span>${t.corp_name}</span>\n                <a href="/${t.dart_corp_code}" class="text-decoration-none" target="_blank">\n                    <i class="bi bi-box-arrow-up-right text-muted"></i>\n                </a>\n            </div>\n            <div class="stock-price-info">\n                <div class="${s}">${Number(t.current_price).toLocaleString("ko-KR")}</div>\n                <div class="stock-price-change">\n                    ${u}\n                    <span class="ms-1 ${l}">${c}</span>\n                </div>\n            </div>\n            <div class="stock-price-refdt">${t.reference_dt}</div>\n        </div>\n    `,n.appendChild(i),e.appendChild(n)}(t,e),function(e,t){const n=document.createElement("swiper-slide");n.className="trend-corp-item",n.setAttribute("data-code",t.dart_corp_code);const i=document.createElement("div");i.className="slot-item-container",i.setAttribute("data-code",t.dart_corp_code),i.innerHTML=`\n        <div class="slot-item">\n            <div class="slot-item-nm" title="${t.corp_name}">${t.corp_name}</div>\n            <div class='slot-item-sc'>${t.stock_code}</div>\n        </div>\n    `,n.appendChild(i),e.appendChild(n)}(n,e)}))}function I(e){return s(this,void 0,void 0,(function*(){const t=function(e){return s(this,void 0,void 0,(function*(){const t=y.data.find((t=>t.dart_corp_code===e)),n=0===y.data.length||!t||t.is_stale,i=Date.now()-y.update_time>f;if(n&&i&&!(yield D()))return;const r=y.data;if(!r)return;const o=document.getElementById("trendStockSwiperContainer");if(!o)return;const a=o.querySelector(`swiper-slide[data-code="${e}"]`);if(!a)return;const s=r.find((t=>t.dart_corp_code===e));if(!s)return;const l=parseInt(s.current_price||"0"),u=parseFloat(s.previous_day_diff||"0"),c=s.previous_day_rate?`${parseFloat(s.previous_day_rate)}%`:"-",d=s.reference_dt||"",p=u>0?"stock-price-up":u<0?"stock-price-down":"",h=u>0?"bi-caret-up-fill":u<0?"bi-caret-down-fill":"bi-dot text-secondary",g=a.querySelector(".swiper-item-link");if(!g)return;const m=g.querySelectorAll("div")[1],v=m.children[0];
2v.textContent=l.toLocaleString("ko-KR"),v.className=p;const x=m.querySelector("i");x.className=`bi ${h} ${p} ms-1`;const w=x.nextElementSibling;w.textContent=c,w.className=`ms-1 ${p}`,g.querySelector(".stock-price-refdt").textContent=d}))}(e),n=function(e){return s(this,void 0,void 0,(function*(){if(!(Object.keys(v[e].data).length>0&&Date.now()-v[e].update_time<=h)){!function(){const e=document.getElementById("chartBlurOverlay"),t=document.getElementById("corpStockChartSpinner");e&&e.classList.remove("d-none"),t&&t.classList.remove("d-none");const n=document.getElementById("corpShortcutLink");n&&(n.href="#",n.textContent="바로가기 ▶")}();try{const t=yield S(e,m);v[e].update_time=Date.now(),v[e].data=t}finally{!function(){const e=document.getElementById("chartBlurOverlay"),t=document.getElementById("corpStockChartSpinner");e&&e.classList.add("d-none"),t&&t.classList.add("d-none")}()}}M(e),T(e)}))}(e),i=document.getElementById("corpShortcutLink"),r=v[e].corpInfo.corpName;i&&(i.href=`/${e}`,i.textContent=`${r} 바로가기 ▶`),yield Promise.all([t,n])}))}function A(){const e=document.getElementById("trendStockSwiperContainer").swiper;(null==e?void 0:e.autoplay)&&(e.autoplay.stop(),e.autoplay.start())}function D(){return s(this,void 0,void 0,(function*(){try{const e=yield fetch(`${l.SERVER_ADDR}/trend_stock`).then((e=>{if(!e.ok)throw new Error(`Request failed with status ${e.status}: ${e.statusText}`);return e.json()}));return 0!=Object.keys(e).length&&null!=e.data&&0!=e.data.length&&(y.data=e.data,y.update_time=Date.now(),!0)}catch(e){return!1}}))}function k(){const e=window.innerWidth<g,t=document.querySelector("#trendCorpSlidePrev i"),n=document.querySelector("#trendCorpSlideNext i");t&&n&&(e?(t.className="bi bi-chevron-left fs-4",n.className="bi bi-chevron-right fs-4"):(t.className="bi bi-chevron-up fs-4",n.className="bi bi-chevron-down fs-4"))}new ResizeObserver((e=>{for(const t of e)w.resize()})).observe(x),new ResizeObserver((e=>{for(const t of e)b.resize()})).observe(_)},3011:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCrI18n=function(e){if(null===i)try{i=JSON.parse(document.body.dataset.crI18n||"{}")}catch(e){i={}}return i&&i[e]||n[e]||e};const n={revenue:"매출",revenueAmount:"매출액",operatingIncome:"영업이익",netIncome:"당기순이익",deficitExpand:"적자확대",deficitContinue:"적자지속",deficitShrink:"적자축소",turnToProfit:"흑자전환",turnToDeficit:"적자전환",profitExpand:"흑자확대",profitContinue:"흑자지속",profitShrink:"흑자축소",asOf:"기준",compareTo:"대비",loadingRevenue:"매출 데이터를 불러오는 중입니다.",loadingOperatingIncome:"영업이익 데이터를 불러오는 중입니다.",loadingNetIncome:"당기순이익 데이터를 불러오는 중입니다.",loadingForecasts:"재무지표 예측 추이 데이터를 불러오는 중입니다.",debtToEquityRatio:"부채비율",currentRatio:"유동비율",quickRatio:"당좌비율",interestCoverageRatio:"이자보상비율",reserveRatio:"유보율",financialHealthChartName:"건전성 지표",loadingFinancialHealth:"기업 건전성 지표를 불러오는 중입니다.",won:"원",times:"배",shares:"주",stockPrice:"주가",high:"최고가",low:"최저가",candlestick:"봉차트",openPrice:"시가",closePrice:"종가",highPrice:"고가",lowPrice:"저가",volume:"거래량",noStockDataSeries:"주식 데이터 없음",noDataFound:"조회된 데이터가 없습니다.",noVolumeDataSeries:"거래량 데이터 없음",loadingStockPrice:"주가 데이터를 불러오는 중입니다.",category:"구분",stockType:"주식의 종류",faceValue:"액면가",totalCashDividend:"현금배당금총액(백만원)",totalStockDividend:"주식배당금총액(백만원)",payoutRatio:"현금배당성향(%)",cashDividendYield:"현금배당수익률(%)",stockDividendYield:"주식배당수익률(%)",perCashDividend:"주당 현금배당금(원)",perStockDividend:"주당 주식배당(주)",commonStock:"보통주",preferredStock:"우선주",other:"기타",commonStockRatio:"보통주 비율",shareholder
2Name:"주주명",ratio:"비율",quantity:"수량",loadingShareholders:"주주 정보를 불러오는 중입니다.",name:"이름",position:"직책",tenure:"재직 기간",birthMonth:"출생 연월",duty:"담당 업무",loadingExecutives:"경영인 목록을 불러오는 중입니다.",proPlanDisclosureMessage:'해당 기능은 Pro 플랜 구독 시 이용할 수 있습니다.<br><small class="text-muted">현재는 과거 공시 보고서 엑셀만 저장 가능합니다.</small>',reportTitle:"보고서",filer:"제출인",receiptDate:"접수일자",sort:"정렬",loadingDisclosure:"공시 정보를 불러오는 중입니다.",noDisclosureContent:"확인할 수 있는 공시 내용이 없습니다.",tableDataAnalysis:"표 데이터 분석",aiDisclosureSummary:"AI 공시 보고서 요약",excelDownload:"엑셀 다운로드",tocOpen:"목차 열기",tocClose:"목차 닫기",noDataProvided:"제공할 데이터가 없습니다.",imagePreparing:"이미지를 준비중입니다.",downloading:"다운로드 중",downloadError:"파일 다운로드 중 오류가 발생했습니다.",summary:"요약",loadingIndustry:"산업군 추이를 불러오는 중입니다.",industryRevenueInfo:"산업군 매출 정보",salesTotal:"매출액 합계",headquarters:"대표회사(지주회사)",affiliates:"계열사",subsidiaries:"자회사",competitors:"경쟁사",affiliatesAndSubsidiaries:"계열사 및 자회사",shareholderRelated:"주주 관계사",loadingRelated:"연관 기업 데이터를 불러오는 중입니다.",positive:"긍정",negative:"부정",neutral:"중립",exposure:"노출수",news:"뉴스",bbs:"종목게시판",analysis:"분석",aiAnalysisDisclaimer:"※ 생성형 AI로 분석한 결과로 사용 시 충분히 검토 바랍니다.",loadingNewsSentiment:"뉴스 긍부정 추이를 불러오는 중입니다.",loadingBbsSentiment:"종목 게시판 긍부정 추이를 불러오는 중입니다.",loadingFollowUpQuestions:"이어서 확인할 사항을 찾고 있습니다"};let i=null},3538:(e,t,n)=>{"use strict";n.r(t)},4581:function(e,t,n){"use strict";var i,r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);
2r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),a=0;a<n.length;a++)"default"!==n[a]&&r(t,e,n[a]);return o(t,e),t}),s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getStockHistoryData=w,t.getUnifiedLeftMargin=b,t.getUnifiedRightMargin=S,t.genPriceChartOption=C,t.genCandlestickChartOption=I,t.genVolumeChartOption=A,t.updateStockPriceDetails=k,t.updateCorpFinancialInfo=function(e){const t=e.data.financial,n=document.getElementById("revenue"),i=document.getElementById("operatingIncomeLoss"),r=document.getElementById("operatingIncomeRate"),o=document.getElementById("revenueDt"),a=document.getElementById("operatingIncomeLossDt"),s=document.getElementById("operatingIncomeRateDt");let l="";if(t.header){const[e,n]=t.header;l=`${e}년 ${n}분기 기준`}t.revenue?(n.textContent=(0,c.formatByCurrency)(t.revenue.amount,t.revenue.currency,!0,!1),o&&(o.classList.remove("d-none"),o.textContent=l)):(n.textContent="-",o&&o.classList.add("d-none")),t.operating_income?(i.textContent=(0,c.formatByCurrency)(t.operating_income.amount,t.operating_income.currency,!0,!1),a&&(a.classList.remove("d-none"),a.textContent=l)):(i.textContent="-",a&&a.classList.add("d-none")),t.operating_income_rate?(r.textContent=`${t.operating_income_rate}%`,s&&(s.classList.remove("d-none"),s.textContent=l)):(r.textContent="-",s&&s.classList.add("d-none"))},t.renderStockHistory=function(){return s(this,void 0,void 0,(function*(){(yield function(){return s(this,void 0,void 0,(function*(){const e=yield fetch(`${u.SERVER_ADDR}/company_report/check_market_open`,{method:"GET"});return!!e.ok&&(yield e.json()).data}))}())||(document.getElementById("stock1d").disabled=!0),"1y"==h&&function(){const e=l.getInstanceByDom(f);e&&e.dispose(),m=l.init(f,null,{renderer:"canvas"});const t=l.getInstanceByDom(g);t&&t.dispose(),v=l.init(g,null,{renderer:"canvas"}),y=new ResizeObserver((e=>{for(const t of e)m.resize()})),y.observe(f),x=new ResizeObserver((e=>{for(const t of e)v.resize()})),x.observe(g)}();const e=document.getElementById("stockChartTypeToggle").classList.contains("active"),t=yield L(e?"candle":"line");return null===t&&(0,c.resizeTargetComponentRow)("stockHistory"),function(){const e={stock1d:"1d",stock1m:"1m",stock3m:"3m",stock1y:"1y",stock3y:"3y"},t=Object.keys(e).map((e=>document.getElementById(e))),n=document.getElementById("stockChartTypeToggle");t.forEach((i=>{i.addEventListener("click",(function(){h=e[i.id],D(t,i.id),"1y"!=h&&"3y"!=h||n.classList.remove("active"),L(n.classList.contains("active")?"candle":"line")}))}))}(),function(){const e=["stock1d","stock1m","stock3m","stock1y","stock3y"].map((e=>document.getElementById(e))),t=document.getElementById("stockChartTypeToggle");t.addEventListener("click",(()=>{const n=t.classList.contains("active"),i=n?"line":"candle";n?t.classList.remove("active"):t.classList.add("active"),"1y"!==h&&"3y"!==h||(h="3m",D(e,"stock3m")),L(i)}))}(),t}))},t.rerenderStockHistory=function(){return s(this,void 0,void 0,(function*(){const e=document.getElementById("stockChartTypeToggle").classList.contains("active"),t=yield L(e?"candle":"line");return null===t&&(0,c.resizeTargetComponentRow)("stockHistory"),t}))};const l=a(n(803)),u=n(5835),c=n(1966),d=n(3011),p={5:"#00c50d",20:"#ff333a",60:"#f48416",120:"#892dff"};let h="1y";const f=document.getElementById("stockPriceChart"),g=document.getElementById("stockVolumeChart");let m,v,y,x;function w(e){return s(this,arguments,void 0,(function*(e,t=h){try{const n=yield fetch(`${u.SERVER_ADDR}/company_report/stock_history/${e}?dt_range=${t}`,{method:"GET"});if(!n.ok)return null;const i=yield n.json();return 0===Object.keys(i.data).length||0===Object.keys(i.data.header).length?null:i}catch(e){return null}}))}function _(e,t=13){return e.length*t*.6}function b(e){const t=e.data.header,n=t.map((t=>e.data.stock_price[t].price)),i=t.map((t=>e.data.stock_price[t].volume)),r=_([...n.map((e=>
2`${e.toLocaleString()}${(0,d.getCrI18n)("won")}`)),...i.map((e=>e<1e4?e.toString():(0,c.numberToKoreanUnits)(e)))].reduce(((e,t)=>e.length>t.length?e:t),""));return Math.ceil(r+10)}function S(e){const t=e.data.header;if(!t.length)return 20;const n=_(t[t.length-1]);return Math.ceil(n/2)}function M(e){const t=[],n=new Date((new Date).toLocaleString("en-US",{timeZone:"Asia/Seoul"})),i=new Date(n);i.setFullYear(n.getFullYear()-1);let r=n;const o=[...e].sort();e.length>0&&(r=new Date(o[0]));const a=new Date(i);for(;a<r;){const e=a.getFullYear(),n=String(a.getMonth()+1).padStart(2,"0"),i=String(a.getDate()).padStart(2,"0");t.push(`${e}-${n}-${i}`),a.setDate(a.getDate()+1)}return t.push(...o),t}function T(e){const t=Math.min(...e),n=Math.max(...e),i=Math.pow(10,Math.floor(Math.log10(Math.abs(t)||1))),r=t-.01*i,o=n+.01*Math.pow(10,Math.floor(Math.log10(Math.abs(n)||1)));let a=Math.round((o-r)/5);return 0===a&&(a=Math.max(1,Math.round(.1*i))),{min:r,max:o,interval:a}}function C(e,t,n,i=h){const r=e.data.header,o=r.map((t=>e.data.stock_price[t].price)),{min:a,max:s,interval:u}=T(o),c=o[o.length-1]>o[0]?"#F58191":"#4A99F3";let p=[],f=[];"1y"===i?(p=M(r),f=p.map((t=>r.includes(t)?e.data.stock_price[t].price:0))):(p=r,f=o);const g=Math.max(...o),m=Math.min(...o),v=f.indexOf(g),y=f.indexOf(m);return{grid:{top:"40px",left:t,right:n,bottom:"10%"},xAxis:{type:"category",data:["",...p,""],axisLabel:{show:!1},boundaryGap:!1,splitLine:{show:!0,lineStyle:{type:"line",color:"#e0e0e0",width:1}}},yAxis:[{type:"value",min:a,max:s,interval:u,axisLabel:{formatter:e=>{const t=Math.round(e);return 0===t?"0"+(0,d.getCrI18n)("won"):t.toLocaleString()+(0,d.getCrI18n)("won")}}}],series:[{name:(0,d.getCrI18n)("stockPrice"),type:"line",showSymbol:!1,data:[null,...f,null],smooth:!0,connectNulls:!0,color:c,lineStyle:{width:2},areaStyle:{color:new l.graphic.LinearGradient(0,0,0,1,[{offset:0,color:c+"CC"},{offset:1,color:c+"00"}])},yAxisIndex:0,markPoint:{data:[{name:(0,d.getCrI18n)("high"),symbol:"circle",symbolSize:10,itemStyle:{color:"red"},label:{color:"red",formatter:function(){return`${(0,d.getCrI18n)("high")}: ${g.toLocaleString()}`},position:"top"},coord:[p[v],g]},{name:(0,d.getCrI18n)("low"),symbol:"circle",symbolSize:10,itemStyle:{color:"blue"},label:{color:"blue",formatter:function(){return`${(0,d.getCrI18n)("low")}: ${m.toLocaleString()}`},position:"top"},coord:[p[y],m]}]}}],tooltip:{trigger:"axis",confine:!0,formatter:function(e){var t;if(null==(null===(t=e[0])||void 0===t?void 0:t.data))return"";let n=`<div class="text-start">${e[0].axisValue}</div>`;n+="<div>";for(let t=0;t<e.length;t++){const i=e[t];n+=`<div class="d-flex justify-content-between gap-2">\n                                        <span>${i.marker}${i.seriesName}</span>\n                                        <span><strong>${null!=i.value&&""!==i.value?i.value.toLocaleString():"-"}</strong></span>\n                                    </div>`}return n+="</div>",n}},media:[{query:{maxWidth:450},option:{grid:{top:"60px"}}}]}}function I(e,t,n){const i=(0,d.getCrI18n)("candlestick"),r=e.data.header,o=r.map((t=>{const n=e.data.stock_price[t];return n&&null!=n.opening_price&&null!=n.price&&null!=n.lowest_price&&null!=n.highest_price?[n.opening_price,n.price,n.lowest_price,n.highest_price]:[]})),a=r.map((t=>e.data.stock_price[t].highest_price)),s=r.map((t=>e.data.stock_price[t].lowest_price)),{min:l,max:u,interval:c}=T([...a,...s]),f=a.indexOf(u),g=s.indexOf(l);let m=[];return["1m","3m","1y","3y"].includes(h)&&(m=[5,20,60,120].map((t=>function(e,t,n){const i=e.map((e=>{const i=t[e];return i&&null!=i[`${n}d`]?i[`${n}d`]:null}));return i.some((e=>null!==e))?{name:`${n}일선`,type:"line",showSymbol:!1,data:[null,...i,null],smooth:!0,color:p[n],lineStyle:{width:1.5},yAxisIndex:0}:null}(r,e.data.stock_price,t))).filter((e=>null!==e))),{grid:{top:"40px",left:t,right:n,bottom:"10%"},xAxis:{type:"category",data:["",...r,""],axisLabel:{show:!1},boundaryGap:!1,splitLine:{show:!0,lineStyle:{type:"line",color:"#e0e0e0",width:1}}},yAxis:[{type:"value",min:l,max:u,interval:c,axisLabel:{formatter:e=>{const t=Math.round(e);
2return 0===t?"0"+(0,d.getCrI18n)("won"):t.toLocaleString()+(0,d.getCrI18n)("won")}}}],series:[{name:i,type:"candlestick",data:[[],...o,[]],itemStyle:{color:"#F58191",color0:"#4A99F3",borderColor:"#F58191",borderColor0:"#4A99F3"},yAxisIndex:0,markPoint:{data:[{type:"max",name:(0,d.getCrI18n)("high"),symbol:"circle",symbolSize:10,itemStyle:{color:"red"},label:{color:"red",formatter:function(e){return`${e.name}: ${e.value.toLocaleString()}`},position:"top"},xAxis:r[f],yAxis:u,valueDim:"highest"},{type:"min",name:(0,d.getCrI18n)("low"),symbol:"circle",symbolSize:10,itemStyle:{color:"blue"},label:{color:"blue",formatter:function(e){return`${e.name}: ${e.value.toLocaleString()}`},position:"top"},xAxis:r[g],yAxis:l,valueDim:"lowest"}]}},...m],tooltip:{trigger:"axis",confine:!0,formatter:function(e){var t;if(null==(null===(t=e[0])||void 0===t?void 0:t.data))return"";let n=`<div class="text-start">${e[0].axisValue}</div>`;n+="<div>";for(let t=0;t<e.length;t++){const r=e[t],o=r.marker,a='<span class="tooltip-marker" style="background-color:#ffffff; border:0;"></span>',s=r.seriesName;if(s===i)if(Array.isArray(r.data)&&r.data.length>=4){const[e,t,i,s,l]=r.data,u=null!=t&&""!==t?t.toLocaleString():"-";n+=`<div class="tooltip-stock-marker">\n                                                <span>${o}${(0,d.getCrI18n)("openPrice")}</span>\n                                                <span><strong>${u}</strong></span>\n                                            </div>`;const c=null!=i&&""!==i?i.toLocaleString():"-";n+=`<div class="tooltip-stock-marker">\n                                                <span>${a}${(0,d.getCrI18n)("closePrice")}</span>\n                                                <span><strong>${c}</strong></span>\n                                            </div>`;const p=null!=l&&""!==l?l.toLocaleString():"-";n+=`<div class="tooltip-stock-marker">\n                                                <span>${a}${(0,d.getCrI18n)("highPrice")}</span>\n                                                <span><strong>${p}</strong></span>\n                                            </div>`;const h=null!=s&&""!==s?s.toLocaleString():"-";n+=`<div class="tooltip-stock-marker">\n                                                <span>${a}${(0,d.getCrI18n)("lowPrice")}</span>\n                                                <span><strong>${h}</strong></span>\n                                            </div>`}else n+=`<div class="tooltip-stock-marker">\n                                                <span>${o}${(0,d.getCrI18n)("openPrice")}</span>\n                                                <span><strong>-</strong></span>\n                                            </div>`,n+=`<div class="tooltip-stock-marker">\n                                                <span>${a}${(0,d.getCrI18n)("closePrice")}</span>\n                                                <span><strong>-</strong></span>\n                                            </div>`,n+=`<div class="tooltip-stock-marker">\n                                                <span>${a}${(0,d.getCrI18n)("highPrice")}</span>\n                                                <span><strong>-</strong></span>\n                                            </div>`,n+=`<div class="tooltip-stock-marker">\n                                                <span>${a}${(0,d.getCrI18n)("lowPrice")}</span>\n                                                <span><strong>-</strong></span>\n                                            </div>`;else n+=`<div class="tooltip-stock-marker">\n                                            <span>${o}${s}</span>\n                                            <span><strong>${null!=r.value&&""!==r.value?r.value.toLocaleString():"-"}</strong></span>\n                                        </div>`}return n+="</div>",n}},media:[{query:{maxWidth:450},option:{grid:{top:"60px"}}}]}}function A(e,t,n,i=h){const r=e.data.header,o=r.map((t=>e.data.stock_price[t].volume));let a=[],s=[];"1y"===i?(a=M(r),s=a.map((t=>r.includes(t)?e.data.stock_price[t].volume:0))):(a=r,s=o);const l=["#999999"];for(let e=1;e<s.length;e++)s[e]>s[e-1]?l.push("#F58191"):s[e]<s[e-1]?l.push("#4A99F3"):l.push("#999999");return l.unshift("#999999"),{grid:{top:"10px",left:t,right:n,bottom:"32px"},xAxis:{type:"category",data:["",...a,""],boundaryGap:!1,splitLine:{show:!0,lineStyle:{type:"line",color:"#e0e0e0",width:1}}},yAxis:[{type:"value",splitNumber:2,axisLabel:{formatter:e=>e<1e4?e:(0,c.numberToKoreanUnits)(e)}}],series:[{name:(0,d.getCrI18n)("volume"),type:"bar",data:[null,...s,null],itemStyle:{color:function(e){return l[e.dataIndex]}},yAxisIndex:0}],tooltip:{trigger:"axis",confine:!0,formatter:function(e){var t;if(null==(null===(t=e[0])||void 0===t?void 0:t.data))return"";let n=`<div class="text-start">${e[0].axisValue}</div>`;n+='<div style="display: flex; justify-content: space-between; gap: 8px;">';for(let t=0;t<e.length;t++){const i=e[t];n+=`<span>${i.marker}${i.seriesName}</span>
2\n                                    <span><strong>${null!=i.value&&""!==i.value?i.value.toLocaleString():"-"}</strong></span>`}return n+="</div>",n}}}}function D(e,t){e.forEach((e=>{e.id===t?e.classList.add("synap-btn-emphasize"):e.classList.remove("synap-btn-emphasize")}))}function k(e){const t=e.data.detail,n=document.getElementById("stockReferenceDt"),i=document.getElementById("currentPrice"),r=document.getElementById("previousClosingPrice"),o=document.getElementById("openingPrice"),a=document.getElementById("highestPrice"),s=document.getElementById("lowestPrice"),l=document.getElementById("tradeVolume"),u=document.getElementById("tradeValue"),p=document.getElementById("htsAvls"),h=document.getElementById("lstnStcn"),f=document.getElementById("frgnHldnQty"),g=document.getElementById("stock52WeekHigh"),m=document.getElementById("stock52WeekLow"),v=document.getElementById("stockPer"),y=document.getElementById("stockEps"),x=document.getElementById("stockPbr"),w=document.getElementById("stockBps"),_=document.getElementById("previousDayRate"),b=document.getElementById("previousDayDiff"),S=document.getElementById("previousDayRatePercentage"),M=document.getElementById("rateIcon"),T=parseInt(t.current_price),C=parseInt(t.previous_closing_price),I=parseInt(t.opening_price),A=parseInt(t.highest_price),D=parseInt(t.lowest_price),k=parseInt(t.trade_volume),L=parseInt(t.trade_value),E=parseInt(t.hts_avls),P=parseInt(t.lstn_stcn),O=parseInt(t.frgn_hldn_qty),R=parseInt(t.w52_hgpr),N=parseInt(t.w52_lwpr),z=parseFloat(t.per),B=isNaN(z)||z<0?"N/A":t.per+(0,d.getCrI18n)("times"),V=(0,c.formatToKoreanCurrency)(parseInt(t.eps),!1,!0),F=parseFloat(t.pbr),G=isNaN(F)||F<0?"N/A":t.pbr+(0,d.getCrI18n)("times"),H=(0,c.formatToKoreanCurrency)(parseInt(t.bps),!1,!0),W=parseInt(t.previous_day_diff),j=t.previous_day_rate;n&&(n.textContent=e.info_update_dt),i.textContent=T.toLocaleString(),r.textContent=C?C.toLocaleString():"-",o.textContent=I?I.toLocaleString():"-",a.textContent=A?A.toLocaleString():"-",s.textContent=D?D.toLocaleString():"-",l.textContent=k?k.toLocaleString()+(0,d.getCrI18n)("shares"):"-",u.textContent=(0,c.formatToMillionKoreanCurrency)(L,!1),p&&(p.textContent=(0,c.formatToKoreanCurrency)(E,!0,!1)),h&&(h.textContent=P.toLocaleString()),f&&(f.textContent=O.toLocaleString()),g&&(g.textContent=R.toLocaleString()),m&&(m.textContent=N.toLocaleString()),v&&(v.textContent=B.toLocaleString()),y&&(y.textContent=V.toLocaleString()),x&&(x.textContent=G.toLocaleString()),w&&(w.textContent=H.toLocaleString()),b.textContent=W?(new Intl.NumberFormat).format(Math.abs(W)):"-",S.textContent=j?`${j}%`:"-";const $="stock-price-up",Y="stock-price-down",X="bi-caret-up-fill",q="bi-caret-down-fill";function U(e,t,n){e.classList.remove($,Y),t>n?e.classList.add($):t<n&&e.classList.add(Y)}M.classList.remove(X,q),_.classList.remove($,Y),i.classList.remove($,Y),W>0?(M.classList.add(X),_.classList.add($),i.classList.add($)):W<0&&(M.classList.add(q),_.classList.add(Y),i.classList.add(Y)),U(o,I,C),U(a,A,C),U(s,D,C)}function L(){return s(this,arguments,void 0,(function*(e="line"){const t=document.getElementById("corpStockChartContainer"),n=(document.getElementById("stockHistoryUpdateDt"),(0,c.showComponentSpinner)(t,(0,d.getCrI18n)("loadingStockPrice")));let i=null;try{const t=(0,c.getCorpCodeFromURL)();if(i=yield w(t),null==i){const e=60,t=40,n=function(e,t){return{grid:{top:"40px",left:e,right:t,bottom:"10%"},xAxis:{type:"category",data:[""],axisLabel:{show:!1},splitLine:{show:!1}},yAxis:[{type:"value",axisLabel:{show:!1},splitLine:{show:!1}}],series:[{name:(0,d.getCrI18n)("noStockDataSeries"),type:"line",data:[null]}],graphic:[{type:"text",left:"center",top:"middle",style:{text:(0,d.getCrI18n)("noDataFound"),fontSize:14,fontFamily:"sans-serif",fill:"#999999"}}]}}(e,t);m.setOption(n,{notMerge:!0});const i=function(e,t){return{grid:{top:"10px",left:e,right:t,bottom:"32px"},xAxis:{type:"category",data:[""],axisLabel:{show:!1},splitLine:{show:!1}},yAxis:[{type:"value",axisLabel:{show:!1},splitLine:{show:!1}}],series:[{name:(0,d.getCrI18n)("noVolumeDataSeries"),type:"bar",data:[null]}],graphic:[{type:"text",left:"center",top:"middle",style:{text:"",fontSize:14,fontFamily:"sans-serif",fill:"#999999"}}]}}(e,t);return v.setOption(i),null}k(i);const n=S(i),r=b(i)+n/2,o="candle"===e?I(i,r,n):C(i,r,n);m.setOption(o,{notMerge:!0});const a=A(i,r,n);v.setOption(a),l.connect([m,v]);const s=f.querySelector("canvas"),u=g.querySelector("canvas"),p=[m,v],h=[s,u];(0,c.hideIndicatorsOnMultipleCharts)(p,h,!0,!0)}finally{return(0,c.hideComponentSpinner)(t,n),i}}))}},4654:e=>{"use strict";e.exports=JSON.parse('{"kakao_api_key":"36c0075820ef2d23998d287f9f9398f2","delete_model_changing_btn":true,"use_spell_check":true,"show_admin_btn":true,"uxui_test_mode":false,"use_i18n":false}')},4692:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},u=o.push,c=o.indexOf,d={},p=d.toString,h=d.hasOwnProperty,f=h.toString,g=f.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window}
vendor: 26,274 bytes, line 2
2,x=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var i,r,o=(n=n||x).createElement("script");if(o.text=e,t)for(i in w)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[p.call(e)]||"object":typeof e}var S="3.7.1",M=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function I(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:S,constructor:T,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},T.extend=T.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&a!==i&&(u&&i&&(T.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[t],o=r&&!Array.isArray(n)?[]:r||T.isPlainObject(n)?n:{},r=!1,a[t]=T.extend(u,o,i)):void 0!==i&&(a[t]=i));return a},T.extend({expando:"jQuery"+(S+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e)||(t=a(e))&&("function"!=typeof(n=h.call(t,"constructor")&&t.constructor)||f.call(n)!==g))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){_(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(C(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,r=e.nodeType;if(!r)for(;t=e[i++];)n+=T.text(t);return 1===r||11===r?e.textContent:9===r?e.documentElement.textContent:3===r||4===r?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?T.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!M.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!==a&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,a=[];if(C(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&a.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&a.push(r);return l(a)},guid:1,support:m}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=o[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var A=o.pop,D=o.sort,k=o.splice,L="[\\x20\\t\\r\\n\\f]",E=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g");T.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var P=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function O(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}T.escapeSelector=function(e){return(e+"").replace(P,O)};var R=x,N=u;!function(){var e,t,n,r,a,l,u,d,p,f,g=N,v=T.expando,y=0,x=0,w=ee(),_=ee(),b=ee(),S=ee(),M=function(e,t){return e===t&&(a=!0),0},C="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",O="\\["+L+"*("+P+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+L+"*\\]",z=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",B=new RegExp(L+"+","g"),V=new RegExp("^"+L+"*,"+L+"*"),F=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),G=new RegExp(L+"|>"),H=new RegExp(z),W=new RegExp("^"+P+"$"),j={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,q=/[+~]/,U=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),Z=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},K=function(){le()},J=pe((function(e){return!0===e.disabled&&I(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=s.call(R.childNodes),R.childNodes),o[R.childNodes.length].nodeType}catch(e){g={apply:function(e,t){N.apply(e,s.call(t))},call:function(e){N.apply(e,s.call(arguments,1))}}}function Q(e,t,n,i){var r,o,a,s,u,c,h,f=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!i&&(le(t),t=t||l,d)){if(11!==y&&(u=X.exec(e)))if(r=u[1]){if(9===y){if(!(a=t.getElementById(r)))return n;if(a.id===r)return g.call(n,a),n}else if(f&&(a=f.getElementById(r))&&Q.contains(t,a)&&a.id===r)return g.call(n,a),n}else{if(u[2])return g.apply(n,t.getElementsByTagName(e)),n;if((r=u[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(r)),n}if(!(S[e+" "]||p&&p.test(e))){if(h=e,f=t,1===y&&(G.test(e)||F.test(e))){for((f=q.test(e)&&se(t.parentNode)||t)==t&&m.scope||((s=t.getAttribute("id"))?s=T.escapeSelector(s):t.setAttribute("id",s=v)),o=(c=ce(e)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+de(c[o]);h=c.join(",")}try{return g.apply(n,f.querySelectorAll(h)),n}catch(t){S(e,!0)}finally{s===v&&t.removeAttribute("id")}}}return ye(e.replace(E,"$1"),t,n,i)}function ee(){var e=[];return function n(i,r){return e.push(i+" ")>t.cacheLength&&delete n[e.shift()],n[i+" "]=r}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return I(t,"input")&&t.type===e}}function re(e){return function(t){return(I(t,"input")||I(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&J(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,i=e?e.ownerDocument||e:R;return i!=l&&9===i.nodeType&&i.documentElement?(u=(l=i).documentElement,d=!T.isXMLDoc(l),f=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&R!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",K),m.getById=ne((function(e){return u.appendChild(e).id=T.expando,!l.getElementsByName||!l.getElementsByName(T.expando).length})),m.disconnectedMatch=ne((function(e){return f.call(e,"*")})),m.scope=ne((function(){return l.querySelectorAll(":scope")})),m.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),m.getById?(t.filter.ID=function(e){var t=e.replace(U,Z);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(U,Z);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},p=[],ne((function(e){var t;u.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||p.push("\\["+L+"*(?:value|"+C+")"),e.querySelectorAll("[id~="+v+"-]").length||p.push("~="),e.querySelectorAll("a#"+v+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll(":checked").length||p.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),u.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")")})),m.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),M=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==R&&Q.contains(R,e)?-1:t===l||t.ownerDocument==R&&Q.contains(R,t)?1:r?c.call(r,e)-c.call(r,t):0:4&n?-1:1)},l):l}for(e in Q.matches=function(e,t){return Q(e,null,null,t)},Q.matchesSelector=function(e,t){if(le(e),d&&!S[t+" "]&&(!p||!p.test(t)))try{var n=f.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){S(t,!0)}return Q(t,l,null,[e]).length>0},Q.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),T.contains(e,t)},Q.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var i=t.attrHandle[n.toLowerCase()],r=i&&h.call(t.attrHandle,n.toLowerCase())?i(e,n,!d):void 0;return void 0!==r?r:e.getAttribute(n)},Q.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],i=0,o=0;if(a=!m.sortStable,r=!m.sortStable&&s.call(e,0),D.call(e,M),a){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)k.call(e,n[i],1)}return r=null,e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(s.apply(this)))},t=T.expr={cacheLength:50,createPseudo:te,match:j,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(U,Z),e[3]=(e[3]||e[4]||e[5]||"").replace(U,Z),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Q.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Q.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return j.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&H.test(n)&&(t=ce(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(U,Z).toLowerCase();return"*"===e?function(){return!0}:function(e){return I(e,t)}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&w(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=Q.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(B," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,p,h,f=o!==a?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),x=!l&&!s,w=!1;if(g){if(o){for(;f;){for(d=t;d=d[f];)if(s?I(d,m):1===d.nodeType)return!1;h=f="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&x){for(w=(p=(u=(c=g[v]||(g[v]={}))[e]||[])[0]===y&&u[1])&&u[2],d=p&&g.childNodes[p];d=++p&&d&&d[f]||(w=p=0)||h.pop();)if(1===d.nodeType&&++w&&d===t){c[e]=[y,p,w];break}}else if(x&&(w=p=(u=(c=t[v]||(t[v]={}))[e]||[])[0]===y&&u[1]),!1===w)for(;(d=++p&&d&&d[f]||(w=p=0)||h.pop())&&(!(s?I(d,m):1===d.nodeType)||!++w||(x&&((c=d[v]||(d[v]={}))[e]=[y,w]),d!==t)););return(w-=r)===i||w%i==0&&w/i>=0}}},PSEUDO:function(e,n){var i,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Q.error("unsupported pseudo: "+e);return r[v]?r(n):r.length>1?(i=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var i,o=r(e,n),a=o.length;a--;)e[i=c.call(e,o[a])]=!(t[i]=o[a])})):function(e){return r(e,0,i)}):r}},pseudos:{not:te((function(e){var t=[],n=[],i=ve(e.replace(E,"$1"));return i[v]?te((function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Q(e,t).length>0}})),contains:te((function(e){return e=e.replace(U,Z),function(t){return(t.textContent||T.text(t)).indexOf(e)>-1}})),lang:te((function(e){return W.test(e||"")||Q.error("unsupported lang: "+e),e=e.replace(U,Z).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===u},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return I(e,"input")&&!!e.checked||I(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return $.test(e.nodeName)},button:function(e){return I(e,"input")&&"button"===e.type||I(e,"button")},text:function(e){var t;return I(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,n){return[n<0?n+t:n]})),even:ae((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ae((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ae((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:ae((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ie(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=re(e);function ue(){}function ce(e,n){var i,r,o,a,s,l,u,c=_[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=t.preFilter;s;){for(a in i&&!(r=V.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=F.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(E," ")}),s=s.slice(i.length)),t.filter)!(r=j[a].exec(s))||u[a]&&!(r=u[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?Q.error(e):_(e,l).slice(0)}function de(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function pe(e,t,n){var i=t.dir,r=t.next,o=r||i,a=n&&"parentNode"===o,s=x++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,l){var u,c,d=[y,s];if(l){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(c=t[v]||(t[v]={}),r&&I(t,r))t=t[i]||t;else{if((u=c[o])&&u[0]===y&&u[1]===s)return d[2]=u[2];if(c[o]=d,d[2]=e(t,n,l))return!0}return!1}}function he(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function fe(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),u&&t.push(s)));return a}function ge(e,t,n,i,r,o){return i&&!i[v]&&(i=ge(i)),r&&!r[v]&&(r=ge(r,o)),te((function(o,a,s,l){var u,d,p,h,f=[],m=[],v=a.length,y=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)Q(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),x=!e||!o&&t?y:fe(y,f,e,s,l);if(n?n(x,h=r||(o?e:v||i)?[]:a,s,l):h=x,i)for(u=fe(h,m),i(u,[],s,l),d=u.length;d--;)(p=u[d])&&(h[m[d]]=!(x[m[d]]=p));if(o){if(r||e){if(r){for(u=[],d=h.length;d--;)(p=h[d])&&u.push(x[d]=p);r(null,h=[],u,l)}for(d=h.length;d--;)(p=h[d])&&(u=r?c.call(o,p):f[d])>-1&&(o[u]=!(a[u]=p))}}else h=fe(h===a?h.splice(v,h.length):h),r?r(null,a,h,l):g.apply(a,h)}))}function me(e){for(var i,r,o,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],u=s?1:0,d=pe((function(e){return e===i}),l,!0),p=pe((function(e){return c.call(i,e)>-1}),l,!0),h=[function(e,t,r){var o=!s&&(r||t!=n)||((i=t).nodeType?d(e,t,r):p(e,t,r));return i=null,o}];u<a;u++)if(r=t.relative[e[u].type])h=[pe(he(h),r)];else{if((r=t.filter[e[u].type].apply(null,e[u].matches))[v]){for(o=++u;o<a&&!t.relative[e[o].type];o++);return ge(u>1&&he(h),u>1&&de(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(E,"$1"),r,u<o&&me(e.slice(u,o)),o<a&&me(e=e.slice(o)),o<a&&de(e))}h.push(r)}return he(h)}function ve(e,i){var r,o=[],a=[],s=b[e+" "];if(!s){for(i||(i=ce(e)),r=i.length;r--;)(s=me(i[r]))[v]?o.push(s):a.push(s);s=b(e,function(e,i){var r=i.length>0,o=e.length>0,a=function(a,s,u,c,p){var h,f,m,v=0,x="0",w=a&&[],_=[],b=n,S=a||o&&t.find.TAG("*",p),M=y+=null==b?1:Math.random()||.1,C=S.length;for(p&&(n=s==l||s||p);x!==C&&null!=(h=S[x]);x++){if(o&&h){for(f=0,s||h.ownerDocument==l||(le(h),u=!d);m=e[f++];)if(m(h,s||l,u)){g.call(c,h);break}p&&(y=M)}r&&((h=!m&&h)&&v--,a&&w.push(h))}if(v+=x,r&&x!==v){for(f=0;m=i[f++];)m(w,_,s,u);if(a){if(v>0)for(;x--;)w[x]||_[x]||(_[x]=A.call(c));_=fe(_)}g.apply(c,_),p&&!a&&_.length>0&&v+i.length>1&&T.uniqueSort(c)}return p&&(y=M,n=b),w};return r?te(a):a}(a,o)),s.selector=e}return s}function ye(e,n,i,r){var o,a,s,l,u,c="function"==typeof e&&e,p=!r&&ce(e=c.selector||e);if(i=i||[],1===p.length){if((a=p[0]=p[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&t.relative[a[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(U,Z),n)||[])[0]))return i;c&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(o=j.needsContext.test(e)?0:a.length;o--&&(s=a[o],!t.relative[l=s.type]);)if((u=t.find[l])&&(r=u(s.matches[0].replace(U,Z),q.test(a[0].type)&&se(n.parentNode)||n))){if(a.splice(o,1),!(e=r.length&&de(a)))return g.apply(i,r),i;break}}return(c||ve(e,p))(r,n,!d,i,!n||q.test(e)&&se(n.parentNode)||n),i}ue.prototype=t.filters=t.pseudos,t.setFilters=new ue,m.sortStable=v.split("").sort(M).join("")===v,le(),m.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),T.find=Q,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,Q.compile=ve,Q.select=ye,Q.setDocument=le,Q.tokenize=ce,Q.escape=T.escapeSelector,Q.getText=T.text,Q.isXML=T.isXMLDoc,Q.selectors=T.expr,Q.support=T.support,Q.uniqueSort=T.uniqueSort}();var z=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&T(e).is(n))break;i.push(e)}return i},B=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},V=T.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function G(e,t,n){return v(t)?T.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?T.grep(e,(function(e){return c.call(t,e)>-1!==n})):T.filter(t,e,n)}T.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?T.find.matchesSelector(i,e)?[i]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t<i;t++)if(T.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)T.find(e,r[t],n);return i>1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(G(this,e||[],!1))},not:function(e){return this.pushStack(G(this,e||[],!0))},is:function(e){return!!G(this,"string"==typeof e&&V.test(e)?T(e):e||[],!1).length}});var H,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||H,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:W.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:x,!0)),F.test(i[1])&&T.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=x.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,H=T(x);var j=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};function Y(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,o=[],a="string"!=typeof e&&T(e);if(!V.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(T(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return z(e,"parentNode")},parentsUntil:function(e,t,n){return z(e,"parentNode",n)},next:function(e){return Y(e,"nextSibling")},prev:function(e){return Y(e,"previousSibling")},nextAll:function(e){return z(e,"nextSibling")},prevAll:function(e){return z(e,"previousSibling")},nextUntil:function(e,t,n){return z(e,"nextSibling",n)},prevUntil:function(e,t,n){return z(e,"previousSibling",n)},siblings:function(e){return B((e.parentNode||{}).firstChild,e)},children:function(e){return B(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(I(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(n,i){var r=T.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=T.filter(i,r)),this.length>1&&($[e]||T.uniqueSort(r),j.test(e)&&r.reverse()),this.pushStack(r)}}));var X=/[^\x20\t\r\n\f]+/g;function q(e){return e}function U(e){throw e}function Z(e,t,n,i){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(n):e&&v(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(X)||[],(function(e,n){t[n]=!0})),t}(e):T.extend({},e);var t,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||e.once,i=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){T.each(n,(function(n,i){v(i)?e.unique&&u.has(i)||o.push(i):i&&i.length&&"string"!==b(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return T.each(arguments,(function(e,t){for(var n;(n=T.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?T.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(n){T.each(t,(function(t,i){var r=v(e[i[4]])&&e[i[4]];o[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,r){var o=0;function a(e,t,n,r){return function(){var s=this,l=arguments,u=function(){var i,u;if(!(e<o)){if((i=n.apply(s,l))===t.promise())throw new TypeError("Thenable self
2-resolution");u=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(u)?r?u.call(i,a(o,t,q,r),a(o,t,U,r)):(o++,u.call(i,a(o,t,q,r),a(o,t,U,r),a(o,t,q,t.notifyWith))):(n!==q&&(s=void 0,l=[i]),(r||t.resolveWith)(s,l))}},c=r?u:function(){try{u()}catch(i){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(i,c.error),e+1>=o&&(n!==U&&(s=void 0,l=[i]),t.rejectWith(s,l))}};e?c():(T.Deferred.getErrorHook?c.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(c.error=T.Deferred.getStackHook()),i.setTimeout(c))}}return T.Deferred((function(i){t[0][3].add(a(0,i,v(r)?r:q,i.notifyWith)),t[1][3].add(a(0,i,v(e)?e:q)),t[2][3].add(a(0,i,v(n)?n:U))})).promise()},promise:function(e){return null!=e?T.extend(e,r):r}},o={};return T.each(t,(function(e,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),r=s.call(arguments),o=T.Deferred(),a=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(i,r)}};if(t<=1&&(Z(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)Z(r[n],a(n),o.reject);return o.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&K.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){i.setTimeout((function(){throw e}))};var J=T.Deferred();function Q(){x.removeEventListener("DOMContentLoaded",Q),i.removeEventListener("load",Q),T.ready()}T.fn.ready=function(e){return J.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||J.resolveWith(x,[T]))}}),T.ready.then=J.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?i.setTimeout(T.ready):(x.addEventListener("DOMContentLoaded",Q),i.addEventListener("load",Q));var ee=function(e,t,n,i,r,o,a){var s=0,l=e.length,u=null==n;if("object"===b(n))for(s in r=!0,n)ee(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,v(i)||(a=!0),u&&(a?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(T(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):l?t(e[0],n):o},te=/^-ms-/,ne=/-([a-z])/g;function ie(e,t){return t.toUpperCase()}function re(e){return e.replace(te,"ms-").replace(ne,ie)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=T.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[re(t)]=n;else for(i in t)r[re(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][re(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(re):(t=re(t))in i?[t]:t.match(X)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||T.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var se=new ae,le=new ae,ue=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ce=/[A-Z]/g;function de(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ce,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ue.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=le.get(o),1===o.nodeType&&!se.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=re(i.slice(5)),de(o,i,r[i]));se.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=le.get(o,e))||void 0!==(n=de(o,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),T.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=se.get(e,t),n&&(!i||Array.isArray(n)?i=se.access(e,t,T.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),i=n.length,r=n.shift(),o=T._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,(function(){T.dequeue(e,t)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:T.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each((function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=T.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=se.get(o[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});
vendor: 53,205 bytes, line 2
2var pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,he=new RegExp("^(?:([+-])=|)("+pe+")([a-z%]*)$","i"),fe=["Top","Right","Bottom","Left"],ge=x.documentElement,me=function(e){return T.contains(e.ownerDocument,e)},ve={composed:!0};ge.getRootNode&&(me=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===T.css(e,"display")};function xe(e,t,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return T.css(e,t,"")},l=s(),u=n&&n[3]||(T.cssNumber[t]?"":"px"),c=e.nodeType&&(T.cssNumber[t]||"px"!==u&&+l)&&he.exec(T.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)T.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,T.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var we={};function _e(e){var t,n=e.ownerDocument,i=e.nodeName,r=we[i];return r||(t=n.body.appendChild(n.createElement(i)),r=T.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),we[i]=r,r)}function be(e,t){for(var n,i,r=[],o=0,a=e.length;o<a;o++)(i=e[o]).style&&(n=i.style.display,t?("none"===n&&(r[o]=se.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&ye(i)&&(r[o]=_e(i))):"none"!==n&&(r[o]="none",se.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}T.fn.extend({show:function(){return be(this,!0)},hide:function(){return be(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?T(this).show():T(this).hide()}))}});var Se,Me,Te=/^(?:checkbox|radio)$/i,Ce=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ie=/^$|^module$|\/(?:java|ecma)script/i;Se=x.createDocumentFragment().appendChild(x.createElement("div")),(Me=x.createElement("input")).setAttribute("type","radio"),Me.setAttribute("checked","checked"),Me.setAttribute("name","t"),Se.appendChild(Me),m.checkClone=Se.cloneNode(!0).cloneNode(!0).lastChild.checked,Se.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!Se.cloneNode(!0).lastChild.defaultValue,Se.innerHTML="<option></option>",m.option=!!Se.lastChild;var Ae={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function De(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&I(e,t)?T.merge([e],n):n}function ke(e,t){for(var n=0,i=e.length;n<i;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Ae.tbody=Ae.tfoot=Ae.colgroup=Ae.caption=Ae.thead,Ae.th=Ae.td,m.option||(Ae.optgroup=Ae.option=[1,"<select multiple='multiple'>","</select>"]);var Le=/<|&#?\w+;/;function Ee(e,t,n,i,r){for(var o,a,s,l,u,c,d=t.createDocumentFragment(),p=[],h=0,f=e.length;h<f;h++)if((o=e[h])||0===o)if("object"===b(o))T.merge(p,o.nodeType?[o]:o);else if(Le.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(Ce.exec(o)||["",""])[1].toLowerCase(),l=Ae[s]||Ae._default,a.innerHTML=l[1]+T.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;T.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(t.createTextNode(o));for(d.textContent="",h=0;o=p[h++];)if(i&&T.inArray(o,i)>-1)r&&r.push(o);else if(u=me(o),a=De(d.appendChild(o),"script"),u&&ke(a),n)for(c=0;o=a[c++];)Ie.test(o.type||"")&&n.push(o);return d}var Pe=/^([^.]*)(?:\.(.+)|)/;function Oe(){return!0}function Re(){return!1}function Ne(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Ne(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Re;else if(!r)return e;return 1===o&&(a=r,r=function(e){return T().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=T.guid++)),e.each((function(){T.event.add(this,t,r,i,n)}))}function ze(e,t,n){n?(se.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var n,i=se.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),se.set(this,t,i),this[t](),n=se.get(this,t),se.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(se.set(this,t,T.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Oe)}})):void 0===se.get(e,t)&&T.event.add(e,t,Oe)}T.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,u,c,d,p,h,f,g,m=se.get(e);if(oe(e))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&T.find.matchesSelector(ge,r),n.guid||(n.guid=T.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(X)||[""]).length;u--;)h=g=(s=Pe.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),h&&(d=T.event.special[h]||{},h=(r?d.delegateType:d.bindType)||h,d=T.event.special[h]||{},c=T.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&T.expr.match.needsContext.test(r),namespace:f.join(".")},o),(p=l[h])||((p=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,a)||e.addEventListener&&e.addEventListener(h,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,c):p.push(c),T.event.global[h]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,u,c,d,p,h,f,g,m=se.hasData(e)&&se.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(X)||[""]).length;u--;)if(h=g=(s=Pe.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),h){for(d=T.event.special[h]||{},p=l[h=(i?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!r&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(e,c));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,m.handle)||T.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)T.event.remove(e,h+t[u],n,i,!0);T.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,a,s=new Array(arguments.length),l=T.event.fix(e),u=(se.get(this,"events")||Object.create(null))[l.type]||[],c=T.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=T.event.handlers.call(this,l,u),t=0;(r=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((T.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=t[n]).selector+" "]&&(a[r]=i.needsContext?T(r,this).index(u)>-1:T.find(r,this,null,[u]).length),a[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Te.test(t.type)&&t.click&&I(t,"input")&&ze(t,"click",!0),!1},trigger:function(e){var t=this||e;return Te.test(t.type)&&t.click&&I(t,"input")&&ze(t,"click"),!0},_default:function(e){var t=e.target;return Te.test(t.type)&&t.click&&I(t,"input")&&se.get(t,"click")||I(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Oe:Re,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Re,isPropagationStopped:Re,isImmediatePropagationStopped:Re,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Oe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Oe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Oe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(x.documentMode){var n=se.get(this,"handle"),i=T.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else T.event.simulate(t,e.target,T.event.fix(e))}T.event.special[e]={setup:function(){var i;if(ze(this,e,!0),!x.documentMode)return!1;(i=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(i||0)+1)},trigger:function(){return ze(this,e),!0},teardown:function(){var e;if(!x.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},T.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=x.documentMode?this:i,o=se.get(r,t);o||(x.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),se.set(r,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=x.documentMode?this:i,o=se.get(r,t)-1;o?se.set(r,t,o):(x.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),se.remove(r,t))}}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||T.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),T.fn.extend({on:function(e,t,n,i){return Ne(this,e,t,n,i)},one:function(e,t,n,i){return Ne(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,T(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Re),this.each((function(){T.event.remove(this,e,n,t)}))}});var Be=/<script|<style|<link/i,Ve=/checked\s*(?:[^=]|=\s*.checked.)/i,Fe=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ge(e,t){return I(e,"table")&&I(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function je(e,t){var n,i,r,o,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(r in se.remove(t,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)T.event.add(t,r,s[r][n]);le.hasData(e)&&(o=le.access(e),a=T.extend({},o),le.set(t,a))}}function $e(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Te.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ye(e,t,n,i){t=l(t);var r,o,a,s,u,c,d=0,p=e.length,h=p-1,f=t[0],g=v(f);if(g||p>1&&"string"==typeof f&&!m.checkClone&&Ve.test(f))return e.each((function(r){var o=e.eq(r);g&&(t[0]=f.call(this,r,o.html())),Ye(o,t,n,i)}));if(p&&(o=(r=Ee(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=(a=T.map(De(r,"script"),He)).length;d<p;d++)u=r,d!==h&&(u=T.clone(u,!0,!0),s&&T.merge(a,De(u,"script"))),n.call(e[d],u,d);if(s)for(c=a[a.length-1].ownerDocument,T.map(a,We),d=0;d<s;d++)u=a[d],Ie.test(u.type||"")&&!se.access(u,"globalEval")&&T.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?T._evalUrl&&!u.noModule&&T._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):_(u.textContent.replace(Fe,""),u,c))}return e}function Xe(e,t,n){for(var i,r=t?T.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||T.cleanData(De(i)),i.parentNode&&(n&&me(i)&&ke(De(i,"script")),i.parentNode.removeChild(i));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,a,s=e.cloneNode(!0),l=me(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=De(s),i=0,r=(o=De(e)).length;i<r;i++)$e(o[i],a[i]);if(t)if(n)for(o=o||De(e),a=a||De(s),i=0,r=o.length;i<r;i++)je(o[i],a[i]);else je(e,s);return(a=De(s,"script")).length>0&&ke(a,!l&&De(e,"script")),s},cleanData:function(e){for(var t,n,i,r=T.event.special,o=0;void 0!==(n=e[o]);o++)if(oe(n)){if(t=n[se.expando]){if(t.events)for(i in t.events)r[i]?T.event.remove(n,i):T.removeEvent(n,i,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Xe(this,e,!0)},remove:function(e){return Xe(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ye(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ge(this,e).appendChild(e)}))},prepend:function(){return Ye(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ge(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ye(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ye(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(De(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Be.test(e)&&!Ae[(Ce.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(De(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ye(this,arguments,(function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(De(this)),n&&n.replaceChild(t,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){T.fn[e]=function(e){for(var n,i=[],r=T(e),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),T(r[a])[t](n),u.apply(i,n.get());return this.pushStack(i)}}));var qe=new RegExp("^("+pe+")(?!px)[a-z%]+$","i"),Ue=/^--/,Ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Ke=function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i},Je=new RegExp(fe.join("|"),"i");function Qe(e,t,n){var i,r,o,a,s=Ue.test(t),l=e.style;return(n=n||Ze(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(E,"$1")||void 0),""!==a||me(e)||(a=T.style(e,t)),!m.pixelBoxStyles()&&qe.test(a)&&Je.test(t)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ge.appendChild(u).appendChild(c);var e=i.getComputedStyle(c);n="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),r=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),ge.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var n,r,o,a,s,l,u=x.createElement("div"),c=x.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.style.backgroundClip,T.extend(m,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,r;return null==s&&(e=x.createElement("table"),t=x.createElement("tr"),n=x.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ge.appendChild(e).appendChild(t).appendChild(n),r=i.getComputedStyle(t),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],nt=x.createElement("div").style,it={};function rt(e){return T.cssProps[e]||it[e]||(e in nt?e:it[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var i=he.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ut(e,t,n,i,r,o){var a="width"===t?1:0,s=0,l=0,u=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=T.css(e,n+fe[a],!0,r)),i?("content"===n&&(l-=T.css(e,"padding"+fe[a],!0,r)),"margin"!==n&&(l-=T.css(e,"border"+fe[a]+"Width",!0,r))):(l+=T.css(e,"padding"+fe[a],!0,r),"padding"!==n?l+=T.css(e,"border"+fe[a]+"Width",!0,r):s+=T.css(e,"border"+fe[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l+u}function ct(e,t,n){var i=Ze(e),r=(!m.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,i),o=r,a=Qe(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(qe.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&I(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===T.css(e,"boxSizing",!1,i),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ut(e,t,n||(r?"border":"content"),o,i,a)+"px"}function dt(e,t,n,i,r){return new dt.prototype.init(e,t,n,i,r)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=re(t),l=Ue.test(t),u=e.style;if(l||(t=rt(s)),a=T.cssHooks[t]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:u[t];"string"==(o=typeof n)&&(r=he.exec(n))&&r[1]&&(n=xe(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(T.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var r,o,a,s=re(t);return Ue.test(t)||(t=rt(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Qe(e,t,i)),"normal"===r&&t in st&&(r=st[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,n,i){if(n)return!ot.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ct(e,t,i):Ke(e,at,(function(){return ct(e,t,i)}))},set:function(e,n,i){var r,o=Ze(e),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===T.css(e,"boxSizing",!1,o),l=i?ut(e,t,i,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ut(e,t,"border",!1,o)-.5)),l&&(r=he.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),lt(0,n,l)}}})),T.cssHooks.marginLeft=et(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+fe[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(T.cssHooks[e+t].set=lt)})),T.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var i,r,o={},a=0;if(Array.isArray(t)){for(i=Ze(e),r=t.length;a<r;a++)o[t[a]]=T.css(e,t[a],!1,i);return o}return void 0!==n?T.style(e,t,n):T.css(e,t)}),e,t,arguments.length>1)}}),T.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=dt.prototype.init,T.fx.step={};var pt,ht,ft=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function mt(){ht&&(!1===x.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(mt):i.setTimeout(mt,T.fx.interval),T.fx.tick())}function vt(){return i.setTimeout((function(){pt=void 0})),pt=Date.now()}function yt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=fe[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function xt(e,t,n){for(var i,r=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function wt(e,t,n){var i,r,o=0,a=wt.prefilters.length,s=T.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=pt||vt(),n=Math.max(0,u.startTime+u.duration-t),i=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(i);return s.notifyWith(e,[u,i,n]),i<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:pt||vt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=T.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=re(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=T.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(c,u.opts.specialEasing);o<a;o++)if(i=wt.prefilters[o].call(u,e,c,u.opts))return v(i.stop)&&(T._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return T.map(c,xt,u),v(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),T.fx.timer(T.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}T.Animation=T.extend(wt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return xe(n.elem,e,he.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(X);for(var n,i=0,r=e.length;i<r;i++)n=e[i],wt.tweeners[n]=wt.tweeners[n]||[],wt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,a,s,l,u,c,d="width"in t||"height"in t,p=this,h={},f=e.style,g=e.nodeType&&ye(e),m=se.get(e,"fxshow");for(i in n.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always((function(){p.always((function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()}))}))),t)if(r=t[i],ft.test(r)){if(delete t[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}h[i]=m&&m[i]||T.style(e,i)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(h))for(i in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(u=m&&m.display)&&(u=se.get(e,"display")),"none"===(c=T.css(e,"display"))&&(u?c=u:(be([e],!0),u=e.style.display||u,c=T.css(e,"display"),be([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===T.css(e,"float")&&(l||(p.done((function(){f.display=u})),null==u&&(c=f.display,u="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,h)l||(m?"hidden"in m&&(g=m.hidden):m=se.access(e,"fxshow",{display:u}),o&&(m.hidden=!g),g&&be([e],!0),p.done((function(){for(i in g||be([e]),se.remove(e,"fxshow"),h)T.style(e,i,h[i])}))),l=xt(g?m[i]:0,i,p),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?wt.prefilters.unshift(e):wt.prefilters.push(e)}}),T.speed=function(e,t,n){var i=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return T.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in T.fx.speeds?i.duration=T.fx.speeds[i.duration]:i.duration=T.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&T.dequeue(this,i.queue)},i},T.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=T.isEmptyObject(e),o=T.speed(t,n,i),a=function(){var t=wt(this,T.extend({},e),o);(r||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=T.timers,a=se.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&gt.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||T.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=se.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=T.timers,a=i?i.length:0;for(n.finish=!0,T.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(e,t){var n=T.fn[t];T.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,i,r)}})),T.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){T.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(pt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),pt=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){ht||(ht=!0,mt())},T.fx.stop=function(){ht=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,t){return e=T.fx&&T.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(r)}}))},function(){var e=x.createElement("input"),t=x.createElement("select").appendChild(x.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=x.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var _t,bt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return ee(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?T.prop(e,t,n):(1===o&&T.isXMLDoc(e)||(r=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?_t:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=T.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&I(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(X);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),_t={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=bt[t]||T.find.attr;bt[t]=function(e,t,i){var r,o,a=t.toLowerCase();return i||(o=bt[a],bt[a]=r,r=null!=n(e,t,i)?a:null,bt[a]=o),r}}));var St=/^(?:input|select|textarea|button)$/i,Mt=/^(?:a|area)$/i;function Tt(e){return(e.match(X)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function It(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(X)||[]}T.fn.extend({prop:function(e,t){return ee(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(e)||(t=T.propFix[t]||t,r=T.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):St.test(e.nodeName)||Mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,n,i,r,o,a;return v(e)?this.each((function(t){T(this).addClass(e.call(this,t,Ct(this)))})):(t=It(e)).length?this.each((function(){if(i=Ct(this),n=1===this.nodeType&&" "+Tt(i)+" "){for(o=0;o<t.length;o++)r=t[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=Tt(n),i!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,i,r,o,a;return v(e)?this.each((function(t){T(this).removeClass(e.call(this,t,Ct(this)))})):arguments.length?(t=It(e)).length?this.each((function(){if(i=Ct(this),n=1===this.nodeType&&" "+Tt(i)+" "){for(o=0;o<t.length;o++)for(r=t[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a=Tt(n),i!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,r,o,a=typeof e,s="string"===a||Array.isArray(e);return v(e)?this.each((function(n){T(this).toggleClass(e.call(this,n,Ct(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=It(e),this.each((function(){if(s)for(o=T(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==e&&"boolean"!==a||((i=Ct(this))&&se.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+Tt(Ct(n))+" ").indexOf(t)>-1)return!0;return!1}});var At=/\r/g;T.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=v(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,T(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=T.map(r,(function(e){return null==e?"":e+""}))),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=T.valHooks[r.type]||T.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(At,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Tt(T.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!I(n.parentNode,"optgroup"))){if(t=T(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,i,r=e.options,o=T.makeArray(t),a=r.length;a--;)((i=r[a]).selected=T.inArray(T.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},m.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Dt=i.location,kt={guid:Date.now()},Lt=/\?/;T.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Et=/^(?:focusinfocus|focusoutblur)$/,Pt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,n,r){var o,a,s,l,u,c,d,p,f=[n||x],g=h.call(e,"type")?e.type:e,m=h.call(e,"namespace")?e.namespace.split("."):[];if(a=p=s=n=n||x,3!==n.nodeType&&8!==n.nodeType&&!Et.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),u=g.indexOf(":")<0&&"on"+g,(e=e[T.expando]?e:new T.Event(g,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:T.makeArray(t,[e]),d=T.event.special[g]||{},r||!d.trigger||!1!==d.trigger.apply(n,t))){if(!r&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,Et.test(l+g)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(n.ownerDocument||x)&&f.push(s.defaultView||s.parentWindow||i)}for(o=0;(a=f[o++])&&!e.isPropagationStopped();)p=a,e.type=o>1?l:d.bindType||g,(c=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&c.apply(a,t),(c=u&&a[u])&&c.apply&&oe(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),t)||!oe(n)||u&&v(n[g])&&!y(n)&&((s=n[u])&&(n[u]=null),T.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,Pt),n[g](),e.isPropagationStopped()&&p.removeEventListener(g,Pt),T.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var i=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(i,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}});var Ot=/\[\]$/,Rt=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,zt=/^(?:input|select|textarea|keygen)/i;function Bt(e,t,n,i){var r;if(Array.isArray(t))T.each(t,(function(t,r){n||Ot.test(e)?i(e,r):Bt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==b(t))i(e,t);else for(r in t)Bt(e+"["+r+"]",t[r],n,i)}T.param=function(e,t){var n,i=[],r=function(e,t){var n=v(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){r(this.name,this.value)}));else for(n in e)Bt(n,e[n],t,r);return i.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&zt.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!Te.test(e))})).map((function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}})):{name:t.name,value:n.replace(Rt,"\r\n")}})).get()}});var Vt=/%20/g,Ft=/#.*$/,Gt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Wt=/^(?:GET|HEAD)$/,jt=/^\/\//,$t={},Yt={},Xt="*/".concat("*"),qt=x.createElement("a");function Ut(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(X)||[];if(v(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Zt(e,t,n,i){var r={},o=e===Yt;function a(s){var l;return r[s]=!0,T.each(e[s]||[],(function(e,s){var u=s(t,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Kt(e,t){var n,i,r=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&T.extend(!0,e,i),e}qt.href=Dt.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Dt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Dt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Kt(Kt(e,T.ajaxSettings),t):Kt(T.ajaxSettings,e)},ajaxPrefilter:Ut($t),ajaxTransport:Ut(Yt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,o,a,s,l,u,c,d,p,h=T.ajaxSetup({},t),f=h.context||h,g=h.context&&(f.nodeType||f.jquery)?T(f):T.event,m=T.Deferred(),v=T.Callbacks("once memory"),y=h.statusCode||{},w={},_={},b="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Ht.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)S.always(e[S.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||b;return n&&n.abort(t),M(0,t),this}};if(m.promise(S),h.url=((e||h.url||Dt.href)+"").replace(jt,Dt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(X)||[""],null==h.crossDomain){l=x.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=qt.protocol+"//"+qt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=T.param(h.data,h.traditional)),Zt($t,h,t,S),u)return S;for(d in(c=T.event&&h.global)&&0==T.active++&&T.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Wt.test(h.type),r=h.url.replace(Ft,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Vt,"+")):(p=h.url.slice(r.length),h.data&&(h.processData||"string"==typeof h.data)&&(r+=(Lt.test(r)?"&":"?")+h.data,delete h.data),!1===h.cache&&(r=r.replace(Gt,"$1"),p=(Lt.test(r)?"&":"?")+"_="+kt.guid+++p),h.url=r+p),h.ifModified&&(T.lastModified[r]&&S.setRequestHeader("If-Modified-Since",T.lastModified[r]),T.etag[r]&&S.setRequestHeader("If-None-Match",T.etag[r])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Xt+"; q=0.01":""):h.accepts["*"]),h.headers)S.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(f,S,h)||u))return S.abort();if(b="abort",v.add(h.complete),S.done(h.success),S.fail(h.error),n=Zt(Yt,h,t,S)){if(S.readyState=1,c&&g.trigger("ajaxSend",[S,h]),u)return S;h.async&&h.timeout>0&&(s=i.setTimeout((function(){S.abort("timeout")}),h.timeout));try{u=!1,n.send(w,M)}catch(e){if(u)throw e;M(-1,e)}}else M(-1,"No Transport");function M(e,t,a,l){var d,p,x,w,_,b=t;u||(u=!0,s&&i.clearTimeout(s),n=void 0,o=l||"",S.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(w=function(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(h,S,a)),!d&&T.inArray("script",h.dataTypes)>-1&&T.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),w=function(e,t,n,i){var r,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(h,w,S,d),d?(h.ifModified&&((_=S.getResponseHeader("Last-Modified"))&&(T.lastModified[r]=_),(_=S.getResponseHeader("etag"))&&(T.etag[r]=_)),204===e||"HEAD"===h.type?b="nocontent":304===e?b="notmodified":(b=w.state,p=w.data,d=!(x=w.error))):(x=b,!e&&b||(b="error",e<0&&(e=0))),S.status=e,S.statusText=(t||b)+"",d?m.resolveWith(f,[p,b,S]):m.rejectWith(f,[S,b,x]),S.statusCode(y),y=void 0,c&&g.trigger(d?"ajaxSuccess":"ajaxError",[S,h,d?p:x]),v.fireWith(f,[S,b]),c&&(g.trigger("ajaxComplete",[S,h]),--T.active||T.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:r,data:n,success:i},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){T(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Jt={0:200,1223:204},Qt=T.ajaxSettings.xhr();m.cors=!!Qt&&"withCredentials"in Qt,m.ajax=Qt=!!Qt,T.ajaxTransport((function(e){var t,n;if(m.cors||Qt&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Jt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),x.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||T.expando+"_"+kt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(e,t,n){var r,o,a,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+r):!1!==e.jsonp&&(e.url+=(Lt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||T.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always((function(){void 0===o?T(i).removeProp(r):i[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,tn.push(r)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=((en=x.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((i=(t=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,t.head.appendChild(i)):t=x),o=!n&&[],(r=F.exec(e))?[t.createElement(r[1])]:(r=Ee([e],t,o),o&&o.length&&T(o).remove(),T.merge([],r.childNodes)));var i,r,o},T.fn.load=function(e,t,n){var i,r,o,a=this,s=e.indexOf(" ");return s>-1&&(i=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&T.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(i?T("<div>").append(T.parseHTML(e)).find(i):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,u=T.css(e,"position"),c=T(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=T.css(e,"top"),l=T.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(i=c.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),v(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):c.css(d)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===T.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),r.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-T.css(i,"marginTop",!0),left:t.left-r.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||ge}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;T.fn[e]=function(i){return ee(this,(function(e,i,r){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r}),e,i,arguments.length)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=et(m.pixelPosition,(function(e,n){if(n)return n=Qe(e,t),qe.test(n)?T(e).position()[t]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){T.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return ee(this,(function(t,n,r){var o;return y(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?T.css(t,n,s):T.style(t,n,r,s)}),t,a?r:void 0,a)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){T.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));
2var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=s.call(arguments,2),r=function(){return e.apply(t||this,i.concat(s.call(arguments)))},r.guid=e.guid=e.guid||T.guid++,r},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=I,T.isFunction=v,T.isWindow=y,T.camelCase=re,T.type=b,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return T}.apply(t,[]))||(e.exports=n);var on=i.jQuery,an=i.$;return T.noConflict=function(e){return i.$===T&&(i.$=an),e&&i.jQuery===T&&(i.jQuery=on),T},void 0===r&&(i.jQuery=i.$=T),T}))},5835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WS_SERVER_ADDR=t.SERVER_ADDR=t.PLATFORM=void 0;const i=n(6546);t.PLATFORM=i.Capacitor.getPlatform();t.SERVER_ADDR="web"===t.PLATFORM?"":i.Capacitor.DEBUG?"http://192.168.1.197:8888":"https://dartpoint.ai",t.WS_SERVER_ADDR="web"===t.PLATFORM?`${"https:"===window.location.protocol?"wss:":"ws:"}//${window.location.host}`:i.Capacitor.DEBUG?"ws://192.168.1.197:8888":"wss://dartpoint.ai"},6546:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Capacitor:()=>l,CapacitorCookies:()=>v,CapacitorException:()=>s,CapacitorHttp:()=>w,CapacitorPlatforms:()=>i,ExceptionCode:()=>a,Plugins:()=>c,WebPlugin:()=>p,WebView:()=>h,addPlatform:()=>r,buildRequestInit:()=>y,registerPlugin:()=>u,registerWebPlugin:()=>d,setPlatform:()=>o});const i=(e=>e.CapacitorPlatforms=(e=>{const t=new Map;t.set("web",{name:"web"});const n=e.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:t};return n.addPlatform=(e,t)=>{n.platforms.set(e,t)},n.setPlatform=e=>{n.platforms.has(e)&&(n.currentPlatform=n.platforms.get(e))},n})(e))("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),r=i.addPlatform,o=i.setPlatform;var a;!function(e){e.Unimplemented="UNIMPLEMENTED",e.Unavailable="UNAVAILABLE"}(a||(a={}));class s extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}}const l=(e=>e.Capacitor=(e=>{var t,n,i,r,o;const l=e.CapacitorCustomPlatform||null,u=e.Capacitor||{},c=u.Plugins=u.Plugins||{},d=e.CapacitorPlatforms,p=(null===(t=null==d?void 0:d.currentPlatform)||void 0===t?void 0:t.getPlatform)||(()=>null!==l?l.name:(e=>{var t,n;return(null==e?void 0:e.androidBridge)?"android":(null===(n=null===(t=null==e?void 0:e.webkit)||void 0===t?void 0:t.messageHandlers)||void 0===n?void 0:n.bridge)?"ios":"web"})(e)),h=(null===(n=null==d?void 0:d.currentPlatform)||void 0===n?void 0:n.isNativePlatform)||(()=>"web"!==p()),f=(null===(i=null==d?void 0:d.currentPlatform)||void 0===i?void 0:i.isPluginAvailable)||(e=>{const t=m.get(e);return!!(null==t?void 0:t.platforms.has(p()))||!!g(e)}),g=(null===(r=null==d?void 0:d.currentPlatform)||void 0===r?void 0:r.getPluginHeader)||(e=>{var t;return null===(t=u.PluginHeaders)||void 0===t?void 0:t.find((t=>t.name===e))}),m=new Map,v=(null===(o=null==d?void 0:d.currentPlatform)||void 0===o?void 0:o.registerPlugin)||((e,t={})=>{const n=m.get(e);if(n)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),n.proxy;const i=p(),r=g(e);let o;const d=n=>{let c;const d=(...d)=>{const p=(async()=>(!o&&i in t?o=o="function"==typeof t[i]?await t[i]():t[i]:null!==l&&!o&&"web"in t&&(o=o="function"==typeof t.web?await t.web():t.web),o))().then((t=>{const o=((t,n)=>{var o,l;if(!r){if(t)return null===(l=t[n])||void 0===l?void 0:l.bind(t);throw new s(`"${e}" plugin is not implemented on ${i}`,a.Unimplemented)}{const i=null==r?void 0:r.methods.find((e=>n===e.name));if(i)return"promise"===i.rtype?t=>u.nativePromise(e,n.toString(),t):(t,i)=>u.nativeCallback(e,n.toString(),t,i);if(t)return null===(o=t[n])||void 0===o?void 0:o.bind(t)}})(t,n);if(o){const e=o(...d);return c=null==e?void 0:e.remove,e}throw new s(`"${e}.${n}()" is not implemented on ${i}`,a.Unimplemented)}));return"addListener"===n&&(p.remove=async()=>c()),p};return d.toString=()=>`${n.toString()}() { [capacitor code] }
2`,Object.defineProperty(d,"name",{value:n,writable:!1,configurable:!1}),d},h=d("addListener"),f=d("removeListener"),v=(e,t)=>{const n=h({eventName:e},t),i=async()=>{const i=await n;f({eventName:e,callbackId:i},t)},r=new Promise((e=>n.then((()=>e({remove:i})))));return r.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await i()},r},y=new Proxy({},{get(e,t){switch(t){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return r?v:h;case"removeListener":return f;default:return d(t)}}});return c[e]=y,m.set(e,{name:e,proxy:y,platforms:new Set([...Object.keys(t),...r?[i]:[]])}),y});return u.convertFileSrc||(u.convertFileSrc=e=>e),u.getPlatform=p,u.handleError=t=>e.console.error(t),u.isNativePlatform=h,u.isPluginAvailable=f,u.pluginMethodNoop=(e,t,n)=>Promise.reject(`${n} does not have an implementation of "${t}".`),u.registerPlugin=v,u.Exception=s,u.DEBUG=!!u.DEBUG,u.isLoggingEnabled=!!u.isLoggingEnabled,u.platform=u.getPlatform(),u.isNative=u.isNativePlatform(),u})(e))("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),u=l.registerPlugin,c=l.Plugins,d=e=>((e,t)=>{var n;const i=t.config,r=e.Plugins;if(!(null==i?void 0:i.name))throw new Error('Capacitor WebPlugin is using the deprecated "registerWebPlugin()" function, but without the config. Please use "registerPlugin()" instead to register this web plugin."');console.warn(`Capacitor plugin "${i.name}" is using the deprecated "registerWebPlugin()" function`),r[i.name]&&!(null===(n=null==i?void 0:i.platforms)||void 0===n?void 0:n.includes(e.getPlatform()))||(r[i.name]=t)})(l,e);class p{constructor(e){this.listeners={},this.windowListeners={},e&&(console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=e)}addListener(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);const n=this.windowListeners[e];n&&!n.registered&&this.addWindowListener(n);const i=async()=>this.removeListener(e,t),r=Promise.resolve({remove:i});return Object.defineProperty(r,"remove",{value:async()=>{console.warn("Using addListener() without 'await' is deprecated."),await i()}}),r}async removeAllListeners(){this.listeners={};for(const e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t){const n=this.listeners[e];n&&n.forEach((e=>e(t)))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e="not implemented"){return new l.Exception(e,a.Unimplemented)}unavailable(e="not available"){return new l.Exception(e,a.Unavailable)}async removeListener(e,t){const n=this.listeners[e];if(!n)return;const i=n.indexOf(t);this.listeners[e].splice(i,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}}const h=u("WebView"),f=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),g=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class m extends p{async getCookies(){const e=document.cookie,t={};return e.split(";").forEach((e=>{if(e.length<=0)return;let[n,i]=e.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");n=g(n).trim(),i=g(i).trim(),t[n]=i})),t}async setCookie(e){try{const t=f(e.key),n=f(e.value),i=`; expires=${(e.expires||"").replace("expires=","")}`,r=(e.path||"/").replace("path=",""),o=null!=e.url&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${t}=${n||""}${i}; path=${r}; ${o};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{const e=document.cookie.split(";")||[];for(const t of e)document.cookie=t.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}}const v=u("CapacitorCookies",{web:()=>new m}),y=(e,t={})=>{const n=Object.assign({method:e.method||"GET",headers:e.headers},t),i=((e={})=>{const t=Object.keys(e);return Object.keys(e).map((e=>e.toLocaleLowerCase())).reduce(((n,i,r)=>(n[i]=e[t[r]],n)),{})})(e.headers)["content-type"]||"";if("string"==typeof e.data)n.body=e.data;else if(i.includes("application/x-www-form-urlencoded")){const t=new URLSearchParams;for(const[n,i]of Object.entries(e.data||{}))t.set(n,i);n.body=t.toString()}else if(i.includes("multipart/form-data")||e.data instanceof FormData){const t=new FormData;if(e.data instanceof FormData)e.data.forEach(((e,n)=>{t.append(n,e)}));else for(const n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;const i=new Headers(n.headers);i.delete("content-type"),n.headers=i}else(i.includes("application/json")||"object"==typeof e.data)&&(n.body=JSON.stringify(e.data));return n};class x extends p{async request(e){const t=y(e,e.webFetchExtra),n=((e,t=!0)=>e?Object.entries(e).reduce(((e,n)=>{const[i,r]=n;let o,a;return Array.isArray(r)?(a="",r.forEach((e=>{o=t?encodeURIComponent(e):e,a+=`${i}=${o}&`})),a.slice(0,-1)):(o=t?encodeURIComponent(r):r,a=`${i}=${o}`),`${e}&${a}`}),"").substr(1):null)(e.params,e.shouldEncodeUrlParams),i=n?`${e.url}?${n}`:e.url,r=await fetch(i,t),o=r.headers.get("content-type")||"";let a,s,{responseType:l="text"}=r.ok?e:{};switch(o.includes("application/json")&&(l="json"),l){case"arraybuffer":case"blob":s=await r.blob(),a=await(async e=>new Promise(((t,n)=>{const i=new FileReader;i.onload=()=>{const e=i.result;t(e.indexOf(",")>=0?e.split(",")[1]:e)},i.onerror=e=>n(e),i.readAsDataURL(e)})))(s);break;case"json":a=await r.json();break;default:a=await r.text()}const u={};
2return r.headers.forEach(((e,t)=>{u[t]=e})),{data:a,headers:u,status:r.status,url:r.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}}const w=u("CapacitorHttp",{web:()=>new x})},7148:(e,t,n)=>{"use strict";function i(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function r(e,t){void 0===e&&(e={}),void 0===t&&(t={});const n=["__proto__","constructor","prototype"];Object.keys(t).filter((e=>n.indexOf(e)<0)).forEach((n=>{void 0===e[n]?e[n]=t[n]:i(t[n])&&i(e[n])&&Object.keys(t[n]).length>0&&r(e[n],t[n])}))}n.r(t),n.d(t,{SwiperContainer:()=>ke,SwiperSlide:()=>Le,register:()=>Ee});const o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return r(e,o),e}const s={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function l(){const e="undefined"!=typeof window?window:{};return r(e,s),e}function u(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}function c(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function d(){return Date.now()}function p(e,t){void 0===t&&(t="x");const n=l();let i,r,o;const a=function(e){const t=l();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map((e=>e.replace(",","."))).join(", ")),o=new n.WebKitCSSMatrix("none"===r?"":r)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=o.toString().split(",")),"x"===t&&(r=n.WebKitCSSMatrix?o.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(r=n.WebKitCSSMatrix?o.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}function h(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function f(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const r=i<0||arguments.length<=i?void 0:arguments[i];if(null!=r&&(n=r,!("undefined"!=typeof window&&void 0!==window.HTMLElement?n instanceof HTMLElement:n&&(1===n.nodeType||11===n.nodeType)))){const n=Object.keys(Object(r)).filter((e=>t.indexOf(e)<0));for(let t=0,i=n.length;t<i;t+=1){const i=n[t],o=Object.getOwnPropertyDescriptor(r,i);void 0!==o&&o.enumerable&&(h(e[i])&&h(r[i])?r[i].__swiper__?e[i]=r[i]:f(e[i],r[i]):!h(e[i])&&h(r[i])?(e[i]={},r[i].__swiper__?e[i]=r[i]:f(e[i],r[i])):e[i]=r[i])}}}var n;return e}function g(e,t,n){e.style.setProperty(t,n)}function m(e){let{swiper:t,targetPosition:n,side:i}=e;const r=l(),o=-t.translate;let a,s=null;const u=t.params.speed;t.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(t.cssModeFrameID);const c=n>o?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,p=()=>{a=(new Date).getTime(),null===s&&(s=a);const e=Math.max(Math.min((a-s)/u,1),0),l=.5-Math.cos(e*Math.PI)/2;let c=o+l*(n-o);if(d(c,n)&&(c=n),t.wrapperEl.scrollTo({[i]:c}),d(c,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:c})})),void r.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=r.requestAnimationFrame(p)};p()}function v(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function y(e,t){void 0===t&&(t="");const n=l(),i=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter((e=>e.matches(t))):i}function x(e){try{return void console.warn(e)}catch(e){}}function w(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:u(t)),n}function _(e){const t=l(),n=a(),i=e.getBoundingClientRect(),r=n.body,o=e.clientTop||r.clientTop||0,s=e.clientLeft||r.clientLeft||0,u=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;
vendor: 4,135 bytes, line 2
2return{top:i.top+u-o,left:i.left+c-s}}function b(e,t){return l().getComputedStyle(e,null).getPropertyValue(t)}function S(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function M(e,t){const n=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&n.push(i):n.push(i),i=i.parentElement;return n}function T(e,t){t&&e.addEventListener("transitionend",(function n(i){i.target===e&&(t.call(e,i),e.removeEventListener("transitionend",n))}))}function C(e,t,n){const i=l();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function I(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}function A(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}let D,k,L;function E(){return D||(D=function(){const e=l(),t=a();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),D}function P(e){return void 0===e&&(e={}),k||(k=function(e){let{userAgent:t}=void 0===e?{}:e;const n=E(),i=l(),r=i.navigator.platform,o=t||i.navigator.userAgent,a={ios:!1,android:!1},s=i.screen.width,u=i.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let d=o.match(/(iPad).*OS\s([\d_]+)/);const p=o.match(/(iPod)(.*OS\s([\d_]+))?/),h=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===r;let g="MacIntel"===r;return!d&&g&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${s}x${u}`)>=0&&(d=o.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),g=!1),c&&!f&&(a.os="android",a.android=!0),(d||h||p)&&(a.os="ios",a.ios=!0),a}(e)),k}function O(){return L||(L=function(){const e=l(),t=P();let n=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,i]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));n=e<16||16===e&&i<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=i();return{isSafari:n||o,needPerspectiveFix:n,need3dFix:o||r&&t.ios,isWebView:r}}()),L}var R={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const r=n?"unshift":"push";return e.split(" ").forEach((e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][r](t)})),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;function r(){i.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];t.apply(i,o)}return r.__emitterProxy=t,i.on(e,r,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((i,r)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(r,1)}))})),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,i;for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return"string"==typeof o[0]||Array.isArray(o[0])?(t=o[0],n=o.slice(1,o.length),i=e):(t=o[0].events,n=o[0].data,i=o[0].context||e),n.unshift(i),(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEac
vendor: 13,796 bytes, line 2
2h((e=>{e.apply(i,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(i,n)}))})),e}};const N=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},z=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},B=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},V=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},F=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=r,o=[n-t];return o.push(...Array.from({length:t}).map(((e,t)=>n+i+t))),void e.slides.forEach(((t,n)=>{o.includes(t.column)&&V(e,n)}))}const o=r+i-1;if(e.params.rewind||e.params.loop)for(let i=r-t;i<=o+t;i+=1){const t=(i%n+n)%n;(t<r||t>o)&&V(e,t)}else for(let i=Math.max(r-t,0);i<=Math.min(o+t,n-1);i+=1)i!==r&&(i>o||i<r)&&V(e,i)};var G={updateSize:function(){const e=this;let t,n;const i=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(b(i,"padding-left")||0,10)-parseInt(b(i,"padding-right")||0,10),n=n-parseInt(b(i,"padding-top")||0,10)-parseInt(b(i,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:i,slidesEl:r,size:o,rtlTranslate:a,wrongRTL:s}=e,l=e.virtual&&n.virtual.enabled,u=l?e.virtual.slides.length:e.slides.length,c=y(r,`.${e.params.slideClass}, swiper-slide`),d=l?e.virtual.slides.length:c.length;let p=[];const h=[],f=[];let m=n.slidesOffsetBefore;"function"==typeof m&&(m=n.slidesOffsetBefore.call(e));let v=n.slidesOffsetAfter;"function"==typeof v&&(v=n.slidesOffsetAfter.call(e));const x=e.snapGrid.length,w=e.slidesGrid.length;let _=n.spaceBetween,S=-m,M=0,T=0;if(void 0===o)return;"string"==typeof _&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*o:"string"==typeof _&&(_=parseFloat(_)),e.virtualSize=-_,c.forEach((e=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),n.centeredSlides&&n.cssMode&&(g(i,"--swiper-centered-offset-before",""),g(i,"--swiper-centered-offset-after",""));const I=n.grid&&n.grid.rows>1&&e.grid;let A;I?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const D="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>void 0!==n.breakpoints[e].slidesPerView)).length>0;for(let i=0;i<d;i+=1){let r;if(A=0,c[i]&&(r=c[i]),I&&e.grid.updateSlide(i,r,c),!c[i]||"none"!==b(r,"display")){if("auto"===n.slidesPerView){D&&(c[i].style[e.getDirectionLabel("width")]="");const o=getComputedStyle(r),a=r.style.transform,s=r.style.webkitTransform;if(a&&(r.style.transform="none"),s&&(r.style.webkitTransform="none"),n.roundLengths)A=e.isHorizontal()?C(r,"width",!0):C(r,"height",!0);else{const e=t(o,"width"),n=t(o,"padding-left"),i=t(o,"padding-right"),a=t(o,"margin-left"),s=t(o,"margin-right"),l=o.getPropertyValue("box-sizing");if(l&&"border-box"===l)A=e+a+s;else{const{clientWidth:t,offsetWidth:o}=r;A=e+n+i+a+s+(o-t)}}a&&(r.style.transform=a),s&&(r.style.webkitTransform=s),n.roundLengths&&(A=Math.floor(A))}else A=(o-(n.slidesPerView-1)*_)/n.slidesPerView,n.roundLengths&&(A=Math.floor(A)),c[i]&&(c[i].style[e.getDirectionLabel("width")]=`${A}px`);c[i]&&(c[i].swiperSlideSize=A),f.push(A),n.centeredSlides?(S=S+A/2+M/2+_,0===M&&0!==i&&(S=S-o/2-_),0===i&&(S=S-o/2-_),Math.abs(S)<.001&&(S=0),n.roundLengths&&(S=Math.floor(S)),T%n.slidesPerGroup==0&&p.push(S),h.push(S)):(n.roundLengths&&(S=Math.floor(S)),(T-Math.min(e.params.slidesPerGroupSkip,T))%e.params.slidesPerGroup==0&&p.push(S),h.push(S),S=S+A+_),e.virtualSize+=A+_,M=A,T+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+v,a&&s&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+_}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+_}px`),I&&e.grid.updateWrapperSize(A,p),!n.centeredSlides){const t=[];for(let i=0;i<p.length;i+=1){let r=p[i];n.roundLengths&&(r=Math.floor(r)),p[i]<=e.virtualSize-o&&t.push(r)}p=t,Math.floor(e.virtualSize-o)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-o)}if(l&&n.loop){const t=f[0]+_;if(n.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),r=t*n.slidesPerGroup;for(let e=0;e<i;e+=1)p.push(p[p.length-1]+r)}for(let i=0;i<e.virtual.slidesBefore+e.virtual.slidesAfter;i+=1)1===n.slidesPerGroup&&p.push(p[p.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==_){const t=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");c.filter(((e,t)=>!(n.cssMode&&!n.loop)||t!==c.length-1)).forEach((e=>{e.style[t]=`${_}px`}))}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(_||0)})),e-=_;const t=e>o?e-o:0;p=p.map((e=>e<=0?-m:e>t?t+v:e))}if(n.centerInsufficientSlides){let e=0;f.forEach((t=>{e+=t+(_||0)})),e-=_;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<o){const n=(o-e-t)/2;p.forEach(((e,t)=>{p[t]=e-n})),h.forEach(((e,t)=>{h[t]=e+n}))}}if(Object.assign(e,{slides:c,snapGrid:p,slidesGrid:h,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){g(i,"--swiper-centered-offset-before",-p[0]+"px"),g(i,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(d!==u&&e.emit("slidesLengthChange"),p.length!==x&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==w&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);d<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let r,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>i?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{n.push(e)}));else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!i)break;n.push(a(e))}else n.push(a(t.activeIndex));for(r=0;r<n.length;r+=1)if(void 0!==n[r]){const e=n[r].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:i,rtlTranslate:r,snapGrid:o}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;r&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;"string"==typeof s&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:"string"==typeof s&&(s=parseFloat(s));for(let e=0;e<i.length;e+=1){const l=i[e];let u=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=i[0].swiperSlideOffset);const c=(a+(n.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+s),d=(a-o[0]+(n.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+s),p=-(a-u),h=p+t.slidesSizesGrid[e],f=p>=0&&p<=t.size-t.slidesSizesGrid[e],g=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;g&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),N(l,g,n.slideVisibleClass),N(l,f,n.slideFullyVisibleClass),l.progress=r?-c:c,l.originalProgress=r?-d:d}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:o,isEnd:a,progressLoop:s}=t;const l=o,u=a;if(0===i)r=0,o=!0,a=!0;else{r=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;o=n||r<=0,a=s||r>=1,n&&(r=0),s&&(r=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),r=t.slidesGrid[n],o=t.slidesGrid[i],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);s=l>=r?(l-r)/a:(l+a-o)/a,s>1&&(s-=1)}Object.assign(t,{progress:r,progressLoop:s,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),a&&!u&&t.emit("reachEnd toEdge"),(l&&!o||u&&!a)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:r}=e,o=e.virtual&&n.virtual.enabled,a=e.grid&&n.grid&&n.grid.rows>1,s=e=>y(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,u,c;if(o)if(n.loop){let t=r-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=s(`[data-swiper-slide-index="${t}"]`)}else l=s(`[data-swiper-slide-index="${r}"]`);else a?(l=t.find((e=>e.column===r)),c=t.find((e=>e.column===r+1)),u=t.find((e=>e.column===r-1))):l=t[r];l&&(a||(c=function(e,t){const n=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=t[0]),u=function(e,t){const n=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!u&&(u=t[t.length-1]))),t.forEach((e=>{z(e,e===l,n.slideActiveClass),z(e,e===c,n.slideNextClass),z(e,e===u,n.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:r,activeIndex:o,realIndex:a,snapIndex:s}=t;let l,u=e;const c=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===u&&(u=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let r;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?i>=t[e]&&i<t[e+1]-(t[e+1]-t[e])/2?r=e:i>=t[e]&&i<t[e+1]&&(r=e+1):i>=t[e]&&(r=e);return n.normalizeSlideIndex&&(r<0||void 0===r)&&(r=0),r}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(r.slidesPerGroupSkip,u);l=e+Math.floor((u-e)/r.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),u===o&&!t.params.loop)return void(l!==s&&(t.snapIndex=l,t.emit("snapIndexChange")));if(u===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(u));const d=t.grid&&r.grid&&r.grid.rows>1;let p;if(t.virtual&&r.virtual.enabled&&r.loop)p=c(u);else if(d){const e=t.slides.find((e=>e.column===u));let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),p=Math.floor(n/r.grid.rows)}else if(t.slides[u]){const e=t.slides[u].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):u}else p=u;Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:a,realIndex:p,previousIndex:o,activeIndex:u}),t.initialized&&F(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,i=n.params;let r=e.closest(`.${i.slideClass}, swiper-slide`);!r&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!r&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(r=e)}));let o,a=!1;if(r)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===r){a=!0,o=e;break}if(!r||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=r,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};function H(e){let{swiper:t,runCallbacks:n,direction:i,step:r}=e;const{activeIndex:o,previousIndex:a}=t;let s=i;if(s||(s=o>a?"next":o<a?"prev":"reset"),t.emit(`transition${r}`),n&&o!==a){if("reset"===s)return void t.emit(`slideResetTransition${r}`);t.emit(`slideChangeTransition${r}`),"next"===s?t.emit(`slideNextTransition${r}`):t.emit(`slidePrevTransition${r}`)}}var W={slideTo:function(e,t,n,i,r){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const o=this;let a=e;a<0&&(a=0);const{params:s,snapGrid:l,slidesGrid:u,previousIndex:c,activeIndex:d,rtlTranslate:p,wrapperEl:h,enabled:f}=o;if(!f&&!i&&!r||o.destroyed||o.animating&&s.preventInteractionOnTransition)return!1;void 0===t&&(t=o.params.speed);const g=Math.min(o.params.slidesPerGroupSkip,a);let v=g+Math.floor((a-g)/o.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const y=-l[v];
vendor: 7,108 bytes, line 2
2if(s.normalizeSlideIndex)for(let e=0;e<u.length;e+=1){const t=-Math.floor(100*y),n=Math.floor(100*u[e]),i=Math.floor(100*u[e+1]);void 0!==u[e+1]?t>=n&&t<i-(i-n)/2?a=e:t>=n&&t<i&&(a=e+1):t>=n&&(a=e)}if(o.initialized&&a!==d){if(!o.allowSlideNext&&(p?y>o.translate&&y>o.minTranslate():y<o.translate&&y<o.minTranslate()))return!1;if(!o.allowSlidePrev&&y>o.translate&&y>o.maxTranslate()&&(d||0)!==a)return!1}let x;a!==(c||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(y),x=a>d?"next":a<d?"prev":"reset";const w=o.virtual&&o.params.virtual.enabled;if((!w||!r)&&(p&&-y===o.translate||!p&&y===o.translate))return o.updateActiveIndex(a),s.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==s.effect&&o.setTranslate(y),"reset"!==x&&(o.transitionStart(n,x),o.transitionEnd(n,x)),!1;if(s.cssMode){const e=o.isHorizontal(),n=p?y:-y;if(0===t)w&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),w&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{h[e?"scrollLeft":"scrollTop"]=n}))):h[e?"scrollLeft":"scrollTop"]=n,w&&requestAnimationFrame((()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1}));else{if(!o.support.smoothScroll)return m({swiper:o,targetPosition:n,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const _=O().isSafari;return w&&!r&&_&&o.isElement&&o.virtual.update(!1,!1,a),o.setTransition(t),o.setTranslate(y),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,i),o.transitionStart(n,x),0===t?o.transitionEnd(n,x):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,x))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,i){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const r=this;if(r.destroyed)return;void 0===t&&(t=r.params.speed);const o=r.grid&&r.params.grid&&r.params.grid.rows>1;let a=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)a+=r.virtual.slidesBefore;else{let e;if(o){const t=a*r.params.grid.rows;e=r.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)).column}else e=r.getSlideIndexByData(a);const t=o?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:n}=r.params;let s=r.params.slidesPerView;"auto"===s?s=r.slidesPerViewDynamic():(s=Math.ceil(parseFloat(r.params.slidesPerView,10)),n&&s%2==0&&(s+=1));let l=t-e<s;if(n&&(l=l||e<Math.ceil(s/2)),i&&n&&"auto"!==r.params.slidesPerView&&!o&&(l=!1),l){const i=n?e<r.activeIndex?"prev":"next":e-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:i,slideTo:!0,activeSlideIndex:"next"===i?e+1:e-t+1,slideRealIndex:"next"===i?r.realIndex:void 0})}if(o){const e=a*r.params.grid.rows;a=r.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)).column}else a=r.getSlideIndexByData(a)}return requestAnimationFrame((()=>{r.slideTo(a,t,n,i)})),r},slideNext:function(e,t,n){void 0===t&&(t=!0);const i=this,{enabled:r,params:o,animating:a}=i;if(!r||i.destroyed)return i;void 0===e&&(e=i.params.speed);let s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<o.slidesPerGroupSkip?1:s,u=i.virtual&&o.virtual.enabled;if(o.loop){if(a&&!u&&o.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&o.cssMode)return requestAnimationFrame((()=>{i.slideTo(i.activeIndex+l,e,t,n)})),!0}return o.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);const i=this,{params:r,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:l,animating:u}=i;if(!l||i.destroyed)return i;void 0===e&&(e=i.params.speed);const c=i.virtual&&r.virtual.enabled;if(r.loop){if(u&&!c&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=d(s?i.translate:-i.translate),h=o.map((e=>d(e))),f=r.freeMode&&r.freeMode.enabled;let g=o[h.indexOf(p)-1];if(void 0===g&&(r.cssMode||f)){let e;o.forEach(((t,n)=>{p>=t&&(e=n)})),void 0!==e&&(g=f?o[e]:o[e>0?e-1:e])}let m=0;if(void 0!==g&&(m=a.indexOf(g),m<0&&(m=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(m=m-i.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),r.rewind&&i.isBeginning){const r=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(r,e,t,n)}return r.loop&&0===i.activeIndex&&r.cssMode?(requestAnimationFrame((()=>{i.slideTo(m,e,t,n)})),!0):i.slideTo(m,e,t,n)},slideReset:function(e,t,n){void 0===t&&(t=!0);const i=this;if(!i.destroyed)return void 0===e&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,n)},slideToClosest:function(e,t,n,i){void 0===t&&(t=!0),void 0===i&&(i=.5);const r=this;if(r.destroyed)return;void 0===e&&(e=r.params.speed);let o=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[s]){const e=r.snapGrid[s];l-e>(r.snapGrid[s+1]-e)*i&&(o+=r.params.slidesPerGroup)}else{const e=r.snapGrid[s-1];l-e<=(r.snapGrid[s]-e)*i&&(o-=r.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,r.slidesGrid.length-1),r.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,o=e.clickedIndex;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?o<e.loopedSlides-i/2||o>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),o=e.getSlideIndex(y(n,`${a}[data-swiper-slide-index="${r}"]`)[0]),c((()=>{e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-i?(e.loopFix(),o=e.getSlideIndex(y(n,`${a}[data-swiper-slide-index="${r}"]`)[0]),c((()=>{e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}},j={loopCreate:function(e,t){const n=this,{params:i,slidesEl:r}=n;if(!i.loop||n.virtual&&n.params.virtual.enabled)return;const o=()=>{y(r,`.${i.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},a=n.grid&&i.grid&&i.grid.rows>1,s=i.slidesPerGroup*(a?i.grid.rows:1),l=n.slides.length%s!=0,u=a&&n.slides.length%i.grid.rows!=0,c=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?w("swiper-slide",[i.slideBlankClass]):w("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(e)}};l?(i.loopAddBlankSlides?(c(s-n.slides.length%s),n.recalcSlides(),n.updateSlides()):x("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may 
2not function properly. You need to add more slides (or make duplicates, or empty slides)"),o()):u?(i.loopAddBlankSlides?(c(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()):x("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),o()):o(),n.loopFix({slideRealIndex:e,direction:i.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:r,activeSlideIndex:o,initial:a,byController:s,byMousewheel:l}=void 0===e?{}:e;const u=this;if(!u.params.loop)return;u.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:p,slidesEl:h,params:f}=u,{centeredSlides:g,initialSlide:m}=f;if(u.allowSlidePrev=!0,u.allowSlideNext=!0,u.virtual&&f.virtual.enabled)return n&&(f.centeredSlides||0!==u.snapIndex?f.centeredSlides&&u.snapIndex<f.slidesPerView?u.slideTo(u.virtual.slides.length+u.snapIndex,0,!1,!0):u.snapIndex===u.snapGrid.length-1&&u.slideTo(u.virtual.slidesBefore,0,!1,!0):u.slideTo(u.virtual.slides.length,0,!1,!0)),u.allowSlidePrev=d,u.allowSlideNext=p,void u.emit("loopFix");let v=f.slidesPerView;"auto"===v?v=u.slidesPerViewDynamic():(v=Math.ceil(parseFloat(f.slidesPerView,10)),g&&v%2==0&&(v+=1));const y=f.slidesPerGroupAuto?v:f.slidesPerGroup;let w=y;w%y!=0&&(w+=y-w%y),w+=f.loopAdditionalSlides,u.loopedSlides=w;const _=u.grid&&f.grid&&f.grid.rows>1;c.length<v+w||"cards"===u.params.effect&&c.length<v+2*w?x("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):_&&"row"===f.grid.fill&&x("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const b=[],S=[],M=_?Math.ceil(c.length/f.grid.rows):c.length,T=a&&M-m<v&&!g;let C=T?m:u.activeIndex;void 0===o?o=u.getSlideIndex(c.find((e=>e.classList.contains(f.slideActiveClass)))):C=o;const I="next"===i||!i,A="prev"===i||!i;let D=0,k=0;const L=(_?c[o].column:o)+(g&&void 0===r?-v/2+.5:0);if(L<w){D=Math.max(w-L,y);for(let e=0;e<w-L;e+=1){const t=e-Math.floor(e/M)*M;if(_){const e=M-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&b.push(t)}else b.push(M-t-1)}}else if(L+v>M-w){k=Math.max(L-(M-2*w),y),T&&(k=Math.max(k,v-M+m+1));for(let e=0;e<k;e+=1){const t=e-Math.floor(e/M)*M;_?c.forEach(((e,n)=>{e.column===t&&S.push(n)})):S.push(t)}}if(u.__preventObserver__=!0,requestAnimationFrame((()=>{u.__preventObserver__=!1})),"cards"===u.params.effect&&c.length<v+2*w&&(S.includes(o)&&S.splice(S.indexOf(o),1),b.includes(o)&&b.splice(b.indexOf(o),1)),A&&b.forEach((e=>{c[e].swiperLoopMoveDOM=!0,h.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}
vendor: 7,771 bytes, line 2
2)),I&&S.forEach((e=>{c[e].swiperLoopMoveDOM=!0,h.append(c[e]),c[e].swiperLoopMoveDOM=!1})),u.recalcSlides(),"auto"===f.slidesPerView?u.updateSlides():_&&(b.length>0&&A||S.length>0&&I)&&u.slides.forEach(((e,t)=>{u.grid.updateSlide(t,e,u.slides)})),f.watchSlidesProgress&&u.updateSlidesOffset(),n)if(b.length>0&&A){if(void 0===t){const e=u.slidesGrid[C],t=u.slidesGrid[C+D]-e;l?u.setTranslate(u.translate-t):(u.slideTo(C+Math.ceil(D),0,!1,!0),r&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-t,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-t))}else if(r){const e=_?b.length/f.grid.rows:b.length;u.slideTo(u.activeIndex+e,0,!1,!0),u.touchEventsData.currentTranslate=u.translate}}else if(S.length>0&&I)if(void 0===t){const e=u.slidesGrid[C],t=u.slidesGrid[C-k]-e;l?u.setTranslate(u.translate-t):(u.slideTo(C-k,0,!1,!0),r&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-t,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-t))}else{const e=_?S.length/f.grid.rows:S.length;u.slideTo(u.activeIndex-e,0,!1,!0)}if(u.allowSlidePrev=d,u.allowSlideNext=p,u.controller&&u.controller.control&&!s){const e={slideRealIndex:t,direction:i,setTranslate:r,activeSlideIndex:o,byController:!0};Array.isArray(u.controller.control)?u.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===f.slidesPerView&&n})})):u.controller.control instanceof u.constructor&&u.controller.control.params.loop&&u.controller.control.loopFix({...e,slideTo:u.controller.control.params.slidesPerView===f.slidesPerView&&n})}u.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),i.forEach((e=>{n.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function $(e,t,n){const i=l(),{params:r}=e,o=r.edgeSwipeDetection,a=r.edgeSwipeThreshold;return!o||!(n<=a||n>=i.innerWidth-a)||"prevent"===o&&(t.preventDefault(),!0)}function Y(e){const t=this,n=a();let i=e;i.originalEvent&&(i=i.originalEvent);const r=t.touchEventsData;if("pointerdown"===i.type){if(null!==r.pointerId&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(r.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void $(t,i,i.targetTouches[0].pageX);const{params:o,touches:s,enabled:u}=t;if(!u)return;if(!o.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let c=i.target;if("wrapper"===o.touchEventsTarget&&!function(e,t){const n=l();let i=t.contains(e);return!i&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(i=[...t.assignedElements()].includes(e),i||(i=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t))),i}(c,t.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(r.isTouched&&r.isMoved)return;const p=!!o.noSwipingClass&&""!==o.noSwipingClass,h=i.composedPath?i.composedPath():i.path;p&&i.target&&i.target.shadowRoot&&h&&(c=h[0]);const f=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,g=!(!i.target||!i.target.shadowRoot);if(o.noSwiping&&(g?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===a()||n===l())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(f,c):c.closest(f)))return void(t.allowClick=!0);if(o.swipeHandler&&!c.closest(o.swipeHandler))return;s.currentX=i.pageX,s.currentY=i.pageY;const m=s.currentX,v=s.currentY;if(!$(t,i,m))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=m,s.startY=v,r.touchStartTime=d(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(r.allowThresholdMove=!1);let y=!0;c.matches(r.focusableElements)&&(y=!1,"SELECT"===c.nodeName&&(r.isTouched=!1)),n.activeElement&&n.activeElement.matches(r.focusableElements)&&n.activeElement!==c&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!c.matches(r.focusableElements))&&n.activeElement.blur();const x=y&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!x||c.isContentEditable||i.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function X(e){const t=a(),n=this,i=n.touchEventsData,{params:r,touches:o,rtlTranslate:s,enabled:l}=n;if(!l)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let u,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==i.touchId)return;if(c.pointerId!==i.pointerId)return}if("touchmove"===c.type){if(u=[...c.changedTouches].find((e=>e.identifier===i.touchId)),!u||u.identifier!==i.touchId)return}else u=c;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",c));const p=u.pageX,h=u.pageY;if(c.preventedByNestedSwiper)return o.startX=p,void(o.startY=h);if(!n.allowTouchMove)return c.target.matches(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(o,{startX:p,startY:h,currentX:p,currentY:h}),i.touchStartTime=d()));if(r.touchReleaseOnEdges&&!r.loop)if(n.isVertical()){if(h<o.startY&&n.translate<=n.maxTranslate()||h>o.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else{if(s&&(p>o.startX&&-n.translate<=n.maxTranslate()||p<o.startX&&-n.translate>=n.minTranslate()))return;if(!s&&(p<o.startX&&n.translate<=n.maxTranslate()||p>o.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);i.allowTouchCallbacks&&n.emit("touchMove",c),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=p,o.currentY=h;const f=o.currentX-o.startX,g=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(f**2+g**2)<n.params.threshold)return;if(void 0===i.isScrolling){let e;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?i.isScrolling=!1:f*f+g*g>=25&&(e=180*Math.atan2(Math.abs(g),Math.abs(f))/Math.PI,i.isScrolling=n.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",c),void 0===i.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===c.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation();let m=n.isHorizontal()?f:g,v=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;r.oneWayMovement&&(m=Math.abs(m)*(s?1:-1),v=Math.abs(v)*(s?1:-1)),o.diff=m,m*=r.touchRatio,s&&(m=-m,v=-v);const y=n.touchesDirection;n.swipeDirection=m>0?"prev":"next",n.touchesDirection=v>0?"prev":"next";const x=n.params.loop&&!r.cssMode,w="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!i.isMoved){if(x&&w&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});
vendor: 2,162 bytes, line 2
2n.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!r.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==r._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&y!==n.touchesDirection&&x&&w&&Math.abs(m)>=1)return Object.assign(o,{startX:p,startY:h,currentX:p,currentY:h,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);n.emit("sliderMove",c),i.isMoved=!0,i.currentTranslate=m+i.startTranslate;let _=!0,b=r.resistanceRatio;if(r.touchReleaseOnEdges&&(b=0),m>0?(x&&w&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==r.slidesPerView&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(_=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+m)**b))):m<0&&(x&&w&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==r.slidesPerView&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===r.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(_=!1,r.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-m)**b))),_&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(m)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);
vendor: 4,874 bytes, line 2
2if(!i.allowThresholdMove)return i.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,i.currentTranslate=i.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function q(e){const t=this,n=t.touchEventsData;let i,r=e;if(r.originalEvent&&(r=r.originalEvent),"touchend"===r.type||"touchcancel"===r.type){if(i=[...r.changedTouches].find((e=>e.identifier===n.touchId)),!i||i.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&(!["pointercancel","contextmenu"].includes(r.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:s,slidesGrid:l,enabled:u}=t;if(!u)return;if(!o.simulateTouch&&"mouse"===r.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const p=d(),h=p-n.touchStartTime;if(t.allowClick){const e=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(e&&e[0]||r.target,e),t.emit("tap click",r),h<300&&p-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=d(),c((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===a.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let f;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,f=o.followFinger?s?t.translate:-t.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:f});const g=f>=-t.maxTranslate()&&!t.params.loop;let m=0,v=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<o.slidesPerGroupSkip?1:o.slidesPerGroup){const t=e<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==l[e+t]?(g||f>=l[e]&&f<l[e+t])&&(m=e,v=l[e+t]-l[e]):(g||f>=l[e])&&(m=e,v=l[l.length-1]-l[l.length-2])}let y=null,x=null;o.rewind&&(t.isBeginning?x=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(y=0));const w=(f-l[m])/v,_=m<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(h>o.longSwipesMs){if(!o.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(w>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?y:m+_):t.slideTo(m)),"prev"===t.swipeDirection&&(w>1-o.longSwipesRatio?t.slideTo(m+_):null!==x&&w<0&&Math.abs(w)>o.longSwipesRatio?t.slideTo(x):t.slideTo(m))}else{if(!o.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||r.target!==t.navigation.nextEl&&r.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==y?y:m+_),"prev"===t.swipeDirection&&t.slideTo(null!==x?x:m)):r.target===t.navigation.nextEl?t.slideTo(m+_):t.slideTo(m)}}function U(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=a&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function Z(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function K(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let r;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();r=0===o?0:(e.translate-e.minTranslate())/o,r!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function J(e){const t=this;B(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update(
vendor: 5,155 bytes, line 2
2)}function Q(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const ee=(e,t)=>{const n=a(),{params:i,el:r,wrapperEl:o,device:s}=e,l=!!i.nested,u="on"===t?"addEventListener":"removeEventListener",c=t;r&&"string"!=typeof r&&(n[u]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:l}),r[u]("touchstart",e.onTouchStart,{passive:!1}),r[u]("pointerdown",e.onTouchStart,{passive:!1}),n[u]("touchmove",e.onTouchMove,{passive:!1,capture:l}),n[u]("pointermove",e.onTouchMove,{passive:!1,capture:l}),n[u]("touchend",e.onTouchEnd,{passive:!0}),n[u]("pointerup",e.onTouchEnd,{passive:!0}),n[u]("pointercancel",e.onTouchEnd,{passive:!0}),n[u]("touchcancel",e.onTouchEnd,{passive:!0}),n[u]("pointerout",e.onTouchEnd,{passive:!0}),n[u]("pointerleave",e.onTouchEnd,{passive:!0}),n[u]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[u]("click",e.onClick,!0),i.cssMode&&o[u]("scroll",e.onScroll),i.updateOnWindowResize?e[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",U,!0):e[c]("observerUpdate",U,!0),r[u]("load",e.onLoad,{capture:!0}))},te=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var ne={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function ie(e,t){return function(n){void 0===n&&(n={});const i=Object.keys(n)[0],r=n[i];"object"==typeof r&&null!==r?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in r?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),f(t,n)):f(t,n)):f(t,n)}}const re={eventsEmitter:R,update:G,translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:i,wrapperEl:r}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let o=p(r,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:r,wrapperEl:o,progress:a}=n;let s,l=0,u=0;n.isHorizontal()?l=i?-e:e:u=e,r.roundLengths&&(l=Math.floor(l),u=Math.floor(u)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:u,r.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-u:r.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():u-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${u}px, 0px)`);const c=n.maxTranslate()-n.minTranslate();s=0===c?0:(e-n.minTranslate())/c,s!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,i,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===i&&(i=!0);const o=this,{params:a,wrapperEl:s}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),u=o.maxTranslate();let c;if(c=i&&e>l?l:i&&e<u?u:e,o.updateProgress(c),a.cssMode){const e=o.isHorizontal();if(0===t)s[e?"scrollLeft":"scrollTop"]=-c;else{if(!o.support.smoothScroll)return m({swiper:o,targetPosition:-c,side:e?"left"
vendor: 4,244 bytes, line 2
2:"top"}),!0;s.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(c),n&&(o.emit("beforeTransitionStart",t,r),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(c),n&&(o.emit("beforeTransitionStart",t,r),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),H({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;n.animating=!1,i.cssMode||(n.setTransition(0),H({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:W,loop:j,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=Y.bind(e),e.onTouchMove=X.bind(e),e.onTouchEnd=q.bind(e),e.onDocumentTouchStart=Q.bind(e),t.cssMode&&(e.onScroll=K.bind(e)),e.onClick=Z.bind(e),e.onLoad=J.bind(e),ee(e,"on")},detachEvents:function(){ee(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:r}=e,o=i.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const s=a(),l="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,u=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:s.querySelector(i.breakpointsBase),c=e.getBreakpoint(o,l,u);if(!c||e.currentBreakpoint===c)return;const d=(c in o?o[c]:void 0)||e.originalParams,p=te(e,i),h=te(e,d),g=e.params.grabCursor,m=d.grabCursor,v=i.enabled;p&&!h?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!p&&h&&(r.classList.add(`${i.containerModifierClass}grid`),(d.grid.fill&&"column"===d.grid.fill||!d.grid.fill&&"column"===i.grid.fill)&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),g&&!m?e.unsetGrabCursor():!g&&m&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===d[t])return;const n=i[t]&&i[t].enabled,r=d[t]&&d[t].enabled;n&&!r&&e[t].disable(),!n&&r&&e[t].enable()}));const y=d.direction&&d.direction!==i.direction,x=i.loop&&(d.slidesPerView!==i.slidesPerView||y),w=i.loop;y&&n&&e.changeDirection(),f(e.params,d);const _=e.params.enabled,b=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),v&&!_?e.disable():!v&&_&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",d),n&&(x?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!w&&b?(e.loopCreate(t),e.updateSlides()):w&&!b&&e.loopDestroy()),e.emit("breakpoint",d)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let i=!1;const r=l(),o="window"===t?r.innerHeight:n.clientHeight,a=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>
vendor: 2,366 bytes, line 2
2parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<a.length;e+=1){const{point:o,value:s}=a[e];"window"===t?r.matchMedia(`(min-width: ${s}px)`).matches&&(i=o):s<=n.clientWidth&&(i=o)}return i||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,el:r,device:o}=e,a=function(e,t){const n=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((i=>{e[i]&&n.push(t+i)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),r.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},oe={};class ae{constructor(){let e,t;for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];1===i.length&&i[0].constructor&&"Object"===Object.prototype.toString.call(i[0]).slice(8,-1)?t=i[0]:[e,t]=i,t||(t={}),t=f({},t),e&&!t.el&&(t.el=e);const o=a();if(t.el&&"string"==typeof t.el&&o.querySelectorAll(t.el).length>1){const e=[];return o.querySelectorAll(t.el).forEach((n=>{const i=f({},t,{el:n});e.push(new ae(i))})),e}const s=this;s.__swiper__=!0,s.support=E(),s.device=P({userAgent:t.userAgent}),s.browser=O(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],t.modules&&Array.isArray(t.modules)&&s.modules.push(...t.modules);const l={};s.modules.forEach((e=>{e({params:t,swiper:s,extendParams:ie(t,l),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})}));const u=f({},ne,l);return s.params=f({},u,oe,t),s.originalParams=f({},s.params),s.passedParams=f({}
vendor: 4,597 bytes, line 2
2,t),s.params&&s.params.on&&Object.keys(s.params.on).forEach((e=>{s.on(e,s.params.on[e])})),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=S(y(t,`.${n.slideClass}, swiper-slide`)[0]);return S(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)))}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=y(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),r=(n.maxTranslate()-i)*e+i;n.translateTo(r,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((n=>{const i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:i,slidesGrid:r,slidesSizesGrid:o,size:a,activeIndex:s}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=i[s]?Math.ceil(i[s].swiperSlideSize):0;for(let n=s+1;n<i.length;n+=1)i[n]&&!e&&(t+=Math.ceil(i[n].swiperSlideSize),l+=1,t>a&&(e=!0));for(let n=s-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=s+1;e<i.length;e+=1)(t?r[e]+o[e]-r[s]<a:r[e]-r[s]<a)&&(l+=1);else for(let e=s-1;e>=0;e-=1)r[s]-r[e]<a&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&B(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(t.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||i()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEac
vendor: 3,444 bytes, line 2
2h((t=>{"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):y(n,i())[0];return!r&&t.params.createElements&&(r=w("div",t.params.wrapperClass),n.append(r),y(n,`.${t.params.slideClass}`).forEach((e=>{r.append(e)}))),Object.assign(t,{el:n,wrapperEl:r,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:r,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===b(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===b(n,"direction")),wrongRTL:"-webkit-box"===b(r,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach((e=>{e.complete?B(t,e):e.addEventListener("load",(e=>{B(t,e.target)}))})),F(t),t.initialized=!0,F(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:i,el:r,wrapperEl:o,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),r&&"string"!=typeof r&&r.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach((e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){f(oe,e)}static get extendedDefaults(){return oe}static get defaults(){return ne}static installModule(e){ae.prototype.__modules__||(ae.prototype.__modules__=[]);const t=ae.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>ae.installModule(e))),ae):(ae.installModule(e),ae)}}function se(e,t,n,i){return e.params.createElements&&Object.keys(i).forEac
vendor: 8,267 bytes, line 2
2h((r=>{if(!n[r]&&!0===n.auto){let o=y(e.el,`.${i[r]}`)[0];o||(o=w("div",i[r]),o.className=i[r],e.el.append(o)),n[r]=o,t[r]=o}})),n}function le(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function ue(e){const t=this,{params:n,slidesEl:i}=t;n.loop&&t.loopDestroy();const r=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,i.append(t.children[0]),t.innerHTML=""}else i.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&r(e[t]);else r(e);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update()}function ce(e){const t=this,{params:n,activeIndex:i,slidesEl:r}=t;n.loop&&t.loopDestroy();let o=i+1;const a=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,r.prepend(t.children[0]),t.innerHTML=""}else r.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&a(e[t]);o=i+e.length}else a(e);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update(),t.slideTo(o,0,!1)}function de(e,t){const n=this,{params:i,activeIndex:r,slidesEl:o}=n;let a=r;i.loop&&(a-=n.loopedSlides,n.loopDestroy(),n.recalcSlides());const s=n.slides.length;if(e<=0)return void n.prependSlide(t);if(e>=s)return void n.appendSlide(t);let l=a>e?a+1:a;const u=[];for(let t=s-1;t>=e;t-=1){const e=n.slides[t];e.remove(),u.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&o.append(t[e]);l=a>e?a+t.length:a}else o.append(t);for(let e=0;e<u.length;e+=1)o.append(u[e]);n.recalcSlides(),i.loop&&n.loopCreate(),i.observer&&!n.isElement||n.update(),i.loop?n.slideTo(l+n.loopedSlides,0,!1):n.slideTo(l,0,!1)}function pe(e){const t=this,{params:n,activeIndex:i}=t;let r=i;n.loop&&(r-=t.loopedSlides,t.loopDestroy());let o,a=r;if("object"==typeof e&&"length"in e){for(let n=0;n<e.length;n+=1)o=e[n],t.slides[o]&&t.slides[o].remove(),o<a&&(a-=1);a=Math.max(a,0)}else o=e,t.slides[o]&&t.slides[o].remove(),o<a&&(a-=1),a=Math.max(a,0);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update(),n.loop?t.slideTo(a+t.loopedSlides,0,!1):t.slideTo(a,0,!1)}function he(){const e=this,t=[];for(let n=0;n<e.slides.length;n+=1)t.push(n);e.removeSlide(t)}function fe(e){const{effect:t,swiper:n,on:i,setTranslate:r,setTransition:o,overwriteParams:a,perspective:s,recreateShadows:l,getEffectParams:u}=e;let c;i("beforeInit",(()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),s&&s()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const e=a?a():{};Object.assign(n.params,e),Object.assign(n.originalParams,e)})),i("setTranslate",(()=>{n.params.effect===t&&r()})),i("setTransition",((e,i)=>{n.params.effect===t&&o(i)})),i("transitionEnd",(()=>{if(n.params.effect===t&&l){if(!u||!u().slideShadows)return;n.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),l()}})),i("virtualUpdate",(()=>{n.params.effect===t&&(n.slides.length||(c=!0),requestAnimationFrame((()=>{c&&n.slides&&n.slides.length&&(r(),c=!1)})))}))}function ge(e,t){const n=v(t);return n!==t&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function me(e){let{swiper:t,duration:n,transformElements:i,allSlides:r}=e;const{activeIndex:o}=t;if(t.params.virtualTranslate&&0!==n){let e,n=!1;e=r?i:i.filter((e=>{const n=e.classList.contains("swiper-slide-transform")?(e=>e.parentElement?e.parentElement:t.slides.find((t=>t.shadowRoot&&t.shadowRoot===e.parentNode)))(e):e;return t.getSlideIndex(n)===o})),e.forEach((e=>{T(e,(()=>{if(n)return;if(!t||t.destroyed)return;n=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}function ve(e,t,n){const i=`swiper-slide-shadow${n?`-${n}`:""}${e?` swiper-slide-shadow-${e}`:""}`,r=v(t);let o=r.querySelector(`.${i.split(" ").join(".")}`);return o||(o=w("div",i.split(" ")),r.append(o)),o}Object.keys(re).forEach((e=>{Object.keys(re[e]).forEach((t=>{ae.prototype[t]=re[e][t]}))})),ae.use([function(e){let{swiper:t,on:n,emit:i}=e;const r=l();let o=null,a=null;const s=()=>{t&&!t.destroyed&&t.initialized&&(i("beforeResize"),i("resize"))},u=()=>{t&&!t.destroyed&&t.initialized&&i("orientationchange")};n("init",(()=>{t.params.resizeObserver&&void 0!==r.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver((e=>{a=r.requestAnimationFrame((()=>{const{width:n,height:i}=t;let r=n,o=i;e.forEach((e=>{let{contentBoxSize:n,contentRect:i,target:a}=e;a&&a!==t.el||(r=i?i.width:(n[0]||n).inlineSize,o=i?i.height:(n[0]||n).blockSize)})),r===n&&o===i||s()}))})),o.observe(t.el)):(r.addEventListener("resize",s),r.addEventListener("orientationchange",u))})),n("destroy",(()=>{a&&r.cancelAnimationFrame(a),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),r.removeEventListener("resize",s),r.removeEventListener("orientationchange",u)}))},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const o=[],a=l(),s=function(e,n){void 0===n&&(n={});const i=new(a.MutationObserver||a.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void r("observerUpdate",e[0]);const n=function(){r("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)}));i.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:t.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),o.push(i)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=M(t.hostEl);for(let t=0;t<e.length;t+=1)s(e[t])}s(t.hostEl,{childList:t.params.observeSlideChildren}),s(t.wrapperEl,{attributes:!1})}})),i("destroy",(()=>{o.forEach((e=>{e.disconnect()})),o.splice(0,o.length)}))}]);const ye=[function(e){let t,{swiper:n,extendParams:i,on:r,emit:o}=e;i({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const s=a();n.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const l=s.createElement("div");function u(e,t){const i=n.params.virtual;if(i.cache&&n.virtual.cache[t])return n.virtual.cache[t];let r;return i.renderSlide?(r=i.renderSlide.call(n,e,t),"string"==typeof r&&(l.innerHTML=r,r=l.children[0])):r=n.isElement?w("swiper-slide"):w("div",n.params.slideClass),r.setAttribute("data-swiper-slide-index",t),i.renderSlide||(r.innerHTML=e),i.cache&&(n.virtual.cache[t]=r),r}function c(e,t,i){const{slidesPerView:r,slidesPerGroup:a,centeredSlides:s,loop:l,initialSlide:c}=n.params;if(t&&!l&&c>0)return;const{addSlidesBefore:d,addSlidesAfter:p}=n.params.virtual,{from:h,to:f,slides:g,slidesGrid:m,offset:v}=n.virtual;n.params.cssMode||n.updateActiveIndex();const x=void 0===i?n.activeIndex||0:i;let w,_,b;w=n.rtlTranslate?"right":n.isHorizontal()?"left":"top",s?(_=Math.floor(r/2)+a+p,b=Math.floor(r/2)+a+d):(_=r+(a-1)+p,b=(l?r:a)+d);let S=x-b,M=x+_;l||(S=Math.max(S,0),M=Math.min(M,g.length-1));let T=(n.slidesGrid[S]||0)-(n.slidesGrid[0]||0);function C(){n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),o("virtualUpdate")}if(l&&x>=b?(S-=b,s||(T+=n.slidesGrid[0])):l&&x<b&&(S=-b,s&&(T+=n.slidesGrid[0])),Object.assign(n.virtual,{from:S,to:M,offset:T,slidesGrid:n.slidesGrid,slidesBefore:b,slidesAfter:_}),h===S&&f===M&&!e)return n.slidesGrid!==m&&T!==v&&n.slides.forEach((e=>{e.style[w]=T-Math.abs(n.cssOverflowAdjustment())+"px"})),n.updateProgress(),void o("virtualUpdate");if(n.params.virtual.renderExternal)return n.params.virtual.renderExternal.call(n,{offset:T,from:S,to:M,slides:function(){const e=[];for(let t=S;t<=M;t+=1)e.push(g[t]);return e}()}),void(n.params.virtual.renderExternalUpdate?C():o("virtualUpdate"));const I=[],A=[],D=e=>{let t=e;return e<0?t=g.length+e:t>=g.length&&(t-=g.length),t};if(e)n.slides.filter((e=>e.matches(`.${n.params.slideClass}, swiper-slide`))).forEach((e=>{e.remove()}));else for(let e=h;e<=f;e+=1)if(e<S||e>M){const t=D(e);n.slides.filter((e=>e.matches(`.${n.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}
2"]`))).forEach((e=>{e.remove()}))}const k=l?-g.length:0,L=l?2*g.length:g.length;for(let t=k;t<L;t+=1)if(t>=S&&t<=M){const n=D(t);void 0===f||e?A.push(n):(t>f&&A.push(n),t<h&&I.push(n))}if(A.forEach((e=>{n.slidesEl.append(u(g[e],e))})),l)for(let e=I.length-1;e>=0;e-=1){const t=I[e];n.slidesEl.prepend(u(g[t],t))}else I.sort(((e,t)=>t-e)),I.forEach((e=>{n.slidesEl.prepend(u(g[e],e))}));y(n.slidesEl,".swiper-slide, swiper-slide").forEach((e=>{e.style[w]=T-Math.abs(n.cssOverflowAdjustment())+"px"})),C()}r("beforeInit",(()=>{if(!n.params.virtual.enabled)return;let e;if(void 0===n.passedParams.virtual.slides){const t=[...n.slidesEl.children].filter((e=>e.matches(`.${n.params.slideClass}, swiper-slide`)));t&&t.length&&(n.virtual.slides=[...t],e=!0,t.forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t),n.virtual.cache[t]=e,e.remove()})))}e||(n.virtual.slides=n.params.virtual.slides),n.classNames.push(`${n.params.containerModifierClass}virtual`),n.params.watchSlidesProgress=!0,n.originalParams.watchSlidesProgress=!0,c(!1,!0)})),r("setTranslate",(()=>{n.params.virtual.enabled&&(n.params.cssMode&&!n._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{c()}),100)):c())})),r("init update resize",(()=>{n.params.virtual.enabled&&n.params.cssMode&&g(n.wrapperEl,"--swiper-virtual-size",`${n.virtualSize}px`)})),Object.assign(n.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&n.virtual.slides.push(e[t]);else n.virtual.slides.push(e);c(!0)},prependSlide:function(e){const t=n.activeIndex;let i=t+1,r=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&n.virtual.slides.unshift(e[t]);i=t+e.length,r=e.length}else n.virtual.slides.unshift(e);if(n.params.virtual.cache){const e=n.virtual.cache,t={};Object.keys(e).forEach((n=>{const i=e[n],o=i.getAttribute("data-swiper-slide-index");o&&i.setAttribute("data-swiper-slide-index",parseInt(o,10)+r),t[parseInt(n,10)+r]=i})),n.virtual.cache=t}c(!0),n.slideTo(i,0)},removeSlide:function(e){if(null==e)return;let t=n.activeIndex;if(Array.isArray(e))for(let i=e.length-1;i>=0;i-=1)n.params.virtual.cache&&(delete n.virtual.cache[e[i]],Object.keys(n.virtual.cache).forEach((t=>{t>e&&(n.virtual.cache[t-1]=n.virtual.cache[t],n.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete n.virtual.cache[t])}))),n.virtual.slides.splice(e[i],1),e[i]<t&&(t-=1),t=Math.max(t,0);else n.params.virtual.cache&&(delete n.virtual.cache[e],Object.keys(n.virtual.cache).forEach((t=>{t>e&&(n.virtual.cache[t-1]=n.virtual.cache[t],n.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete n.virtual.cache[t])}))),n.virtual.slides.splice(e,1),e<t&&(t-=1),t=Math.max(t,0);c(!0),n.slideTo(t,0)},removeAllSlides:function(){n.virtual.slides=[],n.params.virtual.cache&&(n.virtual.cache={}),c(!0),n.slideTo(0,0)},update:c})},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const o=a(),s=l();function u(e){if(!t.enabled)return;const{rtlTranslate:n}=t;let i=e;i.originalEvent&&(i=i.originalEvent);const a=i.keyCode||i.charCode,l=t.params.keyboard.pageUpDown,u=l&&33===a,c=l&&34===a,d=37===a,p=39===a,h=38===a,f=40===a;if(!t.allowSlideNext&&(t.isHorizontal()&&p||t.isVertical()&&f||c))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&d||t.isVertical()&&h||u))return!1;if(!(i.shiftKey||i.altKey||i.ctrlKey||i.metaKey||o.activeElement&&o.activeElement.nodeName&&("input"===o.activeElement.nodeName.toLowerCase()||"textarea"===o.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(u||c||d||p||h||f)){let e=!1;if(M(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===M(t.el,`.${t.params.slideActiveClass}`).length)return;const i=t.el,r=i.clientWidth,o=i.clientHeight,a=s.innerWidth,l=s.innerHeight,u=_(i);n&&(u.left-=i.scrollLeft);const c=[[u.left,u.top],[u.left+r,u.top],[u.left,u.top+o],[u.left+r,u.top+o]];for(let t=0;t<c.length;t+=1){const n=c[t];if(n[0]>=0&&n[0]<=a&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((u||c||d||p)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),((c||p)&&!n||(u||d)&&n)&&t.slideNext(),((u||d)&&!n||(c||p)&&n)&&t.slidePrev()):((u||c||h||f)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),(c||f)&&t.slideNext(),(u||h)&&t.slidePrev()),r("keyPress",a)}}function c(){t.keyboard.enabled||(o.addEventListener("keydown",u),t.keyboard.enabled=!0)}function d(){t.keyboard.enabled&&(o.removeEventListener("keydown",u),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",(()=>{t.params.keyboard.enabled&&c()})),i("destroy",(()=>{t.keyboard.enabled&&d()})),Object.assign(t.keyboard,{enable:c,disable:d})},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const o=l();let a;n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let s,u=d();const p=[];function h(){t.enabled&&(t.mouseEntered=!0)}function f(){t.enabled&&(t.mouseEntered=!1)}function g(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&d()-u<t.params.mousewheel.thresholdTime||!(e.delta>=6&&d()-u<60)&&(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),r("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),r("scroll",e.raw)),u=(new o.Date).getTime(),1))}function m(e){let n=e,i=!0;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const o=t.params.mousewheel;t.params.cssMode&&n.preventDefault();let l=t.el;"container"!==t.params.mousewheel.eventsTarget&&(l=document.querySelector(t.params.mousewheel.eventsTarget));const u=l&&l.contains(n.target);if(!t.mouseEntered&&!u&&!o.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let h=0;const f=t.rtlTranslate?-1:1,m=function(e){let t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120
vendor: 4,787 bytes, line 2
2),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),e.shiftKey&&!i&&(i=r,r=0),(i||r)&&e.deltaMode&&(1===e.deltaMode?(i*=40,r*=40):(i*=800,r*=800)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}(n);if(o.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(m.pixelX)>Math.abs(m.pixelY)))return!0;h=-m.pixelX*f}else{if(!(Math.abs(m.pixelY)>Math.abs(m.pixelX)))return!0;h=-m.pixelY}else h=Math.abs(m.pixelX)>Math.abs(m.pixelY)?-m.pixelX*f:-m.pixelY;if(0===h)return!0;o.invert&&(h=-h);let v=t.getTranslate()+h*o.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),i=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),i&&t.params.nested&&n.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:d(),delta:Math.abs(h),direction:Math.sign(h)},i=s&&e.time<s.time+500&&e.delta<=s.delta&&e.direction===s.direction;if(!i){s=void 0;let l=t.getTranslate()+h*o.sensitivity;const u=t.isBeginning,d=t.isEnd;if(l>=t.minTranslate()&&(l=t.minTranslate()),l<=t.maxTranslate()&&(l=t.maxTranslate()),t.setTransition(0),t.setTranslate(l),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!u&&t.isBeginning||!d&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(a),a=void 0,p.length>=15&&p.shift();const n=p.length?p[p.length-1]:void 0,i=p[0];if(p.push(e),n&&(e.delta>n.delta||e.direction!==n.direction))p.splice(0);else if(p.length>=15&&e.time-i.time<500&&i.delta-e.delta>=1&&e.delta<=6){const n=h>0?.8:.2;s=e,p.splice(0),a=c((()=>{!t.destroyed&&t.params&&t.slideToClosest(t.params.speed,!0,void 0,n)}),0)}a||(a=c((()=>{!t.destroyed&&t.params&&(s=e,p.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5))}),500))}if(i||r("scroll",n),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),o.releaseOnEdges&&(l===t.minTranslate()||l===t.maxTranslate()))return!0}}else{const n={time:d(),delta:Math.abs(h),direction:Math.sign(h),raw:e};p.length>=2&&p.shift();const i=p.length?p[p.length-1]:void 0;if(p.push(n),i?(n.direction!==i.direction||n.delta>i.delta||n.time>i.time+150)&&g(n):g(n),function(e){const n=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&n.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function v(e){let n=t.el;"container"!==t.params.mousewheel.eventsTarget&&(n=document.querySelector(t.params.mousewheel.eventsTarget)),n[e]("mouseenter",h),n[e]("mouseleave",f),n[e]("wheel",m)}function y(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",m),!0):!t.mousewheel.enabled&&(v("addEventListener"),t.mousewheel.enabled=!0,!0)}function x(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,m),!0):!!t.mousewheel.enabled&&(v("removeEventListener"),t.mousewheel.enabled=!1,!0)}i("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&x(),t.params.mousewheel.enabled&&y()})),i("destroy",(()=>{t.params.cssMode&&y(),t.mousewheel.enabled&&x()})),Object.assign(t.mousewheel,{enable:y,disable:x})},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;function o(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e)||t.hostEl.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n?e:n)}function a(e,n){const i=t.params.navigation;(e=I(e)).forEach((e=>{e&&(e.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass))}))}function s(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return a(n,!1),void a(e,!1);a(n,t.isBeginning&&!t.params.rewind),a(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),r("navigationPrev"))}function u(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),r("navigationNext"))}function c(){const e=t.params.navigation;if(t.params.navigation=se(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=o(e.nextEl),i=o(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:i}),n=I(n),i=I(i);const r=(n,i)=>{n&&n.addEventListener("click","next"===i?u:l),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};
vendor: 5,432 bytes, line 2
2n.forEach((e=>r(e,"next"))),i.forEach((e=>r(e,"prev")))}function d(){let{nextEl:e,prevEl:n}=t.navigation;e=I(e),n=I(n);const i=(e,n)=>{e.removeEventListener("click","next"===n?u:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>i(e,"next"))),n.forEach((e=>i(e,"prev")))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},i("init",(()=>{!1===t.params.navigation.enabled?p():(c(),s())})),i("toEdge fromEdge lock unlock",(()=>{s()})),i("destroy",(()=>{d()})),i("enable disable",(()=>{let{nextEl:e,prevEl:n}=t.navigation;e=I(e),n=I(n),t.enabled?s():[...e,...n].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),i("click",((e,n)=>{let{nextEl:i,prevEl:o}=t.navigation;i=I(i),o=I(o);const a=n.target;let s=o.includes(a)||i.includes(a);if(t.isElement&&!s){const e=n.path||n.composedPath&&n.composedPath();e&&(s=e.find((e=>i.includes(e)||o.includes(e))))}if(t.params.navigation.hideOnClick&&!s){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;i.length?e=i[0].classList.contains(t.params.navigation.hiddenClass):o.length&&(e=o[0].classList.contains(t.params.navigation.hiddenClass)),r(!0===e?"navigationShow":"navigationHide"),[...i,...o].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),s()},disable:p,update:s,init:c,destroy:d})},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const o="swiper-pagination";let a;n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),t.pagination={el:null,bullets:[]};let s=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function u(e,n){const{bulletActiveClass:i}=t.params.pagination;e&&(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${i}-${n}`),(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&e.classList.add(`${i}-${n}-${n}`))}function c(e){const n=e.target.closest(le(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();const i=S(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===i)return;const e=(r=t.realIndex,o=i,(o%=a=t.slides.length)==1+(r%=a)?"next":o===r-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(i)}else t.slideTo(i);var r,o,a}function d(){const e=t.rtl,n=t.params.pagination;if(l())return;let i,o,c=t.pagination.el;c=I(c);const d=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,p=t.params.loop?Math.ceil(d/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(o=t.previousRealIndex||0,i=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(i=t.snapIndex,o=t.previousSnapIndex):(o=t.previousIndex||0,i=t.activeIndex||0),"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let l,d,p;if(n.dynamicBullets&&(a=C(r[0],t.isHorizontal()?"width":"height",!0),c.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=a*(n.dynamicMainBullets+4)+"px"})),n.dynamicMainBullets>1&&void 0!==o&&(s+=i-(o||0),s>n.dynamicMainBullets-1?s=n.dynamicMainBullets-1:s<0&&(s=0)),l=Math.max(i-s,0),d=l+(Math.min(r.length,n.dynamicMainBullets)-1),p=(d+l)/2),r.forEach((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${n.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),c.length>1)r.forEach((e=>{const r=S(e);r===i?e.classList.add(...n.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),n.dynamicBullets&&(r>=l&&r<=d&&e.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),r===l&&u(e,"prev"),r===d&&u(e,"next"))}));else{const e=r[i];if(e&&e.classList.add(...n.bulletActiveClass.split(" ")),t.isElement&&r.forEach(((e,t)=>{e.setAttribute("part",t===i?"bullet-active":"bullet")})),n.dynamicBullets){const e=r[l],t=r[d];for(let e=l;e<=d;e+=1)r[e]&&r[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));u(e,"prev"),u(t,"next")}}if(n.dynamicBullets){const i=Math.min(r.length,n.dynamicMainBullets+4),o=(a*i-a)/2-p*a,s=e?"right":"left";r.forEach((e=>{e.style[t.isHorizontal()?s:"top"]=`${o}px`}))}}c.forEach(((e,o)=>{if("fraction"===n.type&&(e.querySelectorAll(le(n.currentClass)).forEac
vendor: 8,061 bytes, line 2
2h((e=>{e.textContent=n.formatFractionCurrent(i+1)})),e.querySelectorAll(le(n.totalClass)).forEach((e=>{e.textContent=n.formatFractionTotal(p)}))),"progressbar"===n.type){let r;r=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const o=(i+1)/p;let a=1,s=1;"horizontal"===r?a=o:s=o,e.querySelectorAll(le(n.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${s})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===n.type&&n.renderCustom?(e.innerHTML=n.renderCustom(t,i+1,p),0===o&&r("paginationRender",e)):(0===o&&r("paginationRender",e),r("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass)}))}function p(){const e=t.params.pagination;if(l())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let i=t.pagination.el;i=I(i);let o="";if("bullets"===e.type){let i=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&i>n&&(i=n);for(let n=0;n<i;n+=1)e.renderBullet?o+=e.renderBullet.call(t,n,e.bulletClass):o+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],i.forEach((n=>{"custom"!==e.type&&(n.innerHTML=o||""),"bullets"===e.type&&t.pagination.bullets.push(...n.querySelectorAll(le(e.bulletClass)))})),"custom"!==e.type&&r("paginationRender",i[0])}function h(){t.params.pagination=se(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n;"string"==typeof e.el&&t.isElement&&(n=t.el.querySelector(e.el)),n||"string"!=typeof e.el||(n=[...document.querySelectorAll(e.el)]),n||(n=e.el),n&&0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.find((e=>M(e,".swiper")[0]===t.el)))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(t.pagination,{el:n}),n=I(n),n.forEach((n=>{"bullets"===e.type&&e.clickable&&n.classList.add(...(e.clickableClass||"").split(" ")),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.classList.add(`${e.modifierClass}${e.type}-dynamic`),s=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener("click",c),t.enabled||n.classList.add(e.lockClass)})))}function f(){const e=t.params.pagination;if(l())return;let n=t.pagination.el;n&&(n=I(n),n.forEach((n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(n.classList.remove(...(e.clickableClass||"").split(" ")),n.removeEventListener("click",c))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}i("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:n}=t.pagination;n=I(n),n.forEach((n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),i("init",(()=>{!1===t.params.pagination.enabled?g():(h(),p(),d())})),i("activeIndexChange",(()=>{void 0===t.snapIndex&&d()})),i("snapIndexChange",(()=>{d()})),i("snapGridLengthChange",(()=>{p(),d()})),i("destroy",(()=>{f()})),i("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=I(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),i("lock unlock",(()=>{d()})),i("click",((e,n)=>{const i=n.target,o=I(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o&&o.length>0&&!i.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&i===t.navigation.nextEl||t.navigation.prevEl&&i===t.navigation.prevEl))return;const e=o[0].classList.contains(t.params.pagination.hiddenClass);r(!0===e?"paginationShow":"paginationHide"),o.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=I(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),f()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=I(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),h(),p(),d()},disable:g,render:p,update:d,init:h,destroy:f})},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const o=a();let s,l,d,p,h=!1,f=null,g=null;function m(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:n}=t,{dragEl:i,el:r}=e,o=t.params.scrollbar,a=t.params.loop?t.progressLoop:t.progress;let s=l,u=(d-l)*a;n?(u=-u,u>0?(s=l-u,u=0):-u+l>d&&(s=d+u)):u<0?(s=l+u,u=0):u+l>d&&(s=d-u),t.isHorizontal()?(i.style.transform=`translate3d(${u}px, 0, 0)`,i.style.width=`${s}px`):(i.style.transform=`translate3d(0px, ${u}px, 0)`,i.style.height=`${s}px`),o.hide&&(clearTimeout(f),r.style.opacity=1,f=setTimeout((()=>{r.style.opacity=0,r.style.transitionDuration="400ms"}),1e3))}function v(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:n,el:i}=e;n.style.width="",n.style.height="",d=t.isHorizontal()?i.offsetWidth:i.offsetHeight,p=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),l="auto"===t.params.scrollbar.dragSize?d*p:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n.style.width=`${l}px`:n.style.height=`${l}px`,i.style.display=p>=1?"none":"",t.params.scrollbar.hide&&(i.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function y(e){return t.isHorizontal()?e.clientX:e.clientY}function x(e){const{scrollbar:n,rtlTranslate:i}=t,{el:r}=n;let o;o=(y(e)-_(r)[t.isHorizontal()?"left":"top"]-(null!==s?s:l/2))/(d-l),o=Math.max(Math.min(o,1),0),i&&(o=1-o);const a=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*o;t.updateProgress(a),t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}function b(e){const n=t.params.scrollbar,{scrollbar:i,wrapperEl:o}=t,{el:a,dragEl:l}=i;h=!0,s=e.target===l?y(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),o.style.transitionDuration="100ms",l.style.transitionDuration="100ms",x(e),clearTimeout(g),a.style.transitionDuration="0ms",n.hide&&(a.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",e)}function S(e){const{scrollbar:n,wrapperEl:i}=t,{el:o,dragEl:a}=n;h&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,x(e),i.style.transitionDuration="0ms",o.style.transitionDuration="0ms",a.style.transitionDuration="0ms",r("scrollbarDragMove",e))}function M(e){const n=t.params.scrollbar,{scrollbar:i,wrapperEl:o}=t,{el:a}=i;h&&(h=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",o.style.transitionDuration=""),n.hide&&(clearTimeout(g),g=c((()=>{a.style.opacity=0,a.style.transitionDuration="400ms"}),1e3)),r("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())}function T(e){const{scrollbar:n,params:i}=t,r=n.el;if(!r)return;const a=r,s=!!i.passiveListeners&&{passive:!1,capture:!1},l=!!i.passiveListeners&&{passive:!0,capture:!1};if(!a)return;const u="on"===e?"addEventListener":"removeEventListener";
vendor: 1,531 bytes, line 2
2a[u]("pointerdown",b,s),o[u]("pointermove",S,s),o[u]("pointerup",M,l)}function C(){const{scrollbar:e,el:n}=t;t.params.scrollbar=se(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const i=t.params.scrollbar;if(!i.el)return;let r,a;if("string"==typeof i.el&&t.isElement&&(r=t.el.querySelector(i.el)),r||"string"!=typeof i.el)r||(r=i.el);else if(r=o.querySelectorAll(i.el),!r.length)return;t.params.uniqueNavElements&&"string"==typeof i.el&&r.length>1&&1===n.querySelectorAll(i.el).length&&(r=n.querySelector(i.el)),r.length>0&&(r=r[0]),r.classList.add(t.isHorizontal()?i.horizontalClass:i.verticalClass),r&&(a=r.querySelector(le(t.params.scrollbar.dragClass)),a||(a=w("div",t.params.scrollbar.dragClass),r.append(a))),Object.assign(e,{el:r,dragEl:a}),i.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&T("on"),r&&r.classList[t.enabled?"remove":"add"](...u(t.params.scrollbar.lockClass))}function A(){const e=t.params.scrollbar,n=t.scrollbar.el;n&&n.classList.remove(...u(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&T("off")}n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},i("changeDirection",(()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:n}=t.scrollbar;
vendor: 4,704 bytes, line 2
2n=I(n),n.forEach((n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),i("init",(()=>{!1===t.params.scrollbar.enabled?D():(C(),v(),m())})),i("update resize observerUpdate lock unlock changeDirection",(()=>{v()})),i("setTranslate",(()=>{m()})),i("setTransition",((e,n)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(n)})),i("enable disable",(()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...u(t.params.scrollbar.lockClass))})),i("destroy",(()=>{A()}));const D=()=>{t.el.classList.add(...u(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...u(t.params.scrollbar.scrollbarDisabledClass)),A()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...u(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...u(t.params.scrollbar.scrollbarDisabledClass)),C(),v(),m()},disable:D,updateSize:v,setTranslate:m,init:C,destroy:A})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({parallax:{enabled:!1}});const r="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",o=(e,n)=>{const{rtl:i}=t,r=i?-1:1,o=e.getAttribute("data-swiper-parallax")||"0";let a=e.getAttribute("data-swiper-parallax-x"),s=e.getAttribute("data-swiper-parallax-y");const l=e.getAttribute("data-swiper-parallax-scale"),u=e.getAttribute("data-swiper-parallax-opacity"),c=e.getAttribute("data-swiper-parallax-rotate");if(a||s?(a=a||"0",s=s||"0"):t.isHorizontal()?(a=o,s="0"):(s=o,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*n*r+"%":a*n*r+"px",s=s.indexOf("%")>=0?parseInt(s,10)*n+"%":s*n+"px",null!=u){const t=u-(u-1)*(1-Math.abs(n));e.style.opacity=t}let d=`translate3d(${a}, ${s}, 0px)`;null!=l&&(d+=` scale(${l-(l-1)*(1-Math.abs(n))})`),c&&null!=c&&(d+=` rotate(${c*n*-1}deg)`),e.style.transform=d},a=()=>{const{el:e,slides:n,progress:i,snapGrid:a,isElement:s}=t,l=y(e,r);t.isElement&&l.push(...y(t.hostEl,r)),l.forEach((e=>{o(e,i)})),n.forEach(((e,n)=>{let s=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(s+=Math.ceil(n/2)-i*(a.length-1)),s=Math.min(Math.max(s,-1),1),e.querySelectorAll(`${r}, [data-swiper-parallax-rotate]`).forEach((e=>{o(e,s)}))}))};i("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),i("init",(()=>{t.params.parallax.enabled&&a()})),i("setTranslate",(()=>{t.params.parallax.enabled&&a()})),i("setTransition",((e,n)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:n,hostEl:i}=t,o=[...n.querySelectorAll(r)];t.isElement&&o.push(...i.querySelectorAll(r)),o.forEach((t=>{let n=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(n=0),t.style.transitionDuration=`${n}ms`}))}(n)}))},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const o=l();n({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let a,s,u=1,c=!1,d=!1,h={x:0,y:0};const f=[],g={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},m={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},v={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let x,w=1;function b(){if(f.length<2)return 1;const e=f[0].pageX,t=f[0].pageY,n=f[1].pageX,i=f[1].pageY;return Math.sqrt((n-e)**2+(i-t)**2)}function S(){const e=t.params.zoom,n=g.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&g.imageEl&&g.imageEl.naturalWidth){const e=g.imageEl.naturalWidth/g.imageEl.offsetWidth;return Math.min(e,n)}return n}function T(e){const n=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!e.target.matches(n)||t.slides.filter((t=>t.contains(e.target))).length>0}function C(e){const n=`.${t.params.zoom.containerClass}`;return!!e.target.matches(n)||[...t.hostEl.querySelectorAll(n)].filter((t=>t.contains(e.target))).length>0}function I(e){if("mouse"===e.pointerType&&f.splice(0,f.length),!T(e))return;const n=t.params.zoom;if(a=!1,s=!1,f.push(e),!(f.length<2)){if(a=!0,g.scaleStart=b(),!g.slideEl){g.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),g.slideEl||(g.slideEl=t.slides[t.activeIndex]);let i=g.slideEl.querySelector(`.${n.containerClass}`);
2if(i&&(i=i.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),g.imageEl=i,g.imageWrapEl=i?M(g.imageEl,`.${n.containerClass}`)[0]:void 0,!g.imageWrapEl)return void(g.imageEl=void 0);g.maxRatio=S()}if(g.imageEl){const[e,t]=function(){if(f.length<2)return{x:null,y:null};const e=g.imageEl.getBoundingClientRect();return[(f[0].pageX+(f[1].pageX-f[0].pageX)/2-e.x-o.scrollX)/u,(f[0].pageY+(f[1].pageY-f[0].pageY)/2-e.y-o.scrollY)/u]}();g.originX=e,g.originY=t,g.imageEl.style.transitionDuration="0ms"}c=!0}}function A(e){if(!T(e))return;const n=t.params.zoom,i=t.zoom,r=f.findIndex((t=>t.pointerId===e.pointerId));r>=0&&(f[r]=e),f.length<2||(s=!0,g.scaleMove=b(),g.imageEl&&(i.scale=g.scaleMove/g.scaleStart*u,i.scale>g.maxRatio&&(i.scale=g.maxRatio-1+(i.scale-g.maxRatio+1)**.5),i.scale<n.minRatio&&(i.scale=n.minRatio+1-(n.minRatio-i.scale+1)**.5),g.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`))}function D(e){if(!T(e))return;if("mouse"===e.pointerType&&"pointerout"===e.type)return;const n=t.params.zoom,i=t.zoom,r=f.findIndex((t=>t.pointerId===e.pointerId));r>=0&&f.splice(r,1),a&&s&&(a=!1,s=!1,g.imageEl&&(i.scale=Math.max(Math.min(i.scale,g.maxRatio),n.minRatio),g.imageEl.style.transitionDuration=`${t.params.speed}ms`,g.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`,u=i.scale,c=!1,i.scale>1&&g.slideEl?g.slideEl.classList.add(`${n.zoomedSlideClass}`):i.scale<=1&&g.slideEl&&g.slideEl.classList.remove(`${n.zoomedSlideClass}`),1===i.scale&&(g.originX=0,g.originY=0,g.slideEl=void 0)))}function k(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function L(e){const n="mouse"===e.pointerType&&t.params.zoom.panOnMouseMove;if(!T(e)||!C(e))return;const i=t.zoom;if(!g.imageEl)return;if(!m.isTouched||!g.slideEl)return void(n&&P(e));if(n)return void P(e);m.isMoved||(m.width=g.imageEl.offsetWidth||g.imageEl.clientWidth,m.height=g.imageEl.offsetHeight||g.imageEl.clientHeight,m.startX=p(g.imageWrapEl,"x")||0,m.startY=p(g.imageWrapEl,"y")||0,g.slideWidth=g.slideEl.offsetWidth,g.slideHeight=g.slideEl.offsetHeight,g.imageWrapEl.style.transitionDuration="0ms");const r=m.width*i.scale,o=m.height*i.scale;if(m.minX=Math.min(g.slideWidth/2-r/2,0),m.maxX=-m.minX,m.minY=Math.min(g.slideHeight/2-o/2,0),m.maxY=-m.minY,m.touchesCurrent.x=f.length>0?f[0].pageX:e.pageX,m.touchesCurrent.y=f.length>0?f[0].pageY:e.pageY,Math.max(Math.abs(m.touchesCurrent.x-m.touchesStart.x),Math.abs(m.touchesCurrent.y-m.touchesStart.y))>5&&(t.allowClick=!1),!m.isMoved&&!c){if(t.isHorizontal()&&(Math.floor(m.minX)===Math.floor(m.startX)&&m.touchesCurrent.x<m.touchesStart.x||Math.floor(m.maxX)===Math.floor(m.startX)&&m.touchesCurrent.x>m.touchesStart.x))return m.isTouched=!1,void k();if(!t.isHorizontal()&&(Math.floor(m.minY)===Math.floor(m.startY)&&m.touchesCurrent.y<m.touchesStart.y||Math.floor(m.maxY)===Math.floor(m.startY)&&m.touchesCurrent.y>m.touchesStart.y))return m.isTouched=!1,void k()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(x),t.touchEventsData.preventTouchMoveFromPointerMove=!0,x=setTimeout((()=>{t.destroyed||k()})),m.isMoved=!0;const a=(i.scale-u)/(g.maxRatio-t.params.zoom.minRatio),{originX:s,originY:l}=g;m.currentX=m.touchesCurrent.x-m.touchesStart.x+m.startX+a*(m.width-2*s),m.currentY=m.touchesCurrent.y-m.touchesStart.y+m.startY+a*(m.height-2*l),m.currentX<m.minX&&(m.currentX=m.minX+1-(m.minX-m.currentX+1)**.8),m.currentX>m.maxX&&(m.currentX=m.maxX-1+(m.currentX-m.maxX+1)**.8),m.currentY<m.minY&&(m.currentY=m.minY+1-(m.minY-m.currentY+1)**.8),m.currentY>m.maxY&&(m.currentY=m.maxY-1+(m.currentY-m.maxY+1)**.8),v.prevPositionX||(v.prevPositionX=m.touchesCurrent.x),v.prevPositionY||(v.prevPositionY=m.touchesCurrent.y),v.prevTime||(v.prevTime=Date.now()),v.x=(m.touchesCurrent.x-v.prevPositionX)/(Date.now()-v.prevTime)/2,v.y=(m.touchesCurrent.y-v.prevPositionY)/(Date.now()-v.prevTime)/2,Math.abs(m.touchesCurrent.x-v.prevPositionX)<2&&(v.x=0),Math.abs(m.touchesCurrent.y-v.prevPositionY)<2&&(v.y=0),v.prevPositionX=m.touchesCurrent.x,v.prevPositionY=m.touchesCurrent.y,v.prevTime=Date.now(),g.imageWrapEl.style.transform=`translate3d(${m.currentX}px, ${m.currentY}px,0)`}function E(){const e=t.zoom;g.slideEl&&t.activeIndex!==t.slides.indexOf(g.slideEl)&&(g.imageEl&&(g.imageEl.style.transform="translate3d(0,
20,0) scale(1)"),g.imageWrapEl&&(g.imageWrapEl.style.transform="translate3d(0,0,0)"),g.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,u=1,g.slideEl=void 0,g.imageEl=void 0,g.imageWrapEl=void 0,g.originX=0,g.originY=0)}function P(e){if(u<=1||!g.imageWrapEl)return;if(!T(e)||!C(e))return;const t=o.getComputedStyle(g.imageWrapEl).transform,n=new o.DOMMatrix(t);if(!d)return d=!0,h.x=e.clientX,h.y=e.clientY,m.startX=n.e,m.startY=n.f,m.width=g.imageEl.offsetWidth||g.imageEl.clientWidth,m.height=g.imageEl.offsetHeight||g.imageEl.clientHeight,g.slideWidth=g.slideEl.offsetWidth,void(g.slideHeight=g.slideEl.offsetHeight);const i=-3*(e.clientX-h.x),r=-3*(e.clientY-h.y),a=m.width*u,s=m.height*u,l=g.slideWidth,c=g.slideHeight,p=Math.min(l/2-a/2,0),f=-p,v=Math.min(c/2-s/2,0),y=-v,x=Math.max(Math.min(m.startX+i,f),p),w=Math.max(Math.min(m.startY+r,y),v);g.imageWrapEl.style.transitionDuration="0ms",g.imageWrapEl.style.transform=`translate3d(${x}px, ${w}px, 0)`,h.x=e.clientX,h.y=e.clientY,m.startX=x,m.startY=w,m.currentX=x,m.currentY=w}function O(e){const n=t.zoom,i=t.params.zoom;if(!g.slideEl){e&&e.target&&(g.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),g.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?g.slideEl=y(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:g.slideEl=t.slides[t.activeIndex]);let n=g.slideEl.querySelector(`.${i.containerClass}`);n&&(n=n.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),g.imageEl=n,g.imageWrapEl=n?M(g.imageEl,`.${i.containerClass}`)[0]:void 0}if(!g.imageEl||!g.imageWrapEl)return;let r,a,s,l,c,d,p,h,f,v,x,w,b,T,C,I,A,D;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),g.slideEl.classList.add(`${i.zoomedSlideClass}`),void 0===m.touchesStart.x&&e?(r=e.pageX,a=e.pageY):(r=m.touchesStart.x,a=m.touchesStart.y);const k=u,L="number"==typeof e?e:null;1===u&&L&&(r=void 0,a=void 0,m.touchesStart.x=void 0,m.touchesStart.y=void 0);const E=S();n.scale=L||E,u=L||E,!e||1===u&&L?(p=0,h=0):(A=g.slideEl.offsetWidth,D=g.slideEl.offsetHeight,s=_(g.slideEl).left+o.scrollX,l=_(g.slideEl).top+o.scrollY,c=s+A/2-r,d=l+D/2-a,f=g.imageEl.offsetWidth||g.imageEl.clientWidth,v=g.imageEl.offsetHeight||g.imageEl.clientHeight,x=f*n.scale,w=v*n.scale,b=Math.min(A/2-x/2,0),T=Math.min(D/2-w/2,0),C=-b,I=-T,k>0&&L&&"number"==typeof m.currentX&&"number"==typeof m.currentY?(p=m.currentX*n.scale/k,h=m.currentY*n.scale/k):(p=c*n.scale,h=d*n.scale),p<b&&(p=b),p>C&&(p=C),h<T&&(h=T),h>I&&(h=I)),L&&1===n.scale&&(g.originX=0,g.originY=0),m.currentX=p,m.currentY=h,g.imageWrapEl.style.transitionDuration="300ms",g.imageWrapEl.style.transform=`translate3d(${p}px, ${h}px,0)`,g.imageEl.style.transitionDuration="300ms",g.imageEl.style.transform=`translate3d(0,0,0) scale(${n.scale})`}function R(){const e=t.zoom,n=t.params.zoom;if(!g.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?g.slideEl=y(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:g.slideEl=t.slides[t.activeIndex];let e=g.slideEl.querySelector(`.${n.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),g.imageEl=e,g.imageWrapEl=e?M(g.imageEl,`.${n.containerClass}`)[0]:void 0}g.imageEl&&g.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,u=1,m.currentX=void 0,m.currentY=void 0,m.touchesStart.x=void 0,m.touchesStart.y=void 0,g.imageWrapEl.style.transitionDuration="300ms",g.imageWrapEl.style.transform="translate3d(0,0,0)",g.imageEl.style.transitionDuration="300ms",g.imageEl.style.transform="translate3d(0,0,0) scale(1)",g.slideEl.classList.remove(`${n.zoomedSlideClass}`),g.slideEl=void 0,g.originX=0,g.originY=0,t.params.zoom.panOnMouseMove&&(h={x:0,y:0},d&&(d=!1,m.startX=0,m.startY=0)))}function N(e){const n=t.zoom;n.scale&&1!==n.scale?R():O(e)}function z(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function B(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:n,activeListenerWithCapture:i}=z();t.wrapperEl.addEventListener("pointerdown",I,n),t.wrapperEl.addEventListener("pointermove",A,
2i),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.addEventListener(e,D,n)})),t.wrapperEl.addEventListener("pointermove",L,i)}function V(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:n,activeListenerWithCapture:i}=z();t.wrapperEl.removeEventListener("pointerdown",I,n),t.wrapperEl.removeEventListener("pointermove",A,i),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.removeEventListener(e,D,n)})),t.wrapperEl.removeEventListener("pointermove",L,i)}Object.defineProperty(t.zoom,"scale",{get:()=>w,set(e){if(w!==e){const t=g.imageEl,n=g.slideEl;r("zoomChange",e,t,n)}w=e}}),i("init",(()=>{t.params.zoom.enabled&&B()})),i("destroy",(()=>{V()})),i("touchStart",((e,n)=>{t.zoom.enabled&&function(e){const n=t.device;if(!g.imageEl)return;if(m.isTouched)return;n.android&&e.cancelable&&e.preventDefault(),m.isTouched=!0;const i=f.length>0?f[0]:e;m.touchesStart.x=i.pageX,m.touchesStart.y=i.pageY}(n)})),i("touchEnd",((e,n)=>{t.zoom.enabled&&function(){const e=t.zoom;if(f.length=0,!g.imageEl)return;if(!m.isTouched||!m.isMoved)return m.isTouched=!1,void(m.isMoved=!1);m.isTouched=!1,m.isMoved=!1;let n=300,i=300;const r=v.x*n,o=m.currentX+r,a=v.y*i,s=m.currentY+a;0!==v.x&&(n=Math.abs((o-m.currentX)/v.x)),0!==v.y&&(i=Math.abs((s-m.currentY)/v.y));const l=Math.max(n,i);m.currentX=o,m.currentY=s;const u=m.width*e.scale,c=m.height*e.scale;m.minX=Math.min(g.slideWidth/2-u/2,0),m.maxX=-m.minX,m.minY=Math.min(g.slideHeight/2-c/2,0),m.maxY=-m.minY,m.currentX=Math.max(Math.min(m.currentX,m.maxX),m.minX),m.currentY=Math.max(Math.min(m.currentY,m.maxY),m.minY),g.imageWrapEl.style.transitionDuration=`${l}ms`,g.imageWrapEl.style.transform=`translate3d(${m.currentX}px, ${m.currentY}px,0)`}()})),i("doubleTap",((e,n)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&N(n)})),i("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&E()})),i("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&E()})),Object.assign(t.zoom,{enable:B,disable:V,in:O,out:R,toggle:N})},function(e){let{swiper:t,extendParams:n,on:i}=e;function r(e,t){const n=function(){let e,t,n;return(i,r)=>{for(t=-1,e=i.length;e-t>1;)n=e+t>>1,i[n]<=r?t=n:e=n;return e}}();let i,r;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(r=n(this.x,e),i=r-1,(e-this.x[i])*(this.y[r]-this.y[i])/(this.x[r]-this.x[i])+this.y[i]):0},this}function o(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}n({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},i("beforeInit",(()=>{"undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)?("string"==typeof t.params.controller.control?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEach((e=>{if(t.controller.control||(t.controller.control=[]),e&&e.swiper)t.controller.control.push(e.swiper);else if(e){const n=`${t.params.eventsPrefix}init`,i=r=>{t.controller.control.push(r.detail[0]),t.update(),e.removeEventListener(n,i)};e.addEventListener(n,i)}})):t.controller.control=t.params.controller.control})),i("update",(()=>{o()})),i("resize",(()=>{o()})),i("observerUpdate",(()=>{o()})),i("setTranslate",((e,n,i)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(n,i)})),i("setTransition",((e,n,i)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(n,i)})),Object.assign(t.controller,{setTranslate:function(e,n){const i=t.controller.control;let o,a;const s=t.constructor;function l(e){if(e.destroyed)return;const n=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(function(e){t.controller.spline=t.params.loop?new r(t.slidesGrid,e.slidesGrid):new r(t.snapGrid,e.snapGrid)}(e),a=-t.controller.spline.interpolate(-n)),a&&"container"!==t.params.controller.by||(o=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(o)&&Number.isFinite(o)||(o=1),a=(n-t.minTranslate())*o+e.minTranslate()),t.params.controller.inverse&&(a=e.maxTranslate()-a),e.updateProgress(a),e.setTranslate(a,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(i))for(let e=0;e<i.length;e+=1)i[e]!==n&&i[e]instanceof s&&l(i[e]);else i instanceof s&&n!==i&&l(i)},setTransition:function(e,n){const i=t.constructor,r=t.controller.control;let o;function a(n){n.destroyed||(n.setTransition(e,t),0!==e&&(n.transitionStart(),n.params.autoHeight&&c((()=>{n.updateAutoHeight()})),T(n.wrapperEl,(()=>{r&&n.transitionEnd()}))))}if(Array.isArray(r))for(o=0;o<r.length;o+=1)r[o]!==n&&r[o]instanceof i&&a(r[o]);else r instanceof i&&n!==r&&a(r)}})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,
2scrollOnFocus:!0}}),t.a11y={clicked:!1};let r,o,s=null,l=(new Date).getTime();function u(e){const t=s;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function c(e){(e=I(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function d(e){(e=I(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function p(e,t){(e=I(e)).forEach((e=>{e.setAttribute("role",t)}))}function h(e,t){(e=I(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function f(e,t){(e=I(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function g(e){(e=I(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function m(e){(e=I(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function v(e){if(13!==e.keyCode&&32!==e.keyCode)return;const n=t.params.a11y,i=e.target;if(!t.pagination||!t.pagination.el||i!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(le(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=I(t.navigation.prevEl);I(t.navigation.nextEl).includes(i)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?u(n.lastSlideMessage):u(n.nextSlideMessage)),e.includes(i)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?u(n.firstSlideMessage):u(n.prevSlideMessage))}t.pagination&&i.matches(le(t.params.pagination.bulletClass))&&i.click()}}function y(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function x(){return y()&&t.params.pagination.clickable}const _=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(p(e,"button"),e.addEventListener("keydown",v)),f(e,n),function(e,t){(e=I(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},b=e=>{o&&o!==e.target&&!o.contains(e.target)&&(r=!0),t.a11y.clicked=!0},M=()=>{r=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},T=e=>{l=(new Date).getTime()},C=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-l<100)return;const n=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!n||!t.slides.includes(n))return;o=n;const i=t.slides.indexOf(n)===t.activeIndex,a=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(n);i||a||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>{r||(t.params.loop?t.slideToLoop(parseInt(n.getAttribute("data-swiper-slide-index")),0):t.slideTo(t.slides.indexOf(n),0),r=!1)})))},A=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&h(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&p(t.slides,e.slideRole);const n=t.slides.length;e.slideLabelMessage&&t.slides.forEach(((i,r)=>{const o=t.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):r;f(i,e.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,n))}))};i("beforeInit",(()=>{s=w("span",t.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")})),i("afterInit",(()=>{t.params.a11y.enabled&&(()=>{const e=t.params.a11y;t.el.append(s);const n=t.el;e.containerRoleDescriptionMessage&&h(n,e.containerRoleDescriptionMessage),e.containerMessage&&f(n,e.containerMessage),e.containerRole&&p(n,e.containerRole);const i=t.wrapperEl,r=e.id||i.getAttribute("id")||`swiper-wrapper-${o=16,void 0===o&&(o=16),"x".repeat(o).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var o;const l=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var u;u=r,I(i).forEach((e=>{e.setAttribute("id",u)})),function(e,t){(e=I(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(i,l),A();let{nextEl:c,prevEl:d}=t.navigation?t.navigation:{};c=I(c),d=I(d),c&&c.forEach((t=>_(t,r,e.nextSlideMessage))),d&&d.forEach((t=>_(t,r,e.prevSlideMessage))),x()&&I(t.pagination.el).forEach((e=>{e.addEventListener("keydown",v)})),a().addEventListener("visibilitychange",T),t.el.addEventListener("focus",C,!0),t.el.addEventListener("focus",C,!0),t.el.addEventListener("pointerdown",b,!0),t.el.addEventListener("pointerup",M,!0)})()})),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&A()})),i("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:n}=t.navigation;n&&(t.isBeginning?(g(n),d(n)):(m(n),c(n))),e&&(t.isEnd?(g(e),d(e)):(m(e),c(e)))}()})),i("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;
vendor: 20,634 bytes, line 2
2y()&&t.pagination.bullets.forEach((n=>{t.params.pagination.clickable&&(c(n),t.params.pagination.renderBullet||(p(n,"button"),f(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,S(n)+1)))),n.matches(le(t.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")}))}()})),i("destroy",(()=>{t.params.a11y.enabled&&function(){s&&s.remove();let{nextEl:e,prevEl:n}=t.navigation?t.navigation:{};e=I(e),n=I(n),e&&e.forEach((e=>e.removeEventListener("keydown",v))),n&&n.forEach((e=>e.removeEventListener("keydown",v))),x()&&I(t.pagination.el).forEach((e=>{e.removeEventListener("keydown",v)})),a().removeEventListener("visibilitychange",T),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",C,!0),t.el.removeEventListener("pointerdown",b,!0),t.el.removeEventListener("pointerup",M,!0))}()}))},function(e){let{swiper:t,extendParams:n,on:i}=e;n({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let r=!1,o={};const a=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),s=e=>{const t=l();let n;n=e?new URL(e):t.location;const i=n.pathname.slice(1).split("/").filter((e=>""!==e)),r=i.length;return{key:i[r-2],value:i[r-1]}},u=(e,n)=>{const i=l();if(!r||!t.params.history.enabled)return;let o;o=t.params.url?new URL(t.params.url):i.location;const s=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${n}"]`):t.slides[n];let u=a(s.getAttribute("data-history"));if(t.params.history.root.length>0){let n=t.params.history.root;"/"===n[n.length-1]&&(n=n.slice(0,n.length-1)),u=`${n}/${e?`${e}/`:""}${u}`}else o.pathname.includes(e)||(u=`${e?`${e}/`:""}${u}`);t.params.history.keepQuery&&(u+=o.search);const c=i.history.state;c&&c.value===u||(t.params.history.replaceState?i.history.replaceState({value:u},null,u):i.history.pushState({value:u},null,u))},c=(e,n,i)=>{if(n)for(let r=0,o=t.slides.length;r<o;r+=1){const o=t.slides[r];if(a(o.getAttribute("data-history"))===n){const n=t.getSlideIndex(o);t.slideTo(n,e,i)}}else t.slideTo(0,e,i)},d=()=>{o=s(t.params.url),c(t.params.speed,o.value,!1)};i("init",(()=>{t.params.history.enabled&&(()=>{const e=l();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);r=!0,o=s(t.params.url),o.key||o.value?(c(0,o.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",d)):t.params.history.replaceState||e.addEventListener("popstate",d)}})()})),i("destroy",(()=>{t.params.history.enabled&&(()=>{const e=l();t.params.history.replaceState||e.removeEventListener("popstate",d)})()})),i("transitionEnd _freeModeNoMomentumRelease",(()=>{r&&u(t.params.history.key,t.activeIndex)})),i("slideChange",(()=>{r&&t.params.cssMode&&u(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:n,emit:i,on:r}=e,o=!1;const s=a(),u=l();n({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,n){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.find((e=>e.getAttribute("data-hash")===n));return e?parseInt(e.getAttribute("data-swiper-slide-index"),10):0}return t.getSlideIndex(y(t.slidesEl,`.${t.params.slideClass}[data-hash="${n}"], swiper-slide[data-hash="${n}"]`)[0])}}});const c=()=>{i("hashChange");const e=s.location.hash.replace("#",""),n=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(n?n.getAttribute("data-hash"):"")){const n=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===n||Number.isNaN(n))return;t.slideTo(n)}},d=()=>{if(!o||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],n=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&u.history&&u.history.replaceState?(u.history.replaceState(null,null,`#${n}`||""),i("hashSet")):(s.location.hash=n||"",i("hashSet"))};r("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;o=!0;const e=s.location.hash.replace("#","");if(e){const n=0,i=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(i||0,n,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&u.addEventListener("hashchange",c)})()})),r("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&u.removeEventListener("hashchange",c)})),r("transitionEnd _freeModeNoMomentumRelease",(()=>{o&&d()})),r("slideChange",(()=>{o&&t.params.cssMode&&d()}))},function(e){let t,n,{swiper:i,extendParams:r,on:o,emit:s,params:l}=e;i.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let u,c,d,p,h,f,g,m,v=l&&l.autoplay?l.autoplay.delay:3e3,y=l&&l.autoplay?l.autoplay.delay:3e3,x=(new Date).getTime();function w(e){i&&!i.destroyed&&i.wrapperEl&&e.target===i.wrapperEl&&(i.wrapperEl.removeEventListener("transitionend",w),m||e.detail&&e.detail.bySwiperTouchMove||C())}const _=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?c=!0:c&&(y=u,c=!1);const e=i.autoplay.paused?u:x+y-(new Date).getTime();i.autoplay.timeLeft=e,s("autoplayTimeLeft",e,e/v),n=requestAnimationFrame((()=>{_()}))},b=e=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(n),_();let r=void 0===e?i.params.autoplay.delay:e;v=i.params.autoplay.delay,y=i.params.autoplay.delay;const o=(()=>{let e;if(e=i.virtual&&i.params.virtual.enabled?i.slides.find((e=>e.classList.contains("swiper-slide-active"))):i.slides[i.activeIndex],e)return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(o)&&o>0&&void 0===e&&(r=o,v=o,y=o),u=r;const a=i.params.speed,l=()=>{i&&!i.destroyed&&(i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(a,!0,!0),s("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,a,!0,!0),s("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(a,!0,!0),s("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,a,!0,!0),s("autoplay")),i.params.cssMode&&(x=(new Date).getTime(),requestAnimationFrame((()=>{b()}))))};return r>0?(clearTimeout(t),t=setTimeout((()=>{l()}),r)):requestAnimationFrame((()=>{l()})),r},S=()=>{x=(new Date).getTime(),i.autoplay.running=!0,b(),s("autoplayStart")},M=()=>{i.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(n),s("autoplayStop")},T=(e,n)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(t),e||(g=!0);const r=()=>{s("autoplayPause"),i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",w):C()};if(i.autoplay.paused=!0,n)return f&&(u=i.params.autoplay.delay),f=!1,void r();const o=u||i.params.autoplay.delay;u=o-((new Date).getTime()-x),i.isEnd&&u<0&&!i.params.loop||(u<0&&(u=0),r())},C=()=>{i.isEnd&&u<0&&!i.params.loop||i.destroyed||!i.autoplay.running||(x=(new Date).getTime(),g?(g=!1,b(u)):b(),i.autoplay.paused=!1,s("autoplayResume"))},I=()=>{if(i.destroyed||!i.autoplay.running)return;const e=a();"hidden"===e.visibilityState&&(g=!0,T(!0)),"visible"===e.visibilityState&&C()},A=e=>{"mouse"===e.pointerType&&(g=!0,m=!0,i.animating||i.autoplay.paused||T(!0))},D=e=>{"mouse"===e.pointerType&&(m=!1,i.autoplay.paused&&C())};o("init",(()=>{i.params.autoplay.enabled&&(i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",A),i.el.addEventListener("pointerleave",D)),a().addEventListener("visibilitychange",I),S())})),o("destroy",(()=>{i.el&&"string"!=typeof i.el&&(i.el.removeEventListener("pointerenter",A),i.el.removeEventListener("pointerleave",D)),a().removeEventListener("visibilitychange",I),i.autoplay.running&&M()})),o("_freeModeStaticRelease",(()=>{(p||g)&&C()})),o("_freeModeNoMomentumRelease",(()=>{i.params.autoplay.disableOnInteraction?M():T(!0,!0)})),o("beforeTransitionStart",((e,t,n)=>{!i.destroyed&&i.autoplay.running&&(n||!i.params.autoplay.disableOnInteraction?T(!0,!0):M())})),o("sliderFirstMove",(()=>{!i.destroyed&&i.autoplay.running&&(i.params.autoplay.disableOnInteraction?M():(d=!0,p=!1,g=!1,h=setTimeout((()=>{g=!0,p=!0,T(!0)}),200)))})),o("touchEnd",(()=>{if(!i.destroyed&&i.autoplay.running&&d){if(clearTimeout(h),clearTimeout(t),i.params.autoplay.disableOnInteraction)return p=!1,void(d=!1);p&&i.params.cssMode&&C(),p=!1,d=!1}})),o("slideChange",(()=>{!i.destroyed&&i.autoplay.running&&(f=!0)})),Object.assign(i.autoplay,{start:S,stop:M,pause:T,resume:C})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,o=!1;function s(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const n=e.clickedIndex,i=e.clickedSlide;if(i&&i.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==n)return;let r;r=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):n,t.params.loop?t.slideToLoop(r):t.slideTo(r)}function l(){const{thumbs:e}=t.params;if(r)return!1;r=!0;const n=t.constructor;if(e.swiper instanceof n){if(e.swiper.destroyed)return r=!1,!1;t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update()}else if(h(e.swiper)){const i=Object.assign({},e.swiper);Object.assign(i,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new n(i),o=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",s),!0}function u(e){const n=t.thumbs.swiper;if(!n||n.destroyed)return;const i="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;let r=1;const o=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(r=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(r=1),r=Math.floor(r),n.slides.forEach((e=>e.classList.remove(o))),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let e=0;e<r;e+=1)y(n.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach((e=>{e.classList.add(o)}));else for(let e=0;e<r;e+=1)n.slides[t.realIndex+e]&&n.slides[t.realIndex+e].classList.add(o);const a=t.params.thumbs.autoScrollOffset,s=a&&!n.params.loop;if(t.realIndex!==n.realIndex||s){const r=n.activeIndex;let o,l;if(n.params.loop){const e=n.slides.find((e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`));o=n.slides.indexOf(e),l=t.activeIndex>t.previousIndex?"next":"prev"}else o=t.realIndex,l=o>t.previousIndex?"next":"prev";s&&(o+="next"===l?a:-1*a),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(o)<0&&(n.params.centeredSlides?o=o>r?o-Math.floor(i/2)+1:o+Math.floor(i/2)-1:o>r&&n.params.slidesPerGroup,n.slideTo(o,e?0:void 0))}}t.thumbs={swiper:null},i("beforeInit",(()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const n=a(),i=()=>{const i="string"==typeof e.swiper?n.querySelector(e.swiper):e.swiper;if(i&&i.swiper)e.swiper=i.swiper,l(),u(!0);else if(i){const n=`${t.params.eventsPrefix}init`,r=o=>{e.swiper=o.detail[0],i.removeEventListener(n,r),l(),u(!0),e.swiper.update(),t.update()};i.addEventListener(n,r)}return i},r=()=>{t.destroyed||i()||requestAnimationFrame(r)};requestAnimationFrame(r)}else l(),u(!0)})),i("slideChange update resize observerUpdate",(()=>{u()})),i("setTransition",((e,n)=>{const i=t.thumbs.swiper;i&&!i.destroyed&&i.setTransition(n)})),i("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&o&&e.destroy()})),Object.assign(t.thumbs,{init:l,update:u})},function(e){let{swiper:t,extendParams:n,emit:i,once:r}=e;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:n}=t;0===e.velocities.length&&e.velocities.push({position:n[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:n[t.isHorizontal()?"currentX":"currentY"],time:d()})},onTouchEnd:function(e){let{currentPos:n}=e;if(t.params.cssMode)return;const{params:o,wrapperEl:a,rtlTranslate:s,snapGrid:l,touchEventsData:u}=t,c=d()-u.touchStartTime;if(n<-t.minTranslate())t.slideTo(t.activeIndex);else if(n>-t.maxTranslate())t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1);else{if(o.freeMode.momentum){if(u.velocities.length>1){const e=u.velocities.pop(),n=u.velocities.pop(),i=e.position-n.position,r=e.time-n.time;t.velocity=i/r,t.velocity/=2,Math.abs(t.velocity)<o.freeMode.minimumVelocity&&(t.velocity=0),(r>150||d()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=o.freeMode.momentumVelocityRatio,u.velocities.length=0;let e=1e3*o.freeMode.momentumRatio;const n=t.velocity*e;let c=t.translate+n;s&&(c=-c);let p,h=!1;const f=20*Math.abs(t.velocity)*o.freeMode.momentumBounceRatio;let g;if(c<t.maxTranslate())o.freeMode.momentumBounce?(c+t.maxTranslate()<-f&&(c=t.maxTranslate()-f),p=t.maxTranslate(),h=!0,u.allowMomentumBounce=!0):c=t.maxTranslate(),o.loop&&o.centeredSlides&&(g=!0);else if(c>t.minTranslate())o.freeMode.momentumBounce?(c-t.minTranslate()>f&&(c=t.minTranslate()+f),p=t.minTranslate(),h=!0,u.allowMomentumBounce=!0):c=t.minTranslate(),o.loop&&o.centeredSlides&&(g=!0);else if(o.freeMode.sticky){let e;for(let t=0;t<l.length;t+=1)if(l[t]>-c){e=t;break}c=Math.abs(l[e]-c)<Math.abs(l[e-1]-c)||"next"===t.swipeDirection?l[e]:l[e-1],c=-c}if(g&&r("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=s?Math.abs((-c-t.translate)/t.velocity):Math.abs((c-t.translate)/t.velocity),o.freeMode.sticky){const n=Math.abs((s?-c:c)-t.translate),i=t.slidesSizesGrid[t.activeIndex];e=n<i?o.speed:n<2*i?1.5*o.speed:2.5*o.speed}}else if(o.freeMode.sticky)return void t.slideToClosest();o.freeMode.momentumBounce&&h?(t.updateProgress(p),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating=!0,T(a,(()=>{t&&!t.destroyed&&u.allowMomentumBounce&&(i("momentumBounce"),t.setTransition(o.speed),setTimeout((()=>{t.setTranslate(p),T(a,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(i("_freeModeNoMomentumRelease"),t.updateProgress(c),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,T(a,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(c),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(o.freeMode.sticky)return void t.slideToClosest();o.freeMode&&i("_freeModeNoMomentumRelease")}(!o.freeMode.momentum||c>=o.longSwipesMs)&&(i("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,n,i,r,{swiper:o,extendParams:a,on:s}=e;a({grid:{rows:1,fill:"column"}});const l=()=>{let e=o.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*o.size:"string"==typeof e&&(e=parseFloat(e)),e};s("init",(()=>{r=o.params.grid&&o.params.grid.rows>1})),s("update",(()=>{const{params:e,el:t}=o,n=e.grid&&e.grid.rows>1;r&&!n?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),i=1,o.emitContainerClasses()):!r&&n&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),o.emitContainerClasses()),r=n})),o.grid={initSlides:e=>{const{slidesPerView:r}=o.params,{rows:a,fill:s}=o.params.grid,l=o.virtual&&o.params.virtual.enabled?o.virtual.slides.length:e.length;i=Math.floor(l/a),t=Math.floor(l/a)===l/a?l:Math.ceil(l/a)*a,"auto"!==r&&"row"===s&&(t=Math.max(t,r*a)),n=t/a},unsetSlides:()=>{o.slides&&o.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[o.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,r,a)=>{const{slidesPerGroup:s}=o.params,u=l(),{rows:c,fill:d}=o.params.grid,p=o.virtual&&o.params.virtual.enabled?o.virtual.slides.length:a.length;let h,f,g;if("row"===d&&s>1){const n=Math.floor(e/(s*c)),i=e-c*s*n,o=0===n?s:Math.min(Math.ceil((p-n*c*s)/c),s);g=Math.floor(i/o),f=i-g*o+n*s,h=f+g*t/c,r.style.order=h}else"column"===d?(f=Math.floor(e/c),g=e-f*c,(f>i||f===i&&g===c-1)&&(g+=1,g>=c&&(g=0,f+=1))):(g=Math.floor(e/n),f=e-g*n);r.row=g,r.column=f,r.style.height=`calc((100% - ${(c-1)*u}px) / ${c})`,r.style[o.getDirectionLabel("margin-top")]=0!==g?u&&`${u}px`:"",r.swiperSlideGridSet=!0},updateWrapperSize:(e,n)=>{const{centeredSlides:i,roundLengths:r}=o.params,a=l(),{rows:s}=o.params.grid;if(o.virtualSize=(e+a)*t,o.virtualSize=Math.ceil(o.virtualSize/s)-a,o.params.cssMode||(o.wrapperEl.style[o.getDirectionLabel("width")]=`${o.virtualSize+a}px`),i){const e=[];for(let t=0;t<n.length;t+=1){let i=n[t];r&&(i=Math.floor(i)),n[t]<o.virtualSize+n[0]&&e.push(i)}n.splice(0,n.length),n.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:ue.bind(t),prependSlide:ce.bind(t),addSlide:de.bind(t),removeSlide:pe.bind(t),removeAllSlides:he.bind(t)})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({fadeEffect:{crossFade:!1}}),fe({effect:"fade",swiper:t,on:i,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let n=0;n<e.length;n+=1){const e=t.slides[n];let i=-e.swiperSlideOffset;t.params.virtualTranslate||(i-=t.translate);let r=0;t.isHorizontal()||(r=i,i=0);const o=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),a=ge(0,e);a.style.opacity=o,a.style.transform=`translate3d(${i}px, ${r}px, 0px)`}},setTransition:e=>{const n=t.slides.map((e=>v(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`})),me({swiper:t,duration:e,transformElements:n,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const r=(e,t,n)=>{let i=n?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),r=n?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");i||(i=w("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(n?"left":"top")).split(" ")),e.append(i)),r||(r=w("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(n?"right":"bottom")).split(" ")),e.append(r)),i&&(i.style.opacity=Math.max(-t,0)),r&&(r.style.opacity=Math.max(t,0))};fe({effect:"cube",swiper:t,on:i,setTranslate:()=>{const{el:e,wrapperEl:n,slides:i,width:o,height:a,rtlTranslate:s,size:l,browser:u}=t,c=A(t),d=t.params.cubeEffect,p=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled;let f,g=0;d.shadow&&(p?(f=t.wrapperEl.querySelector(".swiper-cube-shadow"),f||(f=w("div","swiper-cube-shadow"),t.wrapperEl.append(f)),f.style.height=`${o}px`):(f=e.querySelector(".swiper-cube-shadow"),f||(f=w("div","swiper-cube-shadow"),e.append(f))));for(let e=0;e<i.length;e+=1){const t=i[e];let n=e;h&&(n=parseInt(t.getAttribute("data-swiper-slide-index"),10));let o=90*n,a=Math.floor(o/360);s&&(o=-o,a=Math.floor(-o/360));const u=Math.max(Math.min(t.progress,1),-1);let f=0,m=0,v=0;n%4==0?(f=4*-a*l,v=0):(n-1)%4==0?(f=0,v=4*-a*l):(n-2)%4==0?(f=l+4*a*l,v=l):(n-3)%4==0&&(f=-l,v=3*l+4*l*a),s&&(f=-f),p||(m=f,f=0);const y=`rotateX(${c(p?0:-o)}deg) rotateY(${c(p?o:0)}deg) translate3d(${f}px, ${m}px, ${v}px)`;u<=1&&u>-1&&(g=90*n+90*u,s&&(g=90*-n-90*u)),t.style.transform=y,d.slideShadows&&r(t,u,p)}if(n.style.transformOrigin=`50% 50% -${l/2}px`,n.style["-webkit-transform-origin"]=`50% 50% -${l/2}px`,d.shadow)if(p)f.style.transform=`translate3d(0px, ${o/2+d.shadowOffset}px, ${-o/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${d.shadowScale})`;else{const e=Math.abs(g)-90*Math.floor(Math.abs(g)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),n=d.shadowScale,i=d.shadowScale/t,r=d.shadowOffset;f.style.transform=`scale3d(${n}, 1, ${i}) translate3d(0px, ${a/2+r}px, ${-a/2/i}px) rotateX(-89.99deg)`}const m=(u.isSafari||u.isWebView)&&u.needPerspectiveFix?-l/2:0;n.style.transform=`translate3d(0px,0,${m}
2px) rotateX(${c(t.isHorizontal()?0:g)}deg) rotateY(${c(t.isHorizontal()?-g:0)}deg)`,n.style.setProperty("--swiper-cube-translate-z",`${m}px`)},setTransition:e=>{const{el:n,slides:i}=t;if(i.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=n.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach((t=>{const n=Math.max(Math.min(t.progress,1),-1);r(t,n,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({flipEffect:{slideShadows:!0,limitRotation:!0}});const r=(e,n)=>{let i=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),r=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");i||(i=ve("flip",e,t.isHorizontal()?"left":"top")),r||(r=ve("flip",e,t.isHorizontal()?"right":"bottom")),i&&(i.style.opacity=Math.max(-n,0)),r&&(r.style.opacity=Math.max(n,0))};fe({effect:"flip",swiper:t,on:i,setTranslate:()=>{const{slides:e,rtlTranslate:n}=t,i=t.params.flipEffect,o=A(t);for(let a=0;a<e.length;a+=1){const s=e[a];let l=s.progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(s.progress,1),-1));const u=s.swiperSlideOffset;let c=-180*l,d=0,p=t.params.cssMode?-u-t.translate:-u,h=0;t.isHorizontal()?n&&(c=-c):(h=p,p=0,d=-c,c=0),s.style.zIndex=-Math.abs(Math.round(l))+e.length,i.slideShadows&&r(s,l);const f=`translate3d(${p}px, ${h}px, 0px) rotateX(${o(d)}deg) rotateY(${o(c)}deg)`;ge(0,s).style.transform=f}},setTransition:e=>{const n=t.slides.map((e=>v(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),me({swiper:t,duration:e,transformElements:n})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let n=e.progress;t.params.flipEffect.limitRotation&&(n=Math.max(Math.min(e.progress,1),-1)),r(e,n)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),fe({effect:"coverflow",swiper:t,on:i,setTranslate:()=>{const{width:e,height:n,slides:i,slidesSizesGrid:r}=t,o=t.params.coverflowEffect,a=t.isHorizontal(),s=t.translate,l=a?e/2-s:n/2-s,u=a?o.rotate:-o.rotate,c=o.depth,d=A(t);for(let e=0,t=i.length;e<t;e+=1){const t=i[e],n=r[e],s=(l-t.swiperSlideOffset-n/2)/n,p="function"==typeof o.modifier?o.modifier(s):s*o.modifier;let h=a?u*p:0,f=a?0:u*p,g=-c*Math.abs(p),m=o.stretch;"string"==typeof m&&-1!==m.indexOf("%")&&(m=parseFloat(o.stretch)/100*n);let v=a?0:m*p,y=a?m*p:0,x=1-(1-o.scale)*Math.abs(p);Math.abs(y)<.001&&(y=0),Math.abs(v)<.001&&(v=0),Math.abs(g)<.001&&(g=0),Math.abs(h)<.001&&(h=0),Math.abs(f)<.001&&(f=0),Math.abs(x)<.001&&(x=0);const w=`translate3d(${y}px,${v}px,${g}px)  rotateX(${d(f)}deg) rotateY(${d(h)}deg) scale(${x})`;if(ge(0,t).style.transform=w,t.style.zIndex=1-Math.abs(Math.round(p)),o.slideShadows){let e=a?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),n=a?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=ve("coverflow",t,a?"left":"top")),n||(n=ve("coverflow",t,a?"right":"bottom")),e&&(e.style.opacity=p>0?p:0),n&&(n.style.opacity=-p>0?-p:0)}}},setTransition:e=>{t.slides.map((e=>v(e))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const r=e=>"string"==typeof e?e:`${e}px`;fe({effect:"creative",swiper:t,on:i,setTranslate:()=>{const{slides:e,wrapperEl:n,slidesSizesGrid:i}=t,o=t.params.creativeEffect,{progressMultiplier:a}=o,s=t.params.centeredSlides,l=A(t);if(s){const e=i[0]/2-t.params.slidesOffsetBefore||0;n.style.transform=`translateX(calc(50% - ${e}px))`}for(let n=0;n<e.length;n+=1){const i=e[n],u=i.progress,c=Math.min(Math.max(i.progress,-o.limitProgress),o.limitProgress);let d=c;s||(d=Math.min(Math.max(i.originalProgress,-o.limitProgress),o.limitProgress));const p=i.swiperSlideOffset,h=[t.params.cssMode?-p-t.translate:-p,0,0],f=[0,0,0];let g=!1;t.isHorizontal()||(h[1]=h[0],h[0]=0);
vendor: 5,446 bytes, line 2
2let m={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};c<0?(m=o.next,g=!0):c>0&&(m=o.prev,g=!0),h.forEach(((e,t)=>{h[t]=`calc(${e}px + (${r(m.translate[t])} * ${Math.abs(c*a)}))`})),f.forEach(((e,t)=>{let n=m.rotate[t]*Math.abs(c*a);f[t]=n})),i.style.zIndex=-Math.abs(Math.round(u))+e.length;const v=h.join(", "),y=`rotateX(${l(f[0])}deg) rotateY(${l(f[1])}deg) rotateZ(${l(f[2])}deg)`,x=d<0?`scale(${1+(1-m.scale)*d*a})`:`scale(${1-(1-m.scale)*d*a})`,w=d<0?1+(1-m.opacity)*d*a:1-(1-m.opacity)*d*a,_=`translate3d(${v}) ${y} ${x}`;if(g&&m.shadow||!g){let e=i.querySelector(".swiper-slide-shadow");if(!e&&m.shadow&&(e=ve("creative",i)),e){const t=o.shadowPerProgress?c*(1/o.limitProgress):c;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const b=ge(0,i);b.style.transform=_,b.style.opacity=w,m.origin&&(b.style.transformOrigin=m.origin)}},setTransition:e=>{const n=t.slides.map((e=>v(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),me({swiper:t,duration:e,transformElements:n,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),fe({effect:"cards",swiper:t,on:i,setTranslate:()=>{const{slides:e,activeIndex:n,rtlTranslate:i}=t,r=t.params.cardsEffect,{startTranslate:o,isTouched:a}=t.touchEventsData,s=i?-t.translate:t.translate;for(let l=0;l<e.length;l+=1){const u=e[l],c=u.progress,d=Math.min(Math.max(c,-4),4);let p=u.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(p-=e[0].swiperSlideOffset);let h=t.params.cssMode?-p-t.translate:-p,f=0;const g=-100*Math.abs(d);let m=1,v=-r.perSlideRotate*d,y=r.perSlideOffset-.75*Math.abs(d);const x=t.virtual&&t.params.virtual.enabled?t.virtual.from+l:l,w=(x===n||x===n-1)&&d>0&&d<1&&(a||t.params.cssMode)&&s<o,_=(x===n||x===n+1)&&d<0&&d>-1&&(a||t.params.cssMode)&&s>o;if(w||_){const e=(1-Math.abs((Math.abs(d)-.5)/.5))**.5;v+=-28*d*e,m+=-.5*e,y+=96*e,f=-25*e*Math.abs(d)+"%"}if(h=d<0?`calc(${h}px ${i?"-":"+"} (${y*Math.abs(d)}%))`:d>0?`calc(${h}px ${i?"-":"+"} (-${y*Math.abs(d)}%))`:`${h}px`,!t.isHorizontal()){const e=f;f=h,h=e}const b=d<0?""+(1+(1-m)*d):""+(1-(1-m)*d),S=`\n        translate3d(${h}, ${f}, ${g}px)\n        rotateZ(${r.rotate?i?-v:v:0}deg)\n        scale(${b})\n      `;if(r.slideShadows){let e=u.querySelector(".swiper-slide-shadow");e||(e=ve("cards",u)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(d)-.5)/.5,0),1))}u.style.zIndex=-Math.abs(Math.round(c))+e.length,ge(0,u).style.transform=S}},setTransition:e=>{const n=t.slides.map((e=>v(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),me({swiper:t,duration:e,transformElements:n})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:t.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!t.params.cssMode})})}];ae.use(ye);const xe=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function we(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function _e(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter((e=>
2n.indexOf(e)<0)).forEach((n=>{void 0===e[n]?e[n]=t[n]:we(t[n])&&we(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:_e(e[n],t[n]):e[n]=t[n]}))}function be(e){return void 0===e&&(e=""),e.replace(/-[a-z]/g,(e=>e.toUpperCase().replace("-","")))}const Se=e=>{if(parseFloat(e)===Number(e))return Number(e);if("true"===e)return!0;if(""===e)return!0;if("false"===e)return!1;if("null"===e)return null;if("undefined"!==e){if("string"==typeof e&&e.includes("{")&&e.includes("}")&&e.includes('"')){let t;try{t=JSON.parse(e)}catch(n){t=e}return t}return e}},Me=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function Te(e,t,n){const i={},r={};_e(i,ne);const o=[...xe,"on"],a=o.map((e=>e.replace(/_/,"")));o.forEach((t=>{t=t.replace("_",""),void 0!==e[t]&&(r[t]=e[t])}));const s=[...e.attributes];return"string"==typeof t&&void 0!==n&&s.push({name:t,value:we(n)?{...n}:n}),s.forEach((e=>{const t=Me.find((t=>e.name.startsWith(`${t}-`)));if(t){const n=be(t),i=be(e.name.split(`${t}-`)[1]);void 0===r[n]&&(r[n]={}),!0===r[n]&&(r[n]={enabled:!0}),r[n][i]=Se(e.value)}else{const t=be(e.name);if(!a.includes(t))return;const n=Se(e.value);r[t]&&Me.includes(e.name)&&!we(n)?(r[t].constructor!==Object&&(r[t]={}),r[t].enabled=!!n):r[t]=n}})),_e(i,r),i.navigation?i.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...!0!==i.navigation?i.navigation:{}}:!1===i.navigation&&delete i.navigation,i.scrollbar?i.scrollbar={el:".swiper-scrollbar",...!0!==i.scrollbar?i.scrollbar:{}}:!1===i.scrollbar&&delete i.scrollbar,i.pagination?i.pagination={el:".swiper-pagination",...!0!==i.pagination?i.pagination:{}}:!1===i.pagination&&delete i.pagination,{params:i,passedParams:r}}const Ce=
vendor: 13,444 bytes, line 2
2":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}",
2Ie="undefined"==typeof window||"undefined"==typeof HTMLElement?class{}:HTMLElement,Ae='<svg width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>\n    ',De=(e,t)=>{if("undefined"!=typeof CSSStyleSheet&&e.adoptedStyleSheets){const n=new CSSStyleSheet;n.replaceSync(t),e.adoptedStyleSheets=[n]}else{const n=document.createElement("style");n.rel="stylesheet",n.textContent=t,e.appendChild(n)}};class ke extends Ie{constructor(){super(),this.attachShadow({mode:"open"})}static get nextButtonSvg(){return Ae}static get prevButtonSvg(){return Ae.replace("/></svg>",' transform-origin="center" transform="rotate(180)"/></svg>')}cssStyles(){return[Ce,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join("\n")}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const e=this.slideSlots||0,t=[...this.querySelectorAll("[slot^=slide-]")].map((e=>parseInt(e.getAttribute("slot").split("slide-")[1],10)));if(this.slideSlots=t.length?Math.max(...t)+1:0,this.rendered)if(this.slideSlots>e)for(let t=e;t<this.slideSlots;t+=1){const e=document.createElement("swiper-slide");e.setAttribute("part",`slide slide-${t+1}`);const n=document.createElement("slot");n.setAttribute("name",`slide-${t+1}`),e.appendChild(n),this.shadowRoot.querySelector(".swiper-wrapper").appendChild(e)}else if(this.slideSlots<e){const e=this.swiper.slides;for(let t=e.length-1;t>=0;t-=1)t>this.slideSlots&&e[t].remove()}}
2render(){if(this.rendered)return;this.calcSlideSlots();let e=this.cssStyles();this.slideSlots>0&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),e.length&&De(this.shadowRoot,e),this.cssLinks().forEach((e=>{if(this.shadowRoot.querySelector(`link[href="${e}"]`))return;const t=document.createElement("link");t.rel="stylesheet",t.href=e,this.shadowRoot.appendChild(t)}));const t=document.createElement("div");var n;t.classList.add("swiper"),t.part="container",t.innerHTML=`\n      <slot name="container-start"></slot>\n      <div class="swiper-wrapper" part="wrapper">\n        <slot></slot>\n        ${Array.from({length:this.slideSlots}).map(((e,t)=>`\n        <swiper-slide part="slide slide-${t}">\n          <slot name="slide-${t}"></slot>\n        </swiper-slide>\n        `)).join("")}\n      </div>\n      <slot name="container-end"></slot>\n      ${n=this.passedParams,void 0===n&&(n={}),n.navigation&&void 0===n.navigation.nextEl&&void 0===n.navigation.prevEl?`\n        <div part="button-prev" class="swiper-button-prev">${this.constructor.prevButtonSvg}</div>\n        <div part="button-next" class="swiper-button-next">${this.constructor.nextButtonSvg}</div>\n      `:""}\n      ${function(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}(this.passedParams)?'\n        <div part="pagination" class="swiper-pagination"></div>\n      ':""}\n      ${function(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}(this.passedParams)?'\n        <div part="scrollbar" class="swiper-scrollbar"></div>\n      ':""}\n    `,this.shadowRoot.appendChild(t),this.rendered=!0}initialize(){var e=this;if(this.swiper&&this.swiper.initialized)return;const{params:t,passedParams:n}=Te(this);this.swiperParams=t,this.passedParams=n,delete this.swiperParams.init,this.render(),this.swiper=new ae(this.shadowRoot.querySelector(".swiper"),{...t.virtual?{}:{observer:!0},...t,touchEventsTarget:"container",onAny:function(n){"observerUpdate"===n&&e.calcSlideSlots();const i=t.eventsPrefix?`${t.eventsPrefix}${n.toLowerCase()}`:n.toLowerCase();for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];const s=new CustomEvent(i,{detail:o,bubbles:"hashChange"!==n,cancelable:!0});e.dispatchEvent(s)}})}connectedCallback(){this.swiper&&this.swiper.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||!1!==this.init&&"false"!==this.getAttribute("init")&&this.initialize()}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.swiper&&this.swiper.destroy&&this.swiper.destroy()}updateSwiperOnPropChange(e,t){const{params:n,passedParams:i}=Te(this,e,t);this.passedParams=i,this.swiperParams=n,this.swiper&&this.swiper.params[e]===t||function(e){let{swiper:t,slides:n,passedParams:i,changedParams:r,nextEl:o,prevEl:a,scrollbarEl:s,paginationEl:l}=e;const u=r.filter((e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e)),{params:c,pagination:d,navigation:p,scrollbar:h,virtual:f,thumbs:g}=t;let m,v,y,x,w,_,b,S;r.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&!i.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(m=!0),r.includes("controller")&&i.controller&&i.controller.control&&c.controller&&!c.controller.control&&(v=!0),r.includes("pagination")&&i.pagination&&(i.pagination.el||l)&&(c.pagination||!1===c.pagination)&&d&&!d.el&&(y=!0),r.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||s)&&(c.scrollbar||!1===c.scrollbar)&&h&&!h.el&&(x=!0),r.includes("navigation")&&i.navigation&&(i.navigation.prevEl||a)&&(i.navigation.nextEl||o)&&(c.navigation||!1===c.navigation)&&p&&!p.prevEl&&!p.nextEl&&(w=!0);const M=e=>{t[e]&&(t[e].destroy(),"navigation"===e?(t.isElement&&(t[e].prevEl.remove(),t[e].nextEl.remove()),c[e].prevEl=void 0,c[e].nextEl=void 0,t[e].prevEl=void 0,t[e].nextEl=void 0):(t.isElement&&t[e].el.remove(),c[e].el=void 0,t[e].el=void 0))};r.includes("loop")&&t.isElement&&(c.loop&&!i.loop?_=!0:!c.loop&&i.loop?b=!0:S=!0),u.forEach((e=>{if(we(c[e])&&we(i[e]))Object.assign(c[e],i[e]),"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e||!("enabled"in i[e])||i[e].enabled||M(e);else{const t=i[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?c[e]=i[e]:!1===t&&M(e)}})),u.includes("controller")&&!v&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),r.includes("children")&&n&&f&&c.virtual.enabled?(f.slides=n,f.update(!0)):r.includes("virtual")&&f&&c.virtual.enabled&&(n&&(f.slides=n),f.update(!0)),r.includes("children")&&n&&c.loop&&(S=!0),m&&g.init()&&g.update(!0),v&&(t.controller.control=c.controller.control),y&&(!t.isElement||l&&"string"!=typeof l||(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.a
2ppendChild(l)),l&&(c.pagination.el=l),d.init(),d.render(),d.update()),x&&(!t.isElement||s&&"string"!=typeof s||(s=document.createElement("div"),s.classList.add("swiper-scrollbar"),s.part.add("scrollbar"),t.el.appendChild(s)),s&&(c.scrollbar.el=s),h.init(),h.updateSize(),h.setTranslate()),w&&(t.isElement&&(o&&"string"!=typeof o||(o=document.createElement("div"),o.classList.add("swiper-button-next"),o.innerHTML=t.hostEl.constructor.nextButtonSvg,o.part.add("button-next"),t.el.appendChild(o)),a&&"string"!=typeof a||(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=t.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),t.el.appendChild(a))),o&&(c.navigation.nextEl=o),a&&(c.navigation.prevEl=a),p.init(),p.update()),r.includes("allowSlideNext")&&(t.allowSlideNext=i.allowSlideNext),r.includes("allowSlidePrev")&&(t.allowSlidePrev=i.allowSlidePrev),r.includes("direction")&&t.changeDirection(i.direction,!1),(_||S)&&t.loopDestroy(),(b||S)&&t.loopCreate(),t.update()}({swiper:this.swiper,passedParams:this.passedParams,changedParams:[be(e)],..."navigation"===e&&i[e]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{},..."pagination"===e&&i[e]?{paginationEl:".swiper-pagination"}:{},..."scrollbar"===e&&i[e]?{scrollbarEl:".swiper-scrollbar"}:{}})}attributeChangedCallback(e,t,n){this.swiper&&this.swiper.initialized&&("true"===t&&null===n&&(n=!1),this.updateSwiperOnPropChange(e,n))}static get observedAttributes(){return xe.filter((e=>e.includes("_"))).map((e=>e.replace(/[A-Z]/g,(e=>`-${e}`)).replace("_","").toLowerCase()))}}xe.forEach((e=>{"init"!==e&&(e=e.replace("_",""),Object.defineProperty(ke.prototype,e,{configurable:!0,get(){return(this.passedParams||{})[e]},set(t){this.passedParams||(this.passedParams={}),this.passedParams[e]=t,this.swiper&&this.swiper.initialized&&this.updateSwiperOnPropChange(e,t)}}))}));class Le extends Ie{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||""===this.getAttribute("lazy")||"true"===this.getAttribute("lazy");if(De(this.shadowRoot,"::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}"),this.shadowRoot.appendChild(document.createElement("slot")),e){const e=document.createElement("div");e.classList.add("swiper-lazy-preloader"),e.part.add("preloader"),this.shadowRoot.appendChild(e)}}initialize(){this.render()}connectedCallback(){this.swiperLoopMoveDOM||this.initialize()}}const Ee=()=>{"undefined"!=typeof window&&(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",ke),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",Le))};"undefined"!=typeof window&&(window.SwiperElementRegisterParams=e=>{xe.push(...e)})},8156:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Prom
2ise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const r=n(5835);n(3538);const o=n(9940),a=n(450),s=n(2810),l=n(1966);function u(e,t){var n,i,r,o;const{key:a}=e;if("ArrowUp"===a||"ArrowDown"===a){e.preventDefault();const i=document.getElementById(t),r=i.getElementsByTagName("tr");if(0===r.length)return;const o=parseInt(null!==(n=i.dataset.index)&&void 0!==n?n:"-1"),s="ArrowUp"===a?Math.max(o-1,0):Math.min(o+1,r.length-1);if(isNaN(o)||isNaN(s))return;o!==s&&(i.dataset.index=`${s}`,-1!==o&&r[o].classList.remove("synap-bg-main-100"),r[s].classList.add("synap-bg-main-100"))}else if("Enter"===a){e.preventDefault();const n=document.getElementById(t),a=n.getElementsByTagName("tr");if(0===a.length)return;const s=parseInt(null!==(i=n.dataset.index)&&void 0!==i?i:"0");if(isNaN(s))return;const l=document.getElementById("searchInput");if(l.dataset.last!=l.value)return;null===(o=null===(r=a[s])||void 0===r?void 0:r.getElementsByTagName("a")[0])||void 0===o||o.click()}else"Escape"===a&&(e.target.blur(),p())}function c(e,t){return i(this,void 0,void 0,(function*(){let e=null,n=null,i=null;if("headerSearchGroup"==t.id?(e=document.getElementById("headerSearchInput"),n=document.getElementById("headerSearchResultContainer"),i=document.getElementById("headerSearchResult")):(e=document.getElementById("searchInput"),n=document.getElementById("searchResultContainer"),i=document.getElementById("searchResult")),!e.value)return i.innerHTML="",p(),void(e.dataset.last="");if(e.value===e.dataset.last)return;e.dataset.last=e.value,d(n),i.classList.add("table-loading");const o=(0,l.refineSearchInput)(e.value);if(""===o)return void(0,l.createNotSearchedComponent)(i,u);const a=yield fetch(`${r.SERVER_ADDR}/company_report/search_company/${o}`).catch((e=>{(0,l.createNotSearchedComponent)(i,u)}));if(!a||a&&404===a.status)return void(0,l.createNotSearchedComponent)(i,u);const s=yield a.json();if(i.innerHTML="",0!==s.result.length){for(const e of s.result)i.appendChild((0,l.createSearchedComponent)(e.corp_name,e.dart_corp_code,e.stock_code,e.corp_cls));u()}else(0,l.createNotSearchedComponent)(i,u);function u(){i.classList.remove("table-loading"),delete i.dataset.index}}))}function d(e){e.classList.remove("d-none")}function p(){document.getElementById("searchResultContainer").classList.add("d-none"),document.getElementById("headerSearchResultContainer").classList.add("d-none")}document.addEventListener("DOMContentLoaded",(function(){var e,t;(0,l.isInternalIP)(),(0,o.verifyAuth)(),(0,a.initPopups)();const n=document.getElementById("headerSearchInput"),r=document.getElementById("headerSearchResultContainer"),h=document.getElementById("searchGroup"),f=document.getElementById("searchInput"),g=document.getElementById("searchResultContainer");!function(){const e=document.getElementById("headerSearchGroup"),t=document.getElementById("headerSearchInput"),n=document.getElementById("headerSearchResultContainer");document.getElementById("headerSearchResult"),t.addEventListener("keydown",(function(e){u(e,"headerSearchResult")})),t.addEventListener("keyup",(0,l.debounce)((t=>c(0,e)),200)),t.addEventListener("paste",(0,l.debounce)((t=>c(0,e)),200)),t.addEventListener("focus",(function(e){d(n)}));const i=document.getElementById("searchGroup"),r=document.getElementById("searchInput"),o=document.getElementById("searchResultContainer");document.getElementById("searchResult"),r.addEventListener("keydown",(function(e){u(e,"searchResult")})),r.addEventListener("keyup",(0,l.debounce)((e=>c(0,i)),200)),r.addEventListener("paste",(0,l.debounce)((e=>c(0,i)),200)),r.addEventListener("focus",(function(e){d(o)}));const a=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting?e.classList.add("d-none"):e.classList.remove("d-none")}))})),s=document.getElementById("landingTitle");a.observe(s)}(),(0,l.setLoginLogoutBtns)(),(0,l.setHeaderSubscribePlanBtn)(),c(0,h),null===(e=document.getElementById("btnCtaStart"))||void 0===e||e.addEventListener("click",(()=>{window.location.href="/loginPage.cmd?appId=du"})),null===(t=document.getElementById("btnCtaForm"))||void 0===t||t.addEventListener("click",(()=>{window.open("https://www.synapoffice.com/_4ePTO","_blank")})),document.addEventListener("click",(e=>{e.stopPropagation();const t=e.target;f.contains(t)||g.contains(t)?d(g):n.contains(t)||r.contains(t)?d(r):p()})),document.addEventListener("keydown",(e=>{"/"===e.key&&"INPUT"!==e.target.tagName&&(e.preventDefault(),f.focu
2s())})),(()=>{i(this,void 0,void 0,(function*(){if(!(yield(0,s.renderTrendStock)()))return;(0,s.setTrendStockSlider)(),(0,s.setTrendCorpSlider)(),(0,s.applyTrendButtonDirectionStyles)(),(0,s.bindTrendStockButtonEvents)(),(0,s.bindTrendCorpButtonEvents)();const e=document.getElementById("trendStockSwiperSpinner"),t=document.getElementById("trendStockSwiperContainer");e.classList.add("d-none"),t.classList.remove("invisible");const n=document.getElementById("trendCorpSwiperSpinner"),i=document.getElementById("trendCorpSwiperContainer");n.classList.add("d-none"),i.classList.remove("invisible"),document.getElementById("corpStockChartSpinner").classList.add("d-none"),(0,s.linkTrendSwipersController)(),(0,s.bindCorpStockChartHoverAutoplay)()}))})()}))},9940:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.logout=l,t.verifyAuth=function(){return i(this,void 0,void 0,(function*(){if(0==(0,a.getCookie)("auth_code").length)return!1;let e=!1;try{const t=yield fetch(`${o.SERVER_ADDR}/auth/verification`,{method:"POST"});return!!t.ok&&(e=(yield t.json()).verified,e)}finally{e||(document.cookie="auth_code=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/",l(!0))}}))},t.verifyAuthentication=function(){let e=!1,t=new FormData;return t.append("target_path",window.location.pathname+window.location.search),s.default.ajax({url:`${o.SERVER_ADDR}/auth/verification`,type:"POST",async:!1,contentType:!1,processData:!1,data:t,success:t=>{e=t.verified}}),e};const o=n(5835),a=n(1966),s=r(n(4692));function l(){return i(this,arguments,void 0,(function*(e=!1){(0,a.clearActiveShareId)();try{yield fetch(`${o.SERVER_ADDR}/auth/logout`,{method:"GET"}),e?window.location.reload():"web"===o.PLATFORM?window.location.href="/":window.location.href="/index.html"}catch(e){(0,a.makeAlertModal)("logoutModal","로그아웃에 실패했습니다.")}}))}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(8156)})();

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.