PageSourceSearch

https://www.onwish.ai/_nuxt/EmR5DI1Z.js

js onwish.ai collected 2026-10-05 12:32:13 UTC 704,879 bytes, 86 lines download raw bytes

1import{c as MD,_ as CD,a as DD}from"./CvC1bszU.js";import{X as Rb,Y as Eb,f as Ob,S as Mr,r as Ha,l as On,n as AD,q as PD,v as ID,o as tn,c as en,a as pe,m as Ou,J as Bb,K as LD,D as ky,d as fp,t as di,G as hp,u as kD,R as RD,b as ov,g as ED}from"./DYiYvntX.js";import{d as OD}from"./E3pq1RDy.js";import{u as Ry}from"./DxHtBhvS.js";import{u as BD}from"./0pzMgD9L.js";import{m as Ey}from"./CTK1a051.js";import"./DVLuFF-7.js";import"./B1VxvbG7.js";/*! *****************************************************************************
2Copyright (c) Microsoft Corporation.
3
4Permission to use, copy, modify, and/or distribute this software for any
5purpose with or without fee is hereby granted.
6
7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13PERFORMANCE OF THIS SOFTWARE.
14***************************************************************************** */var cp=function(r,t){return cp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},cp(r,t)};function F(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cp(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ND(r,t,e,i){function n(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=Promise))(function(a,o){function s(f){try{l(i.next(f))}catch(h){o(h)}}function u(f){try{l(i.throw(f))}catch(h){o(h)}}function l(f){f.done?a(f.value):n(f.value).then(s,u)}l((i=i.apply(r,[])).next())})}function Nb(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(f){return u([l,f])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,n&&(a=l[0]&2?n.return:l[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,l[1])).done)return a;switch(n=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,n=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){e.label=l[1];break}if(l[0]===6&&e.label<a[1]){e.label=a[1],a=l;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(l);break}a[2]&&e.ops.pop(),e.trys.pop();continue}l=t.call(r,e)}catch(f){l=[6,f],n=0}finally{i=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function ws(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],i=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ih(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var i=e.call(r),n,a=[],o;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return a}function Lh(r,t,e){if(arguments.length===2)for(var i=0,n=t.length,a;i<n;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return r.concat(a||t)}function us(r){return this instanceof us?(this.v=r,this):new us(r)}function FD(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(r,t||[]),n,a=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(v){i[v]&&(n[v]=function(c){return new Promise(function(d,p){a.push([v,c,d,p])>1||s(v,c)})})}function s(v,c){try{u(i[v](c))}catch(d){h(a[0][3],d)}}function u(v){v.value instanceof us?Promise.resolve(v.value.v).then(l,f):h(a[0][2],v)}function l(v){s("next",v)}function f(v){s("throw",v)}function h(v,c){v(c),a.shift(),a.length&&s(a[0][0],a[0][1])}}function zD(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof ws=="function"?ws(r):r[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(a){e[a]=r[a]&&function(o){return new Promise(function(s,u){o=r[a](o),n(s,u,o.done,o.value)})}}function n(a,o,s,u){Promise.resolve(u).then(function(l){a({value:l,done:s})},o)}}var GD=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),VD=function(){function r(){this.browser=new GD,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),nt=new VD;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(nt.wxa=!0,nt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?nt.worker=!0:typeof navigator>
14"u"||navigator.userAgent.indexOf("Node.js")===0?(nt.node=!0,nt.svgSupported=!0):HD(navigator.userAgent,nt);function HD(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var $g=12,WD="sans-serif",ho=$g+"px "+WD,YD=20,UD=100,XD="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function $D(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-YD)/UD;t[i]=n}return t}var ZD=$D(XD),Os={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,i){if(!r){var n=Os.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||ho),r.measureText(e);e=e||"",i=i||ho;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||$g,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var u=0;u<e.length;u++){var l=ZD[e[u]];s+=l==null?o:l*o}return{width:s}}}(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}},Fb=Ns(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),zb=Ns(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Bs=Object.prototype.toString,xc=Array.prototype,qD=xc.forEach,KD=xc.filter,Zg=xc.slice,QD=xc.map,Oy=(function(){}).constructor,jl=Oy?Oy.prototype:null,qg="__proto__",jD=2311;function Gb(){return jD++}function Kg(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function ht(r){if(r==null||typeof r!="object")return r;var t=r,e=Bs.call(r);if(e==="[object Array]"){if(!Bu(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=ht(r[i])}}else if(zb[e]){if(!Bu(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!Fb[e]&&!Bu(r)&&!ll(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==qg&&(t[o]=ht(r[o]))}return t}function bt(r,t,e){if(!Z(t)||!Z(r))return e?ht(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==qg){var n=r[i],a=t[i];Z(a)&&Z(n)&&!G(a)&&!G(n)&&!ll(a)&&!ll(n)&&!By(a)&&!By(n)&&!Bu(a)&&!Bu(n)?bt(n,a,e):(e||!(i in r))&&(r[i]=ht(t[i]))}return r}function JD(r,t){for(var e=r[0],i=1,n=r.length;i<n;i++)e=bt(e,r[i],t);return e}function N(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==qg&&(r[e]=t[e]);return r}function yt(r,t,e){for(var i=Gt(t),n=0;n<i.length;n++){var a=i[n];(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}return r}function Mt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function tA(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function ei(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else yt(r,t,e)}function ar(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,t,e){if(r&&t)if(r.forEach&&r.forEach===qD)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function Y(r,t,e){if(!r)return[];if(!t)return Qg(r);if(r.map&&r.map===QD)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function Ns(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function Kt(r,t,e){if(!r)return[];if(!t)return Qg(r);if(r.filter&&r.filter===KD)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function Gt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function eA(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(Zg.call(arguments)))}}var at=jl&&J(jl.bind)?jl.call.bind(jl.bind):eA;function Rt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Zg.call(arguments)))}}function G(r){return Array.isArray?Array.isArray(r):Bs.call(r)==="[object Array]"}function J(r){return typeof r=="function"}function $(r){return typeof r=="string"}function vp(r){return Bs.call(r)==="[object String]"}function Vt(r){return typeof r=="number"}function Z(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function By(r){return!!Fb[Bs.call(r)]}function _r(r){return!!zb[Bs.call(r)]}function ll(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function bc(r){return r.colorStops!=null}function rA(r){return r.image!=null}function iA(r){return Bs.call(r)==="[object RegExp]"}function kh(r){return r!==r}function Li(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function it(r,t){return r??t}function ih(r,t,e){return r??t??e}function Qg(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Zg.apply(r,t)}function Vb(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function fn(r,t){if(!r)throw new Error(t)}function ki(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Hb="__ec_primitive__";function dp(r){r[Hb]=!0}function Bu(r){return r[Hb]}var nA=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return Gt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r}(),Wb=typeof Map=="function";function aA(){return Wb?new Map:new nA}
14var oA=function(){function r(t){var e=G(t);this.data=aA();var i=this;t instanceof r?t.each(n):t&&A(t,n);function n(a,o){e?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return Wb?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function K(r){return new oA(r)}function sA(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function Sc(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&N(e,t),e}function Yb(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function hn(r,t){return r.hasOwnProperty(t)}function nr(){}var uA=180/Math.PI;function Fs(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function lA(r){return[r[0],r[1]]}function Ny(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Ub(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function fA(r){return Math.sqrt(hA(r))}function hA(r){return r[0]*r[0]+r[1]*r[1]}function sv(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function jg(r,t){var e=fA(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function pp(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var gp=pp;function cA(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var ls=cA;function nh(r,t,e,i){return r[0]=t[0]+i*(e[0]-t[0]),r[1]=t[1]+i*(e[1]-t[1]),r}function Kr(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function Jo(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function ts(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Po=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),vA=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Po(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new Po(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,u=this._dropTarget;this._dropTarget=s,e!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Po(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new Po(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Po(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Po(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),gi=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var u={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,u=0;u<s;u++){var l=n[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],u=n.length,l=0;l<u;l++){var f=n[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r}(),dA=Math.log(2);function _p(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~n)/dA);return r[e][u]}for(var l=i|1<<e,f=e+1;i&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&n||(h+=(c%2?-1:1)*r[e][v]*_p(r,t-1,f,l,n|d,a),c++)}return a[o]=h,h}function Fy(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},n=_p(e,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*_p(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var zy="___zrEVENTSAVED",uv=[];function pA(r,t,e,i,n){return yp(uv,t,i,n,!0)&&yp(r,e,uv[0],uv[1])}function yp(r,t,e,i,n){if(t.getBoundingClientRect&&nt.domSupported&&!Xb(t)){var a=t[zy]||(t[zy]={}),o=gA(t,a),s=_A(o,a,n);if(s)return s(r,e,i),!0}return!1}function gA(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[u]+":0",n[l]+":0",i[1-u]+":auto",n[1-l]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function _A(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[l].getBoundingClientRect(),h=2*l,v=f.left,c=f.top;o.push(v,c),u=u&&a&&v===a[h]&&c===a[h+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return u&&n?n:(t.srcCoords=o,t[i]=e?Fy(s,o):Fy(o,s))}function Xb(r){return r.nodeName.toUpperCase()==="CANVAS"}var yA=/([&<>"'])/g,mA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Dr(r){return r==null?"":(r+"").replace(yA,function(t,e){return mA[e]})}var xA=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lv=[],bA=nt.browser.firefox&&+nt.browser.version.split(".")[0]<39;function mp(r,t,e,i){return e=e||{},i?Gy(r,t,e):bA&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Gy(r,t,e),e}function Gy(r,t,e){if(nt.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Xb(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(yp(lv,r,i,n)){e.zrX=lv[0],e.zrY=lv[1];return}}e.zrX=e.zrY=0}function Jg(r){return r||window.event}function Vr(r,t,e){if(t=Jg(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&mp(r,o,t,e)}else{mp(r,t,t,e);var a=SA(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&xA.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function SA(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function wA(r,t,e,i){r.addEventListener(t,e,i)}function TA(r,t,e,i){r.removeEventListener(t,e,i)}var Ts=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Vy(r){return r.which===2||r.which===3}var MA=function(){function r(){this._track=[]}
vendor: 4,463 bytes, line 14
14return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var u=n[o],l=mp(i,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in fv)if(fv.hasOwnProperty(e)){var i=fv[e](this._track,t);if(i)return i}},r}();function Hy(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function CA(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var fv={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Hy(i)/Hy(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=CA(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function fs(){return[1,0,0,1,0,0]}function t_(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function DA(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function hs(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],u=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=u,r}function xp(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function e_(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=a*h+u*f,r[3]=-a*f+h*u,r[4]=h*(o-i[0])+f*(l-i[1])+i[0],r[5]=h*(l-i[1])-f*(o-i[0])+i[1],r}function AA(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function wc(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],u=e*o-a*i;return u?(u=1/u,r[0]=o*u,r[1]=-a*u,r[2]=-i*u,r[3]=e*u,r[4]=(i*s-o*n)*u,r[5]=(a*n-e*s)*u,r):null}var rt=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r}(),Jl=Math.min,tf=Math.max,ga=new rt,_a=new rt,ya=new rt,ma=new rt,Zs=new rt,qs=new rt,At=function(){function r(t,e,i,n){i<0&&(t=t+i,i=-i),n<0&&(e=e+n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return r.prototype.union=function(t){var e=Jl(t.x,this.x),i=Jl(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=tf(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=tf(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.he
14ight,a=fs();return xp(a,a,[-e.x,-e.y]),AA(a,a,[i,n]),xp(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,v=!(a<u||l<n||s<f||h<o);if(e){var c=1/0,d=0,p=Math.abs(a-u),g=Math.abs(l-n),_=Math.abs(s-f),y=Math.abs(h-o),m=Math.min(p,g),x=Math.min(_,y);a<u||l<n?m>d&&(d=m,p<g?rt.set(qs,-p,0):rt.set(qs,g,0)):m<c&&(c=m,p<g?rt.set(Zs,p,0):rt.set(Zs,-g,0)),s<f||h<o?x>d&&(d=x,_<y?rt.set(qs,0,-_):rt.set(qs,0,y)):m<c&&(c=m,_<y?rt.set(Zs,0,_):rt.set(Zs,0,-y))}return e&&rt.copy(e,v?Zs:qs),v},r.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ga.x=ya.x=e.x,ga.y=ma.y=e.y,_a.x=ma.x=e.x+e.width,_a.y=ya.y=e.y+e.height,ga.transform(i),ma.transform(i),_a.transform(i),ya.transform(i),t.x=Jl(ga.x,_a.x,ya.x,ma.x),t.y=Jl(ga.y,_a.y,ya.y,ma.y);var u=tf(ga.x,_a.x,ya.x,ma.x),l=tf(ga.y,_a.y,ya.y,ma.y);t.width=u-t.x,t.height=l-t.y},r}(),$b="silent";function PA(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:IA}}function IA(){Ts(this.event)}var LA=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(gi),Ks=function(){function r(t,e){this.x=t,this.y=e}return r}(),kA=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hv=new At(0,0,0,0),Zb=function(r){F(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new Ks(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new LA,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new vA(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(kA,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=qb(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Ks(i,n):this.findHover(i,n),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ks(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=PA(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new Ks(e,i);if(Wy(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new At(e-l,i-l,u,u),h=a.length-1;h>=0;h--){var v=a[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(hv.copy(v.getBoundingRect
14()),v.transform&&hv.applyTransform(v.transform),hv.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g<l;g+=c)for(var _=0;_<p;_+=d){var y=e+g*Math.cos(_),m=i+g*Math.sin(_);if(Wy(s,o,y,m,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new MA);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Ks;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(gi);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Zb.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=qb(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||gp(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function RA(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?$b:!0}return!1}function Wy(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=RA(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==$b)){t.target=o;break}}}function qb(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Kb=32,Qs=7;function EA(r){for(var t=0;r>=Kb;)t|=r&1,r>>=1;return r+t}function Yy(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;OA(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function OA(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function Uy(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,u;o<s;)u=o+s>>>1,n(a,r[u])<0?s=u:o=u+1;var l=i-o;switch(l){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function cv(r,t,e,i,n,a){var o=0,s=0,u=1;if(a(r,t[e+n])>0){for(s=i-n;u<s&&a(r,t[e+n+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}else{for(s=n+1;u<s&&a(r,t[e+n-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])>0?o=f+1:u=f}return u}function vv(r,t,e,i,n,a){var o=0,s=0,u=1;if(a(r,t[e+n])<0){for(s=n+1;u<s&&a(r,t[e+n-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}else{for(s=i-n;u<s&&a(r,t[e+n+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])<0?u=f:o=f+1}return u}function BA(r,t){var e=Qs,i,n,a=0,o=[];i=[],n=[];function s(c,d){i[a]=c,n[a]=d,a+=1}function u(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;f(c)}}function l(){for(;a>1;){var c=a-2;c>0&&n[c-1]<n[c+1]&&c--,f(c)}}function f(c){var d=i[c],p=n[c],g=i[c+1],_=n[c+1];n[c]=p+_,c===a-3&&(i[c+1]=i[c+2],n[c+1]=n[c+2]),a--;var y=vv(r[g],r,d,p,0,t);d+=y,p-=y,p!==0&&(_=cv(r[d+p-1],r,g,_,_-1,t),_!==0&&(p<=_?h(d,p,g,_):v(d,p,g,_)))}function h(c,d,p,g){var _=0;for(_=0;_<d;_++)o[_]=r[c+_];var y=0,m=p,x=c;if(r[x++]=r[m++],--g===0){for(_=0;_<d;_++)r[x+_]=o[y+_];return}if(d===1){for(_=0;_<g;_++)r[x+_]=r[m+_];r[x+g]=o[y];return}for(var S=e,b,w,M;;){b=0,w=0,M=!1;do if(t(r[m],o[y])<0){if(r[x++]=r[m++],w++,b=0,--g===0){M=!0;break}}else if(r[x++]=o[y++],b++,w=0,--d===1){M=!0;break}while((b|w)<S);if(M)break;do{if(b=vv(r[m],o,y,d,0,t),b!==0){for(_=0;_<b;_++)r[x+_]=o[y+_];if(x+=b,y+=b,d-=b,d<=1){M=!0;break}}if(r[x++]=r[m++],--g===0){M=!0;break}if(w=cv(o[y],r,m,g,0,t),w!==0){for(_=0;_<w;_++)r[x+_]=r[m+_];if(x+=w,m+=w,g-=w,g===0){M=!0;break}}if(r[x++]=o[y++],--d===1){M=!0;break}S--}while(b>=Qs||w>=Qs);if(M)break;S<0&&(S=0),S+=2}if(e=S,e<1&&(e=1),d===1){for(_=0;_<g;_++)r[x+_]=r[m+_];r[x+g]=o[y]}else{if(d===0)throw new Error;for(_=0;_<d;_++)r[x+_]=o[y+_]}}function v(c,d,p,g){var _=0;for(_=0;_<g;_++)o[_]=r[p+_];var y=c+d-1,m=g-1,x=p+g-1,S=0,b=0;if(r[x--]=r[y--],--d===0){for(S=x-(g-1),_=0;_<g;_++)r[S+_]=o[_];return}if(g===1){for(x-=d,y-=d,b=x+1,S=y+1,_=d-1;_>=0;_--)r[b+_]=r[S+_];r[x]=o[m];return}for(var w=e;;){var M=0,T=0,C=!1;do if(t(o[m],r[y])<0){if(r[x--]=r[y--],M++,T=0,--d===0){C=!0;break}}else if(r[x--]=o[m--],T++,M=0,--g===1){C=!0;break}while((M|T)<w);if(C)break;
14do{if(M=d-vv(o[m],r,c,d,d-1,t),M!==0){for(x-=M,y-=M,d-=M,b=x+1,S=y+1,_=M-1;_>=0;_--)r[b+_]=r[S+_];if(d===0){C=!0;break}}if(r[x--]=o[m--],--g===1){C=!0;break}if(T=g-cv(r[y],o,0,g,g-1,t),T!==0){for(x-=T,m-=T,g-=T,b=x+1,S=m+1,_=0;_<T;_++)r[b+_]=o[S+_];if(g<=1){C=!0;break}}if(r[x--]=r[y--],--d===0){C=!0;break}w--}while(M>=Qs||T>=Qs);if(C)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(x-=d,y-=d,b=x+1,S=y+1,_=d-1;_>=0;_--)r[b+_]=r[S+_];r[x]=o[m]}else{if(g===0)throw new Error;for(S=x-(g-1),_=0;_<g;_++)r[S+_]=o[_]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function ah(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<Kb){a=Yy(r,e,i,t),Uy(r,e,i,e+a,t);return}var o=BA(r,t),s=EA(n);do{if(a=Yy(r,e,i,t),a<s){var u=n;u>s&&(u=s),Uy(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var Ar=1,bu=2,Zo=4,Xy=!1;function dv(){Xy||(Xy=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $y(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var NA=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$y}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,ah(i,$y)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e?e=e.slice():e=[];for(var a=n,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),u=0;u<s.length;u++){var l=s[u];t.__dirty&&(l.__dirty|=Ar),this._updateAndAddDisplayable(l,e,i)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(dv(),f.z=0),isNaN(f.z2)&&(dv(),f.z2=0),isNaN(f.zlevel)&&(dv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,e,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var n=Mt(this._roots,t);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),Rh;Rh=nt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Nu={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Nu.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Nu.bounceIn(r*2)*.5:Nu.bounceOut(r*2-1)*.5+.5}},ef=Math.pow,Yn=Math.sqrt,Eh=1e-8,Qb=1e-4,Zy=Yn(3),rf=1/3,Pi=Fs(),Yr=Fs(),cs=Fs();function Bn(r){return r>-Eh&&r<Eh}function jb(r){return r>Eh||r<-Eh}function Ae(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function qy(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Jb(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-n,f=s*s-3*o*u,h=s*u
14-9*o*l,v=u*u-3*s*l,c=0;if(Bn(f)&&Bn(h))if(Bn(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[c++]=d)}else{var p=h*h-4*f*v;if(Bn(p)){var g=h/f,d=-s/o+g,_=-g/2;d>=0&&d<=1&&(a[c++]=d),_>=0&&_<=1&&(a[c++]=_)}else if(p>0){var y=Yn(p),m=f*s+1.5*o*(-h+y),x=f*s+1.5*o*(-h-y);m<0?m=-ef(-m,rf):m=ef(m,rf),x<0?x=-ef(-x,rf):x=ef(x,rf);var d=(-s-(m+x))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var S=(2*f*s-3*o*h)/(2*Yn(f*f*f)),b=Math.acos(S)/3,w=Yn(f),M=Math.cos(b),d=(-s-2*w*M)/(3*o),_=(-s+w*(M+Zy*Math.sin(b)))/(3*o),T=(-s+w*(M-Zy*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[c++]=d),_>=0&&_<=1&&(a[c++]=_),T>=0&&T<=1&&(a[c++]=T)}}return c}function tS(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,u=0;if(Bn(o)){if(jb(a)){var l=-s/a;l>=0&&l<=1&&(n[u++]=l)}}else{var f=a*a-4*o*s;if(Bn(f))n[0]=-a/(2*o);else if(f>0){var h=Yn(f),l=(-a+h)/(2*o),v=(-a-h)/(2*o);l>=0&&l<=1&&(n[u++]=l),v>=0&&v<=1&&(n[u++]=v)}}return u}function ta(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,u=(i-e)*n+e,l=(s-o)*n+o,f=(u-s)*n+s,h=(f-l)*n+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=i}function eS(r,t,e,i,n,a,o,s,u,l,f){var h,v=.005,c=1/0,d,p,g,_;Pi[0]=u,Pi[1]=l;for(var y=0;y<1;y+=.05)Yr[0]=Ae(r,e,n,o,y),Yr[1]=Ae(t,i,a,s,y),g=ls(Pi,Yr),g<c&&(h=y,c=g);c=1/0;for(var m=0;m<32&&!(v<Qb);m++)d=h-v,p=h+v,Yr[0]=Ae(r,e,n,o,d),Yr[1]=Ae(t,i,a,s,d),g=ls(Yr,Pi),d>=0&&g<c?(h=d,c=g):(cs[0]=Ae(r,e,n,o,p),cs[1]=Ae(t,i,a,s,p),_=ls(cs,Pi),p<=1&&_<c?(h=p,c=_):v*=.5);return f&&(f[0]=Ae(r,e,n,o,h),f[1]=Ae(t,i,a,s,h)),Yn(c)}function FA(r,t,e,i,n,a,o,s,u){for(var l=r,f=t,h=0,v=1/u,c=1;c<=u;c++){var d=c*v,p=Ae(r,e,n,o,d),g=Ae(t,i,a,s,d),_=p-l,y=g-f;h+=Math.sqrt(_*_+y*y),l=p,f=g}return h}function Fe(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function Ky(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function zA(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,u=0;if(Bn(a)){if(jb(o)){var l=-s/o;l>=0&&l<=1&&(n[u++]=l)}}else{var f=o*o-4*a*s;if(Bn(f)){var l=-o/(2*a);l>=0&&l<=1&&(n[u++]=l)}else if(f>0){var h=Yn(f),l=(-o+h)/(2*a),v=(-o-h)/(2*a);l>=0&&l<=1&&(n[u++]=l),v>=0&&v<=1&&(n[u++]=v)}}return u}function rS(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Oh(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function iS(r,t,e,i,n,a,o,s,u){var l,f=.005,h=1/0;Pi[0]=o,Pi[1]=s;for(var v=0;v<1;v+=.05){Yr[0]=Fe(r,e,n,v),Yr[1]=Fe(t,i,a,v);var c=ls(Pi,Yr);c<h&&(l=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<Qb);d++){var p=l-f,g=l+f;Yr[0]=Fe(r,e,n,p),Yr[1]=Fe(t,i,a,p);var c=ls(Yr,Pi);if(p>=0&&c<h)l=p,h=c;else{cs[0]=Fe(r,e,n,g),cs[1]=Fe(t,i,a,g);var _=ls(cs,Pi);g<=1&&_<h?(l=g,h=_):f*=.5}}return u&&(u[0]=Fe(r,e,n,l),u[1]=Fe(t,i,a,l)),Yn(h)}function GA(r,t,e,i,n,a,o){for(var s=r,u=t,l=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=Fe(r,e,n,v),d=Fe(t,i,a,v),p=c-s,g=d-u;l+=Math.sqrt(p*p+g*g),s=c,u=d}return l}var VA=/cubic-bezier\(([0-9,\.e ]+)\)/;function nS(r){var t=r&&VA.exec(r);if(t){var e=t[1].split(","),i=+ki(e[0]),n=+ki(e[1]),a=+ki(e[2]),o=+ki(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Jb(0,i,a,1,u,s)&&Ae(0,n,o,1,s[0])}}}var HA=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||nr,this.ondestroy=t.ondestroy||nr,this.onrestart=t.onrestart||nr,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=n%i;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=J(t)?t:Nu[t]||nS(t)},r}(),aS=function(){function r(t){this.value=t}return r}(),WA=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new aS(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),zl=function(){function r(t){this._list=new WA,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=i.head;i.remove(u),delete n[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new aS(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Qy={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 Fu(r){return r=Math.round(r),r<0?0:r>255?255:r}function bp(r){return r<0?0:r>1?1:r}function pv(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Fu(parseFloat(t)/100*255):Fu(parseInt(t,10))}function zu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?bp(parseFloat(t)/100):bp(parseFloat(t))}
14function gv(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function zr(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function Sp(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var oS=new zl(20),nf=null;function Io(r,t){nf&&Sp(nf,t),nf=oS.put(r,nf||t.slice())}function Un(r,t){if(r){t=t||[];var e=oS.get(r);if(e)return Sp(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Qy)return Sp(t,Qy[i]),Io(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){zr(t,0,0,0,1);return}return zr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Io(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){zr(t,0,0,0,1);return}return zr(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Io(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var u=i.substr(0,o),l=i.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?zr(t,+l[0],+l[1],+l[2],1):zr(t,0,0,0,1);f=zu(l.pop());case"rgb":if(l.length>=3)return zr(t,pv(l[0]),pv(l[1]),pv(l[2]),l.length===3?f:zu(l[3])),Io(r,t),t;zr(t,0,0,0,1);return;case"hsla":if(l.length!==4){zr(t,0,0,0,1);return}return l[3]=zu(l[3]),jy(l,t),Io(r,t),t;case"hsl":if(l.length!==3){zr(t,0,0,0,1);return}return jy(l,t),Io(r,t),t;default:return}}zr(t,0,0,0,1)}}function jy(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=zu(r[1]),n=zu(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],zr(t,Fu(gv(o,a,e+1/3)*255),Fu(gv(o,a,e)*255),Fu(gv(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Jy(r,t){var e=Un(r);if(e){for(var i=0;i<3;i++)e[i]=e[i]*(1-t)|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return Tc(e,e.length===4?"rgba":"rgb")}}function t0(r,t){var e=Un(r);if(e&&t!=null)return e[3]=bp(t),Tc(e,"rgba")}function Tc(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Bh(r,t){var e=Un(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var e0=new zl(100);function r0(r){if($(r)){var t=e0.get(r);return t||(t=Jy(r,-.1),e0.put(r,t)),t}else if(bc(r)){var e=N({},r);return e.colorStops=Y(r.colorStops,function(i){return{offset:i.offset,color:Jy(i.color,-.1)}}),e}return r}function YA(r){return r.type==="linear"}function UA(r){return r.type==="radial"}(function(){return nt.hasGlobalWindow&&J(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var wp=Array.prototype.slice;function Qi(r,t,e){return(t-r)*e+r}function _v(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=Qi(t[a],e[a],i);return r}function XA(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Qi(t[o][s],e[o][s],i)}return r}function af(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function i0(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function $A(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function ZA(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var u=a;u<o;u++)i.push(e===1?n[u]:wp.call(n[u]))}for(var l=i[0]&&i[0].length,u=0;u<i.length;u++)if(e===1)isNaN(i[u])&&(i[u]=n[u]);else for(var f=0;f<l;f++)isNaN(i[u][f])&&(i[u][f]=n[u][f])}}function oh(r){if(ar(r)){var t=r.length;if(ar(r[0])){for(var e=[],i=0;i<t;i++)e.push(wp.call(r[i]));return e}return wp.call(r)}return r}function sh(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function qA(r){return ar(r&&r[0])?2:1}var of=0,uh=1,sS=2,Su=3,Tp=4,Mp=5,n0=6;function a0(r){return r===Tp||r===Mp}function sf(r){return r===uh||r===sS}var js=[0,0,0,0],KA=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack}
14,r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=n0,u=e;if(ar(e)){var l=qA(e);s=l,(l===1&&!Vt(e[0])||l===2&&!Vt(e[0][0]))&&(o=!0)}else if(Vt(e)&&!kh(e))s=of;else if($(e))if(!isNaN(+e))s=of;else{var f=Un(e);f&&(u=f,s=Su)}else if(bc(e)){var h=N({},u);h.colorStops=Y(e.colorStops,function(c){return{offset:c.offset,color:Un(c.color)}}),YA(e)?s=Tp:UA(e)&&(s=Mp),u=h}a===0?this.valType=s:(s!==this.valType||s===n0)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:u,rawValue:e,percent:0};return i&&(v.easing=i,v.easingFunc=J(i)?i:Nu[i]||nS(i)),n.push(v),v},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(p,g){return p.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,u=sf(n),l=a0(n),f=0;f<a;f++){var h=i[f],v=h.value,c=o.value;h.percent=h.time/t,s||(u&&f!==a-1?ZA(v,c,n):l&&$A(v.colorStops,c.colorStops))}if(!s&&n!==Mp&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var d=i[0].value,f=0;f<a;f++)n===of?i[f].additiveValue=i[f].value-d:n===Su?i[f].additiveValue=af([],i[f].value,d,-1):sf(n)&&(i[f].additiveValue=n===uh?af([],i[f].value,d,-1):i0([],i[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===Su,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=v(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-c.percent,_=g===0?1:v((e-c.percent)/g,1);d.easingFunc&&(_=d.easingFunc(_));var y=i?this._additiveValue:l?js:t[u];if((sf(a)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[u]=_<1?c.rawValue:d.rawValue;else if(sf(a))a===uh?_v(y,c[n],d[n],_):XA(y,c[n],d[n],_);else if(a0(a)){var m=c[n],x=d[n],S=a===Tp;t[u]={type:S?"linear":"radial",x:Qi(m.x,x.x,_),y:Qi(m.y,x.y,_),colorStops:Y(m.colorStops,function(w,M){var T=x.colorStops[M];return{offset:Qi(w.offset,T.offset,_),color:sh(_v([],w.color,T.color,_))}}),global:x.global},S?(t[u].x2=Qi(m.x2,x.x2,_),t[u].y2=Qi(m.y2,x.y2,_)):t[u].r=Qi(m.r,x.r,_)}else if(l)_v(y,c[n],d[n],_),i||(t[u]=sh(y));else{var b=Qi(c[n],d[n],_);i?this._additiveValue=b:t[u]=b}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===of?t[i]=t[i]+n:e===Su?(Un(t[i],js),af(js,js,n,1),t[i]=sh(js)):e===uh?af(t[i],t[i],n,1):e===sS&&i0(t[i],t[i],n,1)},r}(),r_=function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){Kg("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,Gt(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],u=a[s];if(!u){u=a[s]=new KA(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];l=v&&v.value,f.valType===Su&&l&&(l=sh(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,oh(l),n),this._trackKeys.push(s)}u.addKeyframe(t,oh(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(n,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var v=new HA({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<i.length;g++)i[g].step(e._target,c);var _=e._onframeCbs;if(_)for(var g=0;g<_.length;g++)_[g](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return Y(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s}
14,r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[i?0:s.length-1];u&&(t[a]=oh(u.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||Gt(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function es(){return new Date().getTime()}var QA=function(r){F(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return 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 i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=es()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(Rh(i),!e._paused&&e.update())}Rh(i)},t.prototype.start=function(){this._running||(this._time=es(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=es(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=es()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new r_(e,i.loop);return this.addAnimator(n),n},t}(gi),jA=300,yv=nt.domSupported,mv=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=Y(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}}(),o0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},s0=!1;function Cp(r){var t=r.pointerType;return t==="pen"||t==="touch"}function JA(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function xv(r){r&&(r.zrByTouch=!0)}function t2(r,t){return Vr(r.dom,new e2(r,t),!0)}function uS(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var e2=function(){function r(t,e){this.stopPropagation=nr,this.stopImmediatePropagation=nr,this.preventDefault=nr,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),hi={mousedown:function(r){r=Vr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Vr(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Vr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Vr(this.dom,r);var t=r.toElement||r.relatedTarget;uS(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){s0=!0,r=Vr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){s0||(r=Vr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Vr(this.dom,r),xv(r),this.__lastTouchMoment=ne
14w Date,this.handler.processGesture(r,"start"),hi.mousemove.call(this,r),hi.mousedown.call(this,r)},touchmove:function(r){r=Vr(this.dom,r),xv(r),this.handler.processGesture(r,"change"),hi.mousemove.call(this,r)},touchend:function(r){r=Vr(this.dom,r),xv(r),this.handler.processGesture(r,"end"),hi.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<jA&&hi.click.call(this,r)},pointerdown:function(r){hi.mousedown.call(this,r)},pointermove:function(r){Cp(r)||hi.mousemove.call(this,r)},pointerup:function(r){hi.mouseup.call(this,r)},pointerout:function(r){Cp(r)||hi.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){hi[r]=function(t){t=Vr(this.dom,t),this.trigger(r,t)}});var Dp={pointermove:function(r){Cp(r)||Dp.mousemove.call(this,r)},pointerup:function(r){Dp.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function r2(r,t){var e=t.domHandlers;nt.pointerEventsSupported?A(mv.pointer,function(i){lh(t,i,function(n){e[i].call(r,n)})}):(nt.touchEventsSupported&&A(mv.touch,function(i){lh(t,i,function(n){e[i].call(r,n),JA(t)})}),A(mv.mouse,function(i){lh(t,i,function(n){n=Jg(n),t.touching||e[i].call(r,n)})}))}function i2(r,t){nt.pointerEventsSupported?A(o0.pointer,e):nt.touchEventsSupported||A(o0.mouse,e);function e(i){function n(a){a=Jg(a),uS(r,a.target)||(a=t2(r,a),t.domHandlers[i].call(r,a))}lh(t,i,n,{capture:!0})}}function lh(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,wA(r.domTarget,t,e,i)}function bv(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&TA(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var u0=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),n2=function(r){F(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new u0(e,hi),yv&&(n._globalHandlerScope=new u0(document,Dp)),r2(n,n._localHandlerScope),n}return t.prototype.dispose=function(){bv(this._localHandlerScope),yv&&bv(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,yv&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?i2(this,i):bv(i)}},t}(gi),lS=1;nt.hasGlobalWindow&&(lS=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Nh=lS,Ap=.4,Pp="#333",Ip="#ccc",a2="#eee",l0=t_,f0=5e-5;function xa(r){return r>f0||r<-f0}var ba=[],Lo=[],Sv=fs(),wv=Math.abs,Gl=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return xa(this.rotation)||xa(this.x)||xa(this.y)||xa(this.scaleX-1)||xa(this.scaleY-1)||xa(this.skewX)||xa(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(l0(i),this.invTransform=null);return}i=i||fs(),e?this.getLocalTransform(i):l0(i),t&&(e?hs(i,t,i):DA(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(ba);var i=ba[0]<0?-1:1,n=ba[1]<0?-1:1,a=((ba[0]-i)*e+i)/ba[0]||0,o=((ba[1]-n)*e+n)/ba[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||fs(),wc(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||fs(),hs(Lo,t.invTransform,e),e=Lo);var i=this.originX,n=this.originY;(i||n)&&(Sv[4]=i,Sv[5]=n,hs(Lo,e,Sv),Lo[4]-=i,Lo[5]-=n,e=Lo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&Kr(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&Kr(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&wv(t[0]-1)>1e-10&&wv(t[3]-1)>1e-10?Math.sqrt(wv(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){o2(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;
14if(i||n||s||u){var d=i+s,p=n+u;e[4]=-d*a-v*p*o,e[5]=-p*o-c*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=v*o,l&&e_(e,e,l),e[4]+=i+f,e[5]+=n+h,e},r.initDefaultProps=function(){var t=r.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}(),r}(),fl=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function o2(r,t){for(var e=0;e<fl.length;e++){var i=fl[e];r[i]=t[i]}}var h0={};function kr(r,t){t=t||ho;var e=h0[t];e||(e=h0[t]=new zl(500));var i=e.get(r);return i==null&&(i=Os.measureText(r,t).width,e.put(r,i)),i}function c0(r,t,e,i){var n=kr(r,t),a=n_(t),o=wu(0,n,e),s=qo(0,a,i),u=new At(o,s,n,a);return u}function i_(r,t,e,i){var n=((r||"")+"").split(`
15`),a=n.length;if(a===1)return c0(n[0],t,e,i);for(var o=new At(0,0,0,0),s=0;s<n.length;s++){var u=c0(n[s],t,e,i);s===0?o.copy(u):o.union(u)}return o}function wu(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function qo(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function n_(r){return kr("国",r)}function co(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function fS(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,u=e.x,l=e.y,f="left",h="top";if(i instanceof Array)u+=co(i[0],e.width),l+=co(i[1],e.height),f=null,h=null;else switch(i){case"left":u-=n,l+=s,f="right",h="middle";break;case"right":u+=n+o,l+=s,h="middle";break;case"top":u+=o/2,l-=n,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+n,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=n,l+=s,h="middle";break;case"insideRight":u+=o-n,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=n,f="center";break;case"insideBottom":u+=o/2,l+=a-n,f="center",h="bottom";break;case"insideTopLeft":u+=n,l+=n;break;case"insideTopRight":u+=o-n,l+=n,f="right";break;case"insideBottomLeft":u+=n,l+=a-n,h="bottom";break;case"insideBottomRight":u+=o-n,l+=a-n,f="right",h="bottom";break}return r=r||{},r.x=u,r.y=l,r.align=f,r.verticalAlign=h,r}var Tv="__zr_normal__",Mv=fl.concat(["ignore"]),s2=Ns(fl,function(r,t){return r[t]=!0,r},{ignore:!1}),ko={},u2=new At(0,0,0,0),Mc=function(){function r(t){this.id=Gb(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=n?this:null;var l=!1;if(a.copyTransform(e),i.position!=null){var f=u2;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ko,i,f):fS(ko,i,f),a.x=ko.x,a.y=ko.y,o=ko.align,s=ko.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=co(h[0],f.width),c=co(h[1],f.height)),l=!0,a.originX=-a.x+v+(n?0:f.x),a.originY=-a.y+c+(n?0:f.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));
15var p=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,y=void 0,m=void 0;p&&this.canBeInsideText()?(_=i.insideFill,y=i.insideStroke,(_==null||_==="auto")&&(_=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(_),m=!0)):(_=i.outsideFill,y=i.outsideStroke,(_==null||_==="auto")&&(_=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(_),m=!0)),_=_||"#000",(_!==g.fill||y!==g.stroke||m!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(u=!0,g.fill=_,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=Ar,u&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ip:Pp},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&Un(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Tc(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},N(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Z(t))for(var i=t,n=Gt(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Tv)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Mv)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Tv,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===Tv,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(Mt(s,t)>=0&&(e||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Kg("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,v=this._textGuide;return h&&h.useState(t,e,i,f),v&&v.useState(t,e,i,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ar),l}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&n.push(f)}var h=n[o-1],v=!!(h&&h.hoverLayer||i);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,v),g&&g.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ar)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=Mt(this.currentStates,t);
15if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=Mt(n,t),o=Mt(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n<t.length;n++){var a=t[n];N(e,a),a.textConfig&&(i=i||{},N(i,a.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,n,a,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=N({},n?this.textConfig:i.textConfig),N(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var u={},l=!1,f=0;f<Mv.length;f++){var h=Mv[f],v=a&&s2[h];e&&e[h]!=null?v?(l=!0,u[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(v?(l=!0,u[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(e||i)[d]:e||i)}l&&this._transitionState(t,u,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Gl,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),N(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Ar;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var n=t?this[t]:this,a=new r_(n,e,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var a=n.animators,o=Mt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this}
15,r.prototype.animateTo=function(t,e,i){Cv(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){Cv(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=Cv(this,e,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Ar;function e(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var u=this[n]=[];s(this,u)}return this[n]},set:function(u){this[a]=u[0],this[o]=u[1],this[n]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(f){u[a]=f}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(f){u[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();ei(Mc,gi);ei(Mc,Gl);function Cv(r,t,e,i,n){e=e||{};var a=[];hS(r,"",r,t,e,i,a,n);var o=a.length,s=!1,u=e.done,l=e.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&e.during&&a[0].during(function(d,p){e.during(p)});for(var v=0;v<a.length;v++){var c=a[v];f&&c.done(f),h&&c.aborted(h),e.force&&c.duration(e.duration),c.start(e.easing)}return a}function Dv(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function l2(r){return ar(r[0])}function f2(r,t,e){if(ar(t[e]))if(ar(r[e])||(r[e]=[]),_r(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),Dv(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(l2(n))for(var s=n[0].length,u=0;u<o;u++)a[u]?Dv(a[u],n[u],s):a[u]=Array.prototype.slice.call(n[u]);else Dv(a,n,o);a.length=n.length}else r[e]=t[e]}function h2(r,t){return r===t||ar(r)&&ar(t)&&c2(r,t)}function c2(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function hS(r,t,e,i,n,a,o,s){for(var u=Gt(i),l=n.duration,f=n.delay,h=n.additive,v=n.setToFinal,c=!Z(a),d=r.animators,p=[],g=0;g<u.length;g++){var _=u[g],y=i[_];if(y!=null&&e[_]!=null&&(c||a[_]))if(Z(y)&&!ar(y)&&!bc(y)){if(t){s||(e[_]=y,r.updateDuringAnimation(t));continue}hS(r,_,e[_],y,n,a&&a[_],o,s)}else p.push(_);else s||(e[_]=y,r.updateDuringAnimation(t),p.push(_))}var m=p.length;if(!h&&m)for(var x=0;x<d.length;x++){var S=d[x];if(S.targetName===t){var b=S.stopTracks(p);if(b){var w=Mt(d,S);d.splice(w,1)}}}if(n.force||(p=Kt(p,function(D){return!h2(i[D],e[D])}),m=p.length),m>0||n.force&&!o.length){var M=void 0,T=void 0,C=void 0;if(s){T={},v&&(M={});for(var x=0;x<m;x++){var _=p[x];T[_]=e[_],v?M[_]=i[_]:e[_]=i[_]}}else if(v){C={};for(var x=0;x<m;x++){var _=p[x];C[_]=oh(e[_]),f2(e,i,_)}}var S=new r_(e,!1,!1,h?Kt(d,function(P){return P.targetName===t}):null);S.targetName=t,n.scope&&(S.scope=n.scope),v&&M&&S.whenWithKeys(0,M,p),C&&S.whenWithKeys(0,C,p),S.whenWithKeys(l??500,s?T:i,p).delay(f||0),r.addAnimator(S,t),o.push(S)}}var _e=function(r){F(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return 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 i=this._children,n=0;n<i.length;n++)if(i[n].name===e)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=Mt(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=Mt(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n<e.length;n++){var a=e[n];i&&a.removeSelfFromZr(i),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];e.call(i,o,a)}return this},t.prototype.traverse=function(e,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=e.call(i,a);a.isGroup&&!o&&a.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new At(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var u=n[s];
15if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(At.applyTransform(i,l,f),o=o||i.clone(),o.union(i)):(o=o||l.clone(),o.union(l))}}return o||i},t}(Mc);_e.prototype.type="group";/*!
16* ZRender, a high performance 2d drawing library.
17*
18* Copyright (c) 2013, Baidu Inc.
19* All rights reserved.
20*
21* LICENSE
22* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
23*/var fh={},cS={};function v2(r){delete cS[r]}function d2(r){if(!r)return!1;if(typeof r=="string")return Bh(r,1)<Ap;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=Bh(t[n].color,1);return e/=i,e<Ap}return!1}var p2=function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new NA,o=i.renderer||"canvas";fh[o]||(o=Gt(fh)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new fh[o](e,a,i,t),u=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!nt.node&&!nt.worker&&!u?new n2(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?nt.touchEventsSupported:!!f,v=44,c;h&&(c=it(i.pointerSize,v)),this.handler=new Zb(a,s,l,s.root,c),this.animation=new QA({stage:{update:u?null:function(){return n._flush(!0)}}}),u||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=d2(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,i=es();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=es();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof _e&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,v2(this.id
23))},r}();function v0(r,t){var e=new p2(Gb(),r,t);return cS[e.id]=e,e}function g2(r,t){fh[r]=t}var d0=1e-4,vS=20;function _2(r){return r.replace(/^\s+|\s+$/g,"")}function Ne(r,t,e,i){var n=t[0],a=t[1],o=e[0],s=e[1],u=a-n,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(i)if(u>0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/u*l+o}function Ot(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return $(r)?_2(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function oe(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),vS),r=(+r).toFixed(t),e?r:+r}function Za(r){return r.sort(function(t,e){return t-e}),r}function Ri(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return y2(r)}function y2(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,n=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function dS(r,t){var e=Math.log,i=Math.LN10,n=Math.floor(e(r[1]-r[0])/i),a=Math.round(e(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function m2(r,t){var e=Math.max(Ri(r),Ri(t)),i=r+t;return e>vS?i:oe(i,e)}function pS(r){var t=Math.PI*2;return(r%t+t)%t}function Fh(r){return r>-d0&&r<d0}var x2=/^(?:(\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 cn(r){if(r instanceof Date)return r;if($(r)){var t=x2.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else 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)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function b2(r){return Math.pow(10,a_(r))}function a_(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function gS(r,t){var e=a_(r),i=Math.pow(10,e),n=r/i,a;return n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10,r=a*i,e>=-20?+r.toFixed(e<0?-e:0):r}function ea(r){var t=parseFloat(r);return t==r&&(t!==0||!$(r)||r.indexOf("x")<=0)?t:NaN}function S2(r){return!isNaN(ea(r))}function _S(){return Math.round(Math.random()*9)}function yS(r,t){return t===0?r:yS(t,r%t)}function p0(r,t){return r==null?t:t==null?r:r*t/yS(r,t)}function Tt(r){throw new Error(r)}function g0(r,t,e){return(t-r)*e+r}var mS="series\0",w2="\0_ec_\0";function ue(r){return r instanceof Array?r:r==null?[]:[r]}function Lp(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var i=0,n=e.length;i<n;i++){var a=e[i];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var _0=["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 Cc(r){return Z(r)&&!G(r)&&!(r instanceof Date)?r.value:r}function T2(r){return Z(r)&&!(r instanceof Array)}function M2(r,t,e){var i=e==="normalMerge",n=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=K();A(t,function(u,l){if(!Z(u)){t[l]=null;return}});var s=C2(r,o,e);return(i||n)&&D2(s,r,o,t),i&&A2(s,t),i||n?P2(s,t,n):a&&I2(s,t),L2(s),s}function C2(r,t,e){var i=[];if(e==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:e==="replaceMerge"||hl(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function D2(r,t,e,i){A(i,function(n,a){if(!(!n||n.id==null)){var o=Gu(n.id),s=e.get(o);if(s!=null){var u=r[s];fn(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=n,u.existing=t[s],i[a]=null}}})}function A2(r,t){A(t,function(e,i){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||e.id==null)&&!hl(e)&&!hl(a)&&xS("name",a,e)){r[n].newOption=e,t[i]=null;return}}})}function P2(r,t,e){A(t,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||hl(n.existing)||n.existing&&i.id!=null&&!xS("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),a++}})}function I2(r,t){A(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function L2(r){var t=K();A(r,function(e){var i=e.existing;i&&t.set(i.id,e)}),A(r,function(e){var i=e.newOption;fn(!i||i.id==null||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})}),A(r,function(e,i){var n=e.existing,a=e.newOption,o=e.keyInfo;if(Z(a)){if(o.name=a.name!=null?Gu(a.name):n?n.name:mS+i,n)o.id=Gu(n.id);else if(a.id!=null)o.id=Gu(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function xS(r,t,e){var i=Fi(t[r],null),n=Fi(e[r],null);return i!=null&&n!=null&&i===n}function Gu(r){return Fi(r,"")}function Fi(r,t){return r==null?t:$(r)?r:Vt(r)||vp(r)?r+"":t}function o_(r){var t=r.name;return!!(t&&t.indexOf(mS))}function hl(r){return r&&r.id!=null&&Gu(r.id).indexOf(w2)===0}function k2(r,t,e){A(r,function(i){var n=i.newOption;Z(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=R2(t,n,i.existing,e))})}function R2(r,t,e,i){var n=t.type?t.type:e?e.subType:i.determineSubType(r,t);return n}function Vl(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return G(t.dataIndex)?Y(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return G(t.name)?Y(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function Bt(){var r="__ec_inner_"+E2++;return function(t){return t[r]||(t[r]={})}}var E2=_S();function Av(r,t,e){var i=s_(t,e),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,u=e?e.defaultMainType:null;return!n&&u&&a.set(u,{}),a.each(function(l,f){var h=Hl(r,f,l,{useDefault:u===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function s_(r,t){var e;if($(r)){var i={};i[r+"Index"]=0,e=i}else e=r;var n=K(),a={},o=!1;return A(e,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&Mt(t.includeMainTypes,f)<0)){o=o||!!f;var v=n.get(f)||n.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var Vi={useDefault:!0,enableAll:!1,enableNone:!1},O2={useDefault:!1,enableAll:!0,enableNone:!0};function Hl(r,t,e,i){i=i||Vi;var n=e.index,a=e.id,o=e.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=i.useDefault&&(u=r.getComponent(t))?[u]:[],s}return n==="none"||n===!1?(fn(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(fn(i.enableAll,'`"all"` is not a valid value on index option.'),n=a=o=null),s.models=r.queryComponents({mainType:t,index:n,id:a,name:o}),s)}function bS(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function B2(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function N2(r){return r==="auto"?nt.domSupported?"html":"richText":r||"html"}function F2(r,t,e,i,n){var a=t==null||t==="auto";if(i==null)return i;if(Vt(i)){var o=g0(e||0,i,n);return oe(o,a?Math.max(Ri(e||0),Ri(i)):t)}else{if($(i))return n<1?e:i;for(var s=[],u=e,l=i,f=Math.max(u?u.length:0,l.length),h=0;h<f;++h){var v=r.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(n<1&&u?u:l)[h];else{var c=u&&u[h]?u[h]:0,d=l[h],o=g0(c,d,n);s[h]=oe(o,a?Math.max(Ri(c),Ri(d)):t)}}return s}}var z2=".",Sa="___EC__COMPONENT__CONTAINER___",SS="___EC__EXTENDED_CLASS___";function Ei(r){var t={main:"",sub:""};if(r){var e=r.split(z2);t.main=e[0]||"",t.sub=e[1]||""}return t}function G2(r){fn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function V2(r){return!!(r&&r[SS])}function u_(r,t){r.$constructor=r,r.extend=function(e){var i=this,n;return H2(i)?n=function(a){F(o,a);function o(){return a.apply(this,arguments)||this}return o}(i):(n=function(){(e.$constructor||i).apply(this,arguments)},tA(n,this)),N(n.prototype,e),n[SS]=!0,n.extend=this.extend,n.superCall=U2,n.superApply=X2,n.superClass=i,n}}function H2(r){return J(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function wS(r,t){r.extend=t.extend}
23var W2=Math.round(Math.random()*10);function Y2(r){var t=["__\0is_clz",W2++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function U2(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(r,e)}function X2(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Dc(r){var t={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){G2(n),i.prototype.type=n;var a=Ei(n);if(!a.sub)t[a.main]=i;else if(a.sub!==Sa){var o=e(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=t[i];if(o&&o[Sa]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var n=Ei(i),a=[],o=t[n.main];return o&&o[Sa]?A(o,function(s,u){u!==Sa&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=Ei(i);return!!t[n.main]},r.getAllClassMainTypes=function(){var i=[];return A(t,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=Ei(i),a=t[n.main];return a&&a[Sa]};function e(i){var n=t[i.main];return(!n||!n[Sa])&&(n=t[i.main]={},n[Sa]=!0),n}}function cl(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<r.length;s++){var u=r[s][1];if(!(n&&Mt(n,u)>=0||a&&Mt(a,u)<0)){var l=i.getShallow(u,t);l!=null&&(o[r[s][0]]=l)}}return o}}var $2=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Z2=cl($2),q2=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return Z2(this,t,e)},r}(),kp=new zl(50);function K2(r){if(typeof r=="string"){var t=kp.get(r);return t&&t.image}else return r}function TS(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=kp.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!Ac(t)&&a.pending.push(o)):(t=Os.loadImage(r,y0,y0),t.__zrImageSrc=r,kp.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function y0(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Ac(r){return r&&r.width&&r.height}var Pv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Q2(r,t,e,i,n){if(!t)return"";var a=(r+"").split(`
24`);
24n=MS(t,e,i,n);for(var o=0,s=a.length;o<s;o++)a[o]=CS(a[o],n);return a.join(`
25`)}function MS(r,t,e,i){i=i||{};var n=N({},i);n.font=t,e=it(e,"..."),n.maxIterations=it(i.maxIterations,2);var a=n.minChar=it(i.minChar,0);n.cnCharWidth=kr("国",t);var o=n.ascCharWidth=kr("a",t);n.placeholder=it(i.placeholder,"");for(var s=r=Math.max(0,r-1),u=0;u<a&&s>=o;u++)s-=o;var l=kr(e,t);return l>s&&(e="",l=0),s=r-l,n.ellipsis=e,n.ellipsisWidth=l,n.contentWidth=s,n.containerWidth=r,n}function CS(r,t){var e=t.containerWidth,i=t.font,n=t.contentWidth;if(!e)return"";var a=kr(r,i);if(a<=e)return r;for(var o=0;;o++){if(a<=n||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?j2(r,n,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*n/a):0;r=r.substr(0,s),a=kr(r,i)}return r===""&&(r=t.placeholder),r}function j2(r,t,e,i){for(var n=0,a=0,o=r.length;a<o&&n<t;a++){var s=r.charCodeAt(a);n+=0<=s&&s<=127?e:i}return a}function J2(r,t){r!=null&&(r+="");var e=t.overflow,i=t.padding,n=t.font,a=e==="truncate",o=n_(n),s=it(t.lineHeight,o),u=!!t.backgroundColor,l=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(e==="break"||e==="breakAll")?h=r?DS(r,t.font,f,e==="breakAll",0).lines:[]:h=r?r.split(`
26`):[];var v=h.length*s,c=it(t.height,v);if(v>c&&l){var d=Math.floor(c/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var p=MS(f,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<h.length;g++)h[g]=CS(h[g],p);for(var _=c,y=0,g=0;g<h.length;g++)y=Math.max(kr(h[g],n),y);f==null&&(f=y);var m=y;return i&&(_+=i[0]+i[2],m+=i[1]+i[3],f+=i[1]+i[3]),u&&(m=f),{lines:h,height:c,outerWidth:m,outerHeight:_,lineHeight:s,calculatedLineHeight:o,c
26ontentWidth:y,contentHeight:v,width:f}}var tP=function(){function r(){}return r}(),m0=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),eP=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function rP(r,t){var e=new eP;if(r!=null&&(r+=""),!r)return e;for(var i=t.width,n=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,s=Pv.lastIndex=0,u;(u=Pv.exec(r))!=null;){var l=u.index;l>s&&Iv(e,r.substring(s,l),t,o),Iv(e,u[2],t,o,u[1]),s=Pv.lastIndex}s<r.length&&Iv(e,r.substring(s,r.length),t,o);var f=[],h=0,v=0,c=t.padding,d=a==="truncate",p=t.lineOverflow==="truncate";function g(z,H,I){z.width=H,z.lineHeight=I,h+=I,v=Math.max(v,H)}t:for(var _=0;_<e.lines.length;_++){for(var y=e.lines[_],m=0,x=0,S=0;S<y.tokens.length;S++){var b=y.tokens[S],w=b.styleName&&t.rich[b.styleName]||{},M=b.textPadding=w.padding,T=M?M[1]+M[3]:0,C=b.font=w.font||t.font;b.contentHeight=n_(C);var D=it(w.height,b.contentHeight);if(b.innerHeight=D,M&&(D+=M[0]+M[2]),b.height=D,b.lineHeight=ih(w.lineHeight,t.lineHeight,D),b.align=w&&w.align||t.align,b.verticalAlign=w&&w.verticalAlign||"middle",p&&n!=null&&h+b.lineHeight>n){S>0?(y.tokens=y.tokens.slice(0,S),g(y,x,m),e.lines=e.lines.slice(0,_+1)):e.lines=e.lines.slice(0,_);break t}var P=w.width,L=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")b.percentWidth=P,f.push(b),b.contentWidth=kr(b.text,C);else{if(L){var k=w.backgroundColor,R=k&&k.image;R&&(R=K2(R),Ac(R)&&(b.width=Math.max(b.width,R.width*D/R.height)))}var E=d&&i!=null?i-x:null;E!=null&&E<b.width?!L||E<T?(b.text="",b.width=b.contentWidth=0):(b.text=Q2(b.text,E-T,C,t.ellipsis,{minChar:t.truncateMinChar}),b.width=b.contentWidth=kr(b.text,C)):b.contentWidth=kr(b.text,C)}b.width+=T,x+=b.width,w&&(m=Math.max(m,b.lineHeight))}g(y,x,m)}e.outerWidth=e.width=it(i,v),e.outerHeight=e.height=it(n,h),e.contentHeight=h,e.contentWidth=v,c&&(e.outerWidth+=c[1]+c[3],e.outerHeight+=c[0]+c[2]);for(var _=0;_<f.length;_++){var b=f[_],B=b.percentWidth;b.width=parseInt(B,10)/100*e.width}return e}function Iv(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,u=o.font||e.font,l=!1,f,h;if(i){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=co(o.width,i.width)+c;s.length>0&&d+i.accumWidth>i.width&&(f=t.split(`
27`),l=!0),i.accumWidth=d}else{var p=DS(t,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}else f=t.split(`
28`);for(var g=0;g<f.length;g++){var _=f[g],y=new tP;if(y.styleName=n,y.text=_,y.isLineHolder=!_&&!a,typeof o.width=="number"?y.width=o.width:y.width=h?h[g]:kr(_,u),!g&&!l){var m=(s[s.length-1]||(s[0]=new m0)).tokens,x=m.length;x===1&&m[0].isLineHolder?m[0]=y:(_||!x||a)&&m.push(y)}else s.push(new m0([y]))}}function iP(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var nP=Ns(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function aP(r){return iP(r)?!!nP[r]:!0}function DS(r,t,e,i,n){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
29`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var c=kr(v,t),d=i?!1:!aP(v);if(a.length?f+c>e:n+f+c>e){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=v,l+=c,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=v,f=c)):d?(a.push(u),o.push(l),u=v,l=c):(a.push(v),o.push(c));continue}f+=c,d?(u+=v,l+=c):(u&&(s+=u,u="",l=0),s+=v)}return!a.length&&!s&&(s=r,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}var Rp="__zr_style_"+Math.round(Math.random()*10),eo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Pc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};eo[Rp]=!0;var x0=["z","z2","invisible"],oP=["invisible"],sP=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=Gt(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}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,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&uP(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect
29();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new At(0,0,0,0)),i?At.applyTransform(e,n,i):e.copy(n),(o||s||u)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(u),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+u-o));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+l*2),e.height=Math.ceil(e.height+1+l*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new At(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){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:N(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=bu,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&bu)},t.prototype.styleUpdated=function(){this.__dirty&=~bu},t.prototype.createStyle=function(e){return Sc(eo,e)},t.prototype.useStyle=function(e){e[Rp]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Rp]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,x0)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.style?o?a?l=i.style:(l=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(l,i.style)):(l=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(l,i.style)):u&&(l=n.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var h=Gt(f),v=0;v<h.length;v++){var c=h[v];c in l&&(l[c]=l[c],this.style[c]=f[c])}for(var d=Gt(l),v=0;v<d.length;v++){var c=d[v];this.style[c]=this.style[c]}this._transitionState(e,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var p=this.__inHover?oP:x0,v=0;v<p.length;v++){var c=p[v];i&&i[c]!=null?this[c]=i[c]:u&&n[c]!=null&&(this[c]=n[c])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return N(e,i),e},t.prototype.getAnimationStyleProps=function(){return Pc},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=Ar|bu}(),t}(Mc),Lv=new At(0,0,0,0),kv=new At(0,0,0,0);function uP(r,t,e){return Lv.copy(r.getBoundingRect()),r.transform&&Lv.applyTransform(r.transform),kv.width=t,kv.height=e,!Lv.intersect(kv)}const zs=sP;var fr=Math.min,hr=Math.max,Rv=Math.sin,Ev=Math.cos,wa=Math.PI*2,uf=Fs(),lf=Fs(),ff=Fs();function AS(r,t,e){if(r.length!==0){for(var i=r[0],n=i[0],a=i[0],o=i[1],s=i[1],u=1;u<r.length;u++)i=r[u],n=fr(n,i[0]),a=hr(a,i[0]),o=fr(o,i[1]),s=hr(s,i[1]);t[0]=n,t[1]=o,e[0]=a,e[1]=s}}function b0(r,t,e,i,n,a){n[0]=fr(r,e),n[1]=fr(t,i),a[0]=hr(r,e),a[1]=hr(t,i)}var S0=[],w0=[];function lP(r,t,e,i,n,a,o,s,u,l){var f=tS,h=Ae,v=f(r,e,n,o,S0);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var c=0;c<v;c++){var d=h(r,e,n,o,S0[c]);u[0]=fr(d,u[0]),l[0]=hr(d,l[0])}v=f(t,i,a,s,w0);for(var c=0;c<v;c++){var p=h(t,i,a,s,w0[c]);u[1]=fr(p,u[1]),l[1]=hr(p,l[1])}u[0]=fr(r,u[0]),l[0]=hr(r,l[0]),u[0]=fr(o,u[0]),l[0]=hr(o,l[0]),u[1]=fr(t,u[1]),l[1]=hr(t,l[1]),u[1]=fr(s,u[1]),l[1]=hr(s,l[1])}function fP(r,t,e,i,n,a,o,s){var u=rS,l=Fe,f=hr(fr(u(r,e,n),1),0),h=hr(fr(u(t,i,a),1),0),v=l(r,e,n,f),c=l(t,i,a,h);o[0]=fr(r,n,v),o[1]=fr(t,a,c),s[0]=hr(r,n,v),s[1]=hr(t,a,c)}function hP(r,t,e,i,n,a,o,s,u){var l=Jo,f=ts,h=Math.abs(n-a);if(h%wa<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,u[0]=r+e,u[1]=t+i;return}if(uf[0]=Ev(n)*e+r,uf[1]=Rv(n)*i+t,lf[0]=Ev(a)*e+r,lf[1]=Rv(a)*i+t,l(s,uf,lf),f(u,uf,lf),n=n%wa,n<0&&(n=n+wa),a=a%wa,a<0&&(a=a+wa),n>a&&!o?a+=wa:n<a&&o&&(n+=wa),o){var v=a;a=n,n=v}for(var c=0;c<a;c+=Math.PI/2)c>n&&(ff[0]=Ev(c)*e+r,ff[1]=Rv(c)*i+t,l(s,ff,s),f(u,ff,u))}var kt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ta=[],Ma=[],Si=[],Mn=[],wi=[],Ti=[],Ov=Math.min,Bv=Math.max,Ca=Math.cos,Da=Math.sin,qi=Math.abs,Ep=Math.PI,Ln=Ep*2,Nv=typeof Float32Array<"u",Js=[];function Fv(r){var t=Math.round(r/Ep*1e8)/1e8;return t%2*Ep}function cP(r,t){var e=Fv(r[0]);e<0&&(e+=Ln);var i=e-r[0],n=r[1];
vendor: 4,353 bytes, line 29
29n+=i,!t&&n-e>=Ln?n=e+Ln:t&&e-n>=Ln?n=e-Ln:!t&&e>n?n=e+(Ln-Fv(e-n)):t&&e<n&&(n=e-(Ln-Fv(n-e))),r[0]=e,r[1]=n}var ra=function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=qi(i/Nh/t)||0,this._uy=qi(i/Nh/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(kt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=qi(t-this._xi),n=qi(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(kt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(kt.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(kt.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),Js[0]=n,Js[1]=a,cP(Js,o),n=Js[0],a=Js[1];var s=a-n;return this.addData(kt.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Ca(a)*i+t,this._yi=Da(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(kt.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(kt.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&Nv&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();Nv&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(t,e,i,n,a,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Nv&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Si[0]=Si[1]=wi[0]=wi[1]=Number.MAX_VALUE,Mn[0]=Mn[1]=Ti[0]=Ti[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(e=t[o],i=t[o+1],n=e,a=i),s){case kt.M:e=n=t[o++],i=a=t[o++],wi[0]=n,wi[1]=a,Ti[0]=n,Ti[1]=a;break;case kt.L:b0(e,i,t[o],t[o+1],wi,Ti),e=t[o++],i=t[o++];break;case kt.C:lP(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],wi,Ti),e=t[o++],i=t[o++];break;case kt.Q:fP(e,i,t[o++],t[o++],t[o],t[o+1],wi,Ti),e=t[o++],i=t[o++];break;case kt.A:var l=t[o++],f=t[o++],h=t[o++],v=t[o++],c=t[o++],d=t[o++]+c;o+=1;var p=!t[o++];u&&(n=Ca(c)*h+l,a=Da(c)*v+f),hP(l,f,h,v,c,d,p,wi,Ti),e=Ca(d)*h+l,i=Da(d)*v+f;break;
29case kt.R:n=e=t[o++],a=i=t[o++];var g=t[o++],_=t[o++];b0(n,a,n+g,a+_,wi,Ti);break;case kt.Z:e=n,i=a;break}Jo(Si,Si,wi),ts(Mn,Mn,Ti)}return o===0&&(Si[0]=Si[1]=Mn[0]=Mn[1]=0),new At(Si[0],Si[1],Mn[0]-Si[0],Mn[1]-Si[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,h=0,v=0;v<e;){var c=t[v++],d=v===1;d&&(a=t[v],o=t[v+1],s=a,u=o);var p=-1;switch(c){case kt.M:a=s=t[v++],o=u=t[v++];break;case kt.L:{var g=t[v++],_=t[v++],y=g-a,m=_-o;(qi(y)>i||qi(m)>n||v===e-1)&&(p=Math.sqrt(y*y+m*m),a=g,o=_);break}case kt.C:{var x=t[v++],S=t[v++],g=t[v++],_=t[v++],b=t[v++],w=t[v++];p=FA(a,o,x,S,g,_,b,w,10),a=b,o=w;break}case kt.Q:{var x=t[v++],S=t[v++],g=t[v++],_=t[v++];p=GA(a,o,x,S,g,_,10),a=g,o=_;break}case kt.A:var M=t[v++],T=t[v++],C=t[v++],D=t[v++],P=t[v++],L=t[v++],k=L+P;v+=1,d&&(s=Ca(P)*C+M,u=Da(P)*D+T),p=Bv(C,D)*Ov(Ln,Math.abs(L)),a=Ca(k)*C+M,o=Da(k)*D+T;break;case kt.R:{s=a=t[v++],u=o=t[v++];var R=t[v++],E=t[v++];p=R*2+E*2;break}case kt.Z:{var y=s-a,m=u-o;p=Math.sqrt(y*y+m*m),a=s,o=u;break}}p>=0&&(l[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,u,l,f,h,v,c=e<1,d,p,g=0,_=0,y,m=0,x,S;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=e*p,!y)))t:for(var b=0;b<o;){var w=i[b++],M=b===1;switch(M&&(l=i[b],f=i[b+1],s=l,u=f),w!==kt.L&&m>0&&(t.lineTo(x,S),m=0),w){case kt.M:s=l=i[b++],u=f=i[b++],t.moveTo(l,f);break;case kt.L:{h=i[b++],v=i[b++];var T=qi(h-l),C=qi(v-f);if(T>n||C>a){if(c){var D=d[_++];if(g+D>y){var P=(y-g)/D;t.lineTo(l*(1-P)+h*P,f*(1-P)+v*P);break t}g+=D}t.lineTo(h,v),l=h,f=v,m=0}else{var L=T*T+C*C;L>m&&(x=h,S=v,m=L)}break}case kt.C:{var k=i[b++],R=i[b++],E=i[b++],B=i[b++],z=i[b++],H=i[b++];if(c){var D=d[_++];if(g+D>y){var P=(y-g)/D;ta(l,k,E,z,P,Ta),ta(f,R,B,H,P,Ma),t.bezierCurveTo(Ta[1],Ma[1],Ta[2],Ma[2],Ta[3],Ma[3]);break t}g+=D}t.bezierCurveTo(k,R,E,B,z,H),l=z,f=H;break}case kt.Q:{var k=i[b++],R=i[b++],E=i[b++],B=i[b++];if(c){var D=d[_++];if(g+D>y){var P=(y-g)/D;Oh(l,k,E,P,Ta),Oh(f,R,B,P,Ma),t.quadraticCurveTo(Ta[1],Ma[1],Ta[2],Ma[2]);break t}g+=D}t.quadraticCurveTo(k,R,E,B),l=E,f=B;break}case kt.A:var I=i[b++],U=i[b++],tt=i[b++],gt=i[b++],j=i[b++],ct=i[b++],Ht=i[b++],Lt=!i[b++],Wt=tt>gt?tt:gt,Ct=qi(tt-gt)>.001,Et=j+ct,X=!1;if(c){var D=d[_++];g+D>y&&(Et=j+ct*(y-g)/D,X=!0),g+=D}if(Ct&&t.ellipse?t.ellipse(I,U,tt,gt,Ht,j,Et,Lt):t.arc(I,U,Wt,j,Et,Lt),X)break t;M&&(s=Ca(j)*tt+I,u=Da(j)*gt+U),l=Ca(Et)*tt+I,f=Da(Et)*gt+U;break;case kt.R:s=l=i[b],u=f=i[b+1],h=i[b++],v=i[b++];var et=i[b++],lt=i[b++];if(c){var D=d[_++];if(g+D>y){var vt=y-g;t.moveTo(h,v),t.lineTo(h+Ov(vt,et),v),vt-=et,vt>0&&t.lineTo(h+et,v+Ov(vt,lt)),vt-=lt,vt>0&&t.lineTo(h+Bv(et-vt,0),v+lt),vt-=et,vt>0&&t.lineTo(h,v+Bv(lt-vt,0));break t}g+=D}t.rect(h,v,et,lt);break;case kt.Z:if(c){var D=d[_++];if(g+D>y){var P=(y-g)/D;t.lineTo(l*(1-P)+s*P,f*(1-P)+u*P);break t}g+=D}t.closePath(),l=s,f=u}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=kt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Ro(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,u=0,l=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)u=(t-i)/(r-e),l=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function vP(r,t,e,i,n,a,o,s,u,l,f){if(u===0)return!1;var h=u;if(f>t+h&&f>i+h&&f>a+h&&f>s+h||f<t-h&&f<i-h&&f<a-h&&f<s-h||l>r+h&&l>e+h&&l>n+h&&l>o+h||l<r-h&&l<e-h&&l<n-h&&l<o-h)return!1;var v=eS(r,t,e,i,n,a,o,s,l,f,null);return v<=h/2}function dP(r,t,e,i,n,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>i+l&&u>a+l||u<t-l&&u<i-l&&u<a-l||s>r+l&&s>e+l&&s>n+l||s<r-l&&s<e-l&&s<n-l)return!1;var f=iS(r,t,e,i,n,a,s,u,null);return f<=l/2}var T0=Math.PI*2;function nn(r){return r%=T0,r<0&&(r+=T0),r}var tu=Math.PI*2;function pP(r,t,e,i,n,a,o,s,u){if(o===0)return!1;var l=o;s-=r,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>e||f+l<e)return!1;if(Math.abs(i-n)%tu<1e-4)return!0;
29if(a){var h=i;i=nn(n),n=nn(h)}else i=nn(i),n=nn(n);i>n&&(n+=tu);var v=Math.atan2(u,s);return v<0&&(v+=tu),v>=i&&v<=n||v+tu>=i&&v+tu<=n}function Aa(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var u=o*(e-r)+r;return u===n?1/0:u>n?s:0}var Cn=ra.CMD,Pa=Math.PI*2,gP=1e-4;function _P(r,t){return Math.abs(r-t)<gP}var Je=[-1,-1,-1],Wr=[-1,-1];function yP(){var r=Wr[0];Wr[0]=Wr[1],Wr[1]=r}function mP(r,t,e,i,n,a,o,s,u,l){if(l>t&&l>i&&l>a&&l>s||l<t&&l<i&&l<a&&l<s)return 0;var f=Jb(t,i,a,s,l,Je);if(f===0)return 0;for(var h=0,v=-1,c=void 0,d=void 0,p=0;p<f;p++){var g=Je[p],_=g===0||g===1?.5:1,y=Ae(r,e,n,o,g);y<u||(v<0&&(v=tS(t,i,a,s,Wr),Wr[1]<Wr[0]&&v>1&&yP(),c=Ae(t,i,a,s,Wr[0]),v>1&&(d=Ae(t,i,a,s,Wr[1]))),v===2?g<Wr[0]?h+=c<t?_:-_:g<Wr[1]?h+=d<c?_:-_:h+=s<d?_:-_:g<Wr[0]?h+=c<t?_:-_:h+=s<c?_:-_)}return h}function xP(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var u=zA(t,i,a,s,Je);if(u===0)return 0;var l=rS(t,i,a);if(l>=0&&l<=1){for(var f=0,h=Fe(t,i,a,l),v=0;v<u;v++){var c=Je[v]===0||Je[v]===1?.5:1,d=Fe(r,e,n,Je[v]);d<o||(Je[v]<l?f+=h<t?c:-c:f+=a<h?c:-c)}return f}else{var c=Je[0]===0||Je[0]===1?.5:1,d=Fe(r,e,n,Je[0]);return d<o?0:a<t?c:-c}}function bP(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var u=Math.sqrt(e*e-s*s);Je[0]=-u,Je[1]=u;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l>=Pa-1e-4){i=0,n=Pa;var f=a?1:-1;return o>=Je[0]+r&&o<=Je[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=Pa,n+=Pa);for(var v=0,c=0;c<2;c++){var d=Je[c];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Pa+p),(p>=i&&p<=n||p+Pa>=i&&p+Pa<=n)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function PS(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,u=0,l=0,f=0,h=0,v,c,d=0;d<o;){var p=a[d++],g=d===1;switch(p===Cn.M&&d>1&&(e||(s+=Aa(u,l,f,h,i,n))),g&&(u=a[d],l=a[d+1],f=u,h=l),p){case Cn.M:f=a[d++],h=a[d++],u=f,l=h;break;case Cn.L:if(e){if(Ro(u,l,a[d],a[d+1],t,i,n))return!0}else s+=Aa(u,l,a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Cn.C:if(e){if(vP(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=mP(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Cn.Q:if(e){if(dP(u,l,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=xP(u,l,a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Cn.A:var _=a[d++],y=a[d++],m=a[d++],x=a[d++],S=a[d++],b=a[d++];d+=1;var w=!!(1-a[d++]);v=Math.cos(S)*m+_,c=Math.sin(S)*x+y,g?(f=v,h=c):s+=Aa(u,l,v,c,i,n);var M=(i-_)*x/m+_;if(e){if(pP(_,y,x,S,S+b,w,t,M,n))return!0}else s+=bP(_,y,x,S,S+b,w,M,n);u=Math.cos(S+b)*m+_,l=Math.sin(S+b)*x+y;break;case Cn.R:f=u=a[d++],h=l=a[d++];var T=a[d++],C=a[d++];if(v=f+T,c=h+C,e){if(Ro(f,h,v,h,t,i,n)||Ro(v,h,v,c,t,i,n)||Ro(v,c,f,c,t,i,n)||Ro(f,c,f,h,t,i,n))return!0}else s+=Aa(v,h,v,c,i,n),s+=Aa(f,c,f,h,i,n);break;case Cn.Z:if(e){if(Ro(u,l,f,h,t,i,n))return!0}else s+=Aa(u,l,f,h,i,n);u=f,l=h;break}}return!e&&!_P(l,h)&&(s+=Aa(u,l,f,h,i,n)||0),s!==0}function SP(r,t,e){return PS(r,0,!1,t,e)}function wP(r,t,e,i){return PS(r,t,!0,e,i)}var IS=yt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},eo),TP={style:yt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Pc.style)},zv=fl.concat(["invisible","culling","z","z2","zlevel","parent"]),wt=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(u){e.buildPath(u,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<zv.length;++s)n[zv[s]]=this[zv[s]];n.__dirty|=Ar}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=Gt(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?N(this.style,s):this.useStyle(s):o==="shape"?N(this.shape,s):r.prototype.attrKV.call(this,o,s)}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(e!=="none"){if($(e)){var i=Bh(e,0);return i>.5?Pp:i>.2?a2:Ip}else if(e)return Ip}return Pp},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if($(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Bh(e,0)<Ap;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Zo},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 ra(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Zo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect
29()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var u=i.strokeNoScale?this.getLineScale():1,l=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),wP(s,u/l,e,i)))return!0}if(this.hasFill())return SP(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Zo,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){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:N(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Zo)},t.prototype.createStyle=function(e){return Sc(IS,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=N({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.shape?o?a?l=i.shape:(l=N({},n.shape),N(l,i.shape)):(l=N({},a?this.shape:n.shape),N(l,i.shape)):u&&(l=n.shape),l)if(o){this.shape=N({},this.shape);for(var f={},h=Gt(l),v=0;v<h.length;v++){var c=h[v];typeof l[c]=="object"?this.shape[c]=l[c]:f[c]=l[c]}this._transitionState(e,{shape:f},s)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return TP},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=function(a){F(o,a);function o(s){var u=a.call(this,s)||this;return e.init&&e.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return ht(e.style)},o.prototype.getDefaultShape=function(){return ht(e.shape)},o}(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);return i},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=Ar|bu|Zo}(),t}(zs),MP=yt({strokeFirst:!0,font:ho,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},IS),zh=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return i!=null&&i!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return Sc(MP,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var n=i_(i,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(zs);zh.prototype.type="tspan";var CP=yt({x:0,y:0},eo),DP={style:yt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Pc.style)};function AP(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var la=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Sc(CP,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=AP(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return DP},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new At(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(zs);la.prototype.type="image";function PP(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,u,l,f;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;
29s+u>n&&(h=s+u,s*=n/h,u*=n/h),l+f>n&&(h=l+f,l*=n/h,f*=n/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-u,i),u!==0&&r.arc(e+n-u,i+u,u,-Math.PI/2,0),r.lineTo(e+n,i+a-l),l!==0&&r.arc(e+n-l,i+a-l,l,0,Math.PI/2),r.lineTo(e+f,i+a),f!==0&&r.arc(e+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var rs=Math.round;function LS(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(rs(i*2)===rs(n*2)&&(r.x1=r.x2=qa(i,s,!0)),rs(a*2)===rs(o*2)&&(r.y1=r.y2=qa(a,s,!0))),r}}function kS(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=qa(i,s,!0),r.y=qa(n,s,!0),r.width=Math.max(qa(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(qa(n+o,s,!1)-r.y,o===0?0:1)),r}}function qa(r,t,e){if(!t)return r;var i=rs(r*2);return(i+rs(t))%2===0?i/2:(i+(e?1:-1))/2}var IP=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),LP={},jt=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new IP},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var u=kS(LP,i,this.style);n=u.x,a=u.y,o=u.width,s=u.height,u.r=i.r,i=u}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?PP(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(wt);jt.prototype.type="rect";var M0={fill:"#000"},C0=2,kP={style:yt({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},Pc.style)},Ue=function(r){F(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=M0,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,NP(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new At(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],u=s.getBoundingRect(),l=s.getLocalTransform(n);l?(e.copy(u),e.applyTransform(l),a=a||e.clone(),a.union(e)):(a=a||u.clone(),a.union(u))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||M0},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return N(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=Gt(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},N(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return kP},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||ho,n=e.padding,a=R0(e),o=J2(a,e),s=Gv(e),u=!!e.backgroundColor,l=o.outerHeight,f=o.outerWidth,h=o.contentWidth,v=o.lines,c=o.lineHeight,d=this._defaultStyle,p=e.x||
290,g=e.y||0,_=e.align||d.align||"left",y=e.verticalAlign||d.verticalAlign||"top",m=p,x=qo(g,o.contentHeight,y);if(s||n){var S=wu(p,f,_),b=qo(g,l,y);s&&this._renderBackground(e,e,S,b,f,l)}x+=c/2,n&&(m=k0(p,_,n),y==="top"?x+=n[0]:y==="bottom"&&(x-=n[2]));for(var w=0,M=!1,T=L0("fill"in e?e.fill:(M=!0,d.fill)),C=I0("stroke"in e?e.stroke:!u&&(!d.autoStroke||M)?(w=C0,d.stroke):null),D=e.textShadowBlur>0,P=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,k=0;k<v.length;k++){var R=this._getOrCreateChild(zh),E=R.createStyle();R.useStyle(E),E.text=v[k],E.x=m,E.y=x,_&&(E.textAlign=_),E.textBaseline="middle",E.opacity=e.opacity,E.strokeFirst=!0,D&&(E.shadowBlur=e.textShadowBlur||0,E.shadowColor=e.textShadowColor||"transparent",E.shadowOffsetX=e.textShadowOffsetX||0,E.shadowOffsetY=e.textShadowOffsetY||0),E.stroke=C,E.fill=T,C&&(E.lineWidth=e.lineWidth||w,E.lineDash=e.lineDash,E.lineDashOffset=e.lineDashOffset||0),E.font=i,A0(E,e),x+=c,P&&R.setBoundingRect(new At(wu(E.x,e.width,E.textAlign),qo(E.y,L,E.textBaseline),h,L))}},t.prototype._updateRichTexts=function(){var e=this.style,i=R0(e),n=rP(i,e),a=n.width,o=n.outerWidth,s=n.outerHeight,u=e.padding,l=e.x||0,f=e.y||0,h=this._defaultStyle,v=e.align||h.align,c=e.verticalAlign||h.verticalAlign,d=wu(l,o,v),p=qo(f,s,c),g=d,_=p;u&&(g+=u[3],_+=u[0]);var y=g+a;Gv(e)&&this._renderBackground(e,e,d,p,o,s);for(var m=!!e.backgroundColor,x=0;x<n.lines.length;x++){for(var S=n.lines[x],b=S.tokens,w=b.length,M=S.lineHeight,T=S.width,C=0,D=g,P=y,L=w-1,k=void 0;C<w&&(k=b[C],!k.align||k.align==="left");)this._placeToken(k,e,M,_,D,"left",m),T-=k.width,D+=k.width,C++;for(;L>=0&&(k=b[L],k.align==="right");)this._placeToken(k,e,M,_,P,"right",m),T-=k.width,P-=k.width,L--;for(D+=(a-(D-g)-(y-P)-T)/2;C<=L;)k=b[C],this._placeToken(k,e,M,_,D+k.width/2,"center",m),D+=k.width,C++;_+=M}},t.prototype._placeToken=function(e,i,n,a,o,s,u){var l=i.rich[e.styleName]||{};l.text=e.text;var f=e.verticalAlign,h=a+n/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+n-e.height/2);var v=!e.isLineHolder&&Gv(l);v&&this._renderBackground(l,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var c=!!l.backgroundColor,d=e.textPadding;d&&(o=k0(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(zh),g=p.createStyle();p.useStyle(g);var _=this._defaultStyle,y=!1,m=0,x=L0("fill"in l?l.fill:"fill"in i?i.fill:(y=!0,_.fill)),S=I0("stroke"in l?l.stroke:"stroke"in i?i.stroke:!c&&!u&&(!_.autoStroke||y)?(m=C0,_.stroke):null),b=l.textShadowBlur>0||i.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,b&&(g.shadowBlur=l.textShadowBlur||i.textShadowBlur||0,g.shadowColor=l.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=l.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||ho,g.opacity=ih(l.opacity,i.opacity,1),A0(g,l),S&&(g.lineWidth=ih(l.lineWidth,i.lineWidth,m),g.lineDash=it(l.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=S),x&&(g.fill=x);var w=e.contentWidth,M=e.contentHeight;p.setBoundingRect(new At(wu(g.x,w,g.textAlign),qo(g.y,M,g.textBaseline),w,M))},t.prototype._renderBackground=function(e,i,n,a,o,s){var u=e.backgroundColor,l=e.borderWidth,f=e.borderColor,h=u&&u.image,v=u&&!h,c=e.borderRadius,d=this,p,g;if(v||e.lineHeight||l&&f){p=this._getOrCreateChild(jt),p.useStyle(p.createStyle()),p.style.fill=null;var _=p.shape;_.x=n,_.y=a,_.width=o,_.height=s,_.r=c,p.dirtyShape()}if(v){var y=p.style;y.fill=u||null,y.fillOpacity=it(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(la),g.onload=function(){d.dirtyStyle()};var m=g.style;m.image=u.image,m.x=n,m.y=a,m.width=o,m.height=s}if(l&&f){var y=p.style;y.lineWidth=l,y.stroke=f,y.strokeOpacity=it(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(p||g).style;x.shadowBlur=e.shadowBlur||0,x.shadowColor=e.shadowColor||"transparent",x.shadowOffsetX=e.shadowOffsetX||0,x.shadowOffsetY=e.shadowOffsetY||0,x.opacity=ih(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return BP(e)&&(i=[e.fontStyle,e.fontWeight,OP(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&ki(i)||e.textFont||e.font},t}(zs),RP={left:!0,right:1,center:1},EP={top:1,bottom:1,middle:1},D0=["fontStyle","fontWeight","fontSize","fontFamily"];function OP(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?$g+"px":r+"px"}function A0(r,t){for(var e=0;e<D0.length;e++){var i=D0[e],n=t[i];n!=null&&(r[i]=n)}}function BP(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}
29function NP(r){return P0(r),A(r.rich,P0),r}function P0(r){if(r){r.font=Ue.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||RP[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||EP[e]?e:"top";var i=r.padding;i&&(r.padding=Vb(r.padding))}}function I0(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function L0(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function k0(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function R0(r){var t=r.text;return t!=null&&(t+=""),t}function Gv(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Dt=Bt(),FP=function(r,t,e,i){if(i){var n=Dt(i);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=Dt(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},E0=1,O0={},RS=Bt(),l_=Bt(),ES=0,f_=1,h_=2,jr=["emphasis","blur","select"],Gh=["normal","emphasis","blur","select"],zP=10,GP=9,ro="highlight",hh="downplay",Vu="select",ch="unselect",Hu="toggleSelect";function Eo(r){return r!=null&&r!=="none"}function Ic(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function OS(r){Ic(r,"emphasis",h_)}function BS(r){r.hoverState===h_&&Ic(r,"normal",ES)}function c_(r){Ic(r,"blur",f_)}function NS(r){r.hoverState===f_&&Ic(r,"normal",ES)}function VP(r){r.selected=!0}function HP(r){r.selected=!1}function B0(r,t,e){t(r,e)}function yn(r,t,e){B0(r,t,e),r.isGroup&&r.traverse(function(i){B0(i,t,e)})}function WP(r,t,e,i){for(var n=r.style,a={},o=0;o<t.length;o++){var s=t[o],u=n[s];a[s]=u??(i&&i[s])}for(var o=0;o<r.animators.length;o++){var l=r.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(e)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function YP(r,t,e,i){var n=e&&Mt(e,"select")>=0,a=!1;if(r instanceof wt){var o=RS(r),s=n&&o.selectFill||o.normalFill,u=n&&o.selectStroke||o.normalStroke;if(Eo(s)||Eo(u)){i=i||{};var l=i.style||{};l.fill==="inherit"?(a=!0,i=N({},i),l=N({},l),l.fill=s):!Eo(l.fill)&&Eo(s)?(a=!0,i=N({},i),l=N({},l),l.fill=r0(s)):!Eo(l.stroke)&&Eo(u)&&(a||(i=N({},i),l=N({},l)),l.stroke=r0(u)),i.style=l}}if(i&&i.z2==null){a||(i=N({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??zP)}return i}function UP(r,t,e){if(e&&e.z2==null){e=N({},e);var i=r.z2SelectLift;e.z2=r.z2+(i??GP)}return e}function XP(r,t,e){var i=Mt(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:WP(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=N({},e),o=N({opacity:i?n:a.opacity*.1},o),e.style=o),e}function Vv(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return YP(this,r,t,e);if(r==="blur")return XP(this,r,e);if(r==="select")return UP(this,r,e)}return e}function $P(r){r.stateProxy=Vv;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Vv),e&&(e.stateProxy=Vv)}function N0(r,t){!VS(r,t)&&!r.__highByOuter&&yn(r,OS)}function F0(r,t){!VS(r,t)&&!r.__highByOuter&&yn(r,BS)}function vl(r,t){r.__highByOuter|=1<<(t||0),yn(r,OS)}function dl(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&yn(r,BS)}function FS(r){yn(r,c_)}function v_(r){yn(r,NS)}function zS(r){yn(r,VP)}function GS(r){yn(r,HP)}function VS(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function HS(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=l_(a),s=n==="series",u=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(u),o.isBlured&&(u.group.traverse(function(l){NS(l)}),s&&e.push(a)),o.isBlured=!1}),A(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Op(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var v=l.getItemGraphicEl(f[h]);v&&v_(v)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];n.eachSeries(function(l){var f=o===l,h=l.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!v||t==="series"&&f)){var c=i.getViewOfSeriesModel(l);
29if(c.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||c_(g)}),ar(t))a(l.getData(),t);else if(Z(t))for(var d=Gt(t),p=0;p<d.length;p++)a(l.getData(d[p]),t[d[p]]);u.push(l),l_(l).isBlured=!0}}),n.eachComponent(function(l,f){if(l!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,n)}})}}function Bp(r,t,e){if(!(r==null||t==null)){var i=e.getModel().getComponent(r,t);if(i){l_(i).isBlured=!0;var n=e.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){c_(a)})}}}function ZP(r,t,e){var i=r.seriesIndex,n=r.getData(t.dataType);if(n){var a=Vl(n,t);a=(G(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),u=0;!o&&u<s;)o=n.getItemGraphicEl(u++);if(o){var l=Dt(o);Op(i,l.focus,l.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&Op(i,f,h,e)}}}function d_(r,t,e,i){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var a=i.getModel().getComponent(r,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),u,l=0;l<s.length;l++)if(Dt(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function qP(r,t,e){var i=Dt(r),n=d_(i.componentMainType,i.componentIndex,i.componentHighDownName,e),a=n.dispatchers,o=n.focusSelf;a?(o&&Bp(i.componentMainType,i.componentIndex,e),A(a,function(s){return N0(s,t)})):(Op(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&Bp(i.componentMainType,i.componentIndex,e),N0(r,t))}function KP(r,t,e){HS(e);var i=Dt(r),n=d_(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;n?A(n,function(a){return F0(a,t)}):F0(r,t)}function QP(r,t,e){if(Fp(t)){var i=t.dataType,n=r.getData(i),a=Vl(n,t);G(a)||(a=[a]),r[t.type===Hu?"toggleSelect":t.type===Vu?"select":"unselect"](a,i)}}function z0(r){var t=r.getAllData();A(t,function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(a,o){r.isSelected(o,n)?zS(a):GS(a)})})}function jP(r){var t=[];return r.eachSeries(function(e){var i=e.getAllData();A(i,function(n){n.data;var a=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Vh(r,t,e){YS(r,!0),yn(r,$P),tI(r,t,e)}function JP(r){YS(r,!1)}function p_(r,t,e,i){i?JP(r):Vh(r,t,e)}function tI(r,t,e){var i=Dt(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var G0=["emphasis","blur","select"],eI={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function WS(r,t,e,i){e=e||"itemStyle";for(var n=0;n<G0.length;n++){var a=G0[n],o=t.getModel([a,e]),s=r.ensureState(a);s.style=o[eI[e]]()}}function YS(r,t){var e=t===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function Np(r){return!!(r&&r.__highDownDispatcher)}function rI(r){var t=O0[r];return t==null&&E0<=32&&(t=O0[r]=E0++),t}function Fp(r){var t=r.type;return t===Vu||t===ch||t===Hu}function V0(r){var t=r.type;return t===ro||t===hh}function iI(r){var t=RS(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Oo=ra.CMD,nI=[[],[],[]],H0=Math.sqrt,aI=Math.atan2;function US(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,u,l,f=Oo.M,h=Oo.C,v=Oo.L,c=Oo.R,d=Oo.A,p=Oo.Q;for(o=0,s=0;o<i;){switch(n=e[o++],s=o,a=0,n){case f:a=1;break;case v:a=1;break;case h:a=3;break;case p:a=2;break;case d:var g=t[4],_=t[5],y=H0(t[0]*t[0]+t[1]*t[1]),m=H0(t[2]*t[2]+t[3]*t[3]),x=aI(-t[1]/m,t[0]/y);e[o]*=y,e[o++]+=g,e[o]*=m,e[o++]+=_,e[o++]*=y,e[o++]*=m,e[o++]+=x,e[o++]+=x,o+=2,s=o;break;case c:l[0]=e[o++],l[1]=e[o++],Kr(l,l,t),e[s++]=l[0],e[s++]=l[1],l[0]+=e[o++],l[1]+=e[o++],Kr(l,l,t),e[s++]=l[0],e[s++]=l[1]}for(u=0;u<a;u++){var S=nI[u];S[0]=e[o++],S[1]=e[o++],Kr(S,S,t),e[s++]=S[0],e[s++]=S[1]}}r.increaseVersion()}}var Hv=Math.sqrt,hf=Math.sin,cf=Math.cos,eu=Math.PI;function W0(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function zp(r,t){return(r[0]*t[0]+r[1]*t[1])/(W0(r)*W0(t))}function Y0(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(zp(r,t))}function U0(r,t,e,i,n,a,o,s,u,l,f){var h=u*(eu/180),v=cf(h)*(r-e)/2+hf(h)*(t-i)/2,c=-1*hf(h)*(r-e)/2+cf(h)*(t-i)/2,d=v*v/(o*o)+c*c/(s*s);d>1&&(o*=Hv(d),s*=Hv(d));var p=(n===a?-1:1)*Hv((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=p*o*c/s,_=p*-s*v/o,y=(r+e)/2+cf(h)*g-hf(h)*_,m=(t+i)/2+hf(h)*g+cf(h)*_,x=Y0([1,0],[(v-g)/o,(c-_)/s]),S=[(v-g)/o,(c-_)/s],b=[(-1*v-g)/o,(-1*c-_)/s],w=Y0(S,b);
29if(zp(S,b)<=-1&&(w=eu),zp(S,b)>=1&&(w=0),w<0){var M=Math.round(w/eu*1e6)/1e6;w=eu*2+M%2*eu}f.addData(l,y,m,o,s,x,w,h,a)}var oI=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,sI=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function uI(r){var t=new ra;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=ra.CMD,u=r.match(oI);if(!u)return t;for(var l=0;l<u.length;l++){for(var f=u[l],h=f.charAt(0),v=void 0,c=f.match(sI)||[],d=c.length,p=0;p<d;p++)c[p]=parseFloat(c[p]);for(var g=0;g<d;){var _=void 0,y=void 0,m=void 0,x=void 0,S=void 0,b=void 0,w=void 0,M=e,T=i,C=void 0,D=void 0;switch(h){case"l":e+=c[g++],i+=c[g++],v=s.L,t.addData(v,e,i);break;case"L":e=c[g++],i=c[g++],v=s.L,t.addData(v,e,i);break;case"m":e+=c[g++],i+=c[g++],v=s.M,t.addData(v,e,i),n=e,a=i,h="l";break;case"M":e=c[g++],i=c[g++],v=s.M,t.addData(v,e,i),n=e,a=i,h="L";break;case"h":e+=c[g++],v=s.L,t.addData(v,e,i);break;case"H":e=c[g++],v=s.L,t.addData(v,e,i);break;case"v":i+=c[g++],v=s.L,t.addData(v,e,i);break;case"V":i=c[g++],v=s.L,t.addData(v,e,i);break;case"C":v=s.C,t.addData(v,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),e=c[g-2],i=c[g-1];break;case"c":v=s.C,t.addData(v,c[g++]+e,c[g++]+i,c[g++]+e,c[g++]+i,c[g++]+e,c[g++]+i),e+=c[g-2],i+=c[g-1];break;case"S":_=e,y=i,C=t.len(),D=t.data,o===s.C&&(_+=e-D[C-4],y+=i-D[C-3]),v=s.C,M=c[g++],T=c[g++],e=c[g++],i=c[g++],t.addData(v,_,y,M,T,e,i);break;case"s":_=e,y=i,C=t.len(),D=t.data,o===s.C&&(_+=e-D[C-4],y+=i-D[C-3]),v=s.C,M=e+c[g++],T=i+c[g++],e+=c[g++],i+=c[g++],t.addData(v,_,y,M,T,e,i);break;case"Q":M=c[g++],T=c[g++],e=c[g++],i=c[g++],v=s.Q,t.addData(v,M,T,e,i);break;case"q":M=c[g++]+e,T=c[g++]+i,e+=c[g++],i+=c[g++],v=s.Q,t.addData(v,M,T,e,i);break;case"T":_=e,y=i,C=t.len(),D=t.data,o===s.Q&&(_+=e-D[C-4],y+=i-D[C-3]),e=c[g++],i=c[g++],v=s.Q,t.addData(v,_,y,e,i);break;case"t":_=e,y=i,C=t.len(),D=t.data,o===s.Q&&(_+=e-D[C-4],y+=i-D[C-3]),e+=c[g++],i+=c[g++],v=s.Q,t.addData(v,_,y,e,i);break;case"A":m=c[g++],x=c[g++],S=c[g++],b=c[g++],w=c[g++],M=e,T=i,e=c[g++],i=c[g++],v=s.A,U0(M,T,e,i,b,w,m,x,S,v,t);break;case"a":m=c[g++],x=c[g++],S=c[g++],b=c[g++],w=c[g++],M=e,T=i,e+=c[g++],i+=c[g++],v=s.A,U0(M,T,e,i,b,w,m,x,S,v,t);break}}(h==="z"||h==="Z")&&(v=s.Z,t.addData(v),e=n,i=a),o=v}return t.toStatic(),t}var XS=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(wt);function $S(r){return r.setData!=null}function ZS(r,t){var e=uI(r),i=N({},t);return i.buildPath=function(n){if($S(n)){n.setData(e.data);var a=n.getContext();a&&n.rebuildPath(a,1)}else{var a=n;e.rebuildPath(a,1)}},i.applyTransform=function(n){US(e,n),this.dirtyShape()},i}function lI(r,t){return new XS(ZS(r,t))}function fI(r,t){var e=ZS(r,t),i=function(n){F(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a}(XS);return i}function hI(r,t){for(var e=[],i=r.length,n=0;n<i;n++){var a=r[n];e.push(a.getUpdatedPathProxy(!0))}var o=new wt(t);return o.createPathProxy(),o.buildPath=function(s){if($S(s)){s.appendPath(e);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}function g_(r,t){t=t||{};var e=new wt;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?US(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var cI=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),Lc=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new cI},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t}(wt);Lc.prototype.type="circle";var vI=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),__=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new vI},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,u=i.ry,l=s*n,f=u*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),e.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),e.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),e.closePath()},t}(wt);__.prototype.type="ellipse";var qS=Math.PI,Wv=qS*2,Ia=Math.sin,Bo=Math.cos,dI=Math.acos,Ee=Math.atan2,X0=Math.abs,Wu=Math.sqrt,Tu=Math.max,Mi=Math.min,li=1e-4;function pI(r,t,e,i,n,a,o,s){var u=e-r,l=i-t,f=o-n,h=s-a,v=h*u-f*l;if(!(v*v<li))return v=(f*(t-a)-h*(r-n))/v,[r+v*u,t+v*l]}function vf(r,t,e,i,n,a,o){var s=r-e,u=t-i,l=(o?a:-a)/Wu(s*s+u*u),f=l*u,h=-l*s,v=r+f,c=t+h,d=e+f,p=i+h,g=(v+d)/2,_=(c+p)/2,y=d-v,m=p-c,x=y*y+m*m,S=n-a,b=v*p-d*c,w=(m<0?-1:1)*Wu(Tu(0,S*S*x-b*b)),M=(b*m-y*w)/x,T=(-b*y-m*w)/x,C=(b*m+y*w)/x,D=(-b*y+m*w)/x,P=M-g,L=T-_,k=C-g,R=D-_;return P*P+L*L>k*k+R*R&&(M=C,T=D),{cx:M,cy:T,x0:-f,y0:-h,x1:M*(n/S-1),y1:T*(n/S-1)}}function gI(r){var t;if(G(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function _I(r,t){var e,i=Tu(t.r,0),n=Tu(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,v=!!t.clockwise,c=X0(l-u),d=c>Wv&&c%Wv;if(d>li&&(c=d),!(i>li))r.moveTo(f,h);else if(c>Wv-li)r.moveTo(f+i*Bo(u),h+i*Ia(u)),r.arc(f,h,i,u,l,!v),n>li&&(r.moveTo(f+n*Bo(l),h+n*Ia(l)),r.arc(f,h,n,l,u,v));else{var p=void 0,g=void 0,_=void 0,y=void 0,m=void 0,x=void 0,S=void 0,b=void 0,w=void 0,M=void 0,T=void 0,C=void 0,D=void 0,P=void 0,L=void 0,k=void 0,R=i*Bo(u),E=i*Ia(u),B=n*Bo(l),z=n*Ia(l),H=c>li;if(H){var I=t.cornerRadius;I&&(e=gI(I),p=e[0],g=e[1],_=e[2],y=e[3]);var U=X0(i-n)/2;if(m=Mi(U,_),x=Mi(U,y),S=Mi(U,p),b=Mi(U,g),T=w=Tu(m,x),C=M=Tu(S,b),(w>li||M>li)&&(D=i*Bo(l),P=i*Ia(l),L=n*Bo(u),k=n*Ia(u),c<qS)){var tt=pI(R,E,L,k,D,P,B,z);
29if(tt){var gt=R-tt[0],j=E-tt[1],ct=D-tt[0],Ht=P-tt[1],Lt=1/Ia(dI((gt*ct+j*Ht)/(Wu(gt*gt+j*j)*Wu(ct*ct+Ht*Ht)))/2),Wt=Wu(tt[0]*tt[0]+tt[1]*tt[1]);T=Mi(w,(i-Wt)/(Lt+1)),C=Mi(M,(n-Wt)/(Lt-1))}}}if(!H)r.moveTo(f+R,h+E);else if(T>li){var Ct=Mi(_,T),Et=Mi(y,T),X=vf(L,k,R,E,i,Ct,v),et=vf(D,P,B,z,i,Et,v);r.moveTo(f+X.cx+X.x0,h+X.cy+X.y0),T<w&&Ct===Et?r.arc(f+X.cx,h+X.cy,T,Ee(X.y0,X.x0),Ee(et.y0,et.x0),!v):(Ct>0&&r.arc(f+X.cx,h+X.cy,Ct,Ee(X.y0,X.x0),Ee(X.y1,X.x1),!v),r.arc(f,h,i,Ee(X.cy+X.y1,X.cx+X.x1),Ee(et.cy+et.y1,et.cx+et.x1),!v),Et>0&&r.arc(f+et.cx,h+et.cy,Et,Ee(et.y1,et.x1),Ee(et.y0,et.x0),!v))}else r.moveTo(f+R,h+E),r.arc(f,h,i,u,l,!v);if(!(n>li)||!H)r.lineTo(f+B,h+z);else if(C>li){var Ct=Mi(p,C),Et=Mi(g,C),X=vf(B,z,D,P,n,-Et,v),et=vf(R,E,L,k,n,-Ct,v);r.lineTo(f+X.cx+X.x0,h+X.cy+X.y0),C<M&&Ct===Et?r.arc(f+X.cx,h+X.cy,C,Ee(X.y0,X.x0),Ee(et.y0,et.x0),!v):(Et>0&&r.arc(f+X.cx,h+X.cy,Et,Ee(X.y0,X.x0),Ee(X.y1,X.x1),!v),r.arc(f,h,n,Ee(X.cy+X.y1,X.cx+X.x1),Ee(et.cy+et.y1,et.cx+et.x1),v),Ct>0&&r.arc(f+et.cx,h+et.cy,Ct,Ee(et.y1,et.x1),Ee(et.y0,et.x0),!v))}else r.lineTo(f+B,h+z),r.arc(f,h,n,l,u,v)}r.closePath()}}}var yI=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Ms=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new yI},t.prototype.buildPath=function(e,i){_I(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(wt);Ms.prototype.type="sector";var mI=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),y_=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new mI},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t}(wt);y_.prototype.type="ring";function xI(r,t,e,i){var n=[],a=[],o=[],s=[],u,l,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v<c;v++)Jo(f,f,r[v]),ts(h,h,r[v]);Jo(f,f,i[0]),ts(h,h,i[1])}for(var v=0,c=r.length;v<c;v++){var d=r[v];if(e)u=r[v?v-1:c-1],l=r[(v+1)%c];else if(v===0||v===c-1){n.push(lA(r[v]));continue}else u=r[v-1],l=r[v+1];Ub(a,l,u),sv(a,a,t);var p=pp(d,u),g=pp(d,l),_=p+g;_!==0&&(p/=_,g/=_),sv(o,a,-p),sv(s,a,g);var y=Ny([],d,o),m=Ny([],d,s);i&&(ts(y,y,f),Jo(y,y,h),ts(m,m,f),Jo(m,m,h)),n.push(y),n.push(m)}return e&&n.push(n.shift()),n}function KS(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=xI(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var bI=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),vo=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new bI},t.prototype.buildPath=function(e,i){KS(e,i,!0)},t}(wt);vo.prototype.type="polygon";var SI=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),Wl=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new SI},t.prototype.buildPath=function(e,i){KS(e,i,!1)},t}(wt);Wl.prototype.type="polyline";var wI={},TI=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),vn=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new TI},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var u=LS(wI,i,this.style);n=u.x1,a=u.y1,o=u.x2,s=u.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var l=i.percent;l!==0&&(e.moveTo(n,a),l<1&&(o=n*(1-l)+o*l,s=a*(1-l)+s*l),e.lineTo(o,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t}(wt);vn.prototype.type="line";var sr=[],MI=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function $0(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?qy:Ae)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?qy:Ae)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Ky:Fe)(r.x1,r.cpx1,r.x2,t),(e?Ky:Fe)(r.y1,r.cpy1,r.y2,t)]}var kc=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new MI},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,u=i.cpx1,l=i.cpy1,f=i.cpx2,h=i.cpy2,v=i.percent;
29v!==0&&(e.moveTo(n,a),f==null||h==null?(v<1&&(Oh(n,u,o,v,sr),u=sr[1],o=sr[2],Oh(a,l,s,v,sr),l=sr[1],s=sr[2]),e.quadraticCurveTo(u,l,o,s)):(v<1&&(ta(n,u,f,o,v,sr),u=sr[1],f=sr[2],o=sr[3],ta(a,l,h,s,v,sr),l=sr[1],h=sr[2],s=sr[3]),e.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(e){return $0(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=$0(this.shape,e,!0);return jg(i,i)},t}(wt);kc.prototype.type="bezier-curve";var CI=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Rc=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new CI},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,u=i.endAngle,l=i.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+n,h*o+a),e.arc(n,a,o,s,u,!l)},t}(wt);Rc.prototype.type="arc";var DI=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),wt.prototype.getBoundingRect.call(this)},t}(wt);const AI=DI;var QS=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),PI=function(r){F(t,r);function t(e,i,n,a,o,s){var u=r.call(this,o)||this;return u.x=e??0,u.y=i??0,u.x2=n??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t}(QS);const II=PI;var LI=function(r){F(t,r);function t(e,i,n,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t}(QS);const kI=LI;var La=[0,0],ka=[0,0],df=new rt,pf=new rt,Hh=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new rt;for(var i=0;i<2;i++)this._axes[i]=new rt;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,u),i[3].set(a,u),e)for(var l=0;l<4;l++)i[l].transform(e);rt.sub(n[0],i[1],i[0]),rt.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;l<2;l++)this._origin[l]=n[l].dot(i[0])},r.prototype.intersect=function(t,e){var i=!0,n=!e;return df.set(1/0,1/0),pf.set(0,0),!this._intersectCheckOneSide(this,t,df,pf,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,df,pf,n,-1)&&(i=!1,n)||n||rt.copy(e,i?df:pf),i},r.prototype._intersectCheckOneSide=function(t,e,i,n,a,o){for(var s=!0,u=0;u<2;u++){var l=this._axes[u];if(this._getProjMinMaxOnAxis(u,t._corners,La),this._getProjMinMaxOnAxis(u,e._corners,ka),La[1]<ka[0]||La[0]>ka[1]){if(s=!1,a)return s;var f=Math.abs(ka[0]-La[1]),h=Math.abs(La[0]-ka[1]);Math.min(f,h)>n.len()&&(f<h?rt.scale(n,l,-f*o):rt.scale(n,l,h*o))}else if(i){var f=Math.abs(ka[0]-La[1]),h=Math.abs(La[0]-ka[1]);Math.min(f,h)<i.len()&&(f<h?rt.scale(i,l,f*o):rt.scale(i,l,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,u=o,l=1;l<e.length;l++){var f=e[l].dot(n)+a[t];s=Math.min(f,s),u=Math.max(f,u)}i[0]=s,i[1]=u},r}(),RI=[],EI=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,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,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new At(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;
29i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(RI)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return!0}return!1},t}(zs);const OI=EI;var jS=Bt();function Ec(r,t,e,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=r==="update";if(s){var l=void 0,f=void 0,h=void 0;i?(l=it(i.duration,200),f=it(i.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),J(h)&&(h=h(e,n)),J(l)&&(l=l(e));var v={duration:l||0,delay:h,easing:f};return v}else return null}function m_(r,t,e,i,n,a,o){var s=!1,u;J(n)?(o=a,a=n,n=null):Z(n)&&(a=n.cb,o=n.during,s=n.isFrom,u=n.removeOpt,n=n.dataIndex);var l=r==="leave";l||t.stopAnimation("leave");var f=Ec(r,i,n,l?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:a,force:!!a||!!o,setToFinal:!l,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Jr(r,t,e,i,n,a){m_("update",r,t,e,i,n,a)}function ia(r,t,e,i,n,a){m_("enter",r,t,e,i,n,a)}function vs(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Wh(r,t,e,i,n,a){vs(r)||m_("leave",r,t,e,i,n,a)}function Z0(r,t,e,i){r.removeTextContent(),r.removeTextGuideLine(),Wh(r,{style:{opacity:0}},t,e,i)}function BI(r,t,e){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Z0(n,t,e,i)}):Z0(r,t,e,i)}function JS(r){jS(r).oldStyle=r.style}function NI(r){return jS(r).oldStyle}var Yh=Math.max,Uh=Math.min,Gp={};function FI(r){return wt.extend(r)}var zI=fI;function GI(r,t){return zI(r,t)}function _i(r,t){Gp[r]=t}function VI(r){if(Gp.hasOwnProperty(r))return Gp[r]}function x_(r,t,e,i){var n=lI(r,t);return e&&(i==="center"&&(e=ew(e,n.getBoundingRect())),rw(n,e)),n}function tw(r,t,e){var i=new la({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var a={width:n.width,height:n.height};i.setStyle(ew(t,a))}}});return i}function ew(r,t){var e=t.width/t.height,i=r.height*e,n;i<=r.width?n=r.height:(i=r.width,n=i/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var HI=hI;function rw(r,t){if(r.applyTransform){var e=r.getBoundingRect(),i=e.calculateTransform(t);r.applyTransform(i)}}function pl(r,t){return LS(r,r,{lineWidth:t}),r}function WI(r){return kS(r.shape,r.shape,r.style),r}var vh=qa;function iw(r,t){for(var e=t_([]);r&&r!==t;)hs(e,r.getLocalTransform(),e),r=r.parent;return e}function gl(r,t,e){return t&&!ar(t)&&(t=Gl.getLocalTransform(t)),e&&(t=wc([],t)),Kr([],r,t)}function nw(r,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=gl(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function q0(r){return!r.isGroup}function YI(r){return r.shape!=null}function aw(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(u){q0(u)&&u.anid&&(s[u.anid]=u)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return YI(o)&&(s.shape=N({},o.shape)),s}var a=i(r);t.traverse(function(o){if(q0(o)&&o.anid){var s=a[o.anid];if(s){var u=n(o);o.attr(n(s)),Jr(o,u,e,Dt(o).dataIndex)}}})}function UI(r,t){return Y(r,function(e){var i=e[0];i=Yh(i,t.x),i=Uh(i,t.x+t.width);var n=e[1];return n=Yh(n,t.y),n=Uh(n,t.y+t.height),[i,n]})}function XI(r,t){var e=Yh(r.x,t.x),i=Uh(r.x+r.width,t.x+t.width),n=Yh(r.y,t.y),a=Uh(r.y+r.height,t.y+t.height);if(i>=e&&a>=n)return{x:e,y:n,width:i-e,height:a-n}}function b_(r,t,e){var i=N({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),yt(n,e),new la(i)):x_(r.replace("path://",""),i,e,"center")}function $I(r,t,e,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(ow(r,t,e,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function ow(r,t,e,i,n,a,o,s){var u=e-r,l=i-t,f=o-n,h=s-a,v=Yv(f,h,u,l);if(ZI(v))return!1;var c=r-n,d=t-a,p=Yv(c,d,u,l)/v;if(p<0||p>1)return!1;var g=Yv(c,d,f,h)/v;return!(g<0||g>1)}function Yv(r,t,e,i){return r*i-e*t}function ZI(r){return r<=1e-6&&r>=-1e-6}function S_(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=$(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var u=r.formatterParamsExtra;u&&A(Gt(u),function(f){hn(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=Dt(r.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:i,option:yt({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function K0(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Yl(r,t){if(r)if(G(r))for(var e=0;e<r.length;e++)K0(r[e],t);else K0(r,t)}_i("circle",Lc);_i("ellipse",__);_i("sector",Ms);_i("ring",y_);_i("polygon",vo);_i("polyline",Wl);_i("rect",jt);_i("line",vn);_i("bezierCurve",kc);_i("arc",Rc);const qI=Object.freeze(Object.defineProperty({__proto__:null,Arc:Rc,BezierCurve:kc,BoundingRect:At,Circle:Lc,CompoundPath:AI,Ellipse:__,Group:_e,Image:la,IncrementalDis
29playable:OI,Line:vn,LinearGradient:II,OrientedBoundingRect:Hh,Path:wt,Point:rt,Polygon:vo,Polyline:Wl,RadialGradient:kI,Rect:jt,Ring:y_,Sector:Ms,Text:Ue,applyTransform:gl,clipPointsByRect:UI,clipRectByRect:XI,createIcon:b_,extendPath:GI,extendShape:FI,getShapeClass:VI,getTransform:iw,groupTransition:aw,initProps:ia,isElementRemoved:vs,lineLineIntersect:ow,linePolygonIntersect:$I,makeImage:tw,makePath:x_,mergePath:HI,registerShape:_i,removeElement:Wh,removeElementWithFadeOut:BI,resizePath:rw,setTooltipConfig:S_,subPixelOptimize:vh,subPixelOptimizeLine:pl,subPixelOptimizeRect:WI,transformDirection:nw,traverseElements:Yl,updateProps:Jr},Symbol.toStringTag,{value:"Module"}));var Oc={};function sw(r,t){for(var e=0;e<jr.length;e++){var i=jr[e],n=t[i],a=r.ensureState(i);a.style=a.style||{},a.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function Vp(r,t,e){var i=r.labelFetcher,n=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=J(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var u={normal:s},l=0;l<jr.length;l++){var f=jr[l],h=t[f];u[f]=it(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return u}function Bc(r,t,e,i){e=e||Oc;for(var n=r instanceof Ue,a=!1,o=0;o<Gh.length;o++){var s=t[Gh[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=n?r:r.getTextContent();if(a){n||(u||(u=new Ue,r.setTextContent(u)),r.stateProxy&&(u.stateProxy=r.stateProxy));var l=Vp(e,t),f=t.normal,h=!!f.getShallow("show"),v=dn(f,i,e,!1,!n);v.text=l.normal,n||r.setTextConfig(Q0(f,e,!1));for(var o=0;o<jr.length;o++){var c=jr[o],s=t[c];if(s){var d=u.ensureState(c),p=!!it(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=dn(s,i,e,!0,!n),d.style.text=l[c],!n){var g=r.ensureState(c);g.textConfig=Q0(s,e,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(v.x=u.style.x),u.style.y!=null&&(v.y=u.style.y),u.ignore=!h,u.useStyle(v),u.dirty(),e.enableTextSetter&&(w_(u).setLabelText=function(_){var y=Vp(e,t,_);sw(u,y)})}else u&&(u.ignore=!0);r.dirty()}function Ul(r,t){t=t||"label";for(var e={normal:r.getModel(t)},i=0;i<jr.length;i++){var n=jr[i];e[n]=r.getModel([n,t])}return e}function dn(r,t,e,i,n){var a={};return KI(a,r,e,i,n),t&&N(a,t),a}function Q0(r,t,e){t=t||{};var i={},n,a=r.getShallow("rotate"),o=it(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",i}function KI(r,t,e,i,n){e=e||Oc;var a=t.ecModel,o=a&&a.option.textStyle,s=QI(t),u;if(s){u={};for(var l in s)if(s.hasOwnProperty(l)){var f=t.getModel(["rich",l]);em(u[l]={},f,o,e,i,n,!1,!0)}}u&&(r.rich=u);var h=t.get("overflow");h&&(r.overflow=h);var v=t.get("minMargin");v!=null&&(r.margin=v),em(r,t,o,e,i,n,!0,!1)}function QI(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Oc).rich;if(e){t=t||{};for(var i=Gt(e),n=0;n<i.length;n++){var a=i[n];t[a]=1}}r=r.parentModel}return t}var j0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],J0=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],tm=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function em(r,t,e,i,n,a,o,s){e=!n&&e||Oc;var u=i&&i.inheritColor,l=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=it(t.getShallow("opacity"),e.opacity);(l==="inherit"||l==="auto")&&(u?l=u:l=null),(f==="inherit"||f==="auto")&&(u?f=u:f=null),a||(l=l||e.color,f=f||e.textBorderColor),l!=null&&(r.fill=l),f!=null&&(r.stroke=f);var v=it(t.getShallow("textBorderWidth"),e.textBorderWidth);v!=null&&(r.lineWidth=v);var c=it(t.getShallow("textBorderType"),e.textBorderType);c!=null&&(r.lineDash=c);var d=it(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!n&&h==null&&!s&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!n&&!a&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var p=0;p<j0.length;p++){var g=j0[p],_=it(t.getShallow(g),e[g]);_!=null&&(r[g]=_)}for(var p=0;p<J0.length;p++){var g=J0[p],_=t.getShallow(g);_!=null&&(r[g]=_)}if(r.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!o||!i.disableBox){for(var p=0;p<tm.length;p++){var g=tm[p],_=t.getShallow(g);_!=null&&(r[g]=_)}var m=t.getShallow("borderType");m!=null&&(r.borderDash=m),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&u&&(r.backgroundColor=u),(r.borderColor==="auto"||r.borderColor==="inherit")&&u&&(r.borderColor=u)}}function jI(r,t){var e=t&&t.getModel("textStyle");return ki([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var w_=Bt();function JI(r,t,e,i,n){var a=w_(r);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=it(a.interpolatedValue,a.prevValue),u=a.value;function l(f){var h=F2(e,a.precision,s,u,f);a.interpolatedValue=f===1?null:h;var v=Vp({labelDataIndex:t,labelFetcher:n,defaultText:o?o(h):h+""},a.statesModels,h);sw(r,v)}r.percent=0,(a.prevValue==null?ia:Jr)(r,{percent:1},i,t,null,l)}var tL=["textStyle","color"],Uv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Xv=new Ue,eL=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;
29return this.getShallow("color")||(!t&&e?e.get(tL):null)},r.prototype.getFont=function(){return jI({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Uv.length;i++)e[Uv[i]]=this.getShallow(Uv[i]);return Xv.useStyle(e),Xv.update(),Xv.getBoundingRect()},r}(),uw=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],rL=cl(uw),iL=function(){function r(){}return r.prototype.getLineStyle=function(t){return rL(this,t)},r}(),lw=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],nL=cl(lw),aL=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return nL(this,t,e)},r}(),te=function(){function r(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return r.prototype.init=function(t,e,i){},r.prototype.mergeOption=function(t,e){bt(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var i=this.option,n=i==null?i:i[t];if(n==null&&!e){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},r.prototype.getModel=function(t,e){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(ht(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!nt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&!(t[n]&&(i=i&&typeof i=="object"?i[t[n]]:null,i==null));n++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},r}();u_(te);Y2(te);ei(te,iL);ei(te,aL);ei(te,q2);ei(te,eL);var oL=Math.round(Math.random()*10);function Nc(r){return[r||"",oL++].join("_")}function sL(r){var t={};r.registerSubTypeDefaulter=function(e,i){var n=Ei(e);t[n.main]=i},r.determineSubType=function(e,i){var n=i.type;if(!n){var a=Ei(e).main;r.hasSubTypes(e)&&t[a]&&(n=t[a](i))}return n}}function uL(r,t){r.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=e(o),f=l.graph,h=l.noEntryList,v={};for(A(a,function(y){v[y]=!0});h.length;){var c=h.pop(),d=f[c],p=!!v[c];p&&(s.call(u,c,d.originalDeps.slice()),delete v[c]),A(d.successor,p?_:g)}A(v,function(){var y="";throw new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function _(y){v[y]=!0,g(y)}};function e(a){var o={},s=[];return A(a,function(u){var l=i(o,u),f=l.originalDeps=t(u),h=n(f,a);l.entryCount=h.length,l.entryCount===0&&s.push(u),A(h,function(v){Mt(l.predecessor,v)<0&&l.predecessor.push(v);var c=i(o,v);Mt(c.successor,v)<0&&c.successor.push(u)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return A(a,function(u){Mt(o,u)>=0&&s.push(u)}),s}}function T_(r,t){return bt(bt({},r,!0),t,!0)}const lL={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","Frid
29ay","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:". "}}}},fL={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}
29,",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Xh="ZH",M_="EN",ds=M_,dh={},C_={},fw=nt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ds).toUpperCase();return r.indexOf(Xh)>-1?Xh:ds}():ds;function hw(r,t){r=r.toUpperCase(),C_[r]=new te(t),dh[r]=t}function hL(r){if($(r)){var t=dh[r.toUpperCase()]||{};return r===Xh||r===M_?ht(t):bt(ht(t),ht(dh[ds]),!1)}else return bt(ht(r),ht(dh[ds]),!1)}function cL(r){return C_[r]}function vL(){return C_[ds]}hw(M_,lL);hw(Xh,fL);var D_=1e3,A_=D_*60,Yu=A_*60,$r=Yu*24,rm=$r*365,Mu={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}"},gf="{yyyy}-{MM}-{dd}",im={year:"{yyyy}",month:"{yyyy}-{MM}",day:gf,hour:gf+" "+Mu.hour,minute:gf+" "+Mu.minute,second:gf+" "+Mu.second,millisecond:Mu.none},$v=["year","month","day","hour","minute","second","millisecond"],cw=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Dn(r,t){return r+="","0000".substr(0,t-r.length)+r}function ps(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function dL(r){return r===ps(r)}function pL(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Fc(r,t,e,i){var n=cn(r),a=n[P_(e)](),o=n[gs(e)]()+1,s=Math.floor((o-1)/3)+1,u=n[zc(e)](),l=n["get"+(e?"UTC":"")+"Day"](),f=n[_l(e)](),h=(f-1)%12+1,v=n[Gc(e)](),c=n[Vc(e)](),d=n[Hc(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),_=i instanceof te?i:cL(i||fw)||vL(),y=_.getModel("time"),m=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Dn(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Dn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Dn(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,S[l]).replace(/{ee}/g,b[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Dn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Dn(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Dn(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Dn(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,Dn(d,3)).replace(/{S}/g,d+"")}function gL(r,t,e,i,n){var a=null;if($(e))a=e;else if(J(e))a=e(r.value,t,{level:r.level});else{var o=N({},Mu);if(r.level>0)for(var s=0;s<$v.length;++s)o[$v[s]]="{primary|"+o[$v[s]]+"}";var u=e?e.inherit===!1?e:yt(e,o):o,l=vw(r.value,n);if(u[l])a=u[l];else if(u.inherit){for(var f=cw.indexOf(l),s=f-1;s>=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(G(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return Fc(new Date(r.value),a,n,i)}function vw(r,t){var e=cn(r),i=e[gs(t)]()+1,n=e[zc(t)](),a=e[_l(t)](),o=e[Gc(t)](),s=e[Vc(t)](),u=e[Hc(t)](),l=u===0,f=l&&s===0,h=f&&o===0,v=h&&a===0,c=v&&n===1,d=c&&i===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":l?"second":"millisecond"}function nm(r,t,e){var i=Vt(r)?cn(r):r;switch(t=t||vw(r,e),t){case"year":return i[P_(e)]();case"half-year":return i[gs(e)]()>=6?1:0;case"quarter":return Math.floor((i[gs(e)]()+1)/4);case"month":return i[gs(e)]();case"day":return i[zc(e)]();case"half-day":return i[_l(e)]()/24;case"hour":return i[_l(e)]();case"minute":return i[Gc(e)]();case"second":return i[Vc(e)]();case"millisecond":return i[Hc(e)]()}}function P_(r){return r?"getUTCFullYear":"getFullYear"}function gs(r){return r?"getUTCMonth":"getMonth"}function zc(r){return r?"getUTCDate":"getDate"}function _l(r){return r?"getUTCHours":"getHours"}function Gc(r){return r?"getUTCMinutes":"getMinutes"}function Vc(r){return r?"getUTCSeconds":"getSeconds"}function Hc(r){return r?"getUTCMilliseconds":"getMilliseconds"}function _L(r){return r?"setUTCFullYear":"setFullYear"}function dw(r){return r?"setUTCMonth":"setMonth"}function pw(r){return r?"setUTCDate":"setDate"}function gw(r){return r?"setUTCHours":"setHours"}function _w(r){return r?"setUTCMinutes":"setMinutes"}function yw(r){return r?"setUTCSeconds":"setSeconds"}function mw(r){return r?"setUTCMilliseconds":"setMilliseconds"}function xw(r){if(!S2(r))return $(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function bw(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Wc=Vb;function Hp(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&ki(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var u=o?cn(r):r;if(isNaN(+u)){if(s)return"-"}else return Fc(u,i,e)}if(t==="ordinal")return vp(r)?n(r):Vt(r)&&a(r)?r+"":"-";var l=ea(r);return a(l)?xw(l):vp(r)?n(r):typeof r=="boolean"?r+"":"-"}var am=["a","b","c","d","e","f","g"],Zv=function(r,t){return"{"+r+(t??"")+"}"};function Sw(r,t,e){G(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=am[a];r=r.replace(Zv(o),Zv(o,0))}for(var s=0;s<i;s++)for(var u=0;u<n.length;u++){var l=t[s][n[u]];r=r.replace(Zv(am[u],s),e?Dr(l):l)}return r}
29function yL(r,t){var e=$(r)?{color:r,extraCssText:t}:r||{},i=e.color,n=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Dr(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Dr(i)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|}  ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function yl(r,t){return t=t||"transparent",$(r)?r:Z(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function om(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var ph=A,mL=["left","right","top","bottom","width","height"],_f=[["width","left","right"],["height","top","bottom"]];function I_(r,t,e,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),v=h&&h.getBoundingRect(),c,d;if(r==="horizontal"){var p=f.width+(v?-v.x+f.x:0);c=a+p,c>i||u.newline?(a=0,c=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>n||u.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),r==="horizontal"?a=c+e:o=d+e)})}var Uu=I_;Rt(I_,"vertical");Rt(I_,"horizontal");function Cs(r,t,e){e=Wc(e||0);var i=t.width,n=t.height,a=Ot(r.left,i),o=Ot(r.top,n),s=Ot(r.right,i),u=Ot(r.bottom,n),l=Ot(r.width,i),f=Ot(r.height,n),h=e[2]+e[0],v=e[1]+e[3],c=r.aspect;switch(isNaN(l)&&(l=i-s-v-a),isNaN(f)&&(f=n-u-h-o),c!=null&&(isNaN(l)&&isNaN(f)&&(c>i/n?l=i*.8:f=n*.8),isNaN(l)&&(l=c*f),isNaN(f)&&(f=l/c)),isNaN(a)&&(a=i-s-l-v),isNaN(o)&&(o=n-u-f-h),r.left||r.right){case"center":a=i/2-l/2-e[3];break;case"right":a=i-l-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=i-v-a-(s||0)),isNaN(f)&&(f=n-h-o-(u||0));var d=new At(a+e[3],o+e[0],l,f);return d.margin=e,d}function ml(r){var t=r.layoutMode||r.constructor.layoutMode;return Z(t)?t:t?{type:t}:null}function Ds(r,t,e){var i=e&&e.ignoreSize;!G(i)&&(i=[i,i]);var n=o(_f[0],0),a=o(_f[1],1);l(_f[0],r,n),l(_f[1],r,a);function o(f,h){var v={},c=0,d={},p=0,g=2;if(ph(f,function(m){d[m]=r[m]}),ph(f,function(m){s(t,m)&&(v[m]=d[m]=t[m]),u(v,m)&&c++,u(d,m)&&p++}),i[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(p===g||!c)return d;if(c>=g)return v;for(var _=0;_<f.length;_++){var y=f[_];if(!s(v,y)&&s(r,y)){v[y]=r[y];break}}return v}function s(f,h){return f.hasOwnProperty(h)}function u(f,h){return f[h]!=null&&f[h]!=="auto"}function l(f,h,v){ph(f,function(c){h[c]=v[c]})}}function Xl(r){return xL({},r)}function xL(r,t){return t&&r&&ph(mL,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var bL=Bt(),It=function(r){F(t,r);function t(e,i,n){var a=r.call(this,e,i,n)||this;return a.uid=Nc("ec_cpt_model"),a}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=ml(this),a=n?Xl(e):{},o=i.getTheme();bt(e,o.get(this.mainType)),bt(e,this.getDefaultOption()),n&&Ds(e,a,n)},t.prototype.mergeOption=function(e,i){bt(this.option,e,!0);var n=ml(this);
29n&&Ds(this.option,e,n)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!V2(e))return e.defaultOption;var i=bL(this);if(!i.defaultOption){for(var n=[],a=e;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},u=n.length-1;u>=0;u--)s=bt(s,n[u],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return Hl(this.ecModel,e,{index:this.get(n,!0),id:this.get(a,!0)},i)},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}(te);wS(It,te);Dc(It);sL(It);uL(It,SL);function SL(r){var t=[];return A(It.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.depen
29dencies||[])}),t=Y(t,function(e){return Ei(e).main}),r!=="dataset"&&Mt(t,"dataset")<=0&&t.unshift("dataset"),t}var ww="";typeof navigator<"u"&&(ww=navigator.platform||"");var No="rgba(0, 0, 0, 0.2)";const wL={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:No,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:No,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:No,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:No,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:No,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:No,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ww.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Tw=K(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Yi="original",or="arrayRows",yi="objectRows",mn="keyedColumns",Xn="typedArray",Mw="unknown",sn="column",Gs="row",br={Must:1,Might:2,Not:3},Cw=Bt();function TL(r){Cw(r).datasetMap=K()}function ML(r,t,e){var i={},n=Dw(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,u=Cw(s).datasetMap,l=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),A(r,function(p,g){var _=Z(p)?p:r[g]={name:p};_.type==="ordinal"&&f==null&&(f=g,h=d(_)),i[_.name]=[]});var v=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});A(r,function(p,g){var _=p.name,y=d(p);if(f==null){var m=v.valueWayDim;c(i[_],m,y),c(o,m,y),v.valueWayDim+=y}else if(f===g)c(i[_],0,y),c(a,0,y);else{var m=v.categoryWayDim;c(i[_],m,y),c(o,m,y),v.categoryWayDim+=y}});function c(p,g,_){for(var y=0;y<_;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function Dw(r){var t=r.get("data",!0);if(!t)return Hl(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Vi).models[0]}function CL(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Hl(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Vi).models}function Aw(r,t){return DL(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function DL(r,t,e,i,n,a){var o,s=5;if(_r(r))return br.Not;var u,l;if(i){var f=i[a];Z(f)?(u=f.name,l=f.type):$(f)&&(u=f)}if(l!=null)return l==="ordinal"?br.Must:br.Not;if(t===or){var h=r;if(e===Gs){for(var v=h[a],c=0;c<(v||[]).length&&c<s;c++)if((o=x(v[n+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var d=h[n+c];if(d&&(o=x(d[a]))!=null)return o}}else if(t===yi){var p=r;if(!u)return br.Not;for(var c=0;c<p.length&&c<s;c++){var g=p[c];if(g&&(o=x(g[u]))!=null)return o}}else if(t===mn){var _=r;if(!u)return br.Not;var v=_[u];if(!v||_r(v))return br.Not;for(var c=0;c<v.length&&c<s;c++)if((o=x(v[c]))!=null)return o}else if(t===Yi)for(var y=r,c=0;c<y.length&&c<s;c++){var g=y[c],m=Cc(g);if(!G(m))return br.Not;if((o=x(m[a]))!=null)return o}function x(S){var b=$(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return b?br.Might:br.Not;if(b&&S!=="-")return br.Must}return br.Not}var AL=K();function PL(r,t,e){var i=AL.get(t);if(!i)return e;var n=i(r);return n?e.concat(n):e}var sm=Bt();Bt();var L_=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,i){var n=ue(this.get("color",!0)),a=this.get("colorLayer",!0);return LL(this,sm,n,a,t,e,i)},r.prototype.clearColorPalette=function(){kL(this,sm)},r}();function IL(r,t){for(var e=r.length,i=0;i<e;i++)if(r[i].length>t)return r[i];return r[e-1]}function LL(r,t,e,i,n,a,o){a=a||r;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(n))return l[n];var f=o==null||!i?e:IL(i,o);if(f=f||e,!(!f||!f.length)){var h=f[u];return n&&(l[n]=h),s.paletteIdx=(u+1)%f.length,h}}function kL(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var yf,ru,um,lm="\0_ec_inner",RL=1,k_=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,n,a,o,s){a=a||{},this.option=null,this._theme=new te(a),this._locale=new te(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){var a=cm(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,cm(i))},t.prototype._resetOption=function(e,i){var n=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?um(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var u=a.getMediaOption(this);u.length&&A(u,function(l){n=!0,this._mergeOption(l,i)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=K(),l=i&&i.replaceMergeMainTypeMap;TL(this),A(e,function(h,v){h!=null&&(It.hasClass(v)?v&&(s.push(v),u.set(v,!0)):n[v]=n[v]==null?ht(h):bt(n[v],h,!0))}),l&&l.each(function(h,v){It.hasClass(v)&&!u.get(v)&&(s.push(v),u.set(v,!0))}),It.topologicalTravel(s,It.getAllClassMainTypes(),f,this);function f(h){var v=PL(this,h,ue(e[h])),c=a.get(h),d=c?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=M2(c,v,d);k2(p,h,It),n[h]=null,a.set(h,null),o.set(h,0);var g=[],_=[],y=0,m;A(p,function(x,S){var b=x.existing,w=x.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var M=h==="series",T=It.getClass(h,x.keyInfo.subType,!M);if(!T)return;if(h==="tooltip"){if(m)return;m=!0}if(b&&b.constructor===T)b.name=x.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var C=N({componentIndex:S},x.keyInfo);b=new T(w,this,this,C),N(b,C),x.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),_.push(b),y++):(g.push(void 0),_.push(void 0))},this),n[h]=g,a.set(h,_),o.set(h,y),h==="series"&&yf(this)}this._seriesIndices||yf(this)},t.prototype.getOption=function(){var e=ht(this.option);return A(e,function(i,n){if(It.hasClass(n)){for(var a=ue(i),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!hl(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[lm],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,i){var n=this._componentsMap.get(e);if(n){var a=n[i||0];if(a)return a;
29if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var n=e.index,a=e.id,o=e.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var u;return n!=null?(u=[],A(ue(n),function(l){s[l]&&u.push(s[l])})):a!=null?u=fm("id",a,s):o!=null?u=fm("name",o,s):u=Kt(s,function(l){return!!l}),hm(u,e)},t.prototype.findComponents=function(e){var i=e.query,n=e.mainType,a=s(i),o=a?this.queryComponents(a):Kt(this._componentsMap.get(n),function(l){return!!l});return u(hm(o,e));function s(l){var f=n+"Index",h=n+"Id",v=n+"Name";return l&&(l[f]!=null||l[h]!=null||l[v]!=null)?{mainType:n,index:l[f],id:l[h],name:l[v]}:null}function u(l){return e.filter?Kt(l,e.filter):l}},t.prototype.eachComponent=function(e,i,n){var a=this._componentsMap;if(J(e)){var o=i,s=e;a.each(function(h,v){for(var c=0;h&&c<h.length;c++){var d=h[c];d&&s.call(o,v,d,d.componentIndex)}})}else for(var u=$(e)?a.get(e):Z(e)?this.findComponents(e):null,l=0;u&&l<u.length;l++){var f=u[l];f&&i.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=Fi(e,null);return Kt(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Kt(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return Kt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){ru(this),A(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];e.call(i,a,n)},this)},t.prototype.eachRawSeries=function(e,i){A(this._componentsMap.get("series"),function(n){n&&e.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,n){ru(this),A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,i,n){return A(this.getSeriesByType(e),i,n)},t.prototype.isSeriesFiltered=function(e){return ru(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){ru(this);var n=[];A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=K(n)},t.prototype.restoreData=function(e){yf(this);var i=this._componentsMap,n=[];i.each(function(a,o){It.hasClass(o)&&n.push(o)}),It.topologicalTravel(n,It.getAllClassMainTypes(),function(a){A(i.get(a),function(o){o&&(a!=="series"||!EL(o,e))&&o.restoreData()})})},t.internalField=function(){yf=function(e){var i=e._seriesIndices=[];A(e._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),e._seriesIndicesMap=K(i)},ru=function(e){},um=function(e,i){e.option={},e.option[lm]=RL,e._componentsMap=K({series:[]}),e._componentsCount=K();var n=i.aria;Z(n)&&n.enabled==null&&(n.enabled=!0),OL(i,e._theme.option),bt(i,wL,!1),e._mergeOption(i,null)}}(),t}(te);function EL(r,t){if(t){var e=t.seriesIndex,i=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||i!=null&&r.id!==i||n!=null&&r.name!==n}}function OL(r,t){var e=r.color&&!r.colorLayer;A(t,function(i,n){n==="colorLayer"&&e||It.hasClass(n)||(typeof i=="object"?r[n]=r[n]?bt(r[n],i,!1):ht(i):r[n]==null&&(r[n]=i))})}function fm(r,t,e){if(G(t)){var i=K();return A(t,function(a){if(a!=null){var o=Fi(a,null);o!=null&&i.set(a,!0)}}),Kt(e,function(a){return a&&i.get(a[r])})}else{var n=Fi(t,null);return Kt(e,function(a){return a&&n!=null&&a[r]===n})}}function hm(r,t){return t.hasOwnProperty("subType")?Kt(r,function(e){return e&&e.subType===t.subType}):r}function cm(r){var t=K();return r&&A(ue(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ei(k_,L_);var BL=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Pw=function(){function r(t){A(BL,function(e){this[e]=at(t[e],t)},this)}return r}(),qv={},Iw=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var i=[];A(qv,function(n,a){var o=n.create(t,e);i=i.concat(o||[])}),this._coordinateSystems=i},r.prototype.update=function(t,e){A(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){qv[t]=e},r.get=function(t){return qv[t]},r}(),NL=/^(min|max)?(.+)$/,FL=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}
29return r.prototype.setOption=function(t,e,i){t&&(A(ue(t.series),function(o){o&&o.data&&_r(o.data)&&dp(o.data)}),A(ue(t.dataset),function(o){o&&o.source&&_r(o.source)&&dp(o.source)})),t=ht(t);var n=this._optionBackup,a=zL(t,e,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],ht(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=ht(i[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var u=0,l=n.length;u<l;u++)GL(n[u].query,e,i)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!HL(o,this._currentMediaIndices)&&(s=Y(o,function(f){return ht(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r}();function zL(r,t,e){var i=[],n,a,o=r.baseOption,s=r.timeline,u=r.options,l=r.media,f=!!r.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&G(l)&&A(l,function(c){c&&c.option&&(c.query?i.push(c):n||(n=c))}),v(a),A(u,function(c){return v(c)}),A(i,function(c){return v(c.option)});function v(c){A(t,function(d){d(c,e)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:n,mediaList:i}}function GL(r,t,e){var i={width:t,height:e,aspectratio:t/e},n=!0;return A(r,function(a,o){var s=o.match(NL);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();VL(i[l],a,u)||(n=!1)}}),n}function VL(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function HL(r,t){return r.join(",")===t.join(",")}var si=A,xl=Z,vm=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Kv(r){var t=r&&r.itemStyle;if(t)for(var e=0,i=vm.length;e<i;e++){var n=vm[e],a=t.normal,o=t.emphasis;a&&a[n]&&(r[n]=r[n]||{},r[n].normal?bt(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?bt(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function ze(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var i=r[t].normal,n=r[t].emphasis;i&&(e?(r[t].normal=r[t].emphasis=null,yt(r[t],i)):r[t]=i),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Cu(r){ze(r,"itemStyle"),ze(r,"lineStyle"),ze(r,"areaStyle"),ze(r,"label"),ze(r,"labelLine"),ze(r,"upperLabel"),ze(r,"edgeLabel")}function ne(r,t){var e=xl(r)&&r[t],i=xl(e)&&e.textStyle;if(i)for(var n=0,a=_0.length;n<a;n++){var o=_0[n];i.hasOwnProperty(o)&&(e[o]=i[o])}}function Hr(r){r&&(Cu(r),ne(r,"label"),r.emphasis&&ne(r.emphasis,"label"))}function WL(r){if(xl(r)){Kv(r),Cu(r),ne(r,"label"),ne(r,"upperLabel"),ne(r,"edgeLabel"),r.emphasis&&(ne(r.emphasis,"label"),ne(r.emphasis,"upperLabel"),ne(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Kv(t),Hr(t));var e=r.markLine;e&&(Kv(e),Hr(e));var i=r.markArea;i&&Hr(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!_r(a))for(var o=0;o<a.length;o++)Hr(a[o]);A(r.categories,function(l){Cu(l)})}if(n&&!_r(n))for(var o=0;o<n.length;o++)Hr(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Hr(s[o]);if(e=r.markLine,e&&e.data)for(var u=e.data,o=0;o<u.length;o++)G(u[o])?(Hr(u[o][0]),Hr(u[o][1])):Hr(u[o]);r.type==="gauge"?(ne(r,"axisLabel"),ne(r,"title"),ne(r,"detail")):r.type==="treemap"?(ze(r.breadcrumb,"itemStyle"),A(r.levels,function(l){Cu(l)})):r.type==="tree"&&Cu(r.leaves)}}function Ki(r){return G(r)?r:r?[r]:[]}function dm(r){return(G(r)?r[0]:r)||{}}function YL(r,t){si(Ki(r.series),function(i){xl(i)&&WL(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),si(e,function(i){si(Ki(r[i]),function(n){n&&(ne(n,"axisLabel"),ne(n.axisPointer,"label"))})}),si(Ki(r.parallel),function(i){var n=i&&i.parallelAxisDefault;ne(n,"axisLabel"),ne(n&&n.axisPointer,"label")}),si(Ki(r.calendar),function(i){ze(i,"itemStyle"),ne(i,"dayLabel"),ne(i,"monthLabel"),ne(i,"yearLabel")}),si(Ki(r.radar),function(i){ne(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),si(Ki(r.geo),function(i){xl(i)&&(Hr(i),si(Ki(i.regions),function(n){Hr(n)}))}),si(Ki(r.timeline),function(i){Hr(i),ze(i,"label"),ze(i,"itemStyle"),ze(i,"controlStyle",!0);var n=i.data;G(n)&&A(n,function(a){Z(a)&&(ze(a,"label"),ze(a,"itemStyle"))})}),si(Ki(r.toolbox),function(i){ze(i,"iconStyle"),si(i.feature,function(n){ze(n,"iconStyle")}
29)}),ne(dm(r.axisPointer),"label"),ne(dm(r.tooltip).axisPointer,"label")}function UL(r,t){for(var e=t.split(","),i=r,n=0;n<e.length&&(i=i&&i[e[n]],i!=null);n++);return i}function XL(r,t,e,i){for(var n=t.split(","),a=r,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];a[n[s]]==null&&(a[n[s]]=e)}function pm(r){r&&A($L,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var $L=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ZL=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Qv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function iu(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Qv.length;e++){var i=Qv[e][1],n=Qv[e][0];t[i]!=null&&(t[n]=t[i])}}function gm(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function _m(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function qL(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function Lw(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&Lw(r[e].children,t)}function kw(r,t){YL(r,t),r.series=ue(r.series),A(r.series,function(e){if(Z(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(i==="pie"||i==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),gm(e.label);var n=e.data;if(n&&!_r(n))for(var a=0;a<n.length;a++)gm(n[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=UL(e,"pointer.color");o!=null&&XL(e,"itemStyle.color",o)}else if(i==="bar"){iu(e),iu(e.backgroundStyle),iu(e.emphasis);var n=e.data;if(n&&!_r(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(iu(n[a]),iu(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),_m(e),Lw(e.data,_m)}else i==="graph"||i==="sankey"?qL(e):i==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&yt(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),pm(e)}}),r.dataRange&&(r.visualMap=r.dataRange),A(ZL,function(e){var i=r[e];i&&(G(i)||(i=[i]),A(i,function(n){pm(n)}))})}function KL(r){var t=K();r.eachSeries(function(e){var i=e.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(QL)}function QL(r){A(r,function(t,e){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,h){var v=o.get(t.stackedDimension,h);if(isNaN(v))return n;var c,d;s?d=o.getRawIndex(h):c=o.get(t.stackedByDimension,h);for(var p=NaN,g=e-1;g>=0;g--){var _=r[g];if(s||(d=_.data.rawIndexOf(_.stackedByDimension,c)),d>=0){var y=_.data.getByRawIndex(_.stackResultDimension,d);if(u==="all"||u==="positive"&&y>0||u==="negative"&&y<0||u==="samesign"&&v>=0&&y>0||u==="samesign"&&v<=0&&y<0){v=m2(v,y),p=y;break}}}return i[0]=v,i[1]=p,i})})}var Yc=function(){function r(t){this.data=t.data||(t.sourceFormat===mn?{}:[]),this.sourceFormat=t.sourceFormat||Mw,this.seriesLayoutBy=t.seriesLayoutBy||sn,this.startIndex=t.startIndex||
290,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];n.type==null&&Aw(this,i)===br.Must&&(n.type="ordinal")}}return r}();function R_(r){return r instanceof Yc}function Wp(r,t,e){e=e||Ew(r);var i=t.seriesLayoutBy,n=JL(r,e,i,t.sourceHeader,t.dimensions),a=new Yc({data:r,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:ht(t)});return a}function Rw(r){return new Yc({data:r,sourceFormat:_r(r)?Xn:Yi})}function jL(r){return new Yc({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ht(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Ew(r){var t=Mw;if(_r(r))t=Xn;else if(G(r)){r.length===0&&(t=or);for(var e=0,i=r.length;e<i;e++){var n=r[e];if(n!=null){if(G(n)||_r(n)){t=or;break}else if(Z(n)){t=yi;break}}}}else if(Z(r)){for(var a in r)if(hn(r,a)&&ar(r[a])){t=mn;break}}return t}function JL(r,t,e,i,n){var a,o;if(!r)return{dimensionsDefine:ym(n),startIndex:o,dimensionsDetectedCount:a};if(t===or){var s=r;i==="auto"||i==null?mm(function(l){l!=null&&l!=="-"&&($(l)?o==null&&(o=1):o=0)},e,s,10):o=Vt(i)?i:i?1:0,!n&&o===1&&(n=[],mm(function(l,f){n[f]=l!=null?l+"":""},e,s,1/0)),a=n?n.length:e===Gs?s.length:s[0]?s[0].length:null}else if(t===yi)n||(n=tk(r));else if(t===mn)n||(n=[],A(r,function(l,f){n.push(f)}));else if(t===Yi){var u=Cc(r[0]);a=G(u)&&u.length||1}return{startIndex:o,dimensionsDefine:ym(n),dimensionsDetectedCount:a}}function tk(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Gt(e)}function ym(r){if(r){var t=K();return Y(r,function(e,i){e=Z(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=t.get(n.name);return a?n.name+="-"+a.count++:t.set(n.name,{count:1}),n})}}function mm(r,t,e,i){if(t===Gs)for(var n=0;n<e.length&&n<i;n++)r(e[n]?e[n][0]:null,n);else for(var a=e[0]||[],n=0;n<a.length&&n<i;n++)r(a[n],n)}function Ow(r){var t=r.sourceFormat;return t===yi||t===mn}var Ra,Ea,Oa,xm,bm,Bw=function(){function r(t,e){var i=R_(t)?t:Rw(t);this._source=i;var n=this._data=i.data;i.sourceFormat===Xn&&(this._offset=0,this._dimSize=e,this._data=n),bm(this,n,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;bm=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,v=u.dimensionsDefine,c=xm[E_(l,f)];if(N(o,c),l===Xn)o.getItem=e,o.count=n,o.fillStorage=i;else{var d=Nw(l,f);o.getItem=at(d,null,s,h,v);var p=Fw(l,f);o.count=at(p,null,s,h,v)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,h=0;h<l;h++)s[h]=u[f+h];return s},i=function(o,s,u,l){for(var f=this._data,h=this._dimSize,v=0;v<h;v++){for(var c=l[v],d=c[0]==null?1/0:c[0],p=c[1]==null?-1/0:c[1],g=s-o,_=u[v],y=0;y<g;y++){var m=f[y*h+v];_[o+y]=m,m<d&&(d=m),m>p&&(p=m)}c[0]=d,c[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};xm=(t={},t[or+"_"+sn]={pure:!0,appendData:a},t[or+"_"+Gs]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[yi]={pure:!0,appendData:a},t[mn]={pure:!0,appendData:function(o){var s=this._data;A(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[Yi]={appendData:a},t[Xn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Sm=function(r,t,e,i){return r[i]},ek=(Ra={},Ra[or+"_"+sn]=function(r,t,e,i){return r[i+t]},Ra[or+"_"+Gs]=function(r,t,e,i,n){i+=t;for(var a=n||[],o=r,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[i]:null}return a},Ra[yi]=Sm,Ra[mn]=function(r,t,e,i,n){for(var a=n||[],o=0;o<e.length;o++){var s=e[o].name,u=r[s];a[o]=u?u[i]:null}return a},Ra[Yi]=Sm,Ra);function Nw(r,t){var e=ek[E_(r,t)];return e}var wm=function(r,t,e){return r.length},rk=(Ea={}
29,Ea[or+"_"+sn]=function(r,t,e){return Math.max(0,r.length-t)},Ea[or+"_"+Gs]=function(r,t,e){var i=r[0];return i?Math.max(0,i.length-t):0},Ea[yi]=wm,Ea[mn]=function(r,t,e){var i=e[0].name,n=r[i];return n?n.length:0},Ea[Yi]=wm,Ea);function Fw(r,t){var e=rk[E_(r,t)];return e}var jv=function(r,t,e){return r[t]},ik=(Oa={},Oa[or]=jv,Oa[yi]=function(r,t,e){return r[e]},Oa[mn]=jv,Oa[Yi]=function(r,t,e){var i=Cc(r);return i instanceof Array?i[t]:i},Oa[Xn]=jv,Oa);function zw(r){var t=ik[r];return t}function E_(r,t){return r===or?r+"_"+t:r}function As(r,t,e){if(r){var i=r.getRawDataItem(t);if(i!=null){var n=r.getStore(),a=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return zw(a)(i,o,s)}else{var u=i;return a===Yi&&(u=Cc(i)),u}}}}var nk=/\{@(.+?)\}/g,O_=function(){function r(){}return r.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),a=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),u=i.getItemVisual(t,"style"),l=u&&u[i.getItemVisual(t,"drawType")||"fill"],f=u&&u.stroke,h=this.mainType,v=h==="series",c=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:n,color:l,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,i,n,a,o){e=e||"normal";var s=this.getData(i),u=this.getDataParams(t,i);if(o&&(u.value=o.interpolatedValue),n!=null&&G(u.value)&&(u.value=u.value[n]),!a){var l=s.getItemModel(t);a=l.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(J(a))return u.status=e,u.dimensionIndex=n,a(u);if($(a)){var f=Sw(a,u);return f.replace(nk,function(h,v){var c=v.length,d=v;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1));var p=As(s,t,d);if(o&&G(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return As(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r}();function Tm(r){var t,e;return Z(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Xu(r){return new ak(r)}var ak=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=u,this._modDataCount=l;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!i&&(h||c<d)){var p=this._progress;if(G(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],c,d,u,l);else this._doProgress(p,c,d,u,l)}this._dueIndex=d;var _=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=_}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,i,n,a){Mm.reset(e,i,n,a),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:Mm.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),G(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),Mm=function(){var r,t,e,i,n,a={reset:function(u,l,f,h){t=u,r=l,e=f,i=h,n=Math.ceil(i/e),a.next=e>1&&i>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var u=t%n*e+Math.ceil(t/n),l=t>=r?null:u<i?u:t;return t++,l}}();function $n(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!Vt(r)&&r!=null&&r!=="-"&&(r=+cn(r)),r==null||r===""?NaN:Number(r))}var ok=K({number:function(r){return parseFloat(r)},time:function(r){return+cn(r)},trim:function(r){return $(r)?ki(r):r}});function Gw(r){return ok.get(r)}var Vw={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},sk=function(){function r(t,e){if(!Vt(e)){var i="";Tt(i)}this._opFn=Vw[t],this._rvalFloat=ea(e)}return r.prototype.evaluate=function(t){return Vt(t)?this._opFn(t,this._rvalFloat):this._opFn(ea(t),this._rvalFloat)},r}(),Hw=function(){function r(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var i=Vt(t)?t:ea(t),n=Vt(e)?e:ea(e),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=$(t),u=$(e);s&&(i=u?t:0),u&&(n=s?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r}(),uk=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ea(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(e=ea(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function lk(r,t){return r==="eq"||r==="ne"?new uk(r==="eq",t):hn(Vw,r)?new sk(r,t):null}var fk=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return $n(t,e)},r}();function hk(r,t){var e=new fk,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==sn&&Tt(o);var s=[],u={},l=r.dimensionsDefine;if(l)A(l,function(p,g){var _=p.name,y={index:g,name:_,displayName:p.displayName};if(s.push(y),_!=null){var m="";hn(u,_)&&Tt(m),u[_]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=Nw(n,sn);t.__isBuiltIn&&(e.getRawDataItem=function(p){return h(i,a,s,p)},e.getRawData=at(ck,null,r)),e.cloneRawData=at(vk,null,r);var v=Fw(n,sn);e.count=at(v,null,i,a,s);var c=zw(n);e.retrieveValue=function(p,g){var _=h(i,a,s,p);return d(_,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var _=s[g];
29if(_)return c(p,g,_.name)}};return e.getDimensionInfo=at(dk,null,s,u),e.cloneAllDimensionInfo=at(pk,null,s),e}function ck(r){var t=r.sourceFormat;if(!B_(t)){var e="";Tt(e)}return r.data}function vk(r){var t=r.sourceFormat,e=r.data;if(!B_(t)){var i="";Tt(i)}if(t===or){for(var n=[],a=0,o=e.length;a<o;a++)n.push(e[a].slice());return n}else if(t===yi){for(var n=[],a=0,o=e.length;a<o;a++)n.push(N({},e[a]));return n}}function dk(r,t,e){if(e!=null){if(Vt(e)||!isNaN(e)&&!hn(t,e))return r[e];if(hn(t,e))return t[e]}}function pk(r){return ht(r)}var Ww=K();function gk(r){r=ht(r);var t=r.type,e="";t||Tt(e);var i=t.split(":");i.length!==2&&Tt(e);var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),r.__isBuiltIn=n,Ww.set(t,r)}function _k(r,t,e){var i=ue(r),n=i.length,a="";n||Tt(a);for(var o=0,s=n;o<s;o++){var u=i[o];t=yk(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function yk(r,t,e,i){var n="";t.length||Tt(n),Z(r)||Tt(n);var a=r.type,o=Ww.get(a);o||Tt(n);var s=Y(t,function(l){return hk(l,o)}),u=ue(o.transform({upstream:s[0],upstreamList:s,config:ht(r.config)}));return Y(u,function(l,f){var h="";Z(l)||Tt(h),l.data||Tt(h);var v=Ew(l.data);B_(v)||Tt(h);var c,d=t[0];if(d&&f===0&&!l.dimensions){var p=d.startIndex;p&&(l.data=d.data.slice(0,p).concat(l.data)),c={seriesLayoutBy:sn,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else c={seriesLayoutBy:sn,sourceHeader:0,dimensions:l.dimensions};return Wp(l.data,c,null)})}function B_(r){return r===or||r===yi}var Uc="undefined",mk=typeof Uint32Array===Uc?Array:Uint32Array,xk=typeof Uint16Array===Uc?Array:Uint16Array,Yw=typeof Int32Array===Uc?Array:Int32Array,Cm=typeof Float64Array===Uc?Array:Float64Array,Uw={float:Cm,int:Yw,ordinal:Array,number:Array,time:Cm},Jv;function nu(r){return r>65535?mk:xk}function Fo(){return[1/0,-1/0]}function bk(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Dm(r,t,e,i,n){var a=Uw[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var u=new a(i),l=0;l<s;l++)u[l]=o[l];r[t]=u}}else r[t]=new a(i)}var Yp=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return r.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=Jv[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],Ow(n),this._dimensions=Y(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===e)return a}else a=n.length;return n[a]={type:e},i.set(t,a),this._chunks[a]=new Uw[e||"float"](this._rawCount),this._rawExtent[a]=Fo(),a},r.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=Fo());for(var u=a[t],l=o;l<s;l++){var f=i[l]=e.parseAndCollect(i[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],i=e.ordinalMeta;return i},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},r.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,e||0),l=0;l<a;l++){var f=n[l];Dm(i,l,f.type,u,!0)}for(var h=[],v=s;v<u;v++)for(var c=v-s,d=0;d<a;d++){var f=n[d],p=Jv.arrayRows.call(this,t[c]||h,f.property,c,d);i[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=u,{start:s,end:u}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=Y(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=Fo()),Dm(a,f,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,a,u);else for(var v=[],c=t;c<e;c++){v=n.getItem(c,v);for(var d=0;d<s;
29d++){var p=a[d],g=this._dimValueGetter(v,l[d],c,d);p[c]=g;var _=u[d];g<_[0]&&(_[0]=g),g>_[1]&&(_[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var i=[],n=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=t;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],e));return i},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var i=e.sort(function(a,o){return a-o}),n=this.count();return n===0?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,a=n[t],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f<h;f++){var v=this.getRawIndex(f),c=e-a[v],d=Math.abs(c);d<=i&&((d<s||d===s&&c>=0&&u<0)&&(s=d,u=c,l=0),c===u&&(o[l++]=f))}return o.length=l,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=e[a]}else t=new i(e.buffer,0,n)}else{var i=nu(this._rawCount);t=new i(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=nu(i._rawCount),o=new a(n),s=[],u=t.length,l=0,f=t[0],h=i._chunks,v=0;v<n;v++){var c=void 0,d=i.getRawIndex(v);if(u===0)c=e(v);else if(u===1){var p=h[f][d];c=e(p,v)}else{for(var g=0;g<u;g++)s[g]=h[t[g]][d];s[g]=v,c=e.apply(null,s)}c&&(o[l++]=d)}return l<n&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=Gt(t),a=n.length;if(!a)return this;var o=e.count(),s=nu(e._rawCount),u=new s(o),l=0,f=n[0],h=t[f][0],v=t[f][1],c=e._chunks,d=!1;if(!e._indices){var p=0;if(a===1){for(var g=c[n[0]],_=0;_<i;_++){var y=g[_];(y>=h&&y<=v||isNaN(y))&&(u[l++]=p),p++}d=!0}else if(a===2){for(var g=c[n[0]],m=c[n[1]],x=t[n[1]][0],S=t[n[1]][1],_=0;_<i;_++){var y=g[_],b=m[_];(y>=h&&y<=v||isNaN(y))&&(b>=x&&b<=S||isNaN(b))&&(u[l++]=p),p++}d=!0}}if(!d)if(a===1)for(var _=0;_<o;_++){var w=e.getRawIndex(_),y=c[n[0]][w];(y>=h&&y<=v||isNaN(y))&&(u[l++]=w)}else for(var _=0;_<o;_++){for(var M=!0,w=e.getRawIndex(_),T=0;T<a;T++){var C=n[T],y=c[C][w];(y<t[C][0]||y>t[C][1])&&(M=!1)}M&&(u[l++]=e.getRawIndex(_))}return l<o&&(e._indices=u),e._count=l,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,i){for(var n=t._chunks,a=[],o=e.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<e.length;f++)l[e[f]]=Fo();for(var h=0;h<s;h++){for(var v=t.getRawIndex(h),c=0;c<o;c++)u[c]=n[e[c]][v];u[o]=h;var d=i&&i.apply(null,u);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],_=l[p],y=n[p];y&&(y[v]=g),g<_[0]&&(_[0]=g),g>_[1]&&(_[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,u=Math.floor(1/e),l=this.getRawIndex(0),f,h,v,c=new(nu(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));c[s++]=l;for(var d=1;d<o-1;d+=u){for(var p=Math.min(d+u,o-1),g=Math.min(d+u*2,o),_=(g+p)/2,y=0,m=p;m<g;m++){var x=this.getRawIndex(m),S=a[x];isNaN(S)||(y+=S)}y/=g-p;var b=d,w=Math.min(d+u,o),M=d-1,T=a[l];f=-1,v=b;for(var C=-1,D=0,m=b;m<w;m++){var x=this.getRawIndex(m),S=a[x];if(isNaN(S)){D++,C<0&&(C=x);continue}h=Math.abs((M-_)*(S-T)-(M-m)*(y-T)),h>f&&(f=h,v=x)}D>0&&D<w-b&&(c[s++]=Math.min(C,v),v=Math.max(C,v)),c[s++]=v,l=v}return c[s++]=this.getRawIndex(o-1),i._count=s,i._indices=c,i.getRawIndex=this._getRawIdx,i}
29,r.prototype.downSample=function(t,e,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/e),l=o[t],f=this.count(),h=a._rawExtent[t]=Fo(),v=new(nu(this._rawCount))(Math.ceil(f/u)),c=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var p=0;p<u;p++){var g=this.getRawIndex(d+p);s[p]=l[g]}var _=i(s),y=this.getRawIndex(Math.min(d+n(s,_)||0,f-1));l[y]=_,_<h[0]&&(h[0]=_),_>h[1]&&(h[1]=_),v[c++]=y}return a._count=c,a._indices=v,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:e(a);break;case 1:e(n[t[0]][s],a);break;case 2:e(n[t[0]][s],n[t[1]][s],a);break;default:for(var u=0,l=[];u<i;u++)l[u]=n[t[u]][s];l[u]=a,e.apply(null,l)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],i=Fo();if(!e)return i;var n=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=i;for(var s=o[0],u=o[1],l=0;l<n;l++){var f=this.getRawIndex(l),h=e[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][e]);return i},r.prototype.clone=function(t,e){var i=new r,n=this._chunks,a=t&&Ns(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?bk(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),e||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=ht(this._extent),t._rawExtent=ht(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;n<i;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,i,n,a){return $n(e[a],this._dimensions[a])}Jv={arrayRows:t,objectRows:function(e,i,n,a){return $n(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return $n(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}}(),r}(),Sk=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,n,a;if(mf(t)){var o=t,s=void 0,u=void 0,l=void 0;if(i){var f=e[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=_r(s)?Xn:Yi,a=[];var h=this._getSourceMetaRawOption()||{},v=l&&l.metaRawOption||{},c=it(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=it(h.sourceHeader,v.sourceHeader),p=it(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[Wp(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},u)]:[]}else{var _=t;if(i){var y=this._applyTransform(e);n=y.sourceList,a=y.upstreamSignList}else{var m=_.get("source",!0);n=[Wp(m,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&Am(a)}var o,s=[],u=[];return A(t,function(l){l.prepareSource();var f=l.getSource(n||0),h="";n!=null&&!f&&Am(h),s.push(f),u.push(l._getVersionSign())}),i?o=_k(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[jL(s[0])]),{sourceList:o,upstreamSignList:u}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)}
29,r.prototype._innerGetDataStore=function(t,e,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var u=this._getUpstreamSourceManagers()[0];mf(this._sourceHost)&&u?s=u._innerGetDataStore(t,e,i):(s=new Yp,s.initData(new Bw(e,t.length),t)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(mf(t)){var e=Dw(t);return e?[e.getSourceManager()]:[]}else return Y(CL(t),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,n;if(mf(t))e=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:i,dimensions:n}},r}();function mf(r){return r.mainType==="series"}function Am(r){throw new Error(r)}var Xw="line-height:1";function $w(r,t){var e=r.color||"#6e7079",i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Dr(i+"")+"px;color:"+Dr(e)+";font-weight:"+Dr(n+""),valueStyle:"font-size:"+Dr(o+"")+"px;color:"+Dr(a)+";font-weight:"+Dr(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var wk=[0,10,20,30],Tk=["",`
30`,`
31
32`,`
33
34
35`];function po(r,t){return t.type=r,t}function Up(r){return r.type==="section"}function Zw(r){return Up(r)?Mk:Ck}function qw(r){if(Up(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return A(r.blocks,function(n){var a=qw(n);a>=t&&(t=a+ +(i&&(!a||Up(n)&&!n.noHeader)))}),t}return 0}function Mk(r,t,e,i){var n=t.noHeader,a=Dk(qw(t)),o=[],s=t.blocks||[];fn(!s||G(s)),s=s||[];var u=r.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(hn(l,u)){var f=new Hw(l[u],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else u==="seriesDesc"&&s.reverse()}A(s,function(d,p){var g=t.valueFormatter,_=Zw(d)(g?N(N({},r),{valueFormatter:g}):r,d,p>0?a.html:0,i);_!=null&&o.push(_)});var h=r.renderMode==="richText"?o.join(a.richText):Xp(o.join(""),n?e:a.html);if(n)return h;var v=Hp(t.header,"ordinal",r.useUTC),c=$w(i,r.renderMode).nameStyle;return r.renderMode==="richText"?Kw(r,v,c)+a.richText+h:Xp('<div style="'+c+";"+Xw+';">'+Dr(v)+"</div>"+h,e)}function Ck(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(x){return x=G(x)?x:[x],Y(x,function(S,b){return Hp(S,G(c)?c[b]:c,l)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),v=a?"":Hp(u,"ordinal",l),c=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!a,g=!s&&a,_=$w(i,n),y=_.nameStyle,m=_.valueStyle;return n==="richText"?(s?"":h)+(a?"":Kw(r,v,y))+(o?"":Ik(r,d,p,g,m)):Xp((s?"":h)+(a?"":Ak(v,!s,y))+(o?"":Pk(d,p,g,m)),e)}}function Pm(r,t,e,i,n,a){if(r){var o=Zw(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function Dk(r){return{html:wk[r],richText:Tk[r]}}function Xp(r,t){var e='<div style="clear:both"></div>',i="margin: "+t+"px 0 0";return'<div style="'+i+";"+Xw+';">'+r+e+"</div>"}function Ak(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+Dr(r)+"</span>"}function Pk(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=G(r)?r:[r],'<span style="'+a+";"+i+'">'+Y(r,function(o){return Dr(o)}).join("&nbsp;&nbsp;")+"</span>"}function Kw(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function Ik(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(G(t)?t.join("  "):t,a)}function Lk(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return yl(i)}function Qw(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var td=function(){function r(){this.richTextStyles={},this._nextStyleNameId=_S()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++}
35,r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=yL({color:e,type:t,renderMode:i,markerId:n});return $(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};G(e)?A(e,function(a){return N(i,a)}):N(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r}();function kk(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),u=G(s),l=Lk(t,e),f,h,v,c;if(o>1||u&&!o){var d=Rk(s,t,e,a,l);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(a[0]);c=f=As(n,e,a[0]),h=p.type}else c=f=u?s[0]:s;var g=o_(t),_=g&&t.name||"",y=n.getName(e),m=i?_:y;return po("section",{header:_,noHeader:i||!g,sortParam:c,blocks:[po("nameValue",{markerType:"item",markerColor:l,name:m,noName:!ki(m),value:f,valueType:h,dataIndex:e})].concat(v||[])})}function Rk(r,t,e,i,n){var a=t.getData(),o=Ns(r,function(h,v,c){var d=a.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];i.length?A(i,function(h){f(As(a,e,h),h)}):A(r,f);function f(h,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?l.push(po("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),u.push(c.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var An=Bt();function xf(r,t){return r.getName(t)||r.getId(t)}var gh="__universalTransitionEnabled",na=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=Xu({count:Ok,reset:Bk}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=An(this).sourceManager=new Sk(this);a.prepareSource();var o=this.getInitialData(e,n);Lm(o,this),this.dataTask.context.data=o,An(this).dataBeforeProcessed=o,Im(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=ml(this),a=n?Xl(e):{},o=this.subType;It.hasClass(o)&&(o+="Series"),bt(e,i.getTheme().get(this.subType)),bt(e,this.getDefaultOption()),Lp(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Ds(e,a,n)},t.prototype.mergeOption=function(e,i){e=bt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=ml(this);
35n&&Ds(this.option,e,n);var a=An(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);Lm(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,An(this).dataBeforeProcessed=o,Im(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!_r(e))for(var i=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Lp(e[n],"label",i)},t.prototype.getInitialData=function(e,i){},t.prototype.appendData=function(e){var i=this.getRawData();i.appendData(e.data)},t.prototype.getData=function(e){var i=$p(this);if(i){var n=i.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return An(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var i=$p(this);if(i){var n=i.context;n.outputData=e,i!==this.dataTask&&(n.data=e)}An(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return K(e)},t.prototype.getSourceManager=function(){return An(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return An(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,i,n){return kk({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(nt.node&&!(e&&e.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,n){var a=this.ecModel,o=L_.prototype.getColorFromPalette.call(this,e,i,n);return o||(o=a.getColorFromPalette(e,i,n)),o},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,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var u=e[s],l=xf(o,u);n[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(e,i){for(var n=[],a=0;a<e.length;a++)n[0]=e[a],this.isSelected(e[a],i)?this.unselect(n,i):this.select(n,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,i=Gt(e),n=[],a=0;a<i.length;a++){var o=e[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[xf(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[gh])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var n,a,o=this.option,s=o.selectedMode,u=i.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Z(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=i[f],v=xf(e,h);l[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var c=i[u-1],v=xf(e,c);o.selectedMap=(n={},n[v]=!0,n),this._selectedDataIndicesMap=(a={},a[v]=e.getRawIndex(c),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var i=[];e.hasItemOption&&e.each(function(n){var a=e.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(e,i)}},t.registerClass=function(e){return It.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}(It);ei(na,O_);ei(na,L_);wS(na,It);function Im(r){var t=r.name;o_(r)||(r.name=Ek(r)||t)}function Ek(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return A(e,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function Ok(r){return r.model.getRawData().count()}function Bk(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),Nk}function Nk(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Lm(r,t){A(sA(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Rt(Fk,t))})}function Fk(r,t){var e=$p(r);return e&&e.setOutputEnd((t||this).count()),t}function $p(r){var t=(r.ecModel||{}
35).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}var Er=function(){function r(){this.group=new _e,this.uid=Nc("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){},r.prototype.updateLayout=function(t,e,i,n){},r.prototype.updateVisual=function(t,e,i,n){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();u_(Er);Dc(Er);function N_(){var r=Bt();return function(t){var e=r(t),i=t.pipelineContext,n=!!e.large,a=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var jw=Bt(),zk=N_(),Zn=function(){function r(){this.group=new _e,this.uid=Nc("viewChart"),this.renderTask=Xu({plan:Gk,reset:Vk}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&Rm(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&Rm(a,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.eachRendered=function(t){Yl(this.group,t)},r.markUpdateMethod=function(t,e){jw(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function km(r,t,e){r&&Np(r)&&(t==="emphasis"?vl:dl)(r,e)}function Rm(r,t,e){var i=Vl(r,t),n=t&&t.highlightKey!=null?rI(t.highlightKey):null;i!=null?A(ue(i),function(a){km(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){km(a,e,n)})}u_(Zn);Dc(Zn);function Gk(r){return zk(r.model)}function Vk(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&jw(n).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,e,i,n),Hk[u]}var Hk={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},$h="\0__throttleOriginMethod",Em="\0__throttleRate",Om="\0__throttleType";function Jw(r,t,e){var i,n=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(u,l||[])}var v=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];i=new Date().getTime(),u=this,l=c;var p=f||t,g=f||e;f=null,s=i-(g?n:a)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),n=i};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function Xc(r,t,e,i){var n=r[t];if(n){var a=n[$h]||n,o=n[Om],s=n[Em];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=Jw(a,e,i==="debounce"),n[$h]=a,n[Om]=i,n[Em]=e}return n}}function Zh(r,t){var e=r[t];e&&e[$h]&&(e.clear&&e.clear(),r[t]=e[$h])}var Bm=Bt(),Nm={itemStyle:cl(lw,!0),lineStyle:cl(uw,!0)},Wk={lineStyle:"stroke",itemStyle:"fill"};function tT(r,t){var e=r.visualStyleMapper||Nm[t];return e||(console.warn("Unknown style type '"+t+"'."),Nm.itemStyle)}function eT(r,t){var e=r.visualDrawType||Wk[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var Yk={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=tT(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var u=eT(r,i),l=o[u],f=J(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[u]||(o[u]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||J(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||J(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",u),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=r.getDataParams(d),g=N({},o);g[u]=f(p),c.setItemVisual(d,"style",g)}}}},au=new te,Uk={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=tT(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[i]){au.option=u[i];var l=n(au),f=o.ensureUniqueItemVisual(s,"style");N(f,l),au.option.decal&&(o.setItemVisual(s,"decal",au.option.decal),au.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Xk={performRawSeries:!0,overallReset:function(r){var t=K();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),Bm(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=Bm(e).scope,s=e.visualStyleAccessPath||"itemStyle",u=eT(e,s);a.each(function(l){var f=a.getRawIndex(l);
35n[f]=l}),i.each(function(l){var f=n[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var v=a.ensureUniqueItemVisual(f,"style"),c=i.getName(l)||l+"",d=i.count();v[u]=e.getColorFromPalette(c,o,d)}})}})}},bf=Math.PI;function $k(r,t){t=t||{},yt(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",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new _e,i=new jt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new Ue({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 jt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Rc({shape:{startAngle:-bf/2,endAngle:-bf/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:bf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:bf*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var rT=function(){function r(t,e,i,n){this._stageTaskMap=K(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:u,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=K();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;A(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";fn(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,e,i),n.overallReset&&this._createOverallStageTask(n,a,e,i)},this)},r.prototype.prepareView=function(t,e,i,n){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,n){n=n||{};var a=!1,o=this;A(t,function(u,l){if(!(n.visualType&&n.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,i);var p=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(a=!0)}else h&&h.each(function(g,_){s(n,g)&&g.dirty();var y=o.getPerformArgs(g,n.block);y.skip=!u.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,i),g.perform(y)&&(a=!0)})}});
35function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,n){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=K(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):u?i.eachRawSeriesByType(u,f):l&&l(i,n).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Xu({plan:jk,reset:Jk,count:eR}));c.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,c)}},r.prototype._createOverallStageTask=function(t,e,i,n){var a=this,o=e.overallTask=e.overallTask||Xu({reset:Zk});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=K(),l=t.seriesType,f=t.getTargetSeries,h=!0,v=!1,c="";fn(!t.createOnAllSeries,c),l?i.eachRawSeriesByType(l,d):f?f(i,n).each(d):(h=!1,A(i.getSeries(),d));function d(p){var g=p.uid,_=u.set(g,s&&s.get(g)||(v=!0,Xu({reset:qk,onDirty:Qk})));_.context={model:p,overallProgress:h},_.agent=o,_.__block=h,a._pipe(p,_)}v&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return J(t)&&(t={overallReset:t,seriesType:rR(t)}),t.uid=Nc("stageHandler"),e&&(t.visualType=e),t},r}();function Zk(r){r.overallReset(r.ecModel,r.api,r.payload)}function qk(r){return r.overallProgress&&Kk}function Kk(){this.agent.dirty(),this.getDownstream().dirty()}function Qk(){this.agent&&this.agent.dirty()}function jk(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function Jk(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=ue(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Y(t,function(e,i){return iT(i)}):tR}var tR=iT(0);function iT(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var a=t.start;a<t.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(t,i)}}function eR(r){return r.data.count()}function rR(r){qh=null;try{r(bl,nT)}catch{}return qh}var bl={},nT={},qh;aT(bl,k_);aT(nT,Pw);bl.eachSeriesByType=bl.eachRawSeriesByType=function(r){qh=r};bl.eachComponent=function(r){r.mainType==="series"&&r.subType&&(qh=r.subType)};function aT(r,t){for(var e in t.prototype)r[e]=nr}var Fm=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const iR={color:Fm,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Fm]};
35var Ze="#B9B8CE",zm="#100C2A",Sf=function(){return{axisLine:{lineStyle:{color:Ze}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Gm=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],oT={darkMode:!0,color:Gm,backgroundColor:zm,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ze}},textStyle:{color:Ze},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ze}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ze},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:Ze}},timeline:{lineStyle:{color:Ze},label:{color:Ze},controlStyle:{color:Ze,borderColor:Ze}},calendar:{itemStyle:{color:zm},dayLabel:{color:Ze},monthLabel:{color:Ze},yearLabel:{color:Ze}},timeAxis:Sf(),logAxis:Sf(),valueAxis:Sf(),categoryAxis:Sf(),line:{symbol:"circle"},graph:{color:Gm},gauge:{title:{color:Ze},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ze},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};oT.categoryAxis.splitLine.show=!1;var nR=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},i={},n={};if($(t)){var a=Ei(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(t,function(u,l){for(var f=!1,h=0;h<o.length;h++){var v=o[h],c=l.lastIndexOf(v);if(c>0&&c===l.length-v.length){var d=l.slice(0,c);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(i[l]=u,f=!0),f||(n[l]=u)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var u=e.cptQuery,l=e.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,a));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Zp=["symbol","symbolSize","symbolRotate","symbolOffset"],Vm=Zp.concat(["symbolKeepAspect"]),aR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Zp.length;o++){var s=Zp[o],u=r.get(s);J(u)?(a=!0,n[s]=u):i[s]=u}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(N({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var l=Gt(n);function f(h,v){for(var c=r.getRawValue(v),d=r.getDataParams(v),p=0;p<l.length;p++){var g=l[p];h.setItemVisual(v,g,n[g](c,d))}}return{dataEach:a?f:null}}},oR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<Vm.length;s++){var u=Vm[s],l=o.getShallow(u,!0);l!=null&&n.setItemVisual(a,u,l)}}return{dataEach:e.hasItemOption?i:null}}};function sR(r,t,e){switch(e){case"color":var i=r.getItemVisual(t,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function $c(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function zo(r,t,e,i,n){var a=r+t;e.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=n.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var h=o.getData(),v=Vl(h,n.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:G(v)?h.getName(v[0]):h.getName(v),selected:$(u)?u:N({},u)})}})}function uR(r,t,e){r.on("selectchanged",function(i){var n=e.getModel();i.isFromClick?(zo("map","selectchanged",t,n,i),zo("pie","selectchanged",t,n,i)):i.fromAction==="select"?(zo("map","selected",t,n,i),zo("pie","selected",t,n,i)):i.fromAction==="unselect"&&(zo("map","unselected",t,n,i),zo("pie","unselected",t,n,i))})}function Du(r,t,e){for(var i;r&&!(t(r)&&(i=r,e));)r=r.__hostTarget||r.parent;return i}var lR=Math.round(Math.random()*9),fR=typeof Object.defineProperty=="function",hR=function(){function r(){this._id="__ec_inner_"+lR++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return fR?Object.defineProperty(i,this._id,{value:e,enumerable:!1,
35configurable:!0}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}(),cR=wt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i+a),r.lineTo(e-n,i+a),r.closePath()}}),vR=wt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i),r.lineTo(e,i+a),r.lineTo(e-n,i),r.closePath()}}),dR=wt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,i=t.y,n=t.width/5*3,a=Math.max(n,t.height),o=n/2,s=o*o/(a-o),u=i-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,h=Math.sin(l),v=Math.cos(l),c=o*.6,d=o*.7;r.moveTo(e-f,u+s),r.arc(e,u,o,Math.PI-l,Math.PI*2+l),r.bezierCurveTo(e+f-h*c,u+s+v*c,e,i-d,e,i),r.bezierCurveTo(e,i-d,e-f+h*c,u+s+v*c,e-f,u+s),r.closePath()}}),pR=wt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;r.moveTo(n,a),r.lineTo(n+o,a+e),r.lineTo(n,a+e/4*3),r.lineTo(n-o,a+e),r.lineTo(n,a),r.closePath()}}),gR={line:vn,rect:jt,roundRect:jt,square:jt,circle:Lc,diamond:vR,pin:dR,arrow:pR,triangle:cR},_R={line:function(r,t,e,i,n){n.x1=r,n.y1=t+i/2,n.x2=r+e,n.y2=t+i/2},rect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i},roundRect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i,n.r=Math.min(e,i)/4},square:function(r,t,e,i,n){var a=Math.min(e,i);n.x=r,n.y=t,n.width=a,n.height=a},circle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.r=Math.min(e,i)/2},diamond:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i},pin:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},arrow:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},triangle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i}},Kh={};A(gR,function(r,t){Kh[t]=new r});var yR=wt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var i=fS(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+e.height*.4),i},buildPath:function(r,t,e){var i=t.symbolType;if(i!=="none"){var n=Kh[i];n||(i="rect",n=Kh[i]),_R[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function mR(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function go(r,t,e,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var u;return r.indexOf("image://")===0?u=tw(r.slice(8),new At(t,e,i,n),o?"center":"cover"):r.indexOf("path://")===0?u=x_(r.slice(7),{},new At(t,e,i,n),o?"center":"cover"):u=new yR({shape:{symbolType:r,x:t,y:e,width:i,height:n}}),u.__isEmptyBrush=s,u.setColor=mR,a&&u.setColor(a),u}function F_(r){return G(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Zc(r,t){if(r!=null)return G(r)||(r=[r,r]),[Ot(r[0],t[0])||0,Ot(it(r[1],r[0]),t[1])||0]}function Ka(r){return isFinite(r)}function xR(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=Ka(i)?i:0,n=Ka(n)?n:1,a=Ka(a)?a:0,o=Ka(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function bR(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,u=u*a),o=Ka(o)?o:.5,s=Ka(s)?s:.5,u=u>=0&&Ka(u)?u:.5;var l=r.createRadialGradient(o,s,0,o,s,u);return l}function qp(r,t,e){for(var i=t.type==="radial"?bR(r,t,e):xR(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function SR(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function wf(r){return parseInt(r,10)}function Tf(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||wf(s[i])||wf(r.style[i]))-(wf(s[a])||0)-(wf(s[o])||0)|0}function wR(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Vt(r)?[r]:G(r)?r:null}function sT(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&wR(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Y(e,function(a){return a/n}),i/=n)}return[e,i]}var TR=new ra(!0);function Qh(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Hm(r){return typeof r=="string"&&r!=="none"}function jh(r){var t=r.fill;return t!=null&&t!=="none"}function Wm(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}
35else r.fill()}function Ym(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Kp(r,t,e){var i=TS(t.image,t.__image,e);if(Ac(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*uA),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function MR(r,t,e,i){var n,a=Qh(e),o=jh(e),s=e.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||TR,h=t.__dirty;if(!i){var v=e.fill,c=e.stroke,d=o&&!!v.colorStops,p=a&&!!c.colorStops,g=o&&!!v.image,_=a&&!!c.image,y=void 0,m=void 0,x=void 0,S=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(y=h?qp(r,v,b):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(m=h?qp(r,c,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),g&&(x=h||!t.__canvasFillPattern?Kp(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=x),_&&(S=h||!t.__canvasStrokePattern?Kp(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),d?r.fillStyle=y:g&&(x?r.fillStyle=x:o=!1),p?r.strokeStyle=m:_&&(S?r.strokeStyle=S:a=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var M,T;r.setLineDash&&e.lineDash&&(n=sT(t),M=n[0],T=n[1]);var C=!0;(l||h&Zo)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),C=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),C&&f.rebuildPath(r,u?s:1),M&&(r.setLineDash(M),r.lineDashOffset=T),i||(e.strokeFirst?(a&&Ym(r,e),o&&Wm(r,e)):(o&&Wm(r,e),a&&Ym(r,e))),M&&r.setLineDash([])}function CR(r,t,e){var i=t.__image=TS(e.image,t.__image,t,t.onload);if(!(!i||!Ac(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),u=i.width/i.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var l=e.sx||0,f=e.sy||0;r.drawImage(i,l,f,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var l=e.sx,f=e.sy,h=o-l,v=s-f;r.drawImage(i,l,f,h,v,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function DR(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||ho,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=sT(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Qh(e)&&r.strokeText(n,e.x,e.y),jh(e)&&r.fillText(n,e.x,e.y)):(jh(e)&&r.fillText(n,e.x,e.y),Qh(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var Um=["shadowBlur","shadowOffsetX","shadowOffsetY"],Xm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function uT(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){cr(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?eo.opacity:o}(i||t.blend!==e.blend)&&(a||(cr(r,n),a=!0),r.globalCompositeOperation=t.blend||eo.blend);for(var s=0;s<Um.length;s++){var u=Um[s];(i||t[u]!==e[u])&&(a||(cr(r,n),a=!0),r[u]=r.dpr*(t[u]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(cr(r,n),a=!0),r.shadowColor=t.shadowColor||eo.shadowColor),a}function $m(r,t,e,i,n){var a=Sl(t,n.inHover),o=i?null:e&&Sl(e,n.inHover)||{};if(a===o)return!1;var s=uT(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(cr(r,n),s=!0),Hm(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(cr(r,n),s=!0),Hm(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(cr(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==l&&(s||(cr(r,n),s=!0),r.lineWidth=l)}for(var f=0;f<Xm.length;f++){var h=Xm[f],v=h[0];(i||a[v]!==o[v])&&(s||(cr(r,n),s=!0),r[v]=a[v]||h[1])}return s}function AR(r,t,e,i,n){return uT(r,Sl(t,n.inHover),e&&Sl(e,n.inHover),i,n)}function lT(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function PR(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),lT(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function IR(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var Zm=1,qm=2,Km=3,Qm=4;function LR(r){var t=jh(r),e=Qh(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function cr(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function Sl(r,t){return t&&r.__hoverStyle||r.style}function fT(r,t){Qa(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Qa(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~Ar,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,u=!1;
35if((!o||SR(a,o))&&(o&&o.length&&(cr(r,e),r.restore(),u=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(cr(r,e),r.save(),PR(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=e.prevEl;l||(u=s=!0);var f=t instanceof wt&&t.autoBatch&&LR(t.style);s||IR(n,l.transform)?(cr(r,e),lT(r,t)):f||cr(r,e);var h=Sl(t,e.inHover);t instanceof wt?(e.lastDrawType!==Zm&&(u=!0,e.lastDrawType=Zm),$m(r,t,l,u,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),MR(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof zh?(e.lastDrawType!==Km&&(u=!0,e.lastDrawType=Km),$m(r,t,l,u,e),DR(r,t,h)):t instanceof la?(e.lastDrawType!==qm&&(u=!0,e.lastDrawType=qm),AR(r,t,l,u,e),CR(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==Qm&&(u=!0,e.lastDrawType=Qm),kR(r,t,e)),f&&i&&cr(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function kR(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var u=i[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Qa(r,u,a,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}for(var l=0,f=n.length;l<f;l++){var u=n[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Qa(r,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var ed=new hR,jm=new zl(100),Jm=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Qp(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";r.dirty&&ed.delete(r);var a=ed.get(r);if(a)return a;var o=yt(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,ed.set(r,s),r.dirty=!1,s;function u(l){for(var f=[e],h=!0,v=0;v<Jm.length;++v){var c=o[Jm[v]];if(c!=null&&!G(c)&&!$(c)&&!Vt(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var d;if(h){d=f.join(",")+(n?"-svg":"");var p=jm.get(d);p&&(n?l.svgElement=p:l.image=p)}var g=cT(o.dashArrayX),_=RR(o.dashArrayY),y=hT(o.symbol),m=ER(g),x=vT(_),S=!n&&Os.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=T(),M;S&&(S.width=w.width*e,S.height=w.height*e,M=S.getContext("2d")),C(),h&&jm.put(d,S||b),l.image=S,l.svgElement=b,l.svgWidth=w.width,l.svgHeight=w.height;function T(){for(var D=1,P=0,L=m.length;P<L;++P)D=p0(D,m[P]);for(var k=1,P=0,L=y.length;P<L;++P)k=p0(k,y[P].length);D*=k;var R=x*m.length*y.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function C(){M&&(M.clearRect(0,0,S.width,S.height),o.backgroundColor&&(M.fillStyle=o.backgroundColor,M.fillRect(0,0,S.width,S.height)));for(var D=0,P=0;P<_.length;++P)D+=_[P];if(D<=0)return;for(var L=-x,k=0,R=0,E=0;L<w.height;){if(k%2===0){for(var B=R/2%y.length,z=0,H=0,I=0;z<w.width*2;){for(var U=0,P=0;P<g[E].length;++P)U+=g[E][P];if(U<=0)break;if(H%2===0){var tt=(1-o.symbolSize)*.5,gt=z+g[E][H]*tt,j=L+_[k]*tt,ct=g[E][H]*o.symbolSize,Ht=_[k]*o.symbolSize,Lt=I/2%y[B].length;Wt(gt,j,ct,Ht,y[B][Lt])}z+=g[E][H],++I,++H,H===g[E].length&&(H=0)}++E,E===g.length&&(E=0)}L+=_[k],++R,++k,k===_.length&&(k=0)}function Wt(Ct,Et,X,et,lt){var vt=n?1:e,Me=go(lt,Ct*vt,Et*vt,X*vt,et*vt,o.color,o.symbolKeepAspect);if(n){var Ie=i.painter.renderOneToVNode(Me);Ie&&b.children.push(Ie)}else fT(M,Me)}}}}function hT(r){if(!r||r.length===0)return[["rect"]];if($(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!$(r[e])){t=!1;break}if(t)return hT([r]);for(var i=[],e=0;e<r.length;++e)$(r[e])?i.push([r[e]]):i.push(r[e]);return i}function cT(r){if(!r||r.length===0)return[[0,0]];if(Vt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,i=0;i<r.length;++i)if(!Vt(r[i])){e=!1;break}if(e)return cT([r]);for(var n=[],i=0;i<r.length;++i)if(Vt(r[i])){var t=Math.ceil(r[i]);n.push([t,t])}else{var t=Y(r[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function RR(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Vt(r)){var t=Math.ceil(r);return[t,t]}var e=Y(r,function(i){return Math.ceil(i)});return r.length%2?e.concat(e):e}function ER(r){return Y(r,function(t){return vT(t)})}function vT(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function OR(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var u=i.ensureUniqueItemVisual(o,"style");u.decal=Qp(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Qp(n,t)}}})}var ci=new gi,dT={};function BR(r,t){dT[r]=t}function NR(r){return dT[r]}var FR=1,zR=800,GR=900,VR=1e3,HR=2e3,WR=5e3,pT=1e3,YR=1100,z_=2e3,gT=3e3,UR=4e3,qc=4500,XR=4600,$R=5e3,ZR=6e3,_T=7e3,qR={PROCESSOR:{FILTER:VR,SERIES_FILTER:zR,STATISTIC:WR},VISUAL:{LAYOUT:pT,PROGRESSIVE_LAYOUT:YR,GLOBAL:z_,CHART:gT,POST_CHART_LAYOUT:XR,COMPONENT:UR,BRUSH:$R,CHART_ITEM:qc,ARIA:ZR,DECAL:_T}},Oe="__flagInMainProcess",ur="__pendingUpdate",rd="__needsUpdateStatus",t1=/^[a-zA-Z0-9_]+$/,id="__connectUpdateStatus",e1=0,KR=1,QR=2;function yT(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return xT(this,r,t)}}function mT(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return xT(this,r,t)}}function xT(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),gi.prototype[t].apply(r,e)}var bT=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(gi),ST=bT.prototype;ST.on=mT("on");ST.off=mT("off");var Go,nd,Mf,Pn,ad,od,sd,ou,su,r1,i1,ud,n1,Cf,a1,wT,Nr,o1,TT=function(r){F(t,r);function t(e,i,n){var a=r.call(this,new nR)||this;a._chartsViews=[],a._chartsMap={}
35,a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},$(i)&&(i=MT[i]),a._dom=e;var o="canvas",s="auto",u=!1;n.ssr;var l=a._zr=v0(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:it(n.useDirtyRect,u),useCoarsePointer:it(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Jw(at(l.flush,l),17),i=ht(i),i&&kw(i,!0),a._theme=i,a._locale=hL(n.locale||fw),a._coordSysMgr=new Iw;var f=a._api=a1(a);function h(v,c){return v.__prio-c.__prio}return ah(tc,h),ah(jp,h),a._scheduler=new rT(a,f,jp,tc),a._messageCenter=new bT,a._initEvents(),a.resize=at(a.resize,a),l.animation.on("frame",a._onframe,a),r1(l,a),i1(l,a),dp(a),a}return t.prototype._onframe=function(){if(!this._disposed){o1(this);var e=this._scheduler;if(this[ur]){var i=this[ur].silent;this[Oe]=!0;try{Go(this),Pn.update.call(this,null,this[ur].updateParams)}catch(u){throw this[Oe]=!1,this[ur]=null,u}this._zr.flush(),this[Oe]=!1,this[ur]=null,ou.call(this,i),su.call(this,i)}else if(e.unfinished){var n=FR,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),od(this,a),e.performVisualTasks(a),Cf(this,this._model,o,"remain",{}),n-=+new Date-s}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,i,n){if(!this[Oe]){if(this._disposed){this.id;return}var a,o,s;if(Z(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Oe]=!0,!this._model||i){var u=new FL(this._api),l=this._theme,f=this._model=new k_;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(e,{replaceMerge:o},Jp);var h={seriesTransition:s,optionChanged:!0};if(n)this[ur]={silent:a,updateParams:h},this[Oe]=!1,this.getZr().wakeUp();else{try{Go(this),Pn.update.call(this,null,h)}catch(v){throw this[ur]=null,this[Oe]=!1,v}this._ssr||this._zr.flush(),this[ur]=null,this[Oe]=!1,ou.call(this,a),su.call(this,a)}}},t.prototype.setTheme=function(){},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||nt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(nt.svgSupported){var e=this._zr,i=e.storage.getDisplayList();return A(i,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;A(i,function(u){n.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(s1[n]){var u=s,l=s,f=-s,h=-s,v=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();A(Zu,function(m,x){if(m.group===n){var S=i?m.getZr().painter.getSvgDom().innerHTML:m.renderToCanvas(ht(e)),b=m.getDom().getBoundingClientRect();u=a(b.left,u),l=a(b.top,l),f=o(b.right,f),h=o(b.bottom,h),v.push({dom:S,left:b.left,top:b.top})}}),u*=c,l*=c,f*=c,h*=c;var d=f-u,p=h-l,g=Os.createCanvas(),_=v0(g,{renderer:i?"svg":"canvas"});if(_.resize({width:d,height:p}),i){var y="";return A(v,function(m){var x=m.left-u,S=m.top-l;y+='<g transform="translate('+x+","+S+')">'+m.dom+"</g>"}
35),_.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&_.painter.setBackgroundColor(e.connectedBackgroundColor),_.refreshImmediately(),_.painter.toDataURL()}else return e.connectedBackgroundColor&&_.add(new jt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),A(v,function(m){var x=new la({style:{x:m.left*c-u,y:m.top*c-l,image:m.dom}});_.add(x)}),_.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return ad(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return ad(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var n=this._model,a,o=Av(n,e);return A(o,function(s,u){u.indexOf("Models")>=0&&A(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,l))}},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=Av(n,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?sR(s,u,i):$c(s,i)},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=this;A(jR,function(i){var n=function(a){var o=e.getModel(),s=a.target,u,l=i==="globalout";if(l?u={}:s&&Du(s,function(d){var p=Dt(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return u=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return u=N({},p.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=a,u.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:v,view:c},e.trigger(i,u)}};n.zrEventfulCallAtLast=!0,e._zr.on(i,n,e)}),A($u,function(i,n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),A(["selectchanged"],function(i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),uR(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&bS(this.getDom(),V_,"");var i=this,n=i._api,a=i._model;A(i._componentsViews,function(o){o.dispose(a,n)}),A(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Zu[i.id]},t.prototype.resize=function(e){if(!this[Oe]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=e&&e.silent;this[ur]&&(a==null&&(a=this[ur].silent),n=!0,this[ur]=null),this[Oe]=!0;try{n&&Go(this),Pn.update.call(this,{type:"resize",animation:N({duration:0},e&&e.animation)})}catch(o){throw this[Oe]=!1,o}this[Oe]=!1,ou.call(this,a),su.call(this,a)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(Z(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!tg[e]){var n=tg[e](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=N({},e);return i.type=$u[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(Z(i)||(i={silent:!!i}),!!Jh[e.type]&&this._model){if(this[Oe]){this._pendingActions.push(e);return}var n=i.silent;sd.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&nt.browser.weChat&&this._throttledZrFlush(),ou.call(this,n),su.call(this,n)}},t.prototype.updateLabelLayout=function(){ci.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}
35var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Go=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),nd(h,!0),nd(h,!1),v.plan()},nd=function(h,v){for(var c=h._model,d=h._scheduler,p=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,_=h._zr,y=h._api,m=0;m<p.length;m++)p[m].__alive=!1;v?c.eachComponent(function(b,w){b!=="series"&&x(w)}):c.eachSeries(x);function x(b){var w=b.__requireNewView;b.__requireNewView=!1;var M="_ec_"+b.id+"_"+b.type,T=!w&&g[M];if(!T){var C=Ei(b.type),D=v?Er.getClass(C.main,C.sub):Zn.getClass(C.sub);T=new D,T.init(c,y),g[M]=T,p.push(T),_.add(T.group)}b.__viewId=T.__id=M,T.__alive=!0,T.__model=b,T.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!v&&d.prepareView(T,b,c,y)}for(var m=0;m<p.length;){var S=p[m];S.__alive?m++:(!v&&S.renderTask.dispose(),_.remove(S.group),S.dispose(c,y),p.splice(m,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Mf=function(h,v,c,d,p){var g=h._model;if(g.setUpdatePayload(c),!d){A([].concat(h._componentsViews).concat(h._chartsViews),S);return}var _={};_[d+"Id"]=c[d+"Id"],_[d+"Index"]=c[d+"Index"],_[d+"Name"]=c[d+"Name"];var y={mainType:d,query:_};p&&(y.subType=p);var m=c.excludeSeriesId,x;m!=null&&(x=K(),A(ue(m),function(b){var w=Fi(b,null);w!=null&&x.set(w,!0)})),g&&g.eachComponent(y,function(b){var w=x&&x.get(b.id)!=null;if(!w)if(V0(c))if(b instanceof na)c.type===ro&&!c.notBlur&&!b.get(["emphasis","disabled"])&&ZP(b,c,h._api);else{var M=d_(b.mainType,b.componentIndex,c.name,h._api),T=M.focusSelf,C=M.dispatchers;c.type===ro&&T&&!c.notBlur&&Bp(b.mainType,b.componentIndex,h._api),C&&A(C,function(D){c.type===ro?vl(D):dl(D)})}else Fp(c)&&b instanceof na&&(QP(b,c,h._api),z0(b),Nr(h))},h),g&&g.eachComponent(y,function(b){var w=x&&x.get(b.id)!=null;w||S(h[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},h);function S(b){b&&b.__alive&&b[v]&&b[v](b.__model,g,h._api,c)}},Pn={prepareAndUpdate:function(h){Go(this),Pn.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,v){var c=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,_=this._scheduler;if(c){c.setUpdatePayload(h),_.restoreData(c,h),_.performSeriesTasks(c),g.create(c,d),_.performDataProcessorTasks(c,h),od(this,c),g.update(c,d),e(c),_.performVisualTasks(c,h),ud(this,c,d,h,v);var y=c.get("backgroundColor")||"transparent",m=c.get("darkMode");p.setBackgroundColor(y),m!=null&&m!=="auto"&&p.setDarkMode(m),ci.trigger("afterupdate",c,d)}},updateTransform:function(h){var v=this,c=this._model,d=this._api;if(c){c.setUpdatePayload(h);var p=[];c.eachComponent(function(_,y){if(_!=="series"){var m=v.getViewOfComponentModel(y);if(m&&m.__alive)if(m.updateTransform){var x=m.updateTransform(y,c,d,h);x&&x.update&&p.push(m)}else p.push(m)}});var g=K();c.eachSeries(function(_){var y=v._chartsMap[_.__viewId];if(y.updateTransform){var m=y.updateTransform(_,c,d,h);m&&m.update&&g.set(_.uid,1)}else g.set(_.uid,1)}),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:g}),Cf(this,c,d,h,{},g),ci.trigger("afterupdate",c,d)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),Zn.markUpdateMethod(h,"updateView"),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),ud(this,v,this._api,h,{}),ci.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(d){d.getData().clearAllVisual()}),Zn.markUpdateMethod(h,"updateVisual"),e(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,c,v._api,h)}}),c.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,c,v._api,h)}),ci.trigger("afterupdate",c,this._api))},updateLayout:function(h){Pn.update.call(this,h)}},ad=function(h,v,c,d){if(h._disposed){h.id;return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),_,y=Av
35(p,c),m=0;m<g.length;m++){var x=g[m];if(x[v]&&(_=x[v](p,y,d))!=null)return _}},od=function(h,v){var c=h._chartsMap,d=h._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,c[p.__viewId])})},sd=function(h,v){var c=this,d=this.getModel(),p=h.type,g=h.escapeConnect,_=Jh[p],y=_.actionInfo,m=(y.update||"update").split(":"),x=m.pop(),S=m[0]!=null&&Ei(m[0]);this[Oe]=!0;var b=[h],w=!1;h.batch&&(w=!0,b=Y(h.batch,function(k){return k=yt(N({},k),h),k.batch=null,k}));var M=[],T,C=Fp(h),D=V0(h);if(D&&HS(this._api),A(b,function(k){if(T=_.action(k,c._model,c._api),T=T||N({},k),T.type=y.event||T.type,M.push(T),D){var R=s_(h),E=R.queryOptionMap,B=R.mainTypeSpecified,z=B?E.keys()[0]:"series";Mf(c,x,k,z),Nr(c)}else C?(Mf(c,x,k,"series"),Nr(c)):S&&Mf(c,x,k,S.main,S.sub)}),x!=="none"&&!D&&!C&&!S)try{this[ur]?(Go(this),Pn.update.call(this,h),this[ur]=null):Pn[x].call(this,h)}catch(k){throw this[Oe]=!1,k}if(w?T={type:y.event||p,escapeConnect:g,batch:M}:T=M[0],this[Oe]=!1,!v){var P=this._messageCenter;if(P.trigger(T.type,T),C){var L={type:"selectchanged",escapeConnect:g,selected:jP(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};P.trigger(L.type,L)}}}
35,ou=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();sd.call(this,c,h)}},su=function(h){!h&&this.trigger("updated")},r1=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[ur]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},i1=function(h,v){h.on("mouseover",function(c){var d=c.target,p=Du(d,Np);p&&(qP(p,c,v._api),Nr(v))}).on("mouseout",function(c){var d=c.target,p=Du(d,Np);p&&(KP(p,c,v._api),Nr(v))}).on("click",function(c){var d=c.target,p=Du(d,function(y){return Dt(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",_=Dt(p);v._api.dispatchAction({type:g,dataType:_.dataType,dataIndexInside:_.dataIndex,seriesIndex:_.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function i(h){var v=[],c=[],d=!1;if(h.eachComponent(function(y,m){var x=m.get("zlevel")||0,S=m.get("z")||0,b=m.getZLevelKey();d=d||!!b,(y==="series"?c:v).push({zlevel:x,z:S,idx:m.componentIndex,type:y,key:b})}),d){var p=v.concat(c),g,_;ah(p,function(y,m){return y.zlevel===m.zlevel?y.z-m.z:y.zlevel-m.zlevel}),A(p,function(y){var m=h.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;g!=null&&(x=Math.max(g,x)),S?(x===g&&S!==_&&x++,_=S):_&&(x===g&&x++,_=""),g=x,m.setZLevel(x)})}}ud=function(h,v,c,d,p){i(v),n1(h,v,c,d,p),A(h._chartsViews,function(g){g.__alive=!1}),Cf(h,v,c,d,p),A(h._chartsViews,function(g){g.__alive||g.remove(v,c)})},n1=function(h,v,c,d,p,g){A(g||h._componentsViews,function(_){var y=_.__model;l(y,_),_.render(y,v,c,d),s(y,_),f(y,_)})},Cf=function(h,v,c,d,p,g){var _=h._scheduler;p=N(p||{},{updatedSeries:v.getSeries()}),ci.trigger("series:beforeupdate",v,c,p);var y=!1;v.eachSeries(function(m){var x=h._chartsMap[m.__viewId];x.__alive=!0;var S=x.renderTask;_.updatePayload(S,d),l(m,x),g&&g.get(m.uid)&&S.dirty(),S.perform(_.getPerformArgs(S))&&(y=!0),x.group.silent=!!m.get("silent"),o(m,x),z0(m)}),_.unfinished=y||_.unfinished,ci.trigger("series:layoutlabels",v,c,p),ci.trigger("series:transition",v,c,p),v.eachSeries(function(m){var x=h._chartsMap[m.__viewId];s(m,x),f(m,x)}),a(h,v),ci.trigger("series:afterupdate",v,c,p)},Nr=function(h){h[rd]=!0,h.getZr().wakeUp()},o1=function(h){h[rd]&&(h.getZr().storage.traverse(function(v){vs(v)||n(v)}),h[rd]=!1)};function n(h){for(var v=[],c=h.currentStates,d=0;d<c.length;d++){var p=c[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}h.selected&&h.states.select&&v.push("select"),h.hoverState===h_&&h.states.emphasis?v.push("emphasis"):h.hoverState===f_&&h.states.blur&&v.push("blur"),h.useStates(v)}function a(h,v){var c=h._zr,d=c.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!nt.node&&!nt.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var _=h._chartsMap[g.__viewId];_.__alive&&_.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,d=h.get("zlevel")||0;v.eachRendered(function(p){return u(p,c,d,-1/0),!0})}}function u(h,v,c,d){var p=h.getTextContent(),g=h.getTextGuideLine(),_=h.isGroup;if(_)for(var y=h.childrenRef(),m=0;m<y.length;m++)d=Math.max(u(y[m],v,c,d),d);else h.z=v,h.zlevel=c,d=Math.max(h.z2,d);if(p&&(p.z=v,p.zlevel=c,isFinite(d)&&(p.z2=d+2)),g){var x=h.textGuideLineConfig;g.z=v,g.zlevel=c,isFinite(d)&&(g.z2=d+(x&&x.showAbove?1:-1))}return d}function l(h,v){v.eachRendered(function(c){if(!vs(c)){var d=c.getTextContent(),p=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,v){var c=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),p=c.get("duration"),g=p>0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(_){if(_.states&&_.states.emphasis){if(vs(_))return;if(_ instanceof wt&&iI(_),_.__dirty){var y=_.prevStates;y&&_.useStates(y)}if(d){_.stateTransition=g;var m=_.getTextContent(),x=_.getTextGuideLine();m&&(m.stateTransition=g),x&&(x.stateTransition=g)}_.__dirty&&n(_)}})}a1=function(h){return new(function(v){F(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},c.prototype.enterEmphasis=function(d,p){vl(d,p),Nr(h)},c.prototype.leaveEmphasis=function(d,p){dl(d,p),Nr(h)},c.prototype.enterBlur=function(d){FS(d),Nr(h)},c.prototype.leaveBlur=function(d){v_(d),Nr(h)},c.prototype.enterSelect=function(d){zS(d),Nr(h)},c.prototype.leaveSelect=function(d){GS(d),Nr(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(
35d)},c}(Pw))(h)},wT=function(h){function v(c,d){for(var p=0;p<c.length;p++){var g=c[p];g[id]=d}}A($u,function(c,d){h._messageCenter.on(d,function(p){if(s1[h.group]&&h[id]!==e1){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),_=[];A(Zu,function(y){y!==h&&y.group===h.group&&_.push(y)}),v(_,e1),A(_,function(y){y[id]!==KR&&y.dispatchAction(g)}),v(_,QR)}})})}}(),t}(gi),G_=TT.prototype;G_.on=yT("on");G_.off=yT("off");G_.one=function(r,t,e){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),i.off(r,n)}this.on.call(this,r,n,e)};var jR=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Jh={},$u={},jp=[],Jp=[],tc=[],MT={},tg={},Zu={},s1={},JR=+new Date-0,V_="_echarts_instance_";function tE(r,t,e){{var i=eE(r);if(i)return i}var n=new TT(r,t,e);return n.id="ec_"+JR++,Zu[n.id]=n,bS(r,V_,n.id),wT(n),ci.trigger("afterinit",n),n}function eE(r){return Zu[B2(r,V_)]}function CT(r,t){MT[r]=t}function DT(r){Mt(Jp,r)<0&&Jp.push(r)}function AT(r,t){W_(jp,r,t,HR)}function rE(r){H_("afterinit",r)}function iE(r){H_("afterupdate",r)}function H_(r,t){ci.on(r,t)}function So(r,t,e){J(t)&&(e=t,t="");var i=Z(r)?r.type:[r,r={event:t}][0];r.event=(r.event||i).toLowerCase(),t=r.event,!$u[t]&&(fn(t1.test(i)&&t1.test(t)),Jh[i]||(Jh[i]={action:e,actionInfo:r}),$u[t]=i)}function nE(r,t){Iw.register(r,t)}function aE(r,t){W_(tc,r,t,pT,"layout")}function wo(r,t){W_(tc,r,t,gT,"visual")}var u1=[];function W_(r,t,e,i,n){if((J(t)||Z(t))&&(e=t,t=i),!(Mt(u1,e)>=0)){u1.push(e);var a=rT.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function PT(r,t){tg[r]=t}function oE(r,t,e){var i=NR("registerMap");i&&i(r,t,e)}var sE=gk;wo(z_,Yk);wo(qc,Uk);wo(qc,Xk);wo(z_,aR);wo(qc,oR);wo(_T,OR);DT(kw);AT(GR,KL);PT("default",$k);So({type:ro,event:ro,update:ro},nr);So({type:hh,event:hh,update:hh},nr);So({type:Vu,event:Vu,update:Vu},nr);So({type:ch,event:ch,update:ch},nr);So({type:Hu,event:Hu,update:Hu},nr);CT("light",iR);CT("dark",oT);function uu(r){return r==null?0:r.length||1}function l1(r){return r}var eg=function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||l1,this._newKeyGetter=n||l1,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],u=i[s],l=uu(u);if(l>1){var f=u.shift();u.length===1&&(i[s]=u[0]),this._update&&this._update(f,o)}else l===1?(i[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=i[u],f=n[u],h=uu(l),v=uu(f);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,l),n[u]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,l),n[u]=null;else if(h===1&&v===1)this._update&&this._update(f,l),n[u]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,l),n[u]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(l[c]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],a=e[n],o=uu(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[n]=null}}
35,r.prototype._initIndexMap=function(t,e,i,n){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(a||(i[o]=s),!!e){var u=e[s],l=uu(u);l===0?(e[s]=o,a&&i.push(s)):l===1?e[s]=[u,o]:u.push(o)}}},r}(),uE=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function lE(r,t){var e={},i=e.encode={},n=K(),a=[],o=[],s={};A(r.dimensions,function(v){var c=r.getDimensionInfo(v),d=c.coordDim;if(d){var p=c.coordDimIndex;ld(i,d)[p]=v,c.isExtraCoord||(n.set(d,1),fE(c.type)&&(a[0]=v),ld(s,d)[p]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}Tw.each(function(g,_){var y=ld(i,_),m=c.otherDims[_];m!=null&&m!==!1&&(y[m]=c.name)})});var u=[],l={};n.each(function(v,c){var d=i[c];l[c]=d[0],u=u.concat(d)}),e.dataDimsOnCoord=u,e.dataDimIndicesOnCoord=Y(u,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.encodeFirstDimNotExtra=l;var f=i.label;f&&f.length&&(a=f.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,e.userOutput=new uE(s,t),e}function ld(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function f1(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function fE(r){return!(r==="ordinal"||r==="time")}var _h=function(){function r(t){this.otherDims={},t!=null&&N(this,t)}return r}(),hE=Bt(),cE={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},IT=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=kT(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return it(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Ow(this.source),i=!RT(t),n="",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)u=e?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(u=e?v.name:null,l=v.type)}a.push({property:u,type:l,ordinalMeta:f}),e&&u!=null&&(!h||!h.isCalculationCoord)&&(n+=i?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),n+="$",n+=cE[l]||"f",f&&(n+=f.uid),n+="$"}var c=this.source,d=[c.seriesLayoutBy,c.startIndex,n].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function vE(r){return r instanceof IT}function LT(r){for(var t=K(),e=0;e<(r||[]).length;e++){var i=r[e],n=Z(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function kT(r){var t=hE(r);return t.dimNameMap||(t.dimNameMap=LT(r.dimensionsDefine))}function RT(r){return r>30}var lu=Z,In=Y,dE=typeof Int32Array>"u"?Array:Int32Array,pE="e\0\0",h1=-1,gE=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],_E=["_approximateExtent"],c1,Df,fu,hu,fd,Af,hd,io=function(){function r(t,e){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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,n=!1;vE(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<i.length;f++){var h=i[f],v=$(h)?new _h({name:h}):h instanceof _h?h:new _h(h),c=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=c,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(c),a[c]=v,l[c]!=null&&(u=!0),v.createInvertedIndices&&(s[c]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),n&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=K();A(o,function(g){p.set(a[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(Vt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,i=e.encode[t];return(i||[]).slice()},r.prototype.getStore=function(){return this._store}
35,r.prototype.initData=function(t,e,i){var n=this,a;if(t instanceof Yp&&(a=t),!a){var o=this.dimensions,s=R_(t)||ar(t)?new Bw(t,o.length):t;a=new Yp;var u=In(o,function(l){return{type:n._dimInfos[l].type,property:l}});a.initData(s,u,i)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=lE(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<a;s++){var u=s-n;this._nameList[s]=e[u],o&&hd(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Xn&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,u=s===Yi;if(u&&!n.pure)for(var l=[],f=t;f<e;f++){var h=n.getItem(f,l);if(!this.hasItemOption&&T2(h)&&(this.hasItemOption=!0),h){var v=h.name;a[f]==null&&v!=null&&(a[f]=Fi(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=Fi(c,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)hd(this,f);c1(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){lu(t)?N(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=fu(this,this._nameDimIdx,e)),i==null&&(i=""),i},r.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},r.prototype.getId=function(t){return Df(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var i=this,n=this._store;return G(t)?n.getValues(In(t,function(a){return i._getStoreDimIndex(a)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i[e];return n==null||isNaN(n)?h1:n},r.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},r.prototype.each=function(t,e,i){J(t)&&(i=e,e=t,t=[]);var n=i||this,a=In(hu(t),this._getStoreDimIndex,this);this._store.each(a,n?at(e,n):e)},r.prototype.filterSelf=function(t,e,i){J(t)&&(i=e,e=t,t=[]);var n=i||this,a=In(hu(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?at(e,n):e),this},r.prototype.selectRange=function(t){var e=this,i={},n=Gt(t);
35return A(n,function(a){var o=e._getStoreDimIndex(a);i[o]=t[a]}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(t,e,i){J(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},r.prototype.map=function(t,e,i,n){var a=i||n||this,o=In(hu(t),this._getStoreDimIndex,this),s=Af(this);return s._store=this._store.map(o,a?at(e,a):e),s},r.prototype.modify=function(t,e,i,n){var a=i||n||this,o=In(hu(t),this._getStoreDimIndex,this);this._store.modify(o,a?at(e,a):e)},r.prototype.downSample=function(t,e,i,n){var a=Af(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),a},r.prototype.lttbDownSample=function(t,e){var i=Af(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new te(i,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new eg(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Df(t,i)},function(i){return Df(e,i)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},lu(t)?N(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[e];return a==null&&(a=this.getVisual(e),G(a)?a=a.slice():lu(a)&&(a=N({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,lu(e)?N(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){lu(t)?N(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?N(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;FP(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:In(this.dimensions,this._getDimInfo,this),this.hostModel)),fd(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];J(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat(Qg(arguments)))})},r.internalField=function(){c1=function(t){var e=t._invertedIndicesMap;A(e,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=e[n]=new dE(o.categories.length);for(var u=0;u<i.length;u++)i[u]=h1;for(var u=0;u<s.count();u++)i[s.get(a.storeDimIndex,u)]=u}})},fu=function(t,e,i){return Fi(t._getCategory(e,i),null)},Df=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=fu(t,t._idDimIdx,e)),i==null&&(i=pE+e),i},hu=function(t){return G(t)||(t=t!=null?[t]:[]),t},Af=function(t){var e=new r(t._schema?t._schema:In(t.dimensions,t._getDimInfo,t),t.hostModel);return fd(e,t),e},fd=function(t,e){A(gE.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,A(_E,function(i){t[i]=ht(e[i])}),t._calculationInfo=N({},e._calculationInfo)},hd=function(t,e){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[e],u=n[e];if(s==null&&a!=null&&(i[e]=s=fu(t,a,e)),u==null&&o!=null&&(n[e]=u=fu(t,o,e)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),n[e]=u}}}(),r}();function yE(r,t){R_(r)||(r=Rw(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=K(),a=[],o=xE(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&RT(o),u=i===r.dimensionsDefine,l=u?kT(r):LT(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=K(f),v=new Yw(o),c=0;c<v.length;c++)v[c]=-1;
35function d(T){var C=v[T];if(C<0){var D=i[T],P=Z(D)?D:{name:D},L=new _h,k=P.name;k!=null&&l.get(k)!=null&&(L.name=L.displayName=k),P.type!=null&&(L.type=P.type),P.displayName!=null&&(L.displayName=P.displayName);var R=a.length;return v[T]=R,L.storeDimIndex=T,a.push(L),L}return a[C]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(T,C){var D=ue(T).slice();if(D.length===1&&!$(D[0])&&D[0]<0){h.set(C,!1);return}var P=h.set(C,[]);A(D,function(L,k){var R=$(L)?l.get(L):L;R!=null&&R<o&&(P[k]=R,g(d(R),C,k))})});var p=0;A(e,function(T){var C,D,P,L;if($(T))C=T,L={};else{L=T,C=L.name;var k=L.ordinalMeta;L.ordinalMeta=null,L=N({},L),L.ordinalMeta=k,D=L.dimsDef,P=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=h.get(C);if(R!==!1){if(R=ue(R),!R.length)for(var E=0;E<(D&&D.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}A(R,function(B,z){var H=d(B);if(u&&L.type!=null&&(H.type=L.type),g(yt(H,L),C,z),H.name==null&&D){var I=D[z];!Z(I)&&(I={name:I}),H.name=H.displayName=I.name,H.defaultTooltip=I.defaultTooltip}P&&yt(H.otherDims,P)})}});function g(T,C,D){Tw.get(C)!=null?T.otherDims[C]=D:(T.coordDim=C,T.coordDimIndex=D,n.set(C,!0))}var _=t.generateCoord,y=t.generateCoordCount,m=y!=null;y=_?y||1:0;var x=_||"value";function S(T){T.name==null&&(T.name=T.coordDim)}if(s)A(a,function(T){S(T)}),a.sort(function(T,C){return T.storeDimIndex-C.storeDimIndex});else for(var b=0;b<o;b++){var w=d(b),M=w.coordDim;M==null&&(w.coordDim=bE(x,n,m),w.coordDimIndex=0,(!_||y<=0)&&(w.isExtraCoord=!0),y--),S(w),w.type==null&&(Aw(r,b)===br.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return mE(a),new IT({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function mE(r){for(var t=K(),e=0;e<r.length;e++){var i=r[e],n=i.name,a=t.get(n)||0;a>0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function xE(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return A(t,function(a){var o;Z(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function bE(r,t,e){if(e||t.hasKey(r)){for(var i=0;t.hasKey(r+i);)i++;r+=i}return t.set(r,!0),r}function ET(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function OT(r,t){return ET(r,t)?r.getCalculationInfo("stackResultDimension"):t}var Ui=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Dc(Ui);var SE=0,rg=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++SE}return r.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&Y(i,wE);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!$(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},r}();function wE(r){return Z(r)&&r.value!=null?r.value:r+""}function ig(r){return r.type==="interval"||r.type==="log"}function TE(r,t,e,i){var n={},a=r[1]-r[0],o=n.interval=gS(a/t);e!=null&&o<e&&(o=n.interval=e),i!=null&&o>i&&(o=n.interval=i);var s=n.intervalPrecision=BT(o),u=n.niceTickExtent=[oe(Math.ceil(r[0]/o)*o,s),oe(Math.floor(r[1]/o)*o,s)];return ME(u,r),n}function cd(r){var t=Math.pow(10,a_(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,oe(e*t)}function BT(r){return Ri(r)+2}function v1(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function ME(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),v1(r,0,t),v1(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Kc(r,t){return r>=t[0]&&r<=t[1]}function Qc(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function jc(r,t){return r*(t[1]-t[0])+t[0]}var Y_=function(r){F(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new rg({})),G(n)&&(n=new rg({categories:Y(n,function(a){return Z(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(e){return e==null?NaN:$(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Kc(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Qc(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(jc(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,n=i[0];n<=i[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,i.length);o<u;++o){var l=i[o];n[o]=l,a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n.push(f),a[f]=o}},t.prototype._getTickNumber=function(e){var i=this._ticksByOrdinalNumber;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getRawOrdinalNumber=function(e){var i=this._ordinalNumbersByTick;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var i=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},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}(Ui);Ui.registerClass(Y_);var Ba=oe,Vs=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Kc(e,this._extent)},t.prototype.normalize=function(e){return Qc(e,this._extent)},t.prototype.scale=function(e){return jc(e,this._extent)},t.prototype.setExtent=function(e,i){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(i)||(n[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=BT(e)},t.prototype.getTicks=function(e){var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var u=1e4;n[0]<a[0]&&(e?s.push({value:Ba(a[0]-i,o)}):s.push({value:n[0]}));for(var l=a[0];l<=a[1]&&(s.push({value:l}),l=Ba(l+i,o),l!==s[s.length-1].value);)if(s.length>u)return[];var f=s.length?s[s.length-1].value:a[1];return n[1]>f&&(e?s.push({value:Ba(f+i,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),n=[],a=this.getExtent(),o=1;o<i.length;o++){for(var s=i[o],u=i[o-1],l=0,f=[],h=s.value-u.value,v=h/e;l<e-1;){var c=Ba(u.value+(l+1)*v);c>a[0]&&c<a[1]&&f.push(c),l++}n.push(f)}return n},t.prototype.getLabel=function(e,i){if(e==null)return"";var n=i&&i.precision;n==null?n=Ri(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var a=Ba(e.value,n,!0);return xw(a)},t.prototype.calcNiceTicks=function(e,i,n){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=TE(a,e,i,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var n=Math.abs(i[0]);e.fixMax||(i[1]+=n/2),i[0]-=n/2}else i[1]=1;var a=i[1]-i[0];isFinite(a)||(i[0]=0,i[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(i[0]=Ba(Math.floor(i[0]/o)*o)),e.fixMax||(i[1]=Ba(Math.ceil(i[1]/o)*o))},t.prototype.setNiceExtent=function(e,i){this._niceExtent=[e,i]},t.type="interval",t}(Ui);Ui.registerClass(Vs);var NT=typeof Float32Array<"u",CE=NT?Float32Array:Array;function DE(r){return G(r)?NT?new Float32Array(r):r:new CE(r)}var AE="__ec_stack_";function FT(r){return r.get("stack")||AE+r.seriesIndex}function zT(r){return r.dim+r.index}function PE(r,t){var e=[];return t.eachSeriesByType(r,function(i){EE(i)&&e.push(i)}),e}function IE(r){var t={};A(r,function(u){var l=u.coordinateSystem,f=l.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=u.getData(),v=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),p=0,g=d.count();p<g;++p){var _=d.get(c,p);t[v]?t[v].push(_):t[v]=[_]}});var e={};for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];if(n){n.sort(function(u,l){return u-l});for(var a=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[i]=a}}return e}function LE(r){var t=IE(r),e=[];return A(r,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=l?f/v*l:f}else{var c=i.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=Ot(i.get("barWidth"),s),p=Ot(i.get("barMaxWidth"),s),g=Ot(i.get("barMinWidth")||(OE(i)?.5:1),s),_=i.get("barGap"),y=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:_,barCategoryGap:y,axisKey:zT(a),stackId:FT(i)})}),kE(e)}function kE(r){var t={};A(r,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;t[a]=s;var l=i.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=i.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(u[l].maxWidth=h);var v=i.barMinWidth;v&&(u[l].minWidth=v);var c=i.barGap;c!=null&&(s.gap=c);var d=i.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return A(t,function(i,n){e[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var u=Gt(a).length;s=Math.max(35-u*4,15)+"%"}var l=Ot(s,o),f=Ot(i.gap,1),h=i.remainedWidth,v=i.autoWidthCount,c=(h-l)/(v+(v-1)*f);
35c=Math.max(c,0),A(a,function(_){var y=_.maxWidth,m=_.minWidth;if(_.width){var x=_.width;y&&(x=Math.min(x,y)),m&&(x=Math.max(x,m)),_.width=x,h-=x+f*x,v--}else{var x=c;y&&y<x&&(x=Math.min(y,h)),m&&m>x&&(x=m),x!==c&&(_.width=x,h-=x+f*x,v--)}}),c=(h-l)/(v+(v-1)*f),c=Math.max(c,0);var d=0,p;A(a,function(_,y){_.width||(_.width=c),p=_,d+=_.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;A(a,function(_,y){e[n][y]=e[n][y]||{bandWidth:o,offset:g,width:_.width},g+=_.width*(1+f)})}),e}function RE(r,t,e){if(r&&t){var i=r[zT(t)];return i!=null&&e!=null?i[FT(e)]:i}}function EE(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function OE(r){return r.pipelineContext&&r.pipelineContext.large}var BE=function(r,t,e,i){for(;e<i;){var n=e+i>>>1;r[n][1]<t?e=n+1:i=n}return e},GT=function(r){F(t,r);function t(e){var i=r.call(this,e)||this;return i.type="time",i}return t.prototype.getLabel=function(e){var i=this.getSetting("useUTC");return Fc(e.value,im[pL(ps(this._minLevelUnit))]||im.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,i,n){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return gL(e,i,n,o,a)},t.prototype.getTicks=function(){var e=this._interval,i=this._extent,n=[];if(!e)return n;n.push({value:i[0],level:0});var a=this.getSetting("useUTC"),o=WE(this._minLevelUnit,this._approxInterval,a,i);return n=n.concat(o),n.push({value:i[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1]&&(i[0]-=$r,i[1]+=$r),i[1]===-1/0&&i[0]===1/0){var n=new Date;i[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),i[0]=i[1]-$r}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,i,n){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,i!=null&&this._approxInterval<i&&(this._approxInterval=i),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=Pf.length,u=Math.min(BE(Pf,this._approxInterval,0,s),s-1);this._interval=Pf[u][1],this._minLevelUnit=Pf[Math.max(u-1,0)][0]},t.prototype.parse=function(e){return Vt(e)?e:+cn(e)},t.prototype.contain=function(e){return Kc(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Qc(this.parse(e),this._extent)},t.prototype.scale=function(e){return jc(e,this._extent)},t.type="time",t}(Vs),Pf=[["second",D_],["minute",A_],["hour",Yu],["quarter-day",Yu*6],["half-day",Yu*12],["day",$r*1.2],["half-week",$r*3.5],["week",$r*7],["month",$r*31],["quarter",$r*95],["half-year",rm/2],["year",rm]];function NE(r,t,e,i){var n=cn(t),a=cn(e),o=function(d){return nm(n,d,i)===nm(a,d,i)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function FE(r,t){return r/=$r,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function zE(r){var t=30*$r;return r/=t,r>6?6:r>3?3:r>2?2:1}function GE(r){return r/=Yu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function d1(r,t){return r/=t?A_:D_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function VE(r){return gS(r)}function HE(r,t,e){var i=new Date(r);switch(ps(t)){case"year":case"month":i[dw(e)](0);case"day":i[pw(e)](1);case"hour":i[gw(e)](0);case"minute":i[_w(e)](0);case"second":i[yw(e)](0),i[mw(e)](0)}return i.getTime()}function WE(r,t,e,i){var n=1e4,a=cw,o=0;function s(C,D,P,L,k,R,E){for(var B=new Date(D),z=D,H=B[L]();z<P&&z<=i[1];)E.push({value:z}),H+=C,B[k](H),z=B.getTime();E.push({value:z,notAdd:!0})}function u(C,D,P){var L=[],k=!D.length;if(!NE(ps(C),i[0],i[1],e)){k&&(D=[{value:HE(new Date(i[0]),C,e)},{value:i[1]}]);for(var R=0;R<D.length-1;R++){var E=D[R].value,B=D[R+1].value;if(E!==B){var z=void 0,H=void 0,I=void 0,U=!1;switch(C){case"year":z=Math.max(1,Math.round(t/$r/365)),H=P_(e),I=_L(e);break;case"half-year":case"quarter":case"month":z=zE(t),H=gs(e),I=dw(e);break;case"week":case"half-week":case"day":z=FE(t),H=zc(e),I=pw(e),U=!0;break;case"half-day":case"quarter-day":case"hour":z=GE(t),H=_l(e),I=gw(e);break;case"minute":z=d1(t,!0),H=Gc(e),I=_w(e);break;case"second":z=d1(t,!1),H=Vc(e),I=yw(e);break;case"millisecond":z=VE(t),H=Hc(e),I=mw(e);break}s(z,E,B,H,I,U,L),C==="year"&&P.length>1&&R===0&&P.unshift({value:P[0].value-z})}}for(var R=0;R<L.length;R++)P.push(L[R]);return L}}for(var l=[],f=[],h=0,v=0,c=0;c<a.length&&o++<n;++c){var d=ps(a[c]);if(dL(a[c])){u(a[c],l[l.length-1]||[],f);var p=a[c+1]?ps(a[c+1]):null;if(d!==p){if(f.length){v=h,f.sort(function(C,D){return C.value-D.value});for(var g=[],_=0;_<f.length;++_){var y=f[_].value;(_===0||f[_-1].value!==y)&&(g.push(f[_]),y>=i[0]&&y<=i[1]&&h++)}var m=(i[1]-i[0])/t;if(h>m*1.5&&v>m/1.5||(l.push(g),h>m||r===a[c]))break}f=[]}}}for(var x=Kt(Y(l,function(C){return Kt(C,function(D){return D.value>=i[0]&&D.value<=i[1]&&!D.notAdd})}),function(C){return C.length>0}),S=[],b=x.length-1,c=0;c<x.length;++c)for(var w=x[c],M=0;M<w.length;++M)S.push({value:w[M].value,level:b-c});S.sort(function(C,D){return C.value-D.value});for(var T=[],c=0;c<S.length;++c)(c===0||S[c].value!==S[c-1].value)&&T.push(S[c]);return T}Ui.registerClass(GT);var p1=Ui.prototype,qu=Vs.prototype,YE=oe,UE=Math.floor,XE=Math.ceil,If=Math.pow,ui=Math.log,U_=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Vs,e._interval=0,e}return t.prototype.getTicks=function(e){var i=this._originalScale,n=this._extent,a=i.getExtent(),o=qu.getTicks.call(this,e);return Y(o,function(s){var u=s.value,l=oe(If(this.base,u));return l=u===n[0]&&this._fixMin?Lf(l,a[0]):l,l=u===n[1]&&this._fixMax?Lf(l,a[1]):l,{value:l}},this)},t.prototype.setExtent=function(e,i){var n=ui(this.base);e=ui(Math.max(0,e))/n,i=ui(Math.max(0,i))/n,qu.setExtent.call(this,e,i)},t.prototype.getExtent=function(){var e=this.base,i=p1.getExtent.call(this);i[0]=If(e,i[0]),i[1]=If(e,i[1]);var n=this._originalScale,a=n.getExtent();return this._fixMin&&(i[0]=Lf(i[0],a[0])),this._fixMax&&(i[1]=Lf(i[1],a[1])),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var i=this.base;e[0]=ui(e[0])/ui(i),e[1]=ui(e[1])/ui(i),p1.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.calcNiceTicks=function(e){e=e||10;var i=this._extent,n=i[1]-i[0];if(!(n===1/0||n<=0)){var a=b2(n),o=e/n*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[oe(XE(i[0]/a)*a),oe(UE(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){qu.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.f
35ixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=ui(e)/ui(this.base),Kc(e,this._extent)},t.prototype.normalize=function(e){return e=ui(e)/ui(this.base),Qc(e,this._extent)},t.prototype.scale=function(e){return e=jc(e,this._extent),If(this.base,e)},t.type="log",t}(Ui),VT=U_.prototype;VT.getMinorTicks=qu.getMinorTicks;VT.getLabel=qu.getLabel;function Lf(r,t){return YE(r,Ri(t))}Ui.registerClass(U_);var $E=function(){function r(t,e,i){this._prepareParams(t,e,i)}return r.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);a==null&&(a=e.get("startValue",!0));var o=this._modelMinRaw=a;J(o)?this._modelMinNum=kf(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=kf(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(J(s)?this._modelMaxNum=kf(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=kf(t,s)),n)this._axisDataLen=e.getCategories().length;else{var u=e.get("boundaryGap"),l=G(u)?u:[u||0,u||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[co(l[0],1),co(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,a=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,l=s!=null,f=u!=null;s==null&&(s=t?n?0:NaN:e-a[0]*o),u==null&&(u=t?n?n-1:NaN:i+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(u==null||!isFinite(u))&&(u=NaN);var h=kh(s)||kh(u)||t&&!n;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,l=!0),c!=null&&(u=c,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[qE[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=ZE[t];this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),ZE={min:"_determinedMin",max:"_determinedMax"},qE={min:"_dataMin",max:"_dataMax"};function HT(r,t,e){var i=r.rawExtentInfo;return i||(i=new $E(r,t,e),r.rawExtentInfo=i,i)}function kf(r,t){return t==null?null:kh(t)?NaN:r.parse(t)}function WT(r,t){var e=r.type,i=HT(r,t,r.getExtent()).calculate();r.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&e==="time"){var s=PE("bar",o),u=!1;if(A(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=LE(s),f=KE(n,a,t,l);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function KE(r,t,e,i){var n=e.axis.getExtent(),a=n[1]-n[0],o=RE(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(c){s=Math.min(c.offset,s)});var u=-1/0;A(o,function(c){u=Math.max(c.offset+c.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-r,h=1-(s+u)/a,v=f/h-f;return t+=v*(u/l),r-=v*(s/l),{min:r,max:t}}function g1(r,t){var e=t,i=WT(r,e),n=i.extent,a=e.get("splitNumber");r instanceof U_&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),u=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:u?e.get("minInterval"):null,maxInterval:u?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function QE(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Y_({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new GT({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ui.getClass(t)||Vs)}}function jE(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function Hs(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(n,a){return r.scale.getFormattedLabel(n,a,i)}}(t):$(t)?function(i){return function(n){var a=r.scale.getLabel(n),o=i.replace("{value}",a??"");return o}}(t):J(t)?function(i){return function(n,a){return e!=null&&(a=n.value-e),i(X_(r,n),a,n.level!=null?{level:n.level}:null)}}(t):function(i){return r.scale.getLabel(i)}}function X_(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function JE(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,n,a=e.getExtent();e instanceof Y_?n=e.count():(i=e.getTicks(),n=i.length);var o=r.getLabelModel(),s=Hs(r),u,l=1;n>40&&(l=Math.ceil(n/40));for(var f=0;f<n;f+=l){var h=i?i[f]:{value:a[0]+f}
35,v=s(h,f),c=o.getTextRect(v),d=tO(c,o.get("rotate")||0);u?u.union(d):u=d}return u}}function tO(r,t){var e=t*Math.PI/180,i=r.width,n=r.height,a=i*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=i*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new At(r.x,r.y,a,o);return s}function $_(r){var t=r.get("interval");return t??"auto"}function YT(r){return r.type==="category"&&$_(r.getLabelModel())===0}function UT(r,t){var e={};return A(r.mapDimensionsAll(t),function(i){e[OT(r,i)]=!0}),Gt(e)}function eO(r,t,e){t&&A(UT(t,e),function(i){var n=t.getApproximateExtent(i);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var rO=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),_1=[],iO={registerPreprocessor:DT,registerProcessor:AT,registerPostInit:rE,registerPostUpdate:iE,registerUpdateLifecycle:H_,registerAction:So,registerCoordinateSystem:nE,registerLayout:aE,registerVisual:wo,registerTransform:sE,registerLoading:PT,registerMap:oE,registerImpl:BR,PRIORITY:qR,ComponentModel:It,ComponentView:Er,SeriesModel:na,ChartView:Zn,registerComponentModel:function(r){It.registerClass(r)},registerComponentView:function(r){Er.registerClass(r)},registerSeriesModel:function(r){na.registerClass(r)},registerChartView:function(r){Zn.registerClass(r)},registerSubTypeDefaulter:function(r,t){It.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){g2(r,t)}};function Hi(r){if(G(r)){A(r,function(t){Hi(t)});return}Mt(_1,r)>=0||(_1.push(r),J(r)&&(r={install:r}),r.install(iO))}var wl=Bt();function XT(r,t){var e=Y(t,function(i){return r.scale.parse(i)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function nO(r){var t=r.getLabelModel().get("customValues");if(t){var e=Hs(r);return{labels:XT(r,t).map(function(i){var n={value:i};return{formattedLabel:e(n),rawLabel:r.scale.getLabel(n),tickValue:i}})}}return r.type==="category"?oO(r):uO(r)}function aO(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:XT(r,e)}:r.type==="category"?sO(r,t):{ticks:Y(r.scale.getTicks(),function(i){return i.value})}}function oO(r){var t=r.getLabelModel(),e=$T(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function $T(r,t){var e=ZT(r,"labels"),i=$_(t),n=qT(e,i);if(n)return n;var a,o;return J(i)?a=jT(r,i):(o=i==="auto"?lO(r):i,a=QT(r,o)),KT(e,i,{labels:a,labelCategoryInterval:o})}function sO(r,t){var e=ZT(r,"ticks"),i=$_(t),n=qT(e,i);if(n)return n;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),J(i))a=jT(r,i,!0);else if(i==="auto"){var s=$T(r,r.getLabelModel());o=s.labelCategoryInterval,a=Y(s.labels,function(u){return u.tickValue})}else o=i,a=QT(r,o,!0);return KT(e,i,{ticks:a,tickCategoryInterval:o})}function uO(r){var t=r.scale.getTicks(),e=Hs(r);return{labels:Y(t,function(i,n){return{level:i.level,formattedLabel:e(i,n),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function ZT(r,t){return wl(r)[t]||(wl(r)[t]=[])}function qT(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function KT(r,t,e){return r.push({key:t,value:e}),e}function lO(r){var t=wl(r).autoInterval;return t??(wl(r).autoInterval=r.calculateCategoryInterval())}function fO(r){var t=hO(r),e=Hs(r),i=(t.axisRotate-t.labelRotate)/180*Math.PI,n=r.scale,a=n.getExtent(),o=n.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var u=a[0],l=r.dataToCoord(u+1)-r.dataToCoord(u),f=Math.abs(l*Math.cos(i)),h=Math.abs(l*Math.sin(i)),v=0,c=0;u<=a[1];u+=s){var d=0,p=0,g=i_(e({value:u}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),c=Math.max(c,p,7)}var _=v/f,y=c/h;isNaN(_)&&(_=1/0),isNaN(y)&&(y=1/0);var m=Math.max(0,Math.floor(Math.min(_,y))),x=wl(r.model),S=r.getExtent(),b=x.lastAutoInterval,w=x.lastTickCount;return b!=null&&w!=null&&Math.abs(b-m)<=1&&Math.abs(w-o)<=1&&b>m&&x.axisExtent0===S[0]&&x.axisExtent1===S[1]?m=b:(x.lastTickCount=o,x.lastAutoInterval=m,x.axisExtent0=S[0],x.axisExtent1=S[1]),m}function hO(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function QT(r,t,e){var i=Hs(r),n=r.scale,a=n.getExtent(),o=r.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=n.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=YT(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&l!==a[0]&&p(a[0]);for(var d=l;d<=a[1];d+=u)p(d);c&&d-u!==a[1]&&p(a[1]);function p(g){var _={value:g};
35s.push(e?g:{formattedLabel:i(_),rawLabel:n.getLabel(_),tickValue:g})}return s}function jT(r,t,e){var i=r.scale,n=Hs(r),a=[];return A(i.getTicks(),function(o){var s=i.getLabel(o),u=o.value;t(o.value,s)&&a.push(e?u:{formattedLabel:n(o),rawLabel:s,tickValue:u})}),a}var y1=[0,1],cO=function(){function r(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return r.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return dS(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},r.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(i=i.slice(),m1(i,n.count())),Ne(t,y1,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),m1(i,n.count()));var a=Ne(t,i,y1,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=aO(this,e),n=i.ticks,a=Y(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return vO(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),n=Y(i,function(a){return Y(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return nO(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},r.prototype.calculateCategoryInterval=function(){return fO(this)},r}();function m1(r,t){var e=r[1]-r[0],i=t,n=e/i/2;r[0]+=n,r[1]-=n}function vO(r,t,e,i){var n=t.length;if(!r.onBand||e||!n)return;var a=r.getExtent(),o,s;if(n===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var u=t[n-1].tickValue-t[0].tickValue,l=(t[n-1].coord-t[0].coord)/u;A(t,function(c){c.coord-=l/2});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+l*s},t.push(o)}var h=a[0]>a[1];v(t[0].coord,a[0])&&(i?t[0].coord=a[0]:t.shift()),i&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],o.coord)&&(i?o.coord=a[1]:t.pop()),i&&v(o.coord,a[1])&&t.push({coord:a[1]});function v(c,d){return c=oe(c),d=oe(d),h?c>d:c<d}}var cu=Math.PI*2,Na=ra.CMD,dO=["top","right","bottom","left"];function pO(r,t,e,i,n){var a=e.width,o=e.height;switch(r){case"top":i.set(e.x+a/2,e.y-t),n.set(0,-1);break;case"bottom":i.set(e.x+a/2,e.y+o+t),n.set(0,1);break;case"left":i.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":i.set(e.x+a+t,e.y+o/2),n.set(1,0);break}}function gO(r,t,e,i,n,a,o,s,u){o-=r,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var f=o*e+r,h=s*e+t;if(Math.abs(i-n)%cu<1e-4)return u[0]=f,u[1]=h,l-e;if(a){var v=i;i=nn(n),n=nn(v)}else i=nn(i),n=nn(n);i>n&&(n+=cu);var c=Math.atan2(s,o);if(c<0&&(c+=cu),c>=i&&c<=n||c+cu>=i&&c+cu<=n)return u[0]=f,u[1]=h,l-e;var d=e*Math.cos(i)+r,p=e*Math.sin(i)+t,g=e*Math.cos(n)+r,_=e*Math.sin(n)+t,y=(d-o)*(d-o)+(p-s)*(p-s),m=(g-o)*(g-o)+(_-s)*(_-s);return y<m?(u[0]=d,u[1]=p,Math.sqrt(y)):(u[0]=g,u[1]=_,Math.sqrt(m))}function ng(r,t,e,i,n,a,o,s){var u=n-r,l=a-t,f=e-r,h=i-t,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=u*f+l*h,d=c/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*f,g=o[1]=t+d*h;return Math.sqrt((p-n)*(p-n)+(g-a)*(g-a))}function JT(r,t,e,i,n,a,o){e<0&&(r=r+e,e=-e),i<0&&(t=t+i,i=-i);var s=r+e,u=t+i,l=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(a,t),u);return Math.sqrt((l-n)*(l-n)+(f-a)*(f-a))}var vi=[];function _O(r,t,e){var i=JT(t.x,t.y,t.width,t.height,r.x,r.y,vi);return e.set(vi[0],vi[1]),i}function yO(r,t,e){for(var i=0,n=0,a=0,o=0,s,u,l=1/0,f=t.data,h=r.x,v=r.y,c=0;c<f.length;){var d=f[c++];c===1&&(i=f[c],n=f[c+1],a=i,o=n);var p=l;switch(d){case Na.M:a=f[c++],o=f[c++],i=a,n=o;break;case Na.L:p=ng(i,n,f[c],f[c+1],h,v,vi,!0),i=f[c++],n=f[c++];break;case Na.C:p=eS(i,n,f[c++],f[c++],f[c++],f[c++],f[c],f[c+1],h,v,vi),i=f[c++],n=f[c++];break;case Na.Q:p=iS(i,n,f[c++],f[c++],f[c],f[c+1],h,v,vi),i=f[c++],n=f[c++];break;case Na.A:var g=f[c++],_=f[c++],y=f[c++],m=f[c++],x=f[c++],S=f[c++];c+=1;var b=!!(1-f[c++]);s=Math.cos(x)*y+g,u=Math.sin(x)*m+_,c<=1&&(a=s,o=u);var w=(h-g)*m/y+g;p=gO(g,_,m,x,x+S,b,w,v,vi),i=Math.cos(x+S)*y+g,n=Math.sin(x+S)*m+_;break;case Na.R:a=i=f[c++],o=n=f[c++];var M=f[c++],T=f[c++];p=JT(a,o,M,T,h,v,vi);break;case Na.Z:p=ng(i,n,a,o,h,v,vi,!0),i=a,n=o;break}p<l&&(l=p,e.set(vi[0],vi[1]))}return l}var ja=new rt,Se=new rt,wr=new rt,is=new rt,vu=new rt;function x1(r,t){if(r){var e=r.getTextGuideLine(),i=r.getTextContent();if(i&&e){var n=r.textGuideLineConfig||{}
35,a=[[0,0],[0,0],[0,0]],o=n.candidates||dO,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var u=1/0,l=n.anchor,f=r.getComputedTransform(),h=f&&wc([],f),v=t.get("length2")||0;l&&wr.copy(l);for(var c=0;c<o.length;c++){var d=o[c];pO(d,0,s,ja,is),rt.scaleAndAdd(Se,ja,is,v),Se.transform(h);var p=r.getBoundingRect(),g=l?l.distance(Se):r instanceof wt?yO(Se,r.path,wr):_O(Se,p,wr);g<u&&(u=g,Se.transform(f),wr.transform(f),wr.toArray(a[0]),Se.toArray(a[1]),ja.toArray(a[2]))}mO(a,t.get("minTurnAngle")),e.setShape({points:a})}}}var b1=[],Fa=new rt;function mO(r,t){if(t<=180&&t>0){t=t/180*Math.PI,ja.fromArray(r[0]),Se.fromArray(r[1]),wr.fromArray(r[2]),rt.sub(is,ja,Se),rt.sub(vu,wr,Se);var e=is.len(),i=vu.len();if(!(e<.001||i<.001)){is.scale(1/e),vu.scale(1/i);var n=is.dot(vu),a=Math.cos(t);if(a<n){var o=ng(Se.x,Se.y,wr.x,wr.y,ja.x,ja.y,b1,!1);Fa.fromArray(b1),Fa.scaleAndAdd(vu,o/Math.tan(Math.PI-t));var s=wr.x!==Se.x?(Fa.x-Se.x)/(wr.x-Se.x):(Fa.y-Se.y)/(wr.y-Se.y);if(isNaN(s))return;s<0?rt.copy(Fa,Se):s>1&&rt.copy(Fa,wr),Fa.toArray(r[1])}}}}function vd(r,t,e,i){var n=e==="normal",a=n?r:r.ensureState(e);a.ignore=t;var o=i.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();n?r.useStyle(s):a.style=s}function xO(r,t){var e=t.smooth,i=t.points;if(i)if(r.moveTo(i[0][0],i[0][1]),e>0&&i.length>=3){var n=gp(i[0],i[1]),a=gp(i[1],i[2]);if(!n||!a){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*e,s=nh([],i[1],i[0],o/n),u=nh([],i[1],i[2],o/a),l=nh([],s,u,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),r.bezierCurveTo(u[0],u[1],u[0],u[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)r.lineTo(i[f][0],i[f][1])}function bO(r,t,e){var i=r.getTextGuideLine(),n=r.getTextContent();if(!n){i&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=n.ignore,u=0;u<Gh.length;u++){var l=Gh[u],f=t[l],h=l==="normal";if(f){var v=f.get("show"),c=h?s:it(n.states[l]&&n.states[l].ignore,s);if(c||!it(v,o)){var d=h?i:i&&i.states[l];d&&(d.ignore=!0),i&&vd(i,!0,l,f);continue}i||(i=new Wl,r.setTextGuideLine(i),!h&&(s||!o)&&vd(i,!0,"normal",t.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),vd(i,!1,l,f)}}if(i){yt(i.style,e),i.style.fill=null;var p=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,i.buildPath=xO}}function SO(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},i=0;i<jr.length;i++){var n=jr[i];e[n]=r.getModel([n,t])}return e}function tM(r){for(var t=[],e=0;e<r.length;e++){var i=r[e];if(!i.defaultAttr.ignore){var n=i.label,a=n.getComputedTransform(),o=n.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,u=n.style.margin||0,l=o.clone();l.applyTransform(a),l.x-=u/2,l.y-=u/2,l.width+=u,l.height+=u;var f=s?new Hh(o,a):null;t.push({label:n,labelLine:i.labelLine,rect:l,localRect:o,obb:f,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:a})}}return t}function eM(r,t,e,i,n,a){var o=r.length;if(o<2)return;r.sort(function(M,T){return M.rect[t]-T.rect[t]});for(var s=0,u,l=!1,f=0,h=0;h<o;h++){var v=r[h],c=v.rect;u=c[t]-s,u<0&&(c[t]-=u,v.label[t]-=u,l=!0);var d=Math.max(-u,0);f+=d,s=c[t]+c[e]}f>0&&a&&S(-f/o,0,o);var p=r[0],g=r[o-1],_,y;m(),_<0&&b(-_,.8),y<0&&b(y,.8),m(),x(_,y,1),x(y,_,-1),m(),_<0&&w(-_),y<0&&w(y);function m(){_=p.rect[t]-i,y=n-g.rect[t]-g.rect[e]}function x(M,T,C){if(M<0){var D=Math.min(T,-M);if(D>0){S(D*C,0,o);var P=D+M;P<0&&b(-P*C,1)}else b(-M*C,1)}}function S(M,T,C){M!==0&&(l=!0);for(var D=T;D<C;D++){var P=r[D],L=P.rect;L[t]+=M,P.label[t]+=M}}function b(M,T){for(var C=[],D=0,P=1;P<o;P++){var L=r[P-1].rect,k=Math.max(r[P].rect[t]-L[t]-L[e],0);C.push(k),D+=k}if(D){var R=Math.min(Math.abs(M)/D,T);if(M>0)for(var P=0;P<o-1;P++){var E=C[P]*R;S(E,0,P+1)}else for(var P=o-1;P>0;P--){var E=C[P-1]*R;S(-E,P,o)}}}function w(M){var T=M<0?-1:1;M=Math.abs(M);for(var C=Math.ceil(M/(o-1)),D=0;D<o-1;D++)if(T>0?S(C,0,D+1):S(-C,o-D-1,o),M-=C,M<=0)return}return l}function wO(r,t,e,i){return eM(r,"x","width",t,e,i)}function TO(r,t,e,i){return eM(r,"y","height",t,e,i)}function rM(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new At(0,0,0,0);function i(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n<r.length;n++){var a=r[n],o=a.axisAligned,s=a.localRect,u=a.transform,l=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=a.obb,v=!1,c=0;c<t.length;c++){var d=t[c];if(e.intersect(d.rect)){if(o&&d.axisAligned){v=!0;break}if(d.obb||(d.obb=new Hh(d.localRect,d.transform)),h||(h=new Hh(s,u)),h.intersect(d.obb)){v=!0;break}}}v?(i(l),f&&i(f)):(l.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function MO(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function CO(r,t){var e=r.label,i=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:MO(i&&i.shape.points)}}var S1=["align","verticalAlign","width","height","fontSize"],Xe=new Gl,dd=Bt(),DO=Bt();function Rf(r,t,e){for(var i=0;i<e.length;i++){var n=e[i];t[n]!=null&&(r[n]=t[n])}}var Ef=["x","y","rotation"],AO=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]}
35,r.prototype._addLabel=function(t,e,i,n,a){var o=n.style,s=n.__hostTarget,u=s.textConfig||{},l=n.getComputedTransform(),f=n.getBoundingRect().plain();At.applyTransform(f,f,l),l?Xe.setLocalTransform(l):(Xe.x=Xe.y=Xe.rotation=Xe.originX=Xe.originY=0,Xe.scaleX=Xe.scaleY=1),Xe.rotation=nn(Xe.rotation);var h=n.__hostTarget,v;if(h){v=h.getBoundingRect().plain();var c=h.getComputedTransform();At.applyTransform(v,v,c)}var d=v&&h.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:i,dataIndex:t,dataType:e,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:Xe.x,y:Xe.y,scaleX:Xe.scaleX,scaleY:Xe.scaleY,rotation:Xe.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:u.position,attachedRot:u.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var i=t.__model,n=i.get("labelLayout");(J(n)||Gt(n).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=Dt(a);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,i,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),i=t.getHeight();function n(m,x){return function(){x1(m,x)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,u=s.__hostTarget,l=o.defaultAttr,f=void 0;J(o.layoutOption)?f=o.layoutOption(CO(o,u)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var h=Math.PI/180;u&&u.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:l.attachedPos,rotation:f.rotate!=null?f.rotate*h:l.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(f.x!=null?(s.x=Ot(f.x,e),s.setStyle("x",0),v=!0):(s.x=l.x,s.setStyle("x",l.style.x)),f.y!=null?(s.y=Ot(f.y,i),s.setStyle("y",0),v=!0):(s.y=l.y,s.setStyle("y",l.style.y)),f.labelLinePoints){var c=u.getTextGuideLine();c&&(c.setShape({points:f.labelLinePoints}),v=!1)}var d=dd(s);d.needsUpdateLabelLine=v,s.rotation=f.rotate!=null?f.rotate*h:l.rotation,s.scaleX=l.scaleX,s.scaleY=l.scaleY;for(var p=0;p<S1.length;p++){var g=S1[p];s.setStyle(g,f[g]!=null?f[g]:l.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",u){var _=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);_=y.getItemModel(o.dataIndex)}s.on("drag",n(u,_.getModel("labelLine")))}}else s.off("drag"),s.cursor=l.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),i=t.getHeight(),n=tM(this._labelList),a=Kt(n,function(u){return u.layoutOption.moveOverlap==="shiftX"}),o=Kt(n,function(u){return u.layoutOption.moveOverlap==="shiftY"});wO(a,0,e),TO(o,0,i);var s=Kt(n,function(u){return u.layoutOption.hideOverlap});rM(s)},r.prototype.processLabelsOverall=function(){var t=this;A(this._chartViewList,function(e){var i=e.__model,n=e.ignoreLabelLineUpdate,a=i.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,u=o.getTextContent();!s&&u&&(s=dd(u).needsUpdateLabelLine),s&&t._updateLabelLine(o,i),a&&t._animateLabels(o,i)})})},r.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),n=Dt(t),a=n.dataIndex;if(i&&a!=null){var o=e.getData(n.dataType),s=o.getItemModel(a),u={},l=o.getItemVisual(a,"style");if(l){var f=o.getVisual("drawType");u.stroke=l[f]}var h=s.getModel("labelLine");bO(t,SO(s),u),x1(t,h)}},r.prototype._animateLabels=function(t,e){var i=t.getTextContent(),n=t.getTextGuideLine();if(i&&(t.forceLabelAnimation||!i.ignore&&!i.invisible&&!t.disableLabelAnimation&&!vs(t))){var a=dd(i),o=a.oldLayout,s=Dt(t),u=s.dataIndex,l={x:i.x,y:i.y,rotation:i.rotation},f=e.getData(s.dataType);if(o){i.attr(o);var v=t.prevStates;v&&(Mt(v,"select")>=0&&i.attr(a.oldLayoutSelect),Mt(v,"emphasis")>=0&&i.attr(a.oldLayoutEmphasis)),Jr(i,l,e,u)}else if(i.attr(l),!w_(i).valueAnimation){var h=it(i.style.opacity,1);i.style.opacity=0,ia(i,{style:{opacity:h}},e,u)}if(a.oldLayout=l,i.states.select){var c=a.oldLayoutSelect={};Rf(c,l,Ef),Rf(c,i.states.select,Ef)}if(i.states.emphasis){var d=a.oldLayoutEmphasis={};Rf(d,l,Ef),Rf(d,i.states.emphasis,Ef)}JI(i,u,f,e,e)}if(n&&!n.ignore&&!n.invisible){var a=DO(n),o=a.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Jr(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,ia(n,{style:{strokePercent:1}},e)),a.oldLayout=p}},r}
35(),pd=Bt();function PO(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){var n=pd(e).labelManager;n||(n=pd(e).labelManager=new AO),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var n=pd(e).labelManager;i.updatedSeries.forEach(function(a){n.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}function IO(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=As(r,t,e[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<e.length;o++)a.push(As(r,t,e[o]));return a.join(" ")}}var LO=function(r){F(t,r);function t(e,i,n,a){var o=r.call(this)||this;return o.updateData(e,i,n,a),o}return t.prototype._createSymbol=function(e,i,n,a,o){this.removeAll();var s=go(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=kO,this._symbolType=e,this.add(s)},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(){vl(this.childAt(0))},t.prototype.downplay=function(){dl(this.childAt(0))},t.prototype.setZ=function(e,i){var n=this.childAt(0);n.zlevel=e,n.z=i},t.prototype.setDraggable=function(e,i){var n=this.childAt(0);n.draggable=e,n.cursor=!i&&e?"move":n.cursor},t.prototype.updateData=function(e,i,n,a){this.silent=!1;var o=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,u=t.getSymbolSize(e,i),l=o!==this._symbolType,f=a&&a.disableAnimation;if(l){var h=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,u,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:u[0]/2,scaleY:u[1]/2};f?v.attr(c):Jr(v,c,s,i),JS(v)}if(this._updateCommon(e,i,u,n,a),l){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,ia(v,c,s,i)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),u=e.hostModel,l,f,h,v,c,d,p,g,_;if(a&&(l=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,v=a.focus,c=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,_=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var y=a&&a.itemModel?a.itemModel:e.getItemModel(i),m=y.getModel("emphasis");l=m.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),v=m.get("focus"),c=m.get("blurScope"),d=m.get("disabled"),p=Ul(y),g=m.getShallow("scale"),_=y.getShallow("cursor")}var x=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=Zc(e.getItemVisual(i,"symbolOffset"),n);S&&(s.x=S[0],s.y=S[1]),_&&s.attr("cursor",_);var b=e.getItemVisual(i,"style"),w=b.fill;if(s instanceof la){var M=s.style;s.useStyle(N({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else s.__isEmptyBrush?s.useStyle(N({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=e.getItemVisual(i,"liftZ"),C=this._z2;T!=null?C==null&&(this._z2=s.z2,s.z2+=T):C!=null&&(s.z2=C,this._z2=null);var D=o&&o.useNameLabel;Bc(s,p,{labelFetcher:u,labelDataIndex:i,defaultText:P,inheritColor:w,defaultOpacity:b.opacity});function P(R){return D?e.getName(R):IO(e,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=l,s.ensureState("select").style=h,s.ensureState("blur").style=f;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*k,L.scaleY=this._sizeY*k,this.setSymbolScale(1),p_(this,v,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,n){var a=this.childAt(0),o=Dt(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var u=a.getTextContent();u&&Wh(u,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Wh(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return F_(e.getItemVisual(i,"symbolSize"))},t}(_e);function kO(r,t){this.parent.drift(r,t)}function gd(r,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function w1(r){return r!=null&&!Z(r)&&(r={isIgnore:r}),r||{}}function T1(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Ul(t),cursorStyle:t.get("cursor")}}var RO=function(){function r(t){this.group=new _e,this._SymbolCtor=t||LO}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=w1(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,u=T1(t),l={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||i.removeAll(),t.diff(a).add(function(h){var v=f(h);if(gd(t,v,h,e)){var c=new o(t,h,u,l);c.setPosition(v),t.setItemGraphicEl(h,c),i.add(c)}}).update(function(h,v){var c=a.getItemGraphicEl(v),d=f(h);if(!gd(t,d,h,e)){i.remove(c);return}var p=t.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)i.remove(c),c=new o(t,h,u,l),c.setPosition(d);else{c.updateData(t,h,u,l);var _={x:d[0],y:d[1]};s?c.attr(_):Jr(c,_,n)}i.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var v=a.getItemGraphicEl(h);v&&v.fadeOut(function(){i.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,n){var a=t._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=T1(t),this._data=null,this.group.removeAll()}
35,r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=w1(i);function n(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(gd(e,o,a,i)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Yl(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},i.hostModel)}):e.removeAll()},r}();function EO(r,t,e,i,n){var a=r.getArea(),o=a.x,s=a.y,u=a.width,l=a.height,f=e.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,u+=f,l+=f,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var h=new jt({shape:{x:o,y:s,width:u,height:l}});return h}function OO(r,t,e){var i=r.getArea(),n=oe(i.r0,1),a=oe(i.r,1),o=new Ms({shape:{cx:oe(r.cx,1),cy:oe(r.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return o}function BO(r,t,e,i,n){if(r){if(r.type==="polar")return OO(r);if(r.type==="cartesian2d")return EO(r,t,e)}else return null;return null}function Z_(r,t){return r.type===t}function NO(r,t,e){t=G(t)&&{coordDimensions:t}||N({encodeDefine:r.getEncode()},t);var i=r.getSource(),n=yE(i,t).dimensions,a=new io(n,r);return a.initData(i,e),a}var FO=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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}(It),ag=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Vi).models[0]},t.type="cartesian2dAxis",t}(It);ei(ag,rO);var iM={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,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},zO=bt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},iM),q_=bt({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}}},iM),GO=bt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},q_),VO=yt({logBase:10},q_);const HO={category:zO,value:q_,time:GO,log:VO};var WO={value:1,category:1,time:1,log:1};function M1(r,t,e,i){A(WO,function(n,a){var o=bt(bt({},HO[a],!0),i,!0),s=function(u){F(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var v=ml(this),c=v?Xl(f):{},d=h.getTheme();bt(f,d.get(a+"Axis")),bt(f,this.getDefaultOption()),f.type=C1(f),v&&Ds(f,c,v)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=rg.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+a,l.defaultOption=o,l}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",C1)}function C1(r){return r.type||(r.data?"category":"value")}var YO=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return Y(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Kt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),og=["x","y"];function D1(r){return r.type==="interval"||r.type==="time"}var UO=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=og,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!D1(e)||!D1(i))){var n=e.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),u=n[1]-n[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,v=o[0]-n[0]*f,c=o[1]-a[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=wc([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.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,i){var n=this.dataToPoint(e),a=this.dataToPoint(i),o=this.getArea(),s=new At(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,i,n){n=n||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Kr(n,e,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=u.toGlobalCoord(u.dataToCoord(o,i)),n},t.prototype.clampData=function(e,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),u=n.parse(e[0]),l=a.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var n=[];if(this._invTransform)return Kr(n,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(e[0]),i),n[1]=o.coordToData(o.toLocalCoord(e[1]),i),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(i[0],i[1])-a+e,u=Math.max(n[0],n[1])-o+e;return new At(a,o,s,u)},t}(YO),XO=function(r){F(t,r);function t(e,i,n,a,o){var s=r.call(this,e,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)}
35,t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(cO);function sg(r,t,e){e=e||{};var i=r.coordinateSystem,n=t.axis,a={},o=n.getAxesOnZeroOf()[0],s=n.position,u=o?"onZero":s,l=n.dim,f=i.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,d=l==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[l==="y"?d[v[u]]:h[0],l==="x"?d[v[u]]:h[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Li(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var _=t.get(["axisLabel","rotate"]);return a.labelRotate=u==="top"?-_:_,a.z2=1,a}function A1(r){return r.get("coordinateSystem")==="cartesian2d"}function P1(r){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,Vi).models[0];t[i]=a}),t}var _d=Math.log;function $O(r,t,e){var i=Vs.prototype,n=i.getTicks.call(e),a=i.getTicks.call(e,!0),o=n.length-1,s=i.getInterval.call(e),u=WT(r,t),l=u.extent,f=u.fixMin,h=u.fixMax;if(r.type==="log"){var v=_d(r.base);l=[_d(l[0])/v,_d(l[1])/v]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=i.getExtent.call(r);f&&(l[0]=c[0]),h&&(l[1]=c[1]);var d=i.getInterval.call(r),p=l[0],g=l[1];if(f&&h)d=(g-p)/o;else if(f)for(g=l[0]+d*o;g<l[1]&&isFinite(g)&&isFinite(l[1]);)d=cd(d),g=l[0]+d*o;else if(h)for(p=l[1]-d*o;p>l[0]&&isFinite(p)&&isFinite(l[0]);)d=cd(d),p=l[1]-d*o;else{var _=r.getTicks().length-1;_>o&&(d=cd(d));var y=d*o;g=Math.ceil(l[1]/d)*d,p=oe(g-y),p<0&&l[0]>=0?(p=0,g=oe(y)):g>0&&l[1]<=0&&(g=0,p=-oe(y))}var m=(n[0].value-a[0].value)/s,x=(n[o].value-a[o].value)/s;i.setExtent.call(r,p+d*m,g+d*x),i.setInterval.call(r,d),(m||x)&&i.setNiceExtent.call(r,p+d,g-d)}var ZO=function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=og,this._initCartesian(t,e,i),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model);function n(o){var s,u=Gt(o),l=u.length;if(l){for(var f=[],h=l-1;h>=0;h--){var v=+u[h],c=o[v],d=c.model,p=c.scale;ig(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(g1(p,d),ig(p)&&(s=c))}f.length&&(s||(s=f.pop(),g1(s.scale,s.model)),A(f,function(g){$O(g.scale,g.model,s.scale)}))}}n(i.x),n(i.y);var a={};A(i.x,function(o){I1(i,"y",o,a)}),A(i.y,function(o){I1(i,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,i){var n=t.getBoxLayoutParams(),a=!i&&t.get("containLabel"),o=Cs(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;u(),a&&(A(s,function(l){if(!l.model.get(["axisLabel","inside"])){var f=JE(l);if(f){var h=l.isHorizontal()?"height":"width",v=l.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,l.position==="top"?o.y+=f.height+v:l.position==="left"&&(o.x+=f.width+v)}}}),u()),A(this._coordsList,function(l){l.calcAffineTransform()});function u(){A(s,function(l){var f=l.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=l.inverse?1:0;l.setExtent(h[v],h[1-v]),qO(l,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}Z(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===t||a[n].getAxis("y").index===e)return a[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null}
35,r.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,i=t.xAxisModel||e&&e.getReferringComponents("xAxis",Vi).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",Vi).models[0],a=t.gridModel,o=this._coordsList,s,u;if(e)s=e.coordinateSystem,Mt(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)u=this.getAxis("x",i.componentIndex);else if(n)u=this.getAxis("y",n.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(f,h){A(s.y,function(v,c){var d="x"+h+"y"+c,p=new UO(d);p.master=n,p.model=t,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(f),p.addAxis(v)})});function l(f){return function(h,v){if(yd(h,t)){var c=h.get("position");f==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var d=new XO(f,QE(h),[0,0],h.get("type"),c),p=d.type==="category";d.onBand=p&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=v,a._axesList.push(d),s[f][v]=d,u[f]++}}}},r.prototype._updateScale=function(t,e){A(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var a=n.model.get("categorySortInfo");n.scale.setSortInfo(a)}}),t.eachSeries(function(n){if(A1(n)){var a=P1(n),o=a.xAxisModel,s=a.yAxisModel;if(!yd(o,e)||!yd(s,e))return;var u=this.getCartesian(o.componentIndex,s.componentIndex),l=n.getData(),f=u.getAxis("x"),h=u.getAxis("y");i(l,f),i(l,h)}},this);function i(n,a){A(UT(n,a.dim),function(o){a.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],i=[];return A(this.getCartesians(),function(n){var a=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(a);Mt(e,a)<0&&e.push(a),Mt(i,o)<0&&i.push(o)}),{baseAxes:e,otherAxes:i}},r.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,a){var o=new r(n,t,e);o.name="grid_"+a,o.resize(n,e,!0),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(n){if(A1(n)){var a=P1(n),o=a.xAxisModel,s=a.yAxisModel,u=o.getCoordSysModel(),l=u.coordinateSystem;n.coordinateSystem=l.getCartesian(o.componentIndex,s.componentIndex)}}),i},r.dimensions=og,r}();function yd(r,t){return r.getCoordSysModel()===t}function I1(r,t,e,i){e.getAxesOnZeroOf=function(){return a?[a]:[]};var n=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)L1(n[u])&&(a=n[u]);else for(var l in n)if(n.hasOwnProperty(l)&&L1(n[l])&&!i[f(n[l])]){a=n[l];break}a&&(i[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function L1(r){return r&&r.type!=="category"&&r.type!=="time"&&jE(r)}function qO(r,t){var e=r.getExtent(),i=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return i-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return i-n+t}}var Nn=Math.PI,qn=function(){function r(t,e){this.group=new _e,this.opt=e,this.axisModel=t,yt(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new _e({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return r.prototype.hasBuilder=function(t){return!!k1[t]},r.prototype.add=function(t){k1[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,i){var n=pS(e-t),a,o;return Fh(n)?(o=i>0?"top":"bottom",a="center"):Fh(n-Nn)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<Nn?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}
35(),k1={axisLine:function(r,t,e,i){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var a=t.axis.getExtent(),o=i.transform,s=[a[0],0],u=[a[1],0],l=s[0]>u[0];o&&(Kr(s,s,o),Kr(u,u,o));var f=N({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new vn({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});pl(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var v=t.get(["axisLine","symbol"]);if(v!=null){var c=t.get(["axisLine","symbolSize"]);$(v)&&(v=[v,v]),($(c)||Vt(c))&&(c=[c,c]);var d=Zc(t.get(["axisLine","symbolOffset"])||0,c),p=c[0],g=c[1];A([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(_,y){if(v[y]!=="none"&&v[y]!=null){var m=go(v[y],-p/2,-g/2,p,g,f.stroke,!0),x=_.r+_.offset,S=l?u:s;m.attr({rotation:_.rotate,x:S[0]+x*Math.cos(r.rotation),y:S[1]-x*Math.sin(r.rotation),silent:!0,z2:11}),e.add(m)}})}}},axisTickLabel:function(r,t,e,i){var n=jO(e,i,t,r),a=tB(e,i,t,r);if(QO(t,a,n),JO(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=tM(Y(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));rM(o)}},axisName:function(r,t,e,i){var n=Li(r.axisName,t.get("name"));if(n){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,l=t.axis.getExtent(),f=l[0]>l[1]?-1:1,h=[a==="start"?l[0]-f*u:a==="end"?l[1]+f*u:(l[0]+l[1])/2,E1(a)?r.labelOffset+o*u:0],v,c=t.get("nameRotate");c!=null&&(c=c*Nn/180);var d;E1(a)?v=qn.innerTextLayout(r.rotation,c??r.rotation,o):(v=KO(r.rotation,a,c||0,l),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},_=g.ellipsis,y=Li(r.nameTruncateMaxWidth,g.maxWidth,d),m=new Ue({x:h[0],y:h[1],rotation:v.rotation,silent:qn.isLabelSilent(t),style:dn(s,{text:n,font:p,overflow:"truncate",width:y,ellipsis:_,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(S_({el:m,componentModel:t,itemName:n}),m.__fullText=n,m.anid="name",t.get("triggerEvent")){var x=qn.makeAxisEventDataBase(t);x.targetType="axisName",x.name=n,Dt(m).eventData=x}i.add(m),m.updateTransform(),e.add(m),m.decomposeTransform()}}};function KO(r,t,e,i){var n=pS(e-r),a,o,s=i[0]>i[1],u=t==="start"&&!s||t!=="start"&&s;return Fh(n-Nn/2)?(o=u?"bottom":"top",a="center"):Fh(n-Nn*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",n<Nn*1.5&&n>Nn/2?a=u?"left":"right":a=u?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function QO(r,t,e){if(!YT(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],u=t[t.length-2],l=e[0],f=e[1],h=e[e.length-1],v=e[e.length-2];i===!1?(Fr(a),Fr(l)):R1(a,o)&&(i?(Fr(o),Fr(f)):(Fr(a),Fr(l))),n===!1?(Fr(s),Fr(h)):R1(u,s)&&(n?(Fr(u),Fr(v)):(Fr(s),Fr(h)))}}function Fr(r){r&&(r.ignore=!0)}function R1(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var n=t_([]);return e_(n,n,-r.rotation),e.applyTransform(hs([],n,r.getLocalTransform())),i.applyTransform(hs([],n,t.getLocalTransform())),e.intersect(i)}}function E1(r){return r==="middle"||r==="center"}function nM(r,t,e,i,n){for(var a=[],o=[],s=[],u=0;u<r.length;u++){var l=r[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=e,t&&(Kr(o,o,t),Kr(s,s,t));var f=new vn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});pl(f.shape,f.style.lineWidth),f.anid=n+"_"+r[u].tickValue,a.push(f)}return a}function jO(r,t,e,i){var n=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=a.getModel("lineStyle"),u=i.tickDirection*a.get("length"),l=n.getTicksCoords(),f=nM(l,t.transform,u,yt(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;
35h++)r.add(f[h]);return f}}function JO(r,t,e,i){var n=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),u=i*a.get("length"),l=yt(s.getLineStyle(),yt(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=nM(o[f],t.transform,u,l,"minorticks_"+f),v=0;v<h.length;v++)r.add(h[v])}}function tB(r,t,e,i){var n=e.axis,a=Li(i.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),u=n.getViewLabels(),l=(Li(i.labelRotate,o.get("rotate"))||0)*Nn/180,f=qn.innerTextLayout(i.rotation,l,i.labelDirection),h=e.getCategories&&e.getCategories(!0),v=[],c=qn.isLabelSilent(e),d=e.get("triggerEvent");return A(u,function(p,g){var _=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,m=p.rawLabel,x=o;if(h&&h[_]){var S=h[_];Z(S)&&S.textStyle&&(x=new te(S.textStyle,o,e.ecModel))}var b=x.getTextColor()||e.get(["axisLine","lineStyle","color"]),w=n.dataToCoord(_),M=x.getShallow("align",!0)||f.textAlign,T=it(x.getShallow("alignMinLabel",!0),M),C=it(x.getShallow("alignMaxLabel",!0),M),D=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||f.textVerticalAlign,P=it(x.getShallow("verticalAlignMinLabel",!0),D),L=it(x.getShallow("verticalAlignMaxLabel",!0),D),k=new Ue({x:w,y:i.labelOffset+i.labelDirection*s,rotation:f.rotation,silent:c,z2:10+(p.level||0),style:dn(x,{text:y,align:g===0?T:g===u.length-1?C:M,verticalAlign:g===0?P:g===u.length-1?L:D,fill:J(b)?b(n.type==="category"?m:n.type==="value"?_+"":_,g):b})});if(k.anid="label_"+_,d){var R=qn.makeAxisEventDataBase(e);R.targetType="axisLabel",R.value=m,R.tickIndex=g,n.type==="category"&&(R.dataIndex=_),Dt(k).eventData=R}t.add(k),k.updateTransform(),v.push(k),r.add(k),k.decomposeTransform()}),v}}function eB(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return rB(e,r,t),e.seriesInvolved&&nB(e,r),e}function rB(r,t,e){var i=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];A(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=Tl(s.model),l=r.coordSysAxesInfo[u]={};r.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",i);if(A(s.getAxes(),Rt(p,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var v=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||c)&&A(d.baseAxes,Rt(p,c?"cross":!0,v)),c&&A(d.otherAxes,Rt(p,"cross",!1))}function p(g,_,y){var m=y.model.getModel("axisPointer",n),x=m.get("show");if(!(!x||x==="auto"&&!g&&!ug(m))){_==null&&(_=m.get("triggerTooltip")),m=g?iB(y,h,n,t,g,_):m;var S=m.get("snap"),b=m.get("triggerEmphasis"),w=Tl(y.model),M=_||S||y.type==="category",T=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:m,triggerTooltip:_,triggerEmphasis:b,involveSeries:M,snap:S,useHandle:ug(m),seriesModels:[],linkGroup:null};l[w]=T,r.seriesInvolved=r.seriesInvolved||M;var C=aB(a,y);if(C!=null){var D=o[C]||(o[C]={axesInfo:{}});D.axesInfo[w]=T,D.mapper=a[C].mapper,T.linkGroup=D}}}})}function iB(r,t,e,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};A(s,function(v){u[v]=ht(o.get(v))}),u.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),n==="cross"){var f=o.get(["label","show"]);if(l.show=f??!0,!a){var h=u.lineStyle=o.get("crossStyle");h&&yt(l,h.textStyle)}}return r.model.getModel("axisPointer",new te(u,e,i))}function nB(r,t){t.eachSeries(function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!i||n==="none"||n===!1||n==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[Tl(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function aB(r,t){for(var e=t.model,i=t.dim,n=0;n<r.length;n++){var a=r[n]||{};if(md(a[i+"AxisId"],e.id)||md(a[i+"AxisIndex"],e.componentIndex)||md(a[i+"AxisName"],e.name))return n}}function md(r,t){return r==="all"||G(r)&&Mt(r,t)>=0||r===t}function oB(r){var t=K_(r);if(t){var e=t.axisPointerModel,i=t.axis.scale,n=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=ug(e);a==null&&(n.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function K_(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Tl(r)]}function sB(r){var t=K_(r);return t&&t.axisPointerModel}function ug(r){return!!r.get(["handle","show"])}function Tl(r){return r.type+"||"+r.id}var O1={},aM=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n,a){this.axisPointerClass&&oB(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,i,n,a){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=sB(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){O1[e]=i},t.getAxisPointerClass=function(e){return e&&O1[e]},t.type="axis",t}(Er),lg=Bt();function uB(r,t,e,i){var n=e.axis;
35if(!n.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),u=i.coordinateSystem.getRect(),l=n.getTicksCoords({tickModel:a,clamp:!0});if(l.length){var f=s.length,h=lg(r).splitAreaColors,v=K(),c=0;if(h)for(var d=0;d<l.length;d++){var p=h.get(l[d].tickValue);if(p!=null){c=(p+(f-1)*d)%f;break}}var g=n.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=G(s)?s:[s];for(var d=1;d<l.length;d++){var y=n.toGlobalCoord(l[d].coord),m=void 0,x=void 0,S=void 0,b=void 0;n.isHorizontal()?(m=g,x=u.y,S=y-m,b=u.height,g=m+S):(m=u.x,x=g,S=u.width,b=y-x,g=x+b);var w=l[d-1].tickValue;w!=null&&v.set(w,c),t.add(new jt({anid:w!=null?"area_"+w:null,shape:{x:m,y:x,width:S,height:b},style:yt({fill:s[c]},_),autoBatch:!0,silent:!0})),c=(c+1)%f}lg(r).splitAreaColors=v}}}function lB(r){lg(r).splitAreaColors=null}var fB=["axisLine","axisTickLabel","axisName"],hB=["splitArea","splitLine","minorSplitLine"],oM=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _e,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),u=sg(s,e),l=new qn(e,N({handleAutoShown:function(h){for(var v=s.coordinateSystem.getCartesians(),c=0;c<v.length;c++)if(ig(v[c].getOtherAxis(e.axis).scale))return!0;return!1}},u));A(fB,l.add,l),this._axisGroup.add(l.getGroup()),A(hB,function(h){e.get([h,"show"])&&cB[h](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||aw(o,this._axisGroup,e),r.prototype.render.call(this,e,i,n,a)}},t.prototype.remove=function(){lB(this)},t.type="cartesianAxis",t}(aM),cB={splitLine:function(r,t,e,i){var n=e.axis;if(!n.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=G(s)?s:[s];for(var u=i.coordinateSystem.getRect(),l=n.isHorizontal(),f=0,h=n.getTicksCoords({tickModel:a}),v=[],c=[],d=o.getLineStyle(),p=0;p<h.length;p++){var g=n.toGlobalCoord(h[p].coord);l?(v[0]=g,v[1]=u.y,c[0]=g,c[1]=u.y+u.height):(v[0]=u.x,v[1]=g,c[0]=u.x+u.width,c[1]=g);var _=f++%s.length,y=h[p].tickValue,m=new vn({anid:y!=null?"line_"+h[p].tickValue:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]},style:yt({stroke:s[_]},d),silent:!0});pl(m.shape,d.lineWidth),t.add(m)}}},minorSplitLine:function(r,t,e,i){var n=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=i.coordinateSystem.getRect(),u=n.isHorizontal(),l=n.getMinorTicksCoords();if(l.length)for(var f=[],h=[],v=o.getLineStyle(),c=0;c<l.length;c++)for(var d=0;d<l[c].length;d++){var p=n.toGlobalCoord(l[c][d].coord);u?(f[0]=p,f[1]=s.y,h[0]=p,h[1]=s.y+s.height):(f[0]=s.x,f[1]=p,h[0]=s.x+s.width,h[1]=p);var g=new vn({anid:"minor_line_"+l[c][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:v,silent:!0});pl(g.shape,v.lineWidth),t.add(g)}},splitArea:function(r,t,e,i){uB(r,t,e,i)}},sM=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(oM),vB=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=sM.type,e}return t.type="yAxis",t}(oM),dB=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,i){this.group.removeAll(),e.get("show")&&this.group.add(new jt({shape:e.coordinateSystem.getRect(),style:yt({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Er),B1={offset:0};function pB(r){r.registerComponentView(dB),r.registerComponentModel(FO),r.registerCoordinateSystem("cartesian2d",ZO),M1(r,"x",ag,B1),M1(r,"y",ag,B1),r.registerComponentView(sM),r.registerComponentView(vB),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var N1="\0_ec_interaction_mutex";function F1(r,t){return!!gB(r)[t]}function gB(r){return r[N1]||(r[N1]={})}So({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},nr);var _B=function(r){F(t,r);function t(e){var i=r.call(this)||this;i._zr=e;var n=at(i._mousedownHandler,i),a=at(i._mousemoveHandler,i),o=at
35(i._mouseupHandler,i),s=at(i._mousewheelHandler,i),u=at(i._pinchHandler,i);return i.enable=function(l,f){this.disable(),this._opt=yt(ht(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),l==null&&(l=!0),(l===!0||l==="move"||l==="pan")&&(e.on("mousedown",n),e.on("mousemove",a),e.on("mouseup",o)),(l===!0||l==="scale"||l==="zoom")&&(e.on("mousewheel",s),e.on("pinch",u))},i.disable=function(){e.off("mousedown",n),e.off("mousemove",a),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",u)},i}return 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(!Vy(e)){for(var i=e.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var n=e.offsetX,a=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,a)&&(this._x=n,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!yh("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||F1(this._zr,"globalPan"))){var i=e.offsetX,n=e.offsetY,a=this._x,o=this._y,s=i-a,u=n-o;this._x=i,this._y=n,this._opt.preventDefaultMouseMove&&Ts(e.event),uM(this,"pan","moveOnMouseMove",e,{dx:s,dy:u,oldX:a,oldY:o,newX:i,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Vy(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var i=yh("zoomOnMouseWheel",e,this._opt),n=yh("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,u=e.offsetY;if(!(a===0||!i&&!n)){if(i){var l=o>3?1.4:o>1?1.2:1.1,f=a>0?l:1/l;xd(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:u,isAvailableBehavior:null})}if(n){var h=Math.abs(a),v=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);xd(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:u,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!F1(this._zr,"globalPan")){var i=e.pinchScale>1?1.1:1/1.1;xd(this,"zoom",null,e,{scale:i,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(gi);function xd(r,t,e,i,n){r.pointerChecker&&r.pointerChecker(i,n.originX,n.originY)&&(Ts(i.event),uM(r,t,e,i,n))}function uM(r,t,e,i,n){n.isAvailableBehavior=at(yh,null,e,i),r.trigger(t,n)}function yh(r,t,e){var i=e[r];return!r||i&&(!$(i)||t.event[i+"Key"])}var z1=vn.prototype,bd=kc.prototype,lM=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(lM);function Sd(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var yB=function(r){F(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-line",i}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new lM},t.prototype.buildPath=function(e,i){Sd(i)?z1.buildPath.call(this,e,i):bd.buildPath.call(this,e,i)},t.prototype.pointAt=function(e){return Sd(this.shape)?z1.pointAt.call(this,e):bd.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var i=this.shape,n=Sd(i)?[i.x2-i.x1,i.y2-i.y1]:bd.tangentAt.call(this,e);return jg(n,n)},t}(wt),wd=["fromSymbol","toSymbol"];function G1(r){return"_"+r+"Type"}function V1(r,t,e){var i=t.getItemVisual(e,r);if(!i||i==="none")return i;var n=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),u=F_(n),l=Zc(o||0,u);return i+u+l+(a||"")+(s||"")}function H1(r,t,e){var i=t.getItemVisual(e,r);if(!(!i||i==="none")){var n=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),u=F_(n),l=Zc(o||0,u),f=go(i,-u[0]/2+l[0],-u[1]/2+l[1],u[0],u[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=r,f}}function mB(r){var t=new yB({name:"line",subPixelOptimize:!0});return fg(t.shape,r),t}function fg(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];
35e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var xB=function(r){F(t,r);function t(e,i,n){var a=r.call(this)||this;return a._createLine(e,i,n),a}return t.prototype._createLine=function(e,i,n){var a=e.hostModel,o=e.getItemLayout(i),s=mB(o);s.shape.percent=0,ia(s,{shape:{percent:1}},a,i),this.add(s),A(wd,function(u){var l=H1(u,e,i);this.add(l),this[G1(u)]=V1(u,e,i)},this),this._updateCommonStl(e,i,n)},t.prototype.updateData=function(e,i,n){var a=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(i),u={shape:{}};fg(u.shape,s),Jr(o,u,a,i),A(wd,function(l){var f=V1(l,e,i),h=G1(l);if(this[h]!==f){this.remove(this.childOfName(l));var v=H1(l,e,i);this.add(v)}this[h]=f},this),this._updateCommonStl(e,i,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,i,n){var a=e.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,u=n&&n.blurLineStyle,l=n&&n.selectLineStyle,f=n&&n.labelStatesModels,h=n&&n.emphasisDisabled,v=n&&n.focus,c=n&&n.blurScope;if(!n||e.hasItemOption){var d=e.getItemModel(i),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),u=d.getModel(["blur","lineStyle"]).getLineStyle(),l=d.getModel(["select","lineStyle"]).getLineStyle(),h=p.get("disabled"),v=p.get("focus"),c=p.get("blurScope"),f=Ul(d)}var g=e.getItemVisual(i,"style"),_=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=u,o.ensureState("select").style=l,A(wd,function(b){var w=this.childOfName(b);if(w){w.setColor(_),w.style.opacity=g.opacity;for(var M=0;M<jr.length;M++){var T=jr[M],C=o.getState(T);if(C){var D=C.style||{},P=w.ensureState(T),L=P.style||(P.style={});D.stroke!=null&&(L[w.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(L.opacity=D.opacity)}}w.markRedraw()}},this);var y=a.getRawValue(i);Bc(this,f,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(b,w){return a.getFormattedLabel(b,w,e.dataType)}},inheritColor:_||"#000",defaultOpacity:g.opacity,defaultText:(y==null?e.getName(i):isFinite(y)?oe(y):y)+""});var m=this.getTextContent();if(m){var x=f.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=x.get("position")||"middle";var S=x.get("distance");G(S)||(S=[S,S]),m.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),p_(this,v,c,h)},t.prototype.highlight=function(){vl(this)},t.prototype.downplay=function(){dl(this)},t.prototype.updateLayout=function(e,i){this.setLinePoints(e.getItemLayout(i))},t.prototype.setLinePoints=function(e){var i=this.childOfName("line");fg(i.shape,e),i.dirty()},t.prototype.beforeUpdate=function(){var e=this,i=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),a=e.getTextContent();if(!i&&!n&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var u=e.childOfName("line");if(!this.__dirty&&!u.__dirty)return;var l=u.shape.percent,f=u.pointAt(0),h=u.pointAt(l),v=Ub([],h,f);jg(v,v);function c(C,D){var P=C.__specifiedRotation;if(P==null){var L=u.tangentAt(D);C.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else C.attr("rotation",P)}if(i&&(i.setPosition(f),c(i,0),i.scaleX=i.scaleY=o*l,i.markRedraw()),n&&(n.setPosition(h),c(n,1),n.scaleX=n.scaleY=o*l,n.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var d=void 0,p=void 0,g=a.__labelDistance,_=g[0]*o,y=g[1]*o,m=l/2,x=u.tangentAt(m),S=[x[1],-x[0]],b=u.pointAt(m);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var w=x[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var M=-Math.atan2(x[1],x[0]);h[0]<f[0]&&(M=Math.PI+M),a.rotation=M}var T=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-y,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=y,p="top";break;default:T=0,p="middle"}switch(a.__position){case"end":a.x=v[0]*_+h[0],a.y=v[1]*y+h[1],d=v[0]>.8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":a.x=-v[0]*_+f[0],a.y=-v[1]*y+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=_*w+f[0],a.y=f[1]+T,d=x[0]<0?"right":"left",a.originX=-_*w,a.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+T,d="center",a.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-_*w+h[0],a.y=h[1]+T,d=x[0]>=0?"right":"left",a.originX=_*w,a.originY=-T;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||d})}},t}(_e),bB=function(){function r(t){this.group=new _e,this._LineCtor=t||xB}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var i=this,n=i.group,a=i._lineData;i._lineData=t,a||n.removeAll();var o=W1(t);t.diff(a).add(function(s){e._doAdd(t,s,o)}
35).update(function(s,u){e._doUpdate(a,t,u,s,o)}).remove(function(s){n.remove(a.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,i){e.updateLayout(t,i)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=W1(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function i(s){!s.isGroup&&!SB(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n<t.end;n++){var a=e.getItemLayout(n);if(Td(a)){var o=new this._LineCtor(e,n,this._seriesScope);o.traverse(i),this.group.add(o),e.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){Yl(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,i){var n=t.getItemLayout(e);if(Td(n)){var a=new this._LineCtor(t,e,i);t.setItemGraphicEl(e,a),this.group.add(a)}},r.prototype._doUpdate=function(t,e,i,n,a){var o=t.getItemGraphicEl(i);if(!Td(e.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(e,n,a):o=new this._LineCtor(e,n,a),e.setItemGraphicEl(n,o),this.group.add(o)},r}();function SB(r){return r.animators&&r.animators.length>0}function W1(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Ul(t)}}function Y1(r){return isNaN(r[0])||isNaN(r[1])}function Td(r){return r&&!Y1(r[0])&&!Y1(r[1])}function Jc(r,t,e,i,n,a){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Vo(n,[0,o])),a!=null&&(a=Math.max(a,n??0)),i==="all"){var s=Math.abs(t[1]-t[0]);s=Vo(s,[0,o]),n=a=Vo(s,[n,a]),i=0}t[0]=Vo(t[0],e),t[1]=Vo(t[1],e);var u=Md(t,i);t[i]+=r;var l=n||0,f=e.slice();u.sign<0?f[0]+=l:f[1]-=l,t[i]=Vo(t[i],f);var h;return h=Md(t,i),n!=null&&(h.sign!==u.sign||h.span<n)&&(t[1-i]=t[i]+u.sign*n),h=Md(t,i),a!=null&&h.span>a&&(t[1-i]=t[i]+h.sign*a),t}function Md(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Vo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var wB=function(){function r(){}return r.prototype.getInitialData=function(t,e){var i,n=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=a.get("type"),u;o==="category"?(t.layout="horizontal",i=n.getOrdinalMeta(),u=!0):s==="category"?(t.layout="vertical",i=a.getOrdinalMeta(),u=!0):t.layout=t.layout||"horizontal";var l=["x","y"],f=t.layout==="horizontal"?0:1,h=this._baseAxisDim=l[f],v=l[1-f],c=[n,a],d=c[f].get("type"),p=c[1-f].get("type"),g=t.data;if(g&&u){var _=[];A(g,function(x,S){var b;G(x)?(b=x.slice(),x.unshift(S)):G(x.value)?(b=N({},x),b.value=b.value.slice(),x.value.unshift(S)):b=x,_.push(b)}),t.data=_}var y=this.defaultValueDimensions,m=[{name:h,type:f1(d),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:f1(p),dimsDef:y.slice()}];return NO(this,{coordDimensions:m,dimensionsCount:y.length+1,encodeDefaulter:Rt(ML,m,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),TB=["color","borderColor"],MB=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,i,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,i,n,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,i):this._incrementalRenderNormal(e,i)},t.prototype.eachRendered=function(e){Yl(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var i=e.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(e){var i=e.getData(),n=this._data,a=this.group,o=i.getLayout("isSimpleBox"),s=e.get("
35clip",!0),u=e.coordinateSystem,l=u.getArea&&u.getArea();this._data||a.removeAll(),i.diff(n).add(function(f){if(i.hasValue(f)){var h=i.getItemLayout(f);if(s&&U1(l,h))return;var v=Cd(h,f,!0);ia(v,{shape:{points:h.ends}},e,f),Dd(v,i,f,o),a.add(v),i.setItemGraphicEl(f,v)}}).update(function(f,h){var v=n.getItemGraphicEl(h);if(!i.hasValue(f)){a.remove(v);return}var c=i.getItemLayout(f);if(s&&U1(l,c)){a.remove(v);return}v?(Jr(v,{shape:{points:c.ends}},e,f),JS(v)):v=Cd(c),Dd(v,i,f,o),a.add(v),i.setItemGraphicEl(f,v)}).remove(function(f){var h=n.getItemGraphicEl(f);h&&a.remove(h)}).execute(),this._data=i},t.prototype._renderLarge=function(e){this._clear(),X1(e,this.group);var i=e.get("clip",!0)?BO(e.coordinateSystem,!1,e):null;i?this.group.setClipPath(i):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,i){for(var n=i.getData(),a=n.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=n.getItemLayout(o),u=Cd(s);Dd(u,n,o,a),u.incremental=!0,this.group.add(u),this._progressiveEls.push(u)}},t.prototype._incrementalRenderLarge=function(e,i){X1(i,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}(Zn),CB=function(){function r(){}return r}(),DB=function(r){F(t,r);function t(e){var i=r.call(this,e)||this;return i.type="normalCandlestickBox",i}return t.prototype.getDefaultShape=function(){return new CB},t.prototype.buildPath=function(e,i){var n=i.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}(wt);function Cd(r,t,e){var i=r.ends;return new DB({shape:{points:e?AB(i,r):i},z2:100})}function U1(r,t){for(var e=!0,i=0;i<t.ends.length;i++)if(r.contain(t.ends[i][0],t.ends[i][1])){e=!1;break}return e}function Dd(r,t,e,i){var n=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0,r.__simpleBox=i,WS(r,n)}function AB(r,t){return Y(r,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var PB=function(){function r(){}return r}(),Ad=function(r){F(t,r);function t(e){var i=r.call(this,e)||this;return i.type="largeCandlestickBox",i}return t.prototype.getDefaultShape=function(){return new PB},t.prototype.buildPath=function(e,i){for(var n=i.points,a=0;a<n.length;)if(this.__sign===n[a++]){var o=n[a++];e.moveTo(o,n[a++]),e.lineTo(o,n[a++])}else a+=3},t}(wt);function X1(r,t,e,i){var n=r.getData(),a=n.getLayout("largePoints"),o=new Ad({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Ad({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var u=new Ad({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(u),Pd(1,o,r),Pd(-1,s,r),Pd(0,u,r),i&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function Pd(r,t,e,i){var n=e.get(["itemStyle",r>0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(n=e.get(["itemStyle","borderColorDoji"]));var a=e.getModel("itemStyle").getItemStyle(TB);t.useStyle(a),t.style.fill=null,t.style.stroke=n}var fM=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,i,n){var a=i.getItemLayout(e);return a&&n.rect(a.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:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(na);ei(fM,wB,!0);function IB(r){!r||!G(r.series)||A(r.series,function(t){Z(t)&&t.type==="
35k"&&(t.type="candlestick")})}var LB=["itemStyle","borderColor"],kB=["itemStyle","borderColor0"],RB=["itemStyle","borderColorDoji"],EB=["itemStyle","color"],OB=["itemStyle","color0"],BB={seriesType:"candlestick",plan:N_(),performRawSeries:!0,reset:function(r,t){function e(a,o){return o.get(a>0?EB:OB)}function i(a,o){return o.get(a===0?RB:a>0?LB:kB)}if(!t.isSeriesFiltered(r)){var n=r.pipelineContext.large;return!n&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var u=o.getItemModel(s),l=o.getItemLayout(s).sign,f=u.getItemStyle();f.fill=e(l,u),f.stroke=i(l,u)||f.fill;var h=o.ensureUniqueItemVisual(s,"style");N(h,f)}}}}}},NB={seriesType:"candlestick",plan:N_(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),i=FB(r,e),n=0,a=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[n])),u=Y(e.mapDimensionsAll(o[a]),e.getDimensionIndex,e),l=u[0],f=u[1],h=u[2],v=u[3];if(e.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),s<0||u.length<4)return;return{progress:r.pipelineContext.large?d:c};function c(p,g){for(var _,y=g.getStore();(_=p.next())!=null;){var m=y.get(s,_),x=y.get(l,_),S=y.get(f,_),b=y.get(h,_),w=y.get(v,_),M=Math.min(x,S),T=Math.max(x,S),C=B(M,m),D=B(T,m),P=B(b,m),L=B(w,m),k=[];z(k,D,0),z(k,C,1),k.push(I(L),I(D),I(P),I(C));var R=g.getItemModel(_),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(_,{sign:$1(y,_,x,S,f,E),initBaseline:x>S?D[a]:C[a],ends:k,brushRect:H(b,w,m)})}function B(U,tt){var gt=[];return gt[n]=tt,gt[a]=U,isNaN(tt)||isNaN(U)?[NaN,NaN]:t.dataToPoint(gt)}function z(U,tt,gt){var j=tt.slice(),ct=tt.slice();j[n]=vh(j[n]+i/2,1,!1),ct[n]=vh(ct[n]-i/2,1,!0),gt?U.push(j,ct):U.push(ct,j)}function H(U,tt,gt){var j=B(U,gt),ct=B(tt,gt);return j[n]-=i/2,ct[n]-=i/2,{x:j[0],y:j[1],width:i,height:ct[1]-j[1]}}function I(U){return U[n]=vh(U[n],1),U}}function d(p,g){for(var _=DE(p.count*4),y=0,m,x=[],S=[],b,w=g.getStore(),M=!!r.get(["itemStyle","borderColorDoji"]);(b=p.next())!=null;){var T=w.get(s,b),C=w.get(l,b),D=w.get(f,b),P=w.get(h,b),L=w.get(v,b);if(isNaN(T)||isNaN(P)||isNaN(L)){_[y++]=NaN,y+=3;continue}_[y++]=$1(w,b,C,D,f,M),x[n]=T,x[a]=P,m=t.dataToPoint(x,null,S),_[y++]=m?m[0]:NaN,_[y++]=m?m[1]:NaN,x[a]=L,m=t.dataToPoint(x,null,S),_[y++]=m?m[1]:NaN}g.setLayout("largePoints",_)}}};function $1(r,t,e,i,n,a){var o;return e>i?o=-1:e<i?o=1:o=a?0:t>0?r.get(n,t-1)<=i?1:-1:1,o}function FB(r,t){var e=r.getBaseAxis(),i,n=e.type==="category"?e.getBandWidth():(i=e.getExtent(),Math.abs(i[1]-i[0])/t.count()),a=Ot(it(r.get("barMaxWidth"),n),n),o=Ot(it(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?Ot(s,n):Math.max(Math.min(n/2,a),o)}function zB(r){r.registerChartView(MB),r.registerSeriesModel(fM),r.registerPreprocessor(IB),r.registerVisual(BB),r.registerLayout(NB)}var $a=Bt(),Z1=ht,Id=at,GB=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,i,n){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,e,i);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new _e,this.createPointerEl(s,l,t,e),this.createLabelEl(s,l,t,e),i.getZr().add(s);else{var v=Rt(q1,e,h);this.updatePointerEl(s,l,v),this.updateLabelEl(s,l,v,e)}Q1(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,a=n.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(o){var u=K_(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return i===!0},r.prototype.makeElOption=function(t,e,i,n,a){},r.prototype.createPointerEl=function(t,e,i,n){var a=e.pointer;if(a){var o=$a(t).pointerEl=new qI[a.type](Z1(e.pointer));t.add(o)}}
35,r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=$a(t).labelEl=new Ue(Z1(e.label));t.add(a),K1(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=$a(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,n){var a=$a(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),K1(a,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=b_(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Ts(l.event)},onmousedown:Id(this._onHandleDragMove,this,0,0),drift:Id(this._onHandleDragMove,this),ondragend:Id(this._onHandleDragEnd,this)}),i.add(n)),Q1(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");G(u)||(u=[u,u]),n.scaleX=u[0]/2,n.scaleY=u[1]/2,Xc(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){q1(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Ld(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Ld(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Ld(n)),$a(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Zh(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r}();function q1(r,t,e,i){hM($a(e).lastProp,i)||($a(e).lastProp=i,t?Jr(e,i,r):(e.stopAnimation(),e.attr(i)))}function hM(r,t){if(Z(r)&&Z(t)){var e=!0;return A(t,function(i,n){e=e&&hM(r[n],i)}),!!e}else return r===t}function K1(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Ld(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Q1(r,t,e){var i=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=e)})}function VB(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function HB(r,t,e,i,n){var a=e.get("value"),o=cM(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),u=Wc(s.get("padding")||0),l=s.getFont(),f=i_(o,l),h=n.position,v=f.width+u[1]+u[3],c=f.height+u[0]+u[2],d=n.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var p=n.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),WB(h,v,c,i);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:dn(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:g}),z2:10}}function WB(r,t,e,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function cM(r,t,e,i,n){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:X_(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(i,function(u){var l=e.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),$(o)?a=o.replace("{value}",a):J(o)&&(a=o(s))}return a}function vM(r,t,e){var i=fs();return e_(i,i,e.rotation),xp(i,i,e.position),gl([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function YB(r,t,e,i,n,a){var o=qn.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),HB(t,i,n,a,{position:vM(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function UB(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function XB(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var $B=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,n,a,o){var s=n.axis,u=s.grid,l=a.get("type"),f=j1(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(l&&l!=="none"){var v=VB(a),c=ZB[l](s,h,f);c.style=v,e.graphicKey=c.type,e.pointer=c}var d=sg(u.model,n);YB(i,e,d,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=sg(i.axis.grid.model,i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=vM(i.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,n,a){var o=n.axis,s=o.grid,u=o.getGlobalExtent(!0),l=j1(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var v=(l[1]+l[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:c,tooltipOption:d[f]}},t}(GB);function j1(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var ZB={line:function(r,t,e){var i=UB([t,e[0]],[t,e[1]],J1(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:XB([t-i/2,e[0]],[i,n],J1(r))}}};function J1(r){return r.dim==="x"?0:1}var qB=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return 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}(It),an=Bt(),KB=A;function dM(r,t,e){if(!nt.node){var i=t.getZr();an(i).records||(an(i).records={}),QB(i,t);var n=an(i).records[r]||(an(i).records[r]={});n.handler=e}}function QB(r,t){if(an(r).initialized)return;an(r).initialized=!0,e("click",Rt(tx,"click")),e("mousemove",Rt(tx,"mousemove")),e("globalout",JB);function e(i,n){r.on(i,function(a){var o=tN(t);KB(an(r).records,function(s){s&&n(s,a,o.dispatchAction)}),jB(o.pendings,t)})}}function jB(r,t){var e=r.showTip.length,i=r.hideTip.length,n;e?n=r.showTip[e-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function JB(r,t,e){r.handler("leave",null,e)}
35function tx(r,t,e,i){t.handler(r,e,i)}function tN(r){var t={showTip:[],hideTip:[]},e=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function hg(r,t){if(!nt.node){var e=t.getZr(),i=(an(e).records||{})[r];i&&(an(e).records[r]=null)}}var eN=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=i.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";dM("axisPointer",n,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(e,i){hg("axisPointer",i)},t.prototype.dispose=function(e,i){hg("axisPointer",i)},t.type="axisPointer",t}(Er);function pM(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=Vl(a,r);if(o==null||o<0||G(o))return{point:[]};var s=a.getItemGraphicEl(o),u=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,v=l.dim,c=h==="x"||h==="radius"?1:0,d=a.mapDimension(v),p=[];p[c]=a.get(d,o),p[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=u.dataToPoint(p)||[]}else e=u.dataToPoint(a.getValues(Y(u.dimensions,function(_){return a.mapDimension(_)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var ex=Bt();function rN(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||at(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){mh(n)&&(n=pM({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=mh(n),l=a.axesInfo,f=s.axesInfo,h=i==="leave"||mh(n),v={},c={},d={list:[],map:{}},p={showPointer:Rt(nN,c),showTooltip:Rt(aN,d)};A(s.coordSysMap,function(_,y){var m=u||_.containPoint(n);A(s.coordSysAxesInfo[y],function(x,S){var b=x.axis,w=lN(l,x);if(!h&&m&&(!l||w)){var M=w&&w.value;M==null&&!u&&(M=b.pointToData(n)),M!=null&&rx(x,M,p,!1,v)}})});var g={};return A(f,function(_,y){var m=_.linkGroup;m&&!c[y]&&A(m.axesInfo,function(x,S){var b=c[S];if(x!==_&&b){var w=b.value;m.mapper&&(w=_.axis.scale.parse(m.mapper(w,ix(x),ix(_)))),g[_.key]=w}})}),A(g,function(_,y){rx(f[y],_,p,!0,v)}),oN(c,f,v),sN(d,n,r,o),uN(f,o,e),v}}function rx(r,t,e,i,n){var a=r.axis;
35if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=iN(t,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&n.seriesIndex==null&&N(n,s[0]),!i&&r.snap&&a.containData(u)&&u!=null&&(t=u),e.showPointer(r,t,s),e.showTooltip(r,o,u)}}function iN(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(i),h,v;if(u.getAxisTooltipData){var c=u.getAxisTooltipData(f,r,e);v=c.dataIndices,h=c.nestestValue}else{if(v=u.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!v.length)return;h=u.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=h,a.length=0),A(v,function(g){a.push({seriesIndex:u.seriesIndex,dataIndexInside:g,dataIndex:u.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:n}}function nN(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function aN(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var u=t.coordSys.model,l=Tl(u),f=r.map[l];f||(f=r.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function oN(r,t,e){var i=e.axesInfo=[];A(t,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function sN(r,t,e,i){if(mh(t)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function uN(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=ex(i)[n]||{},o=ex(i)[n]={};A(r,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&A(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],u=[];A(a,function(l,f){!o[f]&&u.push(l)}),A(o,function(l,f){!a[f]&&s.push(l)}),u.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function lN(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function ix(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function mh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function gM(r){aM.registerAxisPointerClass("CartesianAxisPointer",$B),r.registerComponentModel(qB),r.registerComponentView(eN),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!G(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=eB(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},rN)}function fN(r){Hi(pB),Hi(gM)}var nx=["x","y","radius","angle","single"],hN=["cartesian2d","polar","singleAxis"];function cN(r){var t=r.get("coordinateSystem");return Mt(hN,t)>=0}function Fn(r){return r+"Axis"}function vN(r,t){var e=K(),i=[],n=K();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!n.get(f.uid)&&u(f)&&(s(f),a=!0)}function s(f){n.set(f.uid,!0),i.push(f),l(f)}function u(f){var h=!1;return f.eachTargetAxis(function(v,c){var d=e.get(v);d&&d[c]&&(h=!0)}),h}function l(f){f.eachTargetAxis(function(h,v){(e.get(h)||e.set(h,[]))[v]=!0})}return i}function _M(r){var t=r.ecModel,e={infoList:[],infoMap:K()};return r.eachTargetAxis(function(i,n){var a=t.getComponent(Fn(i),n);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,u=e.infoMap.get(s);u||(u={model:o,axisModels:[]},e.infoList.push(u),e.infoMap.set(s,u)),u.axisModels.push(a)}}}),e}var kd=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),ec=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,i,n){var a=ax(e);this.settledOption=a,this.mergeDefaultAndTheme(e,n),this._doInit(a)},t.prototype.mergeOption=function(e){var i=ax(e);bt(this.option,e,!0),bt(this.settledOption,i,!0),this._doInit(i)},t.prototype._doInit=function(e){var i=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(i[a[0]]=n[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),i=this._targetAxisInfoMap=K(),n=this._fillSpecifiedTargetAxis(i);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var i=!1;return A(nx,function(n){var a=this.getReferringComponents(Fn(n),O2);if(a.specified){i=!0;var o=new kd;A(a.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),i},t.prototype._fillAutoTargetAxisByOrient=function(e,i){var n=this.ecModel,a=!0;if(a){var o=i==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});u(s,o)}if(a){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});u(s,"single")}function u(l,f){var h=l[0];if(h){var v=new kd;if(v.add(h.componentIndex),e.set(f,v),a=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",Vi).models[0];c&&A(l,function(d){h.componentIndex!==d.componentIndex&&c===d.getReferringComponents("grid",Vi).models[0]&&v.add(d.componentIndex)})}}}a&&A(nx,function(l){if(a){var f=n.findComponents({mainType:Fn(l),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new kd;h.add(f[0].componentIndex),e.set(l,h),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(i){!e&&(e=i)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var i=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,u=e[a[1]]!=null;s&&!u?i[o]="percent":!s&&u?i[o]="value":n?i[o]=n[o]:s&&(i[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(i,n){e==null&&(e=this.ecModel.getComponent(Fn(i),n))},this),e},t.prototype.eachTargetAxis=function(e,i){this._targetAxisInfoMap.each(function(n,a){A(n.indexList,function(o){e.call(i,a,o)})})},t.prototype.getAxisProxy=function(e,i){var n=this.getAxisModel(e,i);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,i){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[i])return this.ecModel.getComponent(Fn(e),i)},t.prototype.setRawRange=function(e){var i=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(i[a[0]]=n[a[0]]=e[a[0]],i[a[1]]=n[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var i=this.option;A(["start","startValue","end","endValue"],function(n){i[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,i){if(e==null&&i==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,i).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var i,n=this._targetAxisInfoMap.keys(),a=0;a<n.length;a++)for(var o=n[a],s=this._targetAxisInfoMap.get(o),u=0;u<s.indexList.length;u++){var l=this.getAxisProxy(o,s.indexList[u]);if(l.hostedBy(this))return l;i||(i=l)}return i},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return 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}(It);function ax(r){var t={};return A(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var yM=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n,a){this.dataZoomModel=e,this.ecModel=i,this.api=n},t.type="dataZoom",t}(Er),Ko=A,ox=Za,dN=function(){function r(t,e,i,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=i}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(cN(e)){var i=Fn(this._dimName),n=e.getReferringComponents(i,Vi).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return ht(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,
35i=this.getAxisModel(),n=i.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],u=[],l;Ko(["start","end"],function(v,c){var d=t[v],p=t[v+"Value"];a[c]==="percent"?(d==null&&(d=o[c]),p=n.parse(Ne(d,o,e))):(l=!0,p=p==null?e[c]:n.parse(p),d=Ne(p,e,o)),u[c]=p==null||isNaN(p)?e[c]:p,s[c]=d==null||isNaN(d)?o[c]:d}),ox(u),ox(s);var f=this._minMaxSpan;l?h(u,s,e,o,!1):h(s,u,o,e,!0);function h(v,c,d,p,g){var _=g?"Span":"ValueSpan";Jc(0,v,d,"all",f["min"+_],f["max"+_]);for(var y=0;y<2;y++)c[y]=Ne(v[y],d,p,!0),g&&(c[y]=n.parse(c[y]))}return{valueWindow:u,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=pN(this,this._dimName,e),this._updateMinMaxSpan();var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var i=this._dimName,n=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;Ko(n,function(u){var l=u.getData(),f=l.mapDimensionsAll(i);if(f.length){if(a==="weakFilter"){var h=l.getStore(),v=Y(f,function(c){return l.getDimensionIndex(c)},l);l.filterSelf(function(c){for(var d,p,g,_=0;_<f.length;_++){var y=h.get(v[_],c),m=!isNaN(y),x=y<o[0],S=y>o[1];if(m&&!x&&!S)return!0;m&&(g=!0),x&&(d=!0),S&&(p=!0)}return g&&d&&p})}else Ko(f,function(c){if(a==="empty")u.setData(l=l.map(c,function(p){return s(p)?p:NaN}));else{var d={};d[c]=o,l.selectRange(d)}});Ko(f,function(c){l.setApproximateExtent(o,c)})}});function s(u){return u>=o[0]&&u<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._dataExtent;Ko(["min","max"],function(n){var a=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Ne(i[0]+o,i,[0,100],!0):a!=null&&(o=Ne(a,[0,100],i,!0)-i[0]),t[n+"Span"]=a,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,i=this._valueWindow;if(e){var n=dS(i,[0,500]);n=Math.min(n,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+i[0].toFixed(n)),e[1]!==100&&a.setDeterminedMinMax("max",+i[1].toFixed(n)),a.freeze()}},r}();function pN(r,t,e){var i=[1/0,-1/0];Ko(e,function(o){eO(i,o.getData(),t)});var n=r.getAxisModel(),a=HT(n.axis.scale,n,i).calculate();return[a.min,a.max]}var gN={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var u=r.getComponent(Fn(o),s);n(o,s,u,a)})})}t(function(n,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new dN(n,a,s,r),e.push(o.__dzAxisProxy))});var i=K();return A(e,function(n){A(n.getTargetSeriesModels(),function(a){i.set(a.uid,a)})}),i},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(i,n){e.getAxisProxy(i,n).reset(e)}),e.eachTargetAxis(function(i,n){e.getAxisProxy(i,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var i=e.findRepresentativeAxisProxy();if(i){var n=i.getDataPercentWindow(),a=i.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:a[0],endValue:a[1]})}})}};function _N(r){r.registerAction("dataZoom",function(t,e){var i=vN(e,t);A(i,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var sx=!1;function mM(r){sx||(sx=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,gN),_N(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function yN(r,t){var e=Wc(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),r=new jt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),r}var mN=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return 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}(It);function xM(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function bM(r){if(nt.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e<i;e++)if(r[e]in t)return r[e]}}var SM=bM(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),xN=bM(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function wM(r,t){if(!r)return t;t=bw(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function bN(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var SN=wM(xN,"transition"),Q_=wM(SM,"transform"),wN="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(nt.transform3dSupported?"will-change:transform;":"");
35function TN(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function MN(r,t,e){if(!$(e)||e==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");t=yl(t);var a=TN(e),o=Math.max(Math.round(n)*1.5,6),s="",u=Q_+":",l;Mt(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+n,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-h)/2)*100)/100;s+=";"+a+":-"+c+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+p.join("")+'"></div>'}function CN(r,t){var e="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+e,n="opacity"+i+",visibility"+i;return t||(i=" "+r+"s "+e,n+=nt.transformSupported?","+Q_+i:",left"+i+",top"+i),SN+":"+n}function ux(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!nt.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=nt.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+Q_+":"+o+";":[["top",0],["left",0],[SM,o]]}function DN(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var n=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+n),A(["decoration","align"],function(u){var l=r.get(u);l&&t.push("text-"+u+":"+l)}),t.join(";")}function AN(r,t,e){var i=[],n=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),u=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=Qw(r,"html"),v=u+"px "+l+"px "+o+"px "+s;return i.push("box-shadow:"+v),t&&n&&i.push(CN(n,e)),a&&i.push("background-color:"+a),A(["width","color","radius"],function(c){var d="border-"+c,p=bw(d),g=r.get(p);g!=null&&i.push(d+":"+g+(c==="color"?"":"px"))}),i.push(DN(f)),h!=null&&i.push("padding:"+Wc(h).join("px ")+"px"),i.join(";")+";"}function lx(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&pA(r,o,e,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var PN=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,nt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=e.appendTo,o=a&&($(a)?document.querySelector(a):ll(a)?a:J(a)&&a(t.getDom()));lx(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=n.handler,f=n.painter.getViewportRoot();Vr(f,u,!0),l.dispatch("mousemove",u)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=bN(e,"position"),n=e.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=wN+AN(t,!this._firstShow,this._longHide)+ux(a[0],a[1],!0)+("border-color:"+yl(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if($(a)&&i.get("trigger")==="item"&&!xM(i)&&(s=MN(i,n,a)),$(t))o.innerHTML=t+s;else if(t){o.innerHTML="",G(t)||(t=[t]);for(var u=0;u<t.length;u++)ll(t[u])&&t[u].parentNode!==o&&o.appendChild(t[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var i=this._styleCoord;if(lx(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var n=this.el.style,a=ux(i[0],i[1]);A(a,function(o){n[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",nt.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(at(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r}(),IN=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),hx(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0}
35,r.prototype.setContent=function(t,e,i,n,a){var o=this;Z(t)&&Tt(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Ue({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Qw(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=i.get(l)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=fx(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},r.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;hx(n,this._zr,t,e),t=n[0],e=n[1];var a=i.style,o=kn(a.borderWidth||0),s=fx(a);i.x=t+o+s.left,i.y=e+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(at(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function kn(r){return Math.max(0,r)}function fx(r){var t=kn(r.shadowBlur||0),e=kn(r.shadowOffsetX||0),i=kn(r.shadowOffsetY||0);return{left:kn(t-e),right:kn(t+e),top:kn(t-i),bottom:kn(t+i)}}function hx(r,t,e,i){r[0]=e,r[1]=i,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var LN=new jt({shape:{x:-1,y:-1,width:2,height:2}}),kN=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){if(!(nt.node||!i.getDom())){var n=e.getComponent("tooltip"),a=this._renderMode=N2(n.get("renderMode"));this._tooltipContent=a==="richText"?new IN(i):new PN(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,i,n){if(!(nt.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Xc(this,"_updatePosition",50,"fixRate"):Zh(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");dM("itemTooltip",this._api,at(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,n=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,n,a){if(!(a.from===this.uid||nt.node||!n.getDom())){var o=cx(a,n);this._ticket="";var s=a.dataByCoordSys,u=BN(a,i,n);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=LN;f.x=a.x,f.y=a.y,f.update(),Dt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,n,a))return;var h=pM(a,i),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(cx(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,u=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=i.getSeriesByIndex(o);if(l){var f=l.getData(),h=du([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,i){var n=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=Dt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;Du(n,function(f){if(Dt(f).dataIndex!=null)return u=f,!0;if(Dt(f).tooltipConfig!=null)return l=f,!0},!0),u?this._showSeriesItemTooltip(e,u,i):l?this._showComponentItemTooltip(e,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=at(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(e,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=du([i.tooltipOption],a),u=this._renderMode,l=[],f=po("section",{blocks:[],noHeader:!0}),h=[],v=new td;A(e,function(y){A(y.dataByAxis,function(m){var x=n.getComponent(m.axisDim+"Axis",m.axisIndex),S=m.value;if(!(!x||S==null)){var b=cM(S,x.axis,n,m.seriesDataIndices,m.valueLabelOpt),w=po("section",{header:b,noHeader:!ki(b),sortBlocks:!0,blocks:[]});f.blocks.push(w),A(m.seriesDataIndices,function(M){var T=n.getSeriesByIndex(M.seriesIndex),C=M.dataIndexInside,D=T.getDataParams(C);if(!(D.dataIndex<0)){D.axisDim=m.axisDim,D.axisIndex=m.axisIndex,D.axisType=m.axisType,D.axisId=m.axisId,D.axisValue=X_(x.axis,{value:S}),D.axisValueLabel=b,D.marker=v.makeTooltipMarker("item",yl(D.color),u);var P=Tm(T.formatTooltip(C,!0,null)),L=P.frag;if(L){var k=du([T],a).get("valueFormatter");w.blocks.push(k?N({valueFormatter:k},L):L)}P.text&&h.push(P.text),l.push(D)}})}})}),f.blocks.reverse(),h.reverse();var c=i.position,d=s.get("order"),p=Pm(f,v,u,d,n.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=u==="richText"?`
36
37`:"<br/>",_=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,_,l,Math.random()+"",o[0],o[1],c,null,v)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=Dt(i),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,v=l.getData(h),c=this._renderMode,d=e.positionDefault,p=du([v.getItemModel(f),l,u&&(u.co
37ordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var _=l.getDataParams(f,h),y=new td;_.marker=y.makeTooltipMarker("item",yl(_.color),c);var m=Tm(l.formatTooltip(f,!1,h)),x=p.get("order"),S=p.get("valueFormatter"),b=m.frag,w=b?Pm(S?N({valueFormatter:S},b):b,y,c,x,a.get("useUTC"),p.get("textStyle")):m.text,M="item_"+l.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,_,M,e.offsetX,e.offsetY,e.position,e.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=this._renderMode==="html",o=Dt(i),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if($(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=ht(u),u.content=Dr(u.content));var h=[u],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:u.content});var c=e.positionDefault,d=du(h,this._tooltipModel,c?{position:c}:null),p=d.get("content"),g=Math.random()+"",_=new td;this._showOrMove(d,function(){var y=ht(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,e.offsetX,e.offsetY,e.position,i,_)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,u,l,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var v=e.get("formatter");u=u||e.get("position");var c=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(v)if($(v)){var g=e.ecModel.get("useUTC"),_=G(n)?n[0]:n,y=_&&_.axisType&&_.axisType.indexOf("time")>=0;c=v,y&&(c=Fc(_.axisValue,c,g)),c=Sw(c,n,!0)}else if(J(v)){var m=at(function(x,S){x===this._ticket&&(h.setContent(S,f,e,p,u),this._updatePosition(e,u,o,s,h,n,l))},this);this._ticket=a,c=v(n,a,m)}else c=v;h.setContent(c,f,e,p,u),h.show(e,p),this._updatePosition(e,u,o,s,h,n,l)}},t.prototype._getNearestPoint=function(e,i,n,a){if(n==="axis"||G(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!G(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),v=e.get("align"),c=e.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),J(i)&&(i=i([n,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),G(i))n=Ot(i[0],l),a=Ot(i[1],f);else if(Z(i)){var p=i;p.width=h[0],p.height=h[1];var g=Cs(p,{width:l,height:f});n=g.x,a=g.y,v=null,c=null}else if($(i)&&u){var _=ON(i,d,h,e.get("borderWidth"));n=_[0],a=_[1]}else{var _=RN(n,a,o,l,f,v?null:20,c?null:20);n=_[0],a=_[1]}if(v&&(n-=vx(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=vx(c)?h[1]/2:c==="bottom"?h[1]:0),xM(e)){var _=EN(n,a,o,l,f);n=_[0],a=_[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&A(n,function(s,u){var l=s.dataByAxis||[],f=e[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&A(l,function(v,c){var d=h[c]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&A(p,function(_,y){var m=g[y];o=o&&_.seriesIndex===m.seriesIndex&&_.dataIndex===m.dataIndex}),a&&A(v.seriesDataIndices,function(_){var y=_.seriesIndex,m=i[y],x=a[y];m&&x&&x.data!==m.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){nt.node||!i.getDom()||(Zh(this,"_updatePosition"),this._tooltipContent.dispose(),hg("itemTooltip",i))},t.type="tooltip",t}(Er);function du(r,t,e){var i=t.ecModel,n;e?(n=new te(e,i,i),n=new te(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof te&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(n=new te(o,n,i)))}return n}function cx(r,t){return r.dispatchAction||at(t.dispatchAction,t)}function RN(r,t,e,i,n,a,o){var s=e.getSize(),u=s[0],l=s[1];return a!=null&&(r+u+a+2>i?r-=u+a:r+=a),o!=null&&(t+l+o>n?t-=l+o:t+=o),[r,t]}function EN(r,t,e,i,n){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function ON(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,u=0,l=t.width,f=t.height;switch(r){case"inside":s=t.x+l/2-n/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-n/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-n/2,u=t.y+f+o;break;case"left":s=t.x-n-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function vx(r){return r==="center"||r==="middle"}function BN(r,t,e){var i=s_(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=Hl(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=Dt(l).tooltipConfig;if(f&&f.name===r.name)return u=l,!0}),u)return{componentMainType:n,componentIndex:o.componentIndex,el:u}}}}function NN(r){Hi(gM),r.registerComponentModel(mN),r.registerComponentView(kN),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},nr),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},nr)}var FN=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return 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}(It),zN=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),u=e.get("textAlign"),l=it(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Ue({style:dn(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}
37),h=f.getBoundingRect(),v=e.get("subtext"),c=new Ue({style:dn(s,{text:v,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,c.silent=!p&&!g,d&&f.on("click",function(){om(d,"_"+e.get("target"))}),p&&c.on("click",function(){om(p,"_"+e.get("subtarget"))}),Dt(f).eventData=Dt(c).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),v&&a.add(c);var _=a.getBoundingRect(),y=e.getBoxLayoutParams();y.width=_.width,y.height=_.height;var m=Cs(y,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),u==="middle"&&(u="center"),u==="right"?m.x+=m.width:u==="center"&&(m.x+=m.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?m.y+=m.height:l==="middle"&&(m.y+=m.height/2),l=l||"top"),a.x=m.x,a.y=m.y,a.markRedraw();var x={align:u,verticalAlign:l};f.setStyle(x),c.setStyle(x),_=a.getBoundingRect();var S=m.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var w=new jt({shape:{x:_.x-S[3],y:_.y-S[0],width:_.width+S[1]+S[3],height:_.height+S[0]+S[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(Er);function GN(r){r.registerComponentModel(FN),r.registerComponentView(zN)}function j_(r,t){if(!r)return!1;for(var e=G(r)?r:[r],i=0;i<e.length;i++)if(e[i]&&e[i][t])return!0;return!1}function Of(r){Lp(r,"label",["show"])}var Bf=Bt(),pn=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(nt.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,i){this._mergeOption(e,i,!1,!1)},t.prototype._mergeOption=function(e,i,n,a){var o=this.mainType;n||i.eachSeries(function(s){var u=s.get(this.mainType,!0),l=Bf(s)[o];if(!u||!u.data){Bf(s)[o]=null;return}l?l._mergeOption(u,i,!0):(a&&Of(u),A(u.data,function(f){f instanceof Array?(Of(f[0]),Of(f[1])):Of(f)}),l=this.createMarkerModelFromSeries(u,this,i),N(l,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),l.__hostSeries=s),Bf(s)[o]=l},this)},t.prototype.formatTooltip=function(e,i,n){var a=this.getData(),o=this.getRawValue(e),s=a.getName(e);return po("section",{header:this.name,blocks:[po("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,i){var n=O_.prototype.getDataParams.call(this,e,i),a=this.__hostSeries;return a&&(n.seriesId=a.id,n.seriesName=a.name,n.seriesType=a.subType),n},t.getMarkerModelFromSeries=function(e,i){return Bf(e)[i]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(It);ei(pn,O_.prototype);var VN=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,i,n){return new t(e,i,n)},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}(pn);function cg(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function HN(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Nf(r,t,e,i,n,a){var o=[],s=ET(t,i),u=s?t.getCalculationInfo("stackResultDimension"):i,l=J_(t,u,r),f=t.indicesOfNearest(u,l)[0];o[n]=t.get(e,f),o[a]=t.get(u,f);var h=t.get(i,f),v=Ri(t.get(i,f));return v=Math.min(v,20),v>=0&&(o[a]=+o[a].toFixed(v)),[o,h]}var Rd={min:Rt(Nf,"min"),max:Rt(Nf,"max"),average:Rt(Nf,"average"),median:Rt(Nf,"median")};function Ml(r,t){if(t){var e=r.getData(),i=r.coordinateSystem,n=i&&i.dimensions;if(!HN(t)&&!G(t.coord)&&G(n)){var a=TM(t,e,i,r);if(t=ht(t),t.type&&Rd[t.type]&&a.baseAxis&&a.valueAxis){var o=Mt(n,a.baseAxis.dim),s=Mt(n,a.valueAxis.dim),u=Rd[t.type](e,a.baseDataDim,a.valueDataDim,o,s);t.coord=u[0],t.value=u[1]}
37else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!G(n))t.coord=[];else for(var l=t.coord,f=0;f<2;f++)Rd[l[f]]&&(l[f]=J_(e,e.mapDimension(n[f]),l[f]));return t}}function TM(r,t,e,i){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,n.valueAxis=e.getAxis(WN(i,n.valueDataDim)),n.baseAxis=e.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=i.getBaseAxis(),n.valueAxis=e.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function WN(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Cl(r,t){return r&&r.containData&&t.coord&&!cg(t)?r.containData(t.coord):!0}function YN(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!cg(t)&&!cg(e)?r.containZone(t.coord,e.coord):!0}function MM(r,t){return r?function(e,i,n,a){var o=a<2?e.coord&&e.coord[a]:e.value;return $n(o,t[a])}:function(e,i,n,a){return $n(e.value,t[a])}}function J_(r,t,e){if(e==="average"){var i=0,n=0;return r.each(t,function(a,o){isNaN(a)||(i+=a,n++)}),i/n}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Ed=Bt(),ty=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=K()},t.prototype.render=function(e,i,n){var a=this,o=this.markerGroupMap;o.each(function(s){Ed(s).keep=!1}),i.eachSeries(function(s){var u=pn.getMarkerModelFromSeries(s,a.type);u&&a.renderSeries(s,u,i,n)}),o.each(function(s){!Ed(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(e){Ed(e).keep=!0},t.prototype.toggleBlurSeries=function(e,i){var n=this;A(e,function(a){var o=pn.getMarkerModelFromSeries(a,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(u){u&&(i?FS(u):v_(u))})}})},t.type="marker",t}(Er);function dx(r,t,e){var i=t.coordinateSystem;r.each(function(n){var a=r.getItemModel(n),o,s=Ot(a.get("x"),e.getWidth()),u=Ot(a.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(u))o=[s,u];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,n));else if(i){var l=r.get(i.dimensions[0],n),f=r.get(i.dimensions[1],n);o=i.dataToPoint([l,f])}isNaN(s)||(o[0]=s),isNaN(u)||(o[1]=u),r.setItemLayout(n,o)})}var UN=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,i,n){i.eachSeries(function(a){var o=pn.getMarkerModelFromSeries(a,"markPoint");o&&(dx(o.getData(),a,n),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(e,i,n,a){var o=e.coordinateSystem,s=e.id,u=e.getData(),l=this.markerGroupMap,f=l.get(s)||l.set(s,new RO),h=XN(o,e,i);i.setData(h),dx(i.getData(),e,a),h.each(function(v){var c=h.getItemModel(v),d=c.getShallow("symbol"),p=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),_=c.getShallow("symbolOffset"),y=c.getShallow("symbolKeepAspect");if(J(d)||J(p)||J(g)||J(_)){var m=i.getRawValue(v),x=i.getDataParams(v);J(d)&&(d=d(m,x)),J(p)&&(p=p(m,x)),J(g)&&(g=g(m,x)),J(_)&&(_=_(m,x))}var S=c.getModel("itemStyle").getItemStyle(),b=$c(u,"color");S.fill||(S.fill=b),h.setItemVisual(v,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:_,symbolKeepAspect:y,style:S})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(v){v.traverse(function(c){Dt(c).dataModel=i})}),this.markKeep(f),f.group.silent=i.get("silent")||e.get("silent")},t.type="markPoint",t}(ty);function XN(r,t,e){var i;r?i=Y(r&&r.dimensions,function(s){var u=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return N(N({},u),{name:s,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var n=new io(i,e),a=Y(e.get("data"),Rt(Ml,t));r&&(a=Kt(a,Rt(Cl,r)));var o=MM(!!r,i);return n.initData(a,null,o),n}function $N(r){r.registerComponentModel(VN),r.registerComponentView(UN),r.registerPreprocessor(function(t){j_(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var ZN=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,i,n){return new t(e,i,n)},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}(pn),Ff=Bt(),qN=function(r,t,e,i){var n=r.getData(),a;if(G(i))a=i;
37else{var o=i.type;if(o==="min"||o==="max"||o==="average"||o==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,u=void 0;if(i.yAxis!=null||i.xAxis!=null)s=t.getAxis(i.yAxis!=null?"y":"x"),u=Li(i.yAxis,i.xAxis);else{var l=TM(i,n,t,r);s=l.valueAxis;var f=OT(n,l.valueDataDim);u=J_(n,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=ht(i),d={coord:[]};c.type=null,c.coord=[],c.coord[v]=-1/0,d.coord[v]=1/0;var p=e.get("precision");p>=0&&Vt(u)&&(u=+u.toFixed(Math.min(p,20))),c.coord[h]=d.coord[h]=u,a=[c,d,{type:o,valueIndex:i.valueIndex,value:u}]}else a=[]}var g=[Ml(r,a[0]),Ml(r,a[1]),N({},a[2])];return g[2].type=g[2].type||null,bt(g[2],g[0]),bt(g[2],g[1]),g};function rc(r){return!isNaN(r)&&!isFinite(r)}function px(r,t,e,i){var n=1-r,a=i.dimensions[r];return rc(t[n])&&rc(e[n])&&t[r]===e[r]&&i.getAxis(a).containData(t[r])}function KN(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,i=t[1].coord;if(e&&i&&(px(1,e,i,r)||px(0,e,i,r)))return!0}return Cl(r,t[0])&&Cl(r,t[1])}function Od(r,t,e,i,n){var a=i.coordinateSystem,o=r.getItemModel(t),s,u=Ot(o.get("x"),n.getWidth()),l=Ot(o.get("y"),n.getHeight());if(!isNaN(u)&&!isNaN(l))s=[u,l];else{if(i.getMarkerPosition)s=i.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=a.dimensions,h=r.get(f[0],t),v=r.get(f[1],t);s=a.dataToPoint([h,v])}if(Z_(a,"cartesian2d")){var c=a.getAxis("x"),d=a.getAxis("y"),f=a.dimensions;rc(r.get(f[0],t))?s[0]=c.toGlobalCoord(c.getExtent()[e?0:1]):rc(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(u)||(s[0]=u),isNaN(l)||(s[1]=l)}r.setItemLayout(t,s)}var QN=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,i,n){i.eachSeries(function(a){var o=pn.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),u=Ff(o).from,l=Ff(o).to;u.each(function(f){Od(u,f,!0,a,n),Od(l,f,!1,a,n)}),s.each(function(f){s.setItemLayout(f,[u.getItemLayout(f),l.getItemLayout(f)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,i,n,a){var o=e.coordinateSystem,s=e.id,u=e.getData(),l=this.markerGroupMap,f=l.get(s)||l.set(s,new bB);this.group.add(f.group);var h=jN(o,e,i),v=h.from,c=h.to,d=h.line;Ff(i).from=v,Ff(i).to=c,i.setData(d);var p=i.get("symbol"),g=i.get("symbolSize"),_=i.get("symbolRotate"),y=i.get("symbolOffset");G(p)||(p=[p,p]),G(g)||(g=[g,g]),G(_)||(_=[_,_]),G(y)||(y=[y,y]),h.from.each(function(x){m(v,x,!0),m(c,x,!1)}),d.each(function(x){var S=d.getItemModel(x).getModel("lineStyle").getLineStyle();d.setItemLayout(x,[v.getItemLayout(x),c.getItemLayout(x)]),S.stroke==null&&(S.stroke=v.getItemVisual(x,"style").fill),d.setItemVisual(x,{fromSymbolKeepAspect:v.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(x,"symbolOffset"),fromSymbolRotate:v.getItemVisual(x,"symbolRotate"),fromSymbolSize:v.getItemVisual(x,"symbolSize"),fromSymbol:v.getItemVisual(x,"symbol"),toSymbolKeepAspect:c.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(x,"symbolOffset"),toSymbolRotate:c.getItemVisual(x,"symbolRotate"),toSymbolSize:c.getItemVisual(x,"symbolSize"),toSymbol:c.getItemVisual(x,"symbol"),style:S})}),f.updateData(d),h.line.eachItemGraphicEl(function(x){Dt(x).dataModel=i,x.traverse(function(S){Dt(S).dataModel=i})});function m(x,S,b){var w=x.getItemModel(S);Od(x,S,b,e,a);var M=w.getModel("itemStyle").getItemStyle();M.fill==null&&(M.fill=$c(u,"color")),x.setItemVisual(S,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:it(w.get("symbolOffset",!0),y[b?0:1]),symbolRotate:it(w.get("symbolRotate",!0),_[b?0:1]),symbolSize:it(w.get("symbolSize"),g[b?0:1]),symbol:it(w.get("symbol",!0),p[b?0:1]),style:M})}this.markKeep(f),f.group.silent=i.get("silent")||e.get("silent")},t.type="markLine",t}(ty);function jN(r,t,e){var i;r?i=Y(r&&r.dimensions,function(l){var f=t.getData().getDimensionInfo(t.getData().mapDimension(l))||{};return N(N({},f),{name:l,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var n=new io(i,e),a=new io(i,e),o=new io([],e),s=Y(e.get("data"),Rt(qN,t,r,e));r&&(s=Kt(s,Rt(KN,r)));var u=MM(!!r,i);return n.initData(Y(s,function(l){return l[0]}),null,u),a.initData(Y(s,function(l){return l[1]}),null,u),o.initData(Y(s,function(l){return l[2]})),o.hasItemOption=!0,{from:n,to:a,line:o}}function JN(r){r.registerComponentModel(ZN),r.registerComponentView(QN),r.registerPreprocessor(function(t){j_(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var tF=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,i,n){return new t(e,i,n)},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}(pn),zf=Bt(),eF=function(r,t,e,i){var n=i[0],a=i[1];if(!(!n||!a)){var o=Ml(r,n),s=Ml(r,a),u=o.coord,l=s.coord;u[0]=Li(u[0],-1/0),u[1]=Li(u[1],-1/0),l[0]=Li(l[0],1/0),l[1]=Li(l[1],1/0);var f=JD([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function ic(r){return!isNaN(r)&&!isFinite(r)}function gx(r,t,e,i){var n=1-r;return ic(t[n])&&ic(e[n])}function rF(r,t){var e=t.coord[0],i=t.coord[1],n={coord:e,x:t.x0,y:t.y0},a={coord:i,x:t.x1,y:t.y1};
37return Z_(r,"cartesian2d")?e&&i&&(gx(1,e,i)||gx(0,e,i))?!0:YN(r,n,a):Cl(r,n)||Cl(r,a)}function _x(r,t,e,i,n){var a=i.coordinateSystem,o=r.getItemModel(t),s,u=Ot(o.get(e[0]),n.getWidth()),l=Ot(o.get(e[1]),n.getHeight());if(!isNaN(u)&&!isNaN(l))s=[u,l];else{if(i.getMarkerPosition){var f=r.getValues(["x0","y0"],t),h=r.getValues(["x1","y1"],t),v=a.clampData(f),c=a.clampData(h),d=[];e[0]==="x0"?d[0]=v[0]>c[0]?h[0]:f[0]:d[0]=v[0]>c[0]?f[0]:h[0],e[1]==="y0"?d[1]=v[1]>c[1]?h[1]:f[1]:d[1]=v[1]>c[1]?f[1]:h[1],s=i.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),_=[p,g];a.clampData&&a.clampData(_,_),s=a.dataToPoint(_,!0)}if(Z_(a,"cartesian2d")){var y=a.getAxis("x"),m=a.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);ic(p)?s[0]=y.toGlobalCoord(y.getExtent()[e[0]==="x0"?0:1]):ic(g)&&(s[1]=m.toGlobalCoord(m.getExtent()[e[1]==="y0"?0:1]))}isNaN(u)||(s[0]=u),isNaN(l)||(s[1]=l)}return s}var yx=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],iF=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,i,n){i.eachSeries(function(a){var o=pn.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(u){var l=Y(yx,function(h){return _x(s,u,h,a,n)});s.setItemLayout(u,l);var f=s.getItemGraphicEl(u);f.setShape("points",l)})}},this)},t.prototype.renderSeries=function(e,i,n,a){var o=e.coordinateSystem,s=e.id,u=e.getData(),l=this.markerGroupMap,f=l.get(s)||l.set(s,{group:new _e});this.group.add(f.group),this.markKeep(f);var h=nF(o,e,i);i.setData(h),h.each(function(v){var c=Y(yx,function(M){return _x(h,v,M,e,a)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),_=p.getExtent(),y=[d.parse(h.get("x0",v)),d.parse(h.get("x1",v))],m=[p.parse(h.get("y0",v)),p.parse(h.get("y1",v))];Za(y),Za(m);var x=!(g[0]>y[1]||g[1]<y[0]||_[0]>m[1]||_[1]<m[0]),S=!x;h.setItemLayout(v,{points:c,allClipped:S});var b=h.getItemModel(v).getModel("itemStyle").getItemStyle(),w=$c(u,"color");b.fill||(b.fill=w,$(b.fill)&&(b.fill=t0(b.fill,.4))),b.stroke||(b.stroke=w),h.setItemVisual(v,"style",b)}),h.diff(zf(f).data).add(function(v){var c=h.getItemLayout(v);if(!c.allClipped){var d=new vo({shape:{points:c.points}});h.setItemGraphicEl(v,d),f.group.add(d)}}).update(function(v,c){var d=zf(f).data.getItemGraphicEl(c),p=h.getItemLayout(v);p.allClipped?d&&f.group.remove(d):(d?Jr(d,{shape:{points:p.points}},i,v):d=new vo({shape:{points:p.points}}),h.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var c=zf(f).data.getItemGraphicEl(v);f.group.remove(c)}).execute(),h.eachItemGraphicEl(function(v,c){var d=h.getItemModel(c),p=h.getItemVisual(c,"style");v.useStyle(h.getItemVisual(c,"style")),Bc(v,Ul(d),{labelFetcher:i,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:$(p.fill)?t0(p.fill,1):"#000"}),WS(v,d),p_(v,null,null,d.get(["emphasis","disabled"])),Dt(v).dataModel=i}),zf(f).data=h,f.group.silent=i.get("silent")||e.get("silent")},t.type="markArea",t}(ty);function nF(r,t,e){var i,n,a=["x0","y0","x1","y1"];if(r){var o=Y(r&&r.dimensions,function(l){var f=t.getData(),h=f.getDimensionInfo(f.mapDimension(l))||{};return N(N({},h),{name:l,ordinalMeta:null})});n=Y(a,function(l,f){return{name:l,type:o[f%2].type}}),i=new io(n,e)}else n=[{name:"value",type:"float"}],i=new io(n,e);var s=Y(e.get("data"),Rt(eF,t,r,e));r&&(s=Kt(s,Rt(rF,r)));var u=r?function(l,f,h,v){var c=l.coord[Math.floor(v/2)][v%2];return $n(c,n[v])}:function(l,f,h,v){return $n(l.value,n[v])};return i.initData(s,null,u),i.hasItemOption=!0,i}function aF(r){r.registerComponentModel(tF),r.registerComponentView(iF),r.registerPreprocessor(function(t){j_(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var oF=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},vg=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,n=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),G(i)&&A(i,function(a,o){$(a)&&(a={type:a}),i[o]=bt(a,oF(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<e.length;n++){var a=e[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],n=[];e.eachRawSeries(function(u){var l=u.name;n.push(l);var f;if(u.legendVisualProvider){var h=u.legendVisualProvider,v=h.getAllNames();
37e.isSeriesFiltered(u)||(n=n.concat(v)),v.length?i=i.concat(v):f=!0}else f=!0;f&&o_(u)&&i.push(u.name)}),this._availableNames=n;var a=this.get("data")||i,o=K(),s=Y(a,function(u){return($(u)||Vt(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new te(u,this,this.ecModel))},this);this._data=Kt(s,function(u){return!!u})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;A(a,function(o){i[o.get("name")]=!1})}i[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var i=this.option.selected;i.hasOwnProperty(e)||(i[e]=!0),this[i[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,i=this.option.selected;A(e,function(n){i[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;A(e,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&Mt(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{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
37Limit:"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}(It),Ho=Rt,dg=A,Gf=_e,CM=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Gf),this.group.add(this._selectorGroup=new Gf),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var u=e.get("selector",!0),l=e.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,n,u,s,l);var f=e.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},v=e.get("padding"),c=Cs(f,h,v),d=this.layoutInner(e,o,c,a,u,l),p=Cs(yt({width:d.width,height:d.height},f),h,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yN(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,n,a,o,s,u){var l=this.getContentGroup(),f=K(),h=i.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),dg(i.getData(),function(c,d){var p=c.get("name");if(!this.newlineDisabled&&(p===""||p===`
38`)){var g=new Gf;g.newline=!0,l.add(g);return}var _=n.getSeriesByName(p)[0];if(!f.get(p))if(_){var y=_.getData(),m=y.getVisual("legendLineStyle")||{},x=y.getVisual("legendIcon"),S=y.getVisual("style"),b=this._createItem(_,p,d,c,i,e,m,S,x,h,a);b.on("click",Ho(mx,p,null,a,v)).on("mouseover",Ho(pg,_.name,null,a,v)).on("mouseout",Ho(gg,_.name,null,a,v)),n.ssr&&b.eachChild(function(w){var M=Dt(w);M.seriesIndex=_.seriesIndex,M.dataIndex=d,M.ssrType="legend"}),f.set(p,!0)}else n.eachRawSeries(function(w){if(!f.get(p)&&w.legendVisualProvider){var M=w.legendVisualProvider;if(!M.containName(p))return;var T=M.indexOfName(p),C=M.getItemVisual(T,"style"),D=M.getItemVisual(T,"legendIcon"),P=Un(C.fill);P&&P[3]===0&&(P[3]=.2,C=N(N({},C),{fill:Tc(P,"rgba")}));var L=this._createItem(w,p,d,c,i,e,{},C,D,h,a);L.on("click",Ho(mx,null,p,a,v)).on("mouseover",Ho(pg,null,p,a,v)).on("mouseout",Ho(gg,null,p,a,v)),n.ssr&&L.eachChild(function(k){var R=Dt(k);R.seriesIndex=w.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,i,a,s,u)},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();dg(e,function(l){var f=l.type,h=new Ue({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=i.getModel("selectorLabel"),c=i.getModel(["emphasis","selectorLabel"]);Bc(h,{normal:v,emphasis:c},{defaultText:l.title}),Vh(h)})},t.prototype._createItem=function(e,i,n,a,o,s,u,l,f,h,v){var c=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(i),_=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),m=a.get("icon");f=m||f||"roundRect";var x=sF(f,a,u,l,c,g,v),S=new Gf,b=a.getModel("textStyle");if(J(e.getLegendIcon)&&(!m||m==="inherit"))S.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:_,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var w=m==="inherit"&&e.getData().getVisual("symbol")?_==="inherit"?e.getData().getVisual("symbolRotate"):_:0;S.add(uF({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var M=s==="left"?d+5:-5,T=s,C=o.get("formatter"),D=i;$(C)&&C?D=C.replace("{name}",i??""):J(C)&&(D=C(i));var P=g?b.getTextColor():a.get("inactiveColor");S.add(new Ue({style:dn(b,{text:D,x:M,y:p/2,fill:P,align:T,verticalAlign:"middle"},{inheritColor:P})}));
38var L=new jt({shape:S.getBoundingRect(),style:{fill:"transparent"}}),k=a.getModel("tooltip");return k.get("show")&&S_({el:L,componentModel:o,itemName:i,itemTooltipOption:k.option}),S.add(L),S.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(S),Vh(S),S.__legendDataIndex=n,S},t.prototype.layoutInner=function(e,i,n,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();Uu(e.get("orient"),u,e.get("itemGap"),n.width,n.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){Uu("horizontal",l,e.get("selectorItemGap",!0));var v=l.getBoundingRect(),c=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",_=p===0?"height":"width",y=p===0?"y":"x";s==="end"?c[p]+=f[g]+d:h[p]+=v[g]+d,c[1-p]+=f[_]/2-v[_]/2,l.x=c[0],l.y=c[1],u.x=h[0],u.y=h[1];var m={x:0,y:0};return m[g]=f[g]+d+v[g],m[_]=Math.max(f[_],v[_]),m[y]=Math.min(0,v[y]+c[1-p]),m}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Er);function sF(r,t,e,i,n,a,o){function s(g,_){g.lineWidth==="auto"&&(g.lineWidth=_.lineWidth>0?2:0),dg(g,function(y,m){g[m]==="inherit"&&(g[m]=_[m])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?i.decal:Qp(h,o),l.fill==="inherit"&&(l.fill=i[n]),l.stroke==="inherit"&&(l.stroke=i[f]),l.opacity==="inherit"&&(l.opacity=(n==="fill"?i:e).opacity),s(l,i);var v=t.getModel("lineStyle"),c=v.getLineStyle();if(s(c,e),l.fill==="auto"&&(l.fill=i.fill),l.stroke==="auto"&&(l.stroke=i.fill),c.stroke==="auto"&&(c.stroke=i.fill),!a){var d=t.get("inactiveBorderWidth"),p=l[f];l.lineWidth=d==="auto"?i.lineWidth>0&&p?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:l,lineStyle:c}}function uF(r){var t=r.icon||"roundRect",e=go(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function mx(r,t,e,i){gg(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r??t}),pg(r,t,e,i)}function DM(r){for(var t=r.getZr().storage.getDisplayList(),e,i=0,n=t.length;i<n&&!(e=t[i].states.emphasis);)i++;return e&&e.hoverLayer}function pg(r,t,e,i){DM(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:i})}function gg(r,t,e,i){DM(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:i})}function lF(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function pu(r,t,e){var i={},n=r==="toggleSelected",a;return e.eachComponent("legend",function(o){n&&a!=null?o[a?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),a=o.isSelected(t.name));var s=o.getData();A(s,function(u){var l=u.get("name");if(!(l===`
39`||l==="")){var f=o.isSelected(l);i.hasOwnProperty(l)?i[l]=i[l]&&f:i[l]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:i}:{name:t.name,selected:i}}function fF(r){r.registerAction("legendToggleSelect","legendselectchanged",Rt(pu,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Rt(pu,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Rt(pu,"inverseSelect")),r.registerAction("legendSelect","legendselected",Rt(pu,"select")),r.registerAction("legendUnSelect","legendunselected",Rt(pu,"unSelect"))}function AM(r){r.registerComponentModel(vg),r.registerComponentView(CM),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,lF),r.registerSubTypeDefaulter("legend",function(){return"plain"}),fF(r)}var hF=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,n){var a=Xl(e);r.prototype.init.call(this,e,i,n),xx(this,e,a)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),xx(this,this.option,e)},t.type="legend.scroll",t.defaultOption=T_(vg.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}(vg);function xx(r,t,e){var i=r.getOrient(),n=[1,1];n[i.index]=0,Ds(t,e,{type:"box",ignoreSize:!!n})}var bx=_e,Bd=["width","height"],Nd=["x","y"],cF=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new bx),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new bx)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,n,a,o,s,u){var l=this;r.prototype.renderInner.call(this,e,i,n,a,o,s,u);var f=this._controllerGroup,h=i.get("pageIconSize",!0),v=G(h)?h:[h,h];d("pagePrev",0);var c=i.getModel("pageTextStyle");f.add(new Ue({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var _=p+"DataIndex",y=b_(i.get("pageIcons",!0)[i.getOrient().name][g],{onclick:at(l._pageGo,l,_,i,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});y.name=p,f.add(y)}},t.prototype.layoutInner=function(e,i,n,a,o,s){var u=this.getSelectorGroup(),l=e.getOrient().index,f=Bd[l],h=Nd[l],v=Bd[1-l],c=Nd[1-l];o&&Uu("horizontal",u,e.get("selectorItemGap",!0));
39var d=e.get("selectorButtonGap",!0),p=u.getBoundingRect(),g=[-p.x,-p.y],_=ht(n);o&&(_[f]=n[f]-p[f]-d);var y=this._layoutContentAndController(e,a,_,l,f,v,c,h);if(o){if(s==="end")g[l]+=y[f]+d;else{var m=p[f]+d;g[l]-=m,y[h]-=m}y[f]+=p[f]+d,g[1-l]+=y[c]+y[v]/2-p[v]/2,y[v]=Math.max(y[v],p[v]),y[c]=Math.min(y[c],p[c]+g[1-l]),u.x=g[0],u.y=g[1],u.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,i,n,a,o,s,u,l){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;Uu(e.get("orient"),f,e.get("itemGap"),a?n.width:null,a?null:n.height),Uu("horizontal",v,e.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=c[o]>n[o],g=[-c.x,-c.y];i||(g[a]=f[l]);var _=[0,0],y=[-d.x,-d.y],m=it(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var x=e.get("pageButtonPosition",!0);x==="end"?y[a]+=n[o]-d[o]:_[a]+=d[o]+m}y[1-a]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(_),v.setPosition(y);var S={x:0,y:0};if(S[o]=p?n[o]:c[o],S[s]=Math.max(c[s],d[s]),S[u]=Math.min(0,d[u]+y[1-a]),h.__rectSize=n[o],p){var b={x:0,y:0};b[o]=Math.max(n[o]-d[o]-m,0),b[s]=S[s],h.setClipPath(new jt({shape:b})),h.__rectSize=b[o]}else v.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Jr(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),S},t.prototype._pageGo=function(e,i,n){var a=this._getPageInfo(i)[e];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=i[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=n.childOfName("pageText"),o=e.get("pageFormatter"),s=i.pageIndex,u=s!=null?s+1:0,l=i.pageCount;a&&o&&a.setStyle("text",$(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Bd[o],u=Nd[o],l=this._findTargetItemIndex(i),f=n.children(),h=f[l],v=f.length,c=v?1:0,d={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=x(h);d.contentPosition[o]=-p.s;for(var g=l+1,_=p,y=p,m=null;g<=v;++g)m=x(f[g]),(!m&&y.e>_.s+a||m&&!S(m,_.s))&&(y.i>_.i?_=y:_=m,_&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=_.i),++d.pageCount)),y=m;for(var g=l-1,_=p,y=p,m=null;g>=-1;--g)m=x(f[g]),(!m||!S(y,m.s))&&_.i<y.i&&(y=_,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=_.i),++d.pageCount,++d.pageIndex),_=m;return d;function x(b){if(b){var w=b.getBoundingRect(),M=w[u]+b[u];return{s:M,e:M+w[s],i:b.__legendDataIndex}}}function S(b,w){return b.e>=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===e&&(i=s)}),i??a},t.type="legend.scroll",t}(CM);function vF(r){r.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(i)})})}function dF(r){Hi(AM),r.registerComponentModel(hF),r.registerComponentView(cF),vF(r)}function pF(r){Hi(AM),Hi(dF)}var gF=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=T_(ec.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(ec),ey=Bt();function _F(r,t,e){ey(r).coordSysRecordMap.each(function(i){var n=i.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function yF(r,t){for(var e=ey(r).coordSysRecordMap,i=e.keys(),n=0;n<i.length;n++){var a=i[n],o=e.get(a),s=o.dataZoomInfoMap;if(s){var u=t.uid,l=s.get(u);l&&(s.removeKey(u),s.keys().length||PM(e,o))}}}function PM(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function mF(r,t){var e={model:t,containsPoint:Rt(bF,t),dispatchAction:Rt(xF,r),dataZoomInfoMap:null,controller:null},i=e.controller=new _B(r.getZr());return A(["pan","zoom","scrollMove"],function(n){i.on(n,function(a){var o=[];e.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var u=(s.getRange||{})[n],l=u&&u(s.dzReferCoordSysInfo,e.model.mainType,e.controller,a);!s.model.get("disabled",!0)&&l&&o.push({dataZoomId:s.model.id,start:l[0],end:l[1]})}}),o.length&&e.dispatchAction(o)})}),e}function xF(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}
39function bF(r,t,e,i){return r.coordinateSystem.containPoint([e,i])}function SF(r){var t,e="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;i[e+s]>i[e+t]&&(t=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function wF(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var i=ey(e),n=i.coordSysRecordMap||(i.coordSysRecordMap=K());n.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=_M(a);A(o.infoList,function(s){var u=s.model.uid,l=n.get(u)||n.set(u,mF(e,s.model)),f=l.dataZoomInfoMap||(l.dataZoomInfoMap=K());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),n.each(function(a){var o=a.controller,s,u=a.dataZoomInfoMap;if(u){var l=u.keys()[0];l!=null&&(s=u.get(l))}if(!s){PM(n,a);return}var f=SF(u);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),Xc(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var TF=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,i,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),_F(n,e,{pan:at(Fd.pan,this),zoom:at(Fd.zoom,this),scrollMove:at(Fd.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){yF(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(yM),Fd={zoom:function(r,t,e,i){var n=this.range,a=n.slice(),o=r.axisModels[0];if(o){var s=zd[t](null,[i.originX,i.originY],o,e,r),u=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/i.scale,0);a[0]=(a[0]-u)*l+u,a[1]=(a[1]-u)*l+u;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Jc(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,n[0]!==a[0]||n[1]!==a[1])return a}},pan:Sx(function(r,t,e,i,n,a){var o=zd[i]([a.oldX,a.oldY],[a.newX,a.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Sx(function(r,t,e,i,n,a){var o=zd[i]([0,0],[a.scrollDelta,a.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function Sx(r){return function(t,e,i,n){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var u=r(o,s,t,e,i,n);if(Jc(u,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var zd={grid:function(r,t,e,i,n){var a=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,t,e,i,n){var a=e.axis,o={},s=n.model.coordinateSystem,u=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,t,e,i,n){var a=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function MF(r){mM(r),r.registerComponentModel(gF),r.registerComponentView(TF),wF(r)}var CF=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=T_(ec.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}}
39,selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(ec),gu=jt,Tx=7,DF=1,Gd=30,AF=7,_u="horizontal",Mx="vertical",PF=5,IF=["line","bar","candlestick","scatter"],LF={easing:"cubicOut",duration:100,delay:0},kF=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,i){this.api=i,this._onBrush=at(this._onBrush,this),this._onBrushEnd=at(this._onBrushEnd,this)},t.prototype.render=function(e,i,n,a){if(r.prototype.render.apply(this,arguments),Xc(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Zh(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 i=this._displayables.sliderGroup=new _e;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(i),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,i=this.api,n=e.get("brushSelect"),a=n?AF:0,o=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},u=this._orient===_u?{right:s.width-o.x-o.width,top:s.height-Gd-Tx-a,width:o.width,height:Gd}:{right:Tx,top:o.y,width:Gd,height:o.height},l=Xl(e.option);A(["right","top","width","height"],function(h){l[h]==="ph"&&(l[h]=u[h])});var f=Cs(l,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===Mx&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,i=this._location,n=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,u=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===_u&&!o?{scaleY:u?1:-1,scaleX:1}:n===_u&&o?{scaleY:u?1:-1,scaleX:-1}:n===Mx&&!o?{scaleY:u?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:u?-1:1,scaleX:-1,rotation:Math.PI/2});var l=e.getBoundingRect([s]);e.x=i.x-l.x,e.y=i.y-l.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,i=this._size,n=this._displayables.sliderGroup,a=e.get("brushSelect");n.add(new gu({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new gu({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:at(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var i=this._size,n=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),u=s&&o.getDimensionInfo(s)?a.getShadowDim():e.otherDim;if(u==null)return;var l=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||u!==this._shadowDim||i[0]!==n[0]||i[1]!==n[1]){var h=o.getDataExtent(u),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,i[1]],d=[0,i[0]],p=[[i[0],0],[0,0]],g=[],_=d[1]/(o.count()-1),y=0,m=Math.round(o.count()/i[0]),x;o.each([u],function(T,C){if(m>0&&C%m){y+=_;return}var D=T==null||isNaN(T)||T==="",P=D?0:Ne(T,h,c,!0);
39D&&!x&&C?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&x&&(p.push([y,0]),g.push([y,0])),p.push([y,P]),g.push([y,P]),y+=_,x=D}),l=this._shadowPolygonPts=p,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=u,this._shadowSize=[i[0],i[1]];var S=this.dataZoomModel;function b(T){var C=S.getModel(T?"selectedDataBackground":"dataBackground"),D=new _e,P=new vo({shape:{points:l},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new Wl({shape:{points:f},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(P),D.add(L),D}for(var w=0;w<3;w++){var M=b(w===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,i=e.get("showDataShadow");if(i!==!1){var n,a=this.ecModel;return e.eachTargetAxis(function(o,s){var u=e.getAxisProxy(o,s).getTargetSeriesModels();A(u,function(l){if(!n&&!(i!==!0&&Mt(IF,l.get("type"))<0)){var f=a.getComponent(Fn(o),s).axis,h=RF(o),v,c=l.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=l.getData().mapDimension(h),n={thisAxis:f,series:l,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,i=this._displayables,n=i.handles=[null,null],a=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,u=this.dataZoomModel,l=this.api,f=u.get("borderRadius")||0,h=u.get("brushSelect"),v=i.filler=new gu({silent:h,style:{fill:u.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new gu({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:u.get("dataBackgroundColor")||u.get("borderColor"),lineWidth:DF,fill:"rgba(0,0,0,0)"}})),A([0,1],function(m){var x=u.get("handleIcon");!Kh[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var S=go(x,-1,0,2,2,null,!0);S.attr({cursor:Cx(this._orient),draggable:!0,drift:at(this._onDragMove,this,m),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1),z2:5});var b=S.getBoundingRect(),w=u.get("handleSize");this._handleHeight=Ot(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,S.setStyle(u.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=u.getModel(["emphasis","handleStyle"]).getItemStyle(),Vh(S);var M=u.get("handleColor");M!=null&&(S.style.fill=M),o.add(n[m]=S);var T=u.getModel("textStyle");e.add(a[m]=new Ue({silent:!0,invisible:!0,style:dn(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var c=v;if(h){var d=Ot(u.get("moveHandleSize"),s[1]),p=i.moveHandle=new jt({style:u.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,_=i.moveHandleIcon=go(u.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);_.silent=!0,_.y=s[1]+d/2-.5,p.ensureState("emphasis").style=u.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(d,10));c=i.moveZone=new jt({invisible:!0,shape:{y:s[1]-y,height:d+y}}),c.on("mouseover",function(){l.enterEmphasis(p)}).on("mouseout",function(){l.leaveEmphasis(p)}),o.add(p),o.add(_),o.add(c)}c.attr({draggable:!0,cursor:Cx(this._orient),drift:at(this._onDragMove,this,"all"),ondragstart:at(this._showDataInfo,this,!0),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Ne(e[0],[0,100],i,!0),Ne(e[1],[0,100],i,!0)]},t.prototype._updateInterval=function(e,i){var n=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),u=[0,100];Jc(i,a,o,n.get("zoomLock")?"all":e,s.minSpan!=null?Ne(s.minSpan,u,o,!0):null,s.maxSpan!=null?Ne(s.maxSpan,u,o,!0):null);var l=this._range,f=this._range=Za([Ne(a[0],o,u,!0),Ne(a[1],o,u,!0)]);return!l||l[0]!==f[0]||l[1]!==f[1]},t.prototype._updateView=function(e){var i=this._displayables,n=this._handleEnds,a=Za(n.slice()),o=this._size;A([0,1],function(c){var d=i.handles[c],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[c]+(c?-1:1),y:o[1]/2-p/2})}
39,this),i.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var u=i.dataShadowSegs,l=[0,a[0],a[1],o[0]],f=0;f<u.length;f++){var h=u[f],v=h.getClipPath();v||(v=new jt,h.setClipPath(v)),v.setShape({x:l[f],y:0,width:l[f+1]-l[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var i=this.dataZoomModel,n=this._displayables,a=n.handleLabels,o=this._orient,s=["",""];if(i.get("showDetail")){var u=i.findRepresentativeAxisProxy();if(u){var l=u.getAxisModel().axis,f=this._range,h=e?u.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:u.getDataValueWindow();s=[this._formatLabel(h[0],l),this._formatLabel(h[1],l)]}}var v=Za(this._handleEnds.slice());c.call(this,0),c.call(this,1);function c(d){var p=iw(n.handles[d].parent,this.group),g=nw(d===0?"right":"left",p),_=this._handleWidth/2+PF,y=gl([v[d]+(d===0?-_:_),this._size[1]/2],p);a[d].setStyle({x:y[0],y:y[1],verticalAlign:o===_u?"middle":g,align:o===_u?g:"center",text:s[d]})}},t.prototype._formatLabel=function(e,i){var n=this.dataZoomModel,a=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=i.getPixelPrecision());var s=e==null||isNaN(e)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return J(a)?a(e,s):$(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var i=this._displayables,n=i.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),i.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](i.moveHandle,1)},t.prototype._onDragMove=function(e,i,n,a){this._dragging=!0,Ts(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=gl([i,n],o,!0),u=this._updateInterval(e,s[0]),l=this.dataZoomModel.get("realtime");this._updateView(!l),u&&l&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var i=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>i[0]||n[1]<0||n[1]>i[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var i=e.offsetX,n=e.offsetY;this._brushStart=new rt(i,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var n=i.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Za([Ne(n.x,o,s,!0),Ne(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ts(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,i){var n=this._displayables,a=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new gu({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,u=this._displayables.sliderGroup,l=u.transformCoordToLocal(e,i),f=u.transformCoordToLocal(s.x,s.y),h=this._size;l[0]=Math.max(Math.min(h[0],l[0]),0),o.setShape({x:f[0],y:0,width:l[0]-f[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?LF:null,start:i[0],end:i[1]})},t.prototype._findCoordRect=function(){var e,i=_M(this.dataZoomModel).infoList;if(!e&&i.length){var n=i[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(yM);function RF(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function Cx(r){return r==="vertical"?"ns-resize":"ew-resize"}function EF(r){r.registerComponentModel(CF),r.registerComponentView(kF),mM(r)}function OF(r){Hi(MF),Hi(EF)}var Dx={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},BF=function(){function r(t){var e=this._condVal=$(t)?new RegExp(t):iA(t)?t:null;if(e==null){var i="";Tt(i)}}return r.prototype.evaluate=function(t){var e=typeof t;return $(e)?this._condVal.test(t):Vt(e)?this._condVal.test(t+""):!1},r}(),NF=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),FF=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),zF=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),GF=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),VF=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,i=e(this.valueGetterParam),n=t?this.valueParser(i):null,a=0;a<this.subCondList.length;
39a++)if(!this.subCondList[a].evaluate(t?n:i))return!1;return!0},r}();function ry(r,t){if(r===!0||r===!1){var e=new NF;return e.value=r,e}var i="";return IM(r)||Tt(i),r.and?Ax("and",r,t):r.or?Ax("or",r,t):r.not?HF(r,t):WF(r,t)}function Ax(r,t,e){var i=t[r],n="";G(i)||Tt(n),i.length||Tt(n);var a=r==="and"?new FF:new zF;return a.children=Y(i,function(o){return ry(o,e)}),a.children.length||Tt(n),a}function HF(r,t){var e=r.not,i="";IM(e)||Tt(i);var n=new GF;return n.child=ry(e,t),n.child||Tt(i),n}function WF(r,t){for(var e="",i=t.prepareGetValue(r),n=[],a=Gt(r),o=r.parser,s=o?Gw(o):null,u=0;u<a.length;u++){var l=a[u];if(!(l==="parser"||t.valueGetterAttrMap.get(l))){var f=hn(Dx,l)?Dx[l]:l,h=r[l],v=s?s(h):h,c=lk(f,v)||f==="reg"&&new BF(v);c||Tt(e),n.push(c)}}n.length||Tt(e);var d=new VF;return d.valueGetterParam=i,d.valueParser=s,d.getValue=t.getValue,d.subCondList=n,d}function IM(r){return Z(r)&&!ar(r)}var YF=function(){function r(t,e){this._cond=ry(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function UF(r,t){return new YF(r,t)}var XF={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,i=UF(r.config,{valueGetterAttrMap:K({dimension:!0}),prepareGetValue:function(s){var u="",l=s.dimension;hn(s,"dimension")||Tt(u);var f=t.getDimensionInfo(l);return f||Tt(u),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),n=[],a=0,o=t.count();a<o;a++)e=t.getRawDataItem(a),i.evaluate()&&n.push(e);return{data:n}}},$F={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,i="",n=ue(e);n.length||Tt(i);var a=[];A(n,function(f){var h=f.dimension,v=f.order,c=f.parser,d=f.incomparable;if(h==null&&Tt(i),v!=="asc"&&v!=="desc"&&Tt(i),d&&d!=="min"&&d!=="max"){var p="";Tt(p)}if(v!=="asc"&&v!=="desc"){var g="";Tt(g)}var _=t.getDimensionInfo(h);_||Tt(i);var y=c?Gw(c):null;c&&!y&&Tt(i),a.push({dimIdx:_.index,parser:y,comparator:new Hw(v,d)})});var o=t.sourceFormat;o!==or&&o!==yi&&Tt(i);for(var s=[],u=0,l=t.count();u<l;u++)s.push(t.getRawDataItem(u));return s.sort(function(f,h){for(var v=0;v<a.length;v++){var c=a[v],d=t.retrieveValueFromItem(f,c.dimIdx),p=t.retrieveValueFromItem(h,c.dimIdx);c.parser&&(d=c.parser(d),p=c.parser(p));var g=c.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function ZF(r){r.registerTransform(XF),r.registerTransform($F)}var Ci=ra.CMD;function ns(r,t){return Math.abs(r-t)<1e-5}function _g(r){var t=r.data,e=r.len(),i=[],n,a=0,o=0,s=0,u=0;function l(L,k){n&&n.length>2&&i.push(n),n=[L,k]}function f(L,k,R,E){ns(L,R)&&ns(k,E)||n.push(L,k,R,E,R,E)}function h(L,k,R,E,B,z){var H=Math.abs(k-L),I=Math.tan(H/4)*4/3,U=k<L?-1:1,tt=Math.cos(L),gt=Math.sin(L),j=Math.cos(k),ct=Math.sin(k),Ht=tt*B+R,Lt=gt*z+E,Wt=j*B+R,Ct=ct*z+E,Et=B*I*U,X=z*I*U;n.push(Ht-Et*gt,Lt+X*tt,Wt+Et*ct,Ct-X*j,Wt,Ct)}for(var v,c,d,p,g=0;g<e;){var _=t[g++],y=g===1;switch(y&&(a=t[g],o=t[g+1],s=a,u=o,(_===Ci.L||_===Ci.C||_===Ci.Q)&&(n=[s,u])),_){case Ci.M:a=s=t[g++],o=u=t[g++],l(s,u);break;case Ci.L:v=t[g++],c=t[g++],f(a,o,v,c),a=v,o=c;break;case Ci.C:n.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case Ci.Q:v=t[g++],c=t[g++],d=t[g++],p=t[g++],n.push(a+2/3*(v-a),o+2/3*(c-o),d+2/3*(v-d),p+2/3*(c-p),d,p),a=d,o=p;break;case Ci.A:var m=t[g++],x=t[g++],S=t[g++],b=t[g++],w=t[g++],M=t[g++]+w;g+=1;var T=!t[g++];v=Math.cos(w)*S+m,c=Math.sin(w)*b+x,y?(s=v,u=c,l(s,u)):f(a,o,v,c),a=Math.cos(M)*S+m,o=Math.sin(M)*b+x;for(var C=(T?-1:1)*Math.PI/2,D=w;T?D>M:D<M;D+=C){var P=T?Math.max(D+C,M):Math.min(D+C,M);h(D,P,m,x,S,b)}break;case Ci.R:s=a=t[g++],u=o=t[g++],v=s+t[g++],c=u+t[g++],l(v,u),f(v,u,v,c),f(v,c,s,c),f(s,c,s,u),f(s,u,v,u);break;case Ci.Z:n&&f(a,o,s,u),a=s,o=u;break}}return n&&n.length>2&&i.push(n),i}function yg(r,t,e,i,n,a,o,s,u,l){if(ns(r,e)&&ns(t,i)&&ns(n,o)&&ns(a,s)){u.push(o,s);return}var f=2/l,h=f*f,v=o-r,c=s-t,d=Math.sqrt(v*v+c*c);v/=d,c/=d;var p=e-r,g=i-t,_=n-o,y=a-s,m=p*p+g*g,x=_*_+y*y;if(m<h&&x<h){u.push(o,s);return}var S=v*p+c*g,b=-v*_-c*y,w=m-S*S,M=x-b*b;if(w<h&&S>=0&&M<h&&b>=0){u.push(o,s);return}var T=[],C=[];ta(r,e,n,o,.5,T),ta(t,i,a,s,.5,C),yg(T[0],C[0],T[1],C[1],T[2],C[2],T[3],C[3],u,l),yg(T[4],C[4],T[5],C[5],T[6],C[6],T[7],C[7],u,l)}function qF(r,t){var e=_g(r),i=[];t=t||1;for(var n=0;n<e.length;n++){var a=e[n],o=[],s=a[0],u=a[1];o.push(s,u);for(var l=2;l<a.length;){var f=a[l++],h=a[l++],v=a[l++],c=a[l++],d=a[l++],p=a[l++];yg(s,u,f,h,v,c,d,p,o,t),s=d,u=p}i.push(o)}return i}function LM(r,t,e){var i=r[t],n=r[1-t],a=Math.abs(i/n),o=Math.ceil(Math.sqrt(a*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var u=[],l=0;l<o;l++)u.push(s);var f=o*s,h=e-f;if(h>0)for(var l=0;l<h;l++)u[l%o]+=1;return u}function Px(r,t,e){for(var i=r.r0,n=r.r,a=r.startAngle,o=r.endAngle,s=Math.abs(o-a),u=s*n,l=n-i,f=u>Math.abs(l),h=LM([u,l],f?0:1,t),v=(f?s:l)/h.length,c=0;c<h.length;c++)for(var d=(f?l:s)/h[c],p=0;p<h[c];p++){var g={};f?(g.startAngle=a+v*c,g.endAngle=a+v*(c+1),g.r0=i+d*p,g.r=i+d*(p+1)):(g.startAngle=a+d*p,g.endAngle=a+d*(p+1),g.r0=i+v*c,g.r=i+v*(c+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,e.push(g)}}function KF(r,t,e){for(var i=r.width,n=r.height,a=i>n,o=LM([i,n],a?0:1,t),s=a?"width":"height",u=a?"height":"width",l=a?"x":"y",f=a?"y":"x",h=r[s]/o.length,v=0;v<o.length;v++)for(var c=r[u]/o[v],d=0;d<o[v];d++){var p={};p[l]=v*h,p[f]=d*c,p[s]=h,p[u]=c,p.x+=r.x,p.y+=r.y,e.push(p)}}function Ix(r,t,e,i){return r*i-e*t}function QF(r,t,e,i,n,a,o,s){var u=e-r,l=i-t,f=o-n,h=s-a,v=Ix(f,h,u,l);if(Math.abs(v)<1e-6)return null;var c=r-n,d=t-a,p=Ix(c,d,f,h)/v;return p<0||p>1?null:new rt(p*u+r,p*l+t)}function jF(r,t,e){var i=new rt;rt.sub(i,e,t),i.normalize();var n=new rt;rt.sub(n,r,t);var a=n.dot(i);return a}function Wo(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function JF(r,t,e){for(var i=r.length,n=[],a=0;a<i;a++){var o=r[a],s=r[(a+1)%i],u=QF(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);u&&n.push({projPt:jF(u,t,e),pt:u,idx:a})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(g,_){return g.projPt-_.projPt});var l=n[0],f=n[n.length-1];if(f.idx<l.idx){var h=l;l=f,f=h}for(var v=[l.pt.x,l.pt.y],c=[f.pt.x,f.pt.y],d=[v],p=[c],a=l.idx+1;
39a<=f.idx;a++)Wo(d,r[a].slice());Wo(d,c),Wo(d,v);for(var a=f.idx+1;a<=l.idx+i;a++)Wo(p,r[a%i].slice());return Wo(p,v),Wo(p,c),[{points:d},{points:p}]}function Lx(r){var t=r.points,e=[],i=[];AS(t,e,i);var n=new At(e[0],e[1],i[0]-e[0],i[1]-e[1]),a=n.width,o=n.height,s=n.x,u=n.y,l=new rt,f=new rt;return a>o?(l.x=f.x=s+a/2,l.y=u,f.y=u+o):(l.y=f.y=u+o/2,l.x=s,f.x=s+a),JF(t,l,f)}function nc(r,t,e,i){if(e===1)i.push(t);else{var n=Math.floor(e/2),a=r(t);nc(r,a[0],n,i),nc(r,a[1],e-n,i)}return i}function t5(r,t){for(var e=[],i=0;i<t;i++)e.push(g_(r));return e}function e5(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function r5(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function i5(r,t){var e=[],i=r.shape,n;switch(r.type){case"rect":KF(i,t,e),n=jt;break;case"sector":Px(i,t,e),n=Ms;break;case"circle":Px({r0:0,r:i.r,startAngle:0,endAngle:Math.PI*2,cx:i.cx,cy:i.cy},t,e),n=Ms;break;default:var a=r.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Y(qF(r.getUpdatedPathProxy(),o),function(_){return r5(_)}),u=s.length;if(u===0)nc(Lx,{points:s[0]},t,e);else if(u===t)for(var l=0;l<u;l++)e.push({points:s[l]});else{var f=0,h=Y(s,function(_){var y=[],m=[];AS(_,y,m);var x=(m[1]-y[1])*(m[0]-y[0]);return f+=x,{poly:_,area:x}});h.sort(function(_,y){return y.area-_.area});for(var v=t,l=0;l<u;l++){var c=h[l];if(v<=0)break;var d=l===u-1?v:Math.ceil(c.area/f*t);d<0||(nc(Lx,{points:c.poly},d,e),v-=d)}}n=vo;break}if(!n)return t5(r,t);for(var p=[],l=0;l<e.length;l++){var g=new n;g.setShape(e[l]),e5(r,g),p.push(g)}return p}function n5(r,t){var e=r.length,i=t.length;if(e===i)return[r,t];for(var n=[],a=[],o=e<i?r:t,s=Math.min(e,i),u=Math.abs(i-e)/6,l=(s-2)/6,f=Math.ceil(u/l)+1,h=[o[0],o[1]],v=u,c=2;c<s;){var d=o[c-2],p=o[c-1],g=o[c++],_=o[c++],y=o[c++],m=o[c++],x=o[c++],S=o[c++];if(v<=0){h.push(g,_,y,m,x,S);continue}for(var b=Math.min(v,f-1)+1,w=1;w<=b;w++){var M=w/b;ta(d,g,y,x,M,n),ta(p,_,m,S,M,a),d=n[3],p=a[3],h.push(n[1],a[1],n[2],a[2],d,p),g=n[5],_=a[5],y=n[6],m=a[6]}v-=b-1}return o===r?[h,t]:[r,h]}function kx(r,t){for(var e=r.length,i=r[e-2],n=r[e-1],a=[],o=0;o<t.length;)a[o++]=i,a[o++]=n;return a}function a5(r,t){for(var e,i,n,a=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var u=r[s],l=t[s],f=void 0,h=void 0;u?l?(e=n5(u,l),f=e[0],h=e[1],i=f,n=h):(h=kx(n||u,u),f=u):(f=kx(i||l,l),h=l),a.push(f),o.push(h)}return[a,o]}function Rx(r){for(var t=0,e=0,i=0,n=r.length,a=0,o=n-2;a<n;o=a,a+=2){var s=r[o],u=r[o+1],l=r[a],f=r[a+1],h=s*f-l*u;t+=h,e+=(s+l)*h,i+=(u+f)*h}return t===0?[r[0]||0,r[1]||0]:[e/t/3,i/t/3,t]}function o5(r,t,e,i){for(var n=(r.length-2)/6,a=1/0,o=0,s=r.length,u=s-2,l=0;l<n;l++){for(var f=l*6,h=0,v=0;v<s;v+=2){var c=v===0?f:(f+v-2)%u+2,d=r[c]-e[0],p=r[c+1]-e[1],g=t[v]-i[0],_=t[v+1]-i[1],y=g-d,m=_-p;h+=y*y+m*m}h<a&&(a=h,o=l)}return o}function s5(r){for(var t=[],e=r.length,i=0;i<e;i+=2)t[i]=r[e-i-2],t[i+1]=r[e-i-1];return t}function u5(r,t,e,i){for(var n=[],a,o=0;o<r.length;o++){var s=r[o],u=t[o],l=Rx(s),f=Rx(u);a==null&&(a=l[2]<0!=f[2]<0);var h=[],v=[],c=0,d=1/0,p=[],g=s.length;a&&(s=s5(s));for(var _=o5(s,u,l,f)*6,y=g-2,m=0;m<y;m+=2){var x=(_+m)%y+2;h[m+2]=s[x]-l[0],h[m+3]=s[x+1]-l[1]}h[0]=s[_]-l[0],h[1]=s[_+1]-l[1];for(var S=i/e,b=-i/2;b<=i/2;b+=S){for(var w=Math.sin(b),M=Math.cos(b),T=0,m=0;m<s.length;m+=2){var C=h[m],D=h[m+1],P=u[m]-f[0],L=u[m+1]-f[1],k=P*M-L*w,R=P*w+L*M;p[m]=k,p[m+1]=R;var E=k-C,B=R-D;T+=E*E+B*B}if(T<d){d=T,c=b;for(var z=0;z<p.length;z++)v[z]=p[z]}}n.push({from:h,to:v,fromCp:l,toCp:f,rotation:-c})}return n}function ac(r){return r.__isCombineMorphing}var kM="__mOriginal_";function oc(r,t,e){var i=kM+t,n=r[i]||r[t];r[i]||(r[i]=r[t]);var a=e.replace,o=e.after,s=e.before;r[t]=function(){var u=arguments,l;return s&&s.apply(this,u),a?l=a.apply(this,u):l=n.apply(this,u),o&&o.apply(this,u),l}}function Ku(r,t){var e=kM+t;r[e]&&(r[t]=r[e],r[e]=null)}function Ex(r,t){for(var e=0;e<r.length;e++)for(var i=r[e],n=0;n<i.length;){var a=i[n],o=i[n+1];i[n++]=t[0]*a+t[2]*o+t[4],i[n++]=t[1]*a+t[3]*o+t[5]}}function RM(r,t){var e=r.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),n=a5(_g(e),_g(i)),a=n[0],o=n[1],s=r.getComputedTransform(),u=t.getComputedTransform();function l(){this.transform=null}s&&Ex(a,s),u&&Ex(o,u),oc(t,"updateTransform",{replace:l}),t.transform=null;var f=u5(a,o,10,Math.PI),h=[];oc(t,"buildPath",{replace:function(v){for(var c=t.__morphT,d=1-c,p=[],g=0;g<f.length;g++){var _=f[g],y=_.from,m=_.to,x=_.rotation*c,S=_.fromCp,b=_.toCp,w=Math.sin(x),M=Math.cos(x);nh(p,S,b,c);for(var T=0;T<y.length;T+=2){var C=y[T],D=y[T+1],P=m[T],L=m[T+1],k=C*d+P*c,R=D*d+L*c;h[T]=k*M-R*w+p[0],h[T+1]=k*w+R*M+p[1]}var E=h[0],B=h[1];v.moveTo(E,B);for(var T=2;T<y.length;){var P=h[T++],L=h[T++],z=h[T++],H=h[T++],I=h[T++],U=h[T++];E===P&&B===L&&z===I&&H===U?v.lineTo(I,U):v.bezierCurveTo(P,L,z,H,I,U),E=I,B=U}}}})}function iy(r,t,e){if(!r||!t)return t;var i=e.done,n=e.during;RM(r,t),t.__morphT=0;function a(){Ku(t,"buildPath"),Ku(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},yt({during:function(o){t.dirtyShape(),n&&n(o)},done:function(){a(),i&&i()}},e)),t}function l5(r,t,e,i,n,a){var o=16;r=n===e?0:Math.round(32767*(r-e)/(n-e)),t=a===i?0:Math.round(32767*(t-i)/(a-i));for(var s=0,u,l=(1<<o)/2;l>0;l/=2){var f=0,h=0;(r&l)>0&&(f=1),(t&l)>0&&(h=1),s+=l*l*(3*f^h),h===0&&(f===1&&(r=l-1-r,t=l-1-t),u=r,r=t,t=u)}return s}function sc(r){var t=1/0,e=1/0,i=-1/0,n=-1/0,a=Y(r,function(s){var u=s.getBoundingRect
39(),l=s.getComputedTransform(),f=u.x+u.width/2+(l?l[4]:0),h=u.y+u.height/2+(l?l[5]:0);return t=Math.min(f,t),e=Math.min(h,e),i=Math.max(f,i),n=Math.max(h,n),[f,h]}),o=Y(a,function(s,u){return{cp:s,z:l5(s[0],s[1],t,e,i,n),path:r[u]}});return o.sort(function(s,u){return s.z-u.z}).map(function(s){return s.path})}function EM(r){return i5(r.path,r.count)}function mg(){return{fromIndividuals:[],toIndividuals:[],count:0}}function f5(r,t,e){var i=[];function n(S){for(var b=0;b<S.length;b++){var w=S[b];ac(w)?n(w.childrenRef()):w instanceof wt&&i.push(w)}}n(r);var a=i.length;if(!a)return mg();var o=e.dividePath||EM,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),mg();i=sc(i),s=sc(s);for(var u=e.done,l=e.during,f=e.individualDelay,h=new Gl,v=0;v<a;v++){var c=i[v],d=s[v];d.parent=t,d.copyTransform(h),f||RM(c,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(S){for(var b=0;b<s.length;b++)s[b].addSelfToZr(S)}oc(t,"addSelfToZr",{after:function(S){p(S)}}),oc(t,"removeSelfFromZr",{after:function(S){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(S)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Ku(t,"addSelfToZr"),Ku(t,"removeSelfFromZr")}var _=s.length;if(f)for(var y=_,m=function(){y--,y===0&&(g(),u&&u())},v=0;v<_;v++){var x=f?yt({delay:(e.delay||0)+f(v,_,i[v],s[v]),done:m},e):e;iy(i[v],s[v],x)}else t.__morphT=0,t.animateTo({__morphT:1},yt({during:function(S){for(var b=0;b<_;b++){var w=s[b];w.__morphT=t.__morphT,w.dirtyShape()}l&&l(S)},done:function(){g();for(var S=0;S<r.length;S++)Ku(r[S],"updateTransform");u&&u()}},e));return t.__zr&&p(t.__zr),{fromIndividuals:i,toIndividuals:s,count:_}}function h5(r,t,e){var i=t.length,n=[],a=e.dividePath||EM;function o(c){for(var d=0;d<c.length;d++){var p=c[d];ac(p)?o(p.childrenRef()):p instanceof wt&&n.push(p)}}if(ac(r)){o(r.childrenRef());var s=n.length;if(s<i)for(var u=0,l=s;l<i;l++)n.push(g_(n[u++%s]));n.length=i}else{n=a({path:r,count:i});for(var f=r.getComputedTransform(),l=0;l<n.length;l++)n[l].setLocalTransform(f);if(n.length!==i)return console.error("Invalid morphing: unmatched splitted path"),mg()}n=sc(n),t=sc(t);for(var h=e.individualDelay,l=0;l<i;l++){var v=h?yt({delay:(e.delay||0)+h(l,i,n[l],t[l])},e):e;iy(n[l],t[l],v)}return{fromIndividuals:n,toIndividuals:t,count:t.length}}function Ox(r){return G(r[0])}function Bx(r,t){for(var e=[],i=r.length,n=0;n<i;n++)e.push({one:r[n],many:[]});for(var n=0;n<t.length;n++){var a=t[n].length,o=void 0;for(o=0;o<a;o++)e[o%i].many.push(t[n][o])}for(var s=0,n=i-1;n>=0;n--)if(!e[n].many.length){var u=e[s].many;if(u.length<=1)if(s)s=0;else return e;var a=u.length,l=Math.ceil(a/2);e[n].many=u.slice(l,a),e[s].many=u.slice(0,l),s++}return e}var c5={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),i=0;i<r.count;i++){var n=g_(r.path);n.setStyle("opacity",e),t.push(n)}return t},split:null};function Vd(r,t,e,i,n,a){if(!r.length||!t.length)return;var o=Ec("update",i,n);if(!(o&&o.duration>0))return;var s=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o),l,f;Ox(r)&&(l=r,f=t),Ox(t)&&(l=t,f=r);function h(_,y,m,x,S){var b=_.many,w=_.one;if(b.length===1&&!S){var M=y?b[0]:w,T=y?w:b[0];if(ac(M))h({many:[M],one:T},!0,m,x,!0);else{var C=s?yt({delay:s(m,x)},u):u;iy(M,T,C),a(M,T,M,T,C)}}else for(var D=yt({dividePath:c5[e],individualDelay:s&&function(B,z,H,I){return s(B+m,x)}},u),P=y?f5(b,w,D):h5(w,b,D),L=P.fromIndividuals,k=P.toIndividuals,R=L.length,E=0;E<R;E++){var C=s?yt({delay:s(E,R)},u):u;a(L[E],k[E],y?b[E]:_.one,y?_.one:b[E],C)}}for(var v=l?l===r:r.length>t.length,c=l?Bx(f,l):Bx(v?t:r,[v?r:t]),d=0,p=0;p<c.length;p++)d+=c[p].many.length;for(var g=0,p=0;p<c.length;p++)h(c[p],v,g,d),g+=c[p].many.length}function Wa(r){if(!r)return[];if(G(r)){for(var t=[],e=0;e<r.length;e++)t.push(Wa(r[e]));return t}var i=[];return r.traverse(function(n){n instanceof wt&&!n.disableMorphing&&!n.invisible&&!n.ignore&&i.push(n)}),i}var OM=1e4,v5=0,Nx=1,Fx=2,d5=Bt();function p5(r,t){for(var e=r.dimensions,i=0;i<e.length;i++){var n=r.getDimensionInfo(e[i]);if(n&&n.otherDims[t]===0)return e[i]}}function g5(r,t,e){var i=r.getDimensionInfo(e),n=i&&i.ordinalMeta;if(i){var a=r.get(i.name,t);return n&&n.categories[a]||a+""}}function zx(r,t,e,i){var n=i?"itemChildGroupId":"itemGroupId",a=
39p5(r,n);if(a){var o=g5(r,t,a);return o}var s=r.getRawDataItem(t),u=i?"childGroupId":"groupId";if(s&&s[u])return s[u]+"";if(!i)return e||r.getId(t)}function Gx(r){var t=[];return A(r,function(e){var i=e.data,n=e.dataGroupId;if(!(i.count()>OM))for(var a=i.getIndices(),o=0;o<a.length;o++)t.push({data:i,groupId:zx(i,o,n,!1),childGroupId:zx(i,o,n,!0),divide:e.divide,dataIndex:o})}),t}function Hd(r,t,e){r.traverse(function(i){i instanceof wt&&ia(i,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function Wd(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function Yo(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function _5(r,t,e){var i=Ec("update",e,t);i&&r.traverse(function(n){if(n instanceof zs){var a=NI(n);a&&n.animateFrom({style:a},i)}})}function y5(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++){var n=r[i],a=t[i];if(n.data.getId(n.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function BM(r,t,e){var i=Gx(r),n=Gx(t);function a(m,x,S,b,w){(S||m)&&x.animateFrom({style:S&&S!==m?N(N({},S.style),m.style):m.style},w)}var o=!1,s=v5,u=K(),l=K();i.forEach(function(m){m.groupId&&u.set(m.groupId,!0),m.childGroupId&&l.set(m.childGroupId,!0)});for(var f=0;f<n.length;f++){var h=n[f].groupId;if(l.get(h)){s=Nx;break}var v=n[f].childGroupId;if(v&&u.get(v)){s=Fx;break}}function c(m,x){return function(S){var b=S.data,w=S.dataIndex;return x?b.getId(w):m?s===Nx?S.childGroupId:S.groupId:s===Fx?S.childGroupId:S.groupId}}var d=y5(i,n),p={};if(!d)for(var f=0;f<n.length;f++){var g=n[f],_=g.data.getItemGraphicEl(g.dataIndex);_&&(p[_.id]=!0)}function y(m,x){var S=i[x],b=n[m],w=b.data.hostModel,M=S.data.getItemGraphicEl(S.dataIndex),T=b.data.getItemGraphicEl(b.dataIndex);if(M===T){T&&_5(T,b.dataIndex,w);return}M&&p[M.id]||T&&(Yo(T),M?(Yo(M),Wd(M),o=!0,Vd(Wa(M),Wa(T),b.divide,w,m,a)):Hd(T,w,m))}new eg(i,n,c(!0,d),c(!1,d),null,"multiple").update(y).updateManyToOne(function(m,x){var S=n[m],b=S.data,w=b.hostModel,M=b.getItemGraphicEl(S.dataIndex),T=Kt(Y(x,function(C){return i[C].data.getItemGraphicEl(i[C].dataIndex)}),function(C){return C&&C!==M&&!p[C.id]});M&&(Yo(M),T.length?(A(T,function(C){Yo(C),Wd(C)}),o=!0,Vd(Wa(T),Wa(M),S.divide,w,m,a)):Hd(M,w,S.dataIndex))}).updateOneToMany(function(m,x){var S=i[x],b=S.data.getItemGraphicEl(S.dataIndex);if(!(b&&p[b.id])){var w=Kt(Y(m,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==b}),M=n[m[0]].data.hostModel;w.length&&(A(w,function(T){return Yo(T)}),b?(Yo(b),Wd(b),o=!0,Vd(Wa(b),Wa(w),S.divide,M,m[0],a)):A(w,function(T){return Hd(T,M,m[0])}))}}).updateManyToMany(function(m,x){new eg(x,m,function(S){return i[S].data.getId(i[S].dataIndex)},function(S){return n[S].data.getId(n[S].dataIndex)}).update(function(S,b){y(m[S],x[b])}).execute()}).execute(),o&&A(t,function(m){var x=m.data,S=x.hostModel,b=S&&e.getViewOfSeriesModel(S),w=Ec("update",S,0);b&&S.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(M){M instanceof wt&&!M.animators.length&&M.animateFrom({style:{opacity:0}},w)})})}function Vx(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Hx(r){return G(r)?r.sort().join(","):r}function En(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function m5(r,t){var e=K(),i=K(),n=K();return A(r.oldSeries,function(a,o){var s=r.oldDataGroupIds[o],u=r.oldData[o],l=Vx(a),f=Hx(l);i.set(f,{dataGroupId:s,data:u}),G(l)&&A(l,function(h){n.set(h,{key:f,dataGroupId:s,data:u})})}),A(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),u=Vx(a),l=Hx(u),f=i.get(l);if(f)e.set(l,{oldSeries:[{dataGroupId:f.dataGroupId,divide:En(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:En(s),data:s}]});else if(G(u)){var h=[];A(u,function(d){var p=i.get(d);p.data&&h.push({dataGroupId:p.dataGroupId,divide:En(p.data),data:p.data})}),h.length&&e.set(l,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:En(s)}]})}else{var v=n.get(u);if(v){var c=e.get(v.key);c||(c={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:En(v.data)}],newSeries:[]},e.set(v.key,c)),c.newSeries.push({dataGroupId:o,data:s,divide:En(s)})}}}}),e}function Wx(r,t){for(var e=0;e<r.length;e++){var i=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(i)return e}}function x5(r,t,e,i){var n=[],a=[];A(ue(r.from),function(o){var s=Wx(t.oldSeries,o);s>=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:En(t.oldData[s]),groupIdDim:o.dimension})}),A(ue(r.to),function(o){var s=Wx(e.updatedSeries,o);if(s>=0){var u=e.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:u,divide:En(u),groupIdDim:o.dimension})}}),n.length>0&&a.length>0&&BM(n,a,i)}function b5(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,
39i){A(ue(i.seriesTransition),function(n){A(ue(n.to),function(a){for(var o=i.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][gh]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,i){var n=d5(e);if(n.oldSeries&&i.updatedSeries&&i.optionChanged){var a=i.seriesTransition;if(a)A(ue(a),function(c){x5(c,n,i,e)});else{var o=m5(n,i);A(o.keys(),function(c){var d=o.get(c);BM(d.oldSeries,d.newSeries,e)})}A(i.updatedSeries,function(c){c[gh]&&(c[gh]=!1)})}for(var s=t.getSeries(),u=n.oldSeries=[],l=n.oldDataGroupIds=[],f=n.oldData=[],h=0;h<s.length;h++){var v=s[h].getData();v.count()<OM&&(u.push(s[h]),l.push(s[h].get("dataGroupId")),f.push(v))}})}function Yx(r,t,e){var i=Os.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}var Yd=function(r){F(t,r);function t(e,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||Nh,typeof e=="string"?o=Yx(e,i,n):Z(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(Yb(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return 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=Yx("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new At(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var m=new At(0,0,0,0);m.copy(y),o.push(m)}else{for(var x=!1,S=1/0,b=0,w=0;w<o.length;++w){var M=o[w];if(M.intersect(y)){var T=new At(0,0,0,0);T.copy(M),T.union(y),o[w]=T,x=!0;break}else if(u){l.copy(y),l.union(M);var C=y.width*y.height,D=M.width*M.height,P=l.width*l.height,L=P-C-D;L<S&&(S=L,b=w)}}if(u&&(o[b].union(y),x=!0),!x){var m=new At(0,0,0,0);m.copy(y),o.push(m)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var v=e[h];if(v){var c=v.shouldBePainted(n,a,!0,!0),d=v.__isRendered&&(v.__dirty&Ar||!c)?v.getPrevPaintRect():null;d&&f(d);var p=c&&(v.__dirty&Ar||!v.__isRendered)?v.getPaintRect():null;p&&f(p)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var v=i[h],c=v&&v.shouldBePainted(n,a,!0,!0);if(v&&(!c||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var _=h+1;_<o.length;)o[h].intersect(o[_])?(g=!0,o[h].union(o[_]),o.splice(_,1)):_++;h++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=i+"px"),a.width=e*n,a.height=i*n,s&&(s.width=e*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,i,n){var a=this.dom,o=this.ctx,s=a.width,u=a.height;i=i||this.clearColor;var l=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,v=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,u/h));var c=this.domBack;function d(p,g,_,y){if(o.clearRect(p,g,_,y),i&&i!=="transparent"){var m=void 0;if(bc(i)){var x=i.global||i.__width===_&&i.__height===y;m=x&&i.__canvasGradient||qp(o,i,{x:0,y:0,width:_,height:y}),i.__canvasGradient=m,i.__width=_,i.__height=y}else rA(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,m=Kp(o,i,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));
39o.save(),o.fillStyle=m||i,o.fillRect(p,g,_,y),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(c,p,g,_,y),o.restore())}!n||l?d(0,0,s,u):n.length&&A(n,function(p){d(p.x*h,p.y*h,p.width*h,p.height*h)})},t}(gi),Ux=1e5,za=314159,Vf=.01,S5=.001;function w5(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function T5(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var M5=function(){function r(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=N({},i||{}),this.dpr=i.devicePixelRatio||Nh,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Yb(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var f=t,h=f.width,v=f.height;i.width!=null&&(h=i.width),i.height!=null&&(v=i.height),this.dpr=i.devicePixelRatio||1,f.width=h*this.dpr,f.height=v*this.dpr,this._width=h,this._height=v;var c=new Yd(f,this,this.dpr);c.__builtin__=!0,c.initContext(),u[za]=c,c.zlevel=za,s.push(za),this._domRoot=t}else{this._width=Tf(t,0,i),this._height=Tf(t,1,i);var l=this._domRoot=T5(this._width,this._height);t.appendChild(l)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=a===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(Ux)),a||(a=i.ctx,a.save()),Qa(a,s,n,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Ux)},r.prototype.paintOne=function(t,e){fT(t,e)},r.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;Rh(function(){u._paintList(t,e,i,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(za).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},r.prototype._doPaintList=function(t,e,i){for(var n=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||i)&&a.push(l)}for(var f=!0,h=!1,v=function(p){var g=a[p],_=g.ctx,y=o&&g.createRepaintRects(t,e,c._width,c._height),m=i?g.__startIndex:g.__drawIndex,x=!i&&g.incremental&&Date.now,S=x&&Date.now(),b=g.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,b,y);else if(m===g.__startIndex){var w=t[m];(!w.incremental||!w.notClear||i)&&g.clear(!1,b,y)}m===-1&&(console.error("For some unknown reason. drawIndex is -1"),m=g.__startIndex);var M,T=function(L){var k={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(M=m;M<g.__endIndex;M++){var R=t[M];if(R.__inHover&&(h=!0),n._doPaintEl(R,g,o,L,k,M===g.__endIndex-1),x){var E=Date.now()-S;if(E>15)break}}
39k.prevElClipPaths&&_.restore()};if(y)if(y.length===0)M=g.__endIndex;else for(var C=c.dpr,D=0;D<y.length;++D){var P=y[D];_.save(),_.beginPath(),_.rect(P.x*C,P.y*C,P.width*C,P.height*C),_.clip(),T(P),_.restore()}else _.save(),T(),_.restore();g.__drawIndex=M,g.__drawIndex<g.__endIndex&&(f=!1)},c=this,d=0;d<a.length;d++)v(d);return nt.wxa&&A(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,i,n,a,o){var s=e.ctx;if(i){var u=t.getPaintRect();(!n||u&&u.intersect(n))&&(Qa(s,t,a,o),t.setPrevPaintRect(u))}else Qa(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=za);var i=this._layers[t];return i||(i=new Yd("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?bt(i,this._layerConfig[t],!0):this._layerConfig[t-Vf]&&bt(i,this._layerConfig[t-Vf],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},r.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,u=-1;if(!i[t]&&w5(e)){if(a>0&&t>n[0]){for(u=0;u<a-1&&!(n[u]<t&&n[u+1]>t);u++);s=i[n[u]]}if(n.splice(u+1,0,t),i[t]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,v){h.__dirty=h.__used=!1});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,u;for(u=0;
39u<t.length;u++){var n=t[u],l=n.zlevel,f=void 0;s!==l&&(s=l,o=0),n.incremental?(f=this.getLayer(l+S5,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?Vf:0),this._needsManuallyCompositing),f.__builtin__||Kg("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,e(u),a=f),n.__dirty&Ar&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(u),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?bt(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+Vf){var o=this._layers[a];bt(o,i[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(Mt(i,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=Tf(a,0,n),e=Tf(a,1,n),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(za).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[za].dom;var e=new Yd("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,n,a):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];Qa(i,f,o,u===l-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function C5(r){r.registerPainter("canvas",M5)}var NM={exports:{}};(function(r,t){(function(e,i){r.exports=i()})(Eb,function(){return function(e,i,n){var a=function(o,s){if(!s||!s.length||s.length===1&&!s[0]||s.length===1&&Array.isArray(s[0])&&!s[0].length)return null;var u;s.length===1&&s[0].length>0&&(s=s[0]),u=(s=s.filter(function(f){return f}))[0];for(var l=1;l<s.length;l+=1)s[l].isValid()&&!s[l][o](u)||(u=s[l]);return u};n.max=function(){var o=[].slice.call(arguments,0);return a("isAfter",o)},n.min=function(){var o=[].slice.call(arguments,0);return a("isBefore",o)}}})})(NM);var D5=NM.exports;const A5=Rb(D5);function He(r){return typeof r=="function"}function FM(r){var t=function(i){Error.call(i),i.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Ud=FM(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
40`+e.map(function(i,n){return n+1+") "+i.toString()}).join(`
41  `):"",this.name="UnsubscriptionError",this.errors=e}});function xg(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var tv=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,n,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=ws(o),u=s.next();!u.done;u=s.next()){var l=u.value;l.remove(this)}}catch(p){t={error:p}}finally{try{u&&!u.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;
41if(He(f))try{f()}catch(p){a=p instanceof Ud?p.errors:[p]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var v=ws(h),c=v.next();!c.done;c=v.next()){var d=c.value;try{Xx(d)}catch(p){a=a??[],p instanceof Ud?a=Lh(Lh([],Ih(a)),Ih(p.errors)):a.push(p)}}}catch(p){i={error:p}}finally{try{c&&!c.done&&(n=v.return)&&n.call(v)}finally{if(i)throw i.error}}}if(a)throw new Ud(a)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Xx(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&xg(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&xg(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),zM=tv.EMPTY;function GM(r){return r instanceof tv||r&&"closed"in r&&He(r.remove)&&He(r.add)&&He(r.unsubscribe)}function Xx(r){He(r)?r():r.unsubscribe()}var VM={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},HM={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,Lh([r,t],Ih(e)))},clearTimeout:function(r){var t=HM.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(r)},delegate:void 0};function WM(r){HM.setTimeout(function(){throw r})}function $x(){}function xh(r){r()}var ny=function(r){F(t,r);function t(e){var i=r.call(this)||this;return i.isStopped=!1,e?(i.destination=e,GM(e)&&e.add(i)):i.destination=k5,i}return t.create=function(e,i,n){return new Dl(e,i,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(tv),P5=Function.prototype.bind;function Xd(r,t){return P5.call(r,t)}var I5=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){Hf(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){Hf(i)}else Hf(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Hf(e)}},r}(),Dl=function(r){F(t,r);function t(e,i,n){var a=r.call(this)||this,o;if(He(e)||!e)o={next:e??void 0,error:i??void 0,complete:n??void 0};else{var s;a&&VM.useDeprecatedNextContext?(s=Object.create(e),s.unsubscribe=function(){return a.unsubscribe()},o={next:e.next&&Xd(e.next,s),error:e.error&&Xd(e.error,s),complete:e.complete&&Xd(e.complete,s)}):o=e}return a.destination=new I5(o),a}return t}(ny);function Hf(r){WM(r)}function L5(r){throw r}var k5={closed:!0,next:$x,error:L5,complete:$x},ay=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function R5(r){return r}function E5(r){return r.length===0?R5:r.length===1?r[0]:function(e){return r.reduce(function(i,n){return n(i)},e)}}var aa=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var n=this,a=B5(t)?t:new Dl(t,e,i);return xh(function(){var o=n,s=o.operator,u=o.source;a.add(s?s.call(a,u):u?n._subscribe(a):n._trySubscribe(a))}),a},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=Zx(e),new e(function(n,a){var o=new Dl({next:function(s){try{t(s)}catch(u){a(u),o.unsubscribe()}},error:a,complete:n});i.subscribe(o)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[ay]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return E5(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Zx(t),new t(function(i,n){var a;
vendor: 4,302 bytes, line 41
41e.subscribe(function(o){return a=o},function(o){return n(o)},function(){return i(a)})})},r.create=function(t){return new r(t)},r}();function Zx(r){var t;return(t=r??VM.Promise)!==null&&t!==void 0?t:Promise}function O5(r){return r&&He(r.next)&&He(r.error)&&He(r.complete)}function B5(r){return r&&r instanceof ny||O5(r)&&GM(r)}function N5(r){return He(r==null?void 0:r.lift)}function YM(r){return function(t){if(N5(t))return t.lift(function(e){try{return r(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function F5(r,t,e,i,n){return new z5(r,t,e,i,n)}var z5=function(r){F(t,r);function t(e,i,n,a,o,s){var u=r.call(this,e)||this;return u.onFinalize=o,u.shouldUnsubscribe=s,u._next=i?function(l){try{i(l)}catch(f){e.error(f)}}:r.prototype._next,u._error=a?function(l){try{a(l)}catch(f){e.error(f)}finally{this.unsubscribe()}}:r.prototype._error,u._complete=n?function(){try{n()}catch(l){e.error(l)}finally{this.unsubscribe()}}:r.prototype._complete,u}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;r.prototype.unsubscribe.call(this),!i&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(ny),G5=FM(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),oy=function(r){F(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new qx(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new G5},t.prototype.next=function(e){var i=this;xh(function(){var n,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=ws(i.currentObservers),s=o.next();!s.done;s=o.next()){var u=s.value;u.next(e)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var i=this;xh(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var n=i.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;xh(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,n=this,a=n.hasError,o=n.isStopped,s=n.observers;return a||o?zM:(this.currentObservers=null,s.push(e),new tv(function(){i.currentObservers=null,xg(s,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,n=i.hasError,a=i.thrownError,o=i.isStopped;n?e.error(a):o&&e.complete()},t.prototype.asObservable=function(){var e=new aa;return e.source=this,e},t.create=function(e,i){return new qx(e,i)},t}(aa),qx=function(r){F(t,r);function t(e,i){var n=r.call(this)||this;return n.destination=e,n.source=i,n}return t.prototype.next=function(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)},t.prototype.error=function(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:zM},t}(oy),V5=function(r){return r&&typeof r.length=="number"&&typeof r!="function"};function H5(r){return He(r==null?void 0:r.then)}function W5(r){return He(r[ay])}function Y5(r){return Symbol.asyncIterator&&He(r==null?void 0:r[Symbol.asyncIterator])}function U5(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invali
vendor: 54,980 bytes, lines 41-49
41d object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function X5(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var $5=X5();function Z5(r){return He(r==null?void 0:r[$5])}function q5(r){return FD(this,arguments,function(){var e,i,n,a;return Nb(this,function(o){switch(o.label){case 0:e=r.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,us(e.read())];case 3:return i=o.sent(),n=i.value,a=i.done,a?[4,us(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,us(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function K5(r){return He(r==null?void 0:r.getReader)}function UM(r){if(r instanceof aa)return r;if(r!=null){if(W5(r))return Q5(r);if(V5(r))return j5(r);if(H5(r))return J5(r);if(Y5(r))return XM(r);if(Z5(r))return tz(r);if(K5(r))return ez(r)}throw U5(r)}function Q5(r){return new aa(function(t){var e=r[ay]();if(He(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function j5(r){return new aa(function(t){for(var e=0;e<r.length&&!t.closed;e++)t.next(r[e]);t.complete()})}function J5(r){return new aa(function(t){r.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,WM)})}function tz(r){return new aa(function(t){var e,i;try{for(var n=ws(r),a=n.next();!a.done;a=n.next()){var o=a.value;if(t.next(o),t.closed)return}}catch(s){e={error:s}}finally{try{a&&!a.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}t.complete()})}function XM(r){return new aa(function(t){rz(r,t).catch(function(e){return t.error(e)})})}function ez(r){return XM(q5(r))}function rz(r,t){var e,i,n,a;return ND(this,void 0,void 0,function(){var o,s;return Nb(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),e=zD(r),u.label=1;case 1:return[4,e.next()];case 2:if(i=u.sent(),!!i.done)return[3,4];if(o=i.value,t.next(o),t.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=u.sent(),n={error:s},[3,11];case 6:return u.trys.push([6,,9,10]),i&&!i.done&&(a=e.return)?[4,a.call(e)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function iz(r,t){return YM(function(e,i){var n=0;e.subscribe(F5(i,function(a){return r.call(t,a,n++)&&i.next(a)}))})}function nz(r){r===void 0&&(r={});var t=r.connector,e=t===void 0?function(){return new oy}:t,i=r.resetOnError,n=i===void 0?!0:i,a=r.resetOnComplete,o=a===void 0?!0:a,s=r.resetOnRefCountZero,u=s===void 0?!0:s;return function(l){var f,h,v,c=0,d=!1,p=!1,g=function(){h==null||h.unsubscribe(),h=void 0},_=function(){g(),f=v=void 0,d=p=!1},y=function(){var m=f;_(),m==null||m.unsubscribe()};return YM(function(m,x){c++,!p&&!d&&g();var S=v=v??e();x.add(function(){c--,c===0&&!p&&!d&&(h=$d(y,u))}),S.subscribe(x),!f&&c>0&&(f=new Dl({next:function(b){return S.next(b)},error:function(b){p=!0,g(),h=$d(_,n,b),S.error(b)},complete:function(){d=!0,g(),h=$d(_,o),S.complete()}}),UM(m).subscribe(f))})(l)}}function $d(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];if(t===!0){r();return}if(t!==!1){var n=new Dl({next:function(){n.unsubscribe(),r()}});return UM(t.apply(void 0,Lh([],Ih(e)))).subscribe(n)}}const az=new oy;function oz(r,t){return Array.isArray(r)||(r=[r]),az.pipe(nz(),iz(e=>r.indexOf(e.type)>-1)).subscribe(t)}function ji(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function $M(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t}/*!
42 * GSAP 3.12.5
43 * https://gsap.com
44 *
45 * @license Copyright 2008-2024, GreenSock. All rights reserved.
46 * Subject to the terms at https://gsap.com/standard-license or for
47 * Club GSAP members, the agreement issued with that membership.
48 * @author: Jack Doyle, [email protected]
49*/var Rr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Ps={duration:.5,overwrite:!1,delay:0},sy,We,Xt,Zr=1e8,zt=1/Zr,bg=Math.PI*2,sz=bg/4,uz=0,ZM=Math.sqrt,lz=Math.cos,fz=Math.sin,Te=function(t){return typeof t=="string"},ee=function(t){return typeof t=="function"},gn=function(t){return typeof t=="number"},uy=function(t){return typeof t>"u"},Wi=function(t){return typeof t=="object"},vr=function(t){return t!==!1},ly=function(){return typeof window<"u"},Wf=function(t){return ee(t)||Te(t)},qM=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ye=Array.isArray,Sg=/(?:-?\.?\d|\.)+/gi,KM=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,as=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Zd=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,QM=/[+-]=-?[.\d]+/,jM=/[^,'"\[\]\s]+/gi,hz=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,qt,Di,wg,fy,Or={},uc={},JM,tC=function(t){return(uc=_o(t,Or))&&yr},hy=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Al=function(t,e){return!e&&console.warn(t)},eC=function(t,e){return t&&(Or[t]=e)&&uc&&(uc[t]=e)||Or},Pl=function(){return 0},cz={suppressEvents:!0,isStart:!0,kill:!1},bh={suppressEvents:!0,kill:!1},vz={suppressEvents:!0},cy={},Kn=[],Tg={},rC,Cr={},qd={},Kx=30,Sh=[],vy="",dy=function(t){var e=t[0],i,n;if(Wi(e)||ee(e)||(t=[t]),!(i=(e._gsap||{}).harness)){for(n=Sh.length;n--&&!Sh[n].targetTest(e););i=Sh[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new CC(t[n],i)))||t.splice(n,1);return t},no=function(t){return t._gsap||dy(qr(t))[0]._gsap},iC=function(t,e,i){return(i=t[e])&&ee(i)?t[e]():uy(i)&&t.getAttribute&&t.getAttribute(e)||i},dr=function(t,e){return(t=t.split(",")).forEach(e)||t},ae=function(t){return Math.round(t*1e5)/1e5||0},we=function(t){return Math.round(t*1e7)/1e7||0},_s=function(t,e){var i=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),i==="+"?t+n:i==="-"?t-n:i==="*"?t*n:t/n},dz=function(t,e){for(var i=e.length,n=0;t.indexOf(e[n])<0&&++n<i;);return n<i},lc=function(){var t=Kn.length,e=Kn.slice(0),i,n;for(Tg={},Kn.length=0,i=0;i<t;i++)n=e[i],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},nC=function(t,e,i,n){Kn.length&&!We&&lc(),t.render(e,i,We&&e<0&&(t._initted||t._startAt)),Kn.length&&!We&&lc()},aC=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(jM).length<2?e:Te(t)?t.trim():t},oC=function(t){return t},ti=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},pz=function(t){return function(e,i){for(var n in i)n in e||n==="duration"&&t||n==="ease"||(e[n]=i[n])}},_o=function(t,e){for(var i in e)t[i]=e[i];return t},Qx=function r(t,e){for(var i in e)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(t[i]=Wi(e[i])?r(t[i]||(t[i]={}),e[i]):e[i]);return t},fc=function(t,e){var i={},n;for(n in t)n in e||(i[n]=t[n]);return i},Qu=function(t){var e=t.parent||qt,i=t.keyframes?pz(Ye(t.keyframes)):ti;if(vr(t.inherit))for(;e;)i(t,e.vars.defaults),e=e.parent||e._dp;return t},gz=function(t,e){for(var i=t.length,n=i===e.length;n&&i--&&t[i]===e[i];);return i<0},sC=function(t,e,i,n,a){var o=t[n],s;if(a)for(s=e[a];o&&o[a]>s;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},ev=function(t,e,i,n){i===void 0&&(i="_first"),n===void 0&&(n="_last");var a=e._prev,o=e._next;a?a._next=o:t[i]===e&&(t[i]=o),o?o._prev=a:t[n]===e&&(t[n]=a),e._next=e._prev=e.parent=null},oa=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},ao=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},_z=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Mg=function(t,e,i,n){return t._startAt&&(We?t._startAt.revert(bh):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},yz=function r(t){return!t||t._ts&&r(t.parent)},jx=function(t){return t._repeat?Is(t._tTime,t=t.duration()+t._rDelay)*t:0},Is=function(t,e){var i=Math.floor(t/=e);return t&&i===t?i-1:i},hc=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},rv=function(t){return t._end=we(t._start+(t._tDur/Math.abs(t._ts||t._rts||zt)||0))},iv=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=we(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),rv(t),i._dirty||ao(i,t)),t},uC=function(t,e){var i;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(i=hc(t.rawTime(),e),(!e._dur||$l(0,e.totalDuration(),i)-e._tTime>zt)&&e.render(i,!0)),ao(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-zt}},Ii=function(t,e,i,n){return e.parent&&oa(e),e._start=we((gn(i)?i:i||t!==qt?Gr(t,i,e):t._time)+e._delay),e._end=we(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),sC(t,e,"_first","_last",t._sort?"_start":0),Cg(e)||(t._recent=e),n||uC(t,e),t._ts<0&&iv(t,t._tTime),t},lC=function(t,e){return(Or.ScrollTrigger||hy("scrollTrigger",e))&&Or.ScrollTrigger.create(e,t)},fC=function(t,e,i,n,a){if(gy(t,e,a),!t._initted)return 1;if(!i&&t._pt&&!We&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&rC!==Pr.frame)return Kn.push(t),t._lazy=[a,n],1},mz=function r(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||r(e))},Cg=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},xz=function(t,e,i,n){var a=t.ratio,o=e<0||!e&&(!t._start&&mz(t)&&!(!t._initted&&Cg(t))||(t._ts<0||t._dp._ts<0)&&!Cg(t))?0:1,s=t._rDelay,u=0,l,f,h;if(s&&t._repeat&&(u=$l(0,t._tDur,e),f=Is(u,s),t._yoyo&&f&1&&(o=1-o),f!==Is(t._tTime,s)&&(a=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==a||We||n||t._zTime===zt||!e&&t._zTime){if(!t._initted&&fC(t,e,n,i,u))return;for(h=t._zTime,t._zTime=e||(i?zt:0),i||(i=e&&!h),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=u,l=t._pt;l;)l.r(o,l.d),l=l._next;e<0&&Mg(t,e,i,!0),t._onUpdate&&!i&&Lr(t,"onUpdate"),u&&t._repeat&&!i&&t.parent&&Lr(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&oa(t,1),!i&&!We&&(Lr(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},bz=function(t,e,i){var n;if(i>e)for(n=t._first;n&&n._start<=i;){if(n.data==="isPause"&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=i;){if(n.data==="isPause"&&n._start<e)return n;n=n._prev}},Ls=function(t,e,i,n){var a=t._repeat,o=we(e)||0,s=t._tTime/t._tDur;return s&&!n&&(t._time*=o/t._dur),t._dur=o,t._tDur=a?a<0?1e10:we(o*(a+1)+t._rDelay*a):o,s>0&&!n&&iv(t,t._tTime=t._tDur*s),t.parent&&rv(t),i||ao(t.parent,t),t},Jx=function(t){return t instanceof tr?ao(t):Ls(t,t._dur)},Sz={_start:0,endTime:Pl,totalDuration:Pl},Gr=function r(t,e,i){var n=t.labels,a=t._recent||Sz,o=t.duration()>=Zr?a.endTime(!1):t._dur,s,u,l;return Te(e)&&(isNaN(e)||e in n)?(u=e.charAt(0),l=e.substr(-1)==="%",s=e.indexOf("="),u==="<"||u===">"?(s>=0&&(e=e.replace(/=/,"")),(u==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(e.substr(1))||0)*(l?(s<0?a:i).totalDuration()/100:1)):s<0?(e in n||(n[e]=o),n[e]):(u=parseFloat(e.charAt(s-1)+e.substr(s+1)),l&&i&&(u=u/100*(Ye(i)?i[0]:i).totalDuration()),s>1?r(t,e.substr(0,s-1),i)+u:o+u)):e==null?o:+e},ju=function(t,e,i){var n=gn(e[1]),a=(n?2:1)+(t<2?0:1),o=e[a],s,u;if(n&&(o.duration=e[1]),o.parent=i,t){for(s=o,u=i;u&&!("immediateRender"in s);)s=u.vars.defaults||{},u=vr(u.vars.inherit)&&u.parent;o.immediateRender=vr(s.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new ce(e[0],o,e[a+1])},fa=function(t,e){return t||t===0?e(t):e},$l=function(t,e,i){return i<t?t:i>e?e:i},Ve=function(t,e){return!Te(t)||!(e=hz.exec(t))?"":e[1]},wz=function(t,e,i){return fa(i,function(n){return $l(t,e,n)})},Dg=[].slice,hC=function(t,e){return t&&Wi(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Wi(t[0]))&&!t.nodeType&&t!==Di},Tz=function(t,e,i){return i===void 0&&(i=[]),t.forEach(function(n){var a;return Te(n)&&!e||hC(n,1)?(a=i).push.apply(a,qr(n)):i.push(n)})||i},qr=function(t,e,i){return Xt&&!e&&Xt.selector?Xt.selector(t):Te(t)&&!i&&(wg||!ks())?Dg.call((e||fy).querySelectorAll(t),0):Ye(t)?Tz(t,i):hC(t)?Dg.call(t,0):t?[t]:[]},Ag=function(t){return t=qr(t)[0]||Al("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return qr(e,i.querySelectorAll?i:i===t?Al("Invalid scope")||fy.createElement("div"):t)}},cC=function(t){return t.sort(function(){return .5-Math.random()})},vC=function(t){if(ee(t))return t;var e=Wi(t)?t:{each:t},i=oo(e.ease),n=e.from||0,a=parseFloat(e.base)||0,o={},s=n>0&&n<1,u=isNaN(n)||s,l=e.axis,f=n,h=n;return Te(n)?f=h={center:.5,edges:.5,end:1}[n]||0:!s&&u&&(f=n[0],h=n[1]),function(v,c,d){var p=(d||e).length,g=o[p],_,y,m,x,S,b,w,M,T;if(!g){if(T=e.grid==="auto"?0:(e.grid||[1,Zr])[1],!T){for(w=-Zr;w<(w=d[T++].getBoundingClientRect().left)&&T<p;);T<p&&T--}for(g=o[p]=[],_=u?Math.min(T,p)*f-.5:n%T,y=T===Zr?0:u?p*h/T-.5:n/T|0,w=0,M=Zr,b=0;b<p;b++)m=b%T-_,x=y-(b/T|0),g[b]=S=l?Math.abs(l==="y"?x:m):ZM(m*m+x*x),S>w&&(w=S),S<M&&(M=S);n==="random"&&cC(g),g.max=w-M,g.min=M,g.v=p=(parseFloat(e.amount)||parseFloat(e.each)*(T>p?p-1:l?l==="y"?p/T:T:Math.max(T,p/T))||0)*(n==="edges"?-1:1),g.b=p<0?a-p:a,g.u=Ve(e.amount||e.each)||0,i=i&&p<0?wC(i):i}return p=(g[v]-g.min)/g.max||0,we(g.b+(i?i(p):p)*g.v)+g.u}},Pg=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var n=we(Math.round(parseFloat(i)/t)*t*e);return(n-n%1)/e+(gn(i)?0:Ve(i))}},dC=function(t,e){var i=Ye(t),n,a;return!i&&Wi(t)&&(n=i=t.radius||Zr,t.values?(t=qr(t.values),(a=!gn(t[0]))&&(n*=n)):t=Pg(t.increment)),fa(e,i?ee(t)?function(o){return a=t(o),Math.abs(a-o)<=n?a:o}:function(o){for(var s=parseFloat(a?o.x:o),u=parseFloat(a?o.y:0),l=Zr,f=0,h=t.length,v,c;h--;)a?(v=t[h].x-s,c=t[h].y-u,v=v*v+c*c):v=Math.abs(t[h]-s),v<l&&(l=v,f=h);return f=!n||l<=n?t[f]:o,a||f===o||gn(o)?f:f+Ve(o)}:Pg(t))},pC=function(t,e,i,n){return fa(Ye(t)?!e:i===!0?!!(i=0):!n,function(){return Ye(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(n=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(e-t+i*.99))/i)*i*n)/n})},Mz=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(n){return e.reduce(function(a,o){return o(a)},n)}},Cz=function(t,e){return function(i){return t(parseFloat(i))+(e||Ve(i))}},Dz=function(t,e,i){return _C(t,e,0,1,i)},gC=function(t,e,i){return fa(i,function(n){return t[~~e(n)]})},Az=function r(t,e,i){var n=e-t;return Ye(t)?gC(t,r(0,t.length),e):fa(i,function(a){return(n+(a-t)%n)%n+t})},Pz=function r(t,e,i){var n=e-t,a=n*2;return Ye(t)?gC(t,r(0,t.length-1),e):fa(i,function(o){return o=(a+(o-t)%a)%a||0,t+(o>n?a-o:o)})},Il=function(t){for(var e=0,i="",n,a,o,s;~(n=t.indexOf("random(",e));)o=t.indexOf(")",n),s=t.charAt(n+7)==="[",a=t.substr(n+7,o-n-7).match(s?jM:Sg),i+=t.substr(e,n-e)+pC(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),e=o+1;return i+t.substr(e,t.length-e)},_C=function(t,e,i,n,a){var o=e-t,s=n-i;return fa(a,function(u){return i+((u-t)/o*s||0)})},Iz=function r(t,e,i,n){var a=isNaN(t+e)?0:function(c){return(1-c)*t+c*e};if(!a){var o=Te(t),s={},u,l,f,h,v;if(i===!0&&(n=1)&&(i=null),o)t={p:t},e={p:e};else if(Ye(t)&&!Ye(e)){for(f=[],h=t.length,v=h-2,l=1;l<h;l++)f.push(r(t[l-1],t[l]));h--,a=function(d){d*=h;var p=Math.min(v,~~d);return f[p](d-p)},i=e}else n||(t=_o(Ye(t)?[]:{},t));if(!f){for(u in e)py.call(s,t,u,"get",e[u]);a=function(d){return my(d,s)||(o?t.p:t)}}}return fa(i,a)},tb=function(t,e,i){var n=t.labels,a=Zr,o,s,u;for(o in n)s=n[o]-e,s<0==!!i&&s&&a>(s=Math.abs(s))&&(u=o,a=s);return u},Lr=function(t,e,i){var n=t.vars,a=n[e],o=Xt,s=t._ctx,u,l,f;if(a)return u=n[e+"Params"],l=n.callbackScope||t,i&&Kn.length&&lc(),s&&(Xt=s),f=u?a.apply(l,u):a.call(l),Xt=o,f},Au=function(t){return oa(t),t.scrollTrigger&&t.scrollTrigger.kill(!!We),t.progress()<1&&Lr(t,"onInterrupt"),t},os,yC=[],mC=function(t){if(t)if(t=!t.name&&t.default||t,ly()||t.headless){var e=t.name,i=ee(t),n=e&&!i&&t.init?function(){this._props=[]}:t,a={init:Pl,render:my,add:py,kill:Xz,modifier:Uz,rawVars:0},o={targetTest:0,get:0,getSetter:yy,aliases:{},register:0};if(ks(),t!==n){if(Cr[e])return;ti(n,ti(fc(t,a),o)),_o(n.prototype,_o(a,fc(t,o))),Cr[n.prop=e]=n,t.targetTest&&(Sh.push(n),cy[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}eC(e,n),t.register&&t.register(yr,n,pr)}else yC.push(t)},Ft=255,Pu={aqua:[0,Ft,Ft],lime:[0,Ft,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ft],navy:[0,0,128],white:[Ft,Ft,Ft],olive:[128,128,0],yellow:[Ft,Ft,0],orange:[Ft,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ft,0,0],pink:[Ft,192,203],cyan:[0,Ft,Ft],transparent:[Ft,Ft,Ft,0]},Kd=function(t,e,i){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(i-e)*t*6:t<.5?i:t*3<2?e+(i-e)*(2/3-t)*6:e)*Ft+.5|0},xC=function(t,e,i){var n=t?gn(t)?[t>>16,t>>8&Ft,t&Ft]:0:Pu.black,a,o,s,u,l,f,h,v,c,d;if(!n){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),Pu[t])n=Pu[t];else if(t.charAt(0)==="#"){if(t.length<6&&(a=t.charAt(1),o=t.charAt(2),s=t.charAt(3),t="#"+a+a+o+o+s+s+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return n=parseInt(t.substr(1,6),16),[n>>16,n>>8&Ft,n&Ft,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),n=[t>>16,t>>8&Ft,t&Ft]}else if(t.substr(0,3)==="hsl"){if(n=d=t.match(Sg),!e)u=+n[0]%360/360,l=+n[1]/100,f=+n[2]/100,o=f<=.5?f*(l+1):f+l-f*l,a=f*2-o,n.length>3&&(n[3]*=1),n[0]=Kd(u+1/3,a,o),n[1]=Kd(u,a,o),n[2]=Kd(u-1/3,a,o);else if(~t.indexOf("="))return n=t.match(KM),i&&n.length<4&&(n[3]=1),n}else n=t.match(Sg)||Pu.transparent;n=n.map(Number)}return e&&!d&&(a=n[0]/Ft,o=n[1]/Ft,s=n[2]/Ft,h=Math.max(a,o,s),v=Math.min(a,o,s),f=(h+v)/2,h===v?u=l=0:(c=h-v,l=f>.5?c/(2-h-v):c/(h+v),u=h===a?(o-s)/c+(o<s?6:0):h===o?(s-a)/c+2:(a-o)/c+4,u*=60),n[0]=~~(u+.5),n[1]=~~(l*100+.5),n[2]=~~(f*100+.5)),i&&n.length<4&&(n[3]=1),n},bC=function(t){var e=[],i=[],n=-1;return t.split(Qn).forEach(function(a){var o=a.match(as)||[];e.push.apply(e,o),i.push(n+=o.length+1)}),e.c=i,e},eb=function(t,e,i){var n="",a=(t+n).match(Qn),o=e?"hsla(":"rgba(",s=0,u,l,f,h;if(!a)return t;if(a=a.map(function(v){return(v=xC(v,e,1))&&o+(e?v[0]+","+v[1]+"%,"+v[2]+"%,"+v[3]:v.join(","))+")"}),i&&(f=bC(t),u=i.c,u.join(n)!==f.c.join(n)))for(l=t.replace(Qn,"1").split(as),h=l.length-1;s<h;s++)n+=l[s]+(~u.indexOf(s)?a.shift()||o+"0,0,0,0)":(f.length?f:a.length?a:i).shift());if(!l)for(l=t.split(Qn),h=l.length-1;s<h;s++)n+=l[s]+a[s];return n+l[h]},Qn=function(){var r="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in Pu)r+="|"+t+"\\b";return new RegExp(r+")","gi")}(),Lz=/hsl[a]?\(/,SC=function(t){var e=t.join(" "),i;if(Qn.lastIndex=0,Qn.test(e))return i=Lz.test(e),t[1]=eb(t[1],i),t[0]=eb(t[0],i,bC(t[1])),!0},Ll,Pr=function(){var r=Date.now,t=500,e=33,i=r(),n=i,a=1e3/240,o=a,s=[],u,l,f,h,v,c,d=function p(g){var _=r()-n,y=g===!0,m,x,S,b;if((_>t||_<0)&&(i+=_-e),n+=_,S=n-i,m=S-o,(m>0||y)&&(b=++h.frame,v=S-h.time*1e3,h.time=S=S/1e3,o+=m+(m>=a?4:a-m),x=1),y||(u=l(p)),x)for(c=0;c<s.length;c++)s[c](S,v,b,g)};return h={time:0,frame:0,tick:function(){d(!0)},deltaRatio:function(g){return v/(1e3/(g||60))},wake:function(){JM&&(!wg&&ly()&&(Di=wg=window,fy=Di.document||{},Or.gsap=yr,(Di.gsapVersions||(Di.gsapVersions=[])).push(yr.version),tC(uc||Di.GreenSockGlobals||!Di.gsap&&Di||{}),yC.forEach(mC)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&h.sleep(),l=f||function(g){return setTimeout(g,o-h.time*1e3+1|0)},Ll=1,d(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(u),Ll=0,l=Pl},lagSmoothing:function(g,_){t=g||1/0,e=Math.min(_||33,t)},fps:function(g){a=1e3/(g||240),o=h.time*1e3+a},add:function(g,_,y){var m=_?function(x,S,b,w){g(x,S,b,w),h.remove(m)}:g;return h.remove(g),s[y?"unshift":"push"](m),ks(),m},remove:function(g,_){~(_=s.indexOf(g))&&s.splice(_,1)&&c>=_&&c--},_listeners:s},h}(),ks=function(){return!Ll&&Pr.wake()},St={},kz=/^[\d.\-M][\d.\-,\s]/,Rz=/["']/g,Ez=function(t){for(var e={},i=t.substr(1,t.length-3).split(":"),n=i[0],a=1,o=i.length,s,u,l;a<o;a++)u=i[a],s=a!==o-1?u.lastIndexOf(","):u.length,l=u.substr(0,s),e[n]=isNaN(l)?l.replace(Rz,"").trim():+l,n=u.substr(s+1).trim();return e},Oz=function(t){var e=t.indexOf("(")+1,i=t.indexOf(")"),n=t.indexOf("(",e);return t.substring(e,~n&&n<i?t.indexOf(")",i+1):i)},Bz=function(t){var e=(t+"").split("("),i=St[e[0]];return i&&e.length>1&&i.config?i.config.apply(null,~t.indexOf("{")?[Ez(e[1])]:Oz(t).split(",").map(aC)):St._CE&&kz.test(t)?St._CE("",t):i},wC=function(t){return function(e){return 1-t(1-e)}},TC=function r(t,e){for(var i=t._first,n;i;)i instanceof tr?r(i,e):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==e&&(i.timeline?r(i.timeline,e):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=e)),i=i._next},oo=function(t,e){return t&&(ee(t)?t:St[t]||Bz(t))||e},To=function(t,e,i,n){i===void 0&&(i=function(u){return 1-e(1-u)}),n===void 0&&(n=function(u){return u<.5?e(u*2)/2:1-e((1-u)*2)/2});var a={easeIn:e,easeOut:i,easeInOut:n},o;return dr(t,function(s){St[s]=Or[s]=a,St[o=s.toLowerCase()]=i;for(var u in a)St[o+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=St[s+"."+u]=a[u]}),a},MC=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},Qd=function r(t,e,i){var n=e>=1?e:1,a=(i||(t?.3:.45))/(e<1?e:1),o=a/bg*(Math.asin(1/n)||0),s=function(f){return f===1?1:n*Math.pow(2,-10*f)*fz((f-o)*a)+1},u=t==="out"?s:t==="in"?function(l){return 1-s(1-l)}:MC(s);return a=bg/a,u.config=function(l,f){return r(t,l,f)},u},jd=function r(t,e){e===void 0&&(e=1.70158);var i=function(o){return o?--o*o*((e+1)*o+e)+1:0},n=t==="out"?i:t==="in"?function(a){return 1-i(1-a)}:MC(i);return n.config=function(a){return r(t,a)},n};dr("Linear,Quad,Cubic,Quart,Quint,Strong",function(r,t){var e=t<5?t+1:t;To(r+",Power"+(e-1),t?function(i){return Math.pow(i,e)}:function(i){return i},function(i){return 1-Math.pow(1-i,e)},function(i){return i<.5?Math.pow(i*2,e)/2:1-Math.pow((1-i)*2,e)/2})});St.Linear.easeNone=St.none=St.Linear.easeIn;To("Elastic",Qd("in"),Qd("out"),Qd());(function(r,t){var e=1/t,i=2*e,n=2.5*e,a=function(s){return s<e?r*s*s:s<i?r*Math.pow(s-1.5/t,2)+.75:s<n?r*(s-=2.25/t)*s+.9375:r*Math.pow(s-2.625/t,2)+.984375};To("Bounce",function(o){return 1-a(1-o)},a)})(7.5625,2.75);To("Expo",function(r){return r?Math.pow(2,10*(r-1)):0});To("Circ",function(r){return-(ZM(1-r*r)-1)});To("Sine",function(r){return r===1?1:-lz(r*sz)+1});To("Back",jd("in"),jd("out"),jd());St.SteppedEase=St.steps=Or.SteppedEase={config:function(t,e){t===void 0&&(t=1);var i=1/t,n=t+(e?0:1),a=e?1:0,o=1-zt;return function(s){return((n*$l(0,o,s)|0)+a)*i}}};Ps.ease=St["quad.out"];dr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(r){return vy+=r+","+r+"Params,"});var CC=function(t,e){this.id=uz++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:iC,this.set=e?e.getSetter:yy},kl=function(){function r(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,Ls(this,+e.duration,1,1),this.data=e.data,Xt&&(this._ctx=Xt,Xt.data.push(this)),Ll||Pr.wake()}var t=r.prototype;return t.delay=function(i){return i||i===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay),this._delay=i,this):this._delay},t.duration=function(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},t.totalDuration=function(i){return arguments.length?(this._dirty=0,Ls(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(i,n){if(ks(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(iv(this,i),!a._dp||a.parent||uC(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&Ii(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===zt||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),nC(this,i,n)),this},t.time=function(i,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+jx(this))%(this._dur+this._rDelay)||(i?this._dur:0),n):this._time},t.totalProgress=function(i,n){return arguments.length?this.totalTime(this.totalDuration()*i,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(i,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+jx(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(i,n){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*a,n):this._repeat?Is(this._tTime,a)+1:1},t.timeScale=function(i,n){if(!arguments.length)return this._rts===-zt?0:this._rts;if(this._rts===i)return this;var a=this.parent&&this._ts?hc(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-zt?0:this._rts,this.totalTime($l(-Math.abs(this._delay),this._tDur,a),n!==!1),rv(this),_z(this)},t.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ks(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==zt&&(this._tTime-=zt)))),this):this._ps},t.startTime=function(i){if(arguments.length){this._start=i;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&Ii(n,this,i-this._delay),this}return this._start},t.endTime=function(i){return this._start+(vr(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(i){var n=this.parent||this._dp;return n?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?hc(n.rawTime(i),this):this._tTime:this._tTime},t.revert=function(i){i===void 0&&(i=vz);var n=We;return We=i,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),We=n,this},t.globalTime=function(i){for(var n=this,a=arguments.length?i:n.rawTime();n;)a=n._start+a/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(i):a},t.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,Jx(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(i){if(arguments.length){var n=this._time;return this._rDelay=i,Jx(this),n?this.time(n):this}return this._rDelay},t.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},t.seek=function(i,n){return this.totalTime(Gr(this,i),vr(n))},t.restart=function(i,n){return this.play().totalTime(i?-this._delay:0,vr(n))},t.play=function(i,n){return i!=null&&this.seek(i,n),this.reversed(!1).paused(!1)},t.reverse=function(i,n){return i!=null&&this.seek(i||this.totalDuration(),n),this.reversed(!0).paused(!1)},t.pause=function(i,n){return i!=null&&this.seek(i,n),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-zt:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-zt,this},t.isActive=function(){var i=this.parent||this._dp,n=this._start,a;return!!(!i||this._ts&&this._initted&&i.isActive()&&(a=i.rawTime(!0))>=n&&a<this.endTime(!0)-zt)},t.eventCallback=function(i,n,a){var o=this.vars;return arguments.length>1?(n?(o[i]=n,a&&(o[i+"Params"]=a),i==="onUpdate"&&(this._onUpdate=n)):delete o[i],this):o[i]},t.then=function(i){var n=this;return new Promise(function(a){var o=ee(i)?i:oC,s=function(){var l=n.then;n.then=null,ee(o)&&(o=o(n))&&(o.then||o===n)&&(n.then=l),a(o),n.then=l};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?s():n._prom=s})},t.kill=function(){Au(this)},r}();ti(kl.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-zt,_prom:0,_ps:!1,_rts:1});var tr=function(r){$M(t,r);function t(i,n){var a;return i===void 0&&(i={}),a=r.call(this,i)||this,a.labels={},a.smoothChildTiming=!!i.smoothChildTiming,a.autoRemoveChildren=!!i.autoRemoveChildren,a._sort=vr(i.sortChildren),qt&&Ii(i.parent||qt,ji(a),n),i.reversed&&a.reverse(),i.paused&&a.paused(!0),i.scrollTrigger&&lC(ji(a),i.scrollTrigger),a}var e=t.prototype;return e.to=function(n,a,o){return ju(0,arguments,this),this},e.from=function(n,a,o){return ju(1,arguments,this),this},e.fromTo=function(n,a,o,s){return ju(2,arguments,this),this},e.set=function(n,a,o){return a.duration=0,a.parent=this,Qu(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new ce(n,a,Gr(this,o),1),this},e.call=function(n,a,o){return Ii(this,ce.delayedCall(0,n,a),o)},e.staggerTo=function(n,a,o,s,u,l,f){return o.duration=a,o.stagger=o.stagger||s,o.onComplete=l,o.onCompleteParams=f,o.parent=this,new ce(n,o,Gr(this,u)),this},e.staggerFrom=function(n,a,o,s,u,l,f){return o.runBackwards=1,Qu(o).immediateRender=vr(o.immediateRender),this.staggerTo(n,a,o,s,u,l,f)},e.staggerFromTo=function(n,a,o,s,u,l,f,h){return s.startAt=o,Qu(s).immediateRender=vr(s.immediateRender),this.staggerTo(n,a,s,u,l,f,h)},e.render=function(n,a,o){var s=this._time,u=this._dirty?this.totalDuration():this._tDur,l=this._dur,f=n<=0?0:we(n),h=this._zTime<0!=n<0&&(this._initted||!l),v,c,d,p,g,_,y,m,x,S,b,w;if(this!==qt&&f>u&&n>=0&&(f=u),f!==this._tTime||o||h){if(s!==this._time&&l&&(f+=this._time-s,n+=this._time-s),v=f,x=this._start,m=this._ts,_=!m,h&&(l||(s=this._zTime),(n||!a)&&(this._zTime=n)),this._repeat){if(b=this._yoyo,g=l+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(g*100+n,a,o);if(v=we(f%g),f===u?(p=this._repeat,v=l):(p=~~(f/g),p&&p===f/g&&(v=l,p--),v>l&&(v=l)),S=Is(this._tTime,g),!s&&this._tTime&&S!==p&&this._tTime-S*g-this._dur<=0&&(S=p),b&&p&1&&(v=l-v,w=1),p!==S&&!this._lock){var M=b&&S&1,T=M===(b&&p&1);if(p<S&&(M=!M),s=M?0:f%l?l:f,this._lock=1,this.render(s||(w?0:we(p*g)),a,!l)._lock=0,this._tTime=f,!a&&this.parent&&Lr(this,"onRepeat"),this.vars.repeatRefresh&&!w&&(this.invalidate()._lock=1),s&&s!==this._time||_!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,u=this._tDur,T&&(this._lock=2,s=M?l:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!w&&this.invalidate()),this._lock=0,!this._ts&&!_)return this;TC(this,w)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(y=bz(this,we(s),we(v)),y&&(f-=v-(v=y._start))),this._tTime=f,this._time=v,this._act=!m,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n,s=0),!s&&v&&!a&&!p&&(Lr(this,"onStart"),this._tTime!==f))return this;if(v>=s&&n>=0)for(c=this._first;c;){if(d=c._next,(c._act||v>=c._start)&&c._ts&&y!==c){if(c.parent!==this)return this.render(n,a,o);if(c.render(c._ts>0?(v-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(v-c._start)*c._ts,a,o),v!==this._time||!this._ts&&!_){y=0,d&&(f+=this._zTime=-zt);break}}c=d}else{c=this._last;for(var C=n<0?n:v;c;){if(d=c._prev,(c._act||C<=c._end)&&c._ts&&y!==c){if(c.parent!==this)return this.render(n,a,o);if(c.render(c._ts>0?(C-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(C-c._start)*c._ts,a,o||We&&(c._initted||c._startAt)),v!==this._time||!this._ts&&!_){y=0,d&&(f+=this._zTime=C?-zt:zt);break}}c=d}}if(y&&!a&&(this.pause(),y.render(v>=s?0:-zt)._zTime=v>=s?1:-1,this._ts))return this._start=x,rv(this),this.render(n,a,o);this._onUpdate&&!a&&Lr(this,"onUpdate",!0),(f===u&&this._tTime>=this.totalDuration()||!f&&s)&&(x===this._start||Math.abs(m)!==Math.abs(this._ts))&&(this._lock||((n||!l)&&(f===u&&this._ts>0||!f&&this._ts<0)&&oa(this,1),!a&&!(n<0&&!s)&&(f||s||!u)&&(Lr(this,f===u&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<u&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(n,a){var o=this;if(gn(a)||(a=Gr(this,a,n)),!(n instanceof kl)){if(Ye(n))return n.forEach(function(s){return o.add(s,a)}),this;if(Te(n))return this.addLabel(n,a);if(ee(n))n=ce.delayedCall(0,n);else return this}return this!==n?Ii(this,n,a):this},e.getChildren=function(n,a,o,s){n===void 0&&(n=!0),a===void 0&&(a=!0),o===void 0&&(o=!0),s===void 0&&(s=-Zr);for(var u=[],l=this._first;l;)l._start>=s&&(l instanceof ce?a&&u.push(l):(o&&u.push(l),n&&u.push.apply(u,l.getChildren(!0,a,o)))),l=l._next;return u},e.getById=function(n){for(var a=this.getChildren(1,1,1),o=a.length;o--;)if(a[o].vars.id===n)return a[o]},e.remove=function(n){return Te(n)?this.removeLabel(n):ee(n)?this.killTweensOf(n):(ev(this,n),n===this._recent&&(this._recent=this._last),ao(this))},e.totalTime=function(n,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=we(Pr.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),r.prototype.totalTime.call(this,n,a),this._forcing=0,this):this._tTime},e.addLabel=function(n,a){return this.labels[n]=Gr(this,a),this},e.removeLabel=function(n){return delete this.labels[n],this},e.addPause=function(n,a,o){var s=ce.delayedCall(0,a||Pl,o);return s.data="isPause",this._hasPause=1,Ii(this,s,Gr(this,n))},e.removePause=function(n){var a=this._first;for(n=Gr(this,n);a;)a._start===n&&a.data==="isPause"&&oa(a),a=a._next},e.killTweensOf=function(n,a,o){for(var s=this.getTweensOf(n,o),u=s.length;u--;)zn!==s[u]&&s[u].kill(n,a);return this},e.getTweensOf=function(n,a){for(var o=[],s=qr(n),u=this._first,l=gn(a),f;u;)u instanceof ce?dz(u._targets,s)&&(l?(!zn||u._initted&&u._ts)&&u.globalTime(0)<=a&&u.globalTime(u.totalDuration())>a:!a||u.isActive())&&o.push(u):(f=u.getTweensOf(s,a)).length&&o.push.apply(o,f),u=u._next;return o},e.tweenTo=function(n,a){a=a||{};var o=this,s=Gr(o,n),u=a,l=u.startAt,f=u.onStart,h=u.onStartParams,v=u.immediateRender,c,d=ce.to(o,ti({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:a.duration||Math.abs((s-(l&&"time"in l?l.time:o._time))/o.timeScale())||zt,onStart:function(){if(o.pause(),!c){var g=a.duration||Math.abs((s-(l&&"time"in l?l.time:o._time))/o.timeScale());d._dur!==g&&Ls(d,g,0,1).render(d._time,!0,!0),c=1}f&&f.apply(d,h||[])}},a));return v?d.render(0):d},e.tweenFromTo=function(n,a,o){return this.tweenTo(a,ti({startAt:{time:Gr(this,n)}},o))},e.recent=function(){return this._recent},e.nextLabel=function(n){return n===void 0&&(n=this._time),tb(this,Gr(this,n))},e.previousLabel=function(n){return n===void 0&&(n=this._time),tb(this,Gr(this,n),1)},e.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+zt)},e.shiftChildren=function(n,a,o){o===void 0&&(o=0);for(var s=this._first,u=this.labels,l;s;)s._start>=o&&(s._start+=n,s._end+=n),s=s._next;if(a)for(l in u)u[l]>=o&&(u[l]+=n);return ao(this)},e.invalidate=function(n){var a=this._first;for(this._lock=0;a;)a.invalidate(n),a=a._next;return r.prototype.invalidate.call(this,n)},e.clear=function(n){n===void 0&&(n=!0);for(var a=this._first,o;a;)o=a._next,this.remove(a),a=o;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),ao(this)},e.totalDuration=function(n){var a=0,o=this,s=o._last,u=Zr,l,f,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-n:n));if(o._dirty){for(h=o.parent;s;)l=s._prev,s._dirty&&s.totalDuration(),f=s._start,f>u&&o._sort&&s._ts&&!o._lock?(o._lock=1,Ii(o,s,f-s._delay,1)._lock=0):u=f,f<0&&s._ts&&(a-=f,(!h&&!o._dp||h&&h.smoothChildTiming)&&(o._start+=f/o._ts,o._time-=f,o._tTime-=f),o.shiftChildren(-f,!1,-1/0),u=0),s._end>a&&s._ts&&(a=s._end),s=l;Ls(o,o===qt&&o._time>a?o._time:a,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(n){if(qt._ts&&(nC(qt,hc(n,qt)),rC=Pr.frame),Pr.frame>=Kx){Kx+=Rr.autoSleep||120;var a=qt._first;if((!a||!a._ts)&&Rr.autoSleep&&Pr._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||Pr.sleep()}}},t}(kl);ti(tr.prototype,{_lock:0,_hasPause:0,_forcing:0});var Nz=function(t,e,i,n,a,o,s){var u=new pr(this._pt,t,e,0,1,kC,null,a),l=0,f=0,h,v,c,d,p,g,_,y;for(u.b=i,u.e=n,i+="",n+="",(_=~n.indexOf("random("))&&(n=Il(n)),o&&(y=[i,n],o(y,t,e),i=y[0],n=y[1]),v=i.match(Zd)||[];h=Zd.exec(n);)d=h[0],p=n.substring(l,h.index),c?c=(c+1)%5:p.substr(-5)==="rgba("&&(c=1),d!==v[f++]&&(g=parseFloat(v[f-1])||0,u._pt={_next:u._pt,p:p||f===1?p:",",s:g,c:d.charAt(1)==="="?_s(g,d)-g:parseFloat(d)-g,m:c&&c<4?Math.round:0},l=Zd.lastIndex);return u.c=l<n.length?n.substring(l,n.length):"",u.fp=s,(QM.test(n)||_)&&(u.e=0),this._pt=u,u},py=function(t,e,i,n,a,o,s,u,l,f){ee(n)&&(n=n(a||0,t,o));var h=t[e],v=i!=="get"?i:ee(h)?l?t[e.indexOf("set")||!ee(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,c=ee(h)?l?Hz:IC:_y,d;if(Te(n)&&(~n.indexOf("random(")&&(n=Il(n)),n.charAt(1)==="="&&(d=_s(v,n)+(Ve(v)||0),(d||d===0)&&(n=d))),!f||v!==n||Ig)return!isNaN(v*n)&&n!==""?(d=new pr(this._pt,t,e,+v||0,n-(v||0),typeof h=="boolean"?Yz:LC,0,c),l&&(d.fp=l),s&&d.modifier(s,this,t),this._pt=d):(!h&&!(e in t)&&hy(e,n),Nz.call(this,t,e,v,n,c,u||Rr.stringFilter,l))},Fz=function(t,e,i,n,a){if(ee(t)&&(t=Ju(t,a,e,i,n)),!Wi(t)||t.style&&t.nodeType||Ye(t)||qM(t))return Te(t)?Ju(t,a,e,i,n):t;var o={},s;for(s in t)o[s]=Ju(t[s],a,e,i,n);return o},DC=function(t,e,i,n,a,o){var s,u,l,f;if(Cr[t]&&(s=new Cr[t]).init(a,s.rawVars?e[t]:Fz(e[t],n,a,o,i),i,n,o)!==!1&&(i._pt=u=new pr(i._pt,a,t,0,1,s.render,s,0,s.priority),i!==os))for(l=i._ptLookup[i._targets.indexOf(a)],f=s._props.length;f--;)l[s._props[f]]=u;return s},zn,Ig,gy=function r(t,e,i){var n=t.vars,a=n.ease,o=n.startAt,s=n.immediateRender,u=n.lazy,l=n.onUpdate,f=n.runBackwards,h=n.yoyoEase,v=n.keyframes,c=n.autoRevert,d=t._dur,p=t._startAt,g=t._targets,_=t.parent,y=_&&_.data==="nested"?_.vars.targets:g,m=t._overwrite==="auto"&&!sy,x=t.timeline,S,b,w,M,T,C,D,P,L,k,R,E,B;if(x&&(!v||!a)&&(a="none"),t._ease=oo(a,Ps.ease),t._yEase=h?wC(oo(h===!0?a:h,Ps.ease)):0,h&&t._yoyo&&!t._repeat&&(h=t._yEase,t._yEase=t._ease,t._ease=h),t._from=!x&&!!n.runBackwards,!x||v&&!n.stagger){if(P=g[0]?no(g[0]).harness:0,E=P&&n[P.prop],S=fc(n,cy),p&&(p._zTime<0&&p.progress(1),e<0&&f&&s&&!c?p.render(-1,!0):p.revert(f&&d?bh:cz),p._lazy=0),o){if(oa(t._startAt=ce.set(g,ti({data:"isStart",overwrite:!1,parent:_,immediateRender:!0,lazy:!p&&vr(u),startAt:null,delay:0,onUpdate:l&&function(){return Lr(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(We||!s&&!c)&&t._startAt.revert(bh),s&&d&&e<=0&&i<=0){e&&(t._zTime=e);return}}else if(f&&d&&!p){if(e&&(s=!1),w=ti({overwrite:!1,data:"isFromStart",lazy:s&&!p&&vr(u),immediateRender:s,stagger:0,parent:_},S),E&&(w[P.prop]=E),oa(t._startAt=ce.set(g,w)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(We?t._startAt.revert(bh):t._startAt.render(-1,!0)),t._zTime=e,!s)r(t._startAt,zt,zt);else if(!e)return}for(t._pt=t._ptCache=0,u=d&&vr(u)||u&&!d,b=0;b<g.length;b++){if(T=g[b],D=T._gsap||dy(g)[b]._gsap,t._ptLookup[b]=k={},Tg[D.id]&&Kn.length&&lc(),R=y===g?b:y.indexOf(T),P&&(L=new P).init(T,E||S,t,R,y)!==!1&&(t._pt=M=new pr(t._pt,T,L.name,0,1,L.render,L,0,L.priority),L._props.forEach(function(z){k[z]=M}),L.priority&&(C=1)),!P||E)for(w in S)Cr[w]&&(L=DC(w,S,t,R,T,y))?L.priority&&(C=1):k[w]=M=py.call(t,T,w,"get",S[w],R,y,0,n.stringFilter);t._op&&t._op[b]&&t.kill(T,t._op[b]),m&&t._pt&&(zn=t,qt.killTweensOf(T,k,t.globalTime(e)),B=!t.parent,zn=0),t._pt&&u&&(Tg[D.id]=1)}C&&RC(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!B,v&&e<=0&&x.render(Zr,!0,!0)},zz=function(t,e,i,n,a,o,s,u){var l=(t._pt&&t._ptCache||(t._ptCache={}))[e],f,h,v,c;if(!l)for(l=t._ptCache[e]=[],v=t._ptLookup,c=t._targets.length;c--;){if(f=v[c][e],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==e&&f.fp!==e;)f=f._next;if(!f)return Ig=1,t.vars[e]="+=0",gy(t,s),Ig=0,u?Al(e+" not eligible for reset"):1;l.push(f)}for(c=l.length;c--;)h=l[c],f=h._pt||h,f.s=(n||n===0)&&!a?n:f.s+(n||0)+o*f.c,f.c=i-f.s,h.e&&(h.e=ae(i)+Ve(h.e)),h.b&&(h.b=f.s+Ve(h.b))},Gz=function(t,e){var i=t[0]?no(t[0]).harness:0,n=i&&i.aliases,a,o,s,u;if(!n)return e;a=_o({},e);for(o in n)if(o in a)for(u=n[o].split(","),s=u.length;s--;)a[u[s]]=a[o];return a},Vz=function(t,e,i,n){var a=e.ease||n||"power1.inOut",o,s;if(Ye(e))s=i[t]||(i[t]=[]),e.forEach(function(u,l){return s.push({t:l/(e.length-1)*100,v:u,e:a})});else for(o in e)s=i[o]||(i[o]=[]),o==="ease"||s.push({t:parseFloat(t),v:e[o],e:a})},Ju=function(t,e,i,n,a){return ee(t)?t.call(e,i,n,a):Te(t)&&~t.indexOf("random(")?Il(t):t},AC=vy+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",PC={};dr(AC+",id,stagger,delay,duration,paused,scrollTrigger",function(r){return PC[r]=1});var ce=function(r){$M(t,r);function t(i,n,a,o){var s;typeof n=="number"&&(a.duration=n,n=a,a=null),s=r.call(this,o?n:Qu(n))||this;var u=s.vars,l=u.duration,f=u.delay,h=u.immediateRender,v=u.stagger,c=u.overwrite,d=u.keyframes,p=u.defaults,g=u.scrollTrigger,_=u.yoyoEase,y=n.parent||qt,m=(Ye(i)||qM(i)?gn(i[0]):"length"in n)?[i]:qr(i),x,S,b,w,M,T,C,D;if(s._targets=m.length?dy(m):Al("GSAP target "+i+" not found. https://gsap.com",!Rr.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=c,d||v||Wf(l)||Wf(f)){if(n=s.vars,x=s.timeline=new tr({data:"nested",defaults:p||{},targets:y&&y.data==="nested"?y.vars.targets:m}),x.kill(),x.parent=x._dp=ji(s),x._start=0,v||Wf(l)||Wf(f)){if(w=m.length,C=v&&vC(v),Wi(v))for(M in v)~AC.indexOf(M)&&(D||(D={}),D[M]=v[M]);for(S=0;S<w;S++)b=fc(n,PC),b.stagger=0,_&&(b.yoyoEase=_),D&&_o(b,D),T=m[S],b.duration=+Ju(l,ji(s),S,T,m),b.delay=(+Ju(f,ji(s),S,T,m)||0)-s._delay,!v&&w===1&&b.delay&&(s._delay=f=b.delay,s._start+=f,b.delay=0),x.to(T,b,C?C(S,T,m):0),x._ease=St.none;x.duration()?l=f=0:s.timeline=0}else if(d){Qu(ti(x.vars.defaults,{ease:"none"})),x._ease=oo(d.ease||n.ease||"none");var P=0,L,k,R;if(Ye(d))d.forEach(function(E){return x.to(m,E,">")}),x.duration();else{b={};for(M in d)M==="ease"||M==="easeEach"||Vz(M,d[M],b,d.easeEach);for(M in b)for(L=b[M].sort(function(E,B){return E.t-B.t}),P=0,S=0;S<L.length;S++)k=L[S],R={ease:k.e,duration:(k.t-(S?L[S-1].t:0))/100*l},R[M]=k.v,x.to(m,R,P),P+=R.duration;x.duration()<l&&x.to({},{duration:l-x.duration()})}}l||s.duration(l=x.duration())}else s.timeline=0;return c===!0&&!sy&&(zn=ji(s),qt.killTweensOf(m),zn=0),Ii(y,ji(s),a),n.reversed&&s.reverse(),n.paused&&s.paused(!0),(h||!l&&!d&&s._start===we(y._time)&&vr(h)&&yz(ji(s))&&y.data!=="nested")&&(s._tTime=-zt,s.render(Math.max(0,-f)||0)),g&&lC(ji(s),g),s}var e=t.prototype;return e.render=function(n,a,o){var s=this._time,u=this._tDur,l=this._dur,f=n<0,h=n>u-zt&&!f?u:n<zt?0:n,v,c,d,p,g,_,y,m,x;if(!l)xz(this,n,a,o);else if(h!==this._tTime||!n||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f){if(v=h,m=this.timeline,this._repeat){if(p=l+this._rDelay,this._repeat<-1&&f)return this.totalTime(p*100+n,a,o);if(v=we(h%p),h===u?(d=this._repeat,v=l):(d=~~(h/p),d&&d===we(h/p)&&(v=l,d--),v>l&&(v=l)),_=this._yoyo&&d&1,_&&(x=this._yEase,v=l-v),g=Is(this._tTime,p),v===s&&!o&&this._initted&&d===g)return this._tTime=h,this;d!==g&&(m&&this._yEase&&TC(m,_),this.vars.repeatRefresh&&!_&&!this._lock&&this._time!==p&&this._initted&&(this._lock=o=1,this.render(we(p*d),!0).invalidate()._lock=0))}if(!this._initted){if(fC(this,f?n:v,o,a,h))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&d!==g))return this;if(l!==this._dur)return this.render(n,a,o)}if(this._tTime=h,this._time=v,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=y=(x||this._ease)(v/l),this._from&&(this.ratio=y=1-y),v&&!s&&!a&&!d&&(Lr(this,"onStart"),this._tTime!==h))return this;for(c=this._pt;c;)c.r(y,c.d),c=c._next;m&&m.render(n<0?n:m._dur*m._ease(v/this._dur),a,o)||this._startAt&&(this._zTime=n),this._onUpdate&&!a&&(f&&Mg(this,n,a,o),Lr(this,"onUpdate")),this._repeat&&d!==g&&this.vars.onRepeat&&!a&&this.parent&&Lr(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(f&&!this._onUpdate&&Mg(this,n,!0,!0),(n||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&oa(this,1),!a&&!(f&&!s)&&(h||s||_)&&(Lr(this,h===u?"onComplete":"onReverseComplete",!0),this._prom&&!(h<u&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),r.prototype.invalidate.call(this,n)},e.resetTo=function(n,a,o,s,u){Ll||Pr.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||gy(this,l),f=this._ease(l/this._dur),zz(this,n,a,o,s,f,l,u)?this.resetTo(n,a,o,s,1):(iv(this,0),this.parent||sC(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(n,a){if(a===void 0&&(a="all"),!n&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?Au(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(n,a,zn&&zn.vars.overwrite!==!0)._first||Au(this),this.parent&&o!==this.timeline.totalDuration()&&Ls(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,u=n?qr(n):s,l=this._ptLookup,f=this._pt,h,v,c,d,p,g,_;if((!a||a==="all")&&gz(s,u))return a==="all"&&(this._pt=0),Au(this);for(h=this._op=this._op||[],a!=="all"&&(Te(a)&&(p={},dr(a,function(y){return p[y]=1}),a=p),a=Gz(s,a)),_=s.length;_--;)if(~u.indexOf(s[_])){v=l[_],a==="all"?(h[_]=a,d=v,c={}):(c=h[_]=h[_]||{},d=a);for(p in d)g=v&&v[p],g&&((!("kill"in g.d)||g.d.kill(p)===!0)&&ev(this,g,"_pt"),delete v[p]),c!=="all"&&(c[p]=1)}return this._initted&&!this._pt&&f&&Au(this),this},t.to=function(n,a){return new t(n,a,arguments[2])},t.from=function(n,a){return ju(1,arguments)},t.delayedCall=function(n,a,o,s){return new t(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:a,onReverseComplete:a,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},t.fromTo=function(n,a,o){return ju(2,arguments)},t.set=function(n,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new t(n,a)},t.killTweensOf=function(n,a,o){return qt.killTweensOf(n,a,o)},t}(kl);ti(ce.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});dr("staggerTo,staggerFrom,staggerFromTo",function(r){ce[r]=function(){var t=new tr,e=Dg.call(arguments,0);return e.splice(r==="staggerFromTo"?5:4,0,0),t[r].apply(t,e)}});var _y=function(t,e,i){return t[e]=i},IC=function(t,e,i){return t[e](i)},Hz=function(t,e,i,n){return t[e](n.fp,i)},Wz=function(t,e,i){return t.setAttribute(e,i)},yy=function(t,e){return ee(t[e])?IC:uy(t[e])&&t.setAttribute?Wz:_y},LC=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},Yz=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},kC=function(t,e){var i=e._pt,n="";if(!t&&e.b)n=e.b;else if(t===1&&e.e)n=e.e;else{for(;i;)n=i.p+(i.m?i.m(i.s+i.c*t):Math.round((i.s+i.c*t)*1e4)/1e4)+n,i=i._next;n+=e.c}e.set(e.t,e.p,n,e)},my=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},Uz=function(t,e,i,n){for(var a=this._pt,o;a;)o=a._next,a.p===n&&a.modifier(t,e,i),a=o},Xz=function(t){for(var e=this._pt,i,n;e;)n=e._next,e.p===t&&!e.op||e.op===t?ev(this,e,"_pt"):e.dep||(i=1),e=n;return!i},$z=function(t,e,i,n){n.mSet(t,e,n.m.call(n.tween,i,n.mt),n)},RC=function(t){for(var e=t._pt,i,n,a,o;e;){for(i=e._next,n=a;n&&n.pr>e.pr;)n=n._next;(e._prev=n?n._prev:o)?e._prev._next=e:a=e,(e._next=n)?n._prev=e:o=e,e=i}t._pt=a},pr=function(){function r(e,i,n,a,o,s,u,l,f){this.t=i,this.s=a,this.c=o,this.p=n,this.r=s||LC,this.d=u||this,this.set=l||_y,this.pr=f||0,this._next=e,e&&(e._prev=this)}var t=r.prototype;return t.modifier=function(i,n,a){this.mSet=this.mSet||this.set,this.set=$z,this.m=i,this.mt=a,this.tween=n},r}();dr(vy+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(r){return cy[r]=1});Or.TweenMax=Or.TweenLite=ce;Or.TimelineLite=Or.TimelineMax=tr;qt=new tr({sortChildren:!1,defaults:Ps,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Rr.stringFilter=SC;var so=[],wh={},Zz=[],rb=0,qz=0,Jd=function(t){return(wh[t]||Zz).map(function(e){return e()})},Lg=function(){var t=Date.now(),e=[];t-rb>2&&(Jd("matchMediaInit"),so.forEach(function(i){var n=i.queries,a=i.conditions,o,s,u,l;for(s in n)o=Di.matchMedia(n[s]).matches,o&&(u=1),o!==a[s]&&(a[s]=o,l=1);l&&(i.revert(),u&&e.push(i))}),Jd("matchMediaRevert"),e.forEach(function(i){return i.onMatch(i,function(n){return i.add(null,n)})}),rb=t,Jd("matchMedia"))},EC=function(){function r(e,i){this.selector=i&&Ag(i),this.data=[],this._r=[],this.isReverted=!1,this.id=qz++,e&&this.add(e)}var t=r.prototype;return t.add=function(i,n,a){ee(i)&&(a=n,n=i,i=ee);var o=this,s=function(){var l=Xt,f=o.selector,h;return l&&l!==o&&l.data.push(o),a&&(o.selector=Ag(a)),Xt=o,h=n.apply(o,arguments),ee(h)&&o._r.push(h),Xt=l,o.selector=f,o.isReverted=!1,h};return o.last=s,i===ee?s(o,function(u){return o.add(null,u)}):i?o[i]=s:s},t.ignore=function(i){var n=Xt;Xt=null,i(this),Xt=n},t.getTweens=function(){var i=[];return this.data.forEach(function(n){return n instanceof r?i.push.apply(i,n.getTweens()):n instanceof ce&&!(n.parent&&n.parent.data==="nested")&&i.push(n)}),i},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(i,n){var a=this;if(i?function(){for(var s=a.getTweens(),u=a.data.length,l;u--;)l=a.data[u],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(f){return s.splice(s.indexOf(f),1)}));for(s.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,h){return h.g-f.g||-1/0}).forEach(function(f){return f.t.revert(i)}),u=a.data.length;u--;)l=a.data[u],l instanceof tr?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof ce)&&l.revert&&l.revert(i);a._r.forEach(function(f){return f(i,a)}),a.isReverted=!0}():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),n)for(var o=so.length;o--;)so[o].id===this.id&&so.splice(o,1)},t.revert=function(i){this.kill(i||{})},r}(),Kz=function(){function r(e){this.contexts=[],this.scope=e,Xt&&Xt.data.push(this)}var t=r.prototype;return t.add=function(i,n,a){Wi(i)||(i={matches:i});var o=new EC(0,a||this.scope),s=o.conditions={},u,l,f;Xt&&!o.selector&&(o.selector=Xt.selector),this.contexts.push(o),n=o.add("onMatch",n),o.queries=i;for(l in i)l==="all"?f=1:(u=Di.matchMedia(i[l]),u&&(so.indexOf(o)<0&&so.push(o),(s[l]=u.matches)&&(f=1),u.addListener?u.addListener(Lg):u.addEventListener("change",Lg)));return f&&n(o,function(h){return o.add(null,h)}),this},t.revert=function(i){this.kill(i||{})},t.kill=function(i){this.contexts.forEach(function(n){return n.kill(i,!0)})},r}(),cc={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach(function(n){return mC(n)})},timeline:function(t){return new tr(t)},getTweensOf:function(t,e){return qt.getTweensOf(t,e)},getProperty:function(t,e,i,n){Te(t)&&(t=qr(t)[0]);var a=no(t||{}).get,o=i?oC:aC;return i==="native"&&(i=""),t&&(e?o((Cr[e]&&Cr[e].get||a)(t,e,i,n)):function(s,u,l){return o((Cr[s]&&Cr[s].get||a)(t,s,u,l))})},quickSetter:function(t,e,i){if(t=qr(t),t.length>1){var n=t.map(function(f){return yr.quickSetter(f,e,i)}),a=n.length;return function(f){for(var h=a;h--;)n[h](f)}}t=t[0]||{};var o=Cr[e],s=no(t),u=s.harness&&(s.harness.aliases||{})[e]||e,l=o?function(f){var h=new o;os._pt=0,h.init(t,i?f+i:f,os,0,[t]),h.render(1,h),os._pt&&my(1,os)}:s.set(t,u);return o?l:function(f){return l(t,u,i?f+i:f,s,1)}},quickTo:function(t,e,i){var n,a=yr.to(t,_o((n={},n[e]="+=0.1",n.paused=!0,n),i||{})),o=function(u,l,f){return a.resetTo(e,u,l,f)};return o.tween=a,o},isTweening:function(t){return qt.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=oo(t.ease,Ps.ease)),Qx(Ps,t||{})},config:function(t){return Qx(Rr,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,n=t.plugins,a=t.defaults,o=t.extendTimeline;(n||"").split(",").forEach(function(s){return s&&!Cr[s]&&!Or[s]&&Al(e+" effect requires "+s+" plugin.")}),qd[e]=function(s,u,l){return i(qr(s),ti(u||{},a),l)},o&&(tr.prototype[e]=function(s,u,l){return this.add(qd[e](s,Wi(u)?u:(l=u)&&{},this),l)})},registerEase:function(t,e){St[t]=oo(e)},parseEase:function(t,e){return arguments.length?oo(t,e):St},getById:function(t){return qt.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var i=new tr(t),n,a;for(i.smoothChildTiming=vr(t.smoothChildTiming),qt.remove(i),i._dp=0,i._time=i._tTime=qt._time,n=qt._first;n;)a=n._next,(e||!(!n._dur&&n instanceof ce&&n.vars.onComplete===n._targets[0]))&&Ii(i,n,n._start-n._delay),n=a;return Ii(qt,i,0),i},context:function(t,e){return t?new EC(t,e):Xt},matchMedia:function(t){return new Kz(t)},matchMediaRefresh:function(){return so.forEach(function(t){var e=t.conditions,i,n;for(n in e)e[n]&&(e[n]=!1,i=1);i&&t.revert()})||Lg()},addEventListener:function(t,e){var i=wh[t]||(wh[t]=[]);~i.indexOf(e)||i.push(e)},removeEventListener:function(t,e){var i=wh[t],n=i&&i.indexOf(e);n>=0&&i.splice(n,1)},utils:{wrap:Az,wrapYoyo:Pz,distribute:vC,random:pC,snap:dC,normalize:Dz,getUnit:Ve,clamp:wz,splitColor:xC,toArray:qr,selector:Ag,mapRange:_C,pipe:Mz,unitize:Cz,interpolate:Iz,shuffle:cC},install:tC,effects:qd,ticker:Pr,updateRoot:tr.updateRoot,plugins:Cr,globalTimeline:qt,core:{PropTween:pr,globals:eC,Tween:ce,Timeline:tr,Animation:kl,getCache:no,_removeLinkedListItem:ev,reverting:function(){return We},context:function(t){return t&&Xt&&(Xt.data.push(t),t._ctx=Xt),Xt},suppressOverwrites:function(t){return sy=t}}};dr("to,from,fromTo,delayedCall,set,killTweensOf",function(r){return cc[r]=ce[r]});Pr.add(tr.updateRoot);os=cc.to({},{duration:0});var Qz=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},jz=function(t,e){var i=t._targets,n,a,o;for(n in e)for(a=i.length;a--;)o=t._ptLookup[a][n],o&&(o=o.d)&&(o._pt&&(o=Qz(o,n)),o&&o.modifier&&o.modifier(e[n],t,i[a],n))},tp=function(t,e){return{name:t,rawVars:1,init:function(n,a,o){o._onInit=function(s){var u,l;if(Te(a)&&(u={},dr(a,function(f){return u[f]=1}),a=u),e){u={};for(l in a)u[l]=e(a[l]);a=u}jz(s,a)}}}},yr=cc.registerPlugin({name:"attr",init:function(t,e,i,n,a){var o,s,u;this.tween=i;for(o in e)u=t.getAttribute(o)||"",s=this.add(t,"setAttribute",(u||0)+"",e[o],n,a,0,0,o),s.op=o,s.b=u,this._props.push(o)},render:function(t,e){for(var i=e._pt;i;)We?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i],0,0,0,0,0,1)}},tp("roundProps",Pg),tp("modifiers"),tp("snap",dC))||cc;ce.version=tr.version=yr.version="3.12.5";JM=1;ly()&&ks();St.Power0;St.Power1;St.Power2;St.Power3;St.Power4;St.Linear;St.Quad;St.Cubic;St.Quart;St.Quint;St.Strong;St.Elastic;St.Back;St.SteppedEase;St.Bounce;St.Sine;St.Expo;
vendor: 4,360 bytes, lines 49-57
49St.Circ;/*!
50 * CSSPlugin 3.12.5
51 * https://gsap.com
52 *
53 * Copyright 2008-2024, GreenSock. All rights reserved.
54 * Subject to the terms at https://gsap.com/standard-license or for
55 * Club GSAP members, the agreement issued with that membership.
56 * @author: Jack Doyle, [email protected]
57*/var ib,Gn,ys,xy,Ja,nb,by,Jz=function(){return typeof window<"u"},_n={},Ya=180/Math.PI,ms=Math.PI/180,Uo=Math.atan2,ab=1e8,Sy=/([A-Z])/g,tG=/(left|right|width|margin|padding|x)/i,eG=/[\s,\(]\S/,Oi={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},kg=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},rG=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},iG=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},nG=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},OC=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},BC=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},aG=function(t,e,i){return t.style[e]=i},oG=function(t,e,i){return t.style.setProperty(e,i)},sG=function(t,e,i){return t._gsap[e]=i},uG=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},lG=function(t,e,i,n,a){var o=t._gsap;o.scaleX=o.scaleY=i,o.renderTransform(a,o)},fG=function(t,e,i,n,a){var o=t._gsap;o[e]=i,o.renderTransform(a,o)},Qt="transform",gr=Qt+"Origin",hG=function r(t,e){var i=this,n=this.target,a=n.style,o=n._gsap;if(t in _n&&a){if(this.tfm=this.tfm||{},t!=="transform")t=Oi[t]||t,~t.indexOf(",")?t.split(",").forEach(function(s){return i.tfm[s]=Ji(n,s)}):this.tfm[t]=o.x?o[t]:Ji(n,t),t===gr&&(this.tfm.zOrigin=o.zOrigin);else return Oi.transform.split(",").forEach(function(s){return r.call(i,s,e)});if(this.props.indexOf(Qt)>=0)return;o.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(gr,e,"")),t=Qt}(a||e)&&this.props.push(t,e,a[t])},NC=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},cG=function(){var t=this.props,e=this.target,i=e.style,n=e._gsap,a,o;for(a=0;a<t.length;a+=3)t[a+1]?e[t[a]]=t[a+2]:t[a+2]?i[t[a]]=t[a+2]:i.removeProperty(t[a].substr(0,2)==="--"?t[a]:t[a].replace(Sy,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)n[o]=this.tfm[o];n.svg&&(n.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),a=by(),(!a||!a.isStart)&&!i[Qt]&&(NC(i),n.zOrigin&&i[gr]&&(i[gr]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},FC=function(t,e){var i={target:t,props:[],revert:cG,save:hG};return t._gsap||yr.core.getCache(t),e&&e.split(",").forEach(function(n){return i.save(n)}),i},zC,Rg=function(t,e){var i=Gn.createElementNS?Gn.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Gn.createElement(t);return i&&i.style?i:Gn.createElement(t)},zi=function r(t,e,i){var n=getComputedStyle(t);return n[e]||n.getPropertyValue(e.replace(Sy,"-$1").toLowerCase())||n.getPropertyValue(e)||!i&&r(t,Rs(e)||e,1)||""},ob="O,Moz,ms,Ms,Webkit".split(","),Rs=function(t,e,i){var n=e||Ja,a=n.style,o=5;if(t in a&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(ob[o]+t in a););return o<0?null:(o===3?"ms":o>=0?ob[o]:"")+t},Eg=function(){Jz()&&window.document&&(ib=window,Gn=ib.document,ys=Gn.documentElement,Ja=Rg("div")||{style:{}},Rg("div"),Qt=Rs(Qt),gr=Qt+"Origin",Ja.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",zC=!!Rs("perspective"),by=yr.core.reverting,xy=1)},ep=function r(t){var e=Rg("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,a=this.style.cssText,o;if(ys.appendChild(e),e.appendChild(this),this.style.display="block",t)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=r}catch{}else this._gsapBBox&&(o=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),ys.removeChild(e),this.style.cssText=a,o},sb=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},GC=function(t){var e;try{e=t.getBBox()}catch{e=ep.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===ep||(e=ep.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+sb(t,["x","cx","x1"])||0,y:+sb(t,["y","cy","y1"])||0,width:0,height:0}:e},VC=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&GC(t))},yo=function(t,e){if(e){var i=t.style,n;
vendor: 13,419 bytes, line 57
57e in _n&&e!==gr&&(e=Qt),i.removeProperty?(n=e.substr(0,2),(n==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),i.removeProperty(n==="--"?e:e.replace(Sy,"-$1").toLowerCase())):i.removeAttribute(e)}},Vn=function(t,e,i,n,a,o){var s=new pr(t._pt,e,i,0,1,o?BC:OC);return t._pt=s,s.b=n,s.e=a,t._props.push(i),s},ub={deg:1,rad:1,turn:1},vG={grid:1,flex:1},sa=function r(t,e,i,n){var a=parseFloat(i)||0,o=(i+"").trim().substr((a+"").length)||"px",s=Ja.style,u=tG.test(e),l=t.tagName.toLowerCase()==="svg",f=(l?"client":"offset")+(u?"Width":"Height"),h=100,v=n==="px",c=n==="%",d,p,g,_;if(n===o||!a||ub[n]||ub[o])return a;if(o!=="px"&&!v&&(a=r(t,e,i,"px")),_=t.getCTM&&VC(t),(c||o==="%")&&(_n[e]||~e.indexOf("adius")))return d=_?t.getBBox()[u?"width":"height"]:t[f],ae(c?a/d*h:a/100*d);if(s[u?"width":"height"]=h+(v?o:n),p=~e.indexOf("adius")||n==="em"&&t.appendChild&&!l?t:t.parentNode,_&&(p=(t.ownerSVGElement||{}).parentNode),(!p||p===Gn||!p.appendChild)&&(p=Gn.body),g=p._gsap,g&&c&&g.width&&u&&g.time===Pr.time&&!g.uncache)return ae(a/g.width*h);if(c&&(e==="height"||e==="width")){var y=t.style[e];t.style[e]=h+n,d=t[f],y?t.style[e]=y:yo(t,e)}else(c||o==="%")&&!vG[zi(p,"display")]&&(s.position=zi(t,"position")),p===t&&(s.position="static"),p.appendChild(Ja),d=Ja[f],p.removeChild(Ja),s.position="absolute";return u&&c&&(g=no(p),g.time=Pr.time,g.width=p[f]),ae(v?d*a/h:d&&a?h/d*a:0)},Ji=function(t,e,i,n){var a;return xy||Eg(),e in Oi&&e!=="transform"&&(e=Oi[e],~e.indexOf(",")&&(e=e.split(",")[0])),_n[e]&&e!=="transform"?(a=El(t,n),a=e!=="transformOrigin"?a[e]:a.svg?a.origin:dc(zi(t,gr))+" "+a.zOrigin+"px"):(a=t.style[e],(!a||a==="auto"||n||~(a+"").indexOf("calc("))&&(a=vc[e]&&vc[e](t,e,i)||zi(t,e)||iC(t,e)||(e==="opacity"?1:0))),i&&!~(a+"").trim().indexOf(" ")?sa(t,e,a,i)+i:a},dG=function(t,e,i,n){if(!i||i==="none"){var a=Rs(e,t,1),o=a&&zi(t,a,1);o&&o!==i?(e=a,i=o):e==="borderColor"&&(i=zi(t,"borderTopColor"))}var s=new pr(this._pt,t.style,e,0,1,kC),u=0,l=0,f,h,v,c,d,p,g,_,y,m,x,S;if(s.b=i,s.e=n,i+="",n+="",n==="auto"&&(p=t.style[e],t.style[e]=n,n=zi(t,e)||n,p?t.style[e]=p:yo(t,e)),f=[i,n],SC(f),i=f[0],n=f[1],v=i.match(as)||[],S=n.match(as)||[],S.length){for(;h=as.exec(n);)g=h[0],y=n.substring(u,h.index),d?d=(d+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(d=1),g!==(p=v[l++]||"")&&(c=parseFloat(p)||0,x=p.substr((c+"").length),g.charAt(1)==="="&&(g=_s(c,g)+x),_=parseFloat(g),m=g.substr((_+"").length),u=as.lastIndex-m.length,m||(m=m||Rr.units[e]||x,u===n.length&&(n+=m,s.e+=m)),x!==m&&(c=sa(t,e,p,m)||0),s._pt={_next:s._pt,p:y||l===1?y:",",s:c,c:_-c,m:d&&d<4||e==="zIndex"?Math.round:0});s.c=u<n.length?n.substring(u,n.length):""}else s.r=e==="display"&&n==="none"?BC:OC;return QM.test(n)&&(s.e=0),this._pt=s,s},lb={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},pG=function(t){var e=t.split(" "),i=e[0],n=e[1]||"50%";return(i==="top"||i==="bottom"||n==="left"||n==="right")&&(t=i,i=n,n=t),e[0]=lb[i]||i,e[1]=lb[n]||n,e.join(" ")},gG=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i=e.t,n=i.style,a=e.u,o=i._gsap,s,u,l;if(a==="all"||a===!0)n.cssText="",u=1;else for(a=a.split(","),l=a.length;--l>-1;)s=a[l],_n[s]&&(u=1,s=s==="transformOrigin"?gr:Qt),yo(i,s);u&&(yo(i,Qt),o&&(o.svg&&i.removeAttribute("transform"),El(i,1),o.uncache=1,NC(n)))}},vc={clearProps:function(t,e,i,n,a){if(a.data!=="isFromStart"){var o=t._pt=new pr(t._pt,e,i,0,0,gG);return o.u=n,o.pr=-10,o.tween=a,t._props.push(i),1}}},Rl=[1,0,0,1,0,0],HC={},WC=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},fb=function(t){var e=zi(t,Qt);return WC(e)?Rl:e.substr(7).match(KM).map(ae)},wy=function(t,e){var i=t._gsap||no(t),n=t.style,a=fb(t),o,s,u,l;return i.svg&&t.getAttribute("transform")?(u=t.transform.baseVal.consolidate().matrix,a=[u.a,u.b,u.c,u.d,u.e,u.f],a.join(",")==="1,0,0,1,0,0"?Rl:a):(a===Rl&&!t.offsetParent&&t!==ys&&!i.svg&&(u=n.display,n.display="block",o=t.parentNode,(!o||!t.offsetParent)&&(l=1,s=t.nextElementSibling,ys.appendChild(t)),a=fb(t),u?n.display=u:yo(t,"display"),l&&(s?o.insertBefore(t,s):o?o.appendChild(t):ys.removeChild(t))),e&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},Og=function(t,e,i,n,a,o){var s=t._gsap,u=a||wy(t,!0),l=s.xOrigin||0,f=s.yOrigin||0,h=s.xOffset||0,v=s.yOffset||0,c=u[0],d=u[1],p=u[2],g=u[3],_=u[4],y=u[5],m=e.split(" "),x=parseFloat(m[0])||0,S=parseFloat(m[1])||0,b,w,M,T;i?u!==Rl&&(w=c*g-d*p)&&(M=x*(g/w)+S*(-p/w)+(p*y-g*_)/w,T=x*(-d/w)+S*(c/w)-(c*y-d*_)/w,x=M,S=T):(b=GC(t),x=b.x+(~m[0].indexOf("%")?x/100*b.width:x),S=b.y+(~(m[1]||m[0]).indexOf("%")?S/100*b.height:S)),n||n!==!1&&s.smooth?(_=x-l,y=S-f,s.xOffset=h+(_*c+y*p)-_,s.yOffset=v+(_*d+y*g)-y):s.xOffset=s.yOffset=0,s.xOrigin=x,s.yOrigin=S,s.smooth=!!n,s.origin=e,s.originIsAbsolute=!!i,t.style[gr]="0px 0px",o&&(Vn(o,s,"xOrigin",l,x),Vn(o,s,"yOrigin",f,S),Vn(o,s,"xOffset",h,s.xOffset),Vn(o,s,"yOffset",v,s.yOffset)),t.setAttribute("data-svg-origin",x+" "+S)},El=function(t,e){var i=t._gsap||new CC(t);if("x"in i&&!e&&!i.uncache)return i;var n=t.style,a=i.scaleX<0,o="px",s="deg",u=getComputedStyle(t),l=zi(t,gr)||"0",f,h,v,c,d,p,g,_,y,m,x,S,b,w,M,T,C,D,P,L,k,R,E,B,z,H,I,U,tt,gt,j,ct;return f=h=v=p=g=_=y=m=x=0,c=d=1,i.svg=!!(t.getCTM&&VC(t)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(n[Qt]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[Qt]!=="none"?u[Qt]:"")),n.scale=n.rotate=n.translate="none"),w=wy(t,i.svg),i.svg&&(i.uncache?(z=t.getBBox(),l=i.xOrigin-z.x+"px "+(i.yOrigin-z.y)+"px",B=""):B=!e&&t.getAttribute("data-svg-origin"),Og(t,B||l,!!B||i.originIsAbsolute,i.smooth!==!1,w)),S=i.xOrigin||0,b=i.yOrigin||0,w!==Rl&&(D=w[0],P=w[1],L=w[2],k=w[3],f=R=w[4],h=E=w[5],w.length===6?(c=Math.sqrt(D*D+P*P),d=Math.sqrt(k*k+L*L),p=D||P?Uo(P,D)*Ya:0,y=L||k?Uo(L,k)*Ya+p:0,y&&(d*=Math.abs(Math.cos(y*ms))),i.svg&&(f-=S-(S*D+b*L),h-=b-(S*P+b*k))):(ct=w[6],gt=w[7],I=w[8],U=w[9],tt=w[10],j=w[11],f=w[12],h=w[13],v=w[14],M=Uo(ct,tt),g=M*Ya,M&&(T=Math.cos(-M),C=Math.sin(-M),B=R*T+I*C,z=E*T+U*C,H=ct*T+tt*C,I=R*-C+I*T,U=E*-C+U*T,tt=ct*-C+tt*T,j=gt*-C+j*T,R=B,E=z,ct=H),M=Uo(-L,tt),_=M*Ya,M&&(T=Math.cos(-M),C=Math.sin(-M),B=D*T-I*C,z=P*T-U*C,H=L*T-tt*C,j=k*C+j*T,D=B,P=z,L=H),M=Uo(P,D),p=M*Ya,M&&(T=Math.cos(M),C=Math.sin(M),B=D*T+P*C,z=R*T+E*C,P=P*T-D*C,E=E*T-R*C,D=B,R=z),g&&Math.abs(g)+Math.abs(p)>359.9&&(g=p=0,_=180-_),c=ae(Math.sqrt(D*D+P*P+L*L)),d=ae(Math.sqrt(E*E+ct*ct)),M=Uo(R,E),y=Math.abs(M)>2e-4?M*Ya:0,x=j?1/(j<0?-j:j):0),i.svg&&(B=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!WC(zi(t,Qt)),B&&t.setAttribute("transform",B))),Math.abs(y)>90&&Math.abs(y)<270&&(a?(c*=-1,y+=p<=0?180:-180,p+=p<=0?180:-180):(d*=-1,y+=y<=0?180:-180)),e=e||i.uncache,i.x=f-((i.xPercent=f&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+o,i.y=h-((i.yPercent=h&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+o,i.z=v+o,i.scaleX=ae(c),i.scaleY=ae(d),i.rotation=ae(p)+s,i.rotationX=ae(g)+s,i.rotationY=ae(_)+s,i.skewX=y+s,i.skewY=m+s,i.transformPerspective=x+o,(i.zOrigin=parseFloat(l.split(" ")[2])||!e&&i.zOrigin||0)&&(n[gr]=dc(l)),i.xOffset=i.yOffset=0,i.force3D=Rr.force3D,i.renderTransform=i.svg?yG:zC?YC:_G,i.uncache=0,i},dc=function(t){return(t=t.split(" "))[0]+" "+t[1]},rp=function(t,e,i){var n=Ve(e);return ae(parseFloat(e)+parseFloat(sa(t,"x",i+"px",n)))+n},_G=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,YC(t,e)},Ga="0deg",yu="0px",Va=") ",YC=function(t,e){var i=e||this,n=i.xPercent,a=i.yPercent,o=i.x,s=i.y,u=i.z,l=i.rotation,f=i.rotationY,h=i.rotationX,v=i.skewX,c=i.skewY,d=i.scaleX,p=i.scaleY,g=i.transformPerspective,_=i.force3D,y=i.target,m=i.zOrigin,x="",S=_==="auto"&&t&&t!==1||_===!0;if(m&&(h!==Ga||f!==Ga)){var b=parseFloat(f)*ms,w=Math.sin(b),M=Math.cos(b),T;b=parseFloat(h)*ms,T=Math.cos(b),o=rp(y,o,w*T*-m),s=rp(y,s,-Math.sin(b)*-m),u=rp(y,u,M*T*-m+m)}g!==yu&&(x+="perspective("+g+Va),(n||a)&&(x+="translate("+n+"%, "+a+"%) "),(S||o!==yu||s!==yu||u!==yu)&&(x+=u!==yu||S?"translate3d("+o+", "+s+", "+u+") ":"translate("+o+", "+s+Va),l!==Ga&&(x+="rotate("+l+Va),f!==Ga&&(x+="rotateY("+f+Va),h!==Ga&&(x+="rotateX("+h+Va),(v!==Ga||c!==Ga)&&(x+="skew("+v+", "+c+Va),(d!==1||p!==1)&&(x+="scale("+d+", "+p+Va),y.style[Qt]=x||"translate(0, 0)"},yG=function(t,e){var i=e||this,n=i.xPercent,a=i.yPercent,o=i.x,s=i.y,u=i.rotation,l=i.skewX,f=i.skewY,h=i.scaleX,v=i.scaleY,c=i.target,d=i.xOrigin,p=i.yOrigin,g=i.xOffset,_=i.yOffset,y=i.forceCSS,m=parseFloat(o),x=parseFloat(s),S,b,w,M,T;u=parseFloat(u),l=parseFloat(l),f=parseFloat(f),f&&(f=parseFloat(f),l+=f,u+=f),u||l?(u*=ms,l*=ms,S=Math.cos(u)*h,b=Math.sin(u)*h,w=Math.sin(u-l)*-v,M=Math.cos(u-l)*v,l&&(f*=ms,T=Math.tan(l-f),T=Math.sqrt(1+T*T),w*=T,M*=T,f&&(T=Math.tan(f),T=Math.sqrt(1+T*T),S*=T,b*=T)),S=ae(S),b=ae(b),w=ae(w),M=ae(M)):(S=h,M=v,b=w=0),(m&&!~(o+"").indexOf("px")||x&&!~(s+"").indexOf("px"))&&(m=sa(c,"x",o,"px"),x=sa(c,"y",s,"px")),(d||p||g||_)&&(m=ae(m+d-(d*S+p*w)+g),x=ae(x+p-(d*b+p*M)+_)),(n||a)&&(T=c.getBBox(),m=ae(m+n/100*T.width),x=ae(x+a/100*T.height)),T="matrix("+S+","+b+","+w+","+M+","+m+","+x+")",c.setAttribute("transform",T),y&&(c.style[Qt]=T)},mG=function(t,e,i,n,a){var o=360,s=Te(a),u=parseFloat(a)*(s&&~a.indexOf("rad")?Ya:1),l=u-n,f=n+l+"deg",h,v;return s&&(h=a.split("_")[1],h==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),h==="cw"&&l<0?l=(l+o*ab)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*ab)%o-~~(l/o)*o)),t._pt=v=new pr(t._pt,e,i,n,l,rG),v.e=f,v.u="deg",t._props.push(i),v},hb=function(t,e){for(var i in e)t[i]=e[i];return t},xG=function(t,e,i){var n=hb({},i._gsap),a="perspective,force3D,transformOrigin,svgOrigin",o=i.style,s,u,l,f,h,v,c,d;n.svg?(l=i.getAttribute("transform"),i.setAttribute("transform",""),o[Qt]=e,s=El(i,1),yo(i,Qt),i.setAttribute("transform",l)):(l=getComputedStyle(i)[Qt],o[Qt]=e,s=El(i,1),o[Qt]=l);for(u in _n)l=n[u],f=s[u],l!==f&&a.indexOf(u)<0&&(c=Ve(l),d=Ve(f),h=c!==d?sa(i,u,l,d):parseFloat(l),v=parseFloat(f),t._pt=new pr(t._pt,s,u,h,v-h,kg),t._pt.u=d||0,t._props.push(u));hb(s,n)};dr("padding,margin,Width,Radius",function(r,t){var e="Top",i="Right",n="Bottom",a="Left",o=(t<3?[e,i,n,a]:[e+a,e+i,n+i,n+a]).map(function(s){return t<2?r+s:"border"+s+r});vc[t>1?"border"+r:r]=function(s,u,l,f,h){var v,c;if(arguments.length<4)return v=o.map(function(d){return Ji(s,d,l)}),c=v.join(" "),c.split(v[0]).length===5?v[0]:c;v=(f+"").split(" "),c={},o.forEach(function(d,p){return c[d]=v[p]=v[p]||v[(p-1)/2|0]}),s.init(u,c,h)}});var UC={name:"css",register:Eg,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,n,a){var o=this._props,s=t.style,u=i.vars.startAt,l,f,h,v,c,d,p,g,_,y,m,x,S,b,w,M;xy||Eg(),this.styles=this.styles||FC(t),M=this.styles.props,this.tween=i;for(p in e)if(p!=="autoRound"&&(f=e[p],!(Cr[p]&&DC(p,e,i,n,t,a)))){if(c=typeof f,d=vc[p],c==="function"&&(f=f.call(i,n,t,a),c=typeof f),c==="string"&&~f.indexOf("random(")&&(f=Il(f)),d)d(this,t,p,f,i)&&(w=1);else if(p.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(p)+"").trim(),f+="",Qn.lastIndex=0,Qn.test(l)||(g=Ve(l),_=Ve(f)),_?g!==_&&(l=sa(t,p,l,_)+_):g&&(f+=g),this.add(s,"setProperty",l,f,n,a,0,0,p),o.push(p),M.push(p,0,s[p]);else if(c!=="undefined"){if(u&&p in u?(l=typeof u[p]=="function"?u[p].call(i,n,t,a):u[p],Te(l)&&~l.indexOf("random(")&&(l=Il(l)),Ve(l+"")||l==="auto"||(l+=Rr.units[p]||Ve(Ji(t,p))||""),(l+"").charAt(1)==="="&&(l=Ji(t,p))):l=Ji(t,p),v=parseFloat(l),y=c==="string"&&f.charAt(1)==="="&&f.substr(0,2),y&&(f=f.substr(2)),h=parseFloat(f),p in Oi&&(p==="autoAlpha"&&(v===1&&Ji(t,"visibility")==="hidden"&&h&&(v=0),M.push("visibility",0,s.visibility),Vn(this,s,"visibility",v?"inherit":"hidden",h?"inherit":"hidden",!h)),p!=="scale"&&p!=="transform"&&(p=Oi[p],~p.indexOf(",")&&(p=p.split(",")[0]))),m=p in _n,m){if(this.styles.save(p),x||(S=t._gsap,S.renderTransform&&!e.parseTransform||El(t,e.parseTransform),b=e.smoothOrigin!==!1&&S.smooth,x=this._pt=new pr(this._pt,s,Qt,0,1,S.renderTransform,S,0,-1),x.dep=1),p==="scale")this._pt=new pr(this._pt,S,"scaleY",S.scaleY,(y?_s(S.scaleY,y+h):h)-S.scaleY||0,kg),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){M.push(gr,0,s[gr]),f=pG(f),S.svg?Og(t,f,0,b,0,this):(_=parseFloat(f.split(" ")[2])||0,_!==S.zOrigin&&Vn(this,S,"zOrigin",S.zOrigin,_),Vn(this,s,p,dc(l),dc(f)));continue}else if(p==="svgOrigin"){Og(t,f,1,b,0,this);continue}else if(p in HC){mG(this,S,p,v,y?_s(v,y+f):f);continue}else if(p==="smoothOrigin"){Vn(this,S,"smooth",S.smooth,f);continue}else if(p==="force3D"){S[p]=f;continue}else if(p==="transform"){xG(this,f,t);continue}}else p in s||(p=Rs(p)||p);if(m||(h||h===0)&&(v||v===0)&&!eG.test(f)&&p in s)g=(l+"").substr((v+"").length),h||(h=0),_=Ve(f)||(p in Rr.units?Rr.units[p]:g),g!==_&&(v=sa(t,p,l,_)),this._pt=new pr(this._pt,m?S:s,p,v,(y?_s(v,y+h):h)-v,!m&&(_==="px"||p==="zIndex")&&e.autoRound!==!1?nG:kg),this._pt.u=_||0,g!==_&&_!=="%"&&(this._pt.b=l,this._pt.r=iG);else if(p in s)dG.call(this,t,p,l,y?y+f:f);else if(p in t)this.add(t,p,l||t[p],y?y+f:f,n,a);else if(p!=="parseTransform"){hy(p,f);continue}m||(p in s?M.push(p,0,s[p]):M.push(p,1,l||t[p])),o.push(p)}}w&&RC(this)},render:function(t,e){if(e.tween._time||!by())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()}
vendor: 7,103 bytes, lines 57-73
57,get:Ji,aliases:Oi,getSetter:function(t,e,i){var n=Oi[e];return n&&n.indexOf(",")<0&&(e=n),e in _n&&e!==gr&&(t._gsap.x||Ji(t,"x"))?i&&nb===i?e==="scale"?uG:sG:(nb=i||{})&&(e==="scale"?lG:fG):t.style&&!uy(t.style[e])?aG:~e.indexOf("-")?oG:yy(t,e)},core:{_removeProperty:yo,_getMatrix:wy}};yr.utils.checkPrefix=Rs;yr.core.getStyleSaver=FC;(function(r,t,e,i){var n=dr(r+","+t+","+e,function(a){_n[a]=1});dr(t,function(a){Rr.units[a]="deg",HC[a]=1}),Oi[n[13]]=r+","+t,dr(i,function(a){var o=a.split(":");Oi[o[1]]=n[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");dr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(r){Rr.units[r]="px"});yr.registerPlugin(UC);var Bg=yr.registerPlugin(UC)||yr;Bg.core.Tween;/*!
58 * ScrollToPlugin 3.12.5
59 * https://gsap.com
60 *
61 * @license Copyright 2008-2024, GreenSock. All rights reserved.
62 * Subject to the terms at https://gsap.com/standard-license or for
63 * Club GSAP members, the agreement issued with that membership.
64 * @author: Jack Doyle, [email protected]
65*/var er,XC,un,Bi,jn,$C,ZC,Yf,qC=function(){return typeof window<"u"},KC=function(){return er||qC()&&(er=window.gsap)&&er.registerPlugin&&er},QC=function(t){return typeof t=="string"},cb=function(t){return typeof t=="function"},Ol=function(t,e){var i=e==="x"?"Width":"Height",n="scroll"+i,a="client"+i;return t===un||t===Bi||t===jn?Math.max(Bi[n],jn[n])-(un["inner"+i]||Bi[a]||jn[a]):t[n]-t["offset"+i]},Bl=function(t,e){var i="scroll"+(e==="x"?"Left":"Top");return t===un&&(t.pageXOffset!=null?i="page"+e.toUpperCase()+"Offset":t=Bi[i]!=null?Bi:jn),function(){return t[i]}},bG=function(t,e,i,n){if(cb(t)&&(t=t(e,i,n)),typeof t!="object")return QC(t)&&t!=="max"&&t.charAt(1)!=="="?{x:t,y:t}:{y:t};if(t.nodeType)return{y:t,x:t};var a={},o;for(o in t)a[o]=o!=="onAutoKill"&&cb(t[o])?t[o](e,i,n):t[o];return a},jC=function(t,e){if(t=$C(t)[0],!t||!t.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var i=t.getBoundingClientRect(),n=!e||e===un||e===jn,a=n?{top:Bi.clientTop-(un.pageYOffset||Bi.scrollTop||jn.scrollTop||0),left:Bi.clientLeft-(un.pageXOffset||Bi.scrollLeft||jn.scrollLeft||0)}:e.getBoundingClientRect(),o={x:i.left-a.left,y:i.top-a.top};return!n&&e&&(o.x+=Bl(e,"x")(),o.y+=Bl(e,"y")()),o},vb=function(t,e,i,n,a){return!isNaN(t)&&typeof t!="object"?parseFloat(t)-a:QC(t)&&t.charAt(1)==="="?parseFloat(t.substr(2))*(t.charAt(0)==="-"?-1:1)+n-a:t==="max"?Ol(e,i)-a:Math.min(Ol(e,i),jC(t,e)[i]-a)},db=function(){er=KC(),qC()&&er&&typeof document<"u"&&document.body&&(un=window,jn=document.body,Bi=document.documentElement,$C=er.utils.toArray,er.config({autoKillThreshold:7}),ZC=er.config(),XC=1)},Zl={version:"3.12.5",name:"scrollTo",rawVars:1,register:function(t){er=t,db()},init:function(t,e,i,n,a){XC||db();var o=this,s=er.getProperty(t,"scrollSnapType");o.isWin=t===un,o.target=t,o.tween=i,e=bG(e,n,t,a),o.vars=e,o.autoKill=!!e.autoKill,o.getX=Bl(t,"x"),o.getY=Bl(t,"y"),o.x=o.xPrev=o.getX(),o.y=o.yPrev=o.getY(),Yf||(Yf=er.core.globals().ScrollTrigger),er.getProperty(t,"scrollBehavior")==="smooth"&&er.set(t,{scrollBehavior:"auto"}),s&&s!=="none"&&(o.snap=1,o.snapInline=t.style.scrollSnapType,t.style.scrollSnapType="none"),e.x!=null?(o.add(o,"x",o.x,vb(e.x,t,"x",o.x,e.offsetX||0),n,a),o._props.push("scrollTo_x")):o.skipX=1,e.y!=null?(o.add(o,"y",o.y,vb(e.y,t,"y",o.y,e.offsetY||0),n,a),o._props.push("scrollTo_y")):o.skipY=1},render:function(t,e){for(var i=e._pt,n=e.target,a=e.tween,o=e.autoKill,s=e.xPrev,u=e.yPrev,l=e.isWin,f=e.snap,h=e.snapInline,v,c,d,p,g;i;)i.r(t,i.d),i=i._next;v=l||!e.skipX?e.getX():s,c=l||!e.skipY?e.getY():u,d=c-u,p=v-s,g=ZC.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),o&&(!e.skipX&&(p>g||p<-g)&&v<Ol(n,"x")&&(e.skipX=1),!e.skipY&&(d>g||d<-g)&&c<Ol(n,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(a.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(a,e.vars.onAutoKillParams||[]))),l?un.scrollTo(e.skipX?v:e.x,e.skipY?c:e.y):(e.skipY||(n.scrollTop=e.y),e.skipX||(n.scrollLeft=e.x)),f&&(t===1||t===0)&&(c=n.scrollTop,v=n.scrollLeft,h?n.style.scrollSnapType=h:n.style.removeProperty("scroll-snap-type"),n.scrollTop=c+1,n.scrollLeft=v+1,n.scrollTop=c,n.scrollLeft=v),e.xPrev=e.x,e.yPrev=e.y,Yf&&Yf.update()},kill:function(t){var e=t==="scrollTo",i=this._props.indexOf(t);return(e||t==="scrollTo_x")&&(this.skipX=1),(e||t==="scrollTo_y")&&(this.skipY=1),i>-1&&this._props.splice(i,1),!this._props.length}};Zl.max=Ol;Zl.getOffset=jC;Zl.buildGetter=Bl;KC()&&er.registerPlugin(Zl);function SG(r,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}function wG(r,t,e){return t&&SG(r.prototype,t),r}/*!
66 * Observer 3.12.5
67 * https://gsap.com
68 *
69 * @license Copyright 2008-2024, GreenSock. All rights reserved.
70 * Subject to the terms at https://gsap.com/standard-license or for
71 * Club GSAP members, the agreement issued with that membership.
72 * @author: Jack Doyle, [email protected]
73*/var Pe,Th,Ir,Hn,Wn,xs,JC,Ua,tl,tD,on,fi,eD,rD=function(){return Pe||typeof window<"u"&&(Pe=window.gsap)&&Pe.registerPlugin&&Pe},iD=1,ss=[],pt=[],Gi=[],el=Date.now,Ng=function(t,e){return e},TG=function(){var t=tl.core,e=t.bridge||{},i=t._scrollers,n=t._proxies;i.push.apply(i,pt),n.push.apply(n,Gi),pt=i,Gi=n,Ng=function(o,s){return e[o](s)}},Jn=function(t,e){return~Gi.indexOf(t)&&Gi[Gi.indexOf(t)+1][e]},rl=function(t){return!!~tD.indexOf(t)},qe=function(t,e,i,n,a){return t.addEventListener(e,i,{passive:n!==!1,capture:!!a})},$e=function(t,e,i,n){return t.removeEventListener(e,i,!!n)},Uf="scrollLeft",Xf="scrollTop",Fg=function(){return on&&on.isPressed||pt.cache++},pc=function(t,e){var i=function n(a){if(a||a===0){iD&&(Ir.history.scrollRestoration="manual");var o=on&&on.isPressed;a=n.v=Math.round(a)||(on&&on.iOS?1:0),t(a),n.cacheID=pt.cache,o&&Ng("ss",a)}else(e||pt.cache!==n.cacheID||Ng("ref"))&&(n.cacheID=pt.cache,n.v=t());return n.v+n.offset};return i.offset=0,t&&i},rr={s:Uf,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:pc(function(r){return arguments.length?Ir.scrollTo(r,ge.sc()):Ir.pageXOffset||Hn[Uf]||Wn[Uf]||xs[Uf]||0})},ge={s:Xf,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:rr,sc:pc(function(r){return arguments.length?Ir.scrollTo(rr.sc(),r):Ir.pageYOffset||Hn[Xf]||Wn[Xf]||xs[Xf]||0})},lr=function(t,e){return(e&&e._ctx&&e._ctx.selector||Pe.utils.toArray)(t)[0]||(typeof t=="string"&&Pe.config().nullTargetWarn!==!1?console.warn("Element not found:",t):null)},ua=function(t,e){var i=e.s,n=e.sc;rl(t)&&(t=Hn.scrollingElement||Wn);var a=pt.indexOf(t),o=n===ge.sc?1:2;!~a&&(a=pt.push(t)-1),pt[a+o]||qe(t,"scroll",Fg);var s=pt[a+o],u=s||(pt[a+o]=pc(Jn(t,i),!0)||(rl(t)?n:pc(function(l){return arguments.length?t[i]=l:t[i]})));return u.target=t,s||(u.smooth=Pe.getProperty(t,"scrollBehavior")==="smooth"),u}
vendor: 4,773 bytes, line 73
73,zg=function(t,e,i){var n=t,a=t,o=el(),s=o,u=e||50,l=Math.max(500,u*3),f=function(d,p){var g=el();p||g-o>u?(a=n,n=d,s=o,o=g):i?n+=d:n=a+(d-a)/(g-s)*(o-s)},h=function(){a=n=i?0:n,s=o=0},v=function(d){var p=s,g=a,_=el();return(d||d===0)&&d!==n&&f(d),o===s||_-s>l?0:(n+(i?g:-g))/((i?_:o)-p)*1e3};return{update:f,reset:h,getVelocity:v}},mu=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},pb=function(t){var e=Math.max.apply(Math,t),i=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(i)?e:i},nD=function(){tl=Pe.core.globals().ScrollTrigger,tl&&tl.core&&TG()},aD=function(t){return Pe=t||rD(),!Th&&Pe&&typeof document<"u"&&document.body&&(Ir=window,Hn=document,Wn=Hn.documentElement,xs=Hn.body,tD=[Ir,Hn,Wn,xs],Pe.utils.clamp,eD=Pe.core.context||function(){},Ua="onpointerenter"in xs?"pointer":"mouse",JC=se.isTouch=Ir.matchMedia&&Ir.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ir||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,fi=se.eventTypes=("ontouchstart"in Wn?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Wn?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return iD=0},500),nD(),Th=1),Th};rr.op=ge;pt.cache=0;var se=function(){function r(e){this.init(e)}var t=r.prototype;return t.init=function(i){Th||aD(Pe)||console.warn("Please gsap.registerPlugin(Observer)"),tl||nD();var n=i.tolerance,a=i.dragMinimum,o=i.type,s=i.target,u=i.lineHeight,l=i.debounce,f=i.preventDefault,h=i.onStop,v=i.onStopDelay,c=i.ignore,d=i.wheelSpeed,p=i.event,g=i.onDragStart,_=i.onDragEnd,y=i.onDrag,m=i.onPress,x=i.onRelease,S=i.onRight,b=i.onLeft,w=i.onUp,M=i.onDown,T=i.onChangeX,C=i.onChangeY,D=i.onChange,P=i.onToggleX,L=i.onToggleY,k=i.onHover,R=i.onHoverEnd,E=i.onMove,B=i.ignoreCheck,z=i.isNormalizer,H=i.onGestureStart,I=i.onGestureEnd,U=i.onWheel,tt=i.onEnable,gt=i.onDisable,j=i.onClick,ct=i.scrollSpeed,Ht=i.capture,Lt=i.allowClicks,Wt=i.lockAxis,Ct=i.onLockAxis;this.target=s=lr(s)||Wn,this.vars=i,c&&(c=Pe.utils.toArray(c)),n=n||1e-9,a=a||0,d=d||1,ct=ct||1,o=o||"wheel,touch,pointer",l=l!==!1,u||(u=parseFloat(Ir.getComputedStyle(xs).lineHeight)||22);var Et,X,et,lt,vt,Me,Ie,O=this,mr=0,Xi=0,xn=i.passive||!f,le=ua(s,rr),bn=ua(s,ge),ha=le(),Mo=bn(),ye=~o.indexOf("touch")&&!~o.indexOf("pointer")&&fi[0]==="pointerdown",Sn=rl(s),re=s.ownerDocument||Hn,ri=[0,0,0],Br=[0,0,0],$i=0,Ws=function(){return $i=el()},fe=function(Q,Pt){return(O.event=Q)&&c&&~c.indexOf(Q.target)||Pt&&ye&&Q.pointerType!=="touch"||B&&B(Q,Pt)},ql=function(){O._vx.reset(),O._vy.reset(),X.pause(),h&&h(O)},wn=function(){var Q=O.deltaX=pb(ri),Pt=O.deltaY=pb(Br),V=Math.abs(Q)>=n,ut=Math.abs(Pt)>=n;D&&(V||ut)&&D(O,Q,Pt,ri,Br),V&&(S&&O.deltaX>0&&S(O),b&&O.deltaX<0&&b(O),T&&T(O),P&&O.deltaX<0!=mr<0&&P(O),mr=O.deltaX,ri[0]=ri[1]=ri[2]=0),ut&&(M&&O.deltaY>0&&M(O),w&&O.deltaY<0&&w(O),C&&C(O),L&&O.deltaY<0!=Xi<0&&L(O),Xi=O.deltaY,Br[0]=Br[1]=Br[2]=0),(lt||et)&&(E&&E(O),et&&(y(O),et=!1),lt=!1),Me&&!(Me=!1)&&Ct&&Ct(O),vt&&(U(O),vt=!1),Et=0},Co=function(Q,Pt,V){ri[V]+=Q,Br[V]+=Pt,O._vx.update(Q),O._vy.update(Pt),l?Et||(Et=requestAnimationFrame(wn)):wn()},Do=function(Q,Pt){Wt&&!Ie&&(O.axis=Ie=Math.abs(Q)>Math.abs(Pt)?"x":"y",Me=!0),Ie!=="y"&&(ri[2]+=Q,O._vx.update(Q,!0)),Ie!=="x"&&(Br[2]+=Pt,O._vy.update(Pt,!0)),l?Et||(Et=requestAnimationFrame(wn)):wn()},Tn=function(Q){if(!fe(Q,1)){Q=mu(Q,f);var Pt=Q.clientX,V=Q.clientY,ut=Pt-O.x,q=V-O.y,ot=O.isDragging;O.x=Pt,O.y=V,(ot||Math.abs(O.startX-Pt)>=a||Math.abs(O.startY-V)>=a)&&(y&&(et=!0),ot||(O.isDragging=!0),Do(ut,q),ot||g&&g(O))}},ca=O.onPress=function(st){fe(st,1)||st&&st.button||(O.axis=Ie=null,X.pause(),O.isPressed=!0,st=mu(st),mr=Xi=0,O.startX=O.x=st.clientX,O.startY=O.y=st.clientY,O._vx.reset(),O._vy.reset(),qe(z?s:re,fi[1],Tn,xn,!0),O.deltaX=O.deltaY=0,m&&m(O))},dt=O.onRelease=function(st){if(!fe(st,1)){$e(z?s:re,fi[1],Tn,!0);var Q=!isNaN(O.y-O.startY),Pt=O.isDragging,V=Pt&&(Math.abs(O.x-O.startX)>3||Math.abs(O.y-O.startY)>3),ut=mu(st);!V&&Q&&(O._vx.reset(),O._vy.reset(),f&&Lt&&Pe.delayedCall(.08,function(){if(el()-$i>300&&!st.defaultPrevented){if(st.target.click)st.target.click();else if(re.createEvent){var q=re.createEvent("MouseEvents");q.initMouseEvent("click",!0,!0,Ir,1,ut.screenX,ut.screenY,ut.clientX,ut.clientY,!1,!1,!1,!1,0,null),st.target.dispatchEvent(q)}}})),O.isDragging=O.isGesturing=O.isPressed=!1,h&&Pt&&!z&&X.restart(!0),_&&Pt&&_(O),x&&x(O,V)}},va=function(Q){return Q.touches&&Q.touches.length>1&&(O.isGesturing=!0)&&H(Q,O.isDragging)},ii=function(){return(O.isGesturing=!1)||I(O)},ni=function(Q){if(!fe(Q)){var Pt=le(),V=bn();Co((Pt-ha)*ct,(V-Mo)*ct,1),ha=Pt,Mo=V,h&&X.restart(!0)}},ai=function(Q){if(!fe(Q)){Q=mu(Q,f),U&&(vt=!0);
vendor: 9,324 bytes, lines 73-81
73var Pt=(Q.deltaMode===1?u:Q.deltaMode===2?Ir.innerHeight:1)*d;Co(Q.deltaX*Pt,Q.deltaY*Pt,0),h&&!z&&X.restart(!0)}},da=function(Q){if(!fe(Q)){var Pt=Q.clientX,V=Q.clientY,ut=Pt-O.x,q=V-O.y;O.x=Pt,O.y=V,lt=!0,h&&X.restart(!0),(ut||q)&&Do(ut,q)}},Ao=function(Q){O.event=Q,k(O)},Zi=function(Q){O.event=Q,R(O)},Ys=function(Q){return fe(Q)||mu(Q,f)&&j(O)};X=O._dc=Pe.delayedCall(v||.25,ql).pause(),O.deltaX=O.deltaY=0,O._vx=zg(0,50,!0),O._vy=zg(0,50,!0),O.scrollX=le,O.scrollY=bn,O.isDragging=O.isGesturing=O.isPressed=!1,eD(this),O.enable=function(st){return O.isEnabled||(qe(Sn?re:s,"scroll",Fg),o.indexOf("scroll")>=0&&qe(Sn?re:s,"scroll",ni,xn,Ht),o.indexOf("wheel")>=0&&qe(s,"wheel",ai,xn,Ht),(o.indexOf("touch")>=0&&JC||o.indexOf("pointer")>=0)&&(qe(s,fi[0],ca,xn,Ht),qe(re,fi[2],dt),qe(re,fi[3],dt),Lt&&qe(s,"click",Ws,!0,!0),j&&qe(s,"click",Ys),H&&qe(re,"gesturestart",va),I&&qe(re,"gestureend",ii),k&&qe(s,Ua+"enter",Ao),R&&qe(s,Ua+"leave",Zi),E&&qe(s,Ua+"move",da)),O.isEnabled=!0,st&&st.type&&ca(st),tt&&tt(O)),O},O.disable=function(){O.isEnabled&&(ss.filter(function(st){return st!==O&&rl(st.target)}).length||$e(Sn?re:s,"scroll",Fg),O.isPressed&&(O._vx.reset(),O._vy.reset(),$e(z?s:re,fi[1],Tn,!0)),$e(Sn?re:s,"scroll",ni,Ht),$e(s,"wheel",ai,Ht),$e(s,fi[0],ca,Ht),$e(re,fi[2],dt),$e(re,fi[3],dt),$e(s,"click",Ws,!0),$e(s,"click",Ys),$e(re,"gesturestart",va),$e(re,"gestureend",ii),$e(s,Ua+"enter",Ao),$e(s,Ua+"leave",Zi),$e(s,Ua+"move",da),O.isEnabled=O.isPressed=O.isDragging=!1,gt&&gt(O))},O.kill=O.revert=function(){O.disable();var st=ss.indexOf(O);st>=0&&ss.splice(st,1),on===O&&(on=0)},ss.push(O),z&&rl(s)&&(on=O),O.enable(p)},wG(r,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),r}();se.version="3.12.5";se.create=function(r){return new se(r)};se.register=aD;se.getAll=function(){return ss.slice()};se.getById=function(r){return ss.filter(function(t){return t.vars.id===r})[0]};rD()&&Pe.registerPlugin(se);/*!
74 * ScrollTrigger 3.12.5
75 * https://gsap.com
76 *
77 * @license Copyright 2008-2024, GreenSock. All rights reserved.
78 * Subject to the terms at https://gsap.com/standard-license or for
79 * Club GSAP members, the agreement issued with that membership.
80 * @author: Jack Doyle, [email protected]
81*/var W,Qo,xt,Zt,pi,Yt,oD,gc,Nl,il,Iu,$f,Be,nv,Gg,Qe,gb,_b,jo,sD,ip,uD,Ke,Vg,lD,fD,Rn,Hg,Ty,bs,My,_c,Wg,np,Zf=1,Ge=Date.now,ap=Ge(),Qr=0,Lu=0,yb=function(t,e,i){var n=Tr(t)&&(t.substr(0,6)==="clamp("||t.indexOf("max")>-1);return i["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},mb=function(t,e){return e&&(!Tr(t)||t.substr(0,6)!=="clamp(")?"clamp("+t+")":t},MG=function r(){return Lu&&requestAnimationFrame(r)},xb=function(){return nv=1},bb=function(){return nv=0},Ai=function(t){return t},ku=function(t){return Math.round(t*1e5)/1e5||0},hD=function(){return typeof window<"u"},cD=function(){return W||hD()&&(W=window.gsap)&&W.registerPlugin&&W},mo=function(t){return!!~oD.indexOf(t)},vD=function(t){return(t==="Height"?My:xt["inner"+t])||pi["client"+t]||Yt["client"+t]},dD=function(t){return Jn(t,"getBoundingClientRect")||(mo(t)?function(){return Ph.width=xt.innerWidth,Ph.height=My,Ph}:function(){return rn(t)})},CG=function(t,e,i){var n=i.d,a=i.d2,o=i.a;return(o=Jn(t,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(e?vD(a):t["client"+a])||0}},DG=function(t,e){return!e||~Gi.indexOf(t)?dD(t):function(){return Ph}},Ni=function(t,e){var i=e.s,n=e.d2,a=e.d,o=e.a;return Math.max(0,(i="scroll"+n)&&(o=Jn(t,i))?o()-dD(t)()[a]:mo(t)?(pi[i]||Yt[i])-vD(n):t[i]-t["offset"+n])},qf=function(t,e){for(var i=0;i<jo.length;i+=3)(!e||~e.indexOf(jo[i+1]))&&t(jo[i],jo[i+1],jo[i+2])},Tr=function(t){return typeof t=="string"},ir=function(t){return typeof t=="function"},Ru=function(t){return typeof t=="number"},Xa=function(t){return typeof t=="object"},xu=function(t,e,i){return t&&t.progress(e?0:1)&&i&&t.pause()},op=function(t,e){if(t.enabled){var i=t._ctx?t._ctx.add(function(){return e(t)}):e(t);i&&i.totalTime&&(t.callbackAnimation=i)}},Xo=Math.abs,pD="left",gD="top",Cy="right",Dy="bottom",uo="width",lo="height",nl="Right",al="Left",ol="Top",sl="Bottom",he="padding",Ur="margin",Es="Width",Ay="Height",de="px",Xr=function(t){return xt.getComputedStyle(t)},AG=function(t){var e=Xr(t).position;t.style.position=e==="absolute"||e==="fixed"?e:"relative"},Sb=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},rn=function(t,e){var i=e&&Xr(t)[Gg]!=="matrix(1, 0, 0, 1, 0, 0)"&&W.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=t.getBoundingClientRect();return i&&i.progress(0).kill(),n},yc=function(t,e){var i=e.d2;return t["offset"+i]||t["client"+i]||0},_D=function(t){var e=[],i=t.labels,n=t.duration(),a;for(a in i)e.push(i[a]/n);return e},PG=function(t){return function(e){return W.utils.snap(_D(t),e)}},Py=function(t){var e=W.utils.snap(t),i=Array.isArray(t)&&t.slice(0).sort(function(n,a){return n-a});return i?function(n,a,o){o===void 0&&(o=.001);var s;if(!a)return e(n);if(a>0){for(n-=o,s=0;s<i.length;s++)if(i[s]>=n)return i[s];return i[s-1]}else for(s=i.length,n+=o;s--;)if(i[s]<=n)return i[s];return i[0]}:function(n,a,o){o===void 0&&(o=.001);var s=e(n);return!a||Math.abs(s-n)<o||s-n<0==a<0?s:e(a<0?n-t:n+t)}},IG=function(t){return function(e,i){return Py(_D(t))(e,i.direction)}},Kf=function(t,e,i,n){return i.split(",").forEach(function(a){return t(e,a,n)})},be=function(t,e,i,n,a){return t.addEventListener(e,i,{passive:!n,capture:!!a})},xe=function(t,e,i,n){return t.removeEventListener(e,i,!!n)},Qf=function(t,e,i){i=i&&i.wheelHandler,i&&(t(e,"wheel",i),t(e,"touchmove",i))},wb={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},jf={toggleActions:"play",anticipatePin:0},mc={top:0,left:0,center:.5,bottom:1,right:1},Mh=function(t,e){if(Tr(t)){var i=t.indexOf("="),n=~i?+(t.charAt(i-1)+1)*parseFloat(t.substr(i+1)):0;~i&&(t.indexOf("%")>i&&(n*=e/100),t=t.substr(0,i-1)),t=n+(t in mc?mc[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Jf=function(t,e,i,n,a,o,s,u){var l=a.startColor,f=a.endColor,h=a.fontSize,v=a.indent,c=a.fontWeight,d=Zt.createElement("div"),p=mo(i)||Jn(i,"pinType")==="fixed",g=t.indexOf("scroller")!==-1,_=p?Yt:i,y=t.indexOf("start")!==-1,m=y?l:f,x="border-color:"+m+";font-size:"+h+";color:"+m+";font-weight:"+c+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return x+="position:"+((g||u)&&p?"fixed;":"absolute;"),(g||u||!p)&&(x+=(n===ge?Cy:Dy)+":"+(o+parseFloat(v))+"px;"),s&&(x+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),d._isStart=y,d.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),d.style.cssText=x,d.innerText=e||e===0?t+"-"+e:t,_.children[0]?_.insertBefore(d,_.children[0]):_.appendChild(d),d._offset=d["offset"+n.op.d2],Ch(d,0,n,y),d},Ch=function(t,e,i,n){var a={display:"block"},o=i[n?"os2":"p2"],s=i[n?"p2":"os2"];t._isFlipped=n,a[i.a+"Percent"]=n?-100:0,a[i.a]=n?"1px":0,a["border"+o+Es]=1,a["border"+s+Es]=0,a[i.p]=e+"px",W.set(t,a)},ft=[],Yg={},Fl,Tb=function(){return Ge()-Qr>34&&(Fl||(Fl=requestAnimationFrame(ln)))},$o=function(){(!Ke||!Ke.isPressed||Ke.startX>Yt.clientWidth)&&(pt.cache++,Ke?Fl||(Fl=requestAnimationFrame(ln)):ln(),Qr||bo("scrollStart"),Qr=Ge())},sp=function(){fD=xt.innerWidth,lD=xt.innerHeight},Eu=function(){pt.cache++,!Be&&!uD&&!Zt.fullscreenElement&&!Zt.webkitFullscreenElement&&(!Vg||fD!==xt.innerWidth||Math.abs(xt.innerHeight-lD)>xt.innerHeight*.25)&&gc.restart(!0)},xo={},LG=[],yD=function r(){return xe(_t,"scrollEnd",r)||to(!0)},bo=function(t){return xo[t]&&xo[t].map(function(e){return e()})||LG},Sr=[],mD=function(t){for(var e=0;e<Sr.length;e+=5)(!t||Sr[e+4]&&Sr[e+4].query===t)&&(Sr[e].style.cssText=Sr[e+1],Sr[e].getBBox&&Sr[e].setAttribute("transform",Sr[e+2]||""),Sr[e+3].uncache=1)},Iy=function(t,e){var i;for(Qe=0;Qe<ft.length;Qe++)i=ft[Qe],i&&(!e||i._ctx===e)&&(t?i.kill(1):i.revert(!0,!0));_c=!0,e&&mD(e),e||bo("revert")},xD=function(t,e){pt.cache++,(e||!je)&&pt.forEach(function(i){return ir(i)&&i.cacheID++&&(i.rec=0)}),Tr(t)&&(xt.history.scrollRestoration=Ty=t)},je,fo=0,Mb,kG=function(){if(Mb!==fo){var t=Mb=fo;requestAnimationFrame(function(){return t===fo&&to(!0)})}},bD=function(){Yt.appendChild(bs),My=!Ke&&bs.offsetHeight||xt.innerHeight,Yt.removeChild(bs)},Cb=function(t){return Nl(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},to=function(t,e){if(Qr&&!t&&!_c){be(_t,"scrollEnd",yD);return}bD(),je=_t.isRefreshing=!0,pt.forEach(function(n){return ir(n)&&++n.cacheID&&(n.rec=n())});var i=bo("refreshInit");sD&&_t.sort(),e||Iy(),pt.forEach(function(n){ir(n)&&(n.smooth&&(n.target.style.scrollBehavior="auto"),n(0))}),ft.slice(0).forEach(function(n){return n.refresh()}),_c=!1,ft.forEach(function(n){if(n._subPinOffset&&n.pin){var a=n.vars.horizontal?"offsetWidth":"offsetHeight",o=n.pin[a];n.revert(!0,1),n.adjustPinSpacing(n.pin[a]-o),n.refresh()}}),Wg=1,Cb(!0),ft.forEach(function(n){var a=Ni(n.scroller,n._dir),o=n.vars.end==="max"||n._endClamp&&n.end>a,s=n._startClamp&&n.start>=a;(o||s)&&n.setPositions(s?a-1:n.start,o?Math.max(s?a:n.start+1,a):n.end,!0)}
vendor: 19,435 bytes, line 81
81),Cb(!1),Wg=0,i.forEach(function(n){return n&&n.render&&n.render(-1)}),pt.forEach(function(n){ir(n)&&(n.smooth&&requestAnimationFrame(function(){return n.target.style.scrollBehavior="smooth"}),n.rec&&n(n.rec))}),xD(Ty,1),gc.pause(),fo++,je=2,ln(2),ft.forEach(function(n){return ir(n.vars.onRefresh)&&n.vars.onRefresh(n)}),je=_t.isRefreshing=!1,bo("refresh")},Ug=0,Dh=1,ul,ln=function(t){if(t===2||!je&&!_c){_t.isUpdating=!0,ul&&ul.update(0);var e=ft.length,i=Ge(),n=i-ap>=50,a=e&&ft[0].scroll();if(Dh=Ug>a?-1:1,je||(Ug=a),n&&(Qr&&!nv&&i-Qr>200&&(Qr=0,bo("scrollEnd")),Iu=ap,ap=i),Dh<0){for(Qe=e;Qe-- >0;)ft[Qe]&&ft[Qe].update(0,n);Dh=1}else for(Qe=0;Qe<e;Qe++)ft[Qe]&&ft[Qe].update(0,n);_t.isUpdating=!1}Fl=0},Xg=[pD,gD,Dy,Cy,Ur+sl,Ur+nl,Ur+ol,Ur+al,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Ah=Xg.concat([uo,lo,"boxSizing","max"+Es,"max"+Ay,"position",Ur,he,he+ol,he+nl,he+sl,he+al]),RG=function(t,e,i){Ss(i);var n=t._gsap;if(n.spacerIsNative)Ss(n.spacerState);else if(t._gsap.swappedIn){var a=e.parentNode;a&&(a.insertBefore(t,e),a.removeChild(e))}t._gsap.swappedIn=!1},up=function(t,e,i,n){if(!t._gsap.swappedIn){for(var a=Xg.length,o=e.style,s=t.style,u;a--;)u=Xg[a],o[u]=i[u];o.position=i.position==="absolute"?"absolute":"relative",i.display==="inline"&&(o.display="inline-block"),s[Dy]=s[Cy]="auto",o.flexBasis=i.flexBasis||"auto",o.overflow="visible",o.boxSizing="border-box",o[uo]=yc(t,rr)+de,o[lo]=yc(t,ge)+de,o[he]=s[Ur]=s[gD]=s[pD]="0",Ss(n),s[uo]=s["max"+Es]=i[uo],s[lo]=s["max"+Ay]=i[lo],s[he]=i[he],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},EG=/([A-Z])/g,Ss=function(t){if(t){var e=t.t.style,i=t.length,n=0,a,o;for((t.t._gsap||W.core.getCache(t.t)).uncache=1;n<i;n+=2)o=t[n+1],a=t[n],o?e[a]=o:e[a]&&e.removeProperty(a.replace(EG,"-$1").toLowerCase())}},th=function(t){for(var e=Ah.length,i=t.style,n=[],a=0;a<e;a++)n.push(Ah[a],i[Ah[a]]);return n.t=t,n},OG=function(t,e,i){for(var n=[],a=t.length,o=i?8:0,s;o<a;o+=2)s=t[o],n.push(s,s in e?e[s]:t[o+1]);return n.t=t.t,n},Ph={left:0,top:0},Db=function(t,e,i,n,a,o,s,u,l,f,h,v,c,d){ir(t)&&(t=t(u)),Tr(t)&&t.substr(0,3)==="max"&&(t=v+(t.charAt(4)==="="?Mh("0"+t.substr(3),i):0));var p=c?c.time():0,g,_,y;if(c&&c.seek(0),isNaN(t)||(t=+t),Ru(t))c&&(t=W.utils.mapRange(c.scrollTrigger.start,c.scrollTrigger.end,0,v,t)),s&&Ch(s,i,n,!0);else{ir(e)&&(e=e(u));var m=(t||"0").split(" "),x,S,b,w;y=lr(e,u)||Yt,x=rn(y)||{},(!x||!x.left&&!x.top)&&Xr(y).display==="none"&&(w=y.style.display,y.style.display="block",x=rn(y),w?y.style.display=w:y.style.removeProperty("display")),S=Mh(m[0],x[n.d]),b=Mh(m[1]||"0",i),t=x[n.p]-l[n.p]-f+S+a-b,s&&Ch(s,b,n,i-b<20||s._isStart&&b>20),i-=i-b}if(d&&(u[d]=t||-.001,t<0&&(t=0)),o){var M=t+i,T=o._isStart;g="scroll"+n.d2,Ch(o,M,n,T&&M>20||!T&&(h?Math.max(Yt[g],pi[g]):o.parentNode[g])<=M+1),h&&(l=rn(s),h&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+de))}return c&&y&&(g=rn(y),c.seek(v),_=rn(y),c._caScrollDist=g[n.p]-_[n.p],t=t/c._caScrollDist*v),c&&c.seek(p),c?t:Math.round(t)},BG=/(webkit|moz|length|cssText|inset)/i,Ab=function(t,e,i,n){if(t.parentNode!==e){var a=t.style,o,s;if(e===Yt){t._stOrig=a.cssText,s=Xr(t);for(o in s)!+o&&!BG.test(o)&&s[o]&&typeof a[o]=="string"&&o!=="0"&&(a[o]=s[o]);a.top=i,a.left=n}else a.cssText=t._stOrig;W.core.getCache(t).uncache=1,e.appendChild(t)}},SD=function(t,e,i){var n=e,a=n;return function(o){var s=Math.round(t());return s!==n&&s!==a&&Math.abs(s-n)>3&&Math.abs(s-a)>3&&(o=s,i&&i()),a=n,n=o,o}},eh=function(t,e,i){var n={};n[e.p]="+="+i,W.set(t,n)},Pb=function(t,e){var i=ua(t,e),n="_scroll"+e.p2,a=function o(s,u,l,f,h){var v=o.tween,c=u.onComplete,d={};l=l||i();var p=SD(i,l,function(){v.kill(),o.tween=0});return h=f&&h||0,f=f||s-l,v&&v.kill(),u[n]=s,u.inherit=!1,u.modifiers=d,d[n]=function(){return p(l+f*v.ratio+h*v.ratio*v.ratio)},u.onUpdate=function(){pt.cache++,o.tween&&ln()},u.onComplete=function(){o.tween=0,c&&c.call(v)},v=o.tween=W.to(t,u),v};return t[n]=i,i.wheelHandler=function(){return a.tween&&a.tween.kill()&&(a.tween=0)},be(t,"wheel",i.wheelHandler),_t.isTouch&&be(t,"touchmove",i.wheelHandler),a},_t=function(){function r(e,i){Qo||r.register(W)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Hg(this),this.init(e,i)}var t=r.prototype;return t.init=function(i,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Lu){this.update=this.refresh=this.kill=Ai;return}i=Sb(Tr(i)||Ru(i)||i.nodeType?{trigger:i}:i,jf);var a=i,o=a.onUpdate,s=a.toggleClass,u=a.id,l=a.onToggle,f=a.onRefresh,h=a.scrub,v=a.trigger,c=a.pin,d=a.pinSpacing,p=a.invalidateOnRefresh,g=a.anticipatePin,_=a.onScrubComplete,y=a.onSnapComplete,m=a.once,x=a.snap,S=a.pinReparent,b=a.pinSpacer,w=a.containerAnimation,M=a.fastScrollEnd,T=a.preventOverlaps,C=i.horizontal||i.containerAnimation&&i.horizontal!==!1?rr:ge,D=!h&&h!==0,P=lr(i.scroller||xt),L=W.core.getCache(P),k=mo(P),R=("pinType"in i?i.pinType:Jn(P,"pinType")||k&&"fixed")==="fixed",E=[i.onEnter,i.onLeave,i.onEnterBack,i.onLeaveBack],B=D&&i.toggleActions.split(" "),z="markers"in i?i.markers:jf.markers,H=k?0:parseFloat(Xr(P)["border"+C.p2+Es])||0,I=this,U=i.onRefreshInit&&function(){return i.onRefreshInit(I)},tt=CG(P,k,C),gt=DG(P,k),j=0,ct=0,Ht=0,Lt=ua(P,C),Wt,Ct,Et,X,et,lt,vt,Me,Ie,O,mr,Xi,xn,le,bn,ha,Mo,ye,Sn,re,ri,Br,$i,Ws,fe,ql,wn,Co,Do,Tn,ca,dt,va,ii,ni,ai,da,Ao,Zi;if(I._startClamp=I._endClamp=!1,I._dir=C,g*=45,I.scroller=P,I.scroll=w?w.time.bind(w):Lt,X=Lt(),I.vars=i,n=n||i.animation,"refreshPriority"in i&&(sD=1,i.refreshPriority===-9999&&(ul=I)),L.tweenScroll=L.tweenScroll||{top:Pb(P,ge),left:Pb(P,rr)},I.tweenTo=Wt=L.tweenScroll[C.p],I.scrubDuration=function(V){va=Ru(V)&&V,va?dt?dt.duration(V):dt=W.to(n,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:va,paused:!0,onComplete:function(){return _&&_(I)}}):(dt&&dt.progress(1).kill(),dt=0)},n&&(n.vars.lazy=!1,n._initted&&!I.isReverted||n.vars.immediateRender!==!1&&i.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),I.animation=n.pause(),n.scrollTrigger=I,I.scrubDuration(h),Tn=0,u||(u=n.vars.id)),x&&((!Xa(x)||x.push)&&(x={snapTo:x}),"scrollBehavior"in Yt.style&&W.set(k?[Yt,pi]:P,{scrollBehavior:"auto"}),pt.forEach(function(V){return ir(V)&&V.target===(k?Zt.scrollingElement||pi:P)&&(V.smooth=!1)}),Et=ir(x.snapTo)?x.snapTo:x.snapTo==="labels"?PG(n):x.snapTo==="labelsDirectional"?IG(n):x.directional!==!1?function(V,ut){return Py(x.snapTo)(V,Ge()-ct<500?0:ut.direction)}:W.utils.snap(x.snapTo),ii=x.duration||{min:.1,max:2},ii=Xa(ii)?il(ii.min,ii.max):il(ii,ii),ni=W.delayedCall(x.delay||va/2||.1,function(){var V=Lt(),ut=Ge()-ct<500,q=Wt.tween;if((ut||Math.abs(I.getVelocity())<10)&&!q&&!nv&&j!==V){var ot=(V-lt)/le,me=n&&!D?n.totalProgress():ot,mt=ut?0:(me-ca)/(Ge()-Iu)*1e3||0,ie=W.utils.clamp(-ot,1-ot,Xo(mt/2)*mt/.185),Le=ot+(x.inertia===!1?0:ie),Jt,Ut,Nt=x,oi=Nt.onStart,$t=Nt.onInterrupt,xr=Nt.onComplete;if(Jt=Et(Le,I),Ru(Jt)||(Jt=Le),Ut=Math.round(lt+Jt*le),V<=vt&&V>=lt&&Ut!==V){if(q&&!q._initted&&q.data<=Xo(Ut-V))return;x.inertia===!1&&(ie=Jt-ot),Wt(Ut,{duration:ii(Xo(Math.max(Xo(Le-me),Xo(Jt-me))*.185/mt/.05||0)),ease:x.ease||"power3",data:Xo(Ut-V),onInterrupt:function(){return ni.restart(!0)&&$t&&$t(I)},onComplete:function(){I.update(),j=Lt(),n&&(dt?dt.resetTo("totalProgress",Jt,n._tTime/n._tDur):n.progress(Jt)),Tn=ca=n&&!D?n.totalProgress():I.progress,y&&y(I),xr&&xr(I)}},V,ie*le,Ut-V-ie*le),oi&&oi(I,Wt.tween)}}else I.isActive&&j!==V&&ni.restart(!0)}).pause()),u&&(Yg[u]=I),v=I.trigger=lr(v||c!==!0&&c),Zi=v&&v._gsap&&v._gsap.stRevert,Zi&&(Zi=Zi(I)),c=c===!0?v:lr(c),Tr(s)&&(s={targets:v,className:s}),c&&(d===!1||d===Ur||(d=!d&&c.parentNode&&c.parentNode.style&&Xr(c.parentNode).display==="flex"?!1:he),I.pin=c,Ct=W.core.getCache(c),Ct.spacer?bn=Ct.pinState:(b&&(b=lr(b),b&&!b.nodeType&&(b=b.current||b.nativeElement),Ct.spacerIsNative=!!b,b&&(Ct.spacerState=th(b))),Ct.spacer=ye=b||Zt.createElement("div"),ye.classList.add("pin-spacer"),u&&ye.classList.add("pin-spacer-"+u),Ct.pinState=bn=th(c)),i.force3D!==!1&&W.set(c,{force3D:!0}),I.spacer=ye=Ct.spacer,Do=Xr(c),Ws=Do[d+C.os2],re=W.getProperty(c),ri=W.quickSetter(c,C.a,de),up(c,ye,Do),Mo=th(c)),z){Xi=Xa(z)?Sb(z,wb):wb,O=Jf("scroller-start",u,P,C,Xi,0),mr=Jf("scroller-end",u,P,C,Xi,0,O),Sn=O["offset"+C.op.d2];var Ys=lr(Jn(P,"content")||P);Me=this.markerStart=Jf("start",u,Ys,C,Xi,Sn,0,w),Ie=this.markerEnd=Jf("end",u,Ys,C,Xi,Sn,0,w),w&&(Ao=W.quickSetter([Me,Ie],C.a,de)),!R&&!(Gi.length&&Jn(P,"fixedMarkers")===!0)&&(AG(k?Yt:P),W.set([O,mr],{force3D:!0}),ql=W.quickSetter(O,C.a,de),Co=W.quickSetter(mr,C.a,de))}if(w){var st=w.vars.onUpdate,Q=w.vars.onUpdateParams;w.eventCallback("onUpdate",function(){I.update(0,0,1),st&&st.apply(w,Q||[])})}if(I.previous=function(){return ft[ft.indexOf(I)-1]},I.next=function(){return ft[ft.indexOf(I)+1]},I.revert=function(V,ut){if(!ut)return I.kill(!0);var q=V!==!1||!I.enabled,ot=Be;q!==I.isReverted&&(q&&(ai=Math.max(Lt(),I.scroll.rec||0),Ht=I.progress,da=n&&n.progress()),Me&&[Me,Ie,O,mr].forEach(function(me){return me.style.display=q?"none":"block"}),q&&(Be=I,I.update(q)),c&&(!S||!I.isActive)&&(q?RG(c,ye,bn):up(c,ye,Xr(c),fe)),q||I.update(q),Be=ot,I.isReverted=q)},I.refresh=function(V,ut,q,ot){if(!((Be||!I.enabled)&&!ut)){if(c&&V&&Qr){be(r,"scrollEnd",yD);return}!je&&U&&U(I),Be=I,Wt.tween&&!q&&(Wt.tween.kill(),Wt.tween=0),dt&&dt.pause(),p&&n&&n.revert({kill:!1}).invalidate(),I.isReverted||I.revert(!0,!0),I._subPinOffset=!1;var me=tt(),mt=gt(),ie=w?w.duration():Ni(P,C),Le=le<=.01,Jt=0,Ut=ot||0,Nt=Xa(q)?q.end:i.end,oi=i.endTrigger||v,$t=Xa(q)?q.start:i.start||(i.start===0||!v?0:c?"0 0":"0 100%"),xr=I.pinnedContainer=i.pinnedContainer&&lr(i.pinnedContainer,I),mi=v&&Math.max(0,ft.indexOf(I))||0,Ce=mi,De,ke,pa,Kl,Re,ve,xi,av,Ly,Us,bi,Xs,Ql;for(z&&Xa(q)&&(Xs=W.getProperty(O,C.p),Ql=W.getProperty(mr,C.p));Ce--;)ve=ft[Ce],ve.end||ve.refresh(0,1)||(Be=I),xi=ve.pin,xi&&(xi===v||xi===c||xi===xr)&&!ve.isReverted&&(Us||(Us=[]),Us.unshift(ve),ve.revert(!0,!0)),ve!==ft[Ce]&&(mi--,Ce--);for(ir($t)&&($t=$t(I)),$t=yb($t,"start",I),lt=Db($t,v,me,C,Lt(),Me,O,I,mt,H,R,ie,w,I._startClamp&&"_startClamp")||(c?-.001:0),ir(Nt)&&(Nt=Nt(I)),Tr(Nt)&&!Nt.indexOf("+=")&&(~Nt.indexOf(" ")?Nt=(Tr($t)?$t.split(" ")[0]:"")+Nt:(Jt=Mh(Nt.substr(2),me),Nt=Tr($t)?$t:(w?W.utils.mapRange(0,w.duration(),w.scrollTrigger.start,w.scrollTrigger.end,lt):lt)+Jt,oi=v)),Nt=yb(Nt,"end",I),vt=Math.max(lt,Db(Nt||(oi?"100% 0":ie),oi,me,C,Lt()+Jt,Ie,mr,I,mt,H,R,ie,w,I._endClamp&&"_endClamp"))||-.001,Jt=0,Ce=mi;Ce--;)ve=ft[Ce],xi=ve.pin,xi&&ve.start-ve._pinPush<=lt&&!w&&ve.end>0&&(De=ve.end-(I._startClamp?Math.max(0,ve.start):ve.start),(xi===v&&ve.start-ve._pinPush<lt||xi===xr)&&isNaN($t)&&(Jt+=De*(1-ve.progress)),xi===c&&(Ut+=De));if(lt+=Jt,vt+=Jt,I._startClamp&&(I._startClamp+=Jt),I._endClamp&&!je&&(I._endClamp=vt||-.001,vt=Math.min(vt,Ni(P,C))),le=vt-lt||(lt-=.01)&&.001,Le&&(Ht=W.utils.clamp(0,1,W.utils.normalize(lt,vt,ai))),I._pinPush=Ut,Me&&Jt&&(De={},De[C.a]="+="+Jt,xr&&(De[C.p]="-="+Lt()),W.set([Me,Ie],De)),c&&!(Wg&&I.end>=Ni(P,C)))De=Xr(c),Kl=C===ge,pa=Lt(),Br=parseFloat(re(C.a))+Ut,!ie&&vt>1&&(bi=(k?Zt.scrollingElement||pi:P).style,bi={style:bi,value:bi["overflow"+C.a.toUpperCase()]},k&&Xr(Yt)["overflow"+C.a.toUpperCase()]!=="scroll"&&(bi.style["overflow"+C.a.toUpperCase()]="scroll")),up(c,ye,De),Mo=th(c),ke=rn(c,!0),av=R&&ua(P,Kl?rr:ge)(),d?(fe=[d+C.os2,le+Ut+de],fe.t=ye,Ce=d===he?yc(c,C)+le+Ut:0,Ce&&(fe.push(C.d,Ce+de),ye.style.flexBasis!=="auto"&&(ye.style.flexBasis=Ce+de)),Ss(fe),xr&&ft.forEach(function($s){$s.pin===xr&&$s.vars.pinSpacing!==!1&&($s._subPinOffset=!0)}),R&&Lt(ai)):(Ce=yc(c,C),Ce&&ye.style.flexBasis!=="auto"&&(ye.style.flexBasis=Ce+de)),R&&(Re={top:ke.top+(Kl?pa-lt:av)+de,left:ke.left+(Kl?av:pa-lt)+de,boxSizing:"border-box",position:"fixed"},Re[uo]=Re["max"+Es]=Math.ceil(ke.width)+de,Re[lo]=Re["max"+Ay]=Math.ceil(ke.height)+de,Re[Ur]=Re[Ur+ol]=Re[Ur+nl]=Re[Ur+sl]=Re[Ur+al]="0",Re[he]=De[he],Re[he+ol]=De[he+ol],Re[he+nl]=De[he+nl],Re[he+sl]=De[he+sl],Re[he+al]=De[he+al],ha=OG(bn,Re,S),je&&Lt(0)),n?(Ly=n._initted,ip(1),n.render(n.duration(),!0,!0),$i=re(C.a)-Br+le+Ut,wn=Math.abs(le-$i)>1,R&&wn&&ha.splice(ha.length-2,2),n.render(0,!0,!0),Ly||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),ip(0)):$i=le,bi&&(bi.value?bi.style["overflow"+C.a.toUpperCase()]=bi.value:bi.style.removeProperty("overflow-"+C.a));else if(v&&Lt()&&!w)for(ke=v.parentNode;ke&&ke!==Yt;)ke._pinOffset&&(lt-=ke._pinOffset,vt-=ke._pinOffset),ke=ke.parentNode;Us&&Us.forEach(function($s){return $s.revert(!1,!0)}),I.start=lt,I.end=vt,X=et=je?ai:Lt(),!w&&!je&&(X<ai&&Lt(ai),I.scroll.rec=0),I.revert(!1,!0),ct=Ge(),ni&&(j=-1,ni.restart(!0)),Be=0,n&&D&&(n._initted||da)&&n.progress()!==da&&n.progress(da||0,!0).render(n.time(),!0,!0),(Le||Ht!==I.progress||w||p)&&(n&&!D&&n.totalProgress(w&&lt<-.001&&!Ht?W.utils.normalize(lt,vt,0):Ht,!0),I.progress=Le||(X-lt)/le===Ht?0:Ht),c&&d&&(ye._pinOffset=Math.round(I.progress*$i)),dt&&dt.invalidate(),isNaN(Xs)||(Xs-=W.getProperty(O,C.p),Ql-=W.getProperty(mr,C.p),eh(O,C,Xs),eh(Me,C,Xs-(ot||0)),eh(mr,C,Ql),eh(Ie,C,Ql-(ot||0))),Le&&!je&&I.update(),f&&!je&&!xn&&(xn=!0,f(I),xn=!1)}},I.getVelocity=function(){return(Lt()-et)/(Ge()-Iu)*1e3||0},I.endAnimation=function(){xu(I.callbackAnimation),n&&(dt?dt.progress(1):n.paused()?D||xu(n,I.direction<0,1):xu(n,n.reversed()))},I.labelToScroll=function(V){return n&&n.labels&&(lt||I.refresh()||lt)+n.labels[V]/n.duration()*le||0},I.getTrailing=function(V){var ut=ft.indexOf(I),q=I.direction>0?ft.slice(0,ut).reverse():ft.slice(ut+1);return(Tr(V)?q.filter(function(ot){return ot.vars.preventOverlaps===V}):q).filter(function(ot){return I.direction>0?ot.end<=lt:ot.start>=vt})},I.update=function(V,ut,q){if(!(w&&!q&&!V)){var ot=je===!0?ai:I.scroll(),me=V?0:(ot-lt)/le,mt=me<0?0:me>1?1:me||0,ie=I.progress,Le,Jt,Ut,Nt,oi,$t,xr,mi;if(ut&&(et=X,X=w?Lt():ot,x&&(ca=Tn,Tn=n&&!D?n.totalProgress():mt)),g&&c&&!Be&&!Zf&&Qr&&(!mt&&lt<ot+(ot-et)/(Ge()-Iu)*g?mt=1e-4:mt===1&&vt>ot+(ot-et)/(Ge()-Iu)*g&&(mt=.9999)),mt!==ie&&I.enabled){if(Le=I.isActive=!!mt&&mt<1,Jt=!!ie&&ie<1,$t=Le!==Jt,oi=$t||!!mt!=!!ie,I.direction=mt>ie?1:-1,I.progress=mt,oi&&!Be&&(Ut=mt&&!ie?0:mt===1?1:ie===1?2:3,D&&(Nt=!$t&&B[Ut+1]!=="none"&&B[Ut+1]||B[Ut],mi=n&&(Nt==="complete"||Nt==="reset"||Nt in n))),T&&($t||mi)&&(mi||h||!n)&&(ir(T)?T(I):I.getTrailing(T).forEach(function(pa){return pa.endAnimation()})),D||(dt&&!Be&&!Zf?(dt._dp._time-dt._start!==dt._time&&dt.render(dt._dp._time-dt._start),dt.resetTo?dt.resetTo("totalProgress",mt,n._tTime/n._tDur):(dt.vars.totalProgress=mt,dt.invalidate().restart())):n&&n.totalProgress(mt,!!(Be&&(ct||V)))),c){if(V&&d&&(ye.style[d+C.os2]=Ws),!R)ri(ku(Br+$i*mt));else if(oi){if(xr=!V&&mt>ie&&vt+1>ot&&ot+1>=Ni(P,C),S)if(!V&&(Le||xr)){var Ce=rn(c,!0),De=ot-lt;Ab(c,Yt,Ce.top+(C===ge?De:0)+de,Ce.left+(C===ge?0:De)+de)}else Ab(c,ye);Ss(Le||xr?ha:Mo),wn&&mt<1&&Le||ri(Br+(mt===1&&!xr?$i:0))}}x&&!Wt.tween&&!Be&&!Zf&&ni.restart(!0),s&&($t||m&&mt&&(mt<1||!np))&&Nl(s.targets).forEach(function(pa){return pa.classList[Le||m?"add":"remove"](s.className)}),o&&!D&&!V&&o(I),oi&&!Be?(D&&(mi&&(Nt==="complete"?n.pause().totalProgress(1):Nt==="reset"?n.restart(!0).pause():Nt==="restart"?n.restart(!0):n[Nt]()),o&&o(I)),($t||!np)&&(l&&$t&&op(I,l),E[Ut]&&op(I,E[Ut]),m&&(mt===1?I.kill(!1,1):E[Ut]=0),$t||(Ut=mt===1?1:3,E[Ut]&&op(I,E[Ut]))),M&&!Le&&Math.abs(I.getVelocity())>(Ru(M)?M:2500)&&(xu(I.callbackAnimation),dt?dt.progress(1):xu(n,Nt==="reverse"?1:!mt,1))):D&&o&&!Be&&o(I)}if(Co){var ke=w?ot/w.duration()*(w._caScrollDist||0):ot;ql(ke+(O._isFlipped?1:0)),Co(ke)}Ao&&Ao(-ot/w.duration()*(w._caScrollDist||0))}},I.enable=function(V,ut){I.enabled||(I.enabled=!0,be(P,"resize",Eu),k||be(P,"scroll",$o),U&&be(r,"refreshInit",U),V!==!1&&(I.progress=Ht=0,X=et=j=Lt()),ut!==!1&&I.refresh())},I.getTween=function(V){return V&&Wt?Wt.tween:dt},I.setPositions=function(V,ut,q,ot){if(w){var me=w.scrollTrigger,mt=w.duration(),ie=me.end-me.start;V=me.start+ie*V/mt,ut=me.start+ie*ut/mt}I.refresh(!1,!1,{start:mb(V,q&&!!I._startClamp),end:mb(ut,q&&!!I._endClamp)},ot),I.update()},I.adjustPinSpacing=function(V){if(fe&&V){var ut=fe.indexOf(C.d)+1;fe[ut]=parseFloat(fe[ut])+V+de,fe[1]=parseFloat(fe[1])+V+de,Ss(fe)}},I.disable=function(V,ut){if(I.enabled&&(V!==!1&&I.revert(!0,!0),I.enabled=I.isActive=!1,ut||dt&&dt.pause(),ai=0,Ct&&(Ct.uncache=1),U&&xe(r,"refreshInit",U),ni&&(ni.pause(),Wt.tween&&Wt.tween.kill()&&(Wt.tween=0)),!k)){for(var q=ft.length;q--;)if(ft[q].scroller===P&&ft[q]!==I)return;xe(P,"resize",Eu),k||xe(P,"scroll",$o)}},I.kill=function(V,ut){I.disable(V,ut),dt&&!ut&&dt.kill(),u&&delete Yg[u];var q=ft.indexOf(I);q>=0&&ft.splice(q,1),q===Qe&&Dh>0&&Qe--,q=0,ft.forEach(function(ot){return ot.scroller===I.scroller&&(q=1)}),q||je||(I.scroll.rec=0),n&&(n.scrollTrigger=null,V&&n.revert({kill:!1}),ut||n.kill()),Me&&[Me,Ie,O,mr].forEach(function(ot){return ot.parentNode&&ot.parentNode.removeChild(ot)}),ul===I&&(ul=0),c&&(Ct&&(Ct.uncache=1),q=0,ft.forEach(function(ot){return ot.pin===c&&q++}),q||(Ct.spacer=0)),i.onKill&&i.onKill(I)},ft.push(I),I.enable(!1,!1),Zi&&Zi(I),n&&n.add&&!le){var Pt=I.update;I.update=function(){I.update=Pt,lt||vt||I.refresh()},W.delayedCall(.01,I.update),le=.01,lt=vt=0}else I.refresh();c&&kG()},r.register=function(i){return Qo||(W=i||cD(),hD()&&window.document&&r.enable(),Qo=Lu),Qo},r.defaults=function(i){if(i)for(var n in i)jf[n]=i[n];return jf},r.disable=function(i,n){Lu=0,ft.forEach(function(o){return o[n?"kill":"disable"](i)}),xe(xt,"wheel",$o),xe(Zt,"scroll",$o),clearInterval($f),xe(Zt,"touchcancel",Ai),xe(Yt,"touchstart",Ai),Kf(xe,Zt,"pointerdown,touchstart,mousedown",xb),Kf(xe,Zt,"pointerup,touchend,mouseup",bb),gc.kill(),qf(xe);for(var a=0;a<pt.length;a+=3)Qf(xe,pt[a],pt[a+1]),Qf(xe,pt[a],pt[a+2])},r.enable=function(){if(xt=window,Zt=document,pi=Zt.documentElement,Yt=Zt.body,W&&(Nl=W.utils.toArray,il=W.utils.clamp,Hg=W.core.context||Ai,ip=W.core.suppressOverwrites||Ai,Ty=xt.history.scrollRestoration||"auto",Ug=xt.pageYOffset,W.core.globals("ScrollTrigger",r),Yt)){Lu=1,bs=document.createElement("div"),bs.style.height="100vh",bs.style.position="absolute",bD(),MG(),se.register(W),r.isTouch=se.isTouch,Rn=se.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Vg=se.isTouch===1,be(xt,"wheel",$o),oD=[xt,Zt,pi,Yt],W.matchMedia?(r.matchMedia=function(u){var l=W.matchMedia(),f;for(f in u)l.add(f,u[f]);return l},W.addEventListener("matchMediaInit",function(){return Iy()}),W.addEventListener("matchMediaRevert",function(){return mD()}),W.addEventListener("matchMedia",function(){to(0,1),bo("matchMedia")}),W.matchMedia("(orientation: portrait)",function(){return sp(),sp})):console.warn("Requires GSAP 3.11.0 or later"),sp(),be(Zt,"scroll",$o);var i=Yt.style,n=i.borderTopStyle,a=W.core.Animation.prototype,o,s;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",o=rn(Yt),ge.m=Math.round(o.top+ge.sc())||0,rr.m=Math.round(o.left+rr.sc())||0,n?i.borderTopStyle=n:i.removeProperty("border-top-style"),$f=setInterval(Tb,250),W.delayedCall(.5,function(){return Zf=0}),be(Zt,"touchcancel",Ai),be(Yt,"touchstart",Ai),Kf(be,Zt,"pointerdown,touchstart,mousedown",xb),Kf(be,Zt,"pointerup,touchend,mouseup",bb),Gg=W.utils.checkPrefix("transform"),Ah.push(Gg),Qo=Ge(),gc=W.delayedCall(.2,to).pause(),jo=[Zt,"visibilitychange",function(){var u=xt.innerWidth,l=xt.innerHe
vendor: 4,390 bytes, line 81
81ight;Zt.hidden?(gb=u,_b=l):(gb!==u||_b!==l)&&Eu()},Zt,"DOMContentLoaded",to,xt,"load",to,xt,"resize",Eu],qf(be),ft.forEach(function(u){return u.enable(0,1)}),s=0;s<pt.length;s+=3)Qf(xe,pt[s],pt[s+1]),Qf(xe,pt[s],pt[s+2])}},r.config=function(i){"limitCallbacks"in i&&(np=!!i.limitCallbacks);var n=i.syncInterval;n&&clearInterval($f)||($f=n)&&setInterval(Tb,n),"ignoreMobileResize"in i&&(Vg=r.isTouch===1&&i.ignoreMobileResize),"autoRefreshEvents"in i&&(qf(xe)||qf(be,i.autoRefreshEvents||"none"),uD=(i.autoRefreshEvents+"").indexOf("resize")===-1)},r.scrollerProxy=function(i,n){var a=lr(i),o=pt.indexOf(a),s=mo(a);~o&&pt.splice(o,s?6:2),n&&(s?Gi.unshift(xt,n,Yt,n,pi,n):Gi.unshift(a,n))},r.clearMatchMedia=function(i){ft.forEach(function(n){return n._ctx&&n._ctx.query===i&&n._ctx.kill(!0,!0)})},r.isInViewport=function(i,n,a){var o=(Tr(i)?lr(i):i).getBoundingClientRect(),s=o[a?uo:lo]*n||0;return a?o.right-s>0&&o.left+s<xt.innerWidth:o.bottom-s>0&&o.top+s<xt.innerHeight},r.positionInViewport=function(i,n,a){Tr(i)&&(i=lr(i));var o=i.getBoundingClientRect(),s=o[a?uo:lo],u=n==null?s/2:n in mc?mc[n]*s:~n.indexOf("%")?parseFloat(n)*s/100:parseFloat(n)||0;return a?(o.left+u)/xt.innerWidth:(o.top+u)/xt.innerHeight},r.killAll=function(i){if(ft.slice(0).forEach(function(a){return a.vars.id!=="ScrollSmoother"&&a.kill()}),i!==!0){var n=xo.killAll||[];xo={},n.forEach(function(a){return a()})}},r}();_t.version="3.12.5";_t.saveStyles=function(r){return r?Nl(r).forEach(function(t){if(t&&t.style){var e=Sr.indexOf(t);e>=0&&Sr.splice(e,5),Sr.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),W.core.getCache(t),Hg())}}):Sr};_t.revert=function(r,t){return Iy(!r,t)};_t.create=function(r,t){return new _t(r,t)};_t.refresh=function(r){return r?Eu():(Qo||_t.register())&&to(!0)};_t.update=function(r){return++pt.cache&&ln(r===!0?2:0)};_t.clearScrollMemory=xD;_t.maxScroll=function(r,t){return Ni(r,t?rr:ge)};_t.getScrollFunc=function(r,t){return ua(lr(r),t?rr:ge)};_t.getById=function(r){return Yg[r]};_t.getAll=function(){return ft.filter(function(r){return r.vars.id!=="ScrollSmoother"})};_t.isScrolling=function(){return!!Qr};_t.snapDirectional=Py;_t.addEventListener=function(r,t){var e=xo[r]||(xo[r]=[]);~e.indexOf(t)||e.push(t)};_t.removeEventListener=function(r,t){var e=xo[r],i=e&&e.indexOf(t);i>=0&&e.splice(i,1)};_t.batch=function(r,t){var e=[],i={},n=t.interval||.016,a=t.batchMax||1e9,o=function(l,f){var h=[],v=[],c=W.delayedCall(n,function(){f(h,v),h=[],v=[]}).pause();return function(d){h.length||c.restart(!0),h.push(d.trigger),v.push(d),a<=h.length&&c.progress(1)}},s;for(s in t)i[s]=s.substr(0,2)==="on"&&ir(t[s])&&s!=="onRefreshInit"?o(s,t[s]):t[s];return ir(a)&&(a=a(),be(_t,"refresh",function(){return a=t.batchMax()})),Nl(r).forEach(function(u){var l={};for(s in i)l[s]=i[s];l.trigger=u,e.push(_t.create(l))}),e};var Ib=function(t,e,i,n){return e>n?t(n):e<0&&t(0),i>n?(n-e)/(i-e):i<0?e/(e-i):1},lp=function r(t,e){e===!0?t.style.removeProperty("touch-action"):t.style.touchAction=e===!0?"auto":e?"pan-"+e+(se.isTouch?" pinch-zoom":""):"none",t===pi&&r(Yt,e)},rh={auto:1,scroll:1},NG=function(t){var e=t.event,i=t.target,n=t.axis,a=(e.changedTouches?e.changedTouches[0]:e).target,o=a._gsap||W.core.getCache(a),s=Ge(),u;if(!o._isScrollT||s-o._isScrollT>2e3){for(;a&&a!==Yt&&(a.scrollHeight<=a.clientHeight&&a.scrollWidth<=a.clientWidth||!(rh[(u=Xr(a)).overflowY]||rh[u.overflowX]));)a=a.parentNode;o._isScroll=a&&a!==i&&!mo(a)&&(rh[(u=Xr(a)).overflowY]||rh[u.overflowX]),o._isScrollT=s}(o._isScroll||n==="x")&&(e.stopPropagation(),e._gsapAllow=!0)},wD=function(t,e,i,n){return se.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&NG,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return i&&be(Zt,se.eventTypes[0],kb,!1,!0)},onDisable:function(){return xe(Zt,se.eventTypes[0],kb,!0)}})},FG=/(input|label|select|textarea)/i,Lb,kb=function(t){var e=FG.test(t.target.tagName);(e||Lb)&&(t._gsapAllow=!0,Lb=e)},zG=function(t){Xa(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e=t,i=e.normalizeScrollX,n=e.momentum,a=e.allowNestedScroll,o=e.onRelease,s,u,l=lr(t.target)||pi,f=W.core.globals().ScrollSmoother,h=f&&f.get(),v=Rn&&(t.content&&lr(t.content)||h&&t.content!==!1&&!h.smooth()&&h.content()),c=ua(l,ge),d=ua(l,rr),p=1,g=(se.isTouch&&xt.visualVie
81wport?xt.visualViewport.scale*xt.visualViewport.width:xt.outerWidth)/xt.innerWidth,_=0,y=ir(n)?function(){return n(s)}:function(){return n||2.8},m,x,S=wD(l,t.type,!0,a),b=function(){return x=!1},w=Ai,M=Ai,T=function(){u=Ni(l,ge),M=il(Rn?1:0,u),i&&(w=il(0,Ni(l,rr))),m=fo},C=function(){v._gsap.y=ku(parseFloat(v._gsap.y)+c.offset)+"px",v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(v._gsap.y)+", 0, 1)",c.offset=c.cacheID=0},D=function(){if(x){requestAnimationFrame(b);var z=ku(s.deltaY/2),H=M(c.v-z);if(v&&H!==c.v+c.offset){c.offset=H-c.v;var I=ku((parseFloat(v&&v._gsap.y)||0)-c.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+I+", 0, 1)",v._gsap.y=I+"px",c.cacheID=pt.cache,ln()}return!0}c.offset&&C(),x=!0},P,L,k,R,E=function(){T(),P.isActive()&&P.vars.scrollY>u&&(c()>u?P.progress(1)&&c(u):P.resetTo("scrollY",u))};return v&&W.set(v,{y:"+=0"}),t.ignoreCheck=function(B){return Rn&&B.type==="touchmove"&&D()||p>1.05&&B.type!=="touchstart"||s.isGesturing||B.touches&&B.touches.length>1},t.onPress=function(){x=!1;var B=p;p=ku((xt.visualViewport&&xt.visualViewport.scale||1)/g),P.pause(),B!==p&&lp(l,p>1.01?!0:i?!1:"x"),L=d(),k=c(),T(),m=fo},t.onRelease=t.onGestureStart=function(B,z){if(c.offset&&C(),!z)R.restart(!0);else{pt.cache++;var H=y(),I,U;i&&(I=d(),U=I+H*.05*-B.velocityX/.227,H*=Ib(d,I,U,Ni(l,rr)),P.vars.scrollX=w(U)),I=c(),U=I+H*.05*-B.velocityY/.227,H*=Ib(c,I,U,Ni(l,ge)),P.vars.scrollY=M(U),P.invalidate().duration(H).play(.01),(Rn&&P.vars.scrollY>=u||I>=u-1)&&W.to({},{onUpdate:E,duration:H})}o&&o(B)},t.onWheel=function(){P._ts&&P.pause(),Ge()-_>1e3&&(m=0,_=Ge())},t.onChange=function(B,z,H,I,U){if(fo!==m&&T(),z&&i&&d(w(I[2]===z?L+(B.startX-B.x):d()+z-I[1])),H){c.offset&&C();var tt=U[2]===H,gt=tt?k+B.startY-B.y:c()+H-U[1],j=M(gt);tt&&gt!==j&&(k+=j-gt),c(j)}(H||z)&&ln()},t.onEnable=function(){lp(l,i?!1:"x"),_t.addEventListener("refresh",E),be(xt,"resize",E),c.smooth&&(c.target.style.scrollBehavior="auto",c.smooth=d.smooth=!1),S.enable()},t.onDisable=function(){lp(l,!0),xe(xt,"resize",E),_t.removeEventListener("refresh",E),S.kill()},t.lockAxis=t.lockAxis!==!1,s=new se(t),s.iOS=Rn,Rn&&!c()&&c(1),Rn&&W.ticker.add(Ai),R=s._dc,P=W.to(s,{ease:"power4",paused:!0,inherit:!1,scrollX:i?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:SD(c,c(),function(){return P.pause()})},onUpdate:ln,onComplete:R.vars.onComplete}),s};_t.sort=function(r){return ft.sort(r||function(t,e){return(t.vars.refreshPriority||0)*-1e6+t.start-(e.start+(e.vars.refreshPriority||0)*-1e6)})};_t.observe=function(r){return new se(r)};_t.normalizeScroll=function(r){if(typeof r>"u")return Ke;if(r===!0&&Ke)return Ke.enable();if(r===!1){Ke&&Ke.kill(),Ke=r;return}var t=r instanceof se?r:zG(r);return Ke&&Ke.target===t.target&&Ke.kill(),mo(t.target)&&(Ke=t),t};_t.core={_getVelocityProp:zg,_inputObserver:wD,_scrollers:pt,_proxies:Gi,bridge:{ss:function(){Qr||bo("scrollStart"),Qr=Ge()},ref:function(){return Be}}};cD()&&W.registerPlugin(_t);const GG=pe("div",{class:"keyboard-hint"},"Tip: Use ← → arrow keys to navigate events",-1),VG={key:0,class:"point-event-wrapper"},HG=["data-id","onMousedown"],WG={class:"snippet"},YG={class:"source"},UG=["href"],XG=Ob({__name:"index",props:{ticker:{},data:{},events:{}},setup(r){Mr.extend(A5),Bg.registerPlugin(_t,Zl);const t=Ha(!1);let e;const i=r,n=On(()=>{if(i.events.length===0)return i.data;if(!i.events.length||!i.data.length)return[];const m=i.events.map(M=>Mr(M.name)),x=Mr.min(m),S=Mr.max(m),b=(x==null?void 0:x.subtract(60,"day"))??Mr(),w=(S==null?void 0:S.add(60,"day"))??Mr();return i.data.filter(M=>{const T=Mr(M.name);return T.isAfter(b)&&T.isBefore(w)})}),a=On(()=>n.value.map(m=>[m.open,m.close,m.low,m.high])),o=On(()=>n.value.map(m=>m.name)),s=i.events.map(m=>{try{const x=m.text.match(/source:\s*([^\n]+)/i);let S=x?x[1]:"";S.startsWith("http")||(S=`https://${S}`);let b=new URL(S);return{...m,url:b.toString(),host:b.host.replace("www.","")}}catch(x){return console.error(x),{...m,url:"",host:""}}});Hi([GN,NN,fN,aF,ZF,PO,b5,C5,OF,pF,JN,$N,zB]);const u=Ha(null),l=Ha(),f=Ha({}),h=Ha(!1),v=On(()=>i.events.map(m=>m.id));function c(){const S={preventDefaultMouseMove:!0,tooltip:{trigger:"axis",axisPointer:{type:"cross"}},grid:{top:22,left:52,right:12,bottom:22},xAxis:[{type:"category",data:o.value,boundaryGap:!1,min:"dataMin",max:"dataMax"}],yAxis:[{scale:!0,splitArea:{show:!0},min:function(b){return b.min-(b.max-b.min)*.1},axisLabel:{formatter:function(b){return Math.round(b).toString()}}}],series:[{type:"candlestick",name:"Stock Price",data:a.value,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:"horizontal",clip:!0,itemStyle:{color:"#0b9981",color0:"#f23645",borderColor:void 0,borderColor0:void 0}}]};return f.value=S,S}const d=OD(()=>{e.resize()},100),p=Ha(0);function g(m){p.value=m;const x=c();e.setOption(_(x)),e.setOption(x);const S=document.querySelector(`.J-point-event[data-id="${m}"]`);if(S){const b=document.querySelector(".point-event-wrapper");if(b){const w=b.getBoundingClientRect(),M=S.getBoundingClientRect(),T=6;let C=b.scrollLeft;M.left-T<w.left?C+=M.left-T-w.left:M.right+T>w.right&&(C+=M.right+T-w.right),C!==b.scrollLeft&&Bg.to(b,{duration:.1,scrollTo:{x:C},ease:"power1"})}}}function _(m){var x;return((x=m==null?void 0:m.series)==null?void 0:x.length)>0&&(m.series[0].markLine={symbol:["arrow","circle"],lineStyle:{width:1,type:"dashed"},data:i.events.map(S=>{var P;const b=m.series[0].data.map(L=>L).flat(),w=Math.min.apply(null,b),M=Math.max.apply(null,b),T=m.xAxis[0].data.findIndex(L=>L===S.name);m.series[0].data[T]||console.error("event not matched to data");const C=S.id===p.value;
81return[{name:"",eventId:S.id,coord:[m.xAxis[0].data[T],((P=m.series[0].data[T])==null?void 0:P[0])||0],label:{position:"start"},symbolSize:C?[12,12]:h.value?[0,0]:[3,3],lineStyle:{width:C?3:h.value?0:1,type:C?"solid":"dotted",color:C?"#3053fa":"rgba(0,0,0,.4)"}},{name:"end: insideEndBottom",symbolSize:C?[15,15]:h.value?[0,0]:[10,10],coord:[m.xAxis[0].data[T],w-(M-w)*.1]}]})}),m}function y(){e&&e.dispose(),e=tE(u.value,t.value?"dark":"light");const m=c();e.setOption(_(m)),e.setOption(m),d(),e.on("click","series.candlestick",function(x){const S=c();e==null||e.setOption(S),x.componentType==="markLine"&&(p.value=x.data.eventId,g(x.data.eventId))})}return AD(()=>t.value,()=>{y()}),PD(()=>{y(),g(p.value);const m=b=>{var w;if(!(b.target!==document.body||!((w=l.value)!=null&&w.getBoundingClientRect().top))&&(b.key==="ArrowLeft"||b.key==="ArrowRight")){b.preventDefault();const M=v.value.indexOf(p.value),T=b.key==="ArrowLeft"?-1:1,C=(M+T+v.value.length)%v.value.length;p.value=v.value[C],g(p.value)}};let x=p.value;Object.defineProperty(window,"__switchToEventByIndex",{value:b=>{h.value=!0,g(v.value[b])}}),Object.defineProperty(window,"__restoreScreenshotMode",{value:()=>{h.value=!1,typeof x=="number"&&g(x)}}),window.addEventListener("keydown",m),window.addEventListener("resize",d);const S=oz("COPILOT_WWRAPPER_RESIZE",d);ID(()=>{S.unsubscribe(),e==null||e.dispose(),window.removeEventListener("keydown",m),window.removeEventListener("resize",d)})}),(m,x)=>(tn(),en("div",{class:"candlestick-chart-component",ref_key:"root",ref:l},[pe("div",{ref_key:"node",ref:u,class:"line-chart-mode"},null,512),GG,Ou(s)?(tn(),en("div",VG,[(tn(!0),en(Bb,null,LD(Ou(s),S=>(tn(),en("div",{class:ky(["item J-point-event",{current:S.id===p.value}]),"data-id":S.id,key:S.id,onMousedown:b=>g(S.id)},[pe("h1",null,[fp(di(S.name)+" ",1),pe("span",{class:ky(["price_change",{down:S.price_change.startsWith("-")}])},di(S.price_change),3)]),pe("p",WG,di(S.text),1),pe("p",YG,[S.url?(tn(),en("a",{key:0,href:S.url,target:"_blank",class:"link"},"Source: news from "+di(S.host),9,UG)):hp("",!0)])],42,HG))),128))])):hp("",!0)],512))}});var TD={exports:{}};(function(r,t){(function(e,i){r.exports=i()})(Eb,function(){return function(e,i,n){i.prototype.isBetween=function(a,o,s,u){var l=n(a),f=n(o),h=(u=u||"()")[0]==="(",v=u[1]===")";return(h?this.isAfter(l,s):!this.isBefore(l,s))&&(v?this.isBefore(f,s):!this.isAfter(f,s))||(h?this.isBefore(l,s):!this.isAfter(l,s))&&(v?this.isAfter(f,s):!this.isBefore(f,s))}}})})(TD);var $G=TD.exports;const ZG=Rb($G),qG={key:0,class:"why-stock-price-container"},KG={class:"date"},QG=["href"],jG=pe("img",{src:"https://mw4.wsj.net/mw5/content/images/favicons/apple-touch-icon.png"},null,-1),JG={class:"stock-price-container"},t3=["src"],e3=["innerHTML"],r3={class:"view-more"},i3=["href"],n3={key:0,class:"candlestick"},a3={key:1,class:"why-stock-price-container"},o3=pe("h1",null,"No meta data found",-1),s3=[o3],g3=Ob({__name:"[file_name]",async setup(r){var y,m,x,S;let t,e;const i=Ha(),n=ED(),a=kD();Mr.extend(ZG);const o=async()=>{var T,C;let b=d.value;const w=document.querySelector(".candlestick-chart-component canvas");window.__switchToEventByIndex(0);for(let D=((T=c.value)==null?void 0:T.events.length)-1;D>=0;D--){window.__switchToEventByIndex(D),await new Promise(R=>setTimeout(R,50));const P=(C=c.value)==null?void 0:C.events[D],L=w.toDataURL("image/png");b+="<hr />",b+=`<h4>${P.name}</h4>`,b+=`<img src="${L}" alt="Candlestick Chart">`;const k=Ey.parse((P==null?void 0:P.text)||"");b+=`
82      <blockquote>${k}</blockquote>
83    `}b=` <p>
84        Published by
85        <a href="https://www.onwish.ai/" target="_blank">onwish.ai</a>
86      </p>`+b;const M=new ClipboardItem({"text/html":new Blob([MD(b)],{type:"text/html"})});try{await navigator.clipboard.write([M]),console.log("Content with embedded image copied to clipboard")}catch(D){console.error("Failed to copy content: ",D)}window.__restoreScreenshotMode()},s=a.params.file_name;console.log(s,a.params);const u=s.split("-")[1],l=Mr().subtract(1,"year").format("YYYY-MM-DD"),[{data:f},{data:h}]=([t,e]=RD(()=>Promise.all([Ry(`/fmapi/v3/historical-price-full/${u.toUpperCase()}`,{params:{from:l}},"$3dH70pYTnC"),Ry("/proxy/api/v1/cms/detail",{params:{type:"market_moving",file_name:s}},"$igpLMZVmim")])),t=await t,e(),t),v=On(()=>h.value.data),c=On(()=>JSON.parse(v.value.content));BD({title:(y=v.value)==null?void 0:y.title,meta:[{hid:"description",name:"description",content:`${(m=v.value)==null?void 0:m.description}. In-depth analysis of first-hand company insights from earnings calls, SEC filings, social media and more`},{hid:"twitter:css-selector",name:"twitter:css-selector",content:".why-stock-price-container>article"},{hid:"og:title",name:"og:title",content:`${(x=v.value)==null?void 0:x.title}`},{hid:"og:description",name:"og:description",content:`${(S=v.value)==null?void 0:S.description}`},{hid:"twitter:url",name:"twitter:url",content:`${n.public.siteUrl}${a.path}?utm_source=twitter`},{hid:"linkedin:url",name:"linkedin:url",content:`${n.public.siteUrl}${a.path}?utm_source=linkedin`}],link:[{rel:"canonical",href:`${n.public.siteUrl}${a.path}`}]});const d=On(()=>{var b;return Ey.parse(((b=c.value)==null?void 0:b.content)||"")}),p=Mr(),g=Mr().subtract(1,"year"),_=On(()=>{var b;return(b=f.value)==null?void 0:b.historical.filter(w=>Mr(w.date,"YYYY-MM-DD").isBetween(g,p,null,"[]")).map(w=>({name:w.date,high:w.high,low:w.low,open:w.open,close:w.close})).reverse()});return(b,w)=>{var D;const M=CD,T=XG,C=DD;
86return tn(),en(Bb,null,[v.value?(tn(),en("article",qG,[pe("h1",null,di(v.value.title),1),pe("p",KG,[pe("span",null,[fp(di(Ou(Mr)(v.value.market_moving_date).format("MMMM D, YYYY"))+" ",1),pe("a",{target:"_blank",href:`https://www.marketwatch.com/investing/stock/${v.value.ticker}`},[jG,fp(di(v.value.company_name)+" ("+di(v.value.ticker)+")",1)],8,QG)]),pe("span",null,[ov(M,{source:`market_moving_${v.value.ticker}`},null,8,["source"])])]),pe("div",JG,[pe("iframe",{frameborder:"",src:`/stock-price.html?ticker=${v.value.ticker}`},null,8,t3)]),pe("section",{ref_key:"mainNode",ref:i,class:"main",innerHTML:d.value},null,8,e3),pe("section",r3,[pe("a",{target:"_blank",href:`http://localhost:5173/open-company?ticker=${v.value.ticker}&company=${v.value.ticker}`}," View more key drivers and documents for "+di(v.value.company_name)+" ("+di(v.value.ticker)+") ",9,i3)]),_.value?(tn(),en("section",n3,[pe("h2",null,di(v.value.ticker)+" stock price performance review",1),ov(T,{ticker:v.value.ticker,data:_.value,events:((D=c.value)==null?void 0:D.events)||[],copyToSubstack:o},null,8,["ticker","data","events"])])):hp("",!0)])):(tn(),en("div",a3,s3)),ov(C,{description:v.value.description,url:`${Ou(n).public.siteUrl}${Ou(a).path}`,title:v.value.title,copyToSubstack:o},null,8,["description","url","title"])],64)}}});export{g3 as default};

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.