31 lines
1.7 MiB
31 lines
1.7 MiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5072099c","chunk-df50fe74","chunk-09a68df5"],{"0007":function(t,e,n){"use strict";var i=n("7a23"),r=n("313e");const a=["id"];var o={__name:"moreLineEcharts",props:{echartsId:{type:String,default:"morelineId"},data:{type:Object,default:{color:[],list:[],xData:[],labelColor:"#000",rotate:0,interval:0,isVertical:!1}}},setup(t){const e=t;function n(t){let e=t.color,n=t.list,i=n.map((t,n)=>({type:"line",name:t.label,data:t.val,itemStyle:{normal:{color:e[n]}},smooth:!0,showSymbol:!1,areaStyle:{normal:{color:new r["a"].LinearGradient(0,0,0,1,[{offset:0,color:"rgba(199, 237, 250,0.5)"},{offset:1,color:"rgba(199, 237, 250,0.2)"}],!1)}}}));o(i)}function o(t){var n=r["b"](document.getElementById(e.echartsId)),i={grid:{top:"20%",right:"6%",left:"2%",bottom:"3%",containLabel:!0},legend:{data:e.data.list.map(t=>t.label),textStyle:{color:e.data.labelColor||"#fff"},icon:"diamond",itemWidth:16,itemHeight:8,itemGap:5},tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#ddd"}},backgroundColor:"rgba(255,255,255,1)",padding:[5,10],textStyle:{color:"#7588E4"},extraCssText:"box-shadow: 0 0 5px rgba(0,0,0,0.3)"},xAxis:{type:"category",data:e.data.xData,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,color:e.data.labelColor||"#fff",interval:e.data.interval||0,rotate:e.data.rotate||0,formatter:function(t){return e.data.isVertical?t.split("").join("\n"):t}}},yAxis:{type:"value",splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(14,95,255,0.5)"}},axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:e.data.labelColor||"#fff"}},series:t};i&&n.setOption(i),window.addEventListener("resize",(function(){n.resize()}))}return Object(i["watch"])(()=>e.data,t=>{Object(i["nextTick"])(()=>{n(t)})},{immediate:!0,deep:!0}),(e,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{style:{height:"100%",width:"100%"},id:t.echartsId},null,8,a))}};const s=o;e["a"]=s},"04f6":function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=32,r=7;function a(t){var e=0;while(t>=i)e|=1&t,t>>=1;return t+e}function o(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){while(r<n&&i(t[r],t[r-1])<0)r++;s(t,e,r)}else while(r<n&&i(t[r],t[r-1])>=0)r++;return r-e}function s(t,e,n){n--;while(e<n){var i=t[e];t[e++]=t[n],t[n--]=i}}function l(t,e,n,i,r){for(i===e&&i++;i<n;i++){var a,o=t[i],s=e,l=i;while(s<l)a=s+l>>>1,r(o,t[a])<0?l=a:s=a+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=o}}function u(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])>0){s=i-r;while(l<s&&a(t,e[n+r+l])>0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{s=r+1;while(l<s&&a(t,e[n+r-l])<=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}o++;while(o<l){var c=o+(l-o>>>1);a(t,e[n+c])>0?o=c+1:l=c}return l}function c(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])<0){s=r+1;while(l<s&&a(t,e[n+r-l])<0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{s=i-r;while(l<s&&a(t,e[n+r+l])>=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}o++;while(o<l){var c=o+(l-o>>>1);a(t,e[n+c])<0?l=c:o=c+1}return l}function h(t,e){var n,i,a=r,o=0,s=0;o=t.length;var l=[];function h(t,e){n[s]=t,i[s]=e,s+=1}function d(){while(s>1){var t=s-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;p(t)}}function f(){while(s>1){var t=s-2;t>0&&i[t-1]<i[t+1]&&t--,p(t)}}function p(r){var a=n[r],o=i[r],l=n[r+1],h=i[r+1];i[r]=o+h,r===s-3&&(n[r+1]=n[r+2],i[r+1]=i[r+2]),s--;var d=c(t[l],t,a,o,0,e);a+=d,o-=d,0!==o&&(h=u(t[a+o-1],t,l,h,h-1,e),0!==h&&(o<=h?g(a,o,l,h):m(a,o,l,h)))}function g(n,i,o,s){var h=0;for(h=0;h<i;h++)l[h]=t[n+h];var d=0,f=o,p=n;if(t[p++]=t[f++],0!==--s)if(1!==i){var g,m,v,y=a;while(1){g=0,m=0,v=!1;do{if(e(t[f],l[d])<0){if(t[p++]=t[f++],m++,g=0,0===--s){v=!0;break}}else if(t[p++]=l[d++],g++,m=0,1===--i){v=!0;break}}while((g|m)<y);if(v)break;do{if(g=c(t[f],l,d,i,0,e),0!==g){for(h=0;h<g;h++)t[p+h]=l[d+h];if(p+=g,d+=g,i-=g,i<=1){v=!0;break}}if(t[p++]=t[f++],0===--s){v=!0;break}if(m=u(l[d],t,f,s,0,e),0!==m){for(h=0;h<m;h++)t[p+h]=t[f+h];if(p+=m,f+=m,s-=m,0===s){v=!0;break}}if(t[p++]=l[d++],1===--i){v=!0;break}y--}while(g>=r||m>=r);if(v)break;y<0&&(y=0),y+=2}if(a=y,a<1&&(a=1),1===i){for(h=0;h<s;h++)t[p+h]=t[f+h];t[p+s]=l[d]}else{if(0===i)throw new Error;for(h=0;h<i;h++)t[p+h]=l[d+h]}}else{for(h=0;h<s;h++)t[p+h]=t[f+h];t[p+s]=l[d]}else for(h=0;h<i;h++)t[p+h]=l[d+h]}function m(n,i,o,s){var h=0;for(h=0;h<s;h++)l[h]=t[o+h];var d=n+i-1,f=s-1,p=o+s-1,g=0,m=0;if(t[p--]=t[d--],0!==--i)if(1!==s){var v=a;while(1){var y=0,_=0,b=!1;do{if(e(l[f],t[d])<0){if(t[p--]=t[d--],y++,_=0,0===--i){b=!0;break}}else if(t[p--]=l[f--],_++,y=0,1===--s){b=!0;break}}while((y|_)<v);if(b)break;do{if(y=i-c(l[f],t,n,i,i-1,e),0!==y){for(p-=y,d-=y,i-=y,m=p+1,g=d+1,h=y-1;h>=0;h--)t[m+h]=t[g+h];if(0===i){b=!0;break}}if(t[p--]=l[f--],1===--s){b=!0;break}if(_=s-u(t[d],l,0,s,s-1,e),0!==_){for(p-=_,f-=_,s-=_,m=p+1,g=f+1,h=0;h<_;h++)t[m+h]=l[g+h];if(s<=1){b=!0;break}}if(t[p--]=t[d--],0===--i){b=!0;break}v--}while(y>=r||_>=r);if(b)break;v<0&&(v=0),v+=2}if(a=v,a<1&&(a=1),1===s){for(p-=i,d-=i,m=p+1,g=d+1,h=i-1;h>=0;h--)t[m+h]=t[g+h];t[p]=l[f]}else{if(0===s)throw new Error;for(g=p-(s-1),h=0;h<s;h++)t[g+h]=l[h]}}else{for(p-=i,d-=i,m=p+1,g=d+1,h=i-1;h>=0;h--)t[m+h]=t[g+h];t[p]=l[f]}else for(g=p-(s-1),h=0;h<s;h++)t[g+h]=l[h]}return o<120?5:o<1542?10:o<119151?19:40,n=[],i=[],{mergeRuns:d,forceMergeRuns:f,pushRun:h}}function d(t,e,n,r){n||(n=0),r||(r=t.length);var s=r-n;if(!(s<2)){var u=0;if(s<i)return u=o(t,n,r,e),void l(t,n,r,n+u,e);var c=h(t,e),d=a(s);do{if(u=o(t,n,r,e),u<d){var f=s;f>d&&(f=d),l(t,n,n+f,n+u,e),u=f}c.pushRun(n,u),c.mergeRuns(),s-=u,n+=u}while(0!==s);c.forceMergeRuns()}}},"04f7":function(t,e,n){"use strict";n.d(e,"b",(function(){return v})),n.d(e,"a",(function(){return y}));var i=n("07fd"),r=n("e0d3"),a=n("6d8b"),o=n("2b17"),s=n("b7d9"),l=n("edae"),u=n("ec6f"),c=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Object(s["d"])(t,e)},t}();function h(t,e){var n=new c,r=t.data,s=n.sourceFormat=t.sourceFormat,u=t.startIndex,h="";t.seriesLayoutBy!==i["a"]&&Object(l["c"])(h);var m=[],v={},y=t.dimensionsDefine;if(y)Object(a["k"])(y,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(m.push(i),null!=n){var r="";Object(a["q"])(v,n)&&Object(l["c"])(r),v[n]=i}}));else for(var _=0;_<t.dimensionsDetectedCount;_++)m.push({index:_});var b=Object(o["c"])(s,i["a"]);e.__isBuiltIn&&(n.getRawDataItem=function(t){return b(r,u,m,t)},n.getRawData=Object(a["c"])(d,null,t)),n.cloneRawData=Object(a["c"])(f,null,t);var x=Object(o["b"])(s,i["a"]);n.count=Object(a["c"])(x,null,r,u,m);var w=Object(o["d"])(s);n.retrieveValue=function(t,e){var n=b(r,u,m,t);return O(n,e)};var O=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=m[e];return n?w(t,e,n.name):void 0}};return n.getDimensionInfo=Object(a["c"])(p,null,m,v),n.cloneAllDimensionInfo=Object(a["c"])(g,null,m),n}function d(t){var e=t.sourceFormat;if(!b(e)){var n="";0,Object(l["c"])(n)}return t.data}function f(t){var e=t.sourceFormat,n=t.data;if(!b(e)){var r="";0,Object(l["c"])(r)}if(e===i["c"]){for(var o=[],s=0,u=n.length;s<u;s++)o.push(n[s].slice());return o}if(e===i["e"]){for(o=[],s=0,u=n.length;s<u;s++)o.push(Object(a["m"])({},n[s]));return o}}function p(t,e,n){if(null!=n)return Object(a["z"])(n)||!isNaN(n)&&!Object(a["q"])(e,n)?t[n]:Object(a["q"])(e,n)?e[n]:void 0}function g(t){return Object(a["d"])(t)}var m=Object(a["f"])();function v(t){t=Object(a["d"])(t);var e=t.type,n="";e||Object(l["c"])(n);var i=e.split(":");2!==i.length&&Object(l["c"])(n);var r=!1;"echarts"===i[0]&&(e=i[1],r=!0),t.__isBuiltIn=r,m.set(e,t)}function y(t,e,n){var i=Object(r["r"])(t),a=i.length,o="";a||Object(l["c"])(o);for(var s=0,u=a;s<u;s++){var c=i[s];e=_(c,e,n,1===a?null:s),s!==u-1&&(e.length=Math.max(e.length,1))}return e}function _(t,e,n,o){var s="";e.length||Object(l["c"])(s),Object(a["A"])(t)||Object(l["c"])(s);var c=t.type,d=m.get(c);d||Object(l["c"])(s);var f=Object(a["H"])(e,(function(t){return h(t,d)})),p=Object(r["r"])(d.transform({upstream:f[0],upstreamList:f,config:Object(a["d"])(t.config)}));return Object(a["H"])(p,(function(t,n){var r="";Object(a["A"])(t)||Object(l["c"])(r),t.data||Object(l["c"])(r);var o,s=Object(u["d"])(t.data);b(s)||Object(l["c"])(r);var c=e[0];if(c&&0===n&&!t.dimensions){var h=c.startIndex;h&&(t.data=c.data.slice(0,h).concat(t.data)),o={seriesLayoutBy:i["a"],sourceHeader:h,dimensions:c.metaRawOption.dimensions}}else o={seriesLayoutBy:i["a"],sourceHeader:0,dimensions:t.dimensions};return Object(u["b"])(t.data,o,null)}))}function b(t){return t===i["c"]||t===i["e"]}},"0655":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("8728"),r=1e-8;function a(t,e){return Math.abs(t-e)<r}function o(t,e,n){var r=0,o=t[0];if(!o)return!1;for(var s=1;s<t.length;s++){var l=t[s];r+=Object(i["a"])(o[0],o[1],l[0],l[1],e,n),o=l}var u=t[0];return a(o[0],u[0])&&a(o[1],u[1])||(r+=Object(i["a"])(o[0],o[1],u[0],u[1],e,n)),0!==r}},"06ad":function(t,e,n){"use strict";n.d(e,"a",(function(){return _}));var i={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-i.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5}},r=i,a=n("6d8b"),o=n("b362"),s=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||a["L"],this.ondestroy=t.ondestroy||a["L"],this.onrestart=t.onrestart||a["L"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var a=this.easingFunc,o=a?a(r):r;if(this.onframe(o),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(a["w"])(t)?t:r[t]||Object(o["a"])(t)},t}(),l=s,u=n("41ef"),c=n("7a29"),h=Array.prototype.slice;function d(t,e,n){return(e-t)*n+t}function f(t,e,n,i){for(var r=e.length,a=0;a<r;a++)t[a]=d(e[a],n[a],i);return t}function p(t,e,n,i){for(var r=e.length,a=r&&e[0].length,o=0;o<r;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=d(e[o][s],n[o][s],i)}return t}function g(t,e,n,i){for(var r=e.length,a=0;a<r;a++)t[a]=e[a]+n[a]*i;return t}function m(t,e,n,i){for(var r=e.length,a=r&&e[0].length,o=0;o<r;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+n[o][s]*i}return t}function v(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,a=Math.min(n,i),o=r[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,i);s++)r.push({offset:o.offset,color:o.color.slice()})}function y(t,e,n){var i=t,r=e;if(i.push&&r.push){var a=i.length,o=r.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(1===n?r[l]:h.call(r[l]))}var u=i[0]&&i[0].length;for(l=0;l<i.length;l++)if(1===n)isNaN(i[l])&&(i[l]=r[l]);else for(var c=0;c<u;c++)isNaN(i[l][c])&&(i[l][c]=r[l][c])}}function _(t){if(Object(a["u"])(t)){var e=t.length;if(Object(a["u"])(t[0])){for(var n=[],i=0;i<e;i++)n.push(h.call(t[i]));return n}return h.call(t)}return t}function b(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function x(t){return Object(a["u"])(t&&t[0])?2:1}var w=0,O=1,S=2,T=3,M=4,A=5,C=6;function I(t){return t===M||t===A}function D(t){return t===O||t===S}var L=[0,0,0,0],E=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,s=i.length,l=!1,h=C,d=e;if(Object(a["u"])(e)){var f=x(e);h=f,(1===f&&!Object(a["z"])(e[0])||2===f&&!Object(a["z"])(e[0][0]))&&(l=!0)}else if(Object(a["z"])(e)&&!Object(a["l"])(e))h=w;else if(Object(a["C"])(e))if(isNaN(+e)){var p=u["parse"](e);p&&(d=p,h=T)}else h=w;else if(Object(a["x"])(e)){var g=Object(a["m"])({},d);g.colorStops=Object(a["H"])(e.colorStops,(function(t){return{offset:t.offset,color:u["parse"](t.color)}})),Object(c["m"])(e)?h=M:Object(c["o"])(e)&&(h=A),d=g}0===s?this.valType=h:h===this.valType&&h!==C||(l=!0),this.discrete=this.discrete||l;var m={time:t,value:d,rawValue:e,percent:0};return n&&(m.easing=n,m.easingFunc=Object(a["w"])(n)?n:r[n]||Object(o["a"])(n)),i.push(m),m},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,a=n[r-1],o=this.discrete,s=D(i),l=I(i),u=0;u<r;u++){var c=n[u],h=c.value,d=a.value;c.percent=c.time/t,o||(s&&u!==r-1?y(h,d,i):l&&v(h.colorStops,d.colorStops))}if(!o&&i!==A&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var f=n[0].value;for(u=0;u<r;u++)i===w?n[u].additiveValue=n[u].value-f:i===T?n[u].additiveValue=g([],n[u].value,f,-1):D(i)&&(n[u].additiveValue=i===O?g([],n[u].value,f,-1):m([],n[u].value,f,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,s=o?"additiveValue":"value",l=this.valType,u=this.keyframes,c=u.length,h=this.propName,g=l===T,m=this._lastFr,v=Math.min;if(1===c)i=r=u[0];else{if(e<0)n=0;else if(e<this._lastFrP){var y=v(m+1,c-1);for(n=y;n>=0;n--)if(u[n].percent<=e)break;n=v(n,c-2)}else{for(n=m;n<c;n++)if(u[n].percent>e)break;n=v(n-1,c-2)}r=u[n+1],i=u[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var _=r.percent-i.percent,x=0===_?1:v((e-i.percent)/_,1);r.easingFunc&&(x=r.easingFunc(x));var w=o?this._additiveValue:g?L:t[h];if(!D(l)&&!g||w||(w=this._additiveValue=[]),this.discrete)t[h]=x<1?i.rawValue:r.rawValue;else if(D(l))l===O?f(w,i[s],r[s],x):p(w,i[s],r[s],x);else if(I(l)){var S=i[s],A=r[s],C=l===M;t[h]={type:C?"linear":"radial",x:d(S.x,A.x,x),y:d(S.y,A.y,x),colorStops:Object(a["H"])(S.colorStops,(function(t,e){var n=A.colorStops[e];return{offset:d(t.offset,n.offset,x),color:b(f([],t.color,n.color,x))}})),global:A.global},C?(t[h].x2=d(S.x2,A.x2,x),t[h].y2=d(S.y2,A.y2,x)):t[h].r=d(S.r,A.r,x)}else if(g)f(w,i[s],r[s],x),o||(t[h]=b(w));else{var E=d(i[s],r[s],x);o?this._additiveValue=E:t[h]=E}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===w?t[n]=t[n]+i:e===T?(u["parse"](t[n],L),g(L,L,i,1),t[n]=b(L)):e===O?g(t[n],t[n],i,1):e===S&&m(t[n],t[n],i,1)},t}(),j=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?Object(a["G"])("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(a["F"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,a=0;a<n.length;a++){var o=n[a],s=r[o];if(!s){s=r[o]=new E(o);var l=void 0,u=this._getAdditiveTrack(o);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,u.valType===T&&l&&(l=b(l))}else l=this._target[o];if(null==l)continue;t>0&&s.addKeyframe(0,_(l),i),this._trackKeys.push(o)}s.addKeyframe(t,_(e[o]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var a=this._trackKeys[r],o=this._tracks[a],s=this._getAdditiveTrack(a),u=o.keyframes,c=u.length;if(o.prepare(i,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var h=u[c-1];h&&(e._target[o.propName]=h.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new l({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,a=0;a<i.length;a++)if(i[a]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(a=0;a<n.length;a++)n[a].step(e._target,t);var o=e._onframeCbs;if(o)for(a=0;a<o.length;a++)o[a](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Object(a["H"])(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var a=n[t[r]];a&&!a.isFinished()&&(e?a.step(this._target,1):1===this._started&&a.step(this._target,0),a.setFinished())}var o=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],a=this._tracks[r];if(a&&!a.isFinished()){var o=a.keyframes,s=o[n?0:o.length-1];s&&(t[r]=_(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(a["F"])(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var s=o.pop();r.addKeyframe(s.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();e["b"]=j},"07fd":function(t,e,n){"use strict";n.d(e,"i",(function(){return r})),n.d(e,"f",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d}));var i=n("6d8b"),r=Object(i["f"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),a="original",o="arrayRows",s="objectRows",l="keyedColumns",u="typedArray",c="unknown",h="column",d="row"},"0924":function(t,e,n){"use strict";function i(t,e,n){switch(n){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function r(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function a(t,e,n,i){switch(n){case"color":var r=t.ensureUniqueItemVisual(e,"style");r[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i);break;default:0}}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a}))},"0947":function(t,e,n){"use strict";n("60d9")},"0bb9":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAArCAYAAACTkhN2AAAMIklEQVRIiWVXCZAc5Xl9fc70TE/PPVrtvavVsSskoQNpV8rqQgJFkKRCHHMUp+0irgJTxEkVZZw4dlEuE2LKpmzHAkQiELikpDBWbB0IHchCkjkWSasLSas9Nfexc/RM3/2nuif4CF3Vd/fr7/++973/NQUA45NJZweGYVCv18AwBHv3/hKGZiyvN2pfO336o825bEHQNNUCCOXzCVRnV2dq48ZN77S3t+2lKDKzZcsWKKqGgD8Ay7ZcPBZfWAgoigbHcpRcq4cVVY1YlhkBIFAUZYEQihBCGYapKYoS0XRdCoh+UDQNEPInYH8CbtsEPp8fs7N5z+xs+ftvvfmLb8pyjXKucZwHLMeDEBuqauDK5avSubOj3+roaP36449/9VmlUX/F5xdtm9i/x2OczdN//4/uid/vA0WBefGH/7bjpz/Z8YTPJ1GRaAzUHwXgBEdsCh6PF5IURj6fEw4e2H83QIXXr99wSBTFZtQs2wT/xlNPuwA+vw+vv7H7mz968aVnQqEwRDEAyzSaOaQoGLoB0zBBcwzcFyjiPmMYBk6fOr2mta2t1je/78z4+ATK5XIzLSzDwOcTcOH86JLdr+9+whlQQAqCENJcKQqarsLj9cDrFVCv12GDdrBhmUAkEoUs17Fnz96vxhLx/RzPXXUCccGr1YpbyLNnP900dv1aTzgUhW1ZLntg27BsgkA4jL6BbgSDQYxdmkYuk2rWj6bcAJzrVy5fGpCrldV/fc89V/P5fBN8ZOQ8QqEQJsYnB3TNAMdx7gvOB52taWjo7ulHPB6GaZqItSRQKmTdNNmgQFO0O6pCvoxUOr0wlUohOZNsggf8Xs4ytdj0TGqA9/ggeD0wbYCiAY5nYDvjhw2e4WHrJoilgWFoEJYDTTOgaQoC4wPDsLh+7dpiuVbxh8JinXbAW1oiMU2trTw7MjIsSRI0w4BlmSA2gWlasC2C5HQGU+MpZDJFFAsFqIoGw7Tcujqj1VTVZdCZM2f+slQqDQ0sXtxkyy233PrA6IVLd/721Jlb57a3wiN4YVoW6o0qYrEIYi1zYFg6avUaVFWBDRvReAwelkOlWoFPFBEIShAEDyanJqnOzo58NBo+7IIHI4lvTU5OrZu5ORn0+Dhoah0wNbDE+UAFxVIOnXMTCHo8kDgeXpbB9bHPoCsy/LxTUBOK1oBpGygXZhGORSgL9iE355cvnO2t1+VO5+Hs9BT+5eF78eU7tiJZAcaSSYxOXEYoHMF9W/7CzfWeI7/Bst5eDMxfgKVdnYgwwK4Dh/D9N99yOgzl2UJnOpkMu+C2pTOWZTQ70CZYOq8b81YsRYIJYWTP29g8OIyBzi60x+IADdx7+524kZrGdF3GwLp1EJUqBq+P/b6LTUO3dFWxXfC/+dKXd+XzueUnjx97qFypIVuoAoTG/o/O4NfHjkCkTLz63efg5WlYxEQ8EsH3XvkZ0rUGON6Pr2xeg7riqCmHcDyEDRs27lm+YsUNly2xWOxHQ0NDD7+yY8dTffP7rWuTM0BAwuED+3H8vYNIZzOwDBNgKIAmsImFbKGE40eP4N13DwCBAK5MToAXBHnHyy/ff+e2bc/UarLmgjs0UpUGwtHoT24bXv9U3SHYzTQ237IMsTlxbFq7DiG/CFmRoek6RNaL29f8GSLxBFb1LwCqCkplBdvv3v7ztUODe2RZdpvPZct99z2AQCAA0e9HS0fnCNHIspjWWHTbwl4sXbQE24c3IhYIoNaogqZYCDSHee0tWDa/F3etWAYml8WFXCnXtnTZc9FIZLpRb0AKiE01vXD+ImzbhmGaCEbCOHX0xEOhqWtv/NUdG4BYHEpZQTo3C9W2QBwl9LLo6mgBeAYo13H00Ls4bdA/m7dq8MlyPo+Q6AXraLcD/uRTT4NmWfAeD2AR+CPS6IWZKb6azg/Pi/vBeVnINRnpTBKmXkVDa+DYh+cg1BUc+eBDTHiFf188OPiM6BWMOXPiSCWTSN680QT/9neeg9fnh0+UYJo22trbYUXDxV8cPNA/PTbRzVsEYdGP1piEzkQYM/kSvrvzDXySzOCGqh3efu+9z65ZsTznE3h0tLcim88hEQs2hcsyTXy+D4UklIqleYf++5ffO3v+wqJDM0n9Reodvj0RR8ecGBiaxlQ6h+lkCuO5grmof8GSMydO/EN/38JnLUJXG4oCXdfgD7Y2SZ/O1ZDKViGrBFMzOfGRRx5/m2cDJCQliIcXiGMHaEEgoBhCMQKJJDpIT08v6erqIgzjJX3zFxVPfPDJHcVyA+PTU3h7376u/e+NzHUjTyXHXdmsVv149dVdz7/++u57IpEYxKCABBdFICC4M1MqW0CtJiMaDiMSDaEh11AqVGCYVOTatbH7u7o7Dnt4Dz67dOnrvFeednkuV4sAMXD8yLsP7nz55SfCoQQkyQeOJVi6bAlWrVmD3v5+eLwCOI6HBYJsJodisQLWy0OpN/DZ5ctfqtarm+qKivePndwqClDZpp7QfC5bnPPOr/7nG426jNY2J7dAPN6CfKmKXHEWtVodclUGz3nBMl4ougWKZiEIAuplGXt27xIvjn60IxQK5i5euLhybuvRLWyzQ/V5Y2NjQ7/73cjqSDQOTSlDAwUmT0PXdWiGDlVVYZmkOQMRG4qqgKIIaGK59yRBgKjpC+hSYUFPawKq2oi64OcunFs/MT6xVqlrCIcTjkrCti1Uq46AUSDuXE/Q0xZHw2WViuGFqzGTyeP4p5+AohhwgoBZm0F66iYefPTBnwbD4WfdnM+Wyu2y3Jjr6Klh2LAtBoSw4Dg/vN4AWN4LURDxd3dvxYqBPoihKFiOg8/Do6e3b/rBhx/9Fevla++fOomZdBax2JwP7tq+veY20Q+ef366r2/+x5pmxpM3JxcQ2zCDwbCsGzpnmjrt8N/Ds1jU3Y4bqTzyNR0z2SIuXr+Cnr7eiW//8z89Fo1GJycmJ9YND68/tPn2TT/neb7masvJD04jk8li7MaUVC7nHmMZpjKweEl0587XvnP24xHJ0FUIfhGJRAtYjweapriGyDAaWLX6tmv33//A3X6/dH1ua4d08sQJo7NzjpLOlkE32WLDMExUK9Wq3+d/qX9g0S6vwFM+v1+KJBIQ/H6IARGcYzkMDQxlwbJV2CDI5XLS9etXWzPZlOMPqxRFKbOzVddOuwVlWAaSFEDL3ARWr1mF+X3z8OOXfrzg05GPwbFeSMEQeA8PQ9egKQ3XKumaYy0MBEOh3KL+gRuOO7MsC6Lox6fnRsF5fE1wx5nG4jGsHV7r+kDO48XSZbeeikQijxQLJZ7zBaE2TChK1QXw+UXQrAhDrcDv9WV6urtuZjMZlAppaJoGxjVLdBM8nU67J+l0xrVxjv1tSSQOts1tuVgq5leIwQAadQ3RWKjo8/mUmZlsm+DzU4ahI5PNtF69+lnb7Gw5yXE0CqUaGJoHS1NNcMfbNR2tjc9rMKelRY8lEqbjYC1DRbVcwPJlQ2cXLuq/9B+v7X5SAMfE4mFnOgvOzCTbZFlOOt7SJjwEn9f1mS54a1vbF35eQqFQOR6PVzxeLxxFdpoqKEn5zo7WUa/gsUUpwDh5ZhmG1hSFNTTN9ZPEcb0U4x674M7k/P8XXfCgPDtrqWoDFHwghIdPDFcDgUhO1wxSl+tuI3lYyluXa1KjoYDYFniBdsXMOW5G3vqHyJ30OBY6Go0gHotfz6Yz20wDsAmFeDw+3d7VMxkKSfLM9GTEYcuty5dq7d09aqVchmPnC0UVtZoOj4dv8tw5+Hx1Zu1sLod8oYjBocHDLXNbZyvVIniOGIODK492d3VfW71m5XvlShEsQ6G/v//Djes3vD88vB5Da4ex/a6t6O1pBUP/X1qUP0oLIV7kc1n4RRGFYnGhbdlhChRMy6Q0TTXfevM/bVVRXO/nWGZdN1qOHz8WtAipbNu2HbLmwbblB8HUjjYjpyjqDyuARCLRvW/fvjd++MILP0ilboLneVQqFfbSpcu3HDp4QBwdPb/SeU5R6jhy5L2hnTtfu6ip6qMUBcgKhSA7jt7AR1/8yQ1Fwti797/+9sUX/vUhp64URVUJIfTixYtTvfP6bt5x558rN2emf3vlypWuWl02a7LMppLJdikgPhaSgocnUlZqa28SbJzF/wKPOdM6g3/bDwAAAABJRU5ErkJggg=="},"0d20":function(t,e,n){},"0da8":function(t,e,n){"use strict";var i=n("21a10"),r=n("19eb"),a=n("9850"),o=n("6d8b"),s=Object(o["i"])({x:0,y:0},r["b"]),l={style:Object(o["i"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},r["a"].style)};function u(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.createStyle=function(t){return Object(o["g"])(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=u(e.image)?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",a=e[r];return null==a?i[t]:i[t]/i[r]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return l},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new a["a"](t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(r["c"]);c.prototype.type="image",e["a"]=c},"0f99":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"g",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return c})),n.d(e,"f",(function(){return h})),n.d(e,"e",(function(){return d})),n.d(e,"b",(function(){return f}));var i=n("e0d3"),r=n("6d8b"),a=n("07fd"),o={Must:1,Might:2,Not:3},s=Object(i["o"])();function l(t){s(t).datasetMap=Object(r["f"])()}function u(t,e,n){var i={},a=h(e);if(!a||!t)return i;var o,l,u=[],c=[],d=e.ecModel,f=s(d).datasetMap,p=a.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(r["k"])(t,(function(e,n){var a=Object(r["A"])(e)?e:t[n]={name:e};"ordinal"===a.type&&null==o&&(o=n,l=v(a)),i[a.name]=[]}));var g=f.get(p)||f.set(p,{categoryWayDim:l,valueWayDim:0});function m(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function v(t){var e=t.dimsDef;return e?e.length:1}return Object(r["k"])(t,(function(t,e){var n=t.name,r=v(t);if(null==o){var a=g.valueWayDim;m(i[n],a,r),m(c,a,r),g.valueWayDim+=r}else if(o===e)m(i[n],0,r),m(u,0,r);else{a=g.categoryWayDim;m(i[n],a,r),m(c,a,r),g.categoryWayDim+=r}})),u.length&&(i.itemName=u),c.length&&(i.seriesName=c),i}function c(t,e,n){var i={},s=h(t);if(!s)return i;var l,u=e.sourceFormat,c=e.dimensionsDefine;u!==a["e"]&&u!==a["d"]||Object(r["k"])(c,(function(t,e){"name"===(Object(r["A"])(t)?t.name:t)&&(l=e)}));var d=function(){for(var t={},i={},r=[],a=0,s=Math.min(5,n);a<s;a++){var h=p(e.data,u,e.seriesLayoutBy,c,e.startIndex,a);r.push(h);var d=h===o.Not;if(d&&null==t.v&&a!==l&&(t.v=a),(null==t.n||t.n===t.v||!d&&r[t.n]===o.Not)&&(t.n=a),f(t)&&r[t.n]!==o.Not)return t;d||(h===o.Might&&null==i.v&&a!==l&&(i.v=a),null!=i.n&&i.n!==i.v||(i.n=a))}function f(t){return null!=t.v&&null!=t.n}return f(t)?t:f(i)?i:null}();if(d){i.value=[d.v];var f=null!=l?l:d.n;i.itemName=[f],i.seriesName=[f]}return i}function h(t){var e=t.get("data",!0);if(!e)return Object(i["v"])(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},i["b"]).models[0]}function d(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Object(i["v"])(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},i["b"]).models:[]}function f(t,e){return p(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function p(t,e,n,s,l,u){var c,h,d,f=5;if(Object(r["E"])(t))return o.Not;if(s){var p=s[u];Object(r["A"])(p)?(h=p.name,d=p.type):Object(r["C"])(p)&&(h=p)}if(null!=d)return"ordinal"===d?o.Must:o.Not;if(e===a["c"]){var g=t;if(n===a["b"]){for(var m=g[u],v=0;v<(m||[]).length&&v<f;v++)if(null!=(c=S(m[l+v])))return c}else for(v=0;v<g.length&&v<f;v++){var y=g[l+v];if(y&&null!=(c=S(y[u])))return c}}else if(e===a["e"]){var _=t;if(!h)return o.Not;for(v=0;v<_.length&&v<f;v++){var b=_[v];if(b&&null!=(c=S(b[h])))return c}}else if(e===a["d"]){var x=t;if(!h)return o.Not;m=x[h];if(!m||Object(r["E"])(m))return o.Not;for(v=0;v<m.length&&v<f;v++)if(null!=(c=S(m[v])))return c}else if(e===a["f"]){var w=t;for(v=0;v<w.length&&v<f;v++){b=w[v];var O=Object(i["h"])(b);if(!Object(r["t"])(O))return o.Not;if(null!=(c=S(O[u])))return c}}function S(t){var e=Object(r["C"])(t);return null!=t&&isFinite(t)&&""!==t?e?o.Might:o.Not:e&&"-"!==t?o.Must:void 0}return o.Not}},"14c9":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAArCAYAAABmbJjGAAAMnklEQVRYhY1XaWxc13X+3jJvm30fznAZrqIkWqo2S1RFi5WiJZJMWbEdZ7GrIl1QA2mLIi0EI6mD9k/RomjqNEHQwGndRrWl1kmAtvCiuHJtJZasjZRMURIpkTMSOeTMkLO8mTfvzVuL94ZJ1VqGewcXDzPzzv3OOfc7536XAIC/+da37QfsLyYA3VChNBrIF8oACVAkxVmW2adq+m6KIEeSyeRALBr10TSFSrVSbTSkLMfzlwkQ7zEMPclxbFXXdbjdbiTakojHY6DxkEE48BZUVWVYjt0Zjka+Eg5Hjn32wF5PdzrtGJTLVdQbDQT8fng9wmZZlo9NTFwz787NvitL0g90TX/DNM3qL1Z/KJBhmJBlJRkOhb65fXj7b+7ft5fiea71n2lidjaLyVvTKIl1JONRbNs4hEgkhOHhHeTw8Pa909Mzey9fuvIfUkN60bLMcQIEKNv48cfHQFEUSJKCbhiQFWVLPBF//defe+7Qtm2bSZfrf/xZWS7h/Z99AIug0NnZjvv3siitrKCrswM0TTsbEA6H0d3TPaBp2mFJahR9Xs9Hzgr5fBGWBXAcA4Zlhro6u189OnZ4wO/3fSzapqKgVqmCdNXh4VwoLOZBWhYsy/xf73k8HoyM7Gq/cuXKD+r1uuxEFI60oVAoYjFfIEKh4ImxI4eOJNriD8sqNN1wHBMrImq1OhRZxtD69ejv7/nYuwRBIBaLUdVK9VEnomDA7/xYKC6Hl4vl3kg09DEjpalA13SAsNDTk4ab56AbOnrTHehoT6Ihy2AZxtmCB4edzrZkW9oB4lkWlmWhI9m2HPC5375w4dLR4Z3bMZfJIDObQVNpolargqRI+Lw+mKYJSaqDdLmgGRymbk7i6vhlaJqGaDSKQCAAl8uF/v5+h+Jnzpx5xSHy87/ze46x1+tGuruDrojyE6rW/NrS0sIOuSFjaGg9ItEIaqIISWrArhFe4MAwLCiaBmFZqEsSNFWDwAtO1Lenp7FmYAAcx51+6623vupEpBmmA6TpJhRN1w3SfH3+fraWTqd/EkkkeEEQ0NPdhWwmg1Q7B7cgILeYQz6fB8vxEDgePO9GKhVCJBbHwmIOQwyD/NLS1ZmZuycC/uCyA9QX8Tipsyvd26xjPpvBjampe4pYzgyWk2tZrx+nXz2JUrmMb774IgbWrMFrp0/hzTfeAEmQIEkSLsaFWCyO0ZERcIQJFYTKB8LX3W6Pqmlqq2AD/GqdWIDVbCLlEzAQ86rjlz9c2pY6uLY3mMK/LebA8QLm78xAFkVosgzSMsFzLOLhEFwc75DhQG8MkKr44384fS6aSr60e/v2JbfH1yrYg4+NwLRW+5xlMQmf+1jSy/8un0iv3TgyGt7YmUBPezvcPj+6o1Fs6kljZMtmPH34EL545BD6OzsdAnxuzyg+u2srcrkFzOYK6raBbl9nKqlxvDvjhOL1Cr8IyN6rRNzrfj7WN7BnY3rQQq0ML6nisbGjuP7KScxl5nBgeDuEQAggKNTLKzj78/MAJ2DbZ/YBjAVN1tAZSww8u+/w4K18fnByfv66A0QJ7l8CkYYuabyn7h3ciPS69URu4gpyC/dx5uRrOHnqFNZ1tOP4k09C0DSAJtDUdbz34UVcvD0DiyLxjafH0NmWwKCkkWw0CaNYNk0DJmkDzBY1Z97Nq5gvWSsy4Z7xRWLwkATCwSD8Xg8unDuHO9MzaKoqDN1oHSqWaTMZpmkhvzCP9985CwOm02g3dCSQzd4xaob640A83GJdo1FvHUYGsCiJ62ca9x+rR3k80jkALjOF/rAPxw7ux2KpjGN79yIU9EMRRacLBIN+HNu3B5n5+zi4cwcYmoaoNvXZ7NzVska93OCYk2BdzvL48peecSgqFsTgdS73SvO50Jg2L8P3nlH97s790oEDo7FqzaAXKxLa4wkIAT/kWh00QYL1eFAvlzGdzSAVdCMedOParZsf/ej8xeNRITSu8TQGtu6CkzpdM2GoFjSeHDE3ecYi62MIDIaxzIoT04XKS6hUZ/0BHoObNzjpuvHRJArLy1gul3H75i0YhorNO7Yi3p2Akp/HxM3pU9WyOC6WlyE3LRSKlRa9U6lOWq4rnmpMf0H6NXaIalpoXigjdI36E0Ukvlcqr0heSh8OUoTAMRQhl0tOr1NVBYKlIh4NwGxUkP1oMnPmdubrCw3jW8nOLri8HvChBOTmasG6WCauEmp7zi9+wRtLQV1U0JwXy1TeZKcrub6pzEzv37/5jjjU1ebZvXUjv7W3n2gLBsGwpEOMn134Od68cLH27vhMtd4kyD/82h9g/xOHsbSYhyKVoCqNFpBMamOqz0qbj3AwCk2Iogiil+ePb37yL1gf7/3OBz9khrR1qLOkdeLWO0R/+TqGvCnwMokSo+LczCTCvpR7/zPPbHz7wpm//eG/n6K8Hu9LJuXBlvR5BFN6K3Xko6GXpbCxR3gsyutFGUW5hK1Dm+mXP//nwrQ3R52mz+Lvfvsv8dTjRwl3VwBqG4dXF8ZxLldEdYDE0wfH8PzR48RXjn4RF38lhx+fPTmSqCWutHkidxcXpjHgP9siQ4PV2hVWC5IsCZnXEE5G8NUNX3aK+PXsGaiFHK6KN2ApGo7ER/CNXb+FdYE+QCFxdM1u/NGu4+hi4rhRvYsFdRF4otettFmHGb2O24VNKFX4VupCS+z3zYKVqv5T9qlaWBO6Ikn0rI3iknYDlxam7NaB6cUMqp5N+LB4DTuo9diDzaisSDjg2oHL9yeh6gQSXBhLtxds17HsKqfzi8WAZpEV3VyVW1yT/jNLM+jmnHiS6aCG6IAa/e7kS5E7K1lOX8mm0Cttnx8suEk3jR8tncF3bvwj2pspeJIEvjfzz5i4N4Wv7/h9+C0P5qUCBE8YK1NV4d1L5/ll0lV5ckOlBWSRlmInkaHpn9I68VNSBZ0p3XPN3rujuktaj8ebfG1TeO2WQaEbh3pH8RO8BX/Ig8SaEO4TefyqfwuOpEfQ0FV8rucz6O3qQXbmFjOjT7gYjw+Ey/uAgLRblz0pZ+oEQehr+wfh8XmXhbZw8xFfHybrM1jr70Fi6FnnPYK2YGgm3KQbGXERumlga2w9PihNothYdEUCEdry0ng/M/oJSlXT4UtEwYUEEIZFK2gSV5Ymcb46AVPSwNEcLLubkoBlAIqpQ1IlBFkvGJKGiiZcNG1xPGO5fCSyBd+DQIRjbJmtWZWaWJYaMFS9SftZeQPBIOVPQCeaTl80VgUjCQI6DOhCEKYJMBSN0XAbxvmLal6a0zwcB29AX92jVaVpG3kNDnpeRZbIOQuZqqnSDZdyd/keyoIEVVScS4CtwU07KttB03Bs7UglQ8ZkcRa+Jmr98U7J8pqO9GoBraognuQRoGMwvcYv4zR1UwVJGut9PRjqG4JSbABGyzFjFciECcJFwu/2YqJ+G/96/T/R2wiJo20ba2TIQqVhtIDSobRDBttTG/DBwVAu885Cdur7b7/2eBf6wNk6Dpbzsc9kEiQswkS90kTzbsMpGL5hglrUFqsRURc0t6PrHaDBvsGH6mx70BSNRCz+1xfGJ2LvX/2v30CSJzgvD8eaMEFSNFTFhDhZaLQXqHNfODQ2sC841F6LV8+QnAZRaoKg2BaQ8X+ieHDUpSqGt+8sjG4bfuHEC99+5M6b+a064YbLIkESOijaDVHTwbKhpU37Ov50eMemp/q6B3Zfunx5qlwtQdZcaGpWC6hSXvlEIMMwcO3aODw8Uw91CtMosVtN1gW4XKDss5/2AI06GIG0wlF/ZeH+wslisXTTMHTJ6xGg1x2F0AJiKesTgQiaQrVchCSSUjIe/pDjS8cU3eQ5tFJnQQdIE5RlyaQJ0ufzj0uKPKWqWtNFk7B1jD0doOhDrikf3ysSBsFdY/mMpIg6b4GB5VDbtKkJn99d9fj8os0okiCbNrsossVJy1hNnSiqnwpkqxiBY4senilWq2rErj2nM9hP07CVkUiRVqW4XEIkEoSmKijVCIgS4TjkAN3LL38qkD0YmiwH/N6buYK81iJYgNDsMgUoC7SLLViW2bg9k4Fq35NCXtSaFli2FVlL11Xz/w8YC7qLFX2cUuKQs6D5CcvkoGsL4CwRtJ5sgEwZiXjYuW7OLTDYO3QT6zqW0GgyLSDS7oyfPtyqIp2oLd/7vCHNErbIZgWfojdEl65LdDmvPKup/fOemPBXiqKolTqBoCuDNu91aLS7BVSr1z8VhiRJrlQq9d+ZmwPDuKZ37nj0X7q6Ot+empo6ND5x7UvTs3Op2PXrA5Zp8rIsqys1Abn+GvqjQLVh4L8BG+7xgK1+IYoAAAAASUVORK5CYII="},"157b":function(t,e,n){t.exports=n.p+"static/img/xljmtc.48874023.png"},1687:function(t,e,n){"use strict";function i(){return[1,0,0,1,0,0]}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function o(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],a=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function l(t,e,n){var i=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+o*u,t[1]=-i*u+o*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*a+u*l,t[5]=c*l-u*a,t}function u(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function c(t,e){var n=e[0],i=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=n*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-o*r)*l,t[5]=(a*r-n*s)*l,t):null}function h(t){var e=i();return a(e,t),e}n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"f",(function(){return o})),n.d(e,"i",(function(){return s})),n.d(e,"g",(function(){return l})),n.d(e,"h",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"a",(function(){return h}))},1792:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function r(t,e){if("china"===t){var n=i[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}}},1830:function(t,e,n){"use strict";var i=n("6d8b"),r=n("b682"),a=n("b1d4"),o=n("2f45"),s=n("e0d3"),l=n("1f39"),u=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(i["f"])(),this.categoryAxisMap=Object(i["f"])(),this.coordSysName=t}return t}();function c(t){var e=t.get("coordinateSystem"),n=new u(e),i=h[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var h={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",s["b"]).models[0],a=t.getReferringComponents("yAxis",s["b"]).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",a),d(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),d(a)&&(i.set("y",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",s["b"]).models[0];e.coordSysDims=["single"],n.set("single",r),d(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",s["b"]).models[0],a=r.findAxisModel("radiusAxis"),o=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),d(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),d(o)&&(i.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var a=t.ecModel,o=a.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=o.dimensions.slice();Object(i["k"])(o.parallelAxisIndex,(function(t,i){var o=a.getComponent("parallelAxis",t),l=s[i];n.set(l,o),d(o)&&(r.set(l,o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=i))}))}};function d(t){return"category"===t.get("type")}var f=n("ec6f"),p=n("ee1a"),g=n("0f99"),m=n("07fd");function v(t,e){var n,r=t.get("coordinateSystem"),a=l["a"].get(r);return e&&e.coordSysDims&&(n=i["H"](e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=Object(o["a"])(r)}return n}))),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function y(t,e,n){var r,a;return n&&i["k"](t,(function(t,i){var o=t.coordDim,s=n.categoryAxisMap.get(o);s&&(null==r&&(r=i),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(a=!0)})),a||null==r||(t[r].otherDims.itemName=0),r}function _(t,e,n){n=n||{};var o,s=e.getSourceManager(),l=!1;t?(l=!0,o=Object(f["c"])(t)):(o=s.getSource(),l=o.sourceFormat===m["f"]);var u=c(e),h=v(e,u),d=n.useEncodeDefaulter,_=i["w"](d)?d:d?i["h"](g["c"],h,e):null,x={coordDimensions:h,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:_,canOmitUnusedDimensions:!l},w=Object(a["b"])(o,x),O=y(w.dimensions,n.createInvertedIndices,u),S=l?null:s.getSharedDataStore(w),T=Object(p["a"])(e,{schema:w,store:S}),M=new r["a"](w,e);M.setCalculationInfo(T);var A=null!=O&&b(o)?function(t,e,n,i){return i===O?n:this.defaultDimValueGetter(t,e,n,i)}:null;return M.hasItemOption=!1,M.initData(l?o:S,null,A),M}function b(t){if(t.sourceFormat===m["f"]){var e=x(t.data||[]);return!i["t"](Object(s["h"])(e))}}function x(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}e["a"]=_},"18c0":function(t,e,n){"use strict";var i=n("7fae"),r=n("e0d8"),a=n("8e43"),o=n("944e"),s=n("6d8b"),l=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new a["a"]({})),Object(s["t"])(i)&&(i=new a["a"]({categories:Object(s["H"])(i,(function(t){return Object(s["A"])(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return Object(i["a"])(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(s["C"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),o["a"](t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),o["f"](t,this._extent)},e.prototype.scale=function(t){return t=Math.round(o["g"](t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,a=this._ordinalMeta.categories.length,o=Math.min(a,e.length);r<o;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<a;++r){while(null!=i[l])l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(r["a"]);r["a"].registerClass(l),e["a"]=l},"19eb":function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return c}));var i=n("21a10"),r=n("d5b7"),a=n("9850"),o=n("6d8b"),s=n("4bc4"),l="__zr_style_"+Math.round(10*Math.random()),u={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},c={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};u[l]=!0;var h=["z","z2","invisible"],d=["invisible"],f=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype._init=function(e){for(var n=Object(o["F"])(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&m(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1;if(i&&this.parent){var o=this.parent;while(o){if(o.ignore)return!1;o=o.parent}}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,s=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new a["a"](0,0,0,0)),e?a["a"].applyTransform(t,n,e):t.copy(n),(r||o||s)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(s),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+s-r));var l=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-l),t.y=Math.floor(t.y-l),t.width=Math.ceil(t.width+1+2*l),t.height=Math.ceil(t.height+1+2*l))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new a["a"](0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"===typeof t?this.style[t]=e:Object(o["m"])(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=s["c"],this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&s["c"])},e.prototype.styleUpdated=function(){this.__dirty&=~s["c"]},e.prototype.createStyle=function(t){return Object(o["g"])(u,t)},e.prototype.useStyle=function(t){t[l]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[l]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,h)},e.prototype._applyStateObj=function(e,n,i,r,a,s){t.prototype._applyStateObj.call(this,e,n,i,r,a,s);var l,u=!(n&&r);if(n&&n.style?a?r?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(l,n.style)):u&&(l=i.style),l)if(a){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var f=Object(o["F"])(c),p=0;p<f.length;p++){var g=f[p];g in l&&(l[g]=l[g],this.style[g]=c[g])}var m=Object(o["F"])(l);for(p=0;p<m.length;p++){g=m[p];this.style[g]=this.style[g]}this._transitionState(e,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);var v=this.__inHover?d:h;for(p=0;p<v.length;p++){g=v[p];n&&null!=n[g]?this[g]=n[g]:u&&null!=i[g]&&(this[g]=i[g])}},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var a=e[r];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return Object(o["m"])(t,e),t},e.prototype.getAnimationStyleProps=function(){return c},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=s["a"]|s["c"]}(),e}(r["a"]),p=new a["a"](0,0,0,0),g=new a["a"](0,0,0,0);function m(t,e,n){return p.copy(t.getBoundingRect()),t.transform&&p.applyTransform(t.transform),g.width=e,g.height=n,!p.intersect(g)}e["c"]=f},"1be7":function(t,e,n){"use strict";n.d(e,"a",(function(){return qe})),n.d(e,"d",(function(){return Gn})),n.d(e,"l",(function(){return Wn})),n.d(e,"m",(function(){return Xn})),n.d(e,"j",(function(){return Zn})),n.d(e,"k",(function(){return qn})),n.d(e,"o",(function(){return Yn})),n.d(e,"e",(function(){return Kn})),n.d(e,"f",(function(){return Qn})),n.d(e,"b",(function(){return Jn})),n.d(e,"g",(function(){return $n})),n.d(e,"p",(function(){return ti})),n.d(e,"h",(function(){return ii})),n.d(e,"i",(function(){return ri})),n.d(e,"c",(function(){return ai})),n.d(e,"n",(function(){return oi}));var i=n("7fae"),r=n("697e7"),a=n("6d8b"),o=n("22d1"),s=n("04f6"),l=n("6fd3"),u=n("e0d3"),c=n("4319"),h=n("6cb7"),d="";"undefined"!==typeof navigator&&(d=navigator.platform||"");var f,p,g,m="rgba(0, 0, 0, 0.2)",v={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:m,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:m,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:m,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:m,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:m,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:m,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:d.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},y=n("0f99"),_=n("2f1f"),b=n("4041"),x=n("edae"),w="\0_ec_inner",O=1;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.init=function(t,e,n,i,r,a){i=i||{},this.option=null,this._theme=new c["a"](i),this._locale=new c["a"](r),this._optionManager=a},e.prototype.setOption=function(t,e,n){var i=I(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,I(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):g(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var s=i.getMediaOption(this);s.length&&Object(a["k"])(s,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],s=Object(a["f"])(),l=e&&e.replaceMergeMainTypeMap;function c(e){var o=Object(_["a"])(this,e,u["r"](t[e])),s=i.get(e),c=s?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",d=u["q"](s,o,c);u["x"](d,e,h["a"]),n[e]=null,i.set(e,null),r.set(e,0);var p,g=[],m=[],v=0;Object(a["k"])(d,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,s=h["a"].getClass(e,t.keyInfo.subType,!o);if(!s)return;if("tooltip"===e){if(p)return void 0;p=!0}if(i&&i.constructor===s)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=Object(a["m"])({componentIndex:n},t.keyInfo);i=new s(r,this,this,l),Object(a["m"])(i,l),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(g.push(i.option),m.push(i),v++):(g.push(void 0),m.push(void 0))}),this),n[e]=g,i.set(e,m),r.set(e,v),"series"===e&&f(this)}Object(y["g"])(this),Object(a["k"])(t,(function(t,e){null!=t&&(h["a"].hasClass(e)?e&&(o.push(e),s.set(e,!0)):n[e]=null==n[e]?Object(a["d"])(t):Object(a["I"])(n[e],t,!0))})),l&&l.each((function(t,e){h["a"].hasClass(e)&&!s.get(e)&&(o.push(e),s.set(e,!0))})),h["a"].topologicalTravel(o,h["a"].getAllClassMainTypes(),c,this),this._seriesIndices||f(this)},e.prototype.getOption=function(){var t=Object(a["d"])(this.option);return Object(a["k"])(t,(function(e,n){if(h["a"].hasClass(n)){for(var i=u["r"](e),r=i.length,a=!1,o=r-1;o>=0;o--)i[o]&&!u["l"](i[o])?a=!0:(i[o]=null,!a&&r--);i.length=r,t[n]=i}})),delete t[w],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,s=this._componentsMap.get(e);return s&&s.length?(null!=i?(n=[],Object(a["k"])(u["r"](i),(function(t){s[t]&&n.push(s[t])}))):n=null!=r?A("id",r,s):null!=o?A("name",o,s):Object(a["n"])(s,(function(t){return!!t})),C(n,t)):[]},e.prototype.findComponents=function(t){var e=t.query,n=t.mainType,i=o(e),r=i?this.queryComponents(i):Object(a["n"])(this._componentsMap.get(n),(function(t){return!!t}));return s(C(r,t));function o(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}function s(e){return t.filter?Object(a["n"])(e,t.filter):e}},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(Object(a["w"])(t)){var r=e,o=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}}))}else for(var s=Object(a["C"])(t)?i.get(t):Object(a["A"])(t)?this.findComponents(t):null,l=0;s&&l<s.length;l++){var u=s[l];u&&e.call(n,u,u.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=u["e"](t,null);return Object(a["n"])(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Object(a["n"])(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Object(a["n"])(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){p(this),Object(a["k"])(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){Object(a["k"])(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){p(this),Object(a["k"])(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Object(a["k"])(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return p(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){p(this);var n=[];Object(a["k"])(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(a["f"])(n)},e.prototype.restoreData=function(t){f(this);var e=this._componentsMap,n=[];e.each((function(t,e){h["a"].hasClass(e)&&n.push(e)})),h["a"].topologicalTravel(n,h["a"].getAllClassMainTypes(),(function(n){Object(a["k"])(e.get(n),(function(e){!e||"series"===n&&T(e,t)||e.restoreData()}))}))},e.internalField=function(){f=function(t){var e=t._seriesIndices=[];Object(a["k"])(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Object(a["f"])(e)},p=function(t){0},g=function(t,e){t.option={},t.option[w]=O,t._componentsMap=Object(a["f"])({series:[]}),t._componentsCount=Object(a["f"])();var n=e.aria;Object(a["A"])(n)&&null==n.enabled&&(n.enabled=!0),M(e,t._theme.option),Object(a["I"])(e,v,!1),t._mergeOption(e,null)}}(),e}(c["a"]);function T(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function M(t,e){var n=t.color&&!t.colorLayer;Object(a["k"])(e,(function(e,i){"colorLayer"===i&&n||h["a"].hasClass(i)||("object"===typeof e?t[i]=t[i]?Object(a["I"])(t[i],e,!1):Object(a["d"])(e):null==t[i]&&(t[i]=e))}))}function A(t,e,n){if(Object(a["t"])(e)){var i=Object(a["f"])();return Object(a["k"])(e,(function(t){if(null!=t){var e=u["e"](t,null);null!=e&&i.set(t,!0)}})),Object(a["n"])(n,(function(e){return e&&i.get(e[t])}))}var r=u["e"](e,null);return Object(a["n"])(n,(function(e){return e&&null!=r&&e[t]===r}))}function C(t,e){return e.hasOwnProperty("subType")?Object(a["n"])(t,(function(t){return t&&t.subType===e.subType})):t}function I(t){var e=Object(a["f"])();return t&&Object(a["k"])(u["r"](t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Object(a["K"])(S,b["a"]);var D=S,L=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],E=function(){function t(t){a["k"](L,(function(e){this[e]=a["c"](t[e],t)}),this)}return t}(),j=E,P=n("1f39"),N=/^(min|max)?(.+)$/,R=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Object(a["k"])(Object(u["r"])(t.series),(function(t){t&&t.data&&Object(a["E"])(t.data)&&Object(a["R"])(t.data)})),Object(a["k"])(Object(u["r"])(t.dataset),(function(t){t&&t.source&&Object(a["E"])(t.source)&&Object(a["R"])(t.source)}))),t=Object(a["d"])(t);var i=this._optionBackup,r=k(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(a["d"])(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=Object(a["d"])(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i.length&&!r)return s;for(var l=0,u=i.length;l<u;l++)B(i[l].query,e,n)&&o.push(l);return!o.length&&r&&(o=[-1]),o.length&&!V(o,this._currentMediaIndices)&&(s=Object(a["H"])(o,(function(t){return Object(a["d"])(-1===t?r.option:i[t].option)}))),this._currentMediaIndices=o,s},t}();function k(t,e,n){var i,r,o=[],s=t.baseOption,l=t.timeline,u=t.options,c=t.media,h=!!t.media,d=!!(u||l||s&&s.timeline);function f(t){Object(a["k"])(e,(function(e){e(t,n)}))}return s?(r=s,r.timeline||(r.timeline=l)):((d||h)&&(t.options=t.media=null),r=t),h&&Object(a["t"])(c)&&Object(a["k"])(c,(function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))})),f(r),Object(a["k"])(u,(function(t){return f(t)})),Object(a["k"])(o,(function(t){return f(t.option)})),{baseOption:r,timelineOptions:u||[],mediaDefault:i,mediaList:o}}function B(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return Object(a["k"])(t,(function(t,e){var n=e.match(N);if(n&&n[1]&&n[2]){var a=n[1],o=n[2].toLowerCase();z(i[o],t,a)||(r=!1)}})),r}function z(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function V(t,e){return t.join(",")===e.join(",")}var F=R,G=a["k"],H=a["A"],U=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function W(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=U.length;n<i;n++){var r=U[n],o=e.normal,s=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?a["I"](t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),s&&s[r]&&(t[r]=t[r]||{},t[r].emphasis?a["I"](t[r].emphasis,s[r]):t[r].emphasis=s[r],s[r]=null)}}function X(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,a["i"](t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function Z(t){X(t,"itemStyle"),X(t,"lineStyle"),X(t,"areaStyle"),X(t,"label"),X(t,"labelLine"),X(t,"upperLabel"),X(t,"edgeLabel")}function q(t,e){var n=H(t)&&t[e],i=H(n)&&n.textStyle;if(i){0;for(var r=0,a=u["c"].length;r<a;r++){var o=u["c"][r];i.hasOwnProperty(o)&&(n[o]=i[o])}}}function Y(t){t&&(Z(t),q(t,"label"),t.emphasis&&q(t.emphasis,"label"))}function K(t){if(H(t)){W(t),Z(t),q(t,"label"),q(t,"upperLabel"),q(t,"edgeLabel"),t.emphasis&&(q(t.emphasis,"label"),q(t.emphasis,"upperLabel"),q(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(W(e),Y(e));var n=t.markLine;n&&(W(n),Y(n));var i=t.markArea;i&&Y(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!a["E"](o))for(var s=0;s<o.length;s++)Y(o[s]);a["k"](t.categories,(function(t){Z(t)}))}if(r&&!a["E"](r))for(s=0;s<r.length;s++)Y(r[s]);if(e=t.markPoint,e&&e.data){var l=e.data;for(s=0;s<l.length;s++)Y(l[s])}if(n=t.markLine,n&&n.data){var u=n.data;for(s=0;s<u.length;s++)a["t"](u[s])?(Y(u[s][0]),Y(u[s][1])):Y(u[s])}"gauge"===t.type?(q(t,"axisLabel"),q(t,"title"),q(t,"detail")):"treemap"===t.type?(X(t.breadcrumb,"itemStyle"),a["k"](t.levels,(function(t){Z(t)}))):"tree"===t.type&&Z(t.leaves)}}function Q(t){return a["t"](t)?t:t?[t]:[]}function J(t){return(a["t"](t)?t[0]:t)||{}}function $(t,e){G(Q(t.series),(function(t){H(t)&&K(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),G(n,(function(e){G(Q(t[e]),(function(t){t&&(q(t,"axisLabel"),q(t.axisPointer,"label"))}))})),G(Q(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;q(e,"axisLabel"),q(e&&e.axisPointer,"label")})),G(Q(t.calendar),(function(t){X(t,"itemStyle"),q(t,"dayLabel"),q(t,"monthLabel"),q(t,"yearLabel")})),G(Q(t.radar),(function(t){q(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),G(Q(t.geo),(function(t){H(t)&&(Y(t),G(Q(t.regions),(function(t){Y(t)})))})),G(Q(t.timeline),(function(t){Y(t),X(t,"label"),X(t,"itemStyle"),X(t,"controlStyle",!0);var e=t.data;a["t"](e)&&a["k"](e,(function(t){a["A"](t)&&(X(t,"label"),X(t,"itemStyle"))}))})),G(Q(t.toolbox),(function(t){X(t,"iconStyle"),G(t.feature,(function(t){X(t,"iconStyle")}))})),q(J(t.axisPointer),"label"),q(J(t.tooltip).axisPointer,"label")}function tt(t,e){for(var n=e.split(","),i=t,r=0;r<n.length;r++)if(i=i&&i[n[r]],null==i)break;return i}function et(t,e,n,i){for(var r,a=e.split(","),o=t,s=0;s<a.length-1;s++)r=a[s],null==o[r]&&(o[r]={}),o=o[r];(i||null==o[a[s]])&&(o[a[s]]=n)}function nt(t){t&&Object(a["k"])(it,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var it=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],rt=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],at=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ot(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<at.length;n++){var i=at[n][1],r=at[n][0];null!=e[i]&&(e[r]=e[i])}}function st(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function lt(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function ut(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function ct(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&ct(t[n].children,e)}function ht(t,e){$(t,e),t.series=Object(u["r"])(t.series),Object(a["k"])(t.series,(function(t){if(Object(a["A"])(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),st(t.label);var n=t.data;if(n&&!Object(a["E"])(n))for(var i=0;i<n.length;i++)st(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=tt(t,"pointer.color");null!=r&&et(t,"itemStyle.color",r)}else if("bar"===e){ot(t),ot(t.backgroundStyle),ot(t.emphasis);n=t.data;if(n&&!Object(a["E"])(n))for(i=0;i<n.length;i++)"object"===typeof n[i]&&(ot(n[i]),ot(n[i]&&n[i].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),lt(t),ct(t.data,lt)}else"graph"===e||"sankey"===e?ut(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(a["i"])(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),nt(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Object(a["k"])(rt,(function(e){var n=t[e];n&&(Object(a["t"])(n)||(n=[n]),Object(a["k"])(n,(function(t){nt(t)})))}))}var dt=n("3842");function ft(t){var e=Object(a["f"])();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}})),e.each(pt)}function pt(t){Object(a["k"])(t,(function(e,n){var i=[],r=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,(function(a,u,c){var h,d,f=o.get(e.stackedDimension,c);if(isNaN(f))return r;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var p=NaN,g=n-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&f>=0&&v>0||"samesign"===l&&f<=0&&v<0){f=Object(dt["b"])(f,v),p=v;break}}}return i[0]=f,i[1]=p,i}))}))}var gt=n("4f85"),mt=n("b12f"),vt=n("e887"),yt=n("c7a2"),_t=n("0da8"),bt=n("deab"),xt=n("cbe5"),wt=n("861c"),Ot=n("7d6c"),St=n("88b3"),Tt=n("282b"),Mt=n("551f"),At=n("3901"),Ct=Object(u["o"])(),It={itemStyle:Object(Tt["a"])(Mt["a"],!0),lineStyle:Object(Tt["a"])(At["a"],!0)},Dt={lineStyle:"stroke",itemStyle:"fill"};function Lt(t,e){var n=t.visualStyleMapper||It[e];return n||(console.warn("Unkown style type '"+e+"'."),It.itemStyle)}function Et(t,e){var n=t.visualDrawType||Dt[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var jt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=Lt(t,i),s=o(r),l=r.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var u=Et(t,i),c=s[u],h=Object(a["w"])(c)?c:null,d="auto"===s.fill||"auto"===s.stroke;if(!s[u]||h||d){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());s[u]||(s[u]=f,n.setVisual("colorFromPalette",!0)),s.fill="auto"===s.fill||Object(a["w"])(s.fill)?f:s.fill,s.stroke="auto"===s.stroke||Object(a["w"])(s.stroke)?f:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",u),!e.isSeriesFiltered(t)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=Object(a["m"])({},s);r[u]=h(i),e.setItemVisual(n,"style",r)}}}},Pt=new c["a"],Nt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=Lt(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){Pt.option=n[i];var s=r(Pt),l=t.ensureUniqueItemVisual(e,"style");Object(a["m"])(l,s),Pt.option.decal&&(t.setItemVisual(e,"decal",Pt.option.decal),Pt.option.decal.dirty=!0),o in s&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Rt={performRawSeries:!0,overallReset:function(t){var e=Object(a["f"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),Ct(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),a=Ct(e).scope,o=e.visualStyleAccessPath||"itemStyle",s=Et(e,o);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var o=i[t],l=r.getItemVisual(o,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(o,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,a,h)}}))}}))}},kt=n("2dc5"),Bt=n("76a5"),zt=n("8d32"),Vt=Math.PI;function Ft(t,e){e=e||{},a["i"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new kt["a"],i=new yt["a"]({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new Bt["a"]({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),s=new yt["a"]({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(s),e.showSpinner&&(r=new zt["a"]({shape:{startAngle:-Vt/2,endAngle:-Vt/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*Vt/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Vt/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,a=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*a-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:a),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),s.setShape({x:l-a,y:u-a,width:2*a,height:2*a}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Gt=n("9fbc"),Ht=n("8918"),Ut=function(){function t(t,e,n,i){this._stageTaskMap=Object(a["f"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,a=r?n.step:null,o=i&&i.modDataCount,s=null!=o?Math.ceil(o/a):null;return{step:a,modBy:s,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),a=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:a,modDataCount:s,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(a["f"])();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(a["k"])(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o="";Object(a["b"])(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,a=r.context;a.model=e,a.ecModel=n,a.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(a["k"])(t,(function(t,a){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){s(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,i.block);d.each((function(t){t.perform(f)})),c.perform(f)&&(r=!0)}else u&&u.each((function(a,l){s(i,a)&&a.dirty();var u=o.getPerformArgs(a,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(a.context.model),o.updatePayload(a,n),a.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Object(a["f"])(),l=t.seriesType,u=t.getTargetSeries;function c(e){var a=e.uid,l=s.set(a,o&&o.get(a)||Object(Gt["a"])({plan:Yt,reset:Kt,count:$t}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||Object(Gt["a"])({reset:Wt});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var s=o.agentStubMap,l=o.agentStubMap=Object(a["f"])(),u=t.seriesType,c=t.getTargetSeries,h=!0,d=!1,f="";function p(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(d=!0,Object(Gt["a"])({reset:Xt,onDirty:qt})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}Object(a["b"])(!t.createOnAllSeries,f),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(h=!1,Object(a["k"])(n.getSeries(),p)),d&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return Object(a["w"])(t)&&(t={overallReset:t,seriesType:te(t)}),t.uid=Object(Ht["c"])("stageHandler"),e&&(t.visualType=e),t},t}();function Wt(t){t.overallReset(t.ecModel,t.api,t.payload)}function Xt(t){return t.overallProgress&&Zt}function Zt(){this.agent.dirty(),this.getDownstream().dirty()}function qt(){this.agent&&this.agent.dirty()}function Yt(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Kt(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Object(u["r"])(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(a["H"])(e,(function(t,e){return Jt(e)})):Qt}var Qt=Jt(0);function Jt(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var a=e.start;a<e.end;a++)r.dataEach(i,a);else r&&r.progress&&r.progress(e,i)}}function $t(t){return t.data.count()}function te(t){ee=null;try{t(ne,ie)}catch(e){}return ee}var ee,ne={},ie={};function re(t,e){for(var n in e.prototype)t[n]=a["L"]}re(ne,D),re(ie,j),ne.eachSeriesByType=ne.eachRawSeriesByType=function(t){ee=t},ne.eachComponent=function(t){"series"===t.mainType&&t.subType&&(ee=t.subType)};var ae=Ut,oe=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],se={color:oe,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],oe]},le="#B9B8CE",ue="#100C2A",ce=function(){return{axisLine:{lineStyle:{color:le}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},he=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],de={darkMode:!0,color:he,backgroundColor:ue,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:le}},textStyle:{color:le},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:le}},dataZoom:{borderColor:"#71708A",textStyle:{color:le},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:le}},timeline:{lineStyle:{color:le},label:{color:le},controlStyle:{color:le,borderColor:le}},calendar:{itemStyle:{color:ue},dayLabel:{color:le},monthLabel:{color:le},yearLabel:{color:le}},timeAxis:ce(),logAxis:ce(),valueAxis:ce(),categoryAxis:ce(),line:{symbol:"circle"},graph:{color:he},gauge:{title:{color:le},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:le},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};de.categoryAxis.splitLine.show=!1;var fe=de,pe=n("625e"),ge=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(a["C"](t)){var r=Object(pe["f"])(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};a["k"](t,(function(t,r){for(var a=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,a=!0)}}s.hasOwnProperty(r)&&(n[r]=t,a=!0),a||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,a,"mainType")&&u(s,a,"subType")&&u(s,a,"index","componentIndex")&&u(s,a,"name")&&u(s,a,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),me=["symbol","symbolSize","symbolRotate","symbolOffset"],ve=me.concat(["symbolKeepAspect"]),ye={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,s=0;s<me.length;s++){var l=me[s],u=t.get(l);Object(a["w"])(u)?(o=!0,r[l]=u):i[l]=u}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(Object(a["m"])({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var c=Object(a["F"])(r);return{dataEach:o?h:null}}}function h(e,n){for(var i=t.getRawValue(n),a=t.getDataParams(n),o=0;o<c.length;o++){var s=c[o];e.setItemVisual(n,s,r[s](i,a))}}}},_e={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?i:null}}function i(t,e){for(var n=t.getItemModel(e),i=0;i<ve.length;i++){var r=ve[i],a=n.getShallow(r,!0);null!=a&&t.setItemVisual(e,r,a)}}}},be=n("0924"),xe=n("f3bb"),we=n("04f7"),Oe=n("ef59"),Se=n("fadd"),Te=n("b3c1");function Me(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");if(n){var r=i.ensureUniqueItemVisual(t,"style");r.decal=Object(Te["a"])(n,e)}}));var r=i.getVisual("decal");if(r){var a=i.getVisual("style");a.decal=Object(Te["a"])(r,e)}}}))}var Ae=new l["a"],Ce=Ae,Ie=n("726e"),De=n("58c9"),Le="undefined"!==typeof window,Ee=1,je=800,Pe=900,Ne=1e3,Re=2e3,ke=5e3,Be=1e3,ze=1100,Ve=2e3,Fe=3e3,Ge=4e3,He=4500,Ue=4600,We=5e3,Xe=6e3,Ze=7e3,qe={PROCESSOR:{FILTER:Ne,SERIES_FILTER:je,STATISTIC:ke},VISUAL:{LAYOUT:Be,PROGRESSIVE_LAYOUT:ze,GLOBAL:Ve,CHART:Fe,POST_CHART_LAYOUT:Ue,COMPONENT:Ge,BRUSH:We,CHART_ITEM:He,ARIA:Xe,DECAL:Ze}},Ye="__flagInMainProcess",Ke="__pendingUpdate",Qe="__needsUpdateStatus",Je=/^[a-zA-Z0-9_]+$/,$e="__connectUpdateStatus",tn=0,en=1,nn=2;function rn(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return on(this,t,e);Dn(this.id)}}function an(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return on(this,t,e)}}function on(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),l["a"].prototype[e].apply(t,n)}var sn,ln,un,cn,hn,dn,fn,pn,gn,mn,vn,yn,_n,bn,xn,wn,On,Sn,Tn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e}(l["a"]),Mn=Tn.prototype;Mn.on=an("on"),Mn.off=an("off");var An=function(t){function e(e,n,i){var o=t.call(this,new ge)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},Object(a["C"])(n)&&(n=Rn[n]),o._dom=e;var l="canvas",u=!1,c=o._zr=r["init"](e,{renderer:i.renderer||l,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:null==i.useDirtyRect?u:i.useDirtyRect});o._ssr=i.ssr,o._throttledZrFlush=Object(St["c"])(Object(a["c"])(c.flush,c),17),n=Object(a["d"])(n),n&&ht(n,!0),o._theme=n,o._locale=Object(Oe["b"])(i.locale||Oe["a"]),o._coordSysMgr=new P["a"];var h=o._api=xn(o);function d(t,e){return t.__prio-e.__prio}return Object(s["a"])(Nn,d),Object(s["a"])(jn,d),o._scheduler=new ae(o,h,jn,Nn),o._messageCenter=new Tn,o._initEvents(),o.resize=Object(a["c"])(o.resize,o),c.animation.on("frame",o._onframe,o),mn(c,o),vn(c,o),Object(a["R"])(o),o}return Object(i["a"])(e,t),e.prototype._onframe=function(){if(!this._disposed){Sn(this);var t=this._scheduler;if(this[Ke]){var e=this[Ke].silent;this[Ye]=!0;try{sn(this),cn.update.call(this,null,this[Ke].updateParams)}catch(o){throw this[Ye]=!1,this[Ke]=null,o}this._zr.flush(),this[Ye]=!1,this[Ke]=null,pn.call(this,e),gn.call(this,e)}else if(t.unfinished){var n=Ee,i=this._model,r=this._api;t.unfinished=!1;do{var a=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),dn(this,i),t.performVisualTasks(i),bn(this,this._model,r,"remain",{}),n-=+new Date-a}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[Ye])if(this._disposed)Dn(this.id);else{var i,r,o;if(Object(a["A"])(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[Ye]=!0,!this._model||e){var s=new F(this._api),l=this._theme,u=this._model=new D;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(t,{replaceMerge:r},Pn);var c={seriesTransition:o,optionChanged:!0};if(n)this[Ke]={silent:i,updateParams:c},this[Ye]=!1,this.getZr().wakeUp();else{try{sn(this),cn.update.call(this,null,c)}catch(h){throw this[Ke]=null,this[Ye]=!1,h}this._ssr||this._zr.flush(),this[Ke]=null,this[Ye]=!1,pn.call(this,i),gn.call(this,i)}}},e.prototype.setTheme=function(){Object(x["a"])("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Le&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(o["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(a["k"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;Object(a["k"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(a["k"])(i,(function(t){t.group.ignore=!1})),o}Dn(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,o=Math.max,s=1/0;if(zn[n]){var l=s,u=s,c=-s,h=-s,d=[],f=t&&t.pixelRatio||this.getDevicePixelRatio();Object(a["k"])(Bn,(function(r,s){if(r.group===n){var f=e?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas(Object(a["d"])(t)),p=r.getDom().getBoundingClientRect();l=i(p.left,l),u=i(p.top,u),c=o(p.right,c),h=o(p.bottom,h),d.push({dom:f,left:p.left,top:p.top})}})),l*=f,u*=f,c*=f,h*=f;var p=c-l,g=h-u,m=Ie["d"].createCanvas(),v=r["init"](m,{renderer:e?"svg":"canvas"});if(v.resize({width:p,height:g}),e){var y="";return Object(a["k"])(d,(function(t){var e=t.left-l,n=t.top-u;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),v.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new yt["a"]({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),Object(a["k"])(d,(function(t){var e=new _t["a"]({style:{x:t.left*f-l,y:t.top*f-u,image:t.dom}});v.add(e)})),v.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Dn(this.id)},e.prototype.convertToPixel=function(t,e){return hn(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return hn(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=u["s"](i,t);return Object(a["k"])(r,(function(t,i){i.indexOf("Models")>=0&&Object(a["k"])(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(n=n||a.containPoint(e,t))}else 0}),this)}),this),!!n}Dn(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=u["s"](n,t,{defaultMainType:"series"}),r=i.seriesModel;var a=r.getData(),o=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?a.indexOfRawIndex(i.dataIndex):null;return null!=o?Object(be["a"])(a,o,e):Object(be["b"])(a,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(a["k"])(In,(function(e){var n=function(n){var i,r=t.getModel(),o=n.target,s="globalout"===e;if(s?i={}:o&&Object(Se["a"])(o,(function(t){var e=Object(wt["a"])(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return i=Object(a["m"])({},e.eventData),!0}),!0),i){var l=i.componentType,u=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",u=i.seriesIndex);var c=l&&null!=u&&r.getComponent(l,u),h=c&&t["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:c,view:h},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(a["k"])(En,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(a["k"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Object(xe["b"])(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Dn(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Dn(this.id);else{this._disposed=!0;var t=this.getDom();t&&u["w"](this.getDom(),Fn,"");var e=this,n=e._api,i=e._model;Object(a["k"])(e._componentsViews,(function(t){t.dispose(i,n)})),Object(a["k"])(e._chartsViews,(function(t){t.dispose(i,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Bn[e.id]}},e.prototype.resize=function(t){if(!this[Ye])if(this._disposed)Dn(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Ke]&&(null==i&&(i=this[Ke].silent),n=!0,this[Ke]=null),this[Ye]=!0;try{n&&sn(this),cn.update.call(this,{type:"resize",animation:Object(a["m"])({duration:0},t&&t.animation)})}catch(r){throw this[Ye]=!1,r}this[Ye]=!1,pn.call(this,i),gn.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Dn(this.id);else if(Object(a["A"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),kn[t]){var n=kn[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?Dn(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(a["m"])({},t);return e.type=En[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Dn(this.id);else if(Object(a["A"])(e)||(e={silent:!!e}),Ln[t.type]&&this._model)if(this[Ye])this._pendingActions.push(t);else{var n=e.silent;fn.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&o["a"].browser.weChat&&this._throttledZrFlush(),pn.call(this,n),gn.call(this,n)}},e.prototype.updateLabelLayout=function(){Ce.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Dn(this.id);else{var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);0,i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var a=r.get("zlevel")||0,o=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:a,z:o,idx:r.componentIndex,type:t,key:s})})),i){var r,o,l=e.concat(n);Object(s["a"])(l,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(a["k"])(l,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}function n(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Ot["e"]&&t.states.emphasis?e.push("emphasis"):t.hoverState===Ot["d"]&&t.states.blur&&e.push("blur"),t.useStates(e)}function r(t,e){var n=t._zr,i=n.storage,r=0;i.traverse((function(t){t.isGroup||r++})),r>e.get("hoverLayerThreshold")&&!o["a"].node&&!o["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function l(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function c(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return h(t,n,i,-1/0),!0}))}}function h(t,e,n,i){var r=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(h(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function d(t,e){e.eachRendered((function(t){if(!bt["d"](t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function f(t,e){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),a=i.get("duration"),o=a>0?{duration:a,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(bt["d"](t))return;if(t instanceof xt["b"]&&Object(Ot["E"])(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=o;var i=t.getTextContent(),a=t.getTextGuideLine();i&&(i.stateTransition=o),a&&(a.stateTransition=o)}t.__dirty&&n(t)}}))}sn=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),ln(t,!0),ln(t,!1),e.plan()},ln=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,o=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&a[u];if(!c){var h=Object(pe["f"])(t.type),d=e?mt["a"].getClass(h.main,h.sub):vt["a"].getClass(h.sub);0,c=new d,c.init(n,s),a[u]=c,r.push(c),o.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),o.remove(c.group),c.dispose(n,s),r.splice(l,1),a[c.__id]===c&&delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}},un=function(t,e,n,i,r){var o=t._model;if(o.setUpdatePayload(n),i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var c,h=n.excludeSeriesId;null!=h&&(c=Object(a["f"])(),Object(a["k"])(u["r"](h),(function(t){var e=u["e"](t,null);null!=e&&c.set(e,!0)}))),o&&o.eachComponent(l,(function(e){var i=c&&null!==c.get(e.id);if(!i)if(Object(Ot["z"])(n))if(e instanceof gt["b"])n.type!==Ot["c"]||n.notBlur||e.get(["emphasis","disabled"])||Object(Ot["m"])(e,n,t._api);else{var r=Object(Ot["t"])(e.mainType,e.componentIndex,n.name,t._api),o=r.focusSelf,s=r.dispatchers;n.type===Ot["c"]&&o&&!n.notBlur&&Object(Ot["l"])(e.mainType,e.componentIndex,t._api),s&&Object(a["k"])(s,(function(t){n.type===Ot["c"]?Object(Ot["r"])(t):Object(Ot["C"])(t)}))}else Object(Ot["A"])(n)&&e instanceof gt["b"]&&(Object(Ot["K"])(e,n,t._api),Object(Ot["L"])(e),On(t))}),t),o&&o.eachComponent(l,(function(e){var n=c&&null!==c.get(e.id);n||d(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Object(a["k"])([].concat(t._componentsViews).concat(t._chartsViews),d);function d(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}},cn={prepareAndUpdate:function(t){sn(this),cn.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),o.create(i,r),s.performDataProcessorTasks(i,e),dn(this,i),o.update(i,r),t(i),s.performVisualTasks(i,e),yn(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");a.setBackgroundColor(l),null!=u&&"auto"!==u&&a.setDarkMode(u),Ce.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}}));var s=Object(a["f"])();i.eachSeries((function(t){var a=n._chartsMap[t.__viewId];if(a.updateTransform){var o=a.updateTransform(t,i,r,e);o&&o.update&&s.set(t.uid,1)}else s.set(t.uid,1)})),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:s}),bn(this,i,r,e,{},s),Ce.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),vt["a"].markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),yn(this,n,this._api,e,{}),Ce.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries((function(t){t.getData().clearAllVisual()})),vt["a"].markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent((function(t,r){if("series"!==t){var a=n.getViewOfComponentModel(r);a&&a.__alive&&a.updateVisual(r,i,n._api,e)}})),i.eachSeries((function(t){var r=n._chartsMap[t.__viewId];r.updateVisual(t,i,n._api,e)})),Ce.trigger("afterupdate",i,this._api))},updateLayout:function(t){cn.update.call(this,t)}},hn=function(t,e,n,i){if(t._disposed)Dn(t.id);else{for(var r,a=t._model,o=t._coordSysMgr.getCoordinateSystems(),s=u["s"](a,n),l=0;l<o.length;l++){var c=o[l];if(c[e]&&null!=(r=c[e](a,s,i)))return r}0}},dn=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},fn=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,s=Ln[r],l=s.actionInfo,c=(l.update||"update").split(":"),h=c.pop(),d=null!=c[0]&&Object(pe["f"])(c[0]);this[Ye]=!0;var f=[t],p=!1;t.batch&&(p=!0,f=Object(a["H"])(t.batch,(function(e){return e=Object(a["i"])(Object(a["m"])({},e),t),e.batch=null,e})));var g,m=[],v=Object(Ot["A"])(t),y=Object(Ot["z"])(t);if(y&&Object(Ot["k"])(this._api),Object(a["k"])(f,(function(e){if(g=s.action(e,n._model,n._api),g=g||Object(a["m"])({},e),g.type=l.event||g.type,m.push(g),y){var i=u["t"](t),r=i.queryOptionMap,o=i.mainTypeSpecified,c=o?r.keys()[0]:"series";un(n,h,e,c),On(n)}else v?(un(n,h,e,"series"),On(n)):d&&un(n,h,e,d.main,d.sub)})),"none"!==h&&!y&&!v&&!d)try{this[Ke]?(sn(this),cn.update.call(this,t),this[Ke]=null):cn[h].call(this,t)}catch(x){throw this[Ye]=!1,x}if(g=p?{type:l.event||r,escapeConnect:o,batch:m}:m[0],this[Ye]=!1,!e){var _=this._messageCenter;if(_.trigger(g.type,g),v){var b={type:"selectchanged",escapeConnect:o,selected:Object(Ot["u"])(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};_.trigger(b.type,b)}}},pn=function(t){var e=this._pendingActions;while(e.length){var n=e.shift();fn.call(this,n,t)}},gn=function(t){!t&&this.trigger("updated")},mn=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Ke]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},vn=function(t,e){t.on("mouseover",(function(t){var n=t.target,i=Object(Se["a"])(n,Ot["y"]);i&&(Object(Ot["x"])(i,t,e._api),On(e))})).on("mouseout",(function(t){var n=t.target,i=Object(Se["a"])(n,Ot["y"]);i&&(Object(Ot["w"])(i,t,e._api),On(e))})).on("click",(function(t){var n=t.target,i=Object(Se["a"])(n,(function(t){return null!=Object(wt["a"])(t).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",a=Object(wt["a"])(i);e._api.dispatchAction({type:r,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}}))},yn=function(t,n,i,r,o){e(n),_n(t,n,i,r,o),Object(a["k"])(t._chartsViews,(function(t){t.__alive=!1})),bn(t,n,i,r,o),Object(a["k"])(t._chartsViews,(function(t){t.__alive||t.remove(n,i)}))},_n=function(t,e,n,i,r,o){Object(a["k"])(o||t._componentsViews,(function(t){var r=t.__model;d(r,t),t.render(r,e,n,i),c(r,t),f(r,t)}))},bn=function(t,e,n,i,o,s){var u=t._scheduler;o=Object(a["m"])(o||{},{updatedSeries:e.getSeries()}),Ce.trigger("series:beforeupdate",e,n,o);var h=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,i),d(e,n),s&&s.get(e.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(h=!0),n.group.silent=!!e.get("silent"),l(e,n),Object(Ot["L"])(e)})),u.unfinished=h||u.unfinished,Ce.trigger("series:layoutlabels",e,n,o),Ce.trigger("series:transition",e,n,o),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];c(e,n),f(e,n)})),r(t,e),Ce.trigger("series:afterupdate",e,n,o)},On=function(t){t[Qe]=!0,t.getZr().wakeUp()},Sn=function(t){t[Qe]&&(t.getZr().storage.traverse((function(t){bt["d"](t)||n(t)})),t[Qe]=!1)},xn=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Object(i["a"])(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Object(Ot["r"])(e,n),On(t)},n.prototype.leaveEmphasis=function(e,n){Object(Ot["C"])(e,n),On(t)},n.prototype.enterBlur=function(e){Object(Ot["q"])(e),On(t)},n.prototype.leaveBlur=function(e){Object(Ot["B"])(e),On(t)},n.prototype.enterSelect=function(e){Object(Ot["s"])(e),On(t)},n.prototype.leaveSelect=function(e){Object(Ot["D"])(e),On(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(j))(t)},wn=function(t){function e(t,e){for(var n=0;n<t.length;n++){var i=t[n];i[$e]=e}}Object(a["k"])(En,(function(n,i){t._messageCenter.on(i,(function(n){if(zn[t.group]&&t[$e]!==tn){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];Object(a["k"])(Bn,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,tn),Object(a["k"])(r,(function(t){t[$e]!==en&&t.dispatchAction(i)})),e(r,nn)}}))}))}}(),e}(l["a"]),Cn=An.prototype;Cn.on=rn("on"),Cn.off=rn("off"),Cn.one=function(t,e,n){var i=this;function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];e&&e.apply&&e.apply(this,n),i.off(t,r)}Object(x["a"])("ECharts#one is deprecated."),this.on.call(this,t,r,n)};var In=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Dn(t){0}var Ln={},En={},jn=[],Pn=[],Nn=[],Rn={},kn={},Bn={},zn={},Vn=+new Date-0,Fn=(new Date,"_echarts_instance_");function Gn(t,e,n){var i=!(n&&n.ssr);if(i){0;var r=Hn(t);if(r)return r;0}var a=new An(t,e,n);return a.id="ec_"+Vn++,Bn[a.id]=a,i&&u["w"](t,Fn,a.id),wn(a),Ce.trigger("afterinit",a),a}function Hn(t){return Bn[u["g"](t,Fn)]}function Un(t,e){Rn[t]=e}function Wn(t){Object(a["r"])(Pn,t)<0&&Pn.push(t)}function Xn(t,e){ni(jn,t,e,Re)}function Zn(t){Yn("afterinit",t)}function qn(t){Yn("afterupdate",t)}function Yn(t,e){Ce.on(t,e)}function Kn(t,e,n){Object(a["w"])(e)&&(n=e,e="");var i=Object(a["A"])(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,En[e]||(Object(a["b"])(Je.test(i)&&Je.test(e)),Ln[i]||(Ln[i]={action:n,actionInfo:t}),En[e]=i)}function Qn(t,e){P["a"].register(t,e)}function Jn(t){var e=P["a"].get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function $n(t,e){ni(Nn,t,e,Be,"layout")}function ti(t,e){ni(Nn,t,e,Fe,"visual")}var ei=[];function ni(t,e,n,i,r){if((Object(a["w"])(e)||Object(a["A"])(e))&&(n=e,e=i),!(Object(a["r"])(ei,n)>=0)){ei.push(n);var o=ae.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function ii(t,e){kn[t]=e}function ri(t,e,n){var i=Object(De["a"])("registerMap");i&&i(t,e,n)}function ai(t){var e=Object(De["a"])("getMap");return e&&e(t)}var oi=we["b"];ti(Ve,jt),ti(He,Nt),ti(He,Rt),ti(Ve,ye),ti(He,_e),ti(Ze,Me),Wn(ht),Xn(Pe,ft),ii("default",Ft),Kn({type:Ot["c"],event:Ot["c"],update:Ot["c"]},a["L"]),Kn({type:Ot["b"],event:Ot["b"],update:Ot["b"]},a["L"]),Kn({type:Ot["f"],event:Ot["f"],update:Ot["f"]},a["L"]),Kn({type:Ot["i"],event:Ot["i"],update:Ot["i"]},a["L"]),Kn({type:Ot["h"],event:Ot["h"],update:Ot["h"]},a["L"]),Un("light",se),Un("dark",fe)},"1f39":function(t,e,n){"use strict";var i=n("6d8b"),r={},a=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];i["k"](r,(function(i,r){var a=i.create(t,e);n=n.concat(a||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){i["k"](this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){r[t]=e},t.get=function(t){return r[t]},t}();e["a"]=a},2023:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}()},"20c8":function(t,e,n){"use strict";n.d(e,"b",(function(){return T}));var i=n("401b"),r=n("9850"),a=n("2cf4"),o=n("e263"),s=n("4a3f"),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],h=[],d=[],f=[],p=[],g=Math.min,m=Math.max,v=Math.cos,y=Math.sin,_=Math.abs,b=Math.PI,x=2*b,w="undefined"!==typeof Float32Array,O=[];function S(t){var e=Math.round(t/b*1e8)/1e8;return e%2*b}function T(t,e){var n=S(t[0]);n<0&&(n+=x);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=x?r=n+x:e&&n-r>=x?r=n-x:!e&&n>r?r=n+(x-S(n-r)):e&&n<r&&(r=n-(x-S(r-n))),t[0]=n,t[1]=r}var M=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=_(n/a["e"]/t)||0,this._uy=_(n/a["e"]/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=_(t-this._xi),i=_(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(l.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=n*n+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,a){return this._drawPendingPt(),this.addData(l.C,t,e,n,i,r,a),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,a),this._xi=r,this._yi=a,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(l.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,a){this._drawPendingPt(),O[0]=i,O[1]=r,T(O,a),i=O[0],r=O[1];var o=r-i;return this.addData(l.A,t,e,n,n,i,o,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,a),this._xi=v(r)*n+t,this._yi=y(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!w||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();w&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var a=t[r].data,o=0;o<a.length;o++)this.data[i++]=a[o];this._len=i},t.prototype.addData=function(t,e,n,i,r,a,o,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,w&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){h[0]=h[1]=f[0]=f[1]=Number.MAX_VALUE,d[0]=d[1]=p[0]=p[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,a=0,s=0,u=0;for(t=0;t<this._len;){var c=e[t++],g=1===t;switch(g&&(n=e[t],a=e[t+1],s=n,u=a),c){case l.M:n=s=e[t++],a=u=e[t++],f[0]=s,f[1]=u,p[0]=s,p[1]=u;break;case l.L:Object(o["c"])(n,a,e[t],e[t+1],f,p),n=e[t++],a=e[t++];break;case l.C:Object(o["b"])(n,a,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],f,p),n=e[t++],a=e[t++];break;case l.Q:Object(o["e"])(n,a,e[t++],e[t++],e[t],e[t+1],f,p),n=e[t++],a=e[t++];break;case l.A:var m=e[t++],_=e[t++],b=e[t++],x=e[t++],w=e[t++],O=e[t++]+w;t+=1;var S=!e[t++];g&&(s=v(w)*b+m,u=y(w)*x+_),Object(o["a"])(m,_,b,x,w,O,S,f,p),n=v(O)*b+m,a=y(O)*x+_;break;case l.R:s=n=e[t++],u=a=e[t++];var T=e[t++],M=e[t++];Object(o["c"])(s,u,s+T,u+M,f,p);break;case l.Z:n=s,a=u;break}i["l"](h,h,f),i["k"](d,d,p)}return 0===t&&(h[0]=h[1]=d[0]=d[1]=0),new r["a"](h[0],h[1],d[0]-h[0],d[1]-h[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,a=0,o=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,h=0,d=0,f=0;f<e;){var p=t[f++],b=1===f;b&&(r=t[f],a=t[f+1],o=r,u=a);var w=-1;switch(p){case l.M:r=o=t[f++],a=u=t[f++];break;case l.L:var O=t[f++],S=t[f++],T=O-r,M=S-a;(_(T)>n||_(M)>i||f===e-1)&&(w=Math.sqrt(T*T+M*M),r=O,a=S);break;case l.C:var A=t[f++],C=t[f++],I=(O=t[f++],S=t[f++],t[f++]),D=t[f++];w=Object(s["d"])(r,a,A,C,O,S,I,D,10),r=I,a=D;break;case l.Q:A=t[f++],C=t[f++],O=t[f++],S=t[f++];w=Object(s["k"])(r,a,A,C,O,S,10),r=O,a=S;break;case l.A:var L=t[f++],E=t[f++],j=t[f++],P=t[f++],N=t[f++],R=t[f++],k=R+N;f+=1;t[f++];b&&(o=v(N)*j+L,u=y(N)*P+E),w=m(j,P)*g(x,Math.abs(R)),r=v(k)*j+L,a=y(k)*P+E;break;case l.R:o=r=t[f++],u=a=t[f++];var B=t[f++],z=t[f++];w=2*B+2*z;break;case l.Z:T=o-r,M=u-a;w=Math.sqrt(T*T+M*M),r=o,a=u;break}w>=0&&(c[d++]=w,h+=w)}return this._pathLen=h,h},t.prototype.rebuildPath=function(t,e){var n,i,r,a,o,h,d,f,p,b,x,w=this.data,O=this._ux,S=this._uy,T=this._len,M=e<1,A=0,C=0,I=0;if(!M||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,f=this._pathLen,p=e*f,p))t:for(var D=0;D<T;){var L=w[D++],E=1===D;switch(E&&(r=w[D],a=w[D+1],n=r,i=a),L!==l.L&&I>0&&(t.lineTo(b,x),I=0),L){case l.M:n=r=w[D++],i=a=w[D++],t.moveTo(r,a);break;case l.L:o=w[D++],h=w[D++];var j=_(o-r),P=_(h-a);if(j>O||P>S){if(M){var N=d[C++];if(A+N>p){var R=(p-A)/N;t.lineTo(r*(1-R)+o*R,a*(1-R)+h*R);break t}A+=N}t.lineTo(o,h),r=o,a=h,I=0}else{var k=j*j+P*P;k>I&&(b=o,x=h,I=k)}break;case l.C:var B=w[D++],z=w[D++],V=w[D++],F=w[D++],G=w[D++],H=w[D++];if(M){N=d[C++];if(A+N>p){R=(p-A)/N;Object(s["g"])(r,B,V,G,R,u),Object(s["g"])(a,z,F,H,R,c),t.bezierCurveTo(u[1],c[1],u[2],c[2],u[3],c[3]);break t}A+=N}t.bezierCurveTo(B,z,V,F,G,H),r=G,a=H;break;case l.Q:B=w[D++],z=w[D++],V=w[D++],F=w[D++];if(M){N=d[C++];if(A+N>p){R=(p-A)/N;Object(s["n"])(r,B,V,R,u),Object(s["n"])(a,z,F,R,c),t.quadraticCurveTo(u[1],c[1],u[2],c[2]);break t}A+=N}t.quadraticCurveTo(B,z,V,F),r=V,a=F;break;case l.A:var U=w[D++],W=w[D++],X=w[D++],Z=w[D++],q=w[D++],Y=w[D++],K=w[D++],Q=!w[D++],J=X>Z?X:Z,$=_(X-Z)>.001,tt=q+Y,et=!1;if(M){N=d[C++];A+N>p&&(tt=q+Y*(p-A)/N,et=!0),A+=N}if($&&t.ellipse?t.ellipse(U,W,X,Z,K,q,tt,Q):t.arc(U,W,J,q,tt,Q),et)break t;E&&(n=v(q)*X+U,i=y(q)*Z+W),r=v(tt)*X+U,a=y(tt)*Z+W;break;case l.R:n=r=w[D],i=a=w[D+1],o=w[D++],h=w[D++];var nt=w[D++],it=w[D++];if(M){N=d[C++];if(A+N>p){var rt=p-A;t.moveTo(o,h),t.lineTo(o+g(rt,nt),h),rt-=nt,rt>0&&t.lineTo(o+nt,h+g(rt,it)),rt-=it,rt>0&&t.lineTo(o+m(nt-rt,0),h+it),rt-=nt,rt>0&&t.lineTo(o,h+m(it-rt,0));break t}A+=N}t.rect(o,h,nt,it);break;case l.Z:if(M){N=d[C++];if(A+N>p){R=(p-A)/N;t.lineTo(r*(1-R)+n*R,a*(1-R)+i*R);break t}A+=N}t.closePath(),r=n,a=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=l,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();e["a"]=M},"216a":function(t,e,n){"use strict";var i=n("7fae"),r=n("3842"),a=n("f876"),o=n("944e"),s=n("89e3"),l=n("e0d8"),u=n("6d8b"),c=function(t,e,n,i){while(n<i){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},h=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return Object(i["a"])(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Object(a["h"])(t.value,a["i"][Object(a["l"])(Object(a["m"])(this._minLevelUnit))]||a["i"].second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return Object(a["r"])(t,e,n,r,i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=b(this._minLevelUnit,this._approxInterval,i,e);return n=n.concat(r),n.push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=a["a"],e[1]+=a["a"]),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-a["a"]}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=d.length,o=Math.min(c(d,this._approxInterval,0,a),a-1);this._interval=d[o][1],this._minLevelUnit=d[Math.max(o-1,0)][0]},e.prototype.parse=function(t){return Object(u["z"])(t)?t:+r["o"](t)},e.prototype.contain=function(t){return o["a"](this.parse(t),this._extent)},e.prototype.normalize=function(t){return o["f"](this.parse(t),this._extent)},e.prototype.scale=function(t){return o["g"](t,this._extent)},e.type="time",e}(s["a"]),d=[["second",a["d"]],["minute",a["c"]],["hour",a["b"]],["quarter-day",6*a["b"]],["half-day",12*a["b"]],["day",1.2*a["a"]],["half-week",3.5*a["a"]],["week",7*a["a"]],["month",31*a["a"]],["quarter",95*a["a"]],["half-year",a["e"]/2],["year",a["e"]]];function f(t,e,n,i){var o=r["o"](e),s=r["o"](n),l=function(t){return Object(a["n"])(o,t,i)===Object(a["n"])(s,t,i)},u=function(){return l("year")},c=function(){return u()&&l("month")},h=function(){return c()&&l("day")},d=function(){return h()&&l("hour")},f=function(){return d()&&l("minute")},p=function(){return f()&&l("second")},g=function(){return p()&&l("millisecond")};switch(t){case"year":return u();case"month":return c();case"day":return h();case"hour":return d();case"minute":return f();case"second":return p();case"millisecond":return g()}}function p(t,e){return t/=a["a"],t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function g(t){var e=30*a["a"];return t/=e,t>6?6:t>3?3:t>2?2:1}function m(t){return t/=a["b"],t>12?12:t>6?6:t>3.5?4:t>2?2:1}function v(t,e){return t/=e?a["c"]:a["d"],t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function y(t){return r["m"](t,!0)}function _(t,e,n){var i=new Date(t);switch(Object(a["m"])(e)){case"year":case"month":i[Object(a["x"])(n)](0);case"day":i[Object(a["g"])(n)](1);case"hour":i[Object(a["p"])(n)](0);case"minute":i[Object(a["v"])(n)](0);case"second":i[Object(a["A"])(n)](0),i[Object(a["t"])(n)](0)}return i.getTime()}function b(t,e,n,i){var r=1e4,o=a["B"],s=0;function l(t,e,n,r,a,o,s){var l=new Date(e),u=e,c=l[r]();while(u<n&&u<=i[1])s.push({value:u}),c+=t,l[a](c),u=l.getTime();s.push({value:u,notAdd:!0})}function c(t,r,o){var s=[],u=!r.length;if(!f(Object(a["m"])(t),i[0],i[1],n)){u&&(r=[{value:_(new Date(i[0]),t,n)},{value:i[1]}]);for(var c=0;c<r.length-1;c++){var h=r[c].value,d=r[c+1].value;if(h!==d){var b=void 0,x=void 0,w=void 0,O=!1;switch(t){case"year":b=Math.max(1,Math.round(e/a["a"]/365)),x=Object(a["j"])(n),w=Object(a["k"])(n);break;case"half-year":case"quarter":case"month":b=g(e),x=Object(a["w"])(n),w=Object(a["x"])(n);break;case"week":case"half-week":case"day":b=p(e,31),x=Object(a["f"])(n),w=Object(a["g"])(n),O=!0;break;case"half-day":case"quarter-day":case"hour":b=m(e),x=Object(a["o"])(n),w=Object(a["p"])(n);break;case"minute":b=v(e,!0),x=Object(a["u"])(n),w=Object(a["v"])(n);break;case"second":b=v(e,!1),x=Object(a["z"])(n),w=Object(a["A"])(n);break;case"millisecond":b=y(e),x=Object(a["s"])(n),w=Object(a["t"])(n);break}l(b,h,d,x,w,O,s),"year"===t&&o.length>1&&0===c&&o.unshift({value:o[0].value-b})}}for(c=0;c<s.length;c++)o.push(s[c]);return s}}for(var h=[],d=[],b=0,x=0,w=0;w<o.length&&s++<r;++w){var O=Object(a["m"])(o[w]);if(Object(a["q"])(o[w])){c(o[w],h[h.length-1]||[],d);var S=o[w+1]?Object(a["m"])(o[w+1]):null;if(O!==S){if(d.length){x=b,d.sort((function(t,e){return t.value-e.value}));for(var T=[],M=0;M<d.length;++M){var A=d[M].value;0!==M&&d[M-1].value===A||(T.push(d[M]),A>=i[0]&&A<=i[1]&&b++)}var C=(i[1]-i[0])/e;if(b>1.5*C&&x>C/1.5)break;if(h.push(T),b>C||t===o[w])break}d=[]}}}var I=Object(u["n"])(Object(u["H"])(h,(function(t){return Object(u["n"])(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),D=[],L=I.length-1;for(w=0;w<I.length;++w)for(var E=I[w],j=0;j<E.length;++j)D.push({value:E[j].value,level:L-w});D.sort((function(t,e){return t.value-e.value}));var P=[];for(w=0;w<D.length;++w)0!==w&&D[w].value===D[w-1].value||P.push(D[w]);return P}l["a"].registerClass(h),e["a"]=h},"217c":function(t,e,n){"use strict";n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return v})),n.d(e,"e",(function(){return S})),n.d(e,"d",(function(){return T})),n.d(e,"a",(function(){return M}));var i=n("eda2"),r=n("6d8b"),a=n("b7d9"),o=n("3842"),s="line-height:1";function l(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,a=t.fontWeight||"400",o=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Object(i["d"])(r+"")+"px;color:"+Object(i["d"])(n)+";font-weight:"+Object(i["d"])(a+""),valueStyle:"font-size:"+Object(i["d"])(s+"")+"px;color:"+Object(i["d"])(o)+";font-weight:"+Object(i["d"])(l+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:s,fill:o,fontWeight:l}}}var u=[0,10,20,30],c=["","\n","\n\n","\n\n\n"];function h(t,e){return e.type=t,e}function d(t){return"section"===t.type}function f(t){return d(t)?g:m}function p(t){if(d(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return Object(r["k"])(t.blocks,(function(t){var n=p(t);n>=e&&(e=n+ +(i&&(!n||d(t)&&!t.noHeader)))})),e}return 0}function g(t,e,n,o){var u=e.noHeader,c=y(p(e)),h=[],d=e.blocks||[];Object(r["b"])(!d||Object(r["t"])(d)),d=d||[];var g=t.orderMode;if(e.sortBlocks&&g){d=d.slice();var m={valueAsc:"asc",valueDesc:"desc"};if(Object(r["q"])(m,g)){var v=new a["a"](m[g],null);d.sort((function(t,e){return v.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===g&&d.reverse()}Object(r["k"])(d,(function(n,i){var a=e.valueFormatter,s=f(n)(a?Object(r["m"])(Object(r["m"])({},t),{valueFormatter:a}):t,n,i>0?c.html:0,o);null!=s&&h.push(s)}));var b="richText"===t.renderMode?h.join(c.richText):_(h.join(""),u?n:c.html);if(u)return b;var x=Object(i["i"])(e.header,"ordinal",t.useUTC),O=l(o,t.renderMode).nameStyle;return"richText"===t.renderMode?w(t,x,O)+c.richText+b:_('<div style="'+O+";"+s+';">'+Object(i["d"])(x)+"</div>"+b,n)}function m(t,e,n,a){var o=t.renderMode,s=e.noName,u=e.noValue,c=!e.markerType,h=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return t=Object(r["t"])(t)?t:[t],Object(r["H"])(t,(function(t,e){return Object(i["i"])(t,Object(r["t"])(m)?m[e]:m,d)}))};if(!s||!u){var p=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",o),g=s?"":Object(i["i"])(h,"ordinal",d),m=e.valueType,v=u?[]:f(e.value),y=!c||!s,S=!c&&s,T=l(a,o),M=T.nameStyle,A=T.valueStyle;return"richText"===o?(c?"":p)+(s?"":w(t,g,M))+(u?"":O(t,v,y,S,A)):_((c?"":p)+(s?"":b(g,!c,M))+(u?"":x(v,y,S,A)),n)}}function v(t,e,n,i,r,a){if(t){var o=f(t),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function y(t){return{html:u[t],richText:c[t]}}function _(t,e){var n='<div style="clear:both"></div>',i="margin: "+e+"px 0 0";return'<div style="'+i+";"+s+';">'+t+n+"</div>"}function b(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Object(i["d"])(t)+"</span>"}function x(t,e,n,a){var o=n?"10px":"20px",s=e?"float:right;margin-left:"+o:"";return t=Object(r["t"])(t)?t:[t],'<span style="'+s+";"+a+'">'+Object(r["H"])(t,(function(t){return Object(i["d"])(t)})).join(" ")+"</span>"}function w(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function O(t,e,n,i,a){var o=[a],s=i?10:20;return n&&o.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(r["t"])(e)?e.join(" "):e,o)}function S(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return Object(i["c"])(r)}function T(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var M=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Object(o["i"])()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var a="richText"===n?this._generateStyleName():null,o=Object(i["h"])({color:e,type:t,renderMode:n,markerId:a});return Object(r["C"])(o)?o:(this.richTextStyles[a]=o.style,o.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(r["t"])(e)?Object(r["k"])(e,(function(t){return Object(r["m"])(n,t)})):Object(r["m"])(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}()},"21a10":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */
|
||
var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create},"22b4":function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var i=n("1be7"),r=n("b12f"),a=n("e887"),o=n("6cb7"),s=n("4f85"),l=n("6d8b"),u=n("58c9"),c=n("697e7"),h=[],d={registerPreprocessor:i["l"],registerProcessor:i["m"],registerPostInit:i["j"],registerPostUpdate:i["k"],registerUpdateLifecycle:i["o"],registerAction:i["e"],registerCoordinateSystem:i["f"],registerLayout:i["g"],registerVisual:i["p"],registerTransform:i["n"],registerLoading:i["h"],registerMap:i["i"],registerImpl:u["b"],PRIORITY:i["a"],ComponentModel:o["a"],ComponentView:r["a"],SeriesModel:s["b"],ChartView:a["a"],registerComponentModel:function(t){o["a"].registerClass(t)},registerComponentView:function(t){r["a"].registerClass(t)},registerSeriesModel:function(t){s["b"].registerClass(t)},registerChartView:function(t){a["a"].registerClass(t)},registerSubTypeDefaulter:function(t,e){o["a"].registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Object(c["registerPainter"])(t,e)}};function f(t){Object(l["t"])(t)?Object(l["k"])(t,(function(t){f(t)})):Object(l["r"])(h,t)>=0||(h.push(t),Object(l["w"])(t)&&(t={install:t}),t.install(d))}},"22d1":function(t,e,n){"use strict";var i=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),r=function(){function t(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),a=new r;function o(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),o&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(a.wxa=!0,a.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?a.worker=!0:"undefined"===typeof navigator?(a.node=!0,a.svgSupported=!0):o(navigator.userAgent,a),e["a"]=a},2306:function(t,e,n){"use strict";n.r(e),n.d(e,"extendShape",(function(){return N})),n.d(e,"extendPath",(function(){return k})),n.d(e,"registerShape",(function(){return B})),n.d(e,"getShapeClass",(function(){return z})),n.d(e,"makePath",(function(){return V})),n.d(e,"makeImage",(function(){return F})),n.d(e,"mergePath",(function(){return H})),n.d(e,"resizePath",(function(){return U})),n.d(e,"subPixelOptimizeLine",(function(){return W})),n.d(e,"subPixelOptimizeRect",(function(){return X})),n.d(e,"subPixelOptimize",(function(){return Z})),n.d(e,"getTransform",(function(){return q})),n.d(e,"applyTransform",(function(){return Y})),n.d(e,"transformDirection",(function(){return K})),n.d(e,"groupTransition",(function(){return $})),n.d(e,"clipPointsByRect",(function(){return tt})),n.d(e,"clipRectByRect",(function(){return et})),n.d(e,"createIcon",(function(){return nt})),n.d(e,"linePolygonIntersect",(function(){return it})),n.d(e,"lineLineIntersect",(function(){return rt})),n.d(e,"setTooltipConfig",(function(){return st})),n.d(e,"traverseElements",(function(){return ut}));var i=n("342d"),r=n("1687"),a=n("401b"),o=n("cbe5");n.d(e,"Path",(function(){return o["b"]}));var s=n("8582"),l=n("0da8");n.d(e,"Image",(function(){return l["a"]}));var u=n("2dc5");n.d(e,"Group",(function(){return u["a"]}));var c=n("76a5");n.d(e,"Text",(function(){return c["a"]}));var h=n("d9fc");n.d(e,"Circle",(function(){return h["a"]}));var d=n("ae69");n.d(e,"Ellipse",(function(){return d["a"]}));var f=n("4aa2");n.d(e,"Sector",(function(){return f["a"]}));var p=n("4573");n.d(e,"Ring",(function(){return p["a"]}));var g=n("87b1");n.d(e,"Polygon",(function(){return g["a"]}));var m=n("d498");n.d(e,"Polyline",(function(){return m["a"]}));var v=n("c7a2");n.d(e,"Rect",(function(){return v["a"]}));var y=n("cb11");n.d(e,"Line",(function(){return y["a"]}));var _=n("ac0f");n.d(e,"BezierCurve",(function(){return _["a"]}));var b=n("8d32");n.d(e,"Arc",(function(){return b["a"]}));var x=n("d4c6");n.d(e,"CompoundPath",(function(){return x["a"]}));var w=n("48a9");n.d(e,"LinearGradient",(function(){return w["a"]}));var O=n("dded");n.d(e,"RadialGradient",(function(){return O["a"]}));var S=n("9850");n.d(e,"BoundingRect",(function(){return S["a"]}));var T=n("ca80");n.d(e,"OrientedBoundingRect",(function(){return T["a"]}));var M=n("dce8");n.d(e,"Point",(function(){return M["a"]}));var A=n("392f");n.d(e,"IncrementalDisplayable",(function(){return A["a"]}));var C=n("9cf9"),I=n("6d8b"),D=n("861c"),L=n("deab");n.d(e,"updateProps",(function(){return L["h"]})),n.d(e,"initProps",(function(){return L["c"]})),n.d(e,"removeElement",(function(){return L["e"]})),n.d(e,"removeElementWithFadeOut",(function(){return L["f"]})),n.d(e,"isElementRemoved",(function(){return L["d"]}));var E=Math.max,j=Math.min,P={};function N(t){return o["b"].extend(t)}var R=i["c"];function k(t,e){return R(t,e)}function B(t,e){P[t]=e}function z(t){if(P.hasOwnProperty(t))return P[t]}function V(t,e,n,r){var a=i["b"](t,e);return n&&("center"===r&&(n=G(n,a.getBoundingRect())),U(a,n)),a}function F(t,e,n){var i=new l["a"]({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(G(e,r))}}});return i}function G(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-r/2,y:o-n/2,width:r,height:n}}var H=i["d"];function U(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function W(t){return C["b"](t.shape,t.shape,t.style),t}function X(t){return C["c"](t.shape,t.shape,t.style),t}var Z=C["a"];function q(t,e){var n=r["d"]([]);while(t&&t!==e)r["f"](n,t.getLocalTransform(),n),t=t.parent;return n}function Y(t,e,n){return e&&!Object(I["u"])(e)&&(e=s["c"].getLocalTransform(e)),n&&(e=r["e"]([],e)),a["b"]([],t,e)}function K(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return a=Y(a,e,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Q(t){return!t.isGroup}function J(t){return null!=t.shape}function $(t,e,n){if(t&&e){var i=r(t);e.traverse((function(t){if(Q(t)&&t.anid){var e=i[t.anid];if(e){var r=a(t);t.attr(a(e)),Object(L["h"])(t,r,n,Object(D["a"])(t).dataIndex)}}}))}function r(t){var e={};return t.traverse((function(t){Q(t)&&t.anid&&(e[t.anid]=t)})),e}function a(t){var e={x:t.x,y:t.y,rotation:t.rotation};return J(t)&&(e.shape=Object(I["m"])({},t.shape)),e}}function tt(t,e){return Object(I["H"])(t,(function(t){var n=t[0];n=E(n,e.x),n=j(n,e.x+e.width);var i=t[1];return i=E(i,e.y),i=j(i,e.y+e.height),[n,i]}))}function et(t,e){var n=E(t.x,e.x),i=j(t.x+t.width,e.x+e.width),r=E(t.y,e.y),a=j(t.y+t.height,e.y+e.height);if(i>=n&&a>=r)return{x:n,y:r,width:i-n,height:a-r}}function nt(t,e,n){var i=Object(I["m"])({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Object(I["i"])(r,n),new l["a"](i)):V(t.replace("path://",""),i,n,"center")}function it(t,e,n,i,r){for(var a=0,o=r[r.length-1];a<r.length;a++){var s=r[a];if(rt(t,e,n,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function rt(t,e,n,i,r,a,o,s){var l=n-t,u=i-e,c=o-r,h=s-a,d=at(c,h,l,u);if(ot(d))return!1;var f=t-r,p=e-a,g=at(f,p,l,u)/d;if(g<0||g>1)return!1;var m=at(f,p,c,h)/d;return!(m<0||m>1)}function at(t,e,n,i){return t*i-n*e}function ot(t){return t<=1e-6&&t>=-1e-6}function st(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=Object(I["C"])(e)?{formatter:e}:e,a=n.mainType,o=n.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&Object(I["k"])(Object(I["F"])(l),(function(t){Object(I["q"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Object(D["a"])(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:Object(I["i"])({content:i,formatterParams:s},r)}}function lt(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function ut(t,e){if(t)if(Object(I["t"])(t))for(var n=0;n<t.length;n++)lt(t[n],e);else lt(t,e)}B("circle",h["a"]),B("ellipse",d["a"]),B("sector",f["a"]),B("ring",p["a"]),B("polygon",g["a"]),B("polyline",m["a"]),B("rect",v["a"]),B("line",y["a"]),B("bezierCurve",_["a"]),B("arc",b["a"])},2355:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return u}));var i=n("ca80"),r=n("9850");function a(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var a=r.label,o=a.getComputedTransform(),s=a.getBoundingRect(),l=!o||o[1]<1e-5&&o[2]<1e-5,u=a.style.margin||0,c=s.clone();c.applyTransform(o),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var h=l?new i["a"](s,o):null;e.push({label:a,labelLine:r.labelLine,rect:c,localRect:s,obb:h,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:l,transform:o})}}return e}function o(t,e,n,i,r,a){var o=t.length;if(!(o<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=[],h=0,d=0;d<o;d++){var f=t[d],p=f.rect;s=p[e]-l,s<0&&(p[e]-=s,f.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=p[e]+p[n]}h>0&&a&&w(-h/o,0,o);var m,v,y=t[0],_=t[o-1];return b(),m<0&&O(-m,.8),v<0&&O(v,.8),b(),x(m,v,1),x(v,m,-1),b(),m<0&&S(-m),v<0&&S(v),u}function b(){m=y.rect[e]-i,v=r-_.rect[e]-_.rect[n]}function x(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,o);var r=i+t;r<0&&O(-r*n,1)}else O(-t*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var a=i;a<r;a++){var o=t[a],s=o.rect;s[e]+=n,o.label[e]+=n}}function O(i,r){for(var a=[],s=0,l=1;l<o;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);a.push(c),s+=c}if(s){var h=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<o-1;l++){var d=a[l]*h;w(d,0,l+1)}else for(l=o-1;l>0;l--){d=a[l-1]*h;w(-d,l,o)}}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(o-1)),i=0;i<o-1;i++)if(e>0?w(n,0,i+1):w(-n,o-i-1,o),t-=n,t<=0)return}}function s(t,e,n,i){return o(t,"x","width",e,n,i)}function l(t,e,n,i){return o(t,"y","height",e,n,i)}function u(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new r["a"](0,0,0,0);function a(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var o=0;o<t.length;o++){var s=t[o],l=s.axisAligned,u=s.localRect,c=s.transform,h=s.label,d=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=s.obb,p=!1,g=0;g<e.length;g++){var m=e[g];if(n.intersect(m.rect)){if(l&&m.axisAligned){p=!0;break}if(m.obb||(m.obb=new i["a"](m.localRect,m.transform)),f||(f=new i["a"](u,c)),f.intersect(m.obb)){p=!0;break}}}p?(a(h),d&&a(d)):(h.attr("ignore",s.defaultAttr.ignore),d&&d.attr("ignore",s.defaultAttr.labelGuideIgnore),e.push(s))}}},"26b4":function(t,e,n){"use strict";n("286b")},"282b":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("6d8b");function r(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(r&&i["r"](r,l)>=0||a&&i["r"](a,l)<0)){var u=n.getShallow(l,e);null!=u&&(o[t[s][0]]=u)}}return o}}},"286b":function(t,e,n){},"2b17":function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"c",(function(){return g})),n.d(e,"b",(function(){return y})),n.d(e,"d",(function(){return x})),n.d(e,"e",(function(){return O}));var i,r,a,o,s,l=n("6d8b"),u=n("e0d3"),c=n("ec6f"),h=n("07fd"),d=function(){function t(t,e){var n=Object(c["e"])(t)?t:Object(c["c"])(t);this._source=n;var i=this._data=n.data;n.sourceFormat===h["g"]&&(this._offset=0,this._dimSize=e,this._data=i),s(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;s=function(t,r,a){var s=a.sourceFormat,u=a.seriesLayoutBy,c=a.startIndex,d=a.dimensionsDefine,f=o[w(s,u)];if(Object(l["m"])(t,f),s===h["g"])t.getItem=e,t.count=i,t.fillStorage=n;else{var p=g(s,u);t.getItem=Object(l["c"])(p,null,r,c,d);var m=y(s,u);t.count=Object(l["c"])(m,null,r,c,d)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,a=0;a<i;a++)e[a]=n[r+a];return e},n=function(t,e,n,i){for(var r=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=i[o],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[o],d=0;d<c;d++){var f=r[d*a+o];h[t+d]=f,f<l&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}t={},t[h["c"]+"_"+h["a"]]={pure:!0,appendData:r},t[h["c"]+"_"+h["b"]]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[h["e"]]={pure:!0,appendData:r},t[h["d"]]={pure:!0,appendData:function(t){var e=this._data;Object(l["k"])(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t[h["f"]]={appendData:r},t[h["g"]]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},o=t}(),t}(),f=function(t,e,n,i){return t[i]},p=(i={},i[h["c"]+"_"+h["a"]]=function(t,e,n,i){return t[i+e]},i[h["c"]+"_"+h["b"]]=function(t,e,n,i,r){i+=e;for(var a=r||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},i[h["e"]]=f,i[h["d"]]=function(t,e,n,i,r){for(var a=r||[],o=0;o<n.length;o++){var s=n[o].name;0;var l=t[s];a[o]=l?l[i]:null}return a},i[h["f"]]=f,i);function g(t,e){var n=p[w(t,e)];return n}var m=function(t,e,n){return t.length},v=(r={},r[h["c"]+"_"+h["a"]]=function(t,e,n){return Math.max(0,t.length-e)},r[h["c"]+"_"+h["b"]]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},r[h["e"]]=m,r[h["d"]]=function(t,e,n){var i=n[0].name;var r=t[i];return r?r.length:0},r[h["f"]]=m,r);function y(t,e){var n=v[w(t,e)];return n}var _=function(t,e,n){return t[e]},b=(a={},a[h["c"]]=_,a[h["e"]]=function(t,e,n){return t[n]},a[h["d"]]=_,a[h["f"]]=function(t,e,n){var i=Object(u["h"])(t);return i instanceof Array?i[e]:i},a[h["g"]]=_,a);function x(t){var e=b[t];return e}function w(t,e){return t===h["c"]?t+"_"+e:t}function O(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),a=r.getSource().sourceFormat;if(null!=n){var o=t.getDimensionIndex(n),s=r.getDimensionProperty(o);return x(a)(i,o,s)}var l=i;return a===h["f"]&&(l=Object(u["h"])(i)),l}}}},"2cf4":function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return u}));var i=n("22d1"),r=1;i["a"].hasGlobalWindow&&(r=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var a=r,o=.4,s="#333",l="#ccc",u="#eee"},"2dc5":function(t,e,n){"use strict";var i=n("21a10"),r=n("6d8b"),a=n("d5b7"),o=n("9850"),s=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return Object(i["a"])(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=r["r"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=r["r"](n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new o["a"](0,0,0,0),n=t||this._children,i=[],r=null,a=0;a<n.length;a++){var s=n[a];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(o["a"].applyTransform(e,l,u),r=r||e.clone(),r.union(e)):(r=r||l.clone(),r.union(l))}}return r||e},e}(a["a"]);s.prototype.type="group",e["a"]=s},"2f1f":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return o}));var i=n("6d8b"),r=Object(i["f"])();function a(t,e){Object(i["b"])(null==r.get(t)&&e),r.set(t,e)}function o(t,e,n){var i=r.get(e);if(!i)return n;var a=i(t);return a?n.concat(a):n}},"2f45":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return l}));var i=n("6d8b"),r=n("07fd"),a=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function o(t,e){var n={},o=n.encode={},l=Object(i["f"])(),c=[],h=[],d={};Object(i["k"])(t.dimensions,(function(e){var n=t.getDimensionInfo(e),i=n.coordDim;if(i){0;var a=n.coordDimIndex;s(o,i)[a]=e,n.isExtraCoord||(l.set(i,1),u(n.type)&&(c[0]=e),s(d,i)[a]=t.getDimensionIndex(n.name)),n.defaultTooltip&&h.push(e)}r["i"].each((function(t,e){var i=s(o,e),r=n.otherDims[e];null!=r&&!1!==r&&(i[r]=n.name)}))}));var f=[],p={};l.each((function(t,e){var n=o[e];p[e]=n[0],f=f.concat(n)})),n.dataDimsOnCoord=f,n.dataDimIndicesOnCoord=Object(i["H"])(f,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=p;var g=o.label;g&&g.length&&(c=g.slice());var m=o.tooltip;return m&&m.length?h=m.slice():h.length||(h=c.slice()),o.defaultedLabel=c,o.defaultedTooltip=h,n.userOutput=new a(d,e),n}function s(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function l(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function u(t){return!("ordinal"===t||"time"===t)}},"313e":function(t,e,n){"use strict";n.d(e,"b",(function(){return r["n"]})),n.d(e,"a",(function(){return r["l"]}));var i=n("22b4"),r=n("aa74"),a=n("f95e"),o=n("7a29"),s=n("cbe5"),l=n("0da8"),u=n("e86a"),c=n("dd4f"),h=Math.sin,d=Math.cos,f=Math.PI,p=2*Math.PI,g=180/f,m=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,a){this._add("C",t,e,n,i,r,a)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,a){this.ellipse(t,e,n,n,0,i,r,a)},t.prototype.ellipse=function(t,e,n,i,r,a,s,l){var u=s-a,c=!l,m=Math.abs(u),v=Object(o["j"])(m-p)||(c?u>=p:-u>=p),y=u>0?u%p:u%p+p,_=!1;_=!!v||!Object(o["j"])(m)&&y>=f===!!c;var b=t+n*d(a),x=e+i*h(a);this._start&&this._add("M",b,x);var w=Math.round(r*g);if(v){var O=1/this._p,S=(c?1:-1)*(p-O);this._add("A",n,i,w,1,+c,t+n*d(a+S),e+i*h(a+S)),O>.01&&this._add("A",n,i,w,0,+c,b,x)}else{var T=t+n*d(s),M=e+i*h(s);this._add("A",n,i,w,+_,+c,T,M)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,a,o,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);u.push(Math.round(d*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),v=m,y=n("8d1d"),_=n("6d8b"),b="none",x=Math.round;function w(t){var e=t.fill;return null!=e&&e!==b}function O(t){var e=t.stroke;return null!=e&&e!==b}var S=["lineCap","miterLimit","lineJoin"],T=Object(_["H"])(S,(function(t){return"stroke-"+t.toLowerCase()}));function M(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof l["a"])t("opacity",r);else{if(w(e)){var a=Object(o["p"])(e.fill);t("fill",a.color);var u=null!=e.fillOpacity?e.fillOpacity*a.opacity*r:a.opacity*r;(i||u<1)&&t("fill-opacity",u)}else t("fill",b);if(O(e)){var c=Object(o["p"])(e.stroke);t("stroke",c.color);var h=e.strokeNoScale?n.getLineScale():1,d=h?(e.lineWidth||0)/h:0,f=null!=e.strokeOpacity?e.strokeOpacity*c.opacity*r:c.opacity*r,p=e.strokeFirst;if((i||1!==d)&&t("stroke-width",d),(i||p)&&t("paint-order",p?"stroke":"fill"),(i||f<1)&&t("stroke-opacity",f),e.lineDash){var g=Object(y["a"])(n),m=g[0],v=g[1];m&&(v=x(v||0),t("stroke-dasharray",m.join(",")),(v||i)&&t("stroke-dashoffset",v))}else i&&t("stroke-dasharray",b);for(var _=0;_<S.length;_++){var M=S[_];if(i||e[M]!==s["a"][M]){var A=e[M]||s["a"][M];A&&t(T[_],A)}}}else i&&t("stroke",b)}}var A="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xlink",I="http://www.w3.org/2000/xmlns/",D="http://www.w3.org/XML/1998/namespace";function L(t){return document.createElementNS(A,t)}function E(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function j(t,e){var n=[];if(e)for(var i in e){var r=e[i],a=i;!1!==r&&(!0!==r&&null!=r&&(a+='="'+r+'"'),n.push(a))}return"<"+t+" "+n.join(" ")+">"}function P(t){return"</"+t+">"}function N(t,e){e=e||{};var n=e.newline?"\n":"";function i(t){var e=t.children,r=t.tag,a=t.attrs;return j(r,a)+(t.text||"")+(e?""+n+Object(_["H"])(e,(function(t){return i(t)})).join(n)+n:"")+P(r)}return i(t)}function R(t,e,n){n=n||{};var i=n.newline?"\n":"",r=" {"+i,a=i+"}",o=Object(_["H"])(Object(_["F"])(t),(function(e){return e+r+Object(_["H"])(Object(_["F"])(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+a})).join(i),s=Object(_["H"])(Object(_["F"])(e),(function(t){return"@keyframes "+t+r+Object(_["H"])(Object(_["F"])(e[t]),(function(n){return n+r+Object(_["H"])(Object(_["F"])(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+a})).join(i)+a})).join(i);return o||s?["<![CDATA[",o,s,"]]>"].join(i):""}function k(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function B(t,e,n,i){return E("svg","root",{width:t,height:e,xmlns:A,"xmlns:xlink":C,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var z=n("5e76"),V=n("8582"),F=n("20c8"),G=n("d4c6"),H=n("b362"),U={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},W="transform-origin";function X(t,e,n){var i=Object(_["m"])({},t.shape);Object(_["m"])(i,e),t.buildPath(n,i);var r=new v;return r.reset(Object(o["f"])(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function Z(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[W]=n+"px "+i+"px")}var q={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Y(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function K(t,e,n){var i,r,a=t.shape.paths,o={};if(Object(_["k"])(a,(function(t){var e=k(n.zrId);e.animation=!0,J(t,{},e,!0);var a=e.cssAnims,s=e.cssNodes,l=Object(_["F"])(a),u=l.length;if(u){r=l[u-1];var c=a[r];for(var h in c){var d=c[h];o[h]=o[h]||{d:""},o[h].d+=d.d||""}for(var f in s){var p=s[f].animation;p.indexOf(r)>=0&&(i=p)}}})),i){e.d=!1;var s=Y(o,n);return i.replace(r,s)}}function Q(t){return Object(_["C"])(t)?U[t]?"cubic-bezier("+U[t]+")":Object(H["a"])(t)?t:"":""}function J(t,e,n,i){var r=t.animators,a=r.length,s=[];if(t instanceof G["a"]){var l=K(t,e,n);if(l)s.push(l);else if(!a)return}else if(!a)return;for(var u={},c=0;c<a;c++){var h=r[c],d=[h.getMaxTime()/1e3+"s"],f=Q(h.getClip().easing),p=h.getDelay();f?d.push(f):d.push("linear"),p&&d.push(p/1e3+"s"),h.getLoop()&&d.push("infinite");var g=d.join(" ");u[g]=u[g]||[g,[]],u[g][1].push(h)}function m(r){var a,s=r[1],l=s.length,u={},c={},h={},d="animation-timing-function";function f(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),a=0;a<i.length;a++){var o=i[a];if(o.needsAnimate()){var s=o.keyframes,l=o.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],h=Math.round(c.time/r*100)+"%",f=Q(c.easing),p=c.rawValue;(Object(_["C"])(p)||Object(_["z"])(p))&&(e[h]=e[h]||{},e[h][l]=c.rawValue,f&&(e[h][d]=f))}}}}for(var p=0;p<l;p++){var g=s[p],m=g.targetName;m?"shape"===m&&f(g,c):!i&&f(g,u)}for(var v in u){var y={};Object(V["b"])(y,t),Object(_["m"])(y,u[v]);var b=Object(o["g"])(y),x=u[v][d];h[v]=b?{transform:b}:{},Z(h[v],y),x&&(h[v][d]=x)}var w=!0;for(var v in c){h[v]=h[v]||{};var O=!a;x=c[v][d];O&&(a=new F["a"]);var S=a.len();a.reset(),h[v].d=X(t,c[v],a);var T=a.len();if(!O&&S!==T){w=!1;break}x&&(h[v][d]=x)}if(!w)for(var v in h)delete h[v].d;if(!i)for(p=0;p<l;p++){g=s[p],m=g.targetName;"style"===m&&f(g,h,(function(t){return q[t]}))}var M,A=Object(_["F"])(h),C=!0;for(p=1;p<A.length;p++){var I=A[p-1],D=A[p];if(h[I][W]!==h[D][W]){C=!1;break}M=h[I][W]}if(C&&M){for(var v in h)h[v][W]&&delete h[v][W];e[W]=M}if(Object(_["n"])(A,(function(t){return Object(_["F"])(h[t]).length>0})).length){var L=Y(h,n);return L+" "+r[0]+" both"}}for(var v in u){l=m(u[v]);l&&s.push(l)}if(s.length){var y=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+y]={animation:s.join(",")},e["class"]=y}}var $=n("76a5"),tt=n("726e"),et=Math.round;function nt(t){return t&&Object(_["C"])(t.src)}function it(t){return t&&Object(_["w"])(t.toDataURL)}function rt(t,e,n,i){M((function(r,a){var s="fill"===r||"stroke"===r;s&&Object(o["k"])(a)?yt(e,t,r,i):s&&Object(o["n"])(a)?_t(n,t,r,i):t[r]=a}),e,n,!1),vt(n,t,i)}function at(t){return Object(o["j"])(t[0]-1)&&Object(o["j"])(t[1])&&Object(o["j"])(t[2])&&Object(o["j"])(t[3]-1)}function ot(t){return Object(o["j"])(t[4])&&Object(o["j"])(t[5])}function st(t,e,n){if(e&&(!ot(e)||!at(e))){var i=n?10:1e4;t.transform=at(e)?"translate("+et(e[4]*i)/i+" "+et(e[5]*i)/i+")":Object(o["e"])(e)}}function lt(t,e,n){for(var i=t.points,r=[],a=0;a<i.length;a++)r.push(et(i[a][0]*n)/n),r.push(et(i[a][1]*n)/n);e.points=r.join(" ")}function ut(t){return!t.smooth}function ct(t){var e=Object(_["H"])(t,(function(t){return"string"===typeof t?[t,t]:t}));return function(t,n,i){for(var r=0;r<e.length;r++){var a=e[r],o=t[a[0]];null!=o&&(n[a[1]]=et(o*i)/i)}}}var ht={circle:[ct(["cx","cy","r"])],polyline:[lt,ut],polygon:[lt,ut]};function dt(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}function ft(t,e){var n=t.style,i=t.shape,r=ht[t.type],a={},s=e.animation,l="path",u=t.style.strokePercent,c=e.compress&&Object(o["f"])(t)||4;if(!r||e.willUpdate||r[1]&&!r[1](i)||s&&dt(t)||u<1){t.path||t.createPathProxy();var h=t.path;t.shapeChanged()&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var d=h.getVersion(),f=t,p=f.__svgPathBuilder;f.__svgPathVersion===d&&p&&u===f.__svgPathStrokePercent||(p||(p=f.__svgPathBuilder=new v),p.reset(c),h.rebuildPath(p,u),p.generateStr(),f.__svgPathVersion=d,f.__svgPathStrokePercent=u),a.d=p.getStr()}else{l=t.type;var g=Math.pow(10,c);r[0](i,a,g)}return st(a,t.transform),rt(a,n,t,e),e.animation&&J(t,a,e),E(l,t.id+"",a)}function pt(t,e){var n=t.style,i=n.image;if(i&&!Object(_["C"])(i)&&(nt(i)?i=i.src:it(i)&&(i=i.toDataURL())),i){var r=n.x||0,a=n.y||0,o=n.width,s=n.height,l={href:i,width:o,height:s};return r&&(l.x=r),a&&(l.y=a),st(l,t.transform),rt(l,n,t,e),e.animation&&J(t,l,e),E("image",t.id+"",l)}}function gt(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||tt["a"],a=n.x||0,s=Object(o["b"])(n.y||0,Object(u["e"])(r),n.textBaseline),l=o["a"][n.textAlign]||n.textAlign,c={"dominant-baseline":"central","text-anchor":l};if(Object($["b"])(n)){var h="",d=n.fontStyle,f=Object($["c"])(n.fontSize);if(!parseFloat(f))return;var p=n.fontFamily||tt["b"],g=n.fontWeight;h+="font-size:"+f+";font-family:"+p+";",d&&"normal"!==d&&(h+="font-style:"+d+";"),g&&"normal"!==g&&(h+="font-weight:"+g+";"),c.style=h}else c.style="font: "+r;return i.match(/\s/)&&(c["xml:space"]="preserve"),a&&(c.x=a),s&&(c.y=s),st(c,t.transform),rt(c,n,t,e),e.animation&&J(t,c,e),E("text",t.id+"",c,void 0,i)}}function mt(t,e){return t instanceof s["b"]?ft(t,e):t instanceof l["a"]?pt(t,e):t instanceof c["a"]?gt(t,e):void 0}function vt(t,e,n){var i=t.style;if(Object(o["i"])(i)){var r=Object(o["h"])(t),a=n.shadowCache,s=a[r];if(!s){var l=t.getGlobalScale(),u=l[0],c=l[1];if(!u||!c)return;var h=i.shadowOffsetX||0,d=i.shadowOffsetY||0,f=i.shadowBlur,p=Object(o["p"])(i.shadowColor),g=p.opacity,m=p.color,v=f/2/u,y=f/2/c,_=v+" "+y;s=n.zrId+"-s"+n.shadowIdx++,n.defs[s]=E("filter",s,{id:s,x:"-100%",y:"-100%",width:"300%",height:"300%"},[E("feDropShadow","",{dx:h/u,dy:d/c,stdDeviation:_,"flood-color":m,"flood-opacity":g})]),a[r]=s}e.filter=Object(o["d"])(s)}}function yt(t,e,n,i){var r,a=t[n],s={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(o["m"])(a))r="linearGradient",s.x1=a.x,s.y1=a.y,s.x2=a.x2,s.y2=a.y2;else{if(!Object(o["o"])(a))return void 0;r="radialGradient",s.cx=Object(_["P"])(a.x,.5),s.cy=Object(_["P"])(a.y,.5),s.r=Object(_["P"])(a.r,.5)}for(var l=a.colorStops,u=[],c=0,h=l.length;c<h;++c){var d=100*Object(o["q"])(l[c].offset)+"%",f=l[c].color,p=Object(o["p"])(f),g=p.color,m=p.opacity,v={offset:d};v["stop-color"]=g,m<1&&(v["stop-opacity"]=m),u.push(E("stop",c+"",v))}var y=E(r,"",s,u),b=N(y),x=i.gradientCache,w=x[b];w||(w=i.zrId+"-g"+i.gradientIdx++,x[b]=w,s.id=w,i.defs[w]=E(r,w,s,u)),e[n]=Object(o["d"])(w)}function _t(t,e,n,i){var r,a=t.style[n],s={patternUnits:"userSpaceOnUse"};if(Object(o["l"])(a)){var l=a.imageWidth,u=a.imageHeight,c=void 0,h=a.image;if(Object(_["C"])(h)?c=h:nt(h)?c=h.src:it(h)&&(c=h.toDataURL()),"undefined"===typeof Image){var d="Image width/height must been given explictly in svg-ssr renderer.";Object(_["b"])(l,d),Object(_["b"])(u,d)}else if(null==l||null==u){var f=function(t,e){if(t){var n=t.elm,i=t.attrs.width=l||e.width,r=t.attrs.height=u||e.height;n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},p=Object(z["a"])(c,null,t,(function(t){f(g,t),f(r,t)}));p&&p.width&&p.height&&(l=l||p.width,u=u||p.height)}r=E("image","img",{href:c,width:l,height:u}),s.width=l,s.height=u}else a.svgElement&&(r=Object(_["d"])(a.svgElement),s.width=a.svgWidth,s.height=a.svgHeight);if(r){s.patternTransform=Object(o["g"])(a);var g=E("pattern","",s,[r]),m=N(g),v=i.patternCache,y=v[m];y||(y=i.zrId+"-p"+i.patternIdx++,v[m]=y,s.id=y,g=i.defs[y]=E("pattern",y,s,[r])),e[n]=Object(o["d"])(y)}}function bt(t,e,n){var i=n.clipPathCache,r=n.defs,a=i[t.id];if(!a){a=n.zrId+"-c"+n.clipPathIdx++;var s={id:a};i[t.id]=a,r[a]=E("clipPath",a,s,[ft(t,n)])}e["clip-path"]=Object(o["d"])(a)}function xt(t){return document.createTextNode(t)}function wt(t,e,n){t.insertBefore(e,n)}function Ot(t,e){t.removeChild(e)}function St(t,e){t.appendChild(e)}function Tt(t){return t.parentNode}function Mt(t){return t.nextSibling}function At(t,e){t.textContent=e}var Ct=58,It=120,Dt=E("","");function Lt(t){return void 0===t}function Et(t){return void 0!==t}function jt(t,e,n){for(var i={},r=e;r<=n;++r){var a=t[r].key;void 0!==a&&(i[a]=r)}return i}function Pt(t,e){var n=t.key===e.key,i=t.tag===e.tag;return i&&n}function Nt(t){var e,n=t.children,i=t.tag;if(Et(i)){var r=t.elm=L(i);if(Bt(Dt,t),Object(_["t"])(n))for(e=0;e<n.length;++e){var a=n[e];null!=a&&St(r,Nt(a))}else Et(t.text)&&!Object(_["A"])(t.text)&&St(r,xt(t.text))}else t.elm=xt(t.text);return t.elm}function Rt(t,e,n,i,r){for(;i<=r;++i){var a=n[i];null!=a&&wt(t,Nt(a),e)}}function kt(t,e,n,i){for(;n<=i;++n){var r=e[n];if(null!=r)if(Et(r.tag)){var a=Tt(r.elm);Ot(a,r.elm)}else Ot(t,r.elm)}}function Bt(t,e){var n,i=e.elm,r=t&&t.attrs||{},a=e.attrs||{};if(r!==a){for(n in a){var o=a[n],s=r[n];s!==o&&(!0===o?i.setAttribute(n,""):!1===o?i.removeAttribute(n):n.charCodeAt(0)!==It?i.setAttribute(n,o):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(I,n,o):n.charCodeAt(3)===Ct?i.setAttributeNS(D,n,o):n.charCodeAt(5)===Ct?i.setAttributeNS(C,n,o):i.setAttribute(n,o))}for(n in r)n in a||i.removeAttribute(n)}}function zt(t,e,n){var i,r,a,o,s=0,l=0,u=e.length-1,c=e[0],h=e[u],d=n.length-1,f=n[0],p=n[d];while(s<=u&&l<=d)null==c?c=e[++s]:null==h?h=e[--u]:null==f?f=n[++l]:null==p?p=n[--d]:Pt(c,f)?(Vt(c,f),c=e[++s],f=n[++l]):Pt(h,p)?(Vt(h,p),h=e[--u],p=n[--d]):Pt(c,p)?(Vt(c,p),wt(t,c.elm,Mt(h.elm)),c=e[++s],p=n[--d]):Pt(h,f)?(Vt(h,f),wt(t,h.elm,c.elm),h=e[--u],f=n[++l]):(Lt(i)&&(i=jt(e,s,u)),r=i[f.key],Lt(r)?wt(t,Nt(f),c.elm):(a=e[r],a.tag!==f.tag?wt(t,Nt(f),c.elm):(Vt(a,f),e[r]=void 0,wt(t,a.elm,c.elm))),f=n[++l]);(s<=u||l<=d)&&(s>u?(o=null==n[d+1]?null:n[d+1].elm,Rt(t,o,n,l,d)):kt(t,e,s,u))}function Vt(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(Bt(t,e),Lt(e.text)?Et(i)&&Et(r)?i!==r&&zt(n,i,r):Et(r)?(Et(t.text)&&At(n,""),Rt(n,null,r,0,r.length-1)):Et(i)?kt(n,i,0,i.length-1):Et(t.text)&&At(n,""):t.text!==e.text&&(Et(i)&&kt(n,i,0,i.length-1),At(n,e.text)))}function Ft(t,e){if(Pt(t,e))Vt(t,e);else{var n=t.elm,i=Tt(n);Nt(e),null!==i&&(wt(i,e.elm,Mt(n)),kt(i,[t],0,0))}return e}var Gt=n("3437"),Ht=0,Ut=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=Wt("refreshHover"),this.configLayer=Wt("configLayer"),this.storage=e,this._opts=n=Object(_["m"])({},n),this.root=t,this._id="zr"+Ht++,this._oldVNode=B(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=L("svg");Bt(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Ft(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return mt(t,k(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,r=this._height,a=k(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var s=[];if(n&&"none"!==n){var l=Object(o["p"])(n),u=l.color,c=l.opacity;this._bgVNode=E("rect","bg",{width:i,height:r,x:"0",y:"0",id:"0",fill:u,"fill-opacity":c}),s.push(this._bgVNode)}else this._bgVNode=null;var h=t.compress?null:this._mainVNode=E("g","main",{},[]);this._paintList(e,a,h?h.children:s),h&&s.push(h);var d=Object(_["H"])(Object(_["F"])(a.defs),(function(t){return a.defs[t]}));if(d.length&&s.push(E("defs","defs",{},d)),t.animation){var f=R(a.cssNodes,a.cssAnims,{newline:!0});if(f){var p=E("style","stl",{},[],f);s.push(p)}}return B(i,r,s,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},N(this.renderToVNode({animation:Object(_["P"])(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(_["P"])(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var n=Object(o["p"])(t),i=n.color,r=n.opacity;e.elm.setAttribute("fill",i),r<1&&e.elm.setAttribute("fill-opacity",r)}},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,a=t.length,o=[],s=0,l=0,u=0;u<a;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,d=h&&h.length||0,f=r&&r.length||0,p=void 0;for(p=Math.max(d-1,f-1);p>=0;p--)if(h&&r&&h[p]===r[p])break;for(var g=f-1;g>p;g--)s--,i=o[s-1];for(var m=p+1;m<d;m++){var v={};bt(h[m],v,e);var y=E("g","clip-g-"+l++,v,[]);(i?i.children:n).push(y),o[s++]=y,i=y}r=h;var _=mt(c,e);_&&(i?i.children:n).push(_)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=Object(Gt["b"])(i,0,n),e=Object(Gt["b"])(i,1,n),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var a=r.style;a.width=t+"px",a.height=e+"px"}var o=this._svgDom;o&&(o.setAttribute("width",t),o.setAttribute("height",e))}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return t?(e=Object(o["c"])(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+e},t}();function Wt(t){return function(){0}}var Xt=Ut;function Zt(t){t.registerPainter("svg",Xt)}var qt=n("7fae"),Yt=n("1830"),Kt=n("4f85"),Qt=n("a15a"),Jt=n("2dc5"),$t=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(qt["a"])(e,t),e.prototype.getInitialData=function(t){return Object(Yt["a"])(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Jt["a"],n=Object(Qt["a"])("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),a="none"===i?"circle":i,o=.8*t.itemHeight,s=Object(Qt["a"])(a,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),a.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Kt["b"]),te=$t,ee=n("deab"),ne=n("2306"),ie=n("861c"),re=n("7d6c"),ae=n("2b17");function oe(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Object(ae["e"])(t,e,n[0]);return null!=r?r+"":null}if(i){for(var a=[],o=0;o<n.length;o++)a.push(Object(ae["e"])(t,e,n[o]));return a.join(" ")}}function se(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Object(_["t"])(e))return e+"";for(var i=[],r=0;r<n.length;r++){var a=t.getDimensionIndex(n[r]);a>=0&&i.push(e[a])}return i.join(" ")}var le=n("7837"),ue=function(t){function e(e,n,i,r){var a=t.call(this)||this;return a.updateData(e,n,i,r),a}return Object(qt["a"])(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var a=Object(Qt["a"])(t,-1,-1,2,2,null,r);a.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=ce,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Object(re["r"])(this.childAt(0))},e.prototype.downplay=function(){Object(re["C"])(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var a=t.getItemVisual(n,"symbol")||"circle",o=t.hostModel,s=e.getSymbolSize(t,n),l=a!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,s,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(d):ee["h"](h,d,o,n),Object(ee["g"])(h)}if(this._updateCommon(t,n,s,i,r),l){h=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,ee["c"](h,d,o,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var a,o,s,u,c,h,d,f,p,g=this.childAt(0),m=t.hostModel;if(i&&(a=i.emphasisItemStyle,o=i.blurItemStyle,s=i.selectItemStyle,u=i.focus,c=i.blurScope,d=i.labelStatesModels,f=i.hoverScale,p=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),y=v.getModel("emphasis");a=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),o=v.getModel(["blur","itemStyle"]).getItemStyle(),u=y.get("focus"),c=y.get("blurScope"),h=y.get("disabled"),d=Object(le["e"])(v),f=y.getShallow("scale"),p=v.getShallow("cursor")}var b=t.getItemVisual(e,"symbolRotate");g.attr("rotation",(b||0)*Math.PI/180||0);var x=Object(Qt["b"])(t.getItemVisual(e,"symbolOffset"),n);x&&(g.x=x[0],g.y=x[1]),p&&g.attr("cursor",p);var w=t.getItemVisual(e,"style"),O=w.fill;if(g instanceof l["a"]){var S=g.style;g.useStyle(Object(_["m"])({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},w))}else g.__isEmptyBrush?g.useStyle(Object(_["m"])({},w)):g.useStyle(w),g.style.decal=null,g.setColor(O,r&&r.symbolInnerColor),g.style.strokeNoScale=!0;var T=t.getItemVisual(e,"liftZ"),M=this._z2;null!=T?null==M&&(this._z2=g.z2,g.z2+=T):null!=M&&(g.z2=M,this._z2=null);var A=r&&r.useNameLabel;function C(e){return A?t.getName(e):oe(t,e)}Object(le["g"])(g,d,{labelFetcher:m,labelDataIndex:e,defaultText:C,inheritColor:O,defaultOpacity:w.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=g.ensureState("emphasis");if(I.style=a,g.ensureState("select").style=s,g.ensureState("blur").style=o,f){var D=Math.max(Object(_["z"])(f)?f:1.1,3/this._sizeY);I.scaleX=this._sizeX*D,I.scaleY=this._sizeY*D}this.setSymbolScale(1),Object(re["J"])(this,u,c,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Object(ie["a"])(this).dataIndex,a=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var o=i.getTextContent();o&&ee["e"](o,{style:{opacity:0}},e,{dataIndex:r,removeOpt:a,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ee["e"](i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:a})},e.getSymbolSize=function(t,e){return Object(Qt["c"])(t.getItemVisual(e,"symbolSize"))},e}(Jt["a"]);function ce(t,e){this.parent.drift(t,e)}var he=ue;function de(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function fe(t){return null==t||Object(_["A"])(t)||(t={isIgnore:t}),t||{}}function pe(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Object(le["e"])(e),cursorStyle:e.get("cursor")}}var ge=function(){function t(t){this.group=new Jt["a"],this._SymbolCtor=t||he}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=fe(e);var n=this.group,i=t.hostModel,r=this._data,a=this._SymbolCtor,o=e.disableAnimation,s=pe(t),l={disableAnimation:o},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(de(t,r,i,e)){var o=new a(t,i,s,l);o.setPosition(r),t.setItemGraphicEl(i,o),n.add(o)}})).update((function(c,h){var d=r.getItemGraphicEl(h),f=u(c);if(de(t,f,c,e)){var p=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),d=new a(t,c,s,l),d.setPosition(f);else{d.updateData(t,c,s,l);var m={x:f[0],y:f[1]};o?d.attr(m):ee["h"](d,m,i)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=pe(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=fe(n);for(var r=t.start;r<t.end;r++){var a=e.getItemLayout(r);if(de(e,a,r,n)){var o=new this._SymbolCtor(e,r,this._seriesScope);o.traverse(i),o.setPosition(a),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o)}}},t.prototype.eachRendered=function(t){ne["traverseElements"](this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}(),me=ge,ve=n("ee1a");function ye(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),a=_e(r,n),o=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(o),c="x"===s||"radius"===s?1:0,h=Object(_["H"])(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,f=e.getCalculationInfo("stackResultDimension");return Object(ve["c"])(e,h[0])&&(d=!0,h[0]=f),Object(ve["c"])(e,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function _e(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:Object(_["z"])(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function be(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=n.get(t.baseDim,i),o[1-a]=r,e.dataToPoint(o)}var xe=n("f658");function we(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function Oe(t,e,n,i,r,a,o,s){for(var l=we(t,e),u=[],c=[],h=[],d=[],f=[],p=[],g=[],m=ye(r,e,o),v=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var b=l[_],x=!0,w=void 0,O=void 0;switch(b.cmd){case"=":w=2*b.idx,O=2*b.idx1;var S=v[w],T=v[w+1],M=y[O],A=y[O+1];(isNaN(S)||isNaN(T))&&(S=M,T=A),u.push(S,T),c.push(M,A),h.push(n[w],n[w+1]),d.push(i[O],i[O+1]),g.push(e.getRawIndex(b.idx1));break;case"+":var C=b.idx,I=m.dataDimsForPoint,D=r.dataToPoint([e.get(I[0],C),e.get(I[1],C)]);O=2*C,u.push(D[0],D[1]),c.push(y[O],y[O+1]);var L=be(m,r,e,C);h.push(L[0],L[1]),d.push(i[O],i[O+1]),g.push(e.getRawIndex(C));break;case"-":x=!1}x&&(f.push(b),p.push(p.length))}p.sort((function(t,e){return g[t]-g[e]}));var E=u.length,j=Object(xe["a"])(E),P=Object(xe["a"])(E),N=Object(xe["a"])(E),R=Object(xe["a"])(E),k=[];for(_=0;_<p.length;_++){var B=p[_],z=2*_,V=2*B;j[z]=u[V],j[z+1]=u[V+1],P[z]=c[V],P[z+1]=c[V+1],N[z]=h[V],N[z+1]=h[V+1],R[z]=d[V],R[z+1]=d[V+1],k[_]=f[B]}return{current:j,next:P,stackedOnCurrent:N,stackedOnNext:R,status:k}}var Se=n("48a9"),Te=n("e0d3"),Me=n("4a3f"),Ae=Math.min,Ce=Math.max;function Ie(t,e){return isNaN(t)||isNaN(e)}function De(t,e,n,i,r,a,o,s,l){for(var u,c,h,d,f,p,g=n,m=0;m<i;m++){var v=e[2*g],y=e[2*g+1];if(g>=r||g<0)break;if(Ie(v,y)){if(l){g+=a;continue}break}if(g===n)t[a>0?"moveTo":"lineTo"](v,y),h=v,d=y;else{var _=v-u,b=y-c;if(_*_+b*b<.5){g+=a;continue}if(o>0){var x=g+a,w=e[2*x],O=e[2*x+1];while(w===v&&O===y&&m<i)m++,x+=a,g+=a,w=e[2*x],O=e[2*x+1],v=e[2*g],y=e[2*g+1],_=v-u,b=y-c;var S=m+1;if(l)while(Ie(w,O)&&S<i)S++,x+=a,w=e[2*x],O=e[2*x+1];var T=.5,M=0,A=0,C=void 0,I=void 0;if(S>=i||Ie(w,O))f=v,p=y;else{M=w-u,A=O-c;var D=v-u,L=w-v,E=y-c,j=O-y,P=void 0,N=void 0;if("x"===s){P=Math.abs(D),N=Math.abs(L);var R=M>0?1:-1;f=v-R*P*o,p=y,C=v+R*N*o,I=y}else if("y"===s){P=Math.abs(E),N=Math.abs(j);var k=A>0?1:-1;f=v,p=y-k*P*o,C=v,I=y+k*N*o}else P=Math.sqrt(D*D+E*E),N=Math.sqrt(L*L+j*j),T=N/(N+P),f=v-M*o*(1-T),p=y-A*o*(1-T),C=v+M*o*T,I=y+A*o*T,C=Ae(C,Ce(w,v)),I=Ae(I,Ce(O,y)),C=Ce(C,Ae(w,v)),I=Ce(I,Ae(O,y)),M=C-v,A=I-y,f=v-M*P/N,p=y-A*P/N,f=Ae(f,Ce(u,v)),p=Ae(p,Ce(c,y)),f=Ce(f,Ae(u,v)),p=Ce(p,Ae(c,y)),M=v-f,A=y-p,C=v+M*N/P,I=y+A*N/P}t.bezierCurveTo(h,d,f,p,v,y),h=C,d=I}else t.lineTo(v,y)}u=v,c=y,g+=a}return m}var Le=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),Ee=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return Object(qt["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Le},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0;r--)if(!Ie(n[2*r-2],n[2*r-1]))break;for(;i<r;i++)if(!Ie(n[2*i],n[2*i+1]))break}while(i<r)i+=De(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,a=r.data,o=F["a"].CMD,s="x"===e,l=[],u=0;u<a.length;){var c=a[u++],h=void 0,d=void 0,f=void 0,p=void 0,g=void 0,m=void 0,v=void 0;switch(c){case o.M:n=a[u++],i=a[u++];break;case o.L:if(h=a[u++],d=a[u++],v=s?(t-n)/(h-n):(t-i)/(d-i),v<=1&&v>=0){var y=s?(d-i)*v+i:(h-n)*v+n;return s?[t,y]:[y,t]}n=h,i=d;break;case o.C:h=a[u++],d=a[u++],f=a[u++],p=a[u++],g=a[u++],m=a[u++];var _=s?Object(Me["f"])(n,h,f,g,t,l):Object(Me["f"])(i,d,p,m,t,l);if(_>0)for(var b=0;b<_;b++){var x=l[b];if(x<=1&&x>=0){y=s?Object(Me["a"])(i,d,p,m,x):Object(Me["a"])(n,h,f,g,x);return s?[t,y]:[y,t]}}n=g,i=m;break}}},e}(s["b"]),je=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e}(Le),Pe=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return Object(qt["a"])(e,t),e.prototype.getDefaultShape=function(){return new je},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,a=n.length/2,o=e.smoothMonotone;if(e.connectNulls){for(;a>0;a--)if(!Ie(n[2*a-2],n[2*a-1]))break;for(;r<a;r++)if(!Ie(n[2*r],n[2*r+1]))break}while(r<a){var s=De(t,n,r,a,a,1,e.smooth,o,e.connectNulls);De(t,i,r+s-1,s,a,-1,e.stackedOnSmooth,o,e.connectNulls),r+=s+1,t.closePath()}},e}(s["b"]),Ne=n("e887"),Re=n("c7a2"),ke=n("4aa2"),Be=n("3842");function ze(t,e,n,i,r){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=n.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var h=new Re["a"]({shape:{x:o,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),f=d.isHorizontal(),p=d.inverse;f?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=u),h.shape.height=0);var g=Object(_["w"])(r)?function(t){r(t,h)}:null;ee["c"](h,{shape:{width:l,height:u,x:o,y:s}},n,null,i,g)}return h}function Ve(t,e,n){var i=t.getArea(),r=Object(Be["v"])(i.r0,1),a=Object(Be["v"])(i.r,1),o=new ke["a"]({shape:{cx:Object(Be["v"])(t.cx,1),cy:Object(Be["v"])(t.cy,1),r0:r,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?o.shape.endAngle=i.startAngle:o.shape.r=r,ee["c"](o,{shape:{endAngle:i.endAngle,r:a}},n)}return o}function Fe(t,e,n,i,r){return t?"polar"===t.type?Ve(t,e,n):"cartesian2d"===t.type?ze(t,e,n,i,r):null:null}function Ge(t,e){return t.type===e}var He=n("eda2"),Ue=n("41ef");function We(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function Xe(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,a=0;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||(e=Math.min(o,e),i=Math.max(o,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function Ze(t,e){var n=Xe(t),i=n[0],r=n[1],a=Xe(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function qe(t){return _["z"](t)?t:t?.5:0}function Ye(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=Object(xe["a"])(2*i),a=0;a<i;a++){var o=be(n,t,e,a);r[2*a]=o[0],r[2*a+1]=o[1]}return r}function Ke(t,e,n,i){var r=e.getBaseAxis(),a="x"===r.dim||"radius"===r.dim?0:1,o=[],s=0,l=[],u=[],c=[],h=[];if(i){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],o.push(u[0],u[1]),n){case"end":l[a]=c[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var d=(u[a]+c[a])/2,f=[];l[a]=f[a]=d,l[1-a]=u[1-a],f[1-a]=c[1-a],o.push(l[0],l[1]),o.push(f[0],f[1]);break;default:l[a]=u[a],l[1-a]=c[1-a],o.push(l[0],l[1])}return o.push(t[s++],t[s++]),o}function Qe(t,e){var n,i,r=[],a=t.length;function o(t,e,n){var i=t.coord,r=(n-i)/(e.coord-i),a=Object(Ue["lerp"])(r,[t.color,e.color]);return{coord:n,color:a}}for(var s=0;s<a;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){i?r.push(o(i,l,e)):n&&r.push(o(n,l,0),o(n,l,e));break}n&&(r.push(o(n,l,0)),n=null),r.push(l),i=l}}return r}function Je(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,a,o=i.length-1;o>=0;o--){var s=t.getDimensionInfo(i[o].dimension);if(r=s&&s.coordDim,"x"===r||"y"===r){a=i[o];break}}if(a){var l=e.getAxis(r),u=_["H"](a.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=Qe(u,"x"===r?n.getWidth():n.getHeight()),f=d.length;if(!f&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=10,g=d[0].coord-p,m=d[f-1].coord+p,v=m-g;if(v<.001)return"transparent";_["k"](d,(function(t){t.offset=(t.coord-g)/v})),d.push({offset:f?d[f-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:h[0]||"transparent"});var y=new Se["a"](0,0,0,0,d,!0);return y[r]=g,y[r+"2"]=m,y}}}function $e(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var a=n.getAxesByScale("ordinal")[0];if(a&&(!r||!tn(a,e))){var o=e.mapDimension(a.dim),s={};return _["k"](a.getViewLabels(),(function(t){var e=a.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(o,t))}}}}function tn(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),a=Math.max(1,Math.round(r/5)),o=0;o<r;o+=a)if(1.5*he.getSymbolSize(e,o)[t.isHorizontal()?1:0]>i)return!1;return!0}function en(t,e){return isNaN(t)||isNaN(e)}function nn(t){for(var e=t.length/2;e>0;e--)if(!en(t[2*e-2],t[2*e-1]))break;return e-1}function rn(t,e){return[t[2*e],t[2*e+1]]}function an(t,e,n){for(var i,r,a=t.length/2,o="x"===n?0:1,s=0,l=-1,u=0;u<a;u++)if(r=t[2*u+o],!isNaN(r)&&!isNaN(t[2*u+1-o]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}function on(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<re["g"].length;e++)if(t.get([re["g"][e],"endLabel","show"]))return!0;return!1}function sn(t,e,n,i){if(Ge(e,"cartesian2d")){var r=i.getModel("endLabel"),a=r.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=on(i)?function(n,i){t._endLabelOnDuring(n,i,o,s,a,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=ze(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return Ve(e,n,i)}function ln(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,a=i?r?"right":"left":"center",o=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var un=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.prototype.init=function(){var t=new Jt["a"],e=new me;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,a=this.group,o=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=o.getLayout("points")||[],c="polar"===r.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=t.get("animation"),v=!l.isEmpty(),y=l.get("origin"),b=ye(r,o,y),x=v&&Ye(r,o,b),w=t.get("showSymbol"),O=t.get("connectNulls"),S=w&&!c&&$e(t,o,r),T=this._data;T&&T.eachItemGraphicEl((function(t,e){t.__temp&&(a.remove(t),T.setItemGraphicEl(e,null))})),w||d.remove(),a.add(g);var M,A=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(M=r.getArea(),null!=M.width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var C=Je(o,r,n)||o.getVisual("style")[o.getVisual("drawType")];if(f&&h.type===r.type&&A===this._step){v&&!p?p=this._newPolygon(u,x):p&&!v&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,Object(He["c"])(C));var I=g.getClipPath();if(I){var D=sn(this,r,!1,t);ee["c"](I,{shape:D.shape},t)}else g.setClipPath(sn(this,r,!0,t));w&&d.updateData(o,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),We(this._stackedOnPoints,x)&&We(this._points,u)||(m?this._doUpdateAnimation(o,x,r,n,A,y,O):(A&&(u=Ke(u,r,A,O),x&&(x=Ke(x,r,A,O))),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:x})))}else w&&d.updateData(o,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),m&&this._initSymbolLabelAnimation(o,r,M),A&&(u=Ke(u,r,A,O),x&&(x=Ke(x,r,A,O))),f=this._newPolyline(u),v?p=this._newPolygon(u,x):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,Object(He["c"])(C)),g.setClipPath(sn(this,r,!0,t));var L=t.getModel("emphasis"),E=L.get("focus"),j=L.get("blurScope"),P=L.get("disabled");if(f.useStyle(_["i"](s.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),Object(re["I"])(f,t,"lineStyle"),f.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var N=f.getState("emphasis").style;N.lineWidth=+f.style.lineWidth+1}Object(ie["a"])(f).seriesIndex=t.seriesIndex,Object(re["J"])(f,E,j,P);var R=qe(t.get("smooth")),k=t.get("smoothMonotone");if(f.setShape({smooth:R,smoothMonotone:k,connectNulls:O}),p){var B=o.getCalculationInfo("stackedOnSeries"),z=0;p.useStyle(_["i"](l.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),B&&(z=qe(B.get("smooth"))),p.setShape({smooth:R,stackedOnSmooth:z,smoothMonotone:k,connectNulls:O}),Object(re["I"])(p,t,"areaStyle"),Object(ie["a"])(p).seriesIndex=t.seriesIndex,Object(re["J"])(p,E,j,P)}var V=function(t){i._changePolyState(t)};o.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=V)})),this._polyline.onHoverStateChange=V,this._data=o,this._coordSys=r,this._stackedOnPoints=x,this._points=u,this._step=A,this._valueOrigin=y,t.get("triggerLineEvent")&&(this.packEventData(t,f),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){Object(ie["a"])(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),a=Te["u"](r,i);if(this._changePolyState("emphasis"),!(a instanceof Array)&&null!=a&&a>=0){var o=r.getLayout("points"),s=r.getItemGraphicEl(a);if(!s){var l=o[2*a],u=o[2*a+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel"),h=t.get("z");s=new he(r,a),s.x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Ne["a"].prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),a=Te["u"](r,i);if(this._changePolyState("normal"),null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else Ne["a"].prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Object(re["H"])(this._polyline,t),e&&Object(re["H"])(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Ee({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Pe({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,a=e.getBaseAxis(),o=a.inverse;"cartesian2d"===e.type?(i=a.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===a.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");_["w"](l)&&(l=l(null));var u=s.get("animationDelay")||0,c=_["w"](u)?u(null):u;t.eachItemGraphicEl((function(t,a){var s=t;if(s){var h=[t.x,t.y],d=void 0,f=void 0,p=void 0;if(n)if(r){var g=n,m=e.pointToCoord(h);i?(d=g.startAngle,f=g.endAngle,p=-m[1]/180*Math.PI):(d=g.r0,f=g.r,p=m[0])}else{var v=n;i?(d=v.x,f=v.x+v.width,p=t.x):(d=v.y+v.height,f=v.y,p=t.y)}var y=f===d?0:(p-d)/(f-d);o&&(y=1-y);var b=_["w"](u)?u(a):l*y+c,x=s.getSymbolPath(),w=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:b}),x.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(on(t)){var r=t.getData(),a=this._polyline,o=r.getLayout("points");if(!o)return a.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new $["a"]({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var l=nn(o);l>=0&&(Object(le["g"])(a,Object(le["e"])(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?se(r,n):oe(r,t)},enableTextSetter:!0},ln(i,e)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,a,o){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=a.get("precision"),f=a.get("distance")||0,p=o.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,v=e.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?f:0)*(m?-1:1),b=(g?0:-f)*(m?-1:1),x=g?"x":"y",w=an(u,y,x),O=w.range,S=O[1]-O[0],T=void 0;if(S>=1){if(S>1&&!h){var M=rn(u,O[0]);s.attr({x:M[0]+_,y:M[1]+b}),r&&(T=c.getRawValue(O[0]))}else{M=l.getPointOn(y,x);M&&s.attr({x:M[0]+_,y:M[1]+b});var A=c.getRawValue(O[0]),C=c.getRawValue(O[1]);r&&(T=Te["k"](n,d,A,C,w.t))}i.lastFrameIndex=O[0]}else{var I=1===t||i.lastFrameIndex>0?O[0]:0;M=rn(u,I);r&&(T=c.getRawValue(I)),s.attr({x:M[0]+_,y:M[1]+b})}r&&Object(le["f"])(s).setLabelText(T)}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,a,o){var s=this._polyline,l=this._polygon,u=t.hostModel,c=Oe(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,a),h=c.current,d=c.stackedOnCurrent,f=c.next,p=c.stackedOnNext;if(r&&(h=Ke(c.current,n,r,o),d=Ke(c.stackedOnCurrent,n,r,o),f=Ke(c.next,n,r,o),p=Ke(c.stackedOnNext,n,r,o)),Ze(h,f)>3e3||l&&Ze(d,p)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:f}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),ee["h"](s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),ee["h"](l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=c.status,y=0;y<v.length;y++){var _=v[y].cmd;if("="===_){var b=t.getItemGraphicEl(v[y].idx1);b&&m.push({el:b,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<m.length;e++){var n=m[e].el,i=2*m[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Ne["a"]),cn=un,hn=n("cccd");function dn(t,e){return{seriesType:t,plan:Object(hn["a"])(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,a=e||r.large;if(i){var o=Object(_["H"])(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=o.length,l=n.getCalculationInfo("stackResultDimension");Object(ve["c"])(n,o[0])&&(o[0]=l),Object(ve["c"])(n,o[1])&&(o[1]=l);var u=n.getStore(),c=n.getDimensionIndex(o[0]),h=n.getDimensionIndex(o[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=a&&Object(xe["a"])(n*s),o=[],l=[],d=t.start,f=0;d<t.end;d++){var p=void 0;if(1===s){var g=u.get(c,d);p=i.dataToPoint(g,null,l)}else o[0]=u.get(c,d),o[1]=u.get(h,d),p=i.dataToPoint(o,null,l);a?(r[f++]=p[0],r[f++]=p[1]):e.setItemLayout(d,p.slice())}a&&e.setLayout("points",r)}}}}}}var fn={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},pn=function(t){return Math.round(t.length/2)};function gn(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,o=i.count();if(o>10&&"cartesian2d"===a.type&&r){var s=a.getBaseAxis(),l=a.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(o/h);if(isFinite(d)&&d>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var f=void 0;Object(_["C"])(r)?f=fn[r]:Object(_["w"])(r)&&(f=r),f&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,f,pn))}}}}}function mn(t){t.registerChartView(cn),t.registerSeriesModel(te),t.registerLayout(dn("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,gn("line"))}var vn=n("9d57"),yn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(Yt["a"])(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),a=i.getLayout("size"),o=e.getBaseAxis().isHorizontal()?0:1;return n[o]+=r+a/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Kt["b"]);Kt["b"].registerClass(yn);var _n=yn,bn=n("8918"),xn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.getInitialData=function(){return Object(Yt["a"])(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Object(bn["d"])(_n.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(_n),wn=xn,On=n("88b3"),Sn=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),Tn=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return Object(qt["a"])(e,t),e.prototype.getDefaultShape=function(){return new Sn},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=.5*(a-r),s=r+o,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var f=Math.cos(l),p=Math.sin(l),g=Math.cos(u),m=Math.sin(u);d?(t.moveTo(f*r+n,p*r+i),t.arc(f*s+n,p*s+i,o,-Math.PI+l,l,!c)):t.moveTo(f*a+n,p*a+i),t.arc(n,i,a,l,u,!c),t.arc(g*s+n,m*s+i,o,u-2*Math.PI,u-Math.PI,!c),0!==r&&t.arc(n,i,r,u,l,c)},e}(s["b"]),Mn=Tn;function An(t,e){e=e||{};var n=e.isRoundCap;return function(e,i,r){var a=i.position;if(!a||a instanceof Array)return Object(u["c"])(e,i,r);var o=t(a),s=null!=i.distance?i.distance:5,l=this.shape,c=l.cx,h=l.cy,d=l.r,f=l.r0,p=(d+f)/2,g=l.startAngle,m=l.endAngle,v=(g+m)/2,y=n?Math.abs(d-f)/2:0,_=Math.cos,b=Math.sin,x=c+d*_(g),w=h+d*b(g),O="left",S="top";switch(o){case"startArc":x=c+(f-s)*_(v),w=h+(f-s)*b(v),O="center",S="top";break;case"insideStartArc":x=c+(f+s)*_(v),w=h+(f+s)*b(v),O="center",S="bottom";break;case"startAngle":x=c+p*_(g)+In(g,s+y,!1),w=h+p*b(g)+Dn(g,s+y,!1),O="right",S="middle";break;case"insideStartAngle":x=c+p*_(g)+In(g,-s+y,!1),w=h+p*b(g)+Dn(g,-s+y,!1),O="left",S="middle";break;case"middle":x=c+p*_(v),w=h+p*b(v),O="center",S="middle";break;case"endArc":x=c+(d+s)*_(v),w=h+(d+s)*b(v),O="center",S="bottom";break;case"insideEndArc":x=c+(d-s)*_(v),w=h+(d-s)*b(v),O="center",S="top";break;case"endAngle":x=c+p*_(m)+In(m,s+y,!0),w=h+p*b(m)+Dn(m,s+y,!0),O="left",S="middle";break;case"insideEndAngle":x=c+p*_(m)+In(m,-s+y,!0),w=h+p*b(m)+Dn(m,-s+y,!0),O="right",S="middle";break;default:return Object(u["c"])(e,i,r)}return e=e||{},e.x=x,e.y=w,e.align=O,e.verticalAlign=S,e}}function Cn(t,e,n,i){if(Object(_["z"])(i))t.setTextConfig({rotation:i});else if(Object(_["t"])(e))t.setTextConfig({rotation:0});else{var r,a=t.shape,o=a.clockwise?a.startAngle:a.endAngle,s=a.clockwise?a.endAngle:a.startAngle,l=(o+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=o;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}function In(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Dn(t,e,n){return e*Math.cos(t)*(n?1:-1)}var Ln=Math.max,En=Math.min;function jn(t,e){var n=t.getArea&&t.getArea();if(Ge(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var Pn=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Object(ne["traverseElements"])(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,a=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=kn(t,l);h&&this._enableRealtimeSort(h,o,n);var d=t.get("clip",!0)||h,f=jn(l,o);a.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],_=this._backgroundEls,b=i&&i.isInitSort,x=i&&"changeAxisOrder"===i.type;function w(t){var e=Hn[l.type](o,t),n=ti(l,r,e);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",v),y[t]=n,n}o.diff(s).add((function(e){var n=o.getItemModel(e),i=Hn[l.type](o,e,n);if(g&&w(e),o.hasValue(e)&&Gn[l.type](i)){var s=!1;d&&(s=Nn[l.type](f,i));var m=Rn[l.type](t,o,e,i,r,c,u.model,!1,p);h&&(m.forceLabelAnimation=!0),Xn(m,o,e,n,i,t,r,"polar"===l.type),b?m.attr({shape:i}):h?Bn(h,c,m,i,e,r,!1,!1):Object(ee["c"])(m,{shape:i},t,e),o.setItemGraphicEl(e,m),a.add(m),m.ignore=s}})).update((function(e,n){var i=o.getItemModel(e),O=Hn[l.type](o,e,i);if(g){var S=void 0;0===_.length?S=w(n):(S=_[n],S.useStyle(m.getItemStyle()),"cartesian2d"===l.type&&S.setShape("r",v),y[e]=S);var T=Hn[l.type](o,e),M=$n(r,T,l);Object(ee["h"])(S,{shape:M},c,e)}var A=s.getItemGraphicEl(n);if(o.hasValue(e)&&Gn[l.type](O)){var C=!1;if(d&&(C=Nn[l.type](f,O),C&&a.remove(A)),A?Object(ee["g"])(A):A=Rn[l.type](t,o,e,O,r,c,u.model,!!A,p),h&&(A.forceLabelAnimation=!0),x){var I=A.getTextContent();if(I){var D=Object(le["f"])(I);null!=D.prevValue&&(D.prevValue=D.value)}}else Xn(A,o,e,i,O,t,r,"polar"===l.type);b?A.attr({shape:O}):h?Bn(h,c,A,O,e,r,!0,x):Object(ee["h"])(A,{shape:O},t,e,null),o.setItemGraphicEl(e,A),A.ignore=C,a.add(A)}else a.remove(A)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&Object(ee["f"])(n,t,e)})).execute();var O=this._backgroundGroup||(this._backgroundGroup=new Jt["a"]);O.removeAll();for(var S=0;S<y.length;++S)O.add(y[S]);a.add(O),this._backgroundEls=y,this._data=o},e.prototype._renderLarge=function(t,e,n){this._clear(),Kn(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),Kn(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&Fe(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var a=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,a,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Object(_["H"])(i,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=i.getOrdinalMeta().categories.length;o<s;++o){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(o)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>a)return!0;a=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),a=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=a;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Object(ee["f"])(e,t,Object(ie["a"])(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Ne["a"]),Nn={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,a=t.y+t.height,o=Ln(e.x,t.x),s=En(e.x+e.width,r),l=Ln(e.y,t.y),u=En(e.y+e.height,a),c=s<o,h=u<l;return e.x=c&&o>r?s:o,e.y=h&&l>a?u:l,e.width=c?0:s-o,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=En(e.r,t.r),a=Ln(e.r0,t.r0);e.r=r,e.r0=a;var o=r-a<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return o}},Rn={cartesian2d:function(t,e,n,i,r,a,o,s,l){var u=new Re["a"]({shape:Object(_["m"])({},i),z2:1});if(u.__dataIndex=n,u.name="item",a){var c=u.shape,h=r?"height":"width";c[h]=0}return u},polar:function(t,e,n,i,r,a,o,s,l){var u=!r&&l?Mn:ke["a"],c=new u({shape:i,z2:1});c.name="item";var h=Wn(r);if(c.calculateTextPosition=An(h,{isRoundCap:u===Mn}),a){var d=c.shape,f=r?"r":"endAngle",p={};d[f]=r?0:i.startAngle,p[f]=i[f],(s?ee["h"]:ee["c"])(c,{shape:p},a)}return c}};function kn(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function Bn(t,e,n,i,r,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?ee["h"]:ee["c"])(n,{shape:l},e,r,null);var c=e?t.baseAxis.model:null;(o?ee["h"]:ee["c"])(n,{shape:u},c,r)}function zn(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var Vn=["x","y","width","height"],Fn=["cx","cy","r","startAngle","endAngle"],Gn={cartesian2d:function(t){return!zn(t,Vn)},polar:function(t){return!zn(t,Fn)}},Hn={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?Zn(n,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*r/2,y:i.y+o*r/2,width:i.width-a*r,height:i.height-o*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function Un(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function Wn(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function Xn(t,e,n,i,r,a,o,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",i.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=i.getShallow("cursor");u&&t.attr("cursor",u);var c=s?o?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":o?r.height>=0?"bottom":"top":r.width>=0?"right":"left",h=Object(le["e"])(i);Object(le["g"])(t,h,{labelFetcher:a,labelDataIndex:n,defaultText:oe(a.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=t.getTextContent();if(s&&d){var f=i.get(["label","position"]);t.textConfig.inside="middle"===f||null,Cn(t,"outside"===f?c:f,Wn(o),i.get(["label","rotate"]))}Object(le["h"])(d,h,a.getRawValue(n),(function(t){return se(e,t)}));var p=i.getModel(["emphasis"]);Object(re["J"])(t,p.get("focus"),p.get("blurScope"),p.get("disabled")),Object(re["I"])(t,i),Un(r)&&(t.style.fill="none",t.style.stroke="none",Object(_["k"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function Zn(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,a)}var qn=function(){function t(){}return t}(),Yn=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return Object(qt["a"])(e,t),e.prototype.getDefaultShape=function(){return new qn},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,l=0;l<n.length;l+=3)o[i]=s,o[r]=n[l+2],a[i]=n[l+i],a[r]=n[l+r],t.rect(a[0],a[1],o[0],o[1])},e}(s["b"]);function Kn(t,e,n,i){var r=t.getData(),a=r.getLayout("valueAxisHorizontal")?1:0,o=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new Yn({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var h=new Yn({shape:{points:r.getLayout("largePoints")},incremental:!!i,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(r.getVisual("style")),Object(ie["a"])(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",Qn),h.on("mousemove",Qn)),n&&n.push(h)}var Qn=Object(On["c"])((function(t){var e=this,n=Jn(e,t.offsetX,t.offsetY);Object(ie["a"])(e).dataIndex=n>=0?n:null}),30,!1);function Jn(t,e,n){for(var i=t.baseDimIdx,r=1-i,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=a.length/3;c<h;c++){var d=3*c;if(l[i]=u,l[r]=a[d+2],s[i]=a[d+i],s[r]=a[d+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}function $n(t,e,n){if(Ge(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}r=n.getArea();var a=e;return{cx:r.cx,cy:r.cy,r0:t?r.r0:a.r0,r:t?r.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:2*Math.PI}}function ti(t,e,n){var i="polar"===t.type?ke["a"]:Re["a"];return new i({shape:$n(e,n,t),silent:!0,z2:0})}var ei=Pn;function ni(t){t.registerChartView(ei),t.registerSeriesModel(wn),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,_["h"](vn["c"],"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(vn["a"])("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,gn("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var ii=n("f3bb"),ri=n("f934"),ai=2*Math.PI,oi=Math.PI/180;function si(t,e){return ri["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function li(t,e){var n=si(t,e),i=t.get("center"),r=t.get("radius");_["t"](r)||(r=[0,r]),_["t"](i)||(i=[i,i]);var a=Object(Be["p"])(n.width,e.getWidth()),o=Object(Be["p"])(n.height,e.getHeight()),s=Math.min(a,o),l=Object(Be["p"])(i[0],a)+n.x,u=Object(Be["p"])(i[1],o)+n.y,c=Object(Be["p"])(r[0],s/2),h=Object(Be["p"])(r[1],s/2);return{cx:l,cy:u,r0:c,r:h}}function ui(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=si(t,n),a=li(t,n),o=a.cx,s=a.cy,l=a.r,u=a.r0,c=-t.get("startAngle")*oi,h=t.get("minAngle")*oi,d=0;e.each(i,(function(t){!isNaN(t)&&d++}));var f=e.getSum(i),p=Math.PI/(f||d)*2,g=t.get("clockwise"),m=t.get("roseType"),v=t.get("stillShowZeroSum"),y=e.getDataExtent(i);y[0]=0;var _=ai,b=0,x=c,w=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:o,cy:s,r0:u,r:m?NaN:l});else{i="area"!==m?0===f&&v?p:t*p:ai/d,i<h?(i=h,_-=h):b+=t;var r=x+w*i;e.setItemLayout(n,{angle:i,startAngle:x,endAngle:r,clockwise:g,cx:o,cy:s,r0:u,r:m?Object(Be["l"])(t,y,[u,l]):l}),x=r}})),_<ai&&d)if(_<=.001){var O=ai/d;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=O,i.startAngle=c+w*n*O,i.endAngle=c+w*(n+1)*O}}))}else p=_/b,x=c,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===h?h:t*p;i.startAngle=x,i.endAngle=x+w*r,x+=w*r}}))}))}function ci(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}var hi=n("d498"),di=n("dce8"),fi=n("89b6"),pi=n("2355"),gi=Math.PI/180;function mi(t,e,n,i,r,a,o,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}Object(pi["d"])(t,l,l+o)&&p(t)}function f(t){for(var a=t.rB,o=a*a,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=i+l.len,h=c*c,d=Math.sqrt((1-Math.abs(u*u/o))*h),f=e+(d+l.len2)*r,p=f-l.label.x,g=l.targetTextWidth-p*r;yi(l,g,!0),l.label.x=f}}function p(t){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?o:a,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*r,d=i+l.len,p=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=p,u.maxY=c}u.list.push(l)}f(a),f(o)}}function vi(t,e,n,i,r,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var f=t[d].label;_i(t[d])||(f.x<e?(c=Math.min(c,f.x),l.push(t[d])):(h=Math.max(h,f.x),u.push(t[d])))}for(d=0;d<t.length;d++){var p=t[d];if(!_i(p)&&p.linePoints){if(null!=p.labelStyleWidth)continue;f=p.label;var g=p.linePoints,m=void 0;m="edge"===p.labelAlignTo?f.x<e?g[2][0]-p.labelDistance-o-p.edgeDistance:o+r-p.edgeDistance-g[2][0]-p.labelDistance:"labelLine"===p.labelAlignTo?f.x<e?c-o-p.bleedMargin:o+r-h-p.bleedMargin:f.x<e?f.x-o-p.bleedMargin:o+r-f.x-p.bleedMargin,p.targetTextWidth=m,yi(p,m)}}mi(u,e,n,i,1,r,a,o,s,h),mi(l,e,n,i,-1,r,a,o,s,c);for(d=0;d<t.length;d++){p=t[d];if(!_i(p)&&p.linePoints){f=p.label,g=p.linePoints;var v="edge"===p.labelAlignTo,y=f.style.padding,_=y?y[1]+y[3]:0,b=f.style.backgroundColor?0:_,x=p.rect.width+b,w=g[1][0]-g[2][0];v?f.x<e?g[2][0]=o+p.edgeDistance+x+p.labelDistance:g[2][0]=o+r-p.edgeDistance-x-p.labelDistance:(f.x<e?g[2][0]=f.x+p.labelDistance:g[2][0]=f.x-p.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=f.y}}}function yi(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,r=i.style,a=t.rect,o=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=a.width+(o?0:l);if(e<c||n){var h=a.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",o)}else{var f=e-l,p=e<c?f:n?f>t.unconstrainedWidth?null:f:null;i.setStyle("width",p)}var g=i.getBoundingRect();a.width=g.width;var m=(i.style.margin||0)+2.1;a.height=g.height+m,a.y-=(a.height-h)/2}}}function _i(t){return"center"===t.position}function bi(t){var e,n,i=t.getData(),r=[],a=!1,o=(t.get("minShowLabelAngle")||0)*gi,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function f(t){t.ignore=!0}function p(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}i.each((function(t){var s=i.getItemGraphicEl(t),h=s.shape,d=s.getTextContent(),g=s.getTextGuideLine(),m=i.getItemModel(t),v=m.getModel("label"),y=v.get("position")||m.get(["emphasis","label","position"]),b=v.get("distanceToLabelLine"),x=v.get("alignTo"),w=Object(Be["p"])(v.get("edgeDistance"),u),O=v.get("bleedMargin"),S=m.getModel("labelLine"),T=S.get("length");T=Object(Be["p"])(T,u);var M=S.get("length2");if(M=Object(Be["p"])(M,u),Math.abs(h.endAngle-h.startAngle)<o)return Object(_["k"])(d.states,f),void(d.ignore=!0);if(p(d)){var A,C,I,D,L=(h.startAngle+h.endAngle)/2,E=Math.cos(L),j=Math.sin(L);e=h.cx,n=h.cy;var P="inside"===y||"inner"===y;if("center"===y)A=h.cx,C=h.cy,D="center";else{var N=(P?(h.r+h.r0)/2*E:h.r*E)+e,R=(P?(h.r+h.r0)/2*j:h.r*j)+n;if(A=N+3*E,C=R+3*j,!P){var k=N+E*(T+l-h.r),B=R+j*(T+l-h.r),z=k+(E<0?-1:1)*M,V=B;A="edge"===x?E<0?c+w:c+u-w:z+(E<0?-b:b),C=V,I=[[N,R],[k,B],[z,V]]}D=P?"center":"edge"===x?E>0?"right":"left":E>0?"left":"right"}var F=Math.PI,G=0,H=v.get("rotate");if(Object(_["z"])(H))G=H*(F/180);else if("center"===y)G=0;else if("radial"===H||!0===H){var U=E<0?-L+F:-L;G=U}else if("tangential"===H&&"outside"!==y&&"outer"!==y){var W=Math.atan2(E,j);W<0&&(W=2*F+W);var X=j>0;X&&(W=F+W),G=W-F}if(a=!!G,d.x=A,d.y=C,d.rotation=G,d.setStyle({verticalAlign:"middle"}),P){d.setStyle({align:D});var Z=d.states.select;Z&&(Z.x+=d.x,Z.y+=d.y)}else{var q=d.getBoundingRect().clone();q.applyTransform(d.getComputedTransform());var Y=(d.style.margin||0)+2.1;q.y-=Y/2,q.height+=Y,r.push({label:d,labelLine:g,position:y,len:T,len2:M,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new di["a"](E,j),linePoints:I,textAlign:D,labelDistance:b,labelAlignTo:x,edgeDistance:w,bleedMargin:O,rect:q,unconstrainedWidth:q.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:P})}})),!a&&t.get("avoidLabelOverlap")&&vi(r,e,n,l,u,d,c,h);for(var g=0;g<r.length;g++){var m=r[g],v=m.label,y=m.labelLine,b=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:m.textAlign}),b&&(Object(_["k"])(v.states,f),v.ignore=!0);var x=v.states.select;x&&(x.x+=v.x,x.y+=v.y)}if(y){var w=m.linePoints;b||!w?(Object(_["k"])(y.states,f),y.ignore=!0):(Object(fi["c"])(w,m.minTurnAngle),Object(fi["b"])(w,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:w}),v.__hostTarget.textGuideLineConfig={anchor:new di["a"](w[0][0],w[0][1])})}}}function xi(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Object(_["t"])(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(_["H"])(i,(function(t){return Object(u["g"])(t,r)}))}}var wi=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var a=new $["a"];return r.setTextContent(a),r.updateData(e,n,i,!0),r}return Object(qt["a"])(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,a=t.hostModel,o=t.getItemModel(e),s=o.getModel("emphasis"),l=t.getItemLayout(e),u=Object(_["m"])(xi(o.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=a.getShallow("animationType");a.ecModel.ssr?(ee["c"](r,{scaleX:0,scaleY:0},a,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,ee["c"](r,{shape:{r:l.r}},a,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),ee["c"](r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},a,e)):(r.shape.endAngle=l.startAngle,ee["h"](r,{shape:{endAngle:l.endAngle}},a,e))}else Object(ee["g"])(r),ee["h"](r,{shape:u},a,e);r.useStyle(t.getItemVisual(e,"style")),Object(re["I"])(r,o);var h=(l.startAngle+l.endAngle)/2,d=a.get("selectedOffset"),f=Math.cos(h)*d,p=Math.sin(h)*d,g=o.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(a,t,e),r.ensureState("emphasis").shape=Object(_["m"])({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},xi(s.getModel("itemStyle"),l)),Object(_["m"])(r.ensureState("select"),{x:f,y:p,shape:xi(o.getModel(["select","itemStyle"]),l)}),Object(_["m"])(r.ensureState("blur"),{shape:xi(o.getModel(["blur","itemStyle"]),l)});var m=r.getTextGuideLine(),v=r.getTextContent();m&&Object(_["m"])(m.ensureState("select"),{x:f,y:p}),Object(_["m"])(v.ensureState("select"),{x:f,y:p}),Object(re["J"])(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),a=r.getModel("labelLine"),o=e.getItemVisual(n,"style"),s=o&&o.fill,l=o&&o.opacity;Object(le["g"])(i,Object(le["e"])(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new hi["a"],this.setTextGuideLine(h)),Object(fi["d"])(this,Object(fi["a"])(r),{stroke:s,opacity:Object(_["Q"])(a.get(["lineStyle","opacity"]),l,1)})}},e}(ke["a"]),Oi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n,i){var r,a=t.getData(),o=this._data,s=this.group;if(!o&&a.count()>0){for(var l=a.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<a.count();++u)l=a.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===a.count()&&t.get("showEmptyCircle")){var c=new ke["a"]({shape:li(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}a.diff(o).add((function(t){var e=new wi(a,t,r);a.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=o.getItemGraphicEl(e);n.updateData(a,t,r),n.off("click"),s.add(n),a.setItemGraphicEl(t,n)})).remove((function(e){var n=o.getItemGraphicEl(e);ee["f"](n,t,e)})).execute(),bi(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=a)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,a=t[1]-i.cy,o=Math.sqrt(r*r+a*a);return o<=i.r&&o>=i.r0}},e.type="pie",e}(Ne["a"]),Si=Oi,Ti=n("b1d4"),Mi=n("b682");function Ai(t,e,n){e=Object(_["t"])(e)&&{coordDimensions:e}||Object(_["m"])({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=Object(Ti["b"])(i,e).dimensions,a=new Mi["a"](r,t);return a.initData(i,n),a}var Ci=n("0f99"),Ii=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),Di=Ii,Li=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Di(_["c"](this.getData,this),_["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Ai(this,{coordDimensions:["value"],encodeDefaulter:_["h"](Ci["d"],this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=[];return n.each(n.mapDimension("value"),(function(t){r.push(t)})),i.percent=Object(Be["e"])(r,e,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},e.prototype._defaultLabelLine=function(t){Te["f"](t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Kt["b"]),Ei=Li;function ji(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Object(_["z"])(i)&&!isNaN(i)&&i<0)}))}}}function Pi(t){t.registerChartView(Si),t.registerSeriesModel(Ei),Object(ii["a"])("pie",t.registerAction),t.registerLayout(Object(_["h"])(ui,"pie")),t.registerProcessor(ci("pie")),t.registerProcessor(ji("pie"))}var Ni=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(qt["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(Yt["a"])(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Kt["b"]),Ri=Ni,ki=n("9850"),Bi=4,zi=function(){function t(){}return t}(),Vi=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(qt["a"])(e,t),e.prototype.getDefaultShape=function(){return new zi},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,a=this.symbolProxy,o=a.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<Bi,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(o.x=c-r[0]/2,o.y=h-r[1]/2,o.width=r[0],o.height=r[1],a.buildPath(t,o,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,r=this._ctx,a=this.softClipShape;if(r){for(t=this._off;t<n.length;){var o=n[t++],s=n[t++];isNaN(o)||isNaN(s)||(a&&!a.contain(o,s)||r.fillRect(o-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,a=Math.max(r[0],4),o=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-a/2,c=i[l+1]-o/2;if(t>=u&&e>=c&&t<=u+a&&e<=c+o)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],a=i[1],o=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],d=n[c++];o=Math.min(h,o),l=Math.max(h,l),s=Math.min(d,s),u=Math.max(d,u)}t=this._rect=new ki["a"](o-r/2,s-a/2,l-o+r,u-s+a)}return t},e}(s["b"]),Fi=function(){function t(){this.group=new Jt["a"]}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("points"),a=i&&i.shape.points;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+r.length);s.set(a),s.set(r,o),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new Vi({cursor:"default"});return this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=Object(Qt["a"])(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<Bi;t.useStyle(i.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var o=e.getVisual("style"),s=o&&o.fill;s&&t.setColor(s);var l=Object(ie["a"])(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),Gi=Fi,Hi=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=dn("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new Gi:new me,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Ne["a"]),Ui=Hi,Wi=n("b12f"),Xi=n("6cb7"),Zi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Xi["a"]),qi=Zi,Yi=n("2023"),Ki=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Te["b"]).models[0]},e.type="cartesian2dAxis",e}(Xi["a"]);_["K"](Ki,Yi["a"]);var Qi={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)"]}}},Ji=_["I"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Qi),$i=_["I"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Qi),tr=_["I"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$i),er=_["i"]({logBase:10},$i),nr={category:Ji,value:$i,time:tr,log:er},ir=n("8e43"),rr={value:1,category:1,time:1,log:1};function ar(t,e,n,i){Object(_["k"])(rr,(function(r,a){var o=Object(_["I"])(Object(_["I"])({},nr[a],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return Object(qt["a"])(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Object(ri["d"])(this),i=n?Object(ri["f"])(t):{},r=e.getTheme();Object(_["I"])(t,r.get(a+"Axis")),Object(_["I"])(t,this.getDefaultOption()),t.type=or(t),n&&Object(ri["h"])(t,i,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=ir["a"].createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+a,n.defaultOption=o,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",or)}function or(t){return t.type||(t.data?"category":"value")}var sr=n("697e"),lr=n("cf7e"),ur=n("1687"),cr=n("401b"),hr=["x","y"];function dr(t){return"interval"===t.type||"time"===t.type}var fr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=hr,e}return Object(qt["a"])(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(dr(t)&&dr(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),a=this.dataToPoint([n[1],i[1]]),o=n[1]-n[0],s=i[1]-i[0];if(o&&s){var l=(a[0]-r[0])/o,u=(a[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=Object(ur["e"])([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),a=new ki["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(a)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return Object(cr["b"])(n,t,this._transform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.toGlobalCoord(a.dataToCoord(i,e)),n[1]=o.toGlobalCoord(o.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),a=i.getExtent(),o=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),o),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Object(cr["b"])(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,a=Math.max(e[0],e[1])-i;return new ki["a"](n,i,r,a)},e}(lr["a"]),pr=fr,gr=n("84ce"),mr=function(t){function e(e,n,i,r,a){var o=t.call(this,e,n,i)||this;return o.index=0,o.type=r||"value",o.position=a||"bottom",o}return Object(qt["a"])(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(gr["a"]),vr=mr;function yr(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,a={},o=r.getAxesOnZeroOf()[0],s=r.position,l=o?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,p="x"===u?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}a.position=["y"===u?p[d[l]]:h[0],"x"===u?p[d[l]]:h[3]],a.rotation=Math.PI/2*("x"===u?0:1);var m={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=m[s],a.labelOffset=o?p[d[s]]-p[d.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),_["O"](n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===l?-v:v,a.z2=1,a}function _r(t){return"cartesian2d"===t.get("coordinateSystem")}function br(t){var e={xAxisModel:null,yAxisModel:null};return _["k"](e,(function(n,i){var r=i.replace(/Model$/,""),a=t.getReferringComponents(r,Te["b"]).models[0];e[i]=a})),e}var xr=n("944e"),wr=n("89e3"),Or=Math.log;function Sr(t,e,n){var i=wr["a"].prototype,r=i.getTicks.call(n),a=i.getTicks.call(n,!0),o=r.length-1,s=i.getInterval.call(n),l=Object(sr["f"])(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var d=Or(t.base);u=[Or(u[0])/d,Or(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:h});var f=i.getExtent.call(t);c&&(u[0]=f[0]),h&&(u[1]=f[1]);var p=i.getInterval.call(t),g=u[0],m=u[1];if(c&&h)p=(m-g)/o;else if(c){m=u[0]+p*o;while(m<u[1]&&isFinite(m)&&isFinite(u[1]))p=Object(xr["c"])(p),m=u[0]+p*o}else if(h){g=u[1]-p*o;while(g>u[0]&&isFinite(g)&&isFinite(u[0]))p=Object(xr["c"])(p),g=u[1]-p*o}else{var v=t.getTicks().length-1;v>o&&(p=Object(xr["c"])(p));var y=p*o;m=Math.ceil(u[1]/p)*p,g=Object(Be["v"])(m-y),g<0&&u[0]>=0?(g=0,m=Object(Be["v"])(y)):m>0&&u[1]<=0&&(m=0,g=-Object(Be["v"])(y))}var _=(r[0].value-a[0].value)/s,b=(r[o].value-a[o].value)/s;i.setExtent.call(t,g+p*_,m+p*b),i.setInterval.call(t,p),(_||b)&&i.setNiceExtent.call(t,g+p,m-p)}var Tr=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=hr,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Object(_["F"])(t),i=n.length;if(i){for(var r=[],a=i-1;a>=0;a--){var o=+n[a],s=t[o],l=s.model,u=s.scale;Object(xr["e"])(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(Object(sr["i"])(u,l),Object(xr["e"])(u)&&(e=s))}r.length&&(e||(e=r.pop(),Object(sr["i"])(e.scale,e.model)),Object(_["k"])(r,(function(t){Sr(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};Object(_["k"])(n.x,(function(t){Ar(n,"y",t,r)})),Object(_["k"])(n.y,(function(t){Ar(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),a=Object(ri["g"])(i,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var o=this._axesList;function s(){Object(_["k"])(o,(function(t){var e=t.isHorizontal(),n=e?[0,a.width]:[0,a.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),Ir(t,e?a.x:a.y)}))}s(),r&&(Object(_["k"])(o,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=Object(sr["b"])(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i)}}})),s()),Object(_["k"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(_["A"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Te["b"]).models[0],a=t.yAxisModel||i&&i.getReferringComponents("yAxis",Te["b"]).models[0],o=t.gridModel,s=this._coordsList;if(i)e=i.coordinateSystem,Object(_["r"])(s,e)<0&&(e=null);else if(r&&a)e=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(a)n=this.getAxis("y",a.componentIndex);else if(o){var l=o.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(Mr(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=a.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=a.left?"right":"left"),a[l]=!0;var u=new vr(e,Object(sr["a"])(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),o[e][i]=u,s[e]++}}}this._axesMap=o,Object(_["k"])(o.x,(function(e,n){Object(_["k"])(o.y,(function(r,a){var o="x"+n+"y"+a,s=new pr(o);s.master=i,s.model=t,i._coordsMap[o]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){Object(_["k"])(Object(sr["d"])(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}Object(_["k"])(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(_r(t)){var i=br(t),r=i.xAxisModel,a=i.yAxisModel;if(!Mr(r,e)||!Mr(a,e))return;var o=this.getCartesian(r.componentIndex,a.componentIndex),s=t.getData(),l=o.getAxis("x"),u=o.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Object(_["k"])(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(r);Object(_["r"])(e,r)<0&&e.push(r),Object(_["r"])(n,a)<0&&n.push(a)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(r,a){var o=new t(r,e,n);o.name="grid_"+a,o.resize(r,n,!0),r.coordinateSystem=o,i.push(o)})),e.eachSeries((function(t){if(_r(t)){var e=br(t),n=e.xAxisModel,i=e.yAxisModel,r=n.getCoordSysModel();0;var a=r.coordinateSystem;t.coordinateSystem=a.getCartesian(n.componentIndex,i.componentIndex)}})),i},t.dimensions=hr,t}();function Mr(t,e){return t.getCoordSysModel()===e}function Ar(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=t[e],o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Cr(a[l])&&(r=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&Cr(a[u])&&!i[c(a[u])]){r=a[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function Cr(t){return t&&"category"!==t.type&&"time"!==t.type&&Object(sr["g"])(t)}function Ir(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}var Dr=Tr,Lr=n("cb11"),Er=n("4319"),jr=Math.PI,Pr=function(){function t(t,e){this.group=new Jt["a"],this.opt=e,this.axisModel=t,Object(_["i"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Jt["a"]({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!Nr[t]},t.prototype.add=function(t){Nr[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,a=Object(Be["u"])(e-t);return Object(Be["k"])(a)?(r=n>0?"top":"bottom",i="center"):Object(Be["k"])(a-jr)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=a>0&&a<jr?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Nr={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var a=e.axis.getExtent(),o=i.transform,s=[a[0],0],l=[a[1],0];o&&(Object(cr["b"])(s,s,o),Object(cr["b"])(l,l,o));var u=Object(_["m"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Lr["a"]({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var h=e.get(["axisLine","symbol"]);if(null!=h){var d=e.get(["axisLine","symbolSize"]);Object(_["C"])(h)&&(h=[h,h]),(Object(_["C"])(d)||Object(_["z"])(d))&&(d=[d,d]);var f=Object(Qt["b"])(e.get(["axisLine","symbolOffset"])||0,d),p=d[0],g=d[1];Object(_["k"])([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==h[i]&&null!=h[i]){var r=Object(Qt["a"])(h[i],-p/2,-g/2,p,g,u.stroke,!0),a=e.r+e.offset;r.attr({rotation:e.rotate,x:s[0]+a*Math.cos(t.rotation),y:s[1]-a*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=Gr(n,i,e,t),a=Ur(n,i,e,t);if(kr(e,a,r),Hr(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Object(pi["b"])(Object(_["H"])(a,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));Object(pi["a"])(o)}},axisName:function(t,e,n,i){var r=Object(_["O"])(t.axisName,e.get("name"));if(r){var a,o,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),d=h[0]>h[1]?-1:1,f=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,Vr(s)?t.labelOffset+l*c:0],p=e.get("nameRotate");null!=p&&(p=p*jr/180),Vr(s)?a=Pr.innerTextLayout(t.rotation,null!=p?p:t.rotation,l):(a=Rr(t.rotation,s,p||0,h),o=t.axisNameAvailableWidth,null!=o&&(o=Math.abs(o/Math.sin(a.rotation)),!isFinite(o)&&(o=null)));var g=u.getFont(),m=e.get("nameTruncate",!0)||{},v=m.ellipsis,y=Object(_["O"])(t.nameTruncateMaxWidth,m.maxWidth,o),b=new $["a"]({x:f[0],y:f[1],rotation:a.rotation,silent:Pr.isLabelSilent(e),style:Object(le["c"])(u,{text:r,font:g,overflow:"truncate",width:y,ellipsis:v,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||a.textAlign,verticalAlign:u.get("verticalAlign")||a.textVerticalAlign}),z2:1});if(ne["setTooltipConfig"]({el:b,componentModel:e,itemName:r}),b.__fullText=r,b.anid="name",e.get("triggerEvent")){var x=Pr.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,Object(ie["a"])(b).eventData=x}i.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function Rr(t,e,n,i){var r,a,o=Object(Be["u"])(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Object(Be["k"])(o-jr/2)?(a=l?"bottom":"top",r="center"):Object(Be["k"])(o-1.5*jr)?(a=l?"top":"bottom",r="center"):(a="middle",r=o<1.5*jr&&o>jr/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}function kr(t,e,n){if(!Object(sr["j"])(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(Br(a),Br(u)):zr(a,o)&&(i?(Br(o),Br(c)):(Br(a),Br(u))),!1===r?(Br(s),Br(h)):zr(l,s)&&(r?(Br(l),Br(d)):(Br(s),Br(h)))}}function Br(t){t&&(t.ignore=!0)}function zr(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=ur["d"]([]);return ur["g"](r,r,-t.rotation),n.applyTransform(ur["f"]([],r,t.getLocalTransform())),i.applyTransform(ur["f"]([],r,e.getLocalTransform())),n.intersect(i)}}function Vr(t){return"middle"===t||"center"===t}function Fr(t,e,n,i,r){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,e&&(Object(cr["b"])(o,o,e),Object(cr["b"])(s,s,e));var c=new Lr["a"]({subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});c.anid=r+"_"+t[l].tickValue,a.push(c)}return a}function Gr(t,e,n,i){var r=n.axis,a=n.getModel("axisTick"),o=a.get("show");if("auto"===o&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),o&&!r.scale.isBlank()){for(var s=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),u=r.getTicksCoords(),c=Fr(u,e.transform,l,Object(_["i"])(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}}function Hr(t,e,n,i){var r=n.axis,a=n.getModel("minorTick");if(a.get("show")&&!r.scale.isBlank()){var o=r.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=i*a.get("length"),u=Object(_["i"])(s.getLineStyle(),Object(_["i"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var h=Fr(o[c],e.transform,l,u,"minorticks_"+c),d=0;d<h.length;d++)t.add(h[d])}}function Ur(t,e,n,i){var r=n.axis,a=Object(_["O"])(i.axisLabelShow,n.get(["axisLabel","show"]));if(a&&!r.scale.isBlank()){var o=n.getModel("axisLabel"),s=o.get("margin"),l=r.getViewLabels(),u=(Object(_["O"])(i.labelRotate,o.get("rotate"))||0)*jr/180,c=Pr.innerTextLayout(i.rotation,u,i.labelDirection),h=n.getCategories&&n.getCategories(!0),d=[],f=Pr.isLabelSilent(n),p=n.get("triggerEvent");return Object(_["k"])(l,(function(a,l){var u="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(a.tickValue):a.tickValue,g=a.formattedLabel,m=a.rawLabel,v=o;if(h&&h[u]){var y=h[u];Object(_["A"])(y)&&y.textStyle&&(v=new Er["a"](y.textStyle,o,n.ecModel))}var b=v.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=r.dataToCoord(u),w=new $["a"]({x:x,y:i.labelOffset+i.labelDirection*s,rotation:c.rotation,silent:f,z2:10+(a.level||0),style:Object(le["c"])(v,{text:g,align:v.getShallow("align",!0)||c.textAlign,verticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||c.textVerticalAlign,fill:Object(_["w"])(b)?b("category"===r.type?m:"value"===r.type?u+"":u,l):b})});if(w.anid="label_"+u,p){var O=Pr.makeAxisEventDataBase(n);O.targetType="axisLabel",O.value=m,O.tickIndex=l,"category"===r.type&&(O.dataIndex=u),Object(ie["a"])(w).eventData=O}e.add(w),w.updateTransform(),d.push(w),t.add(w),w.decomposeTransform()})),d}}var Wr=Pr;function Xr(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Zr(n,t,e),n.seriesInvolved&&Yr(n,t),n}function Zr(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),a=r.get("link",!0)||[],o=[];Object(_["k"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=na(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",i);if(Object(_["k"])(n.getAxes(),Object(_["h"])(p,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var h="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),f=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&Object(_["k"])(f.baseAxes,Object(_["h"])(p,!d||"cross",h)),d&&Object(_["k"])(f.otherAxes,Object(_["h"])(p,"cross",!1))}}function p(i,s,u){var h=u.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||ea(h))){null==s&&(s=h.get("triggerTooltip")),h=i?qr(u,c,r,e,i,s):h;var f=h.get("snap"),p=na(u.model),g=s||f||"category"===u.type,m=t.axesInfo[p]={key:p,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:ea(h),seriesModels:[],linkGroup:null};l[p]=m,t.seriesInvolved=t.seriesInvolved||g;var v=Kr(a,u);if(null!=v){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[p]=m,y.mapper=a[v].mapper,m.linkGroup=y}}}}))}function qr(t,e,n,i,r,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(_["k"])(s,(function(t){l[t]=Object(_["d"])(o.get(t))})),l.snap="category"!==t.type&&!!a,"cross"===o.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===r){var c=o.get(["label","show"]);if(u.show=null==c||c,!a){var h=l.lineStyle=o.get("crossStyle");h&&Object(_["i"])(u,h.textStyle)}}return t.model.getModel("axisPointer",new Er["a"](l,n,i))}function Yr(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&Object(_["k"])(t.coordSysAxesInfo[na(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function Kr(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var a=t[r]||{};if(Qr(a[i+"AxisId"],n.id)||Qr(a[i+"AxisIndex"],n.componentIndex)||Qr(a[i+"AxisName"],n.name))return r}}function Qr(t,e){return"all"===t||Object(_["t"])(t)&&Object(_["r"])(t,e)>=0||t===e}function Jr(t){var e=$r(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=i.parse(o));var s=ea(n);null==a&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),r.value=o,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function $r(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[na(t)]}function ta(t){var e=$r(t);return e&&e.axisPointerModel}function ea(t){return!!t.get(["handle","show"])}function na(t){return t.type+"||"+t.id}var ia={},ra=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&Jr(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var a=ta(t);a?(this._axisPointer||(this._axisPointer=new r)).render(t,a,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){ia[t]=e},e.getAxisPointerClass=function(t){return t&&ia[t]},e.type="axis",e}(Wi["a"]),aa=ra,oa=Object(Te["o"])();function sa(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var a=n.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,h=oa(t).splitAreaColors,d=_["f"](),f=0;if(h)for(var p=0;p<u.length;p++){var g=h.get(u[p].tickValue);if(null!=g){f=(g+(c-1)*p)%c;break}}var m=r.toGlobalCoord(u[0].coord),v=o.getAreaStyle();s=_["t"](s)?s:[s];for(p=1;p<u.length;p++){var y=r.toGlobalCoord(u[p].coord),b=void 0,x=void 0,w=void 0,O=void 0;r.isHorizontal()?(b=m,x=l.y,w=y-b,O=l.height,m=b+w):(b=l.x,x=m,w=l.width,O=y-x,m=x+O);var S=u[p-1].tickValue;null!=S&&d.set(S,f),e.add(new Re["a"]({anid:null!=S?"area_"+S:null,shape:{x:b,y:x,width:w,height:O},style:_["i"]({fill:s[f]},v),autoBatch:!0,silent:!0})),f=(f+1)%c}oa(t).splitAreaColors=d}}}function la(t){oa(t).splitAreaColors=null}var ua=["axisLine","axisTickLabel","axisName"],ca=["splitArea","splitLine","minorSplitLine"],ha=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return Object(qt["a"])(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Jt["a"],this.group.add(this._axisGroup),e.get("show")){var o=e.getCoordSysModel(),s=yr(o,e),l=new Wr(e,_["m"]({handleAutoShown:function(t){for(var n=o.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Object(xr["e"])(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));_["k"](ua,l.add,l),this._axisGroup.add(l.getGroup()),_["k"](ca,(function(t){e.get([t,"show"])&&da[t](this,this._axisGroup,e,o)}),this);var u=r&&"changeAxisOrder"===r.type&&r.isInitSort;u||ne["groupTransition"](a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){la(this)},e.type="cartesianAxis",e}(aa),da={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=_["t"](s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=0,h=r.getTicksCoords({tickModel:a}),d=[],f=[],p=o.getLineStyle(),g=0;g<h.length;g++){var m=r.toGlobalCoord(h[g].coord);u?(d[0]=m,d[1]=l.y,f[0]=m,f[1]=l.y+l.height):(d[0]=l.x,d[1]=m,f[0]=l.x+l.width,f[1]=m);var v=c++%s.length,y=h[g].tickValue;e.add(new Lr["a"]({anid:null!=y?"line_"+h[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:_["i"]({stroke:s[v]},p),silent:!0}))}}},minorSplitLine:function(t,e,n,i){var r=n.axis,a=n.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=o.getLineStyle(),f=0;f<u.length;f++)for(var p=0;p<u[f].length;p++){var g=r.toGlobalCoord(u[f][p].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g),e.add(new Lr["a"]({anid:"minor_line_"+u[f][p].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0}))}},splitArea:function(t,e,n,i){sa(t,e,n,i)}},fa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.type="xAxis",e}(ha),pa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=fa.type,e}return Object(qt["a"])(e,t),e.type="yAxis",e}(ha),ga=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return Object(qt["a"])(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Re["a"]({shape:t.coordinateSystem.getRect(),style:Object(_["i"])({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Wi["a"]),ma={offset:0};function va(t){t.registerComponentView(ga),t.registerComponentModel(qi),t.registerCoordinateSystem("cartesian2d",Dr),ar(t,"x",Ki,ma),ar(t,"y",Ki,ma),t.registerComponentView(fa),t.registerComponentView(pa),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function ya(t){Object(i["a"])(va),t.registerSeriesModel(Ri),t.registerChartView(Ui),t.registerLayout(dn("scatter"))}function _a(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();_["k"](r,(function(t,a){e.each(e.mapDimension(r[a].dim),(function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,a);n[e][a]=ba(r)?r:xa(i)}))})),e.each((function(t){var r=_["o"](n[t],(function(t){return ba(t)}))||xa(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])}))}}))}function ba(t){return!isNaN(t[0])&&!isNaN(t[1])}function xa(t){return[t.cx,t.cy]}function wa(t){var e=t.polar;if(e){_["t"](e)||(e=[e]);var n=[];_["k"](e,(function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],_["t"](t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}_["k"](t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var Oa=n("87b1"),Sa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,a=t.getData(),o=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=Qt["c"](t.getItemVisual(e,"symbolSize")),r=Qt["a"](n,-1,-1,2,2),a=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:a*Math.PI/180||0}),r}}function u(e,n,i,r,a,o){i.removeAll();for(var l=0;l<n.length-1;l++){var u=s(r,a);u&&(u.__dimIdx=l,e[l]?(u.setPosition(e[l]),ne[o?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},t,a)):u.setPosition(n[l]),i.add(u))}}function c(t){return _["H"](t,(function(t){return[i.cx,i.cy]}))}a.diff(o).add((function(e){var n=a.getItemLayout(e);if(n){var i=new Oa["a"],r=new hi["a"],o={shape:{points:n}};i.shape.points=c(n),r.shape.points=c(n),ee["c"](i,o,t,e),ee["c"](r,o,t,e);var s=new Jt["a"],l=new Jt["a"];s.add(r),s.add(i),s.add(l),u(r.shape.points,n,l,a,e,!0),a.setItemGraphicEl(e,s)}})).update((function(e,n){var i=o.getItemGraphicEl(n),r=i.childAt(0),s=i.childAt(1),l=i.childAt(2),c={shape:{points:a.getItemLayout(e)}};c.shape.points&&(u(r.shape.points,c.shape.points,l,a,e,!1),Object(ee["g"])(s),Object(ee["g"])(r),ee["h"](r,c,t),ee["h"](s,c,t),a.setItemGraphicEl(e,i))})).remove((function(t){r.remove(o.getItemGraphicEl(t))})).execute(),a.eachItemGraphicEl((function(t,e){var n=a.getItemModel(e),i=t.childAt(0),o=t.childAt(1),s=t.childAt(2),u=a.getItemVisual(e,"style"),c=u.fill;r.add(t),i.useStyle(_["i"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),Object(re["I"])(i,n,"lineStyle"),Object(re["I"])(o,n,"areaStyle");var h=n.getModel("areaStyle"),d=h.isEmpty()&&h.parentModel.isEmpty();o.ignore=d,_["k"](["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();o.ensureState(t).ignore=i&&d})),o.useStyle(_["i"](h.getAreaStyle(),{fill:c,opacity:.7,decal:u.decal}));var f=n.getModel("emphasis"),p=f.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof l["a"]){var i=t.style;t.useStyle(_["m"]({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},u))}else t.useStyle(u),t.setColor(c),t.style.strokeNoScale=!0;var r=t.ensureState("emphasis");r.style=_["d"](p);var o=a.getStore().get(a.getDimensionIndex(t.__dimIdx),e);(null==o||isNaN(o))&&(o=""),Object(le["g"])(t,Object(le["e"])(n),{labelFetcher:a.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:o,inheritColor:c,defaultOpacity:u.opacity})})),Object(re["J"])(t,f.get("focus"),f.get("blurScope"),f.get("disabled"))})),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Ne["a"]),Ta=Sa,Ma=n("217c"),Aa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(qt["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Di(_["c"](this.getData,this),_["c"](this.getRawData,this))},e.prototype.getInitialData=function(t,e){return Ai(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.coordinateSystem,a=r.getIndicatorAxes(),o=this.getData().getName(t),s=""===o?this.name:o,l=Object(Ma["e"])(this,t);return Object(Ma["c"])("section",{header:s,sortBlocks:!0,blocks:_["H"](a,(function(e){var n=i.get(i.mapDimension(e.dim),t);return Object(Ma["c"])("nameValue",{markerType:"subItem",markerColor:l,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(_["H"](n.dimensions,(function(t){return e.mapDimension(t)})),t),r=0,a=i.length;r<a;r++)if(!isNaN(i[r])){var o=n.getIndicatorAxes();return n.coordToPoint(o[r].dataToCoord(i[r]),r)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Kt["b"]),Ca=Aa,Ia=nr.value;function Da(t,e){return _["i"]({show:e},t)}var La=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),a=this.get("axisLabel"),o=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=_["H"](this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=o;null!=h.color&&(d=_["i"]({color:h.color},o));var f=_["I"](_["d"](h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:a,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(_["C"](l)){var p=f.name;f.name=l.replace("{value}",null!=p?p:"")}else _["w"](l)&&(f.name=l(f.name,f));var g=new Er["a"](f,null,this.ecModel);return _["K"](g,Yi["a"].prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:_["I"]({lineStyle:{color:"#bbb"}},Ia.axisLine),axisLabel:Da(Ia.axisLabel,!1),axisTick:Da(Ia.axisTick,!1),splitLine:Da(Ia.splitLine,!0),splitArea:Da(Ia.splitArea,!0),indicator:[]},e}(Xi["a"]),Ea=La,ja=n("d9fc"),Pa=n("4573"),Na=["axisLine","axisTickLabel","axisName"],Ra=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=_["H"](n,(function(t){var n=t.model.get("showName")?t.name:"",i=new Wr(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));_["k"](i,(function(t){_["k"](Na,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),a=t.getModel("splitArea"),o=r.getModel("lineStyle"),s=a.getModel("areaStyle"),l=r.get("show"),u=a.get("show"),c=o.get("color"),h=s.get("color"),d=_["t"](c)?c:[c],f=_["t"](h)?h:[h],p=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=e.cx,y=e.cy,b=0;b<m.length;b++){if(l){var x=I(p,d,b);p[x].push(new ja["a"]({shape:{cx:v,cy:y,r:m[b].coord}}))}if(u&&b<m.length-1){x=I(g,f,b);g[x].push(new Pa["a"]({shape:{cx:v,cy:y,r0:m[b].coord,r:m[b+1].coord}}))}}else{var w,O=_["H"](n,(function(t,n){var i=t.getTicksCoords();return w=null==w?i.length-1:Math.min(i.length-1,w),_["H"](i,(function(t){return e.coordToPoint(t.coord,n)}))})),S=[];for(b=0;b<=w;b++){for(var T=[],M=0;M<n.length;M++)T.push(O[M][b]);if(T[0]&&T.push(T[0].slice()),l){x=I(p,d,b);p[x].push(new hi["a"]({shape:{points:T}}))}if(u&&S){x=I(g,f,b-1);g[x].push(new Oa["a"]({shape:{points:T.concat(S)}}))}S=T.slice().reverse()}}var A=o.getLineStyle(),C=s.getAreaStyle();_["k"](g,(function(t,e){this.group.add(ne["mergePath"](t,{style:_["i"]({stroke:"none",fill:f[e%f.length]},C),silent:!0}))}),this),_["k"](p,(function(t,e){this.group.add(ne["mergePath"](t,{style:_["i"]({fill:"none",stroke:d[e%d.length]},A),silent:!0}))}),this)}function I(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(Wi["a"]),ka=Ra,Ba=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return Object(qt["a"])(e,t),e}(gr["a"]),za=Ba,Va=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Object(_["H"])(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new za(n,new wr["a"]);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,r=this.cx+t*Math.cos(i),a=this.cy-t*Math.sin(i);return[r,a]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,a=Math.atan2(-n,e),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(a-u.angle);c<o&&(r=u,s=l,o=c)}return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),a=Math.min(i,r)/2;this.cx=Be["p"](n[0],i),this.cy=Be["p"](n[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var o=t.get("radius");(Object(_["C"])(o)||Object(_["z"])(o))&&(o=[0,o]),this.r0=Be["p"](o[0],a),this.r=Be["p"](o[1],a),Object(_["k"])(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;Object(_["k"])(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,r){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var a=e.getData();Object(_["k"])(n,(function(t){t.scale.unionExtentFromData(a,a.mapDimension(t.dim))}))}}),this);var r=i.get("splitNumber"),a=new wr["a"];a.setExtent(0,r),a.setInterval(1),Object(_["k"])(n,(function(t,e){Sr(t.scale,t.model,a)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",(function(r){var a=new t(r,e,n);i.push(a),r.coordinateSystem=a})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},t.dimensions=[],t}(),Fa=Va;function Ga(t){t.registerCoordinateSystem("radar",Fa),t.registerComponentModel(Ea),t.registerComponentView(ka),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}function Ha(t){Object(i["a"])(Ga),t.registerChartView(Ta),t.registerSeriesModel(Ca),t.registerLayout(_a),t.registerProcessor(ci("radar")),t.registerPreprocessor(wa)}var Ua=n("6fd3"),Wa=n("607d"),Xa=n("1be7"),Za="\0_ec_interaction_mutex";function qa(t,e,n){var i=Qa(t);i[e]=n}function Ya(t,e,n){var i=Qa(t),r=i[e];r===n&&(i[e]=null)}function Ka(t,e){return!!Qa(t)[e]}function Qa(t){return t[Za]||(t[Za]={})}Xa["e"]({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},_["L"]);var Ja=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=Object(_["c"])(n._mousedownHandler,n),r=Object(_["c"])(n._mousemoveHandler,n),a=Object(_["c"])(n._mouseupHandler,n),o=Object(_["c"])(n._mousewheelHandler,n),s=Object(_["c"])(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Object(_["i"])(Object(_["d"])(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",a)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",o),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",a),e.off("mousewheel",o),e.off("pinch",s)},n}return Object(qt["a"])(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(Wa["d"](t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&eo("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!Ka(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,a=e-i,o=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Wa["g"](t.event),to(this,"pan","moveOnMouseMove",t,{dx:a,dy:o,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Wa["d"](t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=eo("zoomOnMouseWheel",t,this._opt),n=eo("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),a=t.offsetX,o=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;$a(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:a,originY:o,isAvailableBehavior:null})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);$a(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:a,originY:o,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Ka(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;$a(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Ua["a"]);function $a(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(Wa["g"](i.event),to(t,e,n,i,r))}function to(t,e,n,i,r){r.isAvailableBehavior=Object(_["c"])(eo,null,n,i),t.trigger(e,r)}function eo(t,e,n){var i=n[t];return!t||i&&(!Object(_["C"])(i)||e.event[i+"Key"])}var no=Ja;function io(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function ro(t,e,n,i){var r=t.target,a=t.zoomLimit,o=t.zoom=t.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/t.zoom;t.zoom=o,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var ao={axisPointer:1,tooltip:1,brush:1};function oo(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!ao.hasOwnProperty(i.mainType)&&r&&r.model!==n}var so,lo=n("ae69"),uo=n("342d"),co=n("dded");function ho(t){if(Object(_["C"])(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var fo={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},po=Object(_["F"])(fo),go={"alignment-baseline":"textBaseline","stop-color":"stopColor"},mo=Object(_["F"])(go),vo=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=ho(t);this._defsUsePending=[];var i=new Jt["a"];this._root=i;var r=[],a=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),Oo(n,i,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(Ao(this._defs,this._defsUsePending),this._defsUsePending=[],a){var h=Io(a);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=o&&null!=s&&(u=Ro(l,{x:0,y:0,width:o,height:s}),!e.ignoreViewBox)){var d=i;i=new Jt["a"],i.add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==o||null==s||i.setClipPath(new Re["a"]({shape:{x:0,y:0,width:o,height:s}})),{root:i,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,a){var o,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(a=!0),"defs"===s||"switch"===s)o=e;else{if(!r){var u=so[s];if(u&&Object(_["q"])(so,s)){o=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:o};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:o});e.add(o)}}var d=yo[s];if(d&&Object(_["q"])(yo,s)){var f=d.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=f)}}if(o&&o.isGroup){var g=t.firstChild;while(g)1===g.nodeType?this._parseNode(g,o,n,l,r,a):3===g.nodeType&&a&&this._parseText(g,o),g=g.nextSibling}},t.prototype._parseText=function(t,e){var n=new c["a"]({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});xo(e,n),Oo(t,n,this._defsUsePending,!1,!1),So(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var a=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=a;var o=n.getBoundingRect();return this._textX+=o.width,e.add(n),n},t.internalField=function(){so={g:function(t,e){var n=new Jt["a"];return xo(e,n),Oo(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Re["a"];return xo(e,n),Oo(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new ja["a"];return xo(e,n),Oo(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Lr["a"];return xo(e,n),Oo(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new lo["a"];return xo(e,n),Oo(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=wo(i));var r=new Oa["a"]({shape:{points:n||[]},silent:!0});return xo(e,r),Oo(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=wo(i));var r=new hi["a"]({shape:{points:n||[]},silent:!0});return xo(e,r),Oo(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new l["a"];return xo(e,n),Oo(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(a);var o=new Jt["a"];return xo(e,o),Oo(t,o,this._defsUsePending,!1,!0),o},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",o=new Jt["a"];return xo(e,o),Oo(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(a),o},path:function(t,e){var n=t.getAttribute("d")||"",i=Object(uo["b"])(n);return xo(e,i),Oo(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),yo={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),a=new Se["a"](e,n,i,r);return _o(t,a),bo(t,a),a},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new co["a"](e,n,i);return _o(t,r),bo(t,r),r}};function _o(t,e){var n=t.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(e.global=!0)}function bo(t,e){var n=t.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var a={};Po(n,a,a);var o=a.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:o})}n=n.nextSibling}}function xo(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(_["i"])(e.__inheritedStyle,t.__inheritedStyle))}function wo(t){for(var e=Io(t),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),a=parseFloat(e[i+1]);n.push([r,a])}return n}function Oo(t,e,n,i,r){var a=e,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};1===t.nodeType&&(Eo(t,e),Po(t,o,s),i||No(t,o,s)),a.style=a.style||{},null!=o.fill&&(a.style.fill=Mo(a,"fill",o.fill,n)),null!=o.stroke&&(a.style.stroke=Mo(a,"stroke",o.stroke,n)),Object(_["k"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=o[t]&&(a.style[t]=parseFloat(o[t]))})),Object(_["k"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=o[t]&&(a.style[t]=o[t])})),r&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=Object(_["H"])(Io(o.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==o.visibility&&"collapse"!==o.visibility||(a.invisible=!0),"none"===o.display&&(a.ignore=!0)}function So(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var a=e.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&("middle"===o&&(s="center"),t.style.textAlign=s)}}var To=/^url\(\s*#(.*?)\)/;function Mo(t,e,n,i){var r=n&&n.match(To);if(!r)return"none"===n&&(n=null),n;var a=Object(_["T"])(r[1]);i.push([t,e,a])}function Ao(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}var Co=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Io(t){return t.match(Co)||[]}var Do=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Lo=Math.PI/180;function Eo(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(Do,(function(t,e,n){return i.push(e,n),""}));for(var a=i.length-1;a>0;a-=2){var o=i[a],s=i[a-1],l=Io(o);switch(r=r||ur["c"](),s){case"translate":ur["i"](r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":ur["h"](r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ur["g"](r,r,-parseFloat(l[0])*Lo);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Lo);ur["f"](r,[1,0,u,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Lo);ur["f"](r,[1,c,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5]);break}}e.setLocalTransform(r)}}var jo=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Po(t,e,n){var i=t.getAttribute("style");if(i){var r;jo.lastIndex=0;while(null!=(r=jo.exec(i))){var a=r[1],o=Object(_["q"])(fo,a)?fo[a]:null;o&&(e[o]=r[2]);var s=Object(_["q"])(go,a)?go[a]:null;s&&(n[s]=r[2])}}}function No(t,e,n){for(var i=0;i<po.length;i++){var r=po[i],a=t.getAttribute(r);null!=a&&(e[fo[r]]=a)}for(i=0;i<mo.length;i++){r=mo[i],a=t.getAttribute(r);null!=a&&(n[go[r]]=a)}}function Ro(t,e){var n=e.width/t.width,i=e.height/t.height,r=Math.min(n,i);return{scale:r,x:-(t.x+t.width/2)*r+(e.x+e.width/2),y:-(t.y+t.height/2)*r+(e.y+e.height/2)}}function ko(t,e){var n=new vo;return n.parse(t,e)}var Bo=n("f279"),zo=Object(_["f"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Vo=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Object(_["f"])(),this._freedGraphics=[],this._mapName=t,this._parsedXML=ho(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=Go(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&ko(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,Object(_["b"])(null!=n)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var i=new Jt["a"];i.add(n),i.isGeoSVGGraphicRoot=!0;var r=e.width,a=e.height,o=e.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,h=void 0;if(null!=r?(l=0,c=r):o&&(l=o.x,c=o.width),null!=a?(u=0,h=a):o&&(u=o.y,h=o.height),null==l||null==u){var d=n.getBoundingRect();null==l&&(l=d.x,c=d.width),null==u&&(u=d.y,h=d.height)}s=this._boundingRect=new ki["a"](l,u,c,h)}if(o){var f=Ro(o,s);n.scaleX=n.scaleY=f.scale,n.x=f.x,n.y=f.y}i.setClipPath(new Re["a"]({shape:s.plain()}));var p=[];return Object(_["k"])(e.named,(function(t){null!=zo.get(t.svgNodeTagLower)&&(p.push(t),Fo(t.el))})),{root:i,boundingRect:s,named:p}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function Fo(t){t.silent=!1,t.isGroup&&t.traverse((function(t){t.silent=!1}))}function Go(t){var e=[],n=Object(_["f"])();return Object(_["k"])(t,(function(t){if(null==t.namedFrom){var i=new Bo["d"](t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}for(var Ho=n("bda7"),Uo=[126,25],Wo="南海诸岛",Xo=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Zo=0;Zo<Xo.length;Zo++)for(var qo=0;qo<Xo[Zo].length;qo++)Xo[Zo][qo][0]/=10.5,Xo[Zo][qo][1]/=-14,Xo[Zo][qo][0]+=Uo[0],Xo[Zo][qo][1]+=Uo[1];function Yo(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===Wo)return;e.push(new Bo["c"](Wo,_["H"](Xo,(function(t){return{type:"polygon",exterior:t}})),Uo))}}var Ko=n("1792"),Qo=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Jo(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:Qo[0]})}var $o="name",ts=function(){function t(t,e,n){this.type="geoJSON",this._parsedMap=Object(_["f"])(),this._mapName=t,this._specialAreas=n,this._geoJSON=ns(e)}return t.prototype.load=function(t,e){e=e||$o;var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:es(i)})}var r=Object(_["f"])(),a=[];return Object(_["k"])(n.regions,(function(e){var n=e.name;t&&Object(_["q"])(t,n)&&(e=e.cloneShallow(n=t[n])),a.push(e),r.set(n,e)})),{regions:a,boundingRect:n.boundingRect||new ki["a"](0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?Object(Ho["a"])(i,t):[]}catch(r){throw new Error("Invalid geoJson format\n"+r.message)}return Yo(n,e),Object(_["k"])(e,(function(t){var e=t.name;Object(Ko["a"])(n,t),Jo(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function es(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function ns(t){return Object(_["C"])(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var is=Object(_["f"])(),rs={registerMap:function(t,e,n){if(e.svg){var i=new Vo(t,e.svg);is.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e;i=new ts(t,r,n);is.set(t,i)}},getGeoResource:function(t){return is.get(t)},getMapForUser:function(t){var e=is.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var i=is.get(t);if(i)return i.load(e,n)}},as=n("b3c1"),os=n("19eb"),ss=["rect","circle","line","ellipse","polygon","polyline","path"],ls=_["f"](ss),us=_["f"](ss.concat(["g"])),cs=_["f"](ss.concat(["g"])),hs=Object(Te["o"])();function ds(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function fs(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var ps=function(){function t(t){var e=new Jt["a"];this.uid=Object(bn["c"])("ec_map_draw"),this._controller=new no(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Jt["a"]),e.add(this._svgGroup=new Jt["a"])}return t.prototype.draw=function(t,e,n,i,r){var a="geo"===t.mainType,o=t.getData&&t.getData();a&&e.eachComponent({mainType:"series",subType:"map"},(function(e){o||e.getHostGeoModel()!==t||(o=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam,f=!l.childAt(0)||r;f?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):ee["h"](u,d,t);var p=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:t,data:o,isVisualEncodedByVisualMap:p,isGeo:a,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=_["f"](),n=_["f"](),i=this._regionsGroup,r=t.transformInfoRaw,a=t.mapOrGeoModel,o=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function c(t){for(var e=[],n=!l&&s&&s.project,i=0;i<t.length;++i){var r=u(t[i],n);r&&e.push(r)}return e}function h(t){return{shape:{points:c(t)}}}i.removeAll(),_["k"](t.geo.regions,(function(r){var c=r.name,d=e.get(c),f=n.get(c)||{},p=f.dataIdx,g=f.regionModel;d||(d=e.set(c,new Jt["a"]),i.add(d),p=o?o.indexOfName(c):null,g=t.isGeo?a.getRegionModel(c):o?o.getItemModel(p):null,n.set(c,{dataIdx:p,regionModel:g}));var m=[],v=[];_["k"](r.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=bs(e,l)),_["k"](e,(function(t){m.push(new Oa["a"](h(t)))}))}else{var n=t.points;l&&(n=bs(n,l,!0)),_["k"](n,(function(t){v.push(new hi["a"](h(t)))}))}}));var y=u(r.getCenter(),s&&s.project);function b(e,n){if(e.length){var i=new G["a"]({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(i),gs(t,i,p,g),ms(t,i,c,g,a,p,y),n&&(fs(i),_["k"](i.states,fs))}}b(m),b(v,!0)})),e.each((function(e,i){var r=n.get(i),o=r.dataIdx,s=r.regionModel;vs(t,e,i,s,a,o),ys(t,e,i,s,a),_s(t,e,i,s,a)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=_["f"](),r=!1;_["k"](this._svgGraphicRecord.named,(function(e){var n=e.name,a=t.mapOrGeoModel,o=t.data,s=e.svgNodeTagLower,l=e.el,u=o?o.indexOfName(n):null,c=a.getRegionModel(n);if(null!=ls.get(s)&&l instanceof os["c"]&&gs(t,l,u,c),l instanceof os["c"]&&(l.culling=!0),l.z2EmphasisLift=0,!e.namedFrom&&(null!=cs.get(s)&&ms(t,l,n,c,a,u,null),vs(t,l,n,c,a,u),ys(t,l,n,c,a),null!=us.get(s))){var h=_s(t,l,n,c,a);"self"===h&&(r=!0);var d=i.get(n)||i.set(n,[]);d.push(l)}}),this),this._enableBlurEntireSVG(r,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){Object(re["G"])(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=i&&(e.opacity=i),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(t);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=rs.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=rs.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,r=this._controller,a=this._controllerHost;a.zoomLimit=t.get("scaleLimit"),a.zoom=i.getZoom(),r.enable(t.get("roam")||!1);var o=t.mainType;function s(){var e={type:"geoRoam",componentType:o};return e[o+"Id"]=t.id,e}r.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,io(a,t.dx,t.dy),n.dispatchAction(_["m"](s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,ro(a,t.scale,t.originX,t.originY),n.dispatchAction(_["m"](s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(e,r,a){return i.containPoint([r,a])&&!oo(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=hs(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){r._mouseDownFlag=!0})),e.on("click",(function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},t}();function gs(t,e,n,i){var r=i.getModel("itemStyle"),a=i.getModel(["emphasis","itemStyle"]),o=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=ds(r),u=ds(a),c=ds(s),h=ds(o),d=t.data;if(d){var f=d.getItemVisual(n,"style"),p=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=Object(as["a"])(p,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,Object(re["G"])(e)}function ms(t,e,n,i,r,a,o){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var h=l?n:a,d=void 0;(!s||a>=0)&&(d=r);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(le["g"])(e,Object(le["e"])(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},f);var p=e.getTextContent();if(p&&(hs(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function vs(t,e,n,i,r,a){t.data?t.data.setItemGraphicEl(a,e):Object(ie["a"])(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function ys(t,e,n,i,r){t.data||ne["setTooltipConfig"]({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function _s(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var a=i.getModel("emphasis"),o=a.get("focus");return Object(re["J"])(e,o,a.get("blurScope"),a.get("disabled")),t.isGeo&&Object(re["n"])(e,r,n),o}function bs(t,e,n){var i,r=[];function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),_["k"](t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}var xs=ps,ws=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id){a=this._mapDraw;a&&r.add(a.group)}else if(t.needsDrawMap){var a=this._mapDraw||new xs(n);r.add(a.group),a.draw(t,e,n,this,i),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var a=i.getItemLayout(n);if(a&&a.point){var o=a.point,s=a.offset,l=new ja["a"]({style:{fill:t.getData().getVisual("style").fill},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:8+(s?0:re["j"]+1)});if(!s){var u=t.mainSeries.getData(),c=i.getName(n),h=u.indexOfName(c),d=i.getItemModel(n),f=d.getModel("label"),p=u.getItemGraphicEl(h);Object(le["g"])(l,Object(le["e"])(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,f.get("position")||l.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(t){Object(re["H"])(l,t)}}r.add(l)}}}))},e.type="map",e}(Ne["a"]),Os=ws,Ss=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return Object(qt["a"])(e,t),e.prototype.getInitialData=function(t){for(var e=Ai(this,{coordDimensions:["value"],encodeDefaulter:_["h"](Ci["d"],this)}),n=_["f"](),i=[],r=0,a=e.count();r<a;r++){var o=e.getName(r);n.set(o,!0)}var s=rs.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return _["k"](s.regions,(function(t){var e=t.name;n.get(e)||i.push(e)})),e.appendValues([],i),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),r=this.getRawValue(t),a=i.getName(t),o=this.seriesGroup,s=[],l=0;l<o.length;l++){var u=o[l].originalData.indexOfName(a),c=i.mapDimension("value");isNaN(o[l].originalData.get(c,u))||s.push(o[l].name)}return Object(Ma["c"])("section",{header:s.join(", "),noHeader:!s.length,blocks:[Object(Ma["c"])("nameValue",{name:a,value:r})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=Object(Qt["a"])(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Kt["b"]),Ts=Ss;function Ms(t,e){var n={};return _["k"](t,(function(t){t.each(t.mapDimension("value"),(function(e,i){var r="ec-"+t.getName(i);n[r]=n[r]||[],isNaN(e)||n[r].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(i,r){for(var a,o="ec-"+t[0].getName(r),s=0,l=1/0,u=-1/0,c=n[o].length,h=0;h<c;h++)l=Math.min(l,n[o][h]),u=Math.max(u,n[o][h]),s+=n[o][h];return a="min"===e?l:"max"===e?u:"average"===e?s/c:s,0===c?NaN:a}))}function As(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),_["k"](e,(function(t,e){for(var n=Ms(_["H"](t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=0===i&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]}))}function Cs(t){var e={};t.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var r={};_["k"](n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var a=i.getName(e),o=n.getRegion(a);if(o&&!isNaN(t)){var s=r[a]||0,l=n.dataToPoint(o.getCenter());r[a]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var a=n.getData();a.each((function(t){var e=a.getName(t),n=a.getItemLayout(t)||{};n.showLabel=!r[e],a.setItemLayout(t,n)})),e[i]=!0}}))}var Is=cr["b"],Ds=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new V["c"],n._rawTransformable=new V["c"],n.name=e,n}return Object(qt["a"])(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new ki["a"](t,e,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new ki["a"](t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),a=this._rawTransformable;a.transform=r.calculateTransform(new ki["a"](t,e,n,i));var o=a.parent;a.parent=null,a.decomposeTransform(),a.parent=o,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[Object(Be["p"])(t[0],e.getWidth()),Object(Be["p"])(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=cr["b"]([],i,t),n=cr["b"]([],n,t),e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=r,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),ur["b"](this.transform||(this.transform=[]),e.transform||ur["c"]()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],ur["e"](this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new V["c"];return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?Is(n,t,i):cr["d"](n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?Is([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var i=Ls(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=Ls(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(V["c"]);function Ls(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var Es=Ds,js={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Ps=["lng","lat"],Ns=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.dimensions=Ps,r.type="geo",r._nameCoordMap=_["f"](),r.map=n;var a,o=i.projection,s=rs.load(n,i.nameMap,i.nameProperty),l=rs.getGeoResource(n),u=(r.resourceType=l?l.type:null,r.regions=s.regions),c=js[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,r.projection=o,o)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(o);a=a||d.clone(),a.union(d)}else a=s.boundingRect;return r.setBoundingRect(a.x,a.y,a.width,a.height),r.aspectScale=o?1:_["P"](i.aspectScale,c.aspectScale),r._invertLongitute=!o&&c.invertLongitute,r}return Object(qt["a"])(e,t),e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),a=this._invertLongitute;r=r.clone(),a&&(r.y=-r.y-r.height);var o=this._rawTransformable;o.transform=r.calculateTransform(new ki["a"](t,e,n,i));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,a&&(o.scaleY=-o.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(_["C"](t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,i){return t.prototype.dataToPoint.call(this,e,n,i)},e.prototype.convertToPixel=function(t,e,n){var i=Rs(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=Rs(e);return i===this?i.pointToData(n):null},e}(Es);function Rs(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Te["b"]).models[0]||{}).coordinateSystem:null}_["K"](Ns,Es);var ks=Ns;function Bs(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var a=this.projection;if(a){var o=i[0],s=i[1],l=r[0],u=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var c=function(t,e,n,o){for(var s=n-t,l=o-e,u=0;u<=100;u++){var c=u/100,h=a.project([t+s*c,e+l*c]);cr["l"](i,i,h),cr["k"](r,r,h)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else 0}var h,d,f,p=this.getBoundingRect(),g=t.get("layoutCenter"),m=t.get("layoutSize"),v=e.getWidth(),y=e.getHeight(),_=p.width/p.height*this.aspectScale,b=!1;if(g&&m&&(h=[Be["p"](g[0],v),Be["p"](g[1],y)],d=Be["p"](m,Math.min(v,y)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(b=!0)),b)f={},_>1?(f.width=d,f.height=d/_):(f.height=d,f.width=d*_),f.y=h[1]-f.height/2,f.x=h[0]-f.width/2;else{var x=t.getBoxLayoutParams();x.aspect=_,f=ri["g"](x,{width:v,height:y})}this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function zs(t,e){_["k"](e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var Vs=function(){function t(){this.dimensions=Ps}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var a=t.get("map"),o=new ks(a+r,a,_["m"]({nameMap:t.get("nameMap")},i(t)));o.zoomLimit=t.get("scaleLimit"),n.push(o),t.coordinateSystem=o,o.model=t,o.resize=Bs,o.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var i=t.get("geoIndex")||0;t.coordinateSystem=n[i]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),_["k"](r,(function(t,r){var a=_["H"](t,(function(t){return t.get("nameMap")})),o=new ks(r,r,_["m"]({nameMap:_["J"](a)},i(t[0])));o.zoomLimit=_["O"].apply(null,_["H"](t,(function(t){return t.get("scaleLimit")}))),n.push(o),o.resize=Bs,o.resize(t[0],e),_["k"](t,(function(t){t.coordinateSystem=o,zs(o,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),a=_["f"](),o=0;o<r.length;o++)a.set(r[o].name,r[o]);var s=rs.load(e,n,i);return _["k"](s.regions,(function(t){var e=t.name;!a.get(e)&&r.push({name:e})})),r},t}(),Fs=new Vs,Gs=Fs,Hs=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.init=function(t,e,n){var i=rs.getGeoResource(t.map);if(i&&"geoJSON"===i.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(t,n),Te["f"](t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=Gs.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=_["N"](e.regions||[],(function(e,i){var r=i.name;return r&&(e.set(r,new Er["a"](i,t,t.ecModel)),i.selected&&(n[r]=!0)),e}),_["f"]()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Er["a"](null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:t};return _["w"](i)?(r.status=e,i(r)):_["C"](i)?i.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;if(n){"multiple"!==n&&(e.selectedMap=null);var i=e.selectedMap||(e.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(Xi["a"]),Us=Hs;function Ws(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function Xs(t,e,n,i){var r=t.getZoom(),a=t.getCenter(),o=e.zoom,s=t.projectedToPoint?t.projectedToPoint(a):t.dataToPoint(a);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(Ws(t,s),i)),null!=o){if(n){var l=n.min||0,u=n.max||1/0;o=Math.max(Math.min(r*o,u),l)/r}t.scaleX*=o,t.scaleY*=o;var c=(e.originX-t.x)*(o-1),h=(e.originY-t.y)*(o-1);t.x-=c,t.y-=h,t.updateTransform(),t.setCenter(Ws(t,s),i),t.setZoom(o*r)}return{center:t.getCenter(),zoom:t.getZoom()}}var Zs=n("fadd"),qs=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return Object(qt["a"])(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new xs(n));var r=this._mapDraw;r.draw(t,e,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this.group.add(r.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;Object(Zs["a"])(t.target,(function(t){return null!=(e=Object(ie["a"])(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=Object(ie["a"])(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Wi["a"]),Ys=qs;function Ks(t,e,n){rs.registerMap(t,e,n)}function Qs(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var a=n.coordinateSystem;Object(_["k"])(a.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}));var o=[];Object(_["k"])(i,(function(t,e){i[e]&&o.push(e)})),r.push({geoIndex:n.componentIndex,name:o})})),{selected:i,allSelected:r,name:t.name}}))}t.registerCoordinateSystem("geo",Gs),t.registerComponentModel(Us),t.registerComponentView(Ys),t.registerImpl("registerMap",Ks),t.registerImpl("getMap",(function(t){return rs.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var r=e.coordinateSystem;if("geo"===r.type){var a=Xs(r,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(a.center),e.setZoom&&e.setZoom(a.zoom),"series"===i&&Object(_["k"])(e.seriesGroup,(function(t){t.setCenter(a.center),t.setZoom(a.zoom)}))}}))}))}function Js(t){Object(i["a"])(Qs),t.registerChartView(Os),t.registerSeriesModel(Ts),t.registerLayout(Cs),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,As),Object(ii["a"])("map",t.registerAction)}var $s=n("ac0f");function tl(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,r=[e];while(n=r.pop())if(i=n.children,n.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function el(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){ol(t);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-a):t.hierNode.prelim=a}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=sl(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function nl(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function il(t){return arguments.length?t:dl}function rl(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function al(t,e){return ri["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function ol(t){var e=t.children,n=e.length,i=0,r=0;while(--n>=0){var a=e[n];a.hierNode.prelim+=i,a.hierNode.modifier+=i,r+=a.hierNode.change,i+=a.hierNode.shift+r}}function sl(t,e,n,i){if(e){var r=t,a=t,o=a.parentNode.children[0],s=e,l=r.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,h=s.hierNode.modifier;while(s=ll(s),a=ul(a),s&&a){r=ll(r),o=ul(o),r.hierNode.ancestor=t;var d=s.hierNode.prelim+h-a.hierNode.prelim-u+i(s,a);d>0&&(hl(cl(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=r.hierNode.modifier,c+=o.hierNode.modifier}s&&!ll(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),a&&!ul(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,n=t)}return n}function ll(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function ul(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function cl(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function hl(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function dl(t,e){return t.parentNode===e.parentNode?1:2}var fl=n("e263"),pl=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),gl=function(t){function e(e){return t.call(this,e)||this}return Object(qt["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new pl},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,a=n[0],o=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(a[0],a[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Object(Be["p"])(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(o[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(a[0],a[1]),h[l]=a[l],t.lineTo(h[0],h[1]),h[l]=o[l],t.lineTo(h[0],h[1]),t.lineTo(o[0],o[1]);for(var d=1;d<i-1;d++){var f=n[d];t.moveTo(f[0],f[1]),h[l]=f[l],t.lineTo(h[0],h[1])}},e}(s["b"]),ml=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new Jt["a"],n}return Object(qt["a"])(e,t),e.prototype.init=function(t,e){this._controller=new no(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var i=t.getData(),r=t.layoutInfo,a=this._mainGroup,o=t.get("layout");"radial"===o?(a.x=r.x+r.width/2,a.y=r.y+r.height/2):(a.x=r.x,a.y=r.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var s=this._data;i.diff(s).add((function(e){vl(i,e)&&yl(i,e,null,a,t)})).update((function(e,n){var r=s.getItemGraphicEl(n);vl(i,e)?yl(i,e,r,a,t):r&&wl(s,n,r,a,t)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&wl(s,e,n,a,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])}));var r=[],a=[];fl["d"](i,r,a);var o=this._min,s=this._max;a[0]-r[0]===0&&(r[0]=o?o[0]:r[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-r[1]===0&&(r[1]=o?o[1]:r[1]-1,a[1]=s?s[1]:a[1]+1);var l=t.coordinateSystem=new Es;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(r[0],r[1],a[0]-r[0],a[1]-r[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=a},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,a=this._controllerHost,o=this.group;r.setPointerChecker((function(e,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!oo(e,n,t)})),r.enable(t.get("roam")),a.zoomLimit=t.get("scaleLimit"),a.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){io(a,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){ro(a,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1,r=e.getZoom(),a=(r-1)*n+1;return a/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(Ne["a"]);function vl(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function yl(t,e,n,i,r){var a=!n,o=t.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=!1===o.isExpand&&0!==o.children.length?l:"#fff",c=t.tree.root,h=o.parentNode===c?o:o.parentNode||o,d=t.getItemGraphicEl(h.dataIndex),f=h.getLayout(),p=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:f,g=o.getLayout();a?(n=new he(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=p.x,n.y=p.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,ee["h"](n,{x:g.x,y:g.y},r);var m=n.getSymbolPath();if("radial"===r.get("layout")){var v=c.children[0],y=v.getLayout(),b=v.children.length,x=void 0,w=void 0;if(g.x===y.x&&!0===o.isExpand&&v.children.length){var O={x:(v.children[0].getLayout().x+v.children[b-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[b-1].getLayout().y)/2};x=Math.atan2(O.y-y.y,O.x-y.x),x<0&&(x=2*Math.PI+x),w=O.x<y.x,w&&(x-=Math.PI)}else x=Math.atan2(g.y-y.y,g.x-y.x),x<0&&(x=2*Math.PI+x),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(w=g.x<y.x,w&&(x-=Math.PI)):(w=g.x>y.x,w||(x-=Math.PI));var S=w?"left":"right",T=s.getModel("label"),M=T.get("rotate"),A=M*(Math.PI/180),C=m.getTextContent();C&&(m.setTextConfig({position:T.get("position")||S,rotation:null==M?-x:A,origin:"center"}),C.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),D="relative"===I?_["e"](o.getAncestorsIndices(),o.getDescendantIndices()):"ancestor"===I?o.getAncestorsIndices():"descendant"===I?o.getDescendantIndices():null;D&&(Object(ie["a"])(n).focus=D),_l(r,o,c,n,p,f,g,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=o.parentNode&&t.getItemGraphicEl(o.parentNode.dataIndex);i&&i.hoverState===re["d"]||Object(re["H"])(n.__edge,e)}})}function _l(t,e,n,i,r,a,o,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),f=t.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new $s["a"]({shape:Ol(c,h,d,r,r)})),ee["h"](g,{shape:Ol(c,h,d,a,o)},t));else if("polyline"===u)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var m=e.children,v=[],y=0;y<m.length;y++){var b=m[y].getLayout();v.push([b.x,b.y])}g||(g=i.__edge=new gl({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:f}})),ee["h"](g,{shape:{parentPoint:[o.x,o.y],childPoints:v}},t)}}else 0;g&&("polyline"!==u||e.isExpand)&&(g.useStyle(_["i"]({strokeNoScale:!0,fill:null},p)),Object(re["I"])(g,l,"lineStyle"),Object(re["G"])(g),s.add(g))}function bl(t,e,n,i,r){var a=e.tree.root,o=xl(a,t),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),h=c.__edge,d=u.__edge||(!1===s.isExpand||1===s.children.length?h:void 0),f=i.get("edgeShape"),p=i.get("layout"),g=i.get("orient"),m=i.get(["lineStyle","curveness"]);d&&("curve"===f?ee["e"](d,{shape:Ol(p,g,m,l,l),style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}):"polyline"===f&&"orthogonal"===i.get("layout")&&ee["e"](d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}))}}function xl(t,e){var n,i=e.parentNode===t?e:e.parentNode||e;while(n=i.getLayout(),null==n)i=i.parentNode===t?i:i.parentNode||i;return{source:i,sourceLayout:n}}function wl(t,e,n,i,r){var a=t.tree.getNodeByDataIndex(e),o=t.tree.root,s=xl(o,a).sourceLayout,l={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};ee["e"](n,{x:s.x+1,y:s.y+1},r,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:l}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach((function(e){bl(e,t,i,r,l)})),bl(a,t,i,r,l)}function Ol(t,e,n,i,r){var a,o,s,l,u,c,h,d;if("radial"===t){u=i.rawX,h=i.rawY,c=r.rawX,d=r.rawY;var f=rl(u,h),p=rl(u,h+(d-h)*n),g=rl(c,d+(h-d)*n),m=rl(c,d);return{x1:f.x||0,y1:f.y||0,x2:m.x||0,y2:m.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,h=i.y,c=r.x,d=r.y,"LR"!==e&&"RL"!==e||(a=u+(c-u)*n,o=h,s=c+(u-c)*n,l=d),"TB"!==e&&"BT"!==e||(a=u,o=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var Sl=ml,Tl=n("6a2f"),Ml=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){_["w"](t)&&(n=e,e=t,t=null),t=t||{},_["C"](t)&&(t={order:t});var i,r=t.order||"preorder",a=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var o=0;!i&&o<a.length;o++)a[o].eachNode(t,e,n);"postorder"===r&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){var t=[],e=this;while(e)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),Al=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){var r=new t(n),a=[],o=1;function s(t,e){var n=t.value;o=Math.max(o,_["t"](n)?n.length:1),a.push(t);var i=new Ml(Object(Te["e"])(t.name,""),r);e?Cl(i,e):r.root=i,r._nodes.push(i);var l=t.children;if(l)for(var u=0;u<l.length;u++)s(l[u],i)}s(e),r.root.updateDepthAndHeight(0);var l=Object(Ti["b"])(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Mi["a"](l,n);return u.initData(a),i&&i(u),Object(Tl["a"])({mainData:u,struct:r,structAttr:"tree"}),r.update(),r},t}();function Cl(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var Il=Al;function Dl(t,e,n){if(t&&_["r"](e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if(_["C"](r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var a=t.targetNodeId;if(null!=a&&(r=i.getNodeById(a)))return{node:r}}}function Ll(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function El(t,e){var n=Ll(t);return _["r"](n,e)>=0}function jl(t,e){var n=[];while(t){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var Pl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return Object(qt["a"])(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Er["a"](n,this,this.ecModel),r=Il.createTree(e,this,a);function a(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}var o=0;r.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().tree,r=i.root.children[0],a=i.getNodeByDataIndex(t),o=a.getValue(),s=a.name;while(a&&a!==r)s=a.parentNode.name+"."+s,a=a.parentNode;return Object(Ma["c"])("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=jl(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Kt["b"]),Nl=Pl;function Rl(t,e,n){var i,r=[t],a=[];while(i=r.pop())if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}while(i=a.pop())e(i,n)}function kl(t,e){var n,i=[t];while(n=i.pop())if(e(n),n.isExpand){var r=n.children;if(r.length)for(var a=r.length-1;a>=0;a--)i.push(r[a])}}function Bl(t,e){t.eachSeriesByType("tree",(function(t){zl(t,e)}))}function zl(t,e){var n=al(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,a=0,o=null;"radial"===i?(r=2*Math.PI,a=Math.min(n.height,n.width)/2,o=il((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,a=n.height,o=il());var s=t.getData().tree.root,l=s.children[0];if(l){tl(s),Rl(l,el,o),s.hierNode.modifier=-l.hierNode.prelim,kl(l,nl);var u=l,c=l,h=l;kl(l,(function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)}));var d=u===c?1:o(u,c)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===i)p=r/(c.getLayout().x+d+f),g=a/(h.depth-1||1),kl(l,(function(t){m=(t.getLayout().x+f)*p,v=(t.depth-1)*g;var e=rl(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)}));else{var y=t.getOrient();"RL"===y||"LR"===y?(g=a/(c.getLayout().x+d+f),p=r/(h.depth-1||1),kl(l,(function(t){v=(t.getLayout().x+f)*g,m="LR"===y?(t.depth-1)*p:r-(t.depth-1)*p,t.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(p=r/(c.getLayout().x+d+f),g=a/(h.depth-1||1),kl(l,(function(t){m=(t.getLayout().x+f)*p,v="TB"===y?(t.depth-1)*g:a-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)})))}}}function Vl(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(_["m"])(r,i)}))}))}function Fl(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=e.coordinateSystem,r=Xs(i,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}function Gl(t){t.registerChartView(Sl),t.registerSeriesModel(Nl),t.registerLayout(Bl),t.registerVisual(Vl),Fl(t)}var Hl=["treemapZoomToNode","treemapRender","treemapMove"];function Ul(t){for(var e=0;e<Hl.length;e++)t.registerAction({type:Hl[e],update:"updateView"},_["L"]);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function n(e,n){var i=["treemapZoomToNode","treemapRootToNode"],r=Dl(t,i,e);if(r){var a=e.getViewRoot();a&&(t.direction=El(a,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)}))}var Wl=n("4041");function Xl(t){var e=t.getData(),n=e.tree,i={};n.eachNode((function(e){var n=e;while(n&&n.depth>1)n=n.parentNode;var r=Object(Wl["b"])(t.ecModel,n.name||n.dataIndex+"",i);e.setVisual("decal",r)}))}var Zl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return Object(qt["a"])(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};ql(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},a=new Er["a"]({itemStyle:r},this,e);i=t.levels=Yl(i,e);var o=_["H"](i||[],(function(t){return new Er["a"](t,a,e)}),this),s=Il.createTree(n,this,l);function l(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?o[n.depth]:null;return t.parentModel=i||a,t}))}return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),a=i.getName(t);return Object(Ma["c"])("nameValue",{name:a,value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=jl(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},_["m"](this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=_["f"](),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Xl(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Kt["b"]);function ql(t){var e=0;_["k"](t.children,(function(t){ql(t);var n=t.value;_["t"](n)&&(n=n[0]),e+=n}));var n=t.value;_["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),_["t"](t.value)?t.value[0]=n:t.value=n}function Yl(t,e){var n=Object(Te["r"])(e.get("color")),i=Object(Te["r"])(e.get(["aria","decal","decals"]));if(n){var r,a;t=t||[],_["k"](t,(function(t){var e=new Er["a"](t),n=e.get("color"),i=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(e.get(["itemStyle","decal"])||i&&"none"!==i)&&(a=!0)}));var o=t[0]||(t[0]={});return r||(o.color=n.slice()),!a&&i&&(o.decal=i.slice()),t}}var Kl=Zl,Ql=n("80f0"),Jl=8,$l=8,tu=5,eu=function(){function t(t){this.group=new Jt["a"],t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),r.get("show")&&n){var o=r.getModel("itemStyle"),s=o.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(t,l,o,s,i),ri["i"](a,l.pos,l.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=Object(Te["e"])(i.getModel().get("name"),""),a=n.getTextRect(r),o=Math.max(a.width+2*Jl,e.emptyItemWidth);e.totalWidth+=o+$l,e.renderList.push({node:i,text:r,width:o})}},t.prototype._renderContent=function(t,e,n,i,r){for(var a=0,o=e.emptyItemWidth,s=t.get(["breadcrumb","height"]),l=ri["e"](e.pos,e.box),u=e.totalWidth,c=e.renderList,h=c.length-1;h>=0;h--){var d=c[h],f=d.node,p=d.width,g=d.text;u>l.width&&(u-=p-o,p=o,g=null);var m=new Oa["a"]({shape:{points:nu(a,0,p,s,h===c.length-1,0===h)},style:Object(_["i"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new $["a"]({style:{text:g,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e4*re["j"],onclick:Object(_["h"])(r,f)});m.disableLabelAnimation=!0,this.group.add(m),iu(m,t,f),a+=p+$l}},t.prototype.remove=function(){this.group.removeAll()},t}();function nu(t,e,n,i,r,a){var o=[[r?t:t-tu,e],[t+n,e],[t+n,e+i],[r?t:t-tu,e+i]];return!a&&o.splice(2,0,[t+n+tu,e+i/2]),!r&&o.push([t,e+i/2]),o}function iu(t,e,n){Object(ie["a"])(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&jl(n,e)}}var ru=eu,au=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var a=this._storage[i];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();function ou(){return new au}var su=n("282b"),lu=Jt["a"],uu=Re["a"],cu=3,hu="label",du="upperLabel",fu=10*re["j"],pu=2*re["j"],gu=3*re["j"],mu=Object(su["a"])([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),vu=function(t){var e=mu(t);return e.stroke=e.fill=e.lineWidth=null,e},yu=Object(Te["o"])(),_u=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=bu(),n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n,i){var r=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Object(_["r"])(r,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var a=["treemapZoomToNode","treemapRootToNode"],o=Dl(i,a,t),s=i&&i.type,l=t.layoutInfo,u=!this._oldTree,c=this._storage,h="treemapRootToNode"===s&&o&&c?{rootNodeGroup:c.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(l),f=t.get("animation"),p=this._doRender(d,t,h);!f||u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?p.renderFinally():this._doAnimation(d,p,t,h),this._resetController(n),this._renderBreadcrumb(t,n,o)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new lu,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i=e.getData().tree,r=this._oldTree,a=bu(),o=bu(),s=this._storage,l=[];function u(t,i,r,u){return xu(e,o,s,n,a,l,t,i,r,u)}h(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var c=d(s);return this._oldTree=i,this._storage=o,{lastsForAnimation:a,willDeleteEls:c,renderFinally:f};function h(t,e,n,i,r){function a(t){return t.getId()}function o(a,o){var s=null!=a?t[a]:null,l=null!=o?e[o]:null,c=u(s,l,n,r);c&&h(s&&s.viewChildren||[],l&&l.viewChildren||[],c,i,r+1)}i?(e=t,Object(_["k"])(t,(function(t,e){!t.isRemoved()&&o(e,e)}))):new Ql["a"](e,t,a,a).add(o).update(o).remove(Object(_["h"])(o,null)).execute()}function d(t){var e=bu();return t&&Object(_["k"])(t,(function(t,n){var i=e[n];Object(_["k"])(t,(function(t){t&&(i.push(t),yu(t).willDelete=!0)}))})),e}function f(){Object(_["k"])(c,(function(t){Object(_["k"])(t,(function(t){t.parent&&t.parent.remove(t)}))})),Object(_["k"])(l,(function(t){t.invisible=!0,t.dirty()}))}},e.prototype._doAnimation=function(t,e,n,i){var r=n.get("animationDurationUpdate"),a=n.get("animationEasing"),o=(Object(_["w"])(r)?0:r)||0,s=(Object(_["w"])(a)?null:a)||"cubicOut",l=ou();Object(_["k"])(e.willDeleteEls,(function(t,e){Object(_["k"])(t,(function(t,n){if(!t.invisible){var r,a=t.parent,u=yu(a);if(i&&"drillDown"===i.direction)r=a===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),r="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}r&&l.add(t,r,o,0,s)}}))})),Object(_["k"])(this._storage,(function(t,n){Object(_["k"])(t,(function(t,i){var r=e.lastsForAnimation[n][i],a={};r&&(t instanceof Jt["a"]?null!=r.oldX&&(a.x=t.x,a.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(a.shape=Object(_["m"])({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),a.style={opacity:1}):1!==t.style.opacity&&(a.style={opacity:1})),l.add(t,a,o,0,s))}))}),this),this._state="animating",l.finished(Object(_["c"])((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller;e||(e=this._controller=new no(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",Object(_["c"])(this._onPan,this)),e.on("zoom",Object(_["c"])(this._onZoom,this)));var n=new ki["a"](0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,i){return n.contain(e,i)}))},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>cu||Math.abs(t.dy)>cu)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var a=new ki["a"](r.x,r.y,r.width,r.height),o=this.seriesModel.layoutInfo;e-=o.x,n-=o.y;var s=ur["c"]();ur["i"](s,s,[-e,-n]),ur["h"](s,s,[t.scale,t.scale]),ur["i"](s,s,[e,n]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var a=r.hostTree.data.getItemModel(r.dataIndex),o=a.get("link",!0),s=a.get("target",!0)||"blank";o&&Object(He["l"])(o,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new ru(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(El(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=bu(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var a=r.transformCoordToLocal(t,e),o=r.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;n={node:i,offsetX:a[0],offsetY:a[1]}}}),this),n},e.type="treemap",e}(Ne["a"]);function bu(){return{nodeGroup:[],background:[],content:[]}}function xu(t,e,n,i,r,a,o,s,l,u){if(o){var c=o.getLayout(),h=t.getData(),d=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),c&&c.isInView){var f=c.width,p=c.height,g=c.borderWidth,m=c.invisible,v=o.getRawIndex(),y=s&&s.getRawIndex(),b=o.viewChildren,x=c.upperHeight,w=b&&b.length,O=d.getModel("itemStyle"),S=d.getModel(["emphasis","itemStyle"]),T=d.getModel(["blur","itemStyle"]),M=d.getModel(["select","itemStyle"]),A=O.get("borderRadius")||0,C=F("nodeGroup",lu);if(C){if(l.add(C),C.x=c.x||0,C.y=c.y||0,C.markRedraw(),yu(C).nodeWidth=f,yu(C).nodeHeight=p,c.isAboveViewRoot)return C;var I=F("background",uu,u,pu);I&&R(C,I,w&&c.upperLabelHeight);var D=d.getModel("emphasis"),L=D.get("focus"),E=D.get("blurScope"),j=D.get("disabled"),P="ancestor"===L?o.getAncestorsIndices():"descendant"===L?o.getDescendantIndices():L;if(w)Object(re["y"])(C)&&Object(re["F"])(C,!1),I&&(Object(re["F"])(I,!j),h.setItemGraphicEl(o.dataIndex,I),Object(re["p"])(I,P,E));else{var N=F("content",uu,u,gu);N&&k(C,N),I.disableMorphing=!0,I&&Object(re["y"])(I)&&Object(re["F"])(I,!1),Object(re["F"])(C,!j),h.setItemGraphicEl(o.dataIndex,C),Object(re["p"])(C,P,E)}return C}}}function R(e,n,i){var r=Object(ie["a"])(n);if(r.dataIndex=o.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:f,height:p,r:A}),m)B(n);else{n.invisible=!1;var a=o.getVisual("style"),s=a.stroke,l=vu(O);l.fill=s;var u=mu(S);u.fill=S.get("borderColor");var c=mu(T);c.fill=T.get("borderColor");var h=mu(M);if(h.fill=M.get("borderColor"),i){var d=f-2*g;z(n,s,a.opacity,{x:g,y:0,width:d,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,Object(re["G"])(n)}e.add(n)}function k(e,n){var i=Object(ie["a"])(n);i.dataIndex=o.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(f-2*g,0),a=Math.max(p-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:a,r:A}),m)B(n);else{n.invisible=!1;var s=o.getVisual("style"),l=s.fill,u=vu(O);u.fill=l,u.decal=s.decal;var c=mu(S),h=mu(T),d=mu(M);z(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,Object(re["G"])(n)}e.add(n)}function B(t){!t.invisible&&a.push(t)}function z(e,n,i,r){var a=d.getModel(r?du:hu),s=Object(Te["e"])(d.get("name"),null),l=a.getShallow("show");Object(le["g"])(e,Object(le["e"])(d,r?du:hu),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:o.dataIndex});var u=e.getTextContent();if(u){var h=u.style,f=Object(_["M"])(h.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-f[1]-f[3],0),n=Math.max((r?r.height:e.shape.height)-f[0]-f[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",V(h,r,c);var p=u.getState("emphasis");V(p?p.style:null,r,c)}}function V(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var a=t.get("drillDownIcon",!0);e.text=a?a+" "+r:r}}function F(t,i,a,o){var s=null!=y&&n[t][y],l=r[t];return s?(n[t][y]=null,G(l,s)):m||(s=new i,s instanceof os["c"]&&(s.z2=wu(a,o)),H(l,s)),e[t][v]=s}function G(t,e){var n=t[v]={};e instanceof lu?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(_["m"])({},e.shape)}function H(t,e){var n=t[v]={},a=o.parentNode,s=e instanceof Jt["a"];if(a&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[a.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function wu(t,e){return t*fu+e}var Ou=_u,Su=n("edae"),Tu=_["k"],Mu=_["A"],Au=-1,Cu=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=_["d"](e);this.type=i,this.mappingMethod=n,this._normalizeData=Vu[n];var a=t.visualHandlers[i];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(Lu(r),Iu(r)):"category"===n?r.categories?Du(r):Lu(r,!0):(_["b"]("linear"!==n||r.dataExtent),Lu(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return _["c"](this._normalizeData,this)},t.listVisualTypes=function(){return _["F"](t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){_["A"](t)?_["k"](t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,a=_["t"](e)?[]:_["A"](e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var o=n.call(i,t,e);r?a=o:a[e]=o})),a},t.retrieveVisuals=function(e){var n,i={};return e&&Tu(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(_["t"](t))t=t.slice();else{if(!Mu(t))return[];var e=[];Tu(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,a=0,o=e.length;a<o;a++){var s=e[a].value;if(null!=s){if(s===t||_["C"](s)&&s===t+"")return a;n&&h(s,a)}}for(a=0,o=e.length;a<o;a++){var l=e[a],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(Fu(c[1],t,u[1]))return a}else if(u[1]===1/0){if(Fu(c[0],u[0],t))return a}else if(Fu(c[0],u[0],t)&&Fu(c[1],t,u[1]))return a;n&&h(u[0],a),n&&h(u[1],a)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function h(e,n){var a=Math.abs(e-t);a<r&&(r=a,i=n)}},t.visualHandlers={color:{applyVisual:Pu("color"),getColorMapper:function(){var t=this.option;return _["c"]("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),Nu.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=Ue["fastLerp"](e,t.parsedVisual,i),r?i:Ue["stringify"](i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Ue["stringify"](Ue["fastLerp"](t,this.option.parsedVisual),"rgba")},category:Nu,piecewise:function(t,e){var n=Bu.call(this,e);return null==n&&(n=Ue["stringify"](Ue["fastLerp"](t,this.option.parsedVisual),"rgba")),n},fixed:Ru}},colorHue:Eu((function(t,e){return Ue["modifyHSL"](t,e)})),colorSaturation:Eu((function(t,e){return Ue["modifyHSL"](t,null,e)})),colorLightness:Eu((function(t,e){return Ue["modifyHSL"](t,null,null,e)})),colorAlpha:Eu((function(t,e){return Ue["modifyAlpha"](t,e)})),decal:{applyVisual:Pu("decal"),_normalizedToVisual:{linear:null,category:Nu,piecewise:null,fixed:null}},opacity:{applyVisual:Pu("opacity"),_normalizedToVisual:ku([0,1])},liftZ:{applyVisual:Pu("liftZ"),_normalizedToVisual:{linear:Ru,category:Ru,piecewise:Ru,fixed:Ru}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:ju,category:Nu,piecewise:function(t,e){var n=Bu.call(this,e);return null==n&&(n=ju.call(this,t)),n},fixed:Ru}},symbolSize:{applyVisual:Pu("symbolSize"),_normalizedToVisual:ku([0,1])}},t}();function Iu(t){var e=t.pieceList;t.hasSpecialVisual=!1,_["k"](e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function Du(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(Tu(e,(function(t,e){n[t]=e})),!_["t"](i)){var r=[];_["A"](i)?Tu(i,(function(t,e){var i=n[e];r[null!=i?i:Au]=t})):r[Au]=i,i=zu(t,r)}for(var a=e.length-1;a>=0;a--)null==i[a]&&(delete n[e[a]],e.pop())}function Lu(t,e){var n=t.visual,i=[];_["A"](n)?Tu(n,(function(t){i.push(t)})):null!=n&&i.push(n);var r={color:1,symbol:1};e||1!==i.length||r.hasOwnProperty(t.type)||(i[1]=i[0]),zu(t,i)}function Eu(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:ku([0,1])}}function ju(t){var e=this.option.visual;return e[Math.round(Object(Be["l"])(t,[0,1],[0,e.length-1],!0))]||{}}function Pu(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function Nu(t){var e=this.option.visual;return e[this.option.loop&&t!==Au?t%e.length:t]}function Ru(){return this.option.visual[0]}function ku(t){return{linear:function(e){return Object(Be["l"])(e,t,this.option.visual,!0)},category:Nu,piecewise:function(e,n){var i=Bu.call(this,n);return null==i&&(i=Object(Be["l"])(e,t,this.option.visual,!0)),i},fixed:Ru}}function Bu(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=Cu.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function zu(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=_["H"](e,(function(t){var e=Ue["parse"](t);return e||[0,0,0,1]}))),e}var Vu={linear:function(t){return Object(Be["l"])(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Cu.findPieceIndex(t,e,!0);if(null!=n)return Object(Be["l"])(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?Au:e},fixed:_["L"]};function Fu(t,e,n){return t?e<=n:e<n}var Gu=Cu,Hu="itemStyle",Uu=Object(Te["o"])(),Wu={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||Xu(n,{},t.getViewRoot().getAncestors(),t)}};function Xu(t,e,n,i){var r=t.getModel(),a=t.getLayout(),o=t.hostTree.data;if(a&&!a.invisible&&a.isInView){var s,l=r.getModel(Hu),u=Zu(l,e,i),c=o.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(s=qu(u),h=Yu(d,s)),c.stroke=h;var f=t.viewChildren;if(f&&f.length){var p=Qu(t,r,a,l,u,f);Object(_["k"])(f,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var a=$u(r,u,t,e,p,i);Xu(t,a,n,i)}}))}else s=qu(u),c.fill=s}}function Zu(t,e,n){var i=Object(_["m"])({},e),r=n.designatedVisualItemStyle;return Object(_["k"])(["color","colorAlpha","colorSaturation"],(function(n){r[n]=e[n];var a=t.get(n);r[n]=null,null!=a&&(i[n]=a)})),i}function qu(t){var e=Ku(t,"color");if(e){var n=Ku(t,"colorAlpha"),i=Ku(t,"colorSaturation");return i&&(e=Object(Ue["modifyHSL"])(e,null,null,i)),n&&(e=Object(Ue["modifyAlpha"])(e,n)),e}}function Yu(t,e){return null!=e?Object(Ue["modifyHSL"])(e,null,null,t):null}function Ku(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function Qu(t,e,n,i,r,a){if(a&&a.length){var o=Ju(e,"color")||null!=r.color&&"none"!==r.color&&(Ju(e,"colorAlpha")||Ju(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new Gu(h);return Uu(d).drColorMappingBy=c,d}}}function Ju(t,e){var n=t.get(e);return Object(_["t"])(n)&&n.length?{name:e,range:n}:null}function $u(t,e,n,i,r,a){var o=Object(_["m"])({},e);if(r){var s=r.type,l="color"===s&&Uu(r).drColorMappingBy,u="index"===l?i:"id"===l?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));o[s]=r.mapValueToVisual(u)}return o}var tc=Math.max,ec=Math.min,nc=_["O"],ic=_["k"],rc=["itemStyle","borderWidth"],ac=["itemStyle","gapWidth"],oc=["upperLabel","show"],sc=["upperLabel","height"],lc={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),a=n.getHeight(),o=t.option,s=ri["g"](t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=Object(Be["p"])(nc(s.width,l[0]),r),c=Object(Be["p"])(nc(s.height,l[1]),a),h=i&&i.type,d=["treemapZoomToNode","treemapRootToNode"],f=Dl(i,d,t),p="treemapRender"===h||"treemapMove"===h?i.rootRect:null,g=t.getViewRoot(),m=Ll(g);if("treemapMove"!==h){var v="treemapZoomToNode"===h?mc(t,f,g,u,c):p?[p.width,p.height]:[u,c],y=o.sort;y&&"asc"!==y&&"desc"!==y&&(y="desc");var b={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var x={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};g.setLayout(x),uc(g,b,!1,0),x=g.getLayout(),ic(m,(function(t,e){var n=(m[e+1]||g).getValue();t.setLayout(_["m"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var w=t.getData().tree.root;w.setLayout(vc(s,p,f),!0),t.setLayoutInfo(s),yc(w,new ki["a"](-s.x,-s.y,r,a),m,g,0)}};function uc(t,e,n,i){var r,a;if(!t.isRemoved()){var o=t.getLayout();r=o.width,a=o.height;var s=t.getModel(),l=s.get(rc),u=s.get(ac)/2,c=_c(s),h=Math.max(l,c),d=l-u,f=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),r=tc(r-2*d,0),a=tc(a-d-f,0);var p=r*a,g=cc(t,s,p,e,n,i);if(g.length){var m={x:d,y:f,width:r,height:a},v=ec(r,a),y=1/0,_=[];_.area=0;for(var b=0,x=g.length;b<x;){var w=g[b];_.push(w),_.area+=w.getLayout().area;var O=pc(_,v,e.squareRatio);O<=y?(b++,y=O):(_.area-=_.pop().getLayout().area,gc(_,v,m,u,!1),v=ec(m.width,m.height),_.length=_.area=0,y=1/0)}if(_.length&&gc(_,v,m,u,!0),!n){var S=s.get("childrenVisibleMin");null!=S&&p<S&&(n=!0)}for(b=0,x=g.length;b<x;b++)uc(g[b],e,n,i+1)}}}function cc(t,e,n,i,r,a){var o=t.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=a;if(r&&!l)return t.viewChildren=[];o=_["n"](o,(function(t){return!t.isRemoved()})),dc(o,s);var u=fc(e,o,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=hc(e,n,u.sum,s,o),0===u.sum)return t.viewChildren=[];for(var c=0,h=o.length;c<h;c++){var d=o[c].getValue()/u.sum*n;o[c].setLayout({area:d})}return l&&(o.length&&t.setLayout({isLeafRoot:!0},!0),o.length=0),t.viewChildren=o,t.setLayout({dataExtent:u.dataExtent},!0),o}function hc(t,e,n,i,r){if(!i)return n;for(var a=t.get("visibleMin"),o=r.length,s=o,l=o-1;l>=0;l--){var u=r["asc"===i?o-l-1:l].getValue();u/n*e<a&&(s=l,n-=u)}return"asc"===i?r.splice(0,o-s):r.splice(s,o-s),n}function dc(t,e){return e&&t.sort((function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i})),t}function fc(t,e,n){for(var i=0,r=0,a=e.length;r<a;r++)i+=e[r].getValue();var o,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(o=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&o.reverse()):(o=[1/0,-1/0],ic(e,(function(t){var e=t.getValue(s);e<o[0]&&(o[0]=e),e>o[1]&&(o[1]=e)}))):o=[NaN,NaN],{sum:i,dataExtent:o}}function pc(t,e,n){for(var i=0,r=1/0,a=0,o=void 0,s=t.length;a<s;a++)o=t[a].getLayout().area,o&&(o<r&&(r=o),o>i&&(i=o));var l=t.area*t.area,u=e*e*n;return l?tc(u*i/l,l/(u*r)):1/0}function gc(t,e,n,i,r){var a=e===n.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=n[s[a]],c=e?t.area/e:0;(r||c>n[l[o]])&&(c=n[l[o]]);for(var h=0,d=t.length;h<d;h++){var f=t[h],p={},g=c?f.getLayout().area/c:0,m=p[l[o]]=tc(c-2*i,0),v=n[s[a]]+n[l[a]]-u,y=h===d-1||v<g?v:g,_=p[l[a]]=tc(y-2*i,0);p[s[o]]=n[s[o]]+ec(i,m/2),p[s[a]]=u+ec(i,_/2),u+=y,f.setLayout(p,!0)}n[s[o]]+=c,n[l[o]]-=c}function mc(t,e,n,i,r){var a,o=(e||{}).node,s=[i,r];if(!o||o===n)return s;var l=i*r,u=l*t.option.zoomToNodeRatio;while(a=o.parentNode){for(var c=0,h=a.children,d=0,f=h.length;d<f;d++)c+=h[d].getValue();var p=o.getValue();if(0===p)return s;u*=c/p;var g=a.getModel(),m=g.get(rc),v=Math.max(m,_c(g));u+=4*m*m+(3*m+v)*Math.pow(u,.5),u>Be["a"]&&(u=Be["a"]),o=a}u<l&&(u=l);var y=Math.pow(u/l,.5);return[i*y,r*y]}function vc(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,a=r.getLayout();if(!a)return i;var o=[a.width/2,a.height/2],s=r;while(s){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}function yc(t,e,n,i,r){var a=t.getLayout(),o=n[r],s=o&&o===t;if(!(o&&!s||r===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new ki["a"](e.x-a.x,e.y-a.y,e.width,e.height);ic(t.viewChildren||[],(function(t){yc(t,l,n,i,r+1)}))}}function _c(t){return t.get(oc)?t.get(sc):0}function bc(t){t.registerSeriesModel(Kl),t.registerChartView(Ou),t.registerVisual(Wu),t.registerLayout(lc),Ul(t)}function xc(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph(),r=i.data,a=n.mapArray(n.getName);r.filterSelf((function(t){var n=r.getItemModel(t),i=n.getShallow("category");if(null!=i){Object(_["z"])(i)&&(i=a[i]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(i))return!1}return!0}))}))}function wc(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each((function(i){var a=n.getName(i);r["ec-"+a]=i;var o=n.getItemModel(i),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(a,e)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=o.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t),a=e.getShallow("category");if(null!=a){Object(_["C"])(a)&&(a=r["ec-"+a]);var o=n.getItemVisual(a,"style"),s=i.ensureUniqueItemVisual(t,"style");Object(_["m"])(s,o);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)i.setItemVisual(t,l[u],n.getItemVisual(a,l[u]))}}))}))}function Oc(t){return t instanceof Array||(t=[t,t]),t}function Sc(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=Oc(t.get("edgeSymbol")),r=Oc(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var i=n.getItemModel(t),r=e.getEdgeByIndex(t),a=Oc(i.getShallow("symbol",!0)),o=Oc(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(Object(_["m"])(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=r.node2.getVisual("style");l.stroke=u&&u.fill;break}a[0]&&r.setVisual("fromSymbol",a[0]),a[1]&&r.setVisual("toSymbol",a[1]),o[0]&&r.setVisual("fromSymbolSize",o[0]),o[1]&&r.setVisual("toSymbolSize",o[1])}))}))}var Tc="--\x3e",Mc=function(t){return t.get("autoCurveness")||null},Ac=function(t,e){var n=Mc(t),i=20,r=[];if(_["z"](n))i=n;else if(_["t"](n))return void(t.__curvenessList=n);e>i&&(i=e);var a=i%2?i+2:i+3;r=[];for(var o=0;o<a;o++)r.push((o%2?o+1:o)/10*(o%2?-1:1));t.__curvenessList=r},Cc=function(t,e,n){var i=[t.id,t.dataIndex].join("."),r=[e.id,e.dataIndex].join(".");return[n.uid,i,r].join(Tc)},Ic=function(t){var e=t.split(Tc);return[e[0],e[2],e[1]].join(Tc)},Dc=function(t,e){var n=Cc(t.node1,t.node2,e);return e.__edgeMap[n]},Lc=function(t,e){var n=Ec(Cc(t.node1,t.node2,e),e),i=Ec(Cc(t.node2,t.node1,e),e);return n+i},Ec=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function jc(t){Mc(t)&&(t.__curvenessList=[],t.__edgeMap={},Ac(t))}function Pc(t,e,n,i){if(Mc(n)){var r=Cc(t,e,n),a=n.__edgeMap,o=a[Ic(r)];a[r]&&!o?a[r].isForward=!0:o&&a[r]&&(o.isForward=!0,a[r].isForward=!1),a[r]=a[r]||[],a[r].push(i)}}function Nc(t,e,n,i){var r=Mc(e),a=_["t"](r);if(!r)return null;var o=Dc(t,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===n){s=l;break}var u=Lc(t,e);Ac(e,u),t.lineStyle=t.lineStyle||{};var c=Cc(t.node1,t.node2,e),h=e.__curvenessList,d=a||u%2?0:1;if(o.isForward)return h[d+s];var f=Ic(c),p=Ec(f,e),g=h[s+p+d];return i?a?r&&0===r[0]?(p+d)%2?g:-g:((p%2?0:1)+d)%2?g:-g:(p+d)%2?g:-g:h[s+p+d]}function Rc(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),kc(n,t)}}function kc(t,e){t.eachEdge((function(t,n){var i=_["Q"](t.getModel().get(["lineStyle","curveness"]),-Nc(t,e,n,!0),0),r=cr["c"](t.node1.getLayout()),a=cr["c"](t.node2.getLayout()),o=[r,a];+i&&o.push([(r[0]+a[0])/2-(r[1]-a[1])*i,(r[1]+a[1])/2-(a[0]-r[0])*i]),t.setLayout(o)}))}function Bc(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),r=[];Object(_["k"])(n.dimensions,(function(t){r=r.concat(i.mapDimensionsAll(t))}));for(var a=0;a<i.count();a++){for(var o=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],a);isNaN(u)||(s=!0),o.push(u)}s?i.setItemLayout(a,n.dataToPoint(o)):i.setItemLayout(a,[NaN,NaN])}kc(i.graph,t)}else e&&"none"!==e||Rc(t)}))}function zc(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scaleX,r=e.getZoom(),a=(r-1)*n+1;return a/i}function Vc(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Fc=Math.PI,Gc=[];function Hc(t,e){var n=t.coordinateSystem;if(!n||"view"===n.type){var i=n.getBoundingRect(),r=t.getData(),a=r.graph,o=i.width/2+i.x,s=i.height/2+i.y,l=Math.min(i.width,i.height)/2,u=r.count();r.setLayout({cx:o,cy:s}),u&&(Uc[e](t,a,r,l,o,s,u),a.eachEdge((function(e,n){var i,r=_["Q"](e.getModel().get(["lineStyle","curveness"]),Nc(e,t,n),0),a=cr["c"](e.node1.getLayout()),l=cr["c"](e.node2.getLayout()),u=(a[0]+l[0])/2,c=(a[1]+l[1])/2;+r&&(r*=3,i=[o*r+u*(1-r),s*r+c*(1-r)]),e.setLayout([a,l,i])})))}}var Uc={value:function(t,e,n,i,r,a,o){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||o);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+a]),s+=n}))},symbolSize:function(t,e,n,i,r,a,o){var s=0;Gc.length=o;var l=zc(t);e.eachNode((function(t){var e=Vc(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=Fc/2),Gc[t.dataIndex]=n,s+=2*n}));var u=(2*Fc-s)/o/2,c=0;e.eachNode((function(t){var e=u+Gc[t.dataIndex];c+=e,t.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+a]),c+=e}))}};function Wc(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&Hc(t,"symbolSize")}))}var Xc=cr["o"];function Zc(t,e,n){for(var i=t,r=e,a=n.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var h=i[c];h.p||(h.p=cr["e"](o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=cr["c"](h.p),h.edges=null}var d,f,p=null==n.friction?.6:n.friction,g=p;return{warmUp:function(){g=.8*p},setFixed:function(t){i[t].fixed=!0},setUnfixed:function(t){i[t].fixed=!1},beforeStep:function(t){d=t},afterStep:function(t){f=t},step:function(t){d&&d(i,r);for(var e=[],n=i.length,a=0;a<r.length;a++){var o=r[a];if(!o.ignoreForceLayout){var s=o.n1,c=o.n2;cr["q"](e,c.p,s.p);var h=cr["i"](e)-o.d,p=c.w/(s.w+c.w);isNaN(p)&&(p=0),cr["m"](e,e),!s.fixed&&Xc(s.p,s.p,e,p*h*g),!c.fixed&&Xc(c.p,c.p,e,-(1-p)*h*g)}}for(a=0;a<n;a++){var m=i[a];m.fixed||(cr["q"](e,l,m.p),Xc(m.p,m.p,e,u*g))}for(a=0;a<n;a++){s=i[a];for(var v=a+1;v<n;v++){c=i[v];cr["q"](e,c.p,s.p);h=cr["i"](e);0===h&&(cr["p"](e,Math.random()-.5,Math.random()-.5),h=1);var y=(s.rep+c.rep)/h/h;!s.fixed&&Xc(s.pp,s.pp,e,y),!c.fixed&&Xc(c.pp,c.pp,e,-y)}}var _=[];for(a=0;a<n;a++){m=i[a];m.fixed||(cr["q"](_,m.p,m.pp),Xc(m.p,m.p,_,g),cr["d"](m.pp,m.p))}g*=.992;var b=g<.01;f&&f(i,r,b),t&&t(b)}}}function qc(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),r=i.data,a=i.edgeData,o=t.getModel("force"),s=o.get("initLayout");t.preservedPoints?r.each((function(t){var e=r.getId(t);r.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&Hc(t,"value"):Rc(t);var l=r.getDataExtent("value"),u=a.getDataExtent("value"),c=o.get("repulsion"),h=o.get("edgeLength"),d=_["t"](c)?c:[c,c],f=_["t"](h)?h:[h,h];f=[f[1],f[0]];var p=r.mapArray("value",(function(t,e){var n=r.getItemLayout(e),i=Object(Be["l"])(t,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:r.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=a.mapArray("value",(function(e,n){var r=i.getEdgeByIndex(n),a=Object(Be["l"])(e,u,f);isNaN(a)&&(a=(f[0]+f[1])/2);var o=r.getModel(),s=_["Q"](r.getModel().get(["lineStyle","curveness"]),-Nc(r,t,n,!0),0);return{n1:p[r.node1.dataIndex],n2:p[r.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}})),m=e.getBoundingRect(),v=Zc(p,g,{rect:m,gravity:o.get("gravity"),friction:o.get("friction")});v.beforeStep((function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].fixed&&cr["d"](t[n].p,i.getNodeByIndex(n).getLayout())})),v.afterStep((function(t,e,a){for(var o=0,s=t.length;o<s;o++)t[o].fixed||i.getNodeByIndex(o).setLayout(t[o].p),n[r.getId(o)]=t[o].p;for(o=0,s=e.length;o<s;o++){var l=e[o],u=i.getEdgeByIndex(o),c=l.n1.p,h=l.n2.p,d=u.getLayout();d=d?d.slice():[],d[0]=d[0]||[],d[1]=d[1]||[],cr["d"](d[0],c),cr["d"](d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}})),t.forceLayout=v,t.preservedPoints=n,v.step()}else t.forceLayout=null}))}function Yc(t,e,n){var i=Object(_["m"])(t.getBoxLayoutParams(),{aspect:n});return Object(ri["g"])(i,{width:e.getWidth(),height:e.getHeight()})}function Kc(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var i=t.get("coordinateSystem");if(!i||"view"===i){var r=t.getData(),a=r.mapArray((function(t){var e=r.getItemModel(t);return[+e.get("x"),+e.get("y")]})),o=[],s=[];fl["d"](a,o,s),s[0]-o[0]===0&&(s[0]+=1,o[0]-=1),s[1]-o[1]===0&&(s[1]+=1,o[1]-=1);var l=(s[0]-o[0])/(s[1]-o[1]),u=Yc(t,e,l);isNaN(l)&&(o=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-o[0],h=s[1]-o[1],d=u.width,f=u.height,p=t.coordinateSystem=new Es;p.zoomLimit=t.get("scaleLimit"),p.setBoundingRect(o[0],o[1],c,h),p.setViewRect(u.x,u.y,d,f),p.setCenter(t.get("center"),e),p.setZoom(t.get("zoom")),n.push(p)}})),n}var Qc=Lr["a"].prototype,Jc=$s["a"].prototype,$c=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(qt["a"])(e,t)})($c);function th(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var eh=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return Object(qt["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $c},e.prototype.buildPath=function(t,e){th(e)?Qc.buildPath.call(this,t,e):Jc.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return th(this.shape)?Qc.pointAt.call(this,t):Jc.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=th(e)?[e.x2-e.x1,e.y2-e.y1]:Jc.tangentAt.call(this,t);return cr["m"](n,n)},e}(s["b"]),nh=eh,ih=["fromSymbol","toSymbol"];function rh(t){return"_"+t+"Type"}function ah(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),a=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Qt["c"](r),u=Qt["b"](o||0,l),c=Qt["a"](i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==a||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=t,c}}function oh(t){var e=new nh({name:"line",subPixelOptimize:!0});return sh(e.shape,t),e}function sh(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var lh=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return Object(qt["a"])(e,t),e.prototype._createLine=function(t,e,n){var i=t.hostModel,r=t.getItemLayout(e),a=oh(r);a.shape.percent=0,ee["c"](a,{shape:{percent:1}},i,e),this.add(a),Object(_["k"])(ih,(function(n){var i=ah(n,t,e);this.add(i),this[rh(n)]=t.getItemVisual(e,n)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),a=t.getItemLayout(e),o={shape:{}};sh(o.shape,a),ee["h"](r,o,i,e),Object(_["k"])(ih,(function(n){var i=t.getItemVisual(e,n),r=rh(n);if(this[r]!==i){this.remove(this.childOfName(n));var a=ah(n,t,e);this.add(a)}this[r]=i}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(e),f=d.getModel("emphasis");a=f.getModel("lineStyle").getLineStyle(),o=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),u=f.get("disabled"),c=f.get("focus"),h=f.get("blurScope"),l=Object(le["e"])(d)}var p=t.getItemVisual(e,"style"),g=p.stroke;r.useStyle(p),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=a,r.ensureState("blur").style=o,r.ensureState("select").style=s,Object(_["k"])(ih,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=p.opacity;for(var n=0;n<re["g"].length;n++){var i=re["g"][n],a=r.getState(i);if(a){var o=a.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=o.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity&&(l.opacity=o.opacity)}}e.markRedraw()}}),this);var m=i.getRawValue(e);Object(le["g"])(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||"#000",defaultOpacity:p.opacity,defaultText:(null==m?t.getName(e):isFinite(m)?Object(Be["v"])(m):m)+""});var v=this.getTextContent();if(v){var y=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=y.get("position")||"middle";var b=y.get("distance");Object(_["t"])(b)||(b=[b,b]),v.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Object(re["J"])(this,c,h,u)},e.prototype.highlight=function(){Object(re["r"])(this)},e.prototype.downplay=function(){Object(re["C"])(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");sh(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(e||n||i&&!i.ignore){var r=1,a=this.parent;while(a)a.scaleX&&(r/=a.scaleX),a=a.parent;var o=t.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),u=o.pointAt(s),c=cr["q"]([],u,l);if(cr["m"](c,c),e&&(e.setPosition(l),O(e,0),e.scaleX=e.scaleY=r*s,e.markRedraw()),n&&(n.setPosition(u),O(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,f=i.__labelDistance,p=f[0]*r,g=f[1]*r,m=s/2,v=o.tangentAt(m),y=[v[1],-v[0]],_=o.pointAt(m);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var b=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var x=-Math.atan2(v[1],v[0]);u[0]<l[0]&&(x=Math.PI+x),i.rotation=x}var w=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,d="top";break;default:w=0,d="middle"}switch(i.__position){case"end":i.x=c[0]*p+u[0],i.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*p+l[0],i.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=p*b+l[0],i.y=l[1]+w,h=v[0]<0?"right":"left",i.originX=-p*b,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=_[0],i.y=_[1]+w,h="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-p*b+u[0],i.y=u[1]+w,h=v[0]>=0?"right":"left",i.originX=p*b,i.originY=-w;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function O(t,e){var n=t.__specifiedRotation;if(null==n){var i=o.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(Jt["a"]),uh=lh,ch=function(){function t(t){this.group=new Jt["a"],this._LineCtor=t||uh}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var a=dh(t);t.diff(r).add((function(n){e._doAdd(t,n,a)})).update((function(n,i){e._doUpdate(r,t,i,n,a)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=dh(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||hh(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++){var r=e.getItemLayout(i);if(ph(r)){var a=new this._LineCtor(e,i,this._seriesScope);a.traverse(n),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){ne["traverseElements"](this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){var i=t.getItemLayout(e);if(ph(i)){var r=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,r),this.group.add(r)}},t.prototype._doUpdate=function(t,e,n,i,r){var a=t.getItemGraphicEl(n);ph(e.getItemLayout(i))?(a?a.updateData(e,i,r):a=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,a),this.group.add(a)):this.group.remove(a)},t}();function hh(t){return t.animators&&t.animators.length>0}function dh(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Object(le["e"])(e)}}function fh(t){return isNaN(t[0])||isNaN(t[1])}function ph(t){return t&&!fh(t[0])&&!fh(t[1])}var gh=ch,mh=[],vh=[],yh=[],_h=Me["h"],bh=cr["g"],xh=Math.abs;function wh(t,e,n){for(var i,r=t[0],a=t[1],o=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){mh[0]=_h(r[0],a[0],o[0],c),mh[1]=_h(r[1],a[1],o[1],c);var h=xh(bh(mh,e)-l);h<s&&(s=h,i=c)}for(var d=0;d<32;d++){var f=i+u;vh[0]=_h(r[0],a[0],o[0],i),vh[1]=_h(r[1],a[1],o[1],i),yh[0]=_h(r[0],a[0],o[0],f),yh[1]=_h(r[1],a[1],o[1],f);h=bh(vh,e)-l;if(xh(h)<.01)break;var p=bh(yh,e)-l;u/=2,h<0?p>=0?i+=u:i-=u:p>=0?i-=u:i+=u}return i}function Oh(t,e){var n=[],i=Me["n"],r=[[],[],[]],a=[[],[]],o=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[cr["c"](l[0]),cr["c"](l[1])],l[2]&&l.__original.push(cr["c"](l[2])));var h=l.__original;if(null!=l[2]){if(cr["d"](r[0],h[0]),cr["d"](r[1],h[2]),cr["d"](r[2],h[1]),u&&"none"!==u){var d=Vc(t.node1),f=wh(r,h[0],d*e);i(r[0][0],r[1][0],r[2][0],f,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],f,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){d=Vc(t.node2),f=wh(r,h[1],d*e);i(r[0][0],r[1][0],r[2][0],f,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],f,n),r[1][1]=n[1],r[2][1]=n[2]}cr["d"](l[0],r[0]),cr["d"](l[1],r[2]),cr["d"](l[2],r[1])}else{if(cr["d"](a[0],h[0]),cr["d"](a[1],h[1]),cr["q"](o,a[1],a[0]),cr["m"](o,o),u&&"none"!==u){d=Vc(t.node1);cr["o"](a[0],a[0],o,d*e)}if(c&&"none"!==c){d=Vc(t.node2);cr["o"](a[1],a[1],o,-d*e)}cr["d"](l[0],a[0]),cr["d"](l[1],a[1])}}))}function Sh(t){return"view"===t.type}var Th=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.init=function(t,e){var n=new me,i=new gh,r=this.group;this._controller=new no(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var a=this._symbolDraw,o=this._lineDraw,s=this.group;if(Sh(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):ee["h"](s,l,t)}Oh(t.getGraph(),zc(t));var u=t.getData();a.updateData(u);var c=t.getEdgeData();o.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d),u.graph.eachNode((function(t){var e=t.dataIndex,n=t.getGraphicEl(),r=t.getModel();if(n){n.off("drag").off("dragend");var a=r.get("draggable");a&&n.on("drag",(function(){h&&(h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(e),u.setItemLayout(e,[n.x,n.y]))})).on("dragend",(function(){h&&h.setUnfixed(e)})),n.setDraggable(a&&!!h,!!r.get("cursor"));var o=r.get(["emphasis","focus"]);"adjacency"===o&&(Object(ie["a"])(n).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Object(ie["a"])(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),p=u.getLayout("cx"),g=u.getLayout("cy");u.eachItemGraphicEl((function(t,e){var n=u.getItemModel(e),i=n.get(["label","rotate"])||0,r=t.getSymbolPath();if(f){var a=u.getItemLayout(e),o=Math.atan2(a[1]-g,a[0]-p);o<0&&(o=2*Math.PI+o);var s=a[0]<p;s&&(o-=Math.PI);var l=s?"left":"right";r.setTextConfig({rotation:-o,position:l,origin:"center"});var c=r.ensureState("emphasis");_["m"](c.textConfig||(c.textConfig={}),{position:l})}else r.setTextConfig({rotation:i*=Math.PI/180})})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;(function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))})()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,a=this._controllerHost,o=this.group;r.setPointerChecker((function(e,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!oo(e,n,t)})),Sh(t.coordinateSystem)?(r.enable(t.get("roam")),a.zoomLimit=t.get("scaleLimit"),a.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){io(a,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){ro(a,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),Oh(t.getGraph(),zc(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=zc(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){Oh(t.getGraph(),zc(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Ne["a"]),Mh=Th,Ah=n("7368"),Ch=n("1f39");function Ih(t,e,n,i,r){for(var a=new Ah["a"](i),o=0;o<t.length;o++)a.addNode(_["O"](t[o].id,t[o].name,o),o);var s=[],l=[],u=0;for(o=0;o<e.length;o++){var c=e[o],h=c.source,d=c.target;a.addEdge(h,d,u)&&(l.push(c),s.push(_["O"](Object(Te["e"])(c.id,null),h+" > "+d)),u++)}var f,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=Object(Yt["a"])(t,n);else{var g=Ch["a"].get(p),m=g&&g.dimensions||[];_["r"](m,"value")<0&&m.concat(["value"]);var v=Object(Ti["b"])(t,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;f=new Mi["a"](v,n),f.initData(t)}var y=new Mi["a"](["value"],n);return y.initData(l,s),r&&r(f,y),Object(Tl["a"])({mainData:f,struct:a,structAttr:"graph",datas:{node:f,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var Dh=n("f6d8"),Lh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(qt["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Di(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(Te["f"])(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n){jc(this);var a=Ih(i,n,this,!0,o);return _["k"](a.edges,(function(t){Pc(t.node1,t.node2,this,t.dataIndex)}),this),a.data}function o(t,e){t.wrapMethod("getItemModel",(function(t){var e=r._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t}));var n=Er["a"].prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=a,i}function a(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=a,t.getModel=i,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),a=i.graph.getEdgeByIndex(t),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Object(Ma["c"])("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var u=Object(Dh["a"])({series:this,dataIndex:t,multipleSeries:e});return u},e.prototype._updateCategoriesData=function(){var t=_["H"](this.option.categories||[],(function(t){return null!=t.value?t:_["m"]({value:0},t)})),e=new Mi["a"](["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Kt["b"]),Eh=Lh,jh={type:"graphRoam",event:"graphRoam",update:"none"};function Ph(t){t.registerChartView(Mh),t.registerSeriesModel(Eh),t.registerProcessor(xc),t.registerVisual(wc),t.registerVisual(Sc),t.registerLayout(Bc),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,Wc),t.registerLayout(qc),t.registerCoordinateSystem("graphView",{dimensions:Es.dimensions,create:Kc}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},_["L"]),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},_["L"]),t.registerAction(jh,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var i=e.coordinateSystem,r=Xs(i,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}var Nh=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),Rh=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return Object(qt["a"])(e,t),e.prototype.getDefaultShape=function(){return new Nh},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,a=e.width,o=e.angle,s=e.x-n(o)*a*(a>=r/3?1:2),l=e.y-i(o)*a*(a>=r/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(o)*a,e.y+i(o)*a),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(o)*a,e.y-i(o)*a),t.lineTo(s,l)},e}(s["b"]),kh=Rh;function Bh(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),a=Math.min(i,r),o=Object(Be["p"])(n[0],e.getWidth()),s=Object(Be["p"])(n[1],e.getHeight()),l=Object(Be["p"])(t.get("radius"),a/2);return{cx:o,cy:s,r:l}}function zh(t,e){var n=null==t?"":t+"";return e&&(Object(_["C"])(e)?n=e.replace("{value}",n):Object(_["w"])(e)&&(n=e(t))),n}var Vh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=Bh(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var a=this.group,o=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap"),h=c?Mn:ke["a"],d=u.get("show"),f=u.getModel("lineStyle"),p=f.get("width"),g=[s,l];Object(F["b"])(g,!o),s=g[0],l=g[1];for(var m=l-s,v=s,y=0;d&&y<i.length;y++){var _=Math.min(Math.max(i[y][0],0),1);l=s+m*_;var b=new h({shape:{startAngle:v,endAngle:l,cx:r.cx,cy:r.cy,clockwise:o,r0:r.r-p,r:r.r},silent:!0});b.setStyle({fill:i[y][1]}),b.setStyle(f.getLineStyle(["color","width"])),a.add(b),v=l}var x=function(t){if(t<=0)return i[0][1];var e;for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,x,r,s,l,o,p),this._renderTitleAndDetail(t,e,n,x,r),this._renderAnchor(t,r),this._renderPointer(t,e,n,x,r,s,l,o,p)},e.prototype._renderTicks=function(t,e,n,i,r,a,o,s,l){for(var u,c,h=this.group,d=r.cx,f=r.cy,p=r.r,g=+t.get("min"),m=+t.get("max"),v=t.getModel("splitLine"),y=t.getModel("axisTick"),_=t.getModel("axisLabel"),b=t.get("splitNumber"),x=y.get("splitNumber"),w=Object(Be["p"])(v.get("length"),p),O=Object(Be["p"])(y.get("length"),p),S=a,T=(o-a)/b,M=T/x,A=v.getModel("lineStyle").getLineStyle(),C=y.getModel("lineStyle").getLineStyle(),I=v.get("distance"),D=0;D<=b;D++){if(u=Math.cos(S),c=Math.sin(S),v.get("show")){var L=I?I+l:l,E=new Lr["a"]({shape:{x1:u*(p-L)+d,y1:c*(p-L)+f,x2:u*(p-w-L)+d,y2:c*(p-w-L)+f},style:A,silent:!0});"auto"===A.stroke&&E.setStyle({stroke:i(D/b)}),h.add(E)}if(_.get("show")){L=_.get("distance")+I;var j=zh(Object(Be["v"])(D/b*(m-g)+g),_.get("formatter")),P=i(D/b);h.add(new $["a"]({style:Object(le["c"])(_,{text:j,x:u*(p-w-L)+d,y:c*(p-w-L)+f,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:P}),silent:!0}))}if(y.get("show")&&D!==b){L=y.get("distance");L=L?L+l:l;for(var N=0;N<=x;N++){u=Math.cos(S),c=Math.sin(S);var R=new Lr["a"]({shape:{x1:u*(p-L)+d,y1:c*(p-L)+f,x2:u*(p-O-L)+d,y2:c*(p-O-L)+f},silent:!0,style:C});"auto"===C.stroke&&R.setStyle({stroke:i((D+N/x)/b)}),h.add(R),S+=M}S-=M}else S+=T}},e.prototype._renderPointer=function(t,e,n,i,r,a,o,s,u){var c=this.group,h=this._data,d=this._progressEls,f=[],p=t.get(["pointer","show"]),g=t.getModel("progress"),m=g.get("show"),v=t.getData(),y=v.mapDimension("value"),b=+t.get("min"),x=+t.get("max"),w=[b,x],O=[a,o];function S(e,n){var i,a=v.getItemModel(e),o=a.getModel("pointer"),s=Object(Be["p"])(o.get("width"),r.r),l=Object(Be["p"])(o.get("length"),r.r),u=t.get(["pointer","icon"]),c=o.get("offsetCenter"),h=Object(Be["p"])(c[0],r.r),d=Object(Be["p"])(c[1],r.r),f=o.get("keepAspect");return i=u?Object(Qt["a"])(u,h-s/2,d-l,s,l,null,f):new kh({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function T(t,e){var n=g.get("roundCap"),i=n?Mn:ke["a"],o=g.get("overlap"),l=o?g.get("width"):u/v.count(),c=o?r.r-l:r.r-(t+1)*l,h=o?r.r:r.r-t*l,d=new i({shape:{startAngle:a,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:c,r:h}});return o&&(d.z2=x-v.get(y,t)%x),d}(m||p)&&(v.diff(h).add((function(e){var n=v.get(y,e);if(p){var i=S(e,a);ee["c"](i,{rotation:-((isNaN(+n)?O[0]:Object(Be["l"])(n,w,O,!0))+Math.PI/2)},t),c.add(i),v.setItemGraphicEl(e,i)}if(m){var r=T(e,a),o=g.get("clip");ee["c"](r,{shape:{endAngle:Object(Be["l"])(n,w,O,o)}},t),c.add(r),Object(ie["b"])(t.seriesIndex,v.dataType,e,r),f[e]=r}})).update((function(e,n){var i=v.get(y,e);if(p){var r=h.getItemGraphicEl(n),o=r?r.rotation:a,s=S(e,o);s.rotation=o,ee["h"](s,{rotation:-((isNaN(+i)?O[0]:Object(Be["l"])(i,w,O,!0))+Math.PI/2)},t),c.add(s),v.setItemGraphicEl(e,s)}if(m){var l=d[n],u=l?l.shape.endAngle:a,_=T(e,u),b=g.get("clip");ee["h"](_,{shape:{endAngle:Object(Be["l"])(i,w,O,b)}},t),c.add(_),Object(ie["b"])(t.seriesIndex,v.dataType,e,_),f[e]=_}})).execute(),v.each((function(t){var e=v.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),a=n.get("blurScope"),o=n.get("disabled");if(p){var s=v.getItemGraphicEl(t),u=v.getItemVisual(t,"style"),c=u.fill;if(s instanceof l["a"]){var h=s.style;s.useStyle(Object(_["m"])({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},u))}else s.useStyle(u),"pointer"!==s.type&&s.setColor(c);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Object(Be["l"])(v.get(y,t),w,[0,1],!0))),s.z2EmphasisLift=0,Object(re["I"])(s,e),Object(re["J"])(s,r,a,o)}if(m){var d=f[t];d.useStyle(v.getItemVisual(t,"style")),d.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Object(re["I"])(d,e),Object(re["J"])(d,r,a,o)}})),this._progressEls=f)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),a=n.get("icon"),o=n.get("offsetCenter"),s=n.get("keepAspect"),l=Object(Qt["a"])(a,e.cx-r/2+Object(Be["p"])(o[0],e.r),e.cy-r/2+Object(Be["p"])(o[1],e.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var a=this,o=t.getData(),s=o.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new Jt["a"],h=[],d=[],f=t.isAnimationEnabled(),p=t.get(["pointer","showAbove"]);o.diff(this._data).add((function(t){h[t]=new $["a"]({silent:!0}),d[t]=new $["a"]({silent:!0})})).update((function(t,e){h[t]=a._titleEls[e],d[t]=a._detailEls[e]})).execute(),o.each((function(e){var n=o.getItemModel(e),a=o.get(s,e),g=new Jt["a"],m=i(Object(Be["l"])(a,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),_=r.cx+Object(Be["p"])(y[0],r.r),b=r.cy+Object(Be["p"])(y[1],r.r),x=h[e];x.attr({z2:p?0:2,style:Object(le["c"])(v,{x:_,y:b,text:o.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(x)}var w=n.getModel("detail");if(w.get("show")){var O=w.get("offsetCenter"),S=r.cx+Object(Be["p"])(O[0],r.r),T=r.cy+Object(Be["p"])(O[1],r.r),M=Object(Be["p"])(w.get("width"),r.r),A=Object(Be["p"])(w.get("height"),r.r),C=t.get(["progress","show"])?o.getItemVisual(e,"style").fill:m,I=(x=d[e],w.get("formatter"));x.attr({z2:p?0:2,style:Object(le["c"])(w,{x:S,y:T,text:zh(a,I),width:isNaN(M)?null:M,height:isNaN(A)?null:A,align:"center",verticalAlign:"middle"},{inheritColor:C})}),Object(le["h"])(x,{normal:w},a,(function(t){return zh(t,I)})),f&&Object(le["a"])(x,e,o,t,{getFormattedLabel:function(t,e,n,i,r,o){return zh(o?o.interpolatedValue:a,I)}}),g.add(x)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(Ne["a"]),Fh=Vh,Gh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return Object(qt["a"])(e,t),e.prototype.getInitialData=function(t,e){return Ai(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Kt["b"]),Hh=Gh;function Uh(t){t.registerChartView(Fh),t.registerSeriesModel(Hh)}var Wh=["itemStyle","opacity"],Xh=function(t){function e(e,n){var i=t.call(this)||this,r=i,a=new hi["a"],o=new $["a"];return r.setTextContent(o),i.setTextGuideLine(a),i.updateData(e,n,!0),i}return Object(qt["a"])(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,a=t.getItemModel(e),o=t.getItemLayout(e),s=a.getModel("emphasis"),l=a.get(Wh);l=null==l?1:l,n||Object(ee["g"])(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:o.points}),i.style.opacity=0,ee["c"](i,{style:{opacity:l}},r,e)):ee["h"](i,{style:{opacity:l},shape:{points:o.points}},r,e),Object(re["I"])(i,a),this._updateLabel(t,e),Object(re["J"])(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),a=t.hostModel,o=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"style"),c=u.fill;Object(le["g"])(r,Object(le["e"])(o),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new di["a"](h[0][0],h[0][1]):null},ee["h"](r,{style:{x:l.x,y:l.y}},a,e),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(fi["d"])(n,Object(fi["a"])(o),{stroke:c})},e}(Oa["a"]),Zh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,a=this.group;i.diff(r).add((function(t){var e=new Xh(i,t);i.setItemGraphicEl(t,e),a.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),a.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){var n=r.getItemGraphicEl(e);ee["f"](n,t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Ne["a"]),qh=Zh,Yh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Di(_["c"](this.getData,this),_["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return Ai(this,{coordDimensions:["value"],encodeDefaulter:_["h"](Ci["d"],this)})},e.prototype._defaultLabelLine=function(t){Object(Te["f"])(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),a=n.getSum(r);return i.percent=a?+(n.get(r,e)/a*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Kt["b"]),Kh=Yh;function Qh(t,e){return ri["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Jh(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],a="ascending"===e,o=0,s=t.count();o<s;o++)r[o]=o;return Object(_["w"])(e)?r.sort(e):"none"!==e&&r.sort((function(t,e){return a?i[t]-i[e]:i[e]-i[t]})),r}function $h(t){var e=t.hostModel,n=e.get("orient");t.each((function(e){var i,r,a,o,s=t.getItemModel(e),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),h=t.getItemLayout(e),d=h.points,f="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(f)"insideLeft"===u?(r=(d[0][0]+d[3][0])/2+5,a=(d[0][1]+d[3][1])/2,i="left"):"insideRight"===u?(r=(d[1][0]+d[2][0])/2-5,a=(d[1][1]+d[2][1])/2,i="right"):(r=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,a=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,i="center"),o=[[r,a],[r,a]];else{var p=void 0,g=void 0,m=void 0,v=void 0,y=c.get("length");0,"left"===u?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,m=p-y,r=m-5,i="right"):"right"===u?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,m=p+y,r=m+5,i="left"):"top"===u?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=g-y,a=v-5,i="center"):"bottom"===u?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=g+y,a=v+5,i="center"):"rightTop"===u?(p="horizontal"===n?d[3][0]:d[1][0],g="horizontal"===n?d[3][1]:d[1][1],"horizontal"===n?(v=g-y,a=v-5,i="center"):(m=p+y,r=m+5,i="top")):"rightBottom"===u?(p=d[2][0],g=d[2][1],"horizontal"===n?(v=g+y,a=v+5,i="center"):(m=p+y,r=m+5,i="bottom")):"leftTop"===u?(p=d[0][0],g="horizontal"===n?d[0][1]:d[1][1],"horizontal"===n?(v=g-y,a=v-5,i="center"):(m=p-y,r=m-5,i="right")):"leftBottom"===u?(p="horizontal"===n?d[1][0]:d[3][0],g="horizontal"===n?d[1][1]:d[2][1],"horizontal"===n?(v=g+y,a=v+5,i="center"):(m=p-y,r=m-5,i="right")):(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===n?(v=g+y,a=v+5,i="center"):(m=p+y,r=m+5,i="left")),"horizontal"===n?(m=p,r=m):(v=g,a=v),o=[[p,g],[m,v]]}h.label={linePoints:o,x:r,y:a,verticalAlign:"middle",textAlign:i,inside:f}}))}function td(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),a=Qh(t,e),o=t.get("orient"),s=a.width,l=a.height,u=Jh(n,r),c=a.x,h=a.y,d="horizontal"===o?[Object(Be["p"])(t.get("minSize"),l),Object(Be["p"])(t.get("maxSize"),l)]:[Object(Be["p"])(t.get("minSize"),s),Object(Be["p"])(t.get("maxSize"),s)],f=n.getDataExtent(i),p=t.get("min"),g=t.get("max");null==p&&(p=Math.min(f[0],0)),null==g&&(g=f[1]);var m=t.get("funnelAlign"),v=t.get("gap"),y="horizontal"===o?s:l,_=(y-v*(n.count()-1))/n.count(),b=function(t,e){if("horizontal"===o){var r=n.get(i,t)||0,a=Object(Be["l"])(r,[p,g],d,!0),u=void 0;switch(m){case"top":u=h;break;case"center":u=h+(l-a)/2;break;case"bottom":u=h+(l-a);break}return[[e,u],[e,u+a]]}var f,v=n.get(i,t)||0,y=Object(Be["l"])(v,[p,g],d,!0);switch(m){case"left":f=c;break;case"center":f=c+(s-y)/2;break;case"right":f=c+s-y;break}return[[f,e],[f+y,e]]};"ascending"===r&&(_=-_,v=-v,"horizontal"===o?c+=s:h+=l,u=u.reverse());for(var x=0;x<u.length;x++){var w=u[x],O=u[x+1],S=n.getItemModel(w);if("horizontal"===o){var T=S.get(["itemStyle","width"]);null==T?T=_:(T=Object(Be["p"])(T,s),"ascending"===r&&(T=-T));var M=b(w,c),A=b(O,c+T);c+=T+v,n.setItemLayout(w,{points:M.concat(A.slice().reverse())})}else{var C=S.get(["itemStyle","height"]);null==C?C=_:(C=Object(Be["p"])(C,l),"ascending"===r&&(C=-C));M=b(w,h),A=b(O,h+C);h+=C+v,n.setItemLayout(w,{points:M.concat(A.slice().reverse())})}}$h(n)}))}function ed(t){t.registerChartView(qh),t.registerSeriesModel(Kh),t.registerLayout(td),t.registerProcessor(ci("funnel"))}var nd=.3,id=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new Jt["a"],n._initialized=!1,n}return Object(qt["a"])(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._dataGroup,a=t.getData(),o=this._data,s=t.coordinateSystem,l=s.dimensions,u=sd(t);function c(t){var e=od(a,r,t,l,s);ld(e,a,t,u)}function h(e,n){var i=o.getItemGraphicEl(n),r=ad(a,e,l,s);a.setItemGraphicEl(e,i),ee["h"](i,{shape:{points:r}},t,e),Object(ee["g"])(i),ld(i,a,e,u)}function d(t){var e=o.getItemGraphicEl(t);r.remove(e)}if(a.diff(o).add(c).update(h).remove(d).execute(),!this._initialized){this._initialized=!0;var f=rd(s,t,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(f)}this._data=a},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,a=r.dimensions,o=sd(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=od(i,this._dataGroup,l,a,r);u.incremental=!0,ld(u,i,l,o),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Ne["a"]);function rd(t,e,n){var i=t.model,r=t.getRect(),a=new Re["a"]({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),o="horizontal"===i.get("layout")?"width":"height";return a.setShape(o,0),ee["c"](a,{shape:{width:r.width,height:r.height}},e,n),a}function ad(t,e,n,i){for(var r=[],a=0;a<n.length;a++){var o=n[a],s=t.get(t.mapDimension(o),e);ud(s,i.getAxis(o).type)||r.push(i.dataToPoint(s,o))}return r}function od(t,e,n,i,r){var a=ad(t,n,i,r),o=new hi["a"]({shape:{points:a},z2:10});return e.add(o),t.setItemGraphicEl(n,o),o}function sd(t){var e=t.get("smooth",!0);return!0===e&&(e=nd),e=Object(Be["n"])(e),Object(_["l"])(e)&&(e=0),{smooth:e}}function ld(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);var r=e.getItemModel(n),a=r.getModel("emphasis");Object(re["I"])(t,r,"lineStyle"),Object(re["J"])(t,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function ud(t,e){return"category"===e?null==t:null==t||isNaN(t)}var cd=id,hd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(qt["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(Yt["a"])(null,this,{useEncodeDefaulter:Object(_["c"])(dd,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Kt["b"]);function dd(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Object(_["k"])(e.dimensions,(function(t){var e=fd(t);n[t]=e})),n}}function fd(t){return+t.replace("dim","")}var pd=hd,gd=["lineStyle","opacity"],md={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var r=i[t];if("normal"===t&&e.hasItemOption){var a=e.getItemModel(n).get(gd,!0);null!=a&&(r=a)}var o=e.ensureUniqueItemVisual(n,"style");o.opacity=r}),t.start,t.end)}}}},vd=md;function yd(t){_d(t),bd(t)}function _d(t){if(!t.parallel){var e=!1;_["k"](t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function bd(t){var e=Te["r"](t.parallelAxis);_["k"](e,(function(e){if(_["A"](e)){var n=e.parallelIndex||0,i=Te["r"](t.parallel)[n];i&&i.parallelAxisDefault&&_["I"](e,i.parallelAxisDefault,!1)}}))}var xd=5,wd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Object(_["k"])(Od,(function(t,e){n.getZr().on(e,this._handlers[e]=Object(_["c"])(t,this))}),this)),Object(On["b"])(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){Object(On["a"])(this,"_throttledDispatchExpand"),Object(_["k"])(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(_["m"])({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Wi["a"]),Od={mousedown:function(t){Sd(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(Sd(this,"click")&&e){var n=[t.offsetX,t.offsetY],i=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(i>xd)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&Sd(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function Sd(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var Td=wd,Md=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&_["I"](e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){_["k"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=_["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);_["k"](n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Xi["a"]),Ad=Md,Cd=function(t){function e(e,n,i,r,a){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o.axisIndex=a,o}return Object(qt["a"])(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(gr["a"]),Id=Cd;function Dd(t,e,n,i,r,a){t=t||0;var o=n[1]-n[0];if(null!=r&&(r=Ed(r,[0,o])),null!=a&&(a=Math.max(a,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=Ed(s,[0,o]),r=a=Ed(s,[r,a]),i=0}e[0]=Ed(e[0],n),e[1]=Ed(e[1],n);var l=Ld(e,i);e[i]+=t;var u,c=r||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[i]=Ed(e[i],h),u=Ld(e,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(e[1-i]=e[i]+l.sign*r),u=Ld(e,i),null!=a&&u.span>a&&(e[1-i]=e[i]+u.sign*a),e}function Ld(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function Ed(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var jd=_["k"],Pd=Math.min,Nd=Math.max,Rd=Math.floor,kd=Math.ceil,Bd=Be["v"],zd=Math.PI,Vd=function(){function t(t,e,n){this.type="parallel",this._axesMap=_["f"](),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;jd(i,(function(t,n){var i=r[n],a=e.getComponent("parallelAxis",i),o=this._axesMap.set(t,new Id(t,sr["a"](a),[0,0],a.get("type"),i)),s="category"===o.type;o.onBand=s&&a.get("boundaryGap"),o.inverse=a.get("inverse"),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,a=t[1-r],o=t[r];return a>=n&&a<=n+e.axisLength&&o>=i&&o<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();jd(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),sr["i"](e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=ri["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],a=e.get("layout"),o="horizontal"===a?0:1,s=n[r[o]],l=[0,s],u=this.dimensions.length,c=Fd(e.get("axisExpandWidth"),l),h=Fd(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=e.get("axisExpandWindow");if(f)t=Fd(f[1]-f[0],l),f[1]=f[0]+t;else{t=Fd(c*(h-1),l);var p=e.get("axisExpandCenter")||Rd(u/2);f=[c*p-t/2],f[1]=f[0]+t}var g=(s-t)/(u-h);g<3&&(g=0);var m=[Rd(Bd(f[0]/c,1))+1,kd(Bd(f[1]/c,1))-1],v=g/c*f[0];return{layout:a,pixelDimIndex:o,layoutBase:n[i[o]],layoutLength:s,axisBase:n[i[1-o]],axisLength:n[r[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:f,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),jd(n,(function(e,n){var a=(i.axisExpandable?Hd:Gd)(n,i),o={horizontal:{x:a.position,y:i.axisLength},vertical:{x:0,y:a.position}},s={horizontal:zd/2,vertical:0},l=[o[r].x+t.x,o[r].y+t.y],u=s[r],c=ur["c"]();ur["g"](c,c,u),ur["i"](c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,a=this.dimensions,o=[],s=[];_["k"](a,(function(e){o.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var c=void 0;if(l){c="active";for(var h=t.getValues(o,u),d=0,f=a.length;d<f;d++){var p=s[d].getActiveState(h[d]);if("inactive"===p){c="inactive";break}}}else c="normal";e(c,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return ne["applyTransform"]([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return _["d"](this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],a=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var o,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<r*c[0]?(l="jump",o=s-r*c[2]):h&&u&&s>r*(1-c[0])?(l="jump",o=s-r*(1-c[2])):(o=s-r*c[1])>=0&&(o=s-r*(1-c[1]))<=0&&(o=0),o*=e.axisExpandWidth/u,o?Dd(o,i,a,"all"):l="none";else{var d=i[1]-i[0],f=a[1]*s/d;i=[Nd(0,f-d/2)],i[1]=Pd(a[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();function Fd(t,e){return Pd(Nd(t,e[0]),e[1])}function Gd(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function Hd(t,e){var n,i,r=e.layoutLength,a=e.axisExpandWidth,o=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*a-e.axisExpandWindow[0],u=a,c=!0):(n=r-(o-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}var Ud=Vd;function Wd(t,e){var n=[];return t.eachComponent("parallel",(function(i,r){var a=new Ud(i,t,e);a.name="parallel_"+r,a.resize(i,e),i.coordinateSystem=a,a.model=i,n.push(a)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",Te["b"]).models[0];t.coordinateSystem=e.coordinateSystem}})),n}var Xd={create:Wd},Zd=Xd,qd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return Object(qt["a"])(e,t),e.prototype.getAreaSelectStyle=function(){return Object(su["a"])([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=_["d"](t);if(e)for(var n=e.length-1;n>=0;n--)Be["c"](e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},e}(Xi["a"]);_["K"](qd,Yi["a"]);var Yd=qd,Kd=!0,Qd=Math.min,Jd=Math.max,$d=Math.pow,tf=1e4,ef=6,nf=6,rf="globalPan",af={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},of={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},sf={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},lf=0,uf=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new Jt["a"],n._uid="brushController_"+lf++,Object(_["k"])(Ff,(function(t,e){this._handlers[e]=Object(_["c"])(t,this)}),n),n}return Object(qt["a"])(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||qa(e,rf,this._uid),Object(_["k"])(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=Object(_["I"])(Object(_["d"])(sf),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Ya(t,rf,this._uid),Object(_["k"])(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(_["k"])(t,(function(t){e[t.panelId]=Object(_["d"])(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(_["H"])(t,(function(t){return Object(_["I"])(Object(_["d"])(sf),t,!0)}));var e="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,a=this._creatingCover;return new Ql["a"](n,t,s,o).add(l).update(l).remove(u).execute(),this;function o(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(t,e){return o(t.__brushOption,e)}function l(e,o){var s=t[e];if(null!=o&&n[o]===a)i[e]=n[o];else{var l=i[e]=null!=o?(n[o].__brushOption=s,n[o]):hf(r,cf(r,s));pf(r,l)}}function u(t){n[t]!==a&&r.group.remove(n[t])}},e.prototype.unmount=function(){return this.enableBrush(!1),yf(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Ua["a"]);function cf(t,e){var n=Uf[e.brushType].createCover(t,e);return n.__brushOption=e,ff(n,e),t.group.add(n),n}function hf(t,e){var n=gf(e);return n.endCreating&&(n.endCreating(t,e),ff(e,e.__brushOption)),e}function df(t,e){var n=e.__brushOption;gf(e).updateCoverShape(t,e,n.range,n)}function ff(t,e){var n=e.z;null==n&&(n=tf),t.traverse((function(t){t.z=n,t.z2=n}))}function pf(t,e){gf(e).updateCommon(t,e),df(t,e)}function gf(t){return Uf[t.__brushOption.brushType]}function mf(t,e,n){var i,r=t._panels;if(!r)return Kd;var a=t._transform;return Object(_["k"])(r,(function(t){t.isTargetByCursor(e,n,a)&&(i=t)})),i}function vf(t,e){var n=t._panels;if(!n)return Kd;var i=e.__brushOption.panelId;return null!=i?n[i]:Kd}function yf(t){var e=t._covers,n=e.length;return Object(_["k"])(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function _f(t,e){var n=Object(_["H"])(t._covers,(function(t){var e=t.__brushOption,n=Object(_["d"])(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function bf(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],a=n[1]-i[1],o=$d(r*r+a*a,.5);return o>ef}function xf(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function wf(t,e,n,i){var r=new Jt["a"];return r.add(new Re["a"]({name:"main",style:Mf(n),silent:!0,draggable:!0,cursor:"move",drift:Object(_["h"])(Lf,t,e,r,["n","s","w","e"]),ondragend:Object(_["h"])(_f,e,{isEnd:!0})})),Object(_["k"])(i,(function(n){r.add(new Re["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(_["h"])(Lf,t,e,r,n),ondragend:Object(_["h"])(_f,e,{isEnd:!0})}))})),r}function Of(t,e,n,i){var r=i.brushStyle.lineWidth||0,a=Jd(r,nf),o=n[0][0],s=n[1][0],l=o-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-a+r/2,f=h-a+r/2,p=c-o,g=h-s,m=p+r,v=g+r;Tf(t,e,"main",o,s,p,g),i.transformable&&(Tf(t,e,"w",l,u,a,v),Tf(t,e,"e",d,u,a,v),Tf(t,e,"n",l,u,m,a),Tf(t,e,"s",l,f,m,a),Tf(t,e,"nw",l,u,a,a),Tf(t,e,"ne",d,u,a,a),Tf(t,e,"sw",l,f,a,a),Tf(t,e,"se",d,f,a,a))}function Sf(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(Mf(n)),r.attr({silent:!i,cursor:i?"move":"default"}),Object(_["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=e.childOfName(n.join("")),a=1===n.length?If(t,n[0]):Df(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?of[a]+"-resize":null})}))}function Tf(t,e,n,i,r,a,o){var s=e.childOfName(n);s&&s.setShape(Nf(Pf(t,e,[[i,r],[i+a,r+o]])))}function Mf(t){return Object(_["i"])({strokeNoScale:!0},t.brushStyle)}function Af(t,e,n,i){var r=[Qd(t,n),Qd(e,i)],a=[Jd(t,n),Jd(e,i)];return[[r[0],a[0]],[r[1],a[1]]]}function Cf(t){return ne["getTransform"](t.group)}function If(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=ne["transformDirection"](n[e],Cf(t));return i[r]}function Df(t,e){var n=[If(t,e[0]),If(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function Lf(t,e,n,i,r,a){var o=n.__brushOption,s=t.toRectRange(o.range),l=jf(e,r,a);Object(_["k"])(i,(function(t){var e=af[t];s[e[0]][e[1]]+=l[e[0]]})),o.range=t.fromRectRange(Af(s[0][0],s[1][0],s[0][1],s[1][1])),pf(e,n),_f(e,{isEnd:!1})}function Ef(t,e,n,i){var r=e.__brushOption.range,a=jf(t,n,i);Object(_["k"])(r,(function(t){t[0]+=a[0],t[1]+=a[1]})),pf(t,e),_f(t,{isEnd:!1})}function jf(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),a=i.transformCoordToLocal(0,0);return[r[0]-a[0],r[1]-a[1]]}function Pf(t,e,n){var i=vf(t,e);return i&&i!==Kd?i.clipPath(n,t._transform):Object(_["d"])(n)}function Nf(t){var e=Qd(t[0][0],t[1][0]),n=Qd(t[0][1],t[1][1]),i=Jd(t[0][0],t[1][0]),r=Jd(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function Rf(t,e,n){if(t._brushType&&!Hf(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,a=mf(t,e,n);if(!t._dragging)for(var o=0;o<r.length;o++){var s=r[o].__brushOption;if(a&&(a===Kd||s.panelId===a.panelId)&&Uf[s.brushType].contain(r[o],n[0],n[1]))return}a&&i.setCursorStyle("crosshair")}}function kf(t){var e=t.event;e.preventDefault&&e.preventDefault()}function Bf(t,e,n){return t.childOfName("main").contain(e,n)}function zf(t,e,n,i){var r,a=t._creatingCover,o=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),bf(t)||a){if(o&&!a){"single"===s.brushMode&&yf(t);var l=Object(_["d"])(s);l.brushType=Vf(l.brushType,o),l.panelId=o===Kd?null:o.panelId,a=t._creatingCover=cf(t,l),t._covers.push(a)}if(a){var u=Uf[Vf(t._brushType,o)],c=a.__brushOption;c.range=u.getCreatingRange(Pf(t,a,t._track)),i&&(hf(t,a),u.updateCommon(t,a)),df(t,a),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&mf(t,e,n)&&yf(t)&&(r={isEnd:i,removeOnClick:!0});return r}function Vf(t,e){return"auto"===t?e.defaultBrushType:t}var Ff={mousedown:function(t){if(this._dragging)Gf(this,t);else if(!t.target||!t.target.draggable){kf(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=mf(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(Rf(this,t,i),this._dragging){kf(t);var r=zf(this,t,i,!1);r&&_f(this,r)}},mouseup:function(t){Gf(this,t)}};function Gf(t,e){if(t._dragging){kf(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),a=zf(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,a&&_f(t,a)}}function Hf(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}var Uf={lineX:Wf(0),lineY:Wf(1),rect:{createCover:function(t,e){function n(t){return t}return wf({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=xf(t);return Af(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){Of(t,e,n,i)},updateCommon:Sf,contain:Bf},polygon:{createCover:function(t,e){var n=new Jt["a"];return n.add(new hi["a"]({name:"main",style:Mf(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Oa["a"]({name:"main",draggable:!0,drift:Object(_["h"])(Ef,t,e),ondragend:Object(_["h"])(_f,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:Pf(t,e,n)})},updateCommon:Sf,contain:Bf}};function Wf(t){return{createCover:function(e,n){return wf({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=xf(e),i=Qd(n[0][t],n[1][t]),r=Jd(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var a,o=vf(e,n);if(o!==Kd&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(t);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,a];t&&l.reverse(),Of(e,n,l,r)},updateCommon:Sf,contain:Bf}}var Xf=uf;function Zf(t){return t=Kf(t),function(e){return ne["clipPointsByRect"](e,t)}}function qf(t,e){return t=Kf(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,a=i?t.x:t.y;return[a,a+(r||0)]}}function Yf(t,e,n){var i=Kf(t);return function(t,r){return i.contain(r[0],r[1])&&!oo(t,e,n)}}function Kf(t){return ki["a"].create(t)}var Qf=["axisLine","axisTickLabel","axisName"],Jf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new Xf(n.getZr())).on("brush",_["c"](this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!$f(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Jt["a"],this.group.add(this._axisGroup),t.get("show")){var a=ep(t,e),o=a.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=o.getAxisLayout(u),h=_["m"]({strokeContainThreshold:l},c),d=new Wr(t,h);_["k"](Qf,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,s,t,a,l,n),ne["groupTransition"](r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,r,a){var o=n.axis.getExtent(),s=o[1]-o[0],l=Math.min(30,.1*Math.abs(s)),u=ki["a"].create({x:o[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Zf(u),isTargetByCursor:Yf(u,a,i),getLinearBrushOtherExtent:qf(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(tp(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=_["H"](e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Wi["a"]);function $f(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function tp(t){var e=t.axis;return _["H"](t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function ep(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var np=Jf,ip={type:"axisAreaSelect",event:"axisAreaSelected"};function rp(t){t.registerAction(ip,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var ap={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function op(t){t.registerComponentView(Td),t.registerComponentModel(Ad),t.registerCoordinateSystem("parallel",Zd),t.registerPreprocessor(yd),t.registerComponentModel(Yd),t.registerComponentView(np),ar(t,"parallel",Yd,ap),rp(t)}function sp(t){Object(i["a"])(op),t.registerChartView(cd),t.registerSeriesModel(pd),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,vd)}var lp=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),up=function(t){function e(e){return t.call(this,e)||this}return Object(qt["a"])(e,t),e.prototype.getDefaultShape=function(){return new lp},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){Object(re["r"])(this)},e.prototype.downplay=function(){Object(re["C"])(this)},e}(s["b"]),cp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){var i=this,r=t.getGraph(),a=this.group,o=t.layoutInfo,s=o.width,l=o.height,u=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,a.removeAll(),a.x=o.x,a.y=o.y,r.eachEdge((function(e){var n=new up,i=Object(ie["a"])(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var r,o,u,d,f,p,g,m,v=e.getModel(),y=v.getModel("lineStyle"),b=y.get("curveness"),x=e.node1.getLayout(),w=e.node1.getModel(),O=w.get("localX"),S=w.get("localY"),T=e.node2.getLayout(),M=e.node2.getModel(),A=M.get("localX"),C=M.get("localY"),I=e.getLayout();switch(n.shape.extent=Math.max(1,I.dy),n.shape.orient=h,"vertical"===h?(r=(null!=O?O*s:x.x)+I.sy,o=(null!=S?S*l:x.y)+x.dy,u=(null!=A?A*s:T.x)+I.ty,d=null!=C?C*l:T.y,f=r,p=o*(1-b)+d*b,g=u,m=o*b+d*(1-b)):(r=(null!=O?O*s:x.x)+x.dx,o=(null!=S?S*l:x.y)+I.sy,u=null!=A?A*s:T.x,d=(null!=C?C*l:T.y)+I.ty,f=r*(1-b)+u*b,p=o,g=r*b+u*(1-b),m=d),n.setShape({x1:r,y1:o,x2:u,y2:d,cpx1:f,cpy1:p,cpx2:g,cpy2:m}),n.useStyle(y.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color"),n.style.decal=e.node1.getVisual("style").decal;break;case"target":n.style.fill=e.node2.getVisual("color"),n.style.decal=e.node2.getVisual("style").decal;break;case"gradient":var D=e.node1.getVisual("color"),L=e.node2.getVisual("color");Object(_["C"])(D)&&Object(_["C"])(L)&&(n.style.fill=new Se["a"](0,0,+("horizontal"===h),+("vertical"===h),[{color:D,offset:0},{color:L,offset:1}]))}var E=v.getModel("emphasis");Object(re["I"])(n,v,"lineStyle",(function(t){return t.getItemStyle()})),a.add(n),c.setItemGraphicEl(e.dataIndex,n);var j=E.get("focus");Object(re["J"])(n,"adjacency"===j?e.getAdjacentDataIndices():j,E.get("blurScope"),E.get("disabled")),Object(ie["a"])(n).dataType="edge"})),r.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),r=i.get("localX"),o=i.get("localY"),c=i.getModel("emphasis"),h=new Re["a"]({shape:{x:null!=r?r*s:n.x,y:null!=o?o*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});Object(le["g"])(h,Object(le["e"])(i),{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),Object(re["I"])(h,i),a.add(h),u.setItemGraphicEl(e.dataIndex,h),Object(ie["a"])(h).dataType="node";var d=c.get("focus");Object(re["J"])(h,"adjacency"===d?e.getAdjacentDataIndices():d,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(e,r){var a=u.getItemModel(r);a.get("draggable")&&(e.drift=function(e,a){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=a,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&a.setClipPath(hp(a.getBoundingRect(),t,(function(){a.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Ne["a"]);function hp(t,e,n){var i=new Re["a"]({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return ee["c"](i,{shape:{width:t.width+20}},e,n),i}var dp=cp,fp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,r=t.levels;this.levelModels=[];for(var a=this.levelModels,o=0;o<r.length;o++)null!=r[o].depth&&r[o].depth>=0&&(a[r[o].depth]=new Er["a"](r[o],this,e));if(i&&n){var s=Ih(i,n,this,!0,l);return s.data}function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,a=n.levelModels[r];a&&(t.parentModel=a)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e),r=i.node1.getLayout();if(r){var a=r.depth,o=n.levelModels[a];o&&(t.parentModel=o)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,i=n[t];i.localX=e[0],i.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),a=r.data,o=r.value,s=a.source+" -- "+a.target;return Object(Ma["c"])("nameValue",{name:s,value:o,noValue:i(o)})}var l=this.getGraph().getNodeByIndex(t),u=l.getLayout().value,c=this.getDataParams(t,n).data.name;return Object(Ma["c"])("nameValue",{name:null!=c?c+"":null,value:u,noValue:i(u)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e),a=r.getLayout().value;i.value=a}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Kt["b"]),pp=fp;function gp(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=mp(t,e);t.layoutInfo=r;var a=r.width,o=r.height,s=t.getGraph(),l=s.nodes,u=s.edges;yp(l);var c=_["n"](l,(function(t){return 0===t.getLayout().value})),h=0!==c.length?0:t.get("layoutIterations"),d=t.get("orient"),f=t.get("nodeAlign");vp(l,u,n,i,a,o,h,d,f)}))}function mp(t,e){return ri["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function vp(t,e,n,i,r,a,o,s,l){_p(t,e,n,r,a,s,l),Sp(t,e,a,r,i,o,s),kp(t,s)}function yp(t){_["k"](t,(function(t){var e=Np(t.outEdges,Pp),n=Np(t.inEdges,Pp),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}function _p(t,e,n,i,r,a,o){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<e.length;d++)s[d]=1;for(d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&u.push(t[d]);var f=-1;while(u.length){for(var p=0;p<u.length;p++){var g=u[p],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>f&&(f=m.depth),g.setLayout({depth:v?m.depth:h},!0),"vertical"===a?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var _=g.outEdges[y],b=e.indexOf(_);s[b]=0;var x=_.node2,w=t.indexOf(x);0===--l[w]&&c.indexOf(x)<0&&c.push(x)}}++h,u=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var O=f>h-1?f:h-1;o&&"left"!==o&&xp(t,o,a,O);var S="vertical"===a?(r-n)/O:(i-n)/O;Op(t,S,a)}function bp(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function xp(t,e,n,i){if("right"===e){var r=[],a=t,o=0;while(a.length){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];r.indexOf(c.node1)<0&&r.push(c.node1)}}a=r,r=[],++o}_["k"](t,(function(t){bp(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&wp(t,i)}function wp(t,e){_["k"](t,(function(t){bp(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function Op(t,e,n){_["k"](t,(function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)}))}function Sp(t,e,n,i,r,a,o){var s=Tp(t,o);Mp(s,e,n,i,r,o),Ap(s,r,n,i,o);for(var l=1;a>0;a--)l*=.99,Cp(s,l,o),Ap(s,r,n,i,o),Rp(s,l,o),Ap(s,r,n,i,o)}function Tp(t,e){var n=[],i="vertical"===e?"y":"x",r=Object(Te["j"])(t,(function(t){return t.getLayout()[i]}));return r.keys.sort((function(t,e){return t-e})),_["k"](r.keys,(function(t){n.push(r.buckets.get(t))})),n}function Mp(t,e,n,i,r,a){var o=1/0;_["k"](t,(function(t){var e=t.length,s=0;_["k"](t,(function(t){s+=t.getLayout().value}));var l="vertical"===a?(i-(e-1)*r)/s:(n-(e-1)*r)/s;l<o&&(o=l)})),_["k"](t,(function(t){_["k"](t,(function(t,e){var n=t.getLayout().value*o;"vertical"===a?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),_["k"](e,(function(t){var e=+t.getValue()*o;t.setLayout({dy:e},!0)}))}function Ap(t,e,n,i,r){var a="vertical"===r?"x":"y";_["k"](t,(function(t){var o,s,l;t.sort((function(t,e){return t.getLayout()[a]-e.getLayout()[a]}));for(var u=0,c=t.length,h="vertical"===r?"dx":"dy",d=0;d<c;d++)s=t[d],l=u-s.getLayout()[a],l>0&&(o=s.getLayout()[a]+l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]+s.getLayout()[h]+e;var f="vertical"===r?i:n;if(l=u-e-f,l>0){o=s.getLayout()[a]-l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o;for(d=c-2;d>=0;--d)s=t[d],l=s.getLayout()[a]+s.getLayout()[h]+e-u,l>0&&(o=s.getLayout()[a]-l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]}}))}function Cp(t,e,n){_["k"](t.slice().reverse(),(function(t){_["k"](t,(function(t){if(t.outEdges.length){var i=Np(t.outEdges,Ip,n)/Np(t.outEdges,Pp);if(isNaN(i)){var r=t.outEdges.length;i=r?Np(t.outEdges,Dp,n)/r:0}if("vertical"===n){var a=t.getLayout().x+(i-jp(t,n))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(i-jp(t,n))*e;t.setLayout({y:o},!0)}}}))}))}function Ip(t,e){return jp(t.node2,e)*t.getValue()}function Dp(t,e){return jp(t.node2,e)}function Lp(t,e){return jp(t.node1,e)*t.getValue()}function Ep(t,e){return jp(t.node1,e)}function jp(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Pp(t){return t.getValue()}function Np(t,e,n){var i=0,r=t.length,a=-1;while(++a<r){var o=+e(t[a],n);isNaN(o)||(i+=o)}return i}function Rp(t,e,n){_["k"](t,(function(t){_["k"](t,(function(t){if(t.inEdges.length){var i=Np(t.inEdges,Lp,n)/Np(t.inEdges,Pp);if(isNaN(i)){var r=t.inEdges.length;i=r?Np(t.inEdges,Ep,n)/r:0}if("vertical"===n){var a=t.getLayout().x+(i-jp(t,n))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(i-jp(t,n))*e;t.setLayout({y:o},!0)}}}))}))}function kp(t,e){var n="vertical"===e?"x":"y";_["k"](t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),_["k"](t,(function(t){var e=0,n=0;_["k"](t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),_["k"](t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}function Bp(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes;if(n.length){var i=1/0,r=-1/0;_["k"](n,(function(t){var e=t.getLayout().value;e<i&&(i=e),e>r&&(r=e)})),_["k"](n,(function(e){var n=new Gu({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:t.get("color")}),a=n.mapValueToVisual(e.getLayout().value),o=e.getModel().get(["itemStyle","color"]);null!=o?(e.setVisual("color",o),e.setVisual("style",{fill:o})):(e.setVisual("color",a),e.setVisual("style",{fill:a}))}))}}))}function zp(t){t.registerChartView(dp),t.registerSeriesModel(pp),t.registerLayout(gp),t.registerVisual(Bp),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}var Vp=n("2f45"),Fp=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),o=r.get("type"),s=a.get("type");"category"===o?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=a.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[r,a],f=d[u].get("type"),p=d[1-u].get("type"),g=t.data;if(g&&i){var m=[];_["k"](g,(function(t,e){var n;_["t"](t)?(n=t.slice(),t.unshift(e)):_["t"](t.value)?(n=_["m"]({},t),n.value=n.value.slice(),t.value.unshift(e)):n=t,m.push(n)})),t.data=m}var v=this.defaultValueDimensions,y=[{name:c,type:Object(Vp["a"])(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Object(Vp["a"])(p),dimsDef:v.slice()}];return Ai(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:_["h"](Ci["c"],y,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),Gp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return Object(qt["a"])(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Kt["b"]);Object(_["K"])(Gp,Fp,!0);var Hp=Gp,Up=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,a=this._data;this._data||r.removeAll();var o="horizontal"===t.get("layout")?1:0;i.diff(a).add((function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=Zp(e,i,t,o,!0);i.setItemGraphicEl(t,n),r.add(n)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(Object(ee["g"])(n),qp(s,n,i,t)):n=Zp(s,i,t,o),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(Ne["a"]),Wp=function(){function t(){}return t}(),Xp=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return Object(qt["a"])(e,t),e.prototype.getDefaultShape=function(){return new Wp},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(s["b"]);function Zp(t,e,n,i,r){var a=t.ends,o=new Xp({shape:{points:r?Yp(a,i,t):a}});return qp(t,o,e,n,r),o}function qp(t,e,n,i,r){var a=n.hostModel,o=ne[r?"initProps":"updateProps"];o(e,{shape:{points:t.ends}},a,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(i),l=s.getModel("emphasis");Object(re["I"])(e,s),Object(re["J"])(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Yp(t,e,n){return _["H"](t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}var Kp=Up;function Qp(t,e){}var Jp=_["k"];function $p(t){var e=tg(t);Jp(e,(function(t){var e=t.seriesModels;e.length&&(eg(t),Jp(e,(function(e,n){ng(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}function tg(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var i=t.getBaseAxis(),r=_["r"](n,i);r<0&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)})),e}function eg(t){var e,n=t.axis,i=t.seriesModels,r=i.length,a=t.boxWidthList=[],o=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;Jp(i,(function(t){l=Math.max(l,t.getData().count())}));var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}Jp(i,(function(t){var n=t.get("boxWidth");_["t"](n)||(n=[n,n]),s.push([Object(Be["p"])(n[0],e)||0,Object(Be["p"])(n[1],e)||0])}));var c=.8*e-2,h=c/r*.3,d=(c-h*(r-1))/r,f=d/2-c/2;Jp(i,(function(t,e){o.push(f),f+=h+d,a.push(Math.min(Math.max(d,s[e][0]),s[e][1]))}))}function ng(t,e,n){var i=t.coordinateSystem,r=t.getData(),a=n/2,o="horizontal"===t.get("layout")?0:1,s=1-o,l=["x","y"],u=r.mapDimension(l[o]),c=r.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var h=0;h<r.count();h++){var d=r.get(u,h),f=_(d,c[2],h),p=_(d,c[0],h),g=_(d,c[1],h),m=_(d,c[3],h),v=_(d,c[4],h),y=[];b(y,g,!1),b(y,m,!0),y.push(p,g,v,m),x(y,p),x(y,v),x(y,f),r.setItemLayout(h,{initBaseline:f[s],ends:y})}function _(t,n,a){var l,u=r.get(n,a),c=[];return c[o]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c),l[o]+=e),l}function b(t,e,n){var i=e.slice(),r=e.slice();i[o]+=a,r[o]-=a,n?t.push(i,r):t.push(r,i)}function x(t,e){var n=e.slice(),i=e.slice();n[o]-=a,i[o]+=a,t.push(n,i)}}function ig(t,e){e=e||{};for(var n=[],i=[],r=e.boundIQR,a="none"===r||0===r,o=0;o<t.length;o++){var s=Object(Be["c"])(t[o].slice()),l=Object(Be["q"])(s,.25),u=Object(Be["q"])(s,.5),c=Object(Be["q"])(s,.75),h=s[0],d=s[s.length-1],f=(null==r?1.5:r)*(c-l),p=a?h:Math.max(h,l-f),g=a?d:Math.min(d,c+f),m=e.itemNameFormatter,v=Object(_["w"])(m)?m({value:o}):Object(_["C"])(m)?m.replace("{value}",o+""):o+"";n.push([v,p,l,u,c,g]);for(var y=0;y<s.length;y++){var b=s[y];if(b<p||b>g){var x=[v,b];i.push(x)}}}return{boxData:n,outliers:i}}var rg=n("07fd"),ag={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==rg["c"]){var n="";0,Object(Su["c"])(n)}var i=ig(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function og(t){t.registerSeriesModel(Hp),t.registerChartView(Kp),t.registerVisual(Qp),t.registerLayout($p),t.registerTransform(ag)}var sg=["color","borderColor"],lg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){ne["traverseElements"](this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),a=t.get("clip",!0),o=t.coordinateSystem,s=o.getArea&&o.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var o=e.getItemLayout(n);if(a&&dg(s,o))return;var l=hg(o,n,!0);ee["c"](l,{shape:{points:o.ends}},t,n),fg(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(o,l){var u=n.getItemGraphicEl(l);if(e.hasValue(o)){var c=e.getItemLayout(o);a&&dg(s,c)?i.remove(u):(u?(ee["h"](u,{shape:{points:c.ends}},t,o),Object(ee["g"])(u)):u=hg(c,o),fg(u,e,o,r),i.add(u),e.setItemGraphicEl(o,u))}else i.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),vg(t,this.group);var e=t.get("clip",!0)?Fe(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){var n,i=e.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=t.next())){var a=i.getItemLayout(n),o=hg(a,n);fg(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){vg(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Ne["a"]),ug=function(){function t(){}return t}(),cg=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return Object(qt["a"])(e,t),e.prototype.getDefaultShape=function(){return new ug},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(s["b"]);function hg(t,e,n){var i=t.ends;return new cg({shape:{points:n?pg(i,t):i},z2:100})}function dg(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function fg(t,e,n,i){var r=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,Object(re["I"])(t,r)}function pg(t,e){return _["H"](t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var gg=function(){function t(){}return t}(),mg=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return Object(qt["a"])(e,t),e.prototype.getDefaultShape=function(){return new gg},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3},e}(s["b"]);function vg(t,e,n,i){var r=t.getData(),a=r.getLayout("largePoints"),o=new mg({shape:{points:a},__sign:1});e.add(o);var s=new mg({shape:{points:a},__sign:-1});e.add(s),yg(1,o,t,r),yg(-1,s,t,r),i&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function yg(t,e,n,i){var r=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]),a=n.getModel("itemStyle").getItemStyle(sg);e.useStyle(a),e.style.fill=null,e.style.stroke=r}var _g=lg,bg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Object(qt["a"])(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",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},e}(Kt["b"]);Object(_["K"])(bg,Fp,!0);var xg=bg;function wg(t){t&&_["t"](t.series)&&_["k"](t.series,(function(t){_["A"](t)&&"k"===t.type&&(t.type="candlestick")}))}var Og=["itemStyle","borderColor"],Sg=["itemStyle","borderColor0"],Tg=["itemStyle","color"],Mg=["itemStyle","color0"],Ag={seriesType:"candlestick",plan:Object(hn["a"])(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?Tg:Mg)}function i(t,e){return e.get(t>0?Og:Sg)}if(!e.isSeriesFiltered(t)){var r=t.pipelineContext.large;return!r&&{progress:function(t,e){var r;while(null!=(r=t.next())){var a=e.getItemModel(r),o=e.getItemLayout(r).sign,s=a.getItemStyle();s.fill=n(o,a),s.stroke=i(o,a)||s.fill;var l=e.ensureUniqueItemVisual(r,"style");Object(_["m"])(l,s)}}}}}},Cg=Ag,Ig={seriesType:"candlestick",plan:Object(hn["a"])(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=Lg(t,n),r=0,a=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[r])),l=Object(_["H"])(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),u=l[0],c=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:t.pipelineContext.large?p:f};function f(t,n){var o,l=n.getStore();while(null!=(o=t.next())){var f=l.get(s,o),p=l.get(u,o),g=l.get(c,o),m=l.get(h,o),v=l.get(d,o),y=Math.min(p,g),_=Math.max(p,g),b=T(y,f),x=T(_,f),w=T(m,f),O=T(v,f),S=[];M(S,x,0),M(S,b,1),S.push(C(O),C(x),C(w),C(b)),n.setItemLayout(o,{sign:Dg(l,o,p,g,c),initBaseline:p>g?x[a]:b[a],ends:S,brushRect:A(m,v,f)})}function T(t,n){var i=[];return i[r]=n,i[a]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function M(t,e,n){var a=e.slice(),o=e.slice();a[r]=Object(ne["subPixelOptimize"])(a[r]+i/2,1,!1),o[r]=Object(ne["subPixelOptimize"])(o[r]-i/2,1,!0),n?t.push(a,o):t.push(o,a)}function A(t,e,n){var o=T(t,n),s=T(e,n);return o[r]-=i/2,s[r]-=i/2,{x:o[0],y:o[1],width:a?i:s[0]-o[0],height:a?s[1]-o[1]:i}}function C(t){return t[r]=Object(ne["subPixelOptimize"])(t[r],1),t}}function p(t,n){var i,o,l=Object(xe["a"])(4*t.count),f=0,p=[],g=[],m=n.getStore();while(null!=(o=t.next())){var v=m.get(s,o),y=m.get(u,o),_=m.get(c,o),b=m.get(h,o),x=m.get(d,o);isNaN(v)||isNaN(b)||isNaN(x)?(l[f++]=NaN,f+=3):(l[f++]=Dg(m,o,y,_,c),p[r]=v,p[a]=b,i=e.dataToPoint(p,null,g),l[f++]=i?i[0]:NaN,l[f++]=i?i[1]:NaN,p[a]=x,i=e.dataToPoint(p,null,g),l[f++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}}};function Dg(t,e,n,i,r){var a;return a=n>i?-1:n<i?1:e>0?t.get(r,e-1)<=i?1:-1:1,a}function Lg(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),a=Object(Be["p"])(Object(_["P"])(t.get("barMaxWidth"),r),r),o=Object(Be["p"])(Object(_["P"])(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?Object(Be["p"])(s,r):Math.max(Math.min(r/2,a),o)}var Eg=Ig;function jg(t){t.registerChartView(_g),t.registerSeriesModel(xg),t.registerPreprocessor(wg),t.registerVisual(Cg),t.registerLayout(Eg)}function Pg(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var Ng=function(t){function e(e,n){var i=t.call(this)||this,r=new he(e,n),a=new Jt["a"];return i.add(r),i.add(a),i.updateData(e,n),i}return Object(qt["a"])(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),a=0;a<i;a++){var o=Object(Qt["a"])(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/i*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),r.add(o)}Pg(r,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var a=i[r];if(e[a]!==t[a])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}Pg(n,t)},e.prototype.highlight=function(){Object(re["r"])(this)},e.prototype.downplay=function(){Object(re["C"])(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),a=t.getItemModel(e),o=t.getItemVisual(e,"symbol"),s=Object(Qt["c"])(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=a.getModel("emphasis");r.setScale(s),r.traverse((function(t){t.setStyle("fill",u)}));var h=Object(Qt["b"])(t.getItemVisual(e,"symbolOffset"),s);h&&(r.x=h[0],r.y=h[1]);var d=t.getItemVisual(e,"symbolRotate");r.rotation=(d||0)*Math.PI/180||0;var f={};f.showEffectOn=i.get("showEffectOn"),f.rippleScale=a.get(["rippleEffect","scale"]),f.brushType=a.get(["rippleEffect","brushType"]),f.period=1e3*a.get(["rippleEffect","period"]),f.effectOffset=e/t.count(),f.z=i.getShallow("z")||0,f.zlevel=i.getShallow("zlevel")||0,f.symbolType=o,f.color=u,f.rippleEffectColor=a.get(["rippleEffect","color"]),f.rippleNumber=a.get(["rippleEffect","number"]),"render"===f.showEffectOn?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==f.showEffectOn&&n.startEffectAnimation(f):"normal"===t&&"render"!==f.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=f,Object(re["J"])(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Jt["a"]),Rg=Ng,kg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.init=function(){this._symbolDraw=new me(Rg)},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(r.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();var r=dn("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=ur["a"](e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Ne["a"]),Bg=kg,zg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(qt["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(Yt["a"])(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Kt["b"]),Vg=zg;function Fg(t){t.registerChartView(Bg),t.registerSeriesModel(Vg),t.registerLayout(dn("effectScatter"))}var Gg=function(t){function e(e,n,i){var r=t.call(this)||this;return r.add(r.createLine(e,n,i)),r._updateEffectSymbol(e,n),r}return Object(qt["a"])(e,t),e.prototype.createLine=function(t,e,n){return new uh(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),i=n.getModel("effect"),r=i.get("symbolSize"),a=i.get("symbol");_["t"](r)||(r=[r,r]);var o=t.getItemVisual(e,"style"),s=i.get("color")||o&&o.stroke,l=this.childAt(1);this._symbolType!==a&&(this.remove(l),l=Object(Qt["a"])(a,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(i.getItemStyle(["color"])),l.scaleX=r[0],l.scaleY=r[1],l.setColor(s),this._symbolType=a,this._symbolScale=r,this._updateEffectAnimation(t,i,e))},e.prototype._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=t.getItemLayout(n),a=1e3*e.get("period"),o=e.get("loop"),s=e.get("constantSpeed"),l=_["O"](e.get("delay"),(function(e){return e/t.count()*a/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),s>0&&(a=this._getLineLength(i)/s*1e3),a!==this._period||o!==this._loop){i.stopAnimation();var u=void 0;u=_["w"](l)?l(n):l,i.__t>0&&(u=-a*i.__t),this._animateSymbol(i,a,u,o)}this._period=a,this._loop=o}},e.prototype._animateSymbol=function(t,e,n,i){if(e>0){t.__t=0;var r=this,a=t.animate("",i).when(e,{__t:1}).delay(n).during((function(){r._updateSymbolPosition(t)}));i||a.done((function(){r.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return cr["f"](t.__p1,t.__cp1)+cr["f"](t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,a=[t.x,t.y],o=a.slice(),s=Me["h"],l=Me["i"];a[0]=s(e[0],i[0],n[0],r),a[1]=s(e[1],i[1],n[1],r);var u=l(e[0],i[0],n[0],r),c=l(e[1],i[1],n[1],r);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*cr["f"](o,a),1===r&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):1===t.__lastT?t.scaleY=2*cr["f"](e,a):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=a[0],t.y=a[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(Jt["a"]),Hg=Gg,Ug=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createPolyline(e,n,i),r}return Object(qt["a"])(e,t),e.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new hi["a"]({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childAt(0),a={shape:{points:t.getItemLayout(e)}};ee["h"](r,a,i,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=r.getModel("emphasis");a=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),o=u.get("focus"),s=u.get("blurScope")}i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var c=i.ensureState("emphasis");c.style=a,Object(re["J"])(this,o,s,l)},e.prototype.updateLayout=function(t,e){var n=this.childAt(0);n.setShape("points",t.getItemLayout(e))},e}(Jt["a"]),Wg=Ug,Xg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return Object(qt["a"])(e,t),e.prototype.createLine=function(t,e,n){return new Wg(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++){var a=e[r-1],o=e[r];i+=cr["f"](a,o),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t,n=this._points,i=this._offsets,r=n.length;if(i){var a,o=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(o+1,r-1);for(a=s;a>=0;a--)if(i[a]<=e)break;a=Math.min(a,r-2)}else{for(a=o;a<r;a++)if(i[a]>e)break;a=Math.min(a-1,r-2)}var l=(e-i[a])/(i[a+1]-i[a]),u=n[a],c=n[a+1];t.x=u[0]*(1-l)+l*c[0],t.y=u[1]*(1-l)+l*c[1];var h=c[0]-u[0],d=c[1]-u[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},e}(Hg),Zg=Xg,qg=n("9680"),Yg=n("68ab"),Kg=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),Qg=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(qt["a"])(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Kg},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var a=i[n++];if(a>0){t.moveTo(i[n++],i[n++]);for(var o=1;o<a;o++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],c=i[n++];if(t.moveTo(s,l),r>0){var h=(s+u)/2-(l-c)*r,d=(l+c)/2-(u-s)*r;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],c=i[s++],h=1;h<l;h++){var d=i[s++],f=i[s++];if(qg["a"](u,c,d,f,a,t,e))return o}o++}else for(o=0,s=0;s<i.length;){u=i[s++],c=i[s++],d=i[s++],f=i[s++];if(r>0){var p=(u+d)/2-(c-f)*r,g=(c+f)/2-(d-u)*r;if(Yg["a"](u,c,p,g,d,f,a,t,e))return o}else if(qg["a"](u,c,d,f,a,t,e))return o;o++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,i=1/0,r=1/0,a=-1/0,o=-1/0,s=0;s<n.length;){var l=n[s++],u=n[s++];i=Math.min(l,i),a=Math.max(l,a),r=Math.min(u,r),o=Math.max(u,o)}t=this._rect=new ki["a"](i,r,a,o)}return t},e}(s["b"]),Jg=function(){function t(){this.group=new Jt["a"]}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],i=e.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var a=r.length,o=new Float32Array(a+i.length);o.set(r),o.set(i,a),n.setShape({segs:o})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new Qg({cursor:"default"});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null);var a=Object(ie["a"])(t);a.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){a.dataIndex=null;var n=t.hoverDataIdx;n>0&&(a.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),$g=Jg,tm={seriesType:"lines",plan:Object(hn["a"])(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,a){var o=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c<r.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=r.start;c<r.end;c++){var f=t.getLineCoords(c,o);n&&(s[h++]=f);for(var p=0;p<f;p++)d=e.dataToPoint(o[p],!1,d),s[h++]=d[0],s[h++]=d[1]}a.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=a.getItemModel(c),m=(f=t.getLineCoords(c,o),[]);if(n)for(var v=0;v<f;v++)m.push(e.dataToPoint(o[v]));else{m[0]=e.dataToPoint(o[0]),m[1]=e.dataToPoint(o[1]);var y=g.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}a.setItemLayout(c,m)}}}}}},em=tm,nm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),a=t.get("zlevel"),o=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(a).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&o>0&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&Fe(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var a=em.reset(t,e,n);a.progress&&a.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),a=e.pipelineContext,o=a.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new $g:new gh(r?i?Zg:Wg:i?Hg:uh),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(Ne["a"]),im=nm,rm="undefined"===typeof Uint32Array?Array:Uint32Array,am="undefined"===typeof Float64Array?Array:Float64Array;function om(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(_["H"])(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Object(_["J"])([n,t[0],t[1]])})))}var sm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(qt["a"])(e,t),e.prototype.init=function(e){e.data=e.data||[],om(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(om(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(_["e"])(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(_["e"])(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var a=this._getCoordsFromItemModel(t);for(r=0;r<a.length;r++)e[r]=e[r]||[],e[r][0]=a[r][0],e[r][1]=a[r][1];return a.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(_["z"])(t[0])){for(var n=t.length,i=new rm(n),r=new am(n),a=0,o=0,s=0,l=0;l<n;){s++;var u=t[l++];i[o++]=a+e,i[o++]=u;for(var c=0;c<u;c++){var h=t[l++],d=t[l++];r[a++]=h,r[a++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,o),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new Mi["a"](["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var a=t.value;return null!=a?a instanceof Array?a[r]:a:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=i.getItemModel(t),a=r.get("name");if(a)return a;var o=r.get("fromName"),s=r.get("toName"),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Object(Ma["c"])("nameValue",{name:l.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Kt["b"]),lm=sm;function um(t){return t instanceof Array||(t=[t,t]),t}var cm={seriesType:"lines",reset:function(t){var e=um(t.get("symbol")),n=um(t.get("symbolSize")),i=t.getData();function r(t,e){var n=t.getItemModel(e),i=um(n.getShallow("symbol",!0)),r=um(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}},hm=cm;function dm(t){t.registerChartView(im),t.registerSeriesModel(lm),t.registerLayout(em),t.registerVisual(hm)}var fm=256,pm=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=tt["d"].createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,a){var o=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var f=0;f<d;++f){var p=t[f],g=p[0],m=p[1],v=p[2],y=i(v);h.globalAlpha=y,h.drawImage(o,g-u,m-u)}if(!c.width||!c.height)return c;var _=h.getImageData(0,0,c.width,c.height),b=_.data,x=0,w=b.length,O=this.minOpacity,S=this.maxOpacity,T=S-O;while(x<w){y=b[x+3]/256;var M=4*Math.floor(y*(fm-1));if(y>0){var A=a(y)?s:l;y>0&&(y=y*T+O),b[x++]=A[M],b[x++]=A[M+1],b[x++]=A[M+2],b[x++]=A[M+3]*y*256}else x+=4}return h.putImageData(_,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=tt["d"].createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],a=0,o=0;o<256;o++)t[e](o/255,!0,r),i[a++]=r[0],i[a++]=r[1],i[a++]=r[2],i[a++]=r[3];return i},t}(),gm=pm;function mm(t,e,n){var i=t[1]-t[0];e=_["H"](e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}));var r=e.length,a=0;return function(t){var i;for(i=a;i<r;i++){var o=e[i].interval;if(o[0]<=t&&t<=o[1]){a=i;break}}if(i===r)for(i=a-1;i>=0;i--){o=e[i].interval;if(o[0]<=t&&t<=o[1]){a=i;break}}return i>=0&&i<r&&n[i]}}function vm(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function ym(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var _m=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):ym(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(ym(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){ne["traverseElements"](this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var a,o,s,l,u=t.coordinateSystem,c=Ge(u,"cartesian2d");if(c){var h=u.getAxis("x"),d=u.getAxis("y");0,a=h.getBandWidth()+.5,o=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var f=this.group,p=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),y=t.get(["itemStyle","borderRadius"]),_=Object(le["e"])(t),b=t.getModel("emphasis"),x=b.get("focus"),w=b.get("blurScope"),O=b.get("disabled"),S=c?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],T=n;T<i;T++){var M=void 0,A=p.getItemVisual(T,"style");if(c){var C=p.get(S[0],T),I=p.get(S[1],T);if(isNaN(p.get(S[2],T))||C<s[0]||C>s[1]||I<l[0]||I>l[1])continue;var D=u.dataToPoint([C,I]);M=new Re["a"]({shape:{x:D[0]-a/2,y:D[1]-o/2,width:a,height:o},style:A})}else{if(isNaN(p.get(S[1],T)))continue;M=new Re["a"]({z2:1,shape:u.dataToRect([p.get(S[0],T)]).contentShape,style:A})}if(p.hasItemOption){var L=p.getItemModel(T),E=L.getModel("emphasis");g=E.getModel("itemStyle").getItemStyle(),m=L.getModel(["blur","itemStyle"]).getItemStyle(),v=L.getModel(["select","itemStyle"]).getItemStyle(),y=L.get(["itemStyle","borderRadius"]),x=E.get("focus"),w=E.get("blurScope"),O=E.get("disabled"),_=Object(le["e"])(L)}M.shape.r=y;var j=t.getRawValue(T),P="-";j&&null!=j[2]&&(P=j[2]+""),Object(le["g"])(M,_,{labelFetcher:t,labelDataIndex:T,defaultOpacity:A.opacity,defaultText:P}),M.ensureState("emphasis").style=g,M.ensureState("blur").style=m,M.ensureState("select").style=v,Object(re["J"])(M,x,w,O),M.incremental=r,r&&(M.states.emphasis.hoverLayer=!0),f.add(M),p.setItemGraphicEl(T,M),this._progressiveEls&&this._progressiveEls.push(M)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=e.getData(),s=this._hmLayer||this._hmLayer||new gm;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var u=t.getViewRect().clone(),c=t.getRoamTransform();u.applyTransform(c);var h=Math.max(u.x,0),d=Math.max(u.y,0),f=Math.min(u.width+u.x,i.getWidth()),p=Math.min(u.height+u.y,i.getHeight()),g=f-h,m=p-d,v=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],y=o.mapArray(v,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=h,r[1]-=d,r.push(i),r})),_=n.getExtent(),b="visualMap.continuous"===n.type?vm(_,n.option.range):mm(_,n.getPieceList(),n.option.selected);s.update(y,g,m,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:a.color.getColorMapper()},b);var x=new l["a"]({style:{width:g,height:m,x:h,y:d,image:s.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Ne["a"]),bm=_m,xm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(Yt["a"])(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Ch["a"].get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Kt["b"]),wm=xm;function Om(t){t.registerChartView(bm),t.registerSeriesModel(wm)}var Sm=["itemStyle","borderWidth"],Tm=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Mm=new ja["a"],Am=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),a=this._data,o=t.coordinateSystem,s=o.getBaseAxis(),l=s.isHorizontal(),u=o.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:o,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:Tm[+l],categoryDim:Tm[1-+l]};return r.diff(a).add((function(t){if(r.hasValue(t)){var e=zm(r,t),n=Cm(r,t,e,c),a=Gm(r,c,n);r.setItemGraphicEl(t,a),i.add(a),qm(a,c,n)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(r.hasValue(t)){var o=zm(r,t),s=Cm(r,t,o,c),l=Wm(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?Hm(n,c,s):n=Gm(r,c,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),qm(n,c,s)}else i.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&Um(a,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){Um(i,Object(ie["a"])(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(Ne["a"]);function Cm(t,e,n,i){var r=t.getItemLayout(e),a=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Im(n,a,r,i,d),Lm(t,e,r,a,o,d.boundingLength,d.pxSign,c,i,d),Em(n,d.symbolScale,u,i,d);var f=d.symbolSize,p=Object(Qt["b"])(n.get("symbolOffset"),f);return jm(n,f,r,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function Im(t,e,n,i,r){var a,o=i.valueDim,s=t.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[o.wh]<=0);if(_["t"](s)){var h=[Dm(l,s[0])-u,Dm(l,s[1])-u];h[1]<h[0]&&h.reverse(),a=h[c]}else a=null!=s?Dm(l,s)-u:e?i.coordSysExtent[o.index][c]-u:n[o.wh];r.boundingLength=a,e&&(r.repeatCutLength=n[o.wh]),r.pxSign=a>0?1:-1}function Dm(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Lm(t,e,n,i,r,a,o,s,l,u){var c,h=l.valueDim,d=l.categoryDim,f=Math.abs(n[d.wh]),p=t.getItemVisual(e,"symbolSize");c=_["t"](p)?p.slice():null==p?["100%","100%"]:[p,p],c[d.index]=Object(Be["p"])(c[d.index],f),c[h.index]=Object(Be["p"])(c[h.index],i?f:Math.abs(a)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*o}function Em(t,e,n,i,r){var a=t.get(Sm)||0;a&&(Mm.attr({scaleX:e[0],scaleY:e[1],rotation:n}),Mm.updateTransform(),a/=Mm.getLineScale(),a*=e[i.valueDim.index]),r.valueLineWidth=a||0}function jm(t,e,n,i,r,a,o,s,l,u,c,h){var d=c.categoryDim,f=c.valueDim,p=h.pxSign,g=Math.max(e[f.index]+s,0),m=g;if(i){var v=Math.abs(l),y=_["O"](t.get("symbolMargin"),"15%")+"",b=!1;y.lastIndexOf("!")===y.length-1&&(b=!0,y=y.slice(0,y.length-1));var x=Object(Be["p"])(y,e[f.index]),w=Math.max(g+2*x,0),O=b?0:2*x,S=Object(Be["j"])(i),T=S?i:Ym((v+O)/w),M=v-T*g;x=M/2/(b?T:Math.max(T-1,1)),w=g+2*x,O=b?0:2*x,S||"fixed"===i||(T=u?Ym((Math.abs(u)+O)/w):0),m=T*w-O,h.repeatTimes=T,h.symbolMargin=x}var A=p*(m/2),C=h.pathPosition=[];C[d.index]=n[d.wh]/2,C[f.index]="start"===o?A:"end"===o?l-A:l/2,a&&(C[0]+=a[0],C[1]+=a[1]);var I=h.bundlePosition=[];I[d.index]=n[d.xy],I[f.index]=n[f.xy];var D=h.barRectShape=_["m"]({},n);D[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(C[f.index]+A)),D[d.wh]=n[d.wh];var L=h.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[f.xy]=0,L[f.wh]=n[f.wh]}function Pm(t){var e=t.symbolPatternSize,n=Object(Qt["a"])(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Nm(t,e,n,i){var r=t.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=a[e.valueDim.index]+o+2*n.symbolMargin;for(Xm(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?Zm(t,null,p(c),n,i):Zm(t,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(t)})),c++}));c<u;c++){var d=Pm(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,r.add(d);var f=p(c);Zm(d,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},n,i)}function p(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-t),e[l.index]=h*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Rm(t,e,n,i){var r=t.__pictorialBundle,a=t.__pictorialMainPath;a?Zm(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(a=t.__pictorialMainPath=Pm(n),r.add(a),Zm(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function km(t,e,n){var i=_["m"]({},e.barRectShape),r=t.__pictorialBarRect;r?Zm(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new Re["a"]({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,t.add(r))}function Bm(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,a=_["m"]({},n.clipShape),o=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)ee["h"](r,{shape:a},s,l);else{a[o.wh]=0,r=new Re["a"]({shape:a}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[o.wh]=n.clipShape[o.wh],ne[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function zm(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=Vm,n.isAnimationEnabled=Fm,n}function Vm(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Fm(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Gm(t,e,n,i){var r=new Jt["a"],a=new Jt["a"];return r.add(a),r.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?Nm(r,e,n):Rm(r,e,n),km(r,n,i),Bm(r,e,n,i),r.__pictorialShapeStr=Wm(t,n),r.__pictorialSymbolMeta=n,r}function Hm(t,e,n){var i=n.animationModel,r=n.dataIndex,a=t.__pictorialBundle;ee["h"](a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?Nm(t,e,n,!0):Rm(t,e,n,!0),km(t,n,!0),Bm(t,e,n,!0)}function Um(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var a=[];Xm(i,(function(t){a.push(t)})),i.__pictorialMainPath&&a.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),_["k"](a,(function(t){ee["e"](t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function Wm(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Xm(t,e,n){_["k"](t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function Zm(t,e,n,i,r,a){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&ne[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,a)}function qm(t,e,n){var i=n.dataIndex,r=n.itemModel,a=r.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),u=r.getModel(["select","itemStyle"]).getItemStyle(),c=r.getShallow("cursor"),h=a.get("focus"),d=a.get("blurScope"),f=a.get("scale");Xm(t,(function(t){if(t instanceof l["a"]){var e=t.style;t.useStyle(_["m"]({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=o,f&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=u,c&&(t.cursor=c),t.z2=n.z2}));var p=e.valueDim.posDesc[+(n.boundingLength>0)],g=t.__pictorialBarRect;Object(le["g"])(g,Object(le["e"])(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:oe(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Object(re["J"])(t,h,d,a.get("disabled"))}function Ym(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var Km=Am,Qm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(qt["a"])(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Object(bn["d"])(_n.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(_n),Jm=Qm;function $m(t){t.registerChartView(Km),t.registerSeriesModel(Jm),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(_["h"])(vn["c"],"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(vn["a"])("pictorialBar"))}var tv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,a=this.group,o=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}a.x=0,a.y=l.y+u[0];var h=new Ql["a"](this._layersSeries||[],o,c,c),d=[];function f(e,n,s){var l=r._layers;if("remove"!==e){for(var u,c,h=[],f=[],p=o[n].indices,g=0;g<p.length;g++){var m=i.getItemLayout(p[g]),v=m.x,y=m.y0,_=m.y;h.push(v,y),f.push(v,y+_),u=i.getItemVisual(p[g],"style")}var b=i.getItemLayout(p[0]),x=t.getModel("label"),w=x.get("margin"),O=t.getModel("emphasis");if("add"===e){var S=d[n]=new Jt["a"];c=new Pe({shape:{points:h,stackedOnPoints:f,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(c),a.add(S),t.isAnimationEnabled()&&c.setClipPath(ev(c.getBoundingRect(),t,(function(){c.removeClipPath()})))}else{S=l[s];c=S.childAt(0),a.add(S),d[n]=S,ee["h"](c,{shape:{points:h,stackedOnPoints:f}},t),Object(ee["g"])(c)}Object(le["g"])(c,Object(le["e"])(t),{labelDataIndex:p[g-1],defaultText:i.getName(p[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var T=c.getTextContent();T&&(T.x=b.x-w,T.y=b.y0+b.y/2),c.useStyle(u),i.setItemGraphicEl(n,c),Object(re["I"])(c,t),Object(re["J"])(c,O.get("focus"),O.get("blurScope"),O.get("disabled"))}else a.remove(l[n])}h.add(Object(_["c"])(f,this,"add")).update(Object(_["c"])(f,this,"update")).remove(Object(_["c"])(f,this,"remove")).execute(),this._layersSeries=o,this._layers=d},e.type="themeRiver",e}(Ne["a"]);function ev(t,e,n){var i=new Re["a"]({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return ee["c"](i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),i}var nv=tv,iv=2,rv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Di(_["c"](this.getData,this),_["c"](this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},i=Object(Te["j"])(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var a=r.length,o=0;o<a;++o){for(var s=r[o].name,l=0;l<r[o].dataList.length;++l){var u=r[o].dataList[l][0]+"";n[u]=o}for(var u in n)n.hasOwnProperty(u)&&n[u]!==o&&(n[u]=o,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",Te["b"]).models[0],i=n.get("type"),r=_["n"](t.data,(function(t){return void 0!==t[2]})),a=this.fixData(r||[]),o=[],s=this.nameMap=_["f"](),l=0,u=0;u<a.length;++u)o.push(a[u][iv]),s.get(a[u][iv])||(s.set(a[u][iv],l),l++);var c=Object(Ti["b"])(a,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Object(Vp["a"])(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Mi["a"](c,this);return h.initData(a),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),a=Object(Te["j"])(n,(function(e){return t.get("name",e)})),o=[];return a.buckets.each((function(e,n){e.sort((function(e,n){return t.get(r,e)-t.get(r,n)})),o.push({name:n,indices:e})})),o},e.prototype.getAxisTooltipData=function(t,e,n){_["t"](t)||(t=t?[t]:[]);for(var i,r=this.getData(),a=this.getLayerSeries(),o=[],s=a.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=a[l].indices.length,d=0;d<h;++d){var f=r.get(t[0],a[l].indices[d]),p=Math.abs(f-e);p<=u&&(i=f,u=p,c=a[l].indices[d])}o.push(c)}return{dataIndices:o,nestestValue:i}},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=i.getName(t),a=i.get(i.mapDimension("value"),t);return Object(Ma["c"])("nameValue",{name:r,value:a})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Kt["b"]),av=rv;function ov(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},r=n.getRect();i.rect=r;var a=t.get("boundaryGap"),o=n.getAxis();if(i.boundaryGap=a,"horizontal"===o.orient){a[0]=Be["p"](a[0],r.height),a[1]=Be["p"](a[1],r.height);var s=r.height-a[0]-a[1];sv(e,t,s)}else{a[0]=Be["p"](a[0],r.width),a[1]=Be["p"](a[1],r.width);var l=r.width-a[0]-a[1];sv(e,t,l)}e.setLayout("layoutInfo",i)}))}function sv(t,e,n){if(t.count())for(var i,r=e.coordinateSystem,a=e.getLayerSeries(),o=t.mapDimension("single"),s=t.mapDimension("value"),l=_["H"](a,(function(e){return _["H"](e.indices,(function(e){var n=r.dataToPoint(t.get(o,e));return n[1]=t.get(s,e),n}))})),u=lv(l),c=u.y0,h=n/u.max,d=a.length,f=a[0].indices.length,p=0;p<f;++p){i=c[p]*h,t.setItemLayout(a[0].indices[p],{layerIndex:0,x:l[0][p][0],y0:i,y:l[0][p][1]*h});for(var g=1;g<d;++g)i+=l[g-1][p][1]*h,t.setItemLayout(a[g].indices[p],{layerIndex:g,x:l[g][p][0],y0:i,y:l[g][p][1]*h})}}function lv(t){for(var e=t.length,n=t[0].length,i=[],r=[],a=0,o=0;o<n;++o){for(var s=0,l=0;l<e;++l)s+=t[l][o][1];s>a&&(a=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(a-i[u])/2;a=0;for(var c=0;c<n;++c){var h=i[c]+r[c];h>a&&(a=h)}return{y0:r,max:a}}function uv(t){t.registerChartView(nv),t.registerSeriesModel(av),t.registerLayout(ov),t.registerProcessor(ci("themeRiver"))}var cv=2,hv=4,dv=function(t){function e(e,n,i,r){var a=t.call(this)||this;a.z2=cv,a.textConfig={inside:!0},Object(ie["a"])(a).seriesIndex=n.seriesIndex;var o=new $["a"]({z2:hv,silent:e.getModel().get(["label","silent"])});return a.setTextContent(o),a.updateData(!0,e,n,i,r),a}return Object(qt["a"])(e,t),e.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var a=this;Object(ie["a"])(a).dataIndex=e.dataIndex;var o=e.getModel(),s=o.getModel("emphasis"),l=e.getLayout(),u=_["m"]({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=Object(as["a"])(h,r));var d=xi(o.getModel("itemStyle"),u,!0);_["m"](u,d),_["k"](re["g"],(function(t){var e=a.ensureState(t),n=o.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=xi(n,u);i&&(e.shape=i)})),t?(a.setShape(u),a.shape.r=l.r0,ee["h"](a,{shape:{r:l.r}},n,e.dataIndex)):(ee["h"](a,{shape:u},n),Object(ee["g"])(a)),a.useStyle(c),this._updateLabel(n);var f=o.getShallow("cursor");f&&a.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var p=s.get("focus"),g="ancestor"===p?e.getAncestorsIndices():"descendant"===p?e.getDescendantIndices():p;Object(re["J"])(this,g,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),a=r.endAngle-r.startAngle,o=(r.startAngle+r.endAngle)/2,s=Math.cos(o),l=Math.sin(o),u=this,c=u.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,f=i.get("show")&&!(null!=d&&Math.abs(a)<d);function p(t,e){var n=t.get(e);return null==n?i.get(e):n}c.ignore=!f,_["k"](re["a"],(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),f="normal"===i,g=f?c:c.ensureState(i),m=t.getFormattedLabel(h,i);f&&(m=m||e.node.name),g.style=Object(le["c"])(d,{},null,"normal"!==i,!0),m&&(g.style.text=m);var v=d.get("show");null==v||f||(g.ignore=!v);var y,b=p(d,"position"),x=f?u:u.states[i],w=x.style.fill;x.textConfig={outsideFill:"inherit"===d.get("color")?w:null,inside:"outside"!==b};var O=p(d,"distance")||0,S=p(d,"align");"outside"===b?(y=r.r+O,S=o>Math.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(y=r.r0+O,o>Math.PI/2&&(S="right")):"right"===S&&(y=r.r-O,o>Math.PI/2&&(S="left")):(y=a===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=p(d,"verticalAlign")||"middle",g.x=y*s+r.cx,g.y=y*l+r.cy;var T=p(d,"rotate"),M=0;"radial"===T?(M=-o,M<-Math.PI/2&&(M+=Math.PI)):"tangential"===T?(M=Math.PI/2-o,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):_["z"](T)&&(M=T*Math.PI/180),g.rotation=M})),c.dirtyStyle()},e}(ke["a"]),fv=dv,pv="sunburstRootToNode",gv="sunburstHighlight",mv="sunburstUnhighlight";function vv(t){t.registerAction({type:pv,update:"updateView"},(function(t,e){function n(e,n){var i=Dl(t,[pv],e);if(i){var r=e.getViewRoot();r&&(t.direction=El(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:gv,update:"none"},(function(t,e,n){function i(e){var n=Dl(t,[gv],e);n&&(t.dataIndex=n.node.dataIndex)}t=Object(_["m"])({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i),n.dispatchAction(Object(_["m"])(t,{type:"highlight"}))})),t.registerAction({type:mv,update:"updateView"},(function(t,e,n){t=Object(_["m"])({},t),n.dispatchAction(Object(_["m"])(t,{type:"downplay"}))}))}var yv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var a=t.getData(),o=a.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var h=this._oldChildren||[];function d(t,e){function n(t){return t.getId()}function i(n,i){var r=null==n?null:t[n],a=null==i?null:e[i];f(r,a)}0===t.length&&0===e.length||new Ql["a"](e,t,n,n).add(i).update(i).remove(_["h"](i,null)).execute()}function f(i,r){if(u||!i||i.getValue()||(i=null),i!==o&&r!==o)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),a.setItemGraphicEl(i.dataIndex,r.piece)):p(r);else if(i){var s=new fv(i,t,e,n);l.add(s),a.setItemGraphicEl(i.dataIndex,s)}}function p(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}function g(i,a){a.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new fv(i,t,e,n),l.add(r.virtualPiece)),a.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(a.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}d(c,h),g(o,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var a=i.getModel(),o=a.get("link");if(o){var s=a.get("target",!0)||"_blank";Object(He["l"])(o,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:pv,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,a=t[1]-i.cy,o=Math.sqrt(r*r+a*a);return o<=i.r&&o>=i.r0}},e.type="sunburst",e}(Ne["a"]),_v=yv,bv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return Object(qt["a"])(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};xv(n);var i=this._levelModels=_["H"](t.levels||[],(function(t){return new Er["a"](t,this,e)}),this),r=Il.createTree(n,this,a);function a(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),a=i[n.depth];return a&&(t.parentModel=a),t}))}return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=jl(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Xl(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Kt["b"]);function xv(t){var e=0;_["k"](t.children,(function(t){xv(t);var n=t.value;_["t"](n)&&(n=n[0]),e+=n}));var n=t.value;_["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),_["t"](t.value)?t.value[0]=n:t.value=n}var wv=bv,Ov=Math.PI/180;function Sv(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");_["t"](i)||(i=[0,i]),_["t"](e)||(e=[e,e]);var r=n.getWidth(),a=n.getHeight(),o=Math.min(r,a),s=Object(Be["p"])(e[0],r),l=Object(Be["p"])(e[1],a),u=Object(Be["p"])(i[0],o/2),c=Object(Be["p"])(i[1],o/2),h=-t.get("startAngle")*Ov,d=t.get("minAngle")*Ov,f=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,m=t.get("sort");null!=m&&Tv(p,m);var v=0;_["k"](p.children,(function(t){!isNaN(t.getValue())&&v++}));var y=p.getValue(),b=Math.PI/(y||v)*2,x=p.depth>0,w=p.height-(x?-1:1),O=(c-u)/(w||1),S=t.get("clockwise"),T=t.get("stillShowZeroSum"),M=S?1:-1,A=function(e,n){if(e){var i=n;if(e!==f){var r=e.getValue(),a=0===y&&T?b:r*b;a<d&&(a=d),i=n+M*a;var c=e.depth-g-(x?-1:1),h=u+O*c,p=u+O*(c+1),m=t.getLevelModel(e);if(m){var v=m.get("r0",!0),w=m.get("r",!0),C=m.get("radius",!0);null!=C&&(v=C[0],w=C[1]),null!=v&&(h=Object(Be["p"])(v,o/2)),null!=w&&(p=Object(Be["p"])(w,o/2))}e.setLayout({angle:a,startAngle:n,endAngle:i,clockwise:S,cx:s,cy:l,r0:h,r:p})}if(e.children&&e.children.length){var I=0;_["k"](e.children,(function(t){I+=A(t,n+I)}))}return i-n}};if(x){var C=u,I=u+O,D=2*Math.PI;f.setLayout({angle:D,startAngle:h,endAngle:h+D,clockwise:S,cx:s,cy:l,r0:C,r:I})}A(p,h)}))}function Tv(t,e){var n=t.children||[];t.children=Mv(n,e),n.length&&_["k"](t.children,(function(t){Tv(t,e)}))}function Mv(t,e){if(_["w"](e)){var n=_["H"](t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),_["H"](n,(function(e){return t[e.index]}))}var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}function Av(t){var e={};function n(t,n,i){var r=t;while(r&&r.depth>1)r=r.parentNode;var a=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&Object(_["C"])(a)&&(a=Object(Ue["lift"])(a,(t.depth-1)/(i-1)*.5)),a}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),i=e.tree;i.eachNode((function(r){var a=r.getModel(),o=a.getModel("itemStyle").getItemStyle();o.fill||(o.fill=n(r,t,i.root.height));var s=e.ensureUniqueItemVisual(r.dataIndex,"style");Object(_["m"])(s,o)}))}))}function Cv(t){t.registerChartView(_v),t.registerSeriesModel(wv),t.registerLayout(Object(_["h"])(Sv,"sunburst")),t.registerProcessor(Object(_["h"])(ci,"sunburst")),t.registerVisual(Av),vv(t)}var Iv={color:"fill",borderColor:"stroke"},Dv={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Lv=Object(Te["o"])(),Ev=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return Object(Yt["a"])(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=Lv(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Kt["b"]),jv=Ev;function Pv(t,e){return e=e||[0,0],_["H"](["x","y"],(function(n,i){var r=this.getAxis(n),a=e[i],o=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o))}),this)}function Nv(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:_["c"](Pv,t)}}}function Rv(t,e){return e=e||[0,0],_["H"]([0,1],(function(n){var i=e[n],r=t[n]/2,a=[],o=[];return a[n]=i-r,o[n]=i+r,a[1-n]=o[1-n]=e[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])}),this)}function kv(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:_["c"](Rv,t)}}}function Bv(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function zv(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(_["c"])(Bv,t)}}}function Vv(t,e){return e=e||[0,0],_["H"](["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",a=this[r](),o=e[i],s=t[i]/2,l="category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function Fv(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),a=n.dataToAngle(i[1]),o=t.coordToPoint([r,a]);return o.push(r,a*Math.PI/180),o},size:_["c"](Vv,t)}}}function Gv(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}function Hv(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Object(_["q"])(t,"text")))}function Uv(t,e,n){var i,r,a,o=t;if("text"===e)a=o;else{a={},Object(_["q"])(o,"text")&&(a.text=o.text),Object(_["q"])(o,"rich")&&(a.rich=o.rich),Object(_["q"])(o,"textFill")&&(a.fill=o.textFill),Object(_["q"])(o,"textStroke")&&(a.stroke=o.textStroke),Object(_["q"])(o,"fontFamily")&&(a.fontFamily=o.fontFamily),Object(_["q"])(o,"fontSize")&&(a.fontSize=o.fontSize),Object(_["q"])(o,"fontStyle")&&(a.fontStyle=o.fontStyle),Object(_["q"])(o,"fontWeight")&&(a.fontWeight=o.fontWeight),r={type:"text",style:a,silent:!0},i={};var s=Object(_["q"])(o,"textPosition");n?i.position=s?o.textPosition:"inside":s&&(i.position=o.textPosition),Object(_["q"])(o,"textPosition")&&(i.position=o.textPosition),Object(_["q"])(o,"textOffset")&&(i.offset=o.textOffset),Object(_["q"])(o,"textRotation")&&(i.rotation=o.textRotation),Object(_["q"])(o,"textDistance")&&(i.distance=o.textDistance)}return Wv(a,t),Object(_["k"])(a.rich,(function(t){Wv(t,t)})),{textConfig:i,textContent:r}}function Wv(t,e){e&&(e.font=e.textFont||e.font,Object(_["q"])(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(_["q"])(e,"textAlign")&&(t.align=e.textAlign),Object(_["q"])(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(_["q"])(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(_["q"])(e,"textWidth")&&(t.width=e.textWidth),Object(_["q"])(e,"textHeight")&&(t.height=e.textHeight),Object(_["q"])(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(_["q"])(e,"textPadding")&&(t.padding=e.textPadding),Object(_["q"])(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(_["q"])(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(_["q"])(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(_["q"])(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(_["q"])(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(_["q"])(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(_["q"])(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function Xv(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,a=t.fill||"#000";Zv(i,e);var o=null==i.textFill;return r?o&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=a),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(o&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Object(_["k"])(e.rich,(function(t){Zv(t,t)})),i}function Zv(t,e){e&&(Object(_["q"])(e,"fill")&&(t.textFill=e.fill),Object(_["q"])(e,"stroke")&&(t.textStroke=e.fill),Object(_["q"])(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(_["q"])(e,"font")&&(t.font=e.font),Object(_["q"])(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(_["q"])(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(_["q"])(e,"fontSize")&&(t.fontSize=e.fontSize),Object(_["q"])(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(_["q"])(e,"align")&&(t.textAlign=e.align),Object(_["q"])(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(_["q"])(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(_["q"])(e,"width")&&(t.textWidth=e.width),Object(_["q"])(e,"height")&&(t.textHeight=e.height),Object(_["q"])(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(_["q"])(e,"padding")&&(t.textPadding=e.padding),Object(_["q"])(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(_["q"])(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(_["q"])(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(_["q"])(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(_["q"])(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(_["q"])(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(_["q"])(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(_["q"])(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(_["q"])(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(_["q"])(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(_["q"])(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var qv=n("06ad"),Yv={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Kv=Object(_["F"])(Yv),Qv=(Object(_["N"])(V["a"],(function(t,e){return t[e]=1,t}),{}),V["a"].join(", "),["","style","shape","extra"]),Jv=Object(Te["o"])();function $v(t,e,n,i,r){var a=t+"Animation",o=Object(ee["a"])(t,i,r)||{},s=Jv(e).userDuring;return o.duration>0&&(o.during=s?Object(_["c"])(uy,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),Object(_["m"])(o,n[a]),o}function ty(t,e,n,i){i=i||{};var r=i.dataIndex,a=i.isInit,o=i.clearStyle,s=n.isAnimationEnabled(),l=Jv(t),u=e.style;l.userDuring=e.during;var c={},h={};if(fy(t,e,h),hy("shape",e,h),hy("extra",e,h),!a&&s&&(dy(t,e,c),cy("shape",t,e,c),cy("extra",t,e,c),py(t,e,u,c)),h.style=u,ry(t,h,o),oy(t,e),s)if(a){var d={};Object(_["k"])(Qv,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(d[t]=d[t]||{}),Object(_["m"])(t?d[t]:d,n.enterFrom))}));var f=$v("enter",t,e,n,r);f.duration>0&&t.animateFrom(d,f)}else ay(t,e,r||0,n,c);ey(t,e),u?t.dirty():t.markRedraw()}function ey(t,e){for(var n=Jv(t).leaveToProps,i=0;i<Qv.length;i++){var r=Qv[i],a=r?e[r]:e;a&&a.leaveTo&&(n||(n=Jv(t).leaveToProps={}),r&&(n[r]=n[r]||{}),Object(_["m"])(r?n[r]:n,a.leaveTo))}}function ny(t,e,n,i){if(t){var r=t.parent,a=Jv(t).leaveToProps;if(a){var o=$v("update",t,e,n,0);o.done=function(){r.remove(t),i&&i()},t.animateTo(a,o)}else r.remove(t),i&&i()}}function iy(t){return"all"===t}function ry(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,a=0;a<r.length;a++){var o=r[a];"style"===o.targetName&&o.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}function ay(t,e,n,i,r){if(r){var a=$v("update",t,e,i,n);a.duration>0&&t.animateFrom(r,a)}}function oy(t,e){Object(_["q"])(e,"silent")&&(t.silent=e.silent),Object(_["q"])(e,"ignore")&&(t.ignore=e.ignore),t instanceof os["c"]&&Object(_["q"])(e,"invisible")&&(t.invisible=e.invisible),t instanceof s["b"]&&Object(_["q"])(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var sy={},ly={setTransform:function(t,e){return sy.el[t]=e,this},getTransform:function(t){return sy.el[t]},setShape:function(t,e){var n=sy.el,i=n.shape||(n.shape={});return i[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=sy.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=sy.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=sy.el.style;if(e)return e[t]},setExtra:function(t,e){var n=sy.el.extra||(sy.el.extra={});return n[t]=e,this},getExtra:function(t){var e=sy.el.extra;if(e)return e[t]}};function uy(){var t=this,e=t.el;if(e){var n=Jv(e).userDuring,i=t.userDuring;n===i?(sy.el=e,i(ly)):t.el=t.userDuring=null}}function cy(t,e,n,i){var r=n[t];if(r){var a,o=e[t];if(o){var s=n.transition,l=r.transition;if(l)if(!a&&(a=i[t]={}),iy(l))Object(_["m"])(a,o);else for(var u=Object(Te["r"])(l),c=0;c<u.length;c++){var h=u[c],d=o[h];a[h]=d}else if(iy(s)||Object(_["r"])(s,t)>=0){!a&&(a=i[t]={});var f=Object(_["F"])(o);for(c=0;c<f.length;c++){h=f[c],d=o[h];gy(r[h],d)&&(a[h]=d)}}}}}function hy(t,e,n){var i=e[t];if(i)for(var r=n[t]={},a=Object(_["F"])(i),o=0;o<a.length;o++){var s=a[o];r[s]=Object(qv["a"])(i[s])}}function dy(t,e,n){for(var i=e.transition,r=iy(i)?V["a"]:Object(Te["r"])(i||[]),a=0;a<r.length;a++){var o=r[a];if("style"!==o&&"shape"!==o&&"extra"!==o){var s=t[o];0,n[o]=s}}}function fy(t,e,n){for(var i=0;i<Kv.length;i++){var r=Kv[i],a=Yv[r],o=e[r];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(i=0;i<V["a"].length;i++){var s=V["a"][i];null!=e[s]&&(n[s]=e[s])}}function py(t,e,n,i){if(n){var r,a=t.style;if(a){var o=n.transition,s=e.transition;if(o&&!iy(o)){var l=Object(Te["r"])(o);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var c=l[u],h=a[c];r[c]=h}}else if(t.getAnimationStyleProps&&(iy(s)||iy(o)||Object(_["r"])(s,"style")>=0)){var d=t.getAnimationStyleProps(),f=d?d.style:null;if(f){!r&&(r=i.style={});var p=Object(_["F"])(n);for(u=0;u<p.length;u++){c=p[u];if(f[c]){h=a[c];r[c]=h}}}}}}}function gy(t,e){return Object(_["u"])(t)?t!==e:null!=t&&isFinite(t)}var my=Object(Te["o"])(),vy=["percent","easing","shape","style","extra"];function yy(t){t.stopAnimation("keyframe"),t.attr(my(t))}function _y(t,e,n){if(n.isAnimationEnabled()&&e)if(Object(_["t"])(e))Object(_["k"])(e,(function(e){_y(t,e,n)}));else{var i=e.keyframes,r=e.duration;if(n&&null==r){var a=Object(ee["a"])("enter",n,0);r=a&&a.duration}if(i&&r){var o=my(t);Object(_["k"])(Qv,(function(n){if(!n||t[n]){var a;i.sort((function(t,e){return t.percent-e.percent})),Object(_["k"])(i,(function(i){var s=t.animators,l=n?i[n]:i;if(l){var u=Object(_["F"])(l);if(n||(u=Object(_["n"])(u,(function(t){return Object(_["r"])(vy,t)<0}))),u.length){a||(a=t.animate(n,e.loop,!0),a.scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==a&&s[c].targetName===a.targetName&&s[c].stopTracks(u);n&&(o[n]=o[n]||{});var h=n?o[n]:o;Object(_["k"])(u,(function(e){h[e]=((n?t[n]:t)||{})[e]})),a.whenWithKeys(r*i.percent,l,u,i.easing)}}})),a&&a.delay(e.delay||0).duration(r).start(e.easing)}}))}}}var by="emphasis",xy="normal",wy="blur",Oy="select",Sy=[xy,by,wy,Oy],Ty={normal:["itemStyle"],emphasis:[by,"itemStyle"],blur:[wy,"itemStyle"],select:[Oy,"itemStyle"]},My={normal:["label"],emphasis:[by,"label"],blur:[wy,"label"],select:[Oy,"label"]},Ay=["x","y"],Cy="e\0\0",Iy={normal:{},emphasis:{},blur:{},select:{}},Dy={cartesian2d:Nv,geo:kv,single:zv,polar:Fv,calendar:Gv};function Ly(t){return t instanceof s["b"]}function Ey(t){return t instanceof os["c"]}function jy(t,e){e.copyTransform(t),Ey(e)&&Ey(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,Ly(e)&&Ly(t)&&e.setShape(t.shape))}var Py=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,a=t.getData(),o=this.group,s=Fy(t,a,e,n);r||o.removeAll(),a.diff(r).add((function(e){Hy(n,null,e,s(e,i),t,o,a)})).remove((function(e){var n=r.getItemGraphicEl(e);ny(n,Lv(n).option,t)})).update((function(e,l){var u=r.getItemGraphicEl(l);Hy(n,u,e,s(e,i),t,o,a)})).execute();var l=t.get("clip",!0)?Fe(t.coordinateSystem,!1,t):null;l?o.setClipPath(l):o.removeClipPath(),this._data=a},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var a=e.getData(),o=Fy(e,a,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=Hy(null,null,u,o(u,r),e,this.group,a);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){ne["traverseElements"](this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===r)return!0;return!1},e.type="custom",e}(Ne["a"]),Ny=Py;function Ry(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,a=n_(i);e=ne["makePath"](a,null,r,i.layout||"center"),Lv(e).customPathData=a}else if("image"===n)e=new l["a"]({}),Lv(e).customImagePath=t.style.image;else if("text"===n)e=new $["a"]({});else if("group"===n)e=new Jt["a"];else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var o=ne["getShapeClass"](n);if(!o){var s="";0,Object(Su["c"])(s)}e=new o}return Lv(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function ky(t,e,n,i,r,a,o){yy(e);var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=Ay);var l=i&&i.style;if(l){if("text"===e.type){var u=l;Object(_["q"])(u,"textFill")&&(u.fill=u.textFill),Object(_["q"])(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=Ly(e)?l.decal:null;t&&h&&(h.dirty=!0,c=Object(as["a"])(h,t)),l.__decalPattern=c}if(Ey(e)&&l){c=l.__decalPattern;c&&(l.decal=c)}ty(e,i,a,{dataIndex:n,isInit:o,clearStyle:!0}),_y(e,i.keyframeAnimation,a)}function By(t,e,n,i,r){var a=e.isGroup?null:e,o=r&&r[t].cfg;if(a){var s=a.ensureState(t);if(!1===i){var l=a.getState(t);l&&(l.style=null)}else s.style=i||null;o&&(s.textConfig=o),Object(re["G"])(a)}}function zy(t,e,n){if(!t.isGroup){var i=t,r=n.currentZ,a=n.currentZLevel;i.z=r,i.zlevel=a;var o=e.z2;null!=o&&(i.z2=o||0);for(var s=0;s<Sy.length;s++)Vy(i,e,Sy[s])}}function Vy(t,e,n){var i,r=n===xy,a=r?e:Yy(e,n),o=a?a.z2:null;null!=o&&(i=r?t:t.ensureState(n),i.z2=o||0)}function Fy(t,e,n,i){var r=t.get("renderItem"),a=t.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):Dy[a.type](a));for(var s,l,u=Object(_["i"])({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:x,style:O,ordinalRawValue:w,styleEmphasis:S,visual:A,barLayout:C,currentSeriesIndices:I,font:D},o.api||{}),c={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:Gy(t.getData())},h={},d={},f={},p={},g=0;g<Sy.length;g++){var m=Sy[g];f[m]=t.getModel(Ty[m]),p[m]=t.getModel(My[m])}function v(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function y(t,n){return e.hasItemOption?t===s?h[n]||(h[n]=v(t).getModel(Ty[n])):v(t).getModel(Ty[n]):f[n]}function b(t,n){return e.hasItemOption?t===s?d[n]||(d[n]=v(t).getModel(My[n])):v(t).getModel(My[n]):p[n]}return function(t,n){return s=t,l=null,h={},d={},r&&r(Object(_["i"])({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},c),u)};function x(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)}function w(t,n){null==n&&(n=s),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var a=e.get(i.name,n),o=i&&i.ordinalMeta;return o?o.categories[a]:a}function O(n,i){null==i&&(i=s);var r=e.getItemVisual(i,"style"),a=r&&r.fill,o=r&&r.opacity,l=y(i,xy).getItemStyle();null!=a&&(l.fill=a),null!=o&&(l.opacity=o);var u={inheritColor:Object(_["C"])(a)?a:"#000"},c=b(i,xy),h=le["c"](c,null,u,!1,!0);h.text=c.getShallow("show")?Object(_["P"])(t.getFormattedLabel(i,xy),oe(e,i)):null;var d=le["b"](c,u,!1);return M(n,l),l=Xv(l,h,d),n&&T(l,n),l.legacy=!0,l}function S(n,i){null==i&&(i=s);var r=y(i,by).getItemStyle(),a=b(i,by),o=le["c"](a,null,null,!0,!0);o.text=a.getShallow("show")?Object(_["Q"])(t.getFormattedLabel(i,by),t.getFormattedLabel(i,xy),oe(e,i)):null;var l=le["b"](a,null,!0);return M(n,r),r=Xv(r,o,l),n&&T(r,n),r.legacy=!0,r}function T(t,e){for(var n in e)Object(_["q"])(e,n)&&(t[n]=e[n])}function M(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function A(t,n){if(null==n&&(n=s),Object(_["q"])(Iv,t)){var i=e.getItemVisual(n,"style");return i?i[Iv[t]]:null}if(Object(_["q"])(Dv,t))return e.getItemVisual(n,t)}function C(t){if("cartesian2d"===a.type){var e=a.getBaseAxis();return Object(vn["b"])(Object(_["i"])({axis:e},t))}}function I(){return n.getCurrentSeriesIndices()}function D(t){return le["d"](t,n)}}function Gy(t){var e={};return Object(_["k"])(t.dimensions,(function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,a=e[r]=e[r]||[];a[i.coordDimIndex]=t.getDimensionIndex(n)}})),e}function Hy(t,e,n,i,r,a,o){if(i){var s=Uy(t,e,n,i,r,a);return s&&o.setItemGraphicEl(n,s),s&&Object(re["J"])(s,i.focus,i.blurScope,i.emphasisDisabled),s}a.remove(e)}function Uy(t,e,n,i,r,a){var o=-1,s=e;e&&Wy(e,i,r)&&(o=Object(_["r"])(a.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Ry(i),s&&jy(s,u)),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Iy.normal.cfg=Iy.normal.conOpt=Iy.emphasis.cfg=Iy.emphasis.conOpt=Iy.blur.cfg=Iy.blur.conOpt=Iy.select.cfg=Iy.select.conOpt=null,Iy.isLegacy=!1,Zy(u,n,i,r,l,Iy),Xy(u,n,i,r,l),ky(t,u,n,i,Iy,r,l),Object(_["q"])(i,"info")&&(Lv(u).info=i.info);for(var c=0;c<Sy.length;c++){var h=Sy[c];if(h!==xy){var d=Yy(i,h),f=Ky(i,d,h);By(h,u,d,f,Iy)}}return zy(u,i,r),"group"===i.type&&Qy(t,u,n,i,r),o>=0?a.replaceAt(u,o):a.add(u),u}function Wy(t,e,n){var i=Lv(t),r=e.type,a=e.shape,o=e.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&i_(a)&&n_(a)!==i.customPathData||"image"===r&&Object(_["q"])(o,"image")&&o.image!==i.customImagePath}function Xy(t,e,n,i,r){var a=n.clipPath;if(!1===a)t&&t.getClipPath()&&t.removeClipPath();else if(a){var o=t.getClipPath();o&&Wy(o,a,i)&&(o=null),o||(o=Ry(a),t.setClipPath(o)),ky(null,o,e,a,null,i,r)}}function Zy(t,e,n,i,r,a){if(!t.isGroup){qy(n,null,a),qy(n,by,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(null!=o||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===o)c&&t.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=Ry(o),t.setTextContent(c)),ky(null,c,e,o,null,i,r);for(var h=o&&o.style,d=0;d<Sy.length;d++){var f=Sy[d];if(f!==xy){var p=a[f].conOpt;By(f,c,p,Ky(o,p,f),null)}}h?c.dirty():c.markRedraw()}}}}function qy(t,e,n){var i=e?Yy(t,e):t,r=e?Ky(t,i,by):t.style,a=t.type,o=i?i.textConfig:null,s=t.textContent,l=s?e?Yy(s,e):s:null;if(r&&(n.isLegacy||Hv(r,a,!!o,!!l))){n.isLegacy=!0;var u=Uv(r,a,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=o,h.conOpt=l}function Yy(t,e){return e?t?t[e]:null:t}function Ky(t,e,n){var i=e&&e.style;return null==i&&n===by&&t&&(i=t.styleEmphasis),i}function Qy(t,e,n,i,r){var a=i.children,o=a?a.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(o||l||u)if(l)Jy({api:t,oldChildren:e.children()||[],newChildren:a||[],dataIndex:n,seriesModel:r,group:e});else{u&&e.removeAll();for(var c=0;c<o;c++)a[c]&&Uy(t,e.childAt(c),n,a[c],r,e);for(var h=e.childCount()-1;h>=c;h--){var d=e.childAt(h);ny(d,Lv(e).option,r)}}}function Jy(t){new Ql["a"](t.oldChildren,t.newChildren,$y,$y,t).add(t_).update(t_).remove(e_).execute()}function $y(t,e){var n=t&&t.name;return null!=n?n:Cy+e}function t_(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;Uy(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function e_(t){var e=this.context,n=e.oldChildren[t];ny(n,Lv(n).option,e.seriesModel)}function n_(t){return t&&(t.pathData||t.d)}function i_(t){return t&&(Object(_["q"])(t,"pathData")||Object(_["q"])(t,"d"))}function r_(t){t.registerChartView(Ny),t.registerSeriesModel(jv)}var a_=Object(Te["o"])(),o_=_["d"],s_=_["c"],l_=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==a){this._lastValue=r,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||"hide"===a)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(o){var h=_["h"](u_,e,c);this.updatePointerEl(o,l,h),this.updateLabelEl(o,l,h,e)}else o=this._group=new Jt["a"],this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),n.getZr().add(o);f_(o,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,a=e.get("snap");if(!a&&!r)return!1;if("auto"===n||null==n){var o=this.animationThreshold;if(r&&i.getBandWidth()>o)return!0;if(a){var s=$r(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var a=a_(t).pointerEl=new ne[r.type](o_(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=a_(t).labelEl=new $["a"](o_(e.label));t.add(r),h_(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=a_(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=a_(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),h_(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||"hide"===o)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=ne["createIcon"](a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Wa["g"](t.event)},onmousedown:s_(this._onHandleDragMove,this,0,0),drift:s_(this._onHandleDragMove,this),ondragend:s_(this._onHandleDragEnd,this)}),i.add(r)),f_(r,n,!1),r.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=a.get("size");_["t"](s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,On["b"](this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){u_(this._axisPointerModel,!e&&this._moveAnimation,this._handle,d_(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(d_(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(d_(i)),a_(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.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"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),On["a"](this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function u_(t,e,n,i){c_(a_(n).lastProp,i)||(a_(n).lastProp=i,e?ee["h"](n,i,t):(n.stopAnimation(),n.attr(i)))}function c_(t,e){if(_["A"](t)&&_["A"](e)){var n=!0;return _["k"](e,(function(e,i){n=n&&c_(t[i],e)})),!!n}return t===e}function h_(t,e){t[e.get(["label","show"])?"show":"hide"]()}function d_(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function f_(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}var p_=l_;function g_(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function m_(t,e,n,i,r){var a=n.get("value"),o=y_(a,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=He["j"](s.get("padding")||0),c=s.getFont(),h=u["d"](o,c),d=r.position,f=h.width+l[1]+l[3],p=h.height+l[0]+l[2],g=r.align;"right"===g&&(d[0]-=f),"center"===g&&(d[0]-=f/2);var m=r.verticalAlign;"bottom"===m&&(d[1]-=p),"middle"===m&&(d[1]-=p/2),v_(d,f,p,i);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get(["axisLine","lineStyle","color"])),t.label={x:d[0],y:d[1],style:Object(le["c"])(s,{text:o,font:c,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function v_(t,e,n,i){var r=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,a)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function y_(t,e,n,i,r){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:r.precision}),o=r.formatter;if(o){var s={value:sr["c"](e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};_["k"](i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),_["C"](o)?a=o.replace("{value}",a):_["w"](o)&&(a=o(s))}return a}function __(t,e,n){var i=ur["c"]();return ur["g"](i,i,n.rotation),ur["i"](i,i,n.position),ne["applyTransform"]([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function b_(t,e,n,i,r,a){var o=Wr.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),m_(e,i,r,a,{position:__(i.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function x_(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function w_(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function O_(t,e,n,i,r,a){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:a,clockwise:!0}}var S_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var a=n.axis,o=a.grid,s=i.get("type"),l=T_(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(e,!0));if(s&&"none"!==s){var c=g_(i),h=M_[s](a,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=yr(o.model,n);b_(e,t,d,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=yr(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=__(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,a=r.grid,o=r.getGlobalExtent(!0),s=T_(a,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(o[1],u[l]),u[l]=Math.max(o[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[l]}},e}(p_);function T_(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var M_={line:function(t,e,n){var i=x_([e,n[0]],[e,n[1]],A_(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:w_([e-i/2,n[0]],[i,r],A_(t))}}};function A_(t){return"x"===t.dim?0:1}var C_=S_,I_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Xi["a"]),D_=I_,L_=n("22d1"),E_=Object(Te["o"])(),j_=_["k"];function P_(t,e,n){if(!L_["a"].node){var i=e.getZr();E_(i).records||(E_(i).records={}),N_(i,e);var r=E_(i).records[t]||(E_(i).records[t]={});r.handler=n}}function N_(t,e){function n(n,i){t.on(n,(function(n){var r=z_(e);j_(E_(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),R_(r.pendings,e)}))}E_(t).initialized||(E_(t).initialized=!0,n("click",_["h"](B_,"click")),n("mousemove",_["h"](B_,"mousemove")),n("globalout",k_))}function R_(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function k_(t,e,n){t.handler("leave",null,n)}function B_(t,e,n,i){e.handler(t,n,i)}function z_(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function V_(t,e){if(!L_["a"].node){var n=e.getZr(),i=(E_(n).records||{})[t];i&&(E_(n).records[t]=null)}}var F_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";P_("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){V_("axisPointer",e)},e.prototype.dispose=function(t,e){V_("axisPointer",e)},e.type="axisPointer",e}(Wi["a"]),G_=F_;function H_(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var a=n.getData(),o=Te["u"](a,t);if(null==o||o<0||_["t"](o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,d=u.dim,f="x"===h||"radius"===h?1:0,p=a.mapDimension(d),g=[];g[f]=a.get(p,o),g[1-f]=a.get(a.getCalculationInfo("stackResultDimension"),o),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(a.getValues(_["H"](l.dimensions,(function(t){return a.mapDimension(t)})),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),i=[m.x+m.width/2,m.y+m.height/2]}return{point:i,el:s}}var U_=Object(Te["o"])();function W_(t,e,n){var i=t.currTrigger,r=[t.x,t.y],a=t,o=t.dispatchAction||Object(_["c"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){eb(r)&&(r=H_({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=eb(r),u=a.axesInfo,c=s.axesInfo,h="leave"===i||eb(r),d={},f={},p={list:[],map:{}},g={showPointer:Object(_["h"])(q_,f),showTooltip:Object(_["h"])(Y_,p)};Object(_["k"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);Object(_["k"])(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,a=$_(u,t);if(!h&&n&&(!u||a)){var o=a&&a.value;null!=o||l||(o=i.pointToData(r)),null!=o&&X_(t,o,g,!1,d)}}))}));var m={};return Object(_["k"])(c,(function(t,e){var n=t.linkGroup;n&&!f[e]&&Object(_["k"])(n.axesInfo,(function(e,i){var r=f[i];if(e!==t&&r){var a=r.value;n.mapper&&(a=t.axis.scale.parse(n.mapper(a,tb(e),tb(t)))),m[t.key]=a}}))})),Object(_["k"])(m,(function(t,e){X_(c[e],t,g,!0,d)})),K_(f,c,d),Q_(p,r,t,o),J_(c,o,n),d}}function X_(t,e,n,i,r){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e))if(t.involveSeries){var o=Z_(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==r.seriesIndex&&Object(_["m"])(r,s[0]),!i&&t.snap&&a.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,o,l)}else n.showPointer(t,e)}function Z_(t,e){var n=e.axis,i=n.dim,r=t,a=[],o=Number.MAX_VALUE,s=-1;return Object(_["k"])(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=o&&((p<o||f>=0&&s<0)&&(o=p,s=f,r=u,a.length=0),Object(_["k"])(c,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:r}}function q_(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function Y_(t,e,n,i){var r=n.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=na(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.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:r.slice()})}}function K_(t,e,n){var i=n.axesInfo=[];Object(_["k"])(e,(function(e,n){var r=e.axisPointerModel.option,a=t[n];a?(!e.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function Q_(t,e,n,i){if(!eb(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function J_(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",a=U_(i)[r]||{},o=U_(i)[r]={};Object(_["k"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(_["k"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t}))}));var s=[],l=[];Object(_["k"])(a,(function(t,e){!o[e]&&l.push(t)})),Object(_["k"])(o,(function(t,e){!a[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function $_(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function tb(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function eb(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function nb(t){aa.registerAxisPointerClass("CartesianAxisPointer",C_),t.registerComponentModel(D_),t.registerComponentView(G_),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(_["t"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Xr(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},W_)}function ib(t){Object(i["a"])(va),Object(i["a"])(nb)}var rb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var a=n.axis;"angle"===a.dim&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a),l=s.getExtent(),u=a.dataToCoord(e),c=i.get("type");if(c&&"none"!==c){var h=g_(i),d=ob[c](a,o,u,l);d.style=h,t.graphicKey=d.type,t.pointer=d}var f=i.get(["label","margin"]),p=ab(e,n,i,o,f);m_(t,n,i,r,p)},e}(p_);function ab(t,e,n,i,r){var a=e.axis,o=a.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=i.getRadiusAxis().getExtent();if("radius"===a.dim){var d=ur["c"]();ur["g"](d,d,s),ur["i"](d,d,[i.cx,i.cy]),l=ne["applyTransform"]([o,-r],d);var f=e.getModel("axisLabel").get("rotate")||0,p=Wr.innerTextLayout(s,f*Math.PI/180,-1);u=p.textAlign,c=p.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,o]);var m=i.cx,v=i.cy;u=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var ob={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:x_(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),a=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:O_(e.cx,e.cy,i[0],i[1],(-n-r/2)*a,(r/2-n)*a)}:{type:"Sector",shape:O_(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},sb=rb,lb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Xi["a"]),ub=lb,cb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Te["b"]).models[0]},e.type="polarAxis",e}(Xi["a"]);_["K"](cb,Yi["a"]);var hb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.type="angleAxis",e}(cb),db=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.type="radiusAxis",e}(cb),fb=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return Object(qt["a"])(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(gr["a"]);fb.prototype.dataToRadius=gr["a"].prototype.dataToCoord,fb.prototype.radiusToData=gr["a"].prototype.coordToData;var pb=fb,gb=Object(Te["o"])(),mb=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return Object(qt["a"])(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var a=i[0],o=t.dataToCoord(a+1)-t.dataToCoord(a),s=Math.abs(o),l=u["d"](null==a?"":a+"",e.getFont(),"center","top"),c=Math.max(l.height,7),h=c/s;isNaN(h)&&(h=1/0);var d=Math.max(0,Math.floor(h)),f=gb(t.model),p=f.lastAutoInterval,g=f.lastTickCount;return null!=p&&null!=g&&Math.abs(p-d)<=1&&Math.abs(g-r)<=1&&p>d?d=p:(f.lastTickCount=r,f.lastAutoInterval=d),d},e}(gr["a"]);mb.prototype.dataToAngle=gr["a"].prototype.dataToCoord,mb.prototype.angleToData=gr["a"].prototype.coordToData;var vb=mb,yb=["radius","angle"],_b=function(){function t(t){this.dimensions=yb,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new pb,this._angleAxis=new vb,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);i.inverse?a=o-360:o=a+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,u=l<a?1:-1;while(l<a||l>o)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,r=-Math.sin(n)*e+this.cy;return[i,r]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,a=this.r,o=this.r0;return r<=a*a&&r>=o*o}}},t.prototype.convertToPixel=function(t,e,n){var i=bb(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=bb(e);return i===this?this.pointToData(n):null},t}();function bb(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var xb=_b;function wb(t,e,n){var i=e.get("center"),r=n.getWidth(),a=n.getHeight();t.cx=Object(Be["p"])(i[0],r),t.cy=Object(Be["p"])(i[1],a);var o=t.getRadiusAxis(),s=Math.min(r,a)/2,l=e.get("radius");null==l?l=[0,"100%"]:_["t"](l)||(l=[0,l]);var u=[Object(Be["p"])(l[0],s),Object(Be["p"])(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Ob(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();_["k"](Object(sr["d"])(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),_["k"](Object(sr["d"])(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),Object(sr["i"])(i.scale,i.model),Object(sr["i"])(r.scale,r.model),"category"===i.type&&!i.onBand){var a=i.getExtent(),o=360/i.scale.count();i.inverse?a[1]+=o:a[1]-=o,i.setExtent(a[0],a[1])}}function Sb(t){return"angleAxis"===t.mainType}function Tb(t,e){if(t.type=e.get("type"),t.scale=Object(sr["a"])(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),Sb(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var Mb={dimensions:yb,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new xb(i+"");r.update=Ob;var a=r.getRadiusAxis(),o=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");Tb(a,s),Tb(o,l),wb(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",Te["b"]).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},Ab=Mb,Cb=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Ib(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function Db(t){var e=t.getRadiusAxis();return e.inverse?0:1}function Lb(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var Eb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),a=n.getTicksCoords(),o=n.getMinorTicksCoords(),s=_["H"](n.getViewLabels(),(function(t){t=_["d"](t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));Lb(s),Lb(a),_["k"](Cb,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||jb[e](this.group,t,i,a,o,r,s)}),this)}},e.type="angleAxis",e}(aa),jb={axisLine:function(t,e,n,i,r,a){var o,s=e.getModel(["axisLine","lineStyle"]),l=Db(n),u=l?0:1;o=0===a[u]?new ja["a"]({shape:{cx:n.cx,cy:n.cy,r:a[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Pa["a"]({shape:{cx:n.cx,cy:n.cy,r:a[l],r0:a[u]},style:s.getLineStyle(),z2:1,silent:!0}),o.style.fill=null,t.add(o)},axisTick:function(t,e,n,i,r,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Db(n)],u=_["H"](i,(function(t){return new Lr["a"]({shape:Ib(n,[l,l+s],t.coord)})}));t.add(ne["mergePath"](u,{style:_["i"](o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,a){if(r.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Db(n)],c=[],h=0;h<r.length;h++)for(var d=0;d<r[h].length;d++)c.push(new Lr["a"]({shape:Ib(n,[u,u+l],r[h][d].coord)}));t.add(ne["mergePath"](c,{style:_["i"](s.getModel("lineStyle").getLineStyle(),_["i"](o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,r,a,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");_["k"](o,(function(i,r){var o=l,h=i.tickValue,d=a[Db(n)],f=n.coordToPoint([d+u,i.coord]),p=n.cx,g=n.cy,m=Math.abs(f[0]-p)/d<.3?"center":f[0]>p?"left":"right",v=Math.abs(f[1]-g)/d<.3?"middle":f[1]>g?"top":"bottom";if(s&&s[h]){var y=s[h];_["A"](y)&&y.textStyle&&(o=new Er["a"](y.textStyle,l,l.ecModel))}var b=new $["a"]({silent:Wr.isLabelSilent(e),style:Object(le["c"])(o,{x:f[0],y:f[1],fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(t.add(b),c){var x=Wr.makeAxisEventDataBase(e);x.targetType="axisLabel",x.value=i.rawLabel,Object(ie["a"])(b).eventData=x}}),this)},splitLine:function(t,e,n,i,r,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<i.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Lr["a"]({shape:Ib(n,a,i[h].coord)}))}for(h=0;h<c.length;h++)t.add(ne["mergePath"](c[h],{style:_["i"]({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,r,a){if(r.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<r.length;u++)for(var c=0;c<r[u].length;c++)l.push(new Lr["a"]({shape:Ib(n,a,r[u][c].coord)}));t.add(ne["mergePath"](l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,r,a){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,d=-i[0].coord*h,f=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),g=e.get("clockwise"),m=1,v=i.length;m<=v;m++){var y=m===v?i[0].coord:i[m].coord,b=u++%l.length;c[b]=c[b]||[],c[b].push(new ke["a"]({shape:{cx:n.cx,cy:n.cy,r0:f,r:p,startAngle:d,endAngle:-y*h,clockwise:g},silent:!0})),d=-y*h}for(m=0;m<c.length;m++)t.add(ne["mergePath"](c[m],{style:_["i"]({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}},Pb=Eb,Nb=["axisLine","axisTickLabel","axisName"],Rb=["splitLine","splitArea","minorSplitLine"],kb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,i=this._axisGroup=new Jt["a"];this.group.add(i);var r=t.axis,a=r.polar,o=a.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=o.getExtent()[0],c=r.getExtent(),h=zb(a,t,u),d=new Wr(t,h);_["k"](Nb,d.add,d),i.add(d.getGroup()),ne["groupTransition"](n,i,t),_["k"](Rb,(function(e){t.get([e,"show"])&&!r.scale.isBlank()&&Bb[e](this.group,t,a,u,c,s,l)}),this)}},e.type="radiusAxis",e}(aa),Bb={splitLine:function(t,e,n,i,r,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<a.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new ja["a"]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[h].coord,0)}}))}for(h=0;h<c.length;h++)t.add(ne["mergePath"](c[h],{style:_["i"]({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,r,a,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var h=0;h<o[c].length;h++)u.push(new ja["a"]({shape:{cx:n.cx,cy:n.cy,r:o[c][h].coord}}));t.add(ne["mergePath"](u,{style:_["i"]({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,r,a){if(a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=a[0].coord,d=1;d<a.length;d++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new ke["a"]({shape:{cx:n.cx,cy:n.cy,r0:h,r:a[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=a[d].coord}for(d=0;d<c.length;d++)t.add(ne["mergePath"](c[d],{style:_["i"]({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function zb(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var Vb=kb;function Fb(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Gb(t,e){return e.dim+t.model.componentIndex}function Hb(t,e,n){var i={},r=Ub(_["n"](e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),o=Gb(n,a),s=Fb(t),l=r[o][s],u=l.offset,c=l.width,h=n.getOtherAxis(a),d=t.coordinateSystem.cx,f=t.coordinateSystem.cy,p=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;i[s]=i[s]||[];for(var m=e.mapDimension(h.dim),v=e.mapDimension(a.dim),y=Object(ve["c"])(e,m),_="radius"!==a.dim||!t.get("roundCap",!0),b=h.dataToCoord(0),x=0,w=e.count();x<w;x++){var O=e.get(m,x),S=e.get(v,x),T=O>=0?"p":"n",M=b;y&&(i[s][S]||(i[s][S]={p:b,n:b}),M=i[s][S][T]);var A=void 0,C=void 0,I=void 0,D=void 0;if("radius"===h.dim){var L=h.dataToCoord(O)-b,E=a.dataToCoord(S);Math.abs(L)<p&&(L=(L<0?-1:1)*p),A=M,C=M+L,I=E-u,D=I-c,y&&(i[s][S][T]=C)}else{var j=h.dataToCoord(O,_)-b,P=a.dataToCoord(S);Math.abs(j)<g&&(j=(j<0?-1:1)*g),A=P+u,C=A+c,I=M,D=M+j,y&&(i[s][S][T]=D)}e.setItemLayout(x,{cx:d,cy:f,r0:A,r:C,startAngle:-I*Math.PI/180,endAngle:-D*Math.PI/180,clockwise:I>=D})}}}))}function Ub(t){var e={};_["k"](t,(function(t,n){var i=t.getData(),r=t.coordinateSystem,a=r.getBaseAxis(),o=Gb(r,a),s=a.getExtent(),l="category"===a.type?a.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=e[o]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[o]=u;var h=Fb(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=Object(Be["p"])(t.get("barWidth"),l),f=Object(Be["p"])(t.get("barMaxWidth"),l),p=t.get("barGap"),g=t.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),f&&(c[h].maxWidth=f),null!=p&&(u.gap=p),null!=g&&(u.categoryGap=g)}));var n={};return _["k"](e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,a=Object(Be["p"])(t.categoryGap,r),o=Object(Be["p"])(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-a)/(l+(l-1)*o);u=Math.max(u,0),_["k"](i,(function(t,e){var n=t.maxWidth;n&&n<u&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),u=(s-a)/(l+(l-1)*o),u=Math.max(u,0);var c,h=0;_["k"](i,(function(t,e){t.width||(t.width=u),c=t,h+=t.width*(1+o)})),c&&(h-=c.width*o);var d=-h/2;_["k"](i,(function(t,i){n[e][i]=n[e][i]||{offset:d,width:t.width},d+=t.width*(1+o)}))})),n}var Wb=Hb,Xb={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Zb={splitNumber:5},qb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.type="polar",e}(Wi["a"]);function Yb(t){Object(i["a"])(nb),aa.registerAxisPointerClass("PolarAxisPointer",sb),t.registerCoordinateSystem("polar",Ab),t.registerComponentModel(ub),t.registerComponentView(qb),ar(t,"angle",hb,Xb),ar(t,"radius",db,Zb),t.registerComponentView(Pb),t.registerComponentView(Vb),t.registerLayout(Object(_["h"])(Wb,"bar"))}function Kb(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},a=i.position,o=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===o?u.vertical[a]:l[0],"horizontal"===o?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};r.rotation=Math.PI/2*c[o];var h={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=h[a],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),_["O"](e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var d=e.rotate;return null==d&&(d=t.get(["axisLabel","rotate"])),r.labelRotation="top"===a?-d:d,r.z2=1,r}var Qb=["axisLine","axisTickLabel","axisName"],Jb=["splitArea","splitLine"],$b=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return Object(qt["a"])(e,t),e.prototype.render=function(e,n,i,r){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new Jt["a"];var s=Kb(e),l=new Wr(e,s);_["k"](Qb,l.add,l),a.add(this._axisGroup),a.add(l.getGroup()),_["k"](Jb,(function(t){e.get([t,"show"])&&tx[t](this,this.group,this._axisGroup,e)}),this),ne["groupTransition"](o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){la(this)},e.type="singleAxis",e}(aa),tx={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var a=i.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=[],h=0,d=r.getTicksCoords({tickModel:a}),f=[],p=[],g=0;g<d.length;++g){var m=r.toGlobalCoord(d[g].coord);u?(f[0]=m,f[1]=l.y,p[0]=m,p[1]=l.y+l.height):(f[0]=l.x,f[1]=m,p[0]=l.x+l.width,p[1]=m);var v=h++%s.length;c[v]=c[v]||[],c[v].push(new Lr["a"]({subPixelOptimize:!0,shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},silent:!0}))}var y=o.getLineStyle(["color"]);for(g=0;g<c.length;++g)e.add(ne["mergePath"](c[g],{style:_["i"]({stroke:s[g%s.length]},y),silent:!0}))}},splitArea:function(t,e,n,i){sa(t,n,i,i)}},ex=$b,nx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(Xi["a"]);Object(_["K"])(nx,Yi["a"].prototype);var ix=nx,rx=function(t){function e(e,n,i,r,a){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o.position=a||"bottom",o}return Object(qt["a"])(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(gr["a"]),ax=rx,ox=["single"],sx=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=ox,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=this.dimension,r=new ax(i,sr["a"](t),[0,0],t.get("type"),t.get("position")),a="category"===r.type;r.onBand=a&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Object(_["k"])(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),sr["i"](this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=Object(ri["g"])({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){var i=lx(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=lx(e);return i===this?this.pointToData(n):null},t}();function lx(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var ux=sx;function cx(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var a=new ux(i,t,e);a.name="single_"+r,a.resize(i,e),i.coordinateSystem=a,n.push(a)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",Te["b"]).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n}var hx={create:cx,dimensions:ox},dx=hx,fx=["x","y"],px=["width","height"],gx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var a=n.axis,o=a.coordinateSystem,s=yx(o,1-vx(a)),l=o.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var c=g_(i),h=mx[u](a,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=Kb(n);b_(e,t,d,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=Kb(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=__(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,a=r.coordinateSystem,o=vx(r),s=yx(a,o),l=[t.x,t.y];l[o]+=e[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var u=yx(a,1-o),c=(u[1]+u[0])/2,h=[c,c];return h[o]=l[o],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(p_),mx={line:function(t,e,n){var i=x_([e,n[0]],[e,n[1]],vx(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:w_([e-i/2,n[0]],[i,r],vx(t))}}};function vx(t){return t.isHorizontal()?0:1}function yx(t,e){var n=t.getRect();return[n[fx[e]],n[fx[e]]+n[px[e]]]}var _x=gx,bx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.type="single",e}(Wi["a"]);function xx(t){Object(i["a"])(nb),aa.registerAxisPointerClass("SingleAxisPointer",_x),t.registerComponentView(bx),t.registerComponentView(ex),t.registerComponentModel(ix),ar(t,"single",ix,ix.defaultOption),t.registerCoordinateSystem("single",dx)}var wx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.init=function(e,n,i){var r=Object(ri["f"])(e);t.prototype.init.apply(this,arguments),Ox(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),Ox(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Xi["a"]);function Ox(t,e){var n,i=t.cellSize;n=_["t"](i)?i:t.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=_["H"]([0,1],(function(t){return Object(ri["j"])(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Object(ri["h"])(t,e,{type:"box",ignoreSize:r})}var Sx=wx,Tx=n("ef59"),Mx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,a=r.getRangeInfo(),o=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,a,i),this._renderLines(t,a,o,i),this._renderYearText(t,a,o,i),this._renderMonthText(t,s,o,i),this._renderWeekText(t,s,a,o,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),a=i.getCellWidth(),o=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new Re["a"]({shape:{x:l[0],y:l[1],width:a,height:o},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,a=t.coordinateSystem,o=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=a.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=a.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(a.getDateInfo(e)),r._firstDayPoints.push(a.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,o,i)}d(a.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),o,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),o,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new hi["a"]({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),a=[],o=0;o<7;o++){var s=i.getNextNDay(r.time,o),l=i.dataToRect([s.time],!1);a[2*s.day]=l.tl,a[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return a},e.prototype._formatterLabel=function(t,e){return Object(_["C"])(t)&&t?Object(He["g"])(t,e):Object(_["w"])(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var a=e[0],o=e[1],s=["center","bottom"];"bottom"===i?(o+=r,s=["center","top"]):"left"===i?a-=r:"right"===i?(a+=r,s=["center","top"]):o-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var a=r.get("margin"),o=r.get("position");o||(o="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=r.get("formatter"),p={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(f,p),m=new $["a"]({z2:30,style:Object(le["c"])(r,{text:g})});m.attr(this._yearTextPositionControl(m,h[o],n,o,a)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var a="left",o="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(a="center"),"start"===i&&(o="bottom")):(s+=r,e&&(o="middle"),"start"===i&&(a="right")),{x:s,y:l,align:a,verticalAlign:o}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var a=r.get("nameMap"),o=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];a&&!Object(_["C"])(a)||(a&&(e=Object(Tx["d"])(a)||e),a=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;o="start"===s?-o:o;for(var d="center"===l,f=0;f<u[c].length-1;f++){var p=u[c][f].slice(),g=this._firstDayOfMonth[f];if(d){var m=this._firstDayPoints[f];p[h]=(m[h]+u[0][f+1][h])/2}var v=r.get("formatter"),y=a[+g.m-1],b={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:y},x=this._formatterLabel(v,b),w=new $["a"]({z2:30,style:Object(_["m"])(Object(le["c"])(r,{text:x}),this._monthTextPositionControl(p,d,n,s,o))});i.add(w)}}},e.prototype._weekTextPositionControl=function(t,e,n,i,r){var a="center",o="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+i+(u?1:-1)*r[0]/2,a=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,o=u?"bottom":"top"),{x:s,y:l,align:a,verticalAlign:o}},e.prototype._renderWeekText=function(t,e,n,i,r){var a=t.getModel("dayLabel");if(a.get("show")){var o=t.coordinateSystem,s=a.get("position"),l=a.get("nameMap"),u=a.get("margin"),c=o.getFirstDayOfWeek();if(!l||Object(_["C"])(l)){l&&(e=Object(Tx["d"])(l)||e);var h=e.get(["time","dayOfWeekShort"]);l=h||Object(_["H"])(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}))}var d=o.getNextNDay(n.end.time,7-n.lweek).time,f=[o.getCellWidth(),o.getCellHeight()];u=Object(Be["p"])(u,Math.min(f[1],f[0])),"start"===s&&(d=o.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var p=0;p<7;p++){var g=o.getNextNDay(d,p),m=o.dataToRect([g.time],!1).center,v=p;v=Math.abs((p+c)%7);var y=new $["a"]({z2:30,style:Object(_["m"])(Object(le["c"])(a,{text:l[v]}),this._weekTextPositionControl(m,i,s,u,f))});r.add(y)}}},e.type="calendar",e}(Wi["a"]),Ax=Mx,Cx=864e5,Ix=function(){function t(e,n,i){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){t=Be["o"](t);var e=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,r=t.getDate(),a=r<10?"0"+r:""+r,o=t.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:e+"",m:i,d:a,day:o,time:t.getTime(),formatedDate:e+"-"+i+"-"+a,date:t}},t.prototype.getNextNDay=function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[n,7]:[7,n];_["k"]([0,1],(function(t){u(r,t)&&(a[i[t]]=r[t]*o[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=ri["g"](a,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}_["k"]([0,1],(function(t){u(r,t)||(r[t]=l[i[t]]/o[t])})),this._sw=r[0],this._sh=r[1]},t.prototype.dataToPoint=function(t,e){_["t"](t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,r=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+Cx))return[NaN,NaN];var a=n.day,o=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},t.prototype.convertToPixel=function(t,e,n){var i=Dx(e);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=Dx(e);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(_["t"](e)&&1===e.length&&(e=e[0]),_["t"](e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var a=this.getNextNDay(r,-1);t=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/Cx)-Math.floor(n[0].time/Cx)+1,r=new Date(n[0].time),a=r.getDate(),o=n[1].date.getDate();r.setDate(a+i-1);var s=r.getDate();if(s!==o){var l=r.getTime()-n[1].time>0?1:-1;while((s=r.getDate())!==o&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(s-l)}var u=Math.floor((i+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var r=7*(t-1)-i.fweek+e,a=new Date(i.start.time);return a.setDate(+i.start.d+r),this.getDateInfo(a)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(r){var a=new t(r,e,n);i.push(a),r.coordinateSystem=a})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function Dx(t){var e=t.calendarModel,n=t.seriesModel,i=e?e.coordinateSystem:n?n.coordinateSystem:null;return i}var Lx=Ix;function Ex(t){t.registerComponentModel(Sx),t.registerComponentView(Ax),t.registerCoordinateSystem("calendar",Lx)}function jx(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function Px(t,e){var n;return _["k"](e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function Nx(t,e,n){var i=_["m"]({},n),r=t[e],a=n.$action||"merge";"merge"===a?r?(_["I"](r,i,!0),Object(ri["h"])(r,i,{ignoreSize:!0}),Object(ri["c"])(n,r),Bx(n,r),Bx(n,r,"shape"),Bx(n,r,"style"),Bx(n,r,"extra"),n.clipPath=r.clipPath):t[e]=i:"replace"===a?t[e]=i:"remove"===a&&r&&(t[e]=null)}var Rx=["transition","enterFrom","leaveTo"],kx=Rx.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Bx(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?Rx:kx,r=0;r<i.length;r++){var a=i[r];null==t[a]&&null!=e[a]&&(t[a]=e[a])}}function zx(t,e){if(t&&(t.hv=e.hv=[Px(e,["left","right"]),Px(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}var Vx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return Object(qt["a"])(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,a=[];this._flatten(i,a,null);var o=Te["q"](r,a,"normalMerge"),s=this._elOptionsToUpdate=[];_["k"](o,(function(t,e){var n=t.newOption;n&&(s.push(n),jx(t,n),Nx(r,e,n),zx(r[e],n))}),this),n.elements=_["n"](r,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){_["k"](t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(Xi["a"]),Fx={path:null,compoundPath:null,group:Jt["a"],image:l["a"],text:$["a"]},Gx=Te["o"](),Hx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.init=function(){this._elMap=_["f"]()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,r=t.get("z"),a=t.get("zlevel");_["k"](e,(function(e){var o=Te["e"](e.id,null),s=null!=o?n.get(o):null,l=Te["e"](e.parentId,null),u=null!=l?n.get(l):i,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=e.textContent,f=e.textConfig;if(h&&Hv(h,c,!!f,!!d)){var p=Uv(h,c,!0);!f&&p.textConfig&&(f=e.textConfig=p.textConfig),!d&&p.textContent&&(d=p.textContent)}var g=qx(e);var m=e.$action||"merge",v="merge"===m,y="replace"===m;if(v){var _=!s,b=s;_?b=Wx(o,u,e.type,n):(b&&(Gx(b).isNew=!1),yy(b)),b&&(ty(b,g,t,{isInit:_}),Zx(b,e,r,a))}else if(y){Xx(s,e,n,t);var x=Wx(o,u,e.type,n);x&&(ty(x,g,t,{isInit:!0}),Zx(x,e,r,a))}else"remove"===m&&(ey(s,e),Xx(s,e,n,t));var w=n.get(o);if(w&&d)if(v){var O=w.getTextContent();O?O.attr(d):w.setTextContent(new $["a"](d))}else y&&w.setTextContent(new $["a"](d));if(w){var S=e.clipPath;if(S){var T=S.type,M=void 0;_=!1;if(v){var A=w.getClipPath();_=!A||Gx(A).type!==T,M=_?Ux(T):A}else y&&(_=!0,M=Ux(T));w.setClipPath(M),ty(M,S,t,{isInit:_}),_y(M,S.keyframeAnimation,t)}var C=Gx(w);w.setTextConfig(f),C.option=e,Yx(w,t,e),ne["setTooltipConfig"]({el:w,componentModel:t,itemName:w.name,itemTooltipOption:e.tooltip}),_y(w,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,a=e.getWidth(),o=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],c=Te["e"](u.id,null),h=null!=c?r.get(c):null;if(h&&h.isGroup){var d=h.parent,f=d===i,p=Gx(h),g=Gx(d);p.width=Object(Be["p"])(p.option.width,f?a:g.width)||0,p.height=Object(Be["p"])(p.option.height,f?o:g.height)||0}}for(l=n.length-1;l>=0;l--){u=n[l],c=Te["e"](u.id,null),h=null!=c?r.get(c):null;if(h){d=h.parent,g=Gx(d);var m=d===i?{width:a,height:o}:{width:g.width,height:g.height},v={},y=ri["i"](h,u,m,null,{hv:u.hv,boundingMode:u.bounding},v);if(!Gx(h).isNew&&y){for(var b=u.transition,x={},w=0;w<s.length;w++){var O=s[w],S=v[O];b&&(iy(b)||_["r"](b,O)>=0)?x[O]=S:h[O]=S}Object(ee["h"])(h,x,t,0)}else h.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){Xx(n,Gx(n).option,e,t._lastGraphicModel)})),this._elMap=_["f"]()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Wi["a"]);function Ux(t){var e=_["q"](Fx,t)?Fx[t]:ne["getShapeClass"](t);var n=new e({});return Gx(n).type=t,n}function Wx(t,e,n,i){var r=Ux(n);return e.add(r),i.set(t,r),Gx(r).id=t,Gx(r).isNew=!0,r}function Xx(t,e,n,i){var r=t&&t.parent;r&&("group"===t.type&&t.traverse((function(t){Xx(t,e,n,i)})),ny(t,e,i),n.removeKey(Gx(t).id))}function Zx(t,e,n,i){t.isGroup||_["k"]([["cursor",os["c"].prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];_["q"](e,i)?t[i]=_["P"](e[i],n[1]):null==t[i]&&(t[i]=n[1])})),_["k"](_["F"](e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=_["w"](i)?i:null}})),_["q"](e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function qx(t){return t=_["m"]({},t),_["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(ri["a"]),(function(e){delete t[e]})),t}function Yx(t,e,n){var i=Object(ie["a"])(t).eventData;t.silent||t.ignore||i||(i=Object(ie["a"])(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}function Kx(t){t.registerComponentModel(Vx),t.registerComponentView(Hx),t.registerPreprocessor((function(t){var e=t.graphic;Object(_["t"])(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var Qx=["x","y","radius","angle","single"],Jx=["cartesian2d","polar","singleAxis"];function $x(t){var e=t.get("coordinateSystem");return Object(_["r"])(Jx,e)>=0}function tw(t){return t+"Axis"}function ew(t,e){var n,i=Object(_["f"])(),r=[],a=Object(_["f"])();t.eachComponent({mainType:"dataZoom",query:e},(function(t){a.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",o)}while(n);function o(t){!a.get(t.uid)&&l(t)&&(s(t),n=!0)}function s(t){a.set(t.uid,!0),r.push(t),u(t)}function l(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}function u(t){t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}function nw(t){var e=t.ecModel,n={infoList:[],infoMap:Object(_["f"])()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(tw(t),i);if(r){var a=r.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(r)}}})),n}var iw=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),rw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Object(qt["a"])(e,t),e.prototype.init=function(t,e,n){var i=aw(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=aw(t);Object(_["I"])(this.option,t,!0),Object(_["I"])(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(_["k"])([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(_["f"])(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(_["k"])(Qx,(function(n){var i=this.getReferringComponents(tw(n),Te["a"]);if(i.specified){e=!0;var r=new iw;Object(_["k"])(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x",a=n.findComponents({mainType:r+"Axis"});o(a,r)}if(i){a=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});o(a,"single")}function o(e,n){var r=e[0];if(r){var a=new iw;if(a.add(r.componentIndex),t.set(n,a),i=!1,"x"===n||"y"===n){var o=r.getReferringComponents("grid",Te["b"]).models[0];o&&Object(_["k"])(e,(function(t){r.componentIndex!==t.componentIndex&&o===t.getReferringComponents("grid",Te["b"]).models[0]&&a.add(t.componentIndex)}))}}}i&&Object(_["k"])(Qx,(function(e){if(i){var r=n.findComponents({mainType:tw(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var a=new iw;a.add(r[0].componentIndex),t.set(e,a),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(_["k"])([["start","startValue"],["end","endValue"]],(function(i,r){var a=null!=t[i[0]],o=null!=t[i[1]];a&&!o?e[r]="percent":!a&&o?e[r]="value":n?e[r]=n[r]:a&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(tw(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){Object(_["k"])(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(tw(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(_["k"])([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(_["k"])(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],a=this._targetAxisInfoMap.get(r),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(r,a.indexList[o]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Xi["a"]);function aw(t){var e={};return Object(_["k"])(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var ow=rw,sw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.type="dataZoom.select",e}(ow),lw=sw,uw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(Wi["a"]),cw=uw,hw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.type="dataZoom.select",e}(cw),dw=hw,fw=n("538f"),pw=_["k"],gw=Be["c"],mw=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if($x(e)){var n=tw(this._dimName),i=e.getReferringComponents(n,Te["b"]).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return _["d"](this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel(),r=i.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[];pw(["start","end"],(function(i,u){var c=t[i],h=t[i+"Value"];"percent"===a[u]?(null==c&&(c=o[u]),h=r.parse(Be["l"](c,o,n))):(e=!0,h=null==h?n[u]:r.parse(h),c=Be["l"](h,n,o)),l[u]=h,s[u]=c})),gw(l),gw(s);var u=this._minMaxSpan;function c(t,e,n,i,a){var o=a?"Span":"ValueSpan";Dd(0,t,n,"all",u["min"+o],u["max"+o]);for(var s=0;s<2;s++)e[s]=Be["l"](t[s],n,i,!0),a&&(e[s]=r.parse(e[s]))}return e?c(l,s,n,o,!1):c(s,l,o,n,!0),{valueWindow:l,percentWindow:s}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=vw(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow;"none"!==r&&pw(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var s=e.getStore(),l=_["H"](i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,o=0;o<i.length;o++){var u=s.get(l[o],t),c=!isNaN(u),h=u<a[0],d=u>a[1];if(c&&!h&&!d)return!0;c&&(r=!0),h&&(e=!0),d&&(n=!0)}return r&&e&&n}))}else pw(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return o(t)?t:NaN})));else{var i={};i[n]=a,e.selectRange(i)}}));pw(i,(function(t){e.setApproximateExtent(a,t)}))}}))}function o(t){return t>=a[0]&&t<=a[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;pw(["min","max"],(function(i){var r=e.get(i+"Span"),a=e.get(i+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?r=Be["l"](n[0]+a,n,[0,100],!0):null!=r&&(a=Be["l"](r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=a}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=Be["f"](n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();function vw(t,e,n){var i=[1/0,-1/0];pw(n,(function(t){Object(sr["k"])(i,t.getData(),e)}));var r=t.getAxisModel(),a=Object(fw["a"])(r.axis.scale,r,i).calculate();return[a.min,a.max]}var yw=mw,_w={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var a=t.getComponent(tw(i),r);e(i,r,a,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,a){r.__dzAxisProxy||(r.__dzAxisProxy=new yw(e,i,a,t),n.push(r.__dzAxisProxy))}));var i=Object(_["f"])();return Object(_["k"])(n,(function(t){Object(_["k"])(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},bw=_w;function xw(t){t.registerAction("dataZoom",(function(t,e){var n=ew(e,t);Object(_["k"])(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var ww=!1;function Ow(t){ww||(ww=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,bw),xw(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function Sw(t){t.registerComponentModel(lw),t.registerComponentView(dw),Ow(t)}var Tw=function(){function t(){}return t}(),Mw={};function Aw(t,e){Mw[t]=e}function Cw(t){return Mw[t]}var Iw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;_["k"](this.option.feature,(function(t,n){var i=Cw(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),_["I"](t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Xi["a"]),Dw=Iw;function Lw(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),a={width:n.getWidth(),height:n.getHeight()},o=Object(ri["g"])(i,a,r);Object(ri["b"])(e.get("orient"),t,e.get("itemGap"),o.width,o.height),Object(ri["i"])(t,i,a,r)}function Ew(t,e){var n=He["j"](e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new Re["a"]({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),t}var jw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var a=+t.get("itemSize"),o="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),c=[];_["k"](s,(function(t,e){c.push(e)})),new Ql["a"](this._featureNames||[],c).add(h).update(h).remove(_["h"](h,null)).execute(),this._featureNames=c,Lw(r,t,n),r.add(Ew(r.getBoundingRect(),t)),o||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),o=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!_["w"](l)&&e){var c=l.style||(l.style={}),h=u["d"](e,$["a"].makeFont(c)),d=t.x+r.x,f=t.y+r.y+a,p=!1;f+h.height>n.getHeight()&&(o.position="top",p=!0);var g=p?-5-h.height:a+10;d+h.width/2>n.getWidth()?(o.position=["100%",g],c.align="right"):d-h.width/2<0&&(o.position=[0,g],c.align="left")}}))}function h(r,a){var o,u=c[r],h=c[a],f=s[u],p=new Er["a"](f,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===u&&(f.title=i.newTitle),u&&!h){if(Pw(u))o={onclick:p.option.onclick,featureName:u};else{var g=Cw(u);if(!g)return;o=new g}l[u]=o}else if(o=l[h],!o)return;o.uid=Object(bn["c"])("toolbox-feature"),o.model=p,o.ecModel=e,o.api=n;var m=o instanceof Tw;u||!h?!p.get("show")||m&&o.unusable?m&&o.remove&&o.remove(e,n):(d(p,o,u),p.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?re["r"]:re["C"])(i[t])},o instanceof Tw&&o.render&&o.render(p,e,n,i)):m&&o.dispose&&o.dispose(e,n)}function d(i,s,l){var u,c,h=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),f=s instanceof Tw&&s.getIcons?s.getIcons():i.get("icon"),p=i.get("title")||{};_["C"](f)?(u={},u[l]=f):u=f,_["C"](p)?(c={},c[l]=p):c=p;var g=i.iconPaths={};_["k"](u,(function(l,u){var f=ne["createIcon"](l,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(h.getItemStyle());var p=f.ensureState("emphasis");p.style=d.getItemStyle();var m=new $["a"]({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null},ignore:!0});f.setTextContent(m),ne["setTooltipConfig"]({el:f,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),f.__title=c[u],f.on("mouseover",(function(){var e=d.getItemStyle(),i=o?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";m.setStyle({fill:d.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),f.setTextConfig({position:d.get("textPosition")||i}),m.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),m.hide()})),("emphasis"===i.get(["iconStatus",u])?re["r"]:re["C"])(f),r.add(f),f.on("click",_["c"](s.onclick,s,e,n,u)),g[u]=f}))}},e.prototype.updateView=function(t,e,n,i){_["k"](this._features,(function(t){t instanceof Tw&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){_["k"](this._features,(function(n){n instanceof Tw&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){_["k"](this._features,(function(n){n instanceof Tw&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(Wi["a"]);function Pw(t){return 0===t.indexOf("my")}var Nw=jw,Rw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),a=r?"svg":n.get("type",!0)||"png",o=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=L_["a"].browser;if(Object(_["w"])(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+a,l.target="_blank",l.href=o;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||r){var c=o.split(","),h=c[0].indexOf("base64")>-1,d=r?decodeURIComponent(c[1]):c[1];h&&(d=window.atob(d));var f=i+"."+a;if(window.navigator.msSaveOrOpenBlob){var p=d.length,g=new Uint8Array(p);while(p--)g[p]=d.charCodeAt(p);var m=new Blob([g]);window.navigator.msSaveOrOpenBlob(m,f)}else{var v=document.createElement("iframe");document.body.appendChild(v);var y=v.contentWindow,b=y.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),y.focus(),b.execCommand("SaveAs",!0,f),document.body.removeChild(v)}}else{var x=n.get("lang"),w='<body style="margin:0;"><img src="'+o+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',O=window.open();O.document.write(w),O.document.title=i}},e.getDefaultOption=function(t){var e={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(Tw),kw=Rw,Bw="__ec_magicType_stack__",zw=[["line","bar"],["stack"]],Vw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return _["k"](t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){var e={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(Fw[n]){var a,o={series:[]},s=function(t){var e=t.subType,r=t.id,a=Fw[n](e,r,t,i);a&&(_["i"](a,t.option),o.series.push(a));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",h=t.getReferringComponents(c,Te["b"]).models[0],d=h.componentIndex;o[c]=o[c]||[];for(var f=0;f<=d;f++)o[c][d]=o[c][d]||{};o[c][d].boundaryGap="bar"===n}}};_["k"](zw,(function(t){_["r"](t,n)>=0&&_["k"](t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},s);var l=n;"stack"===n&&(a=_["I"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),e.dispatchAction({type:"changeMagicType",currentType:l,newOption:o,newTitle:a,featureName:"magicType"})}},e}(Tw),Fw={line:function(t,e,n,i){if("bar"===t)return _["I"]({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return _["I"]({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===Bw;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),_["I"]({id:e,stack:r?"":Bw},i.get(["option","stack"])||{},!0)}};Xa["e"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var Gw=Vw,Hw=new Array(60).join("-"),Uw="\t";function Ww(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var a=r.getBaseAxis();if("category"===a.type){var o=a.dim+"_"+a.index;e[o]||(e[o]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},i.push({axisDim:a.dim,axisIndex:a.index})),e[o].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function Xw(t){var e=[];return _["k"](t,(function(t,n){var i=t.categoryAxis,r=t.valueAxis,a=r.dim,o=[" "].concat(_["H"](t.series,(function(t){return t.name}))),s=[i.model.getCategories()];_["k"](t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(a),(function(t){return t})))}));for(var l=[o.join(Uw)],u=0;u<s[0].length;u++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][u]);l.push(c.join(Uw))}e.push(l.join("\n"))})),e.join("\n\n"+Hw+"\n\n")}function Zw(t){return _["H"](t,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],a=e.getName(r),o=0;o<t-1;o++)i[o]=arguments[o];n.push((a?a+Uw:"")+i.join(Uw))})),n.join("\n")})).join("\n\n"+Hw+"\n\n")}function qw(t){var e=Ww(t);return{value:_["n"]([Xw(e.seriesGroupByCategoryAxis),Zw(e.other)],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+Hw+"\n\n"),meta:e.meta}}function Yw(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Kw(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(Uw)>=0)return!0}var Qw=new RegExp("["+Uw+"]+","g");function Jw(t){for(var e=t.split(/\n+/g),n=Yw(e.shift()).split(Qw),i=[],r=_["H"](n,(function(t){return{name:t,data:[]}})),a=0;a<e.length;a++){var o=Yw(e[a]).split(Qw);i.push(o.shift());for(var s=0;s<o.length;s++)r[s]&&(r[s].data[a]=o[s])}return{series:r,categories:i}}function $w(t){for(var e=t.split(/\n+/g),n=Yw(e.shift()),i=[],r=0;r<e.length;r++){var a=Yw(e[r]);if(a){var o=a.split(Qw),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}function tO(t,e){var n=t.split(new RegExp("\n*"+Hw+"\n*","g")),i={series:[]};return _["k"](n,(function(t,n){if(Kw(t)){var r=Jw(t),a=e[n],o=a.axisDim+"Axis";a&&(i[o]=i[o]||[],i[o][a.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=$w(t);i.series.push(r)}})),i}var eO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var a=document.createElement("h4"),o=i.get("lang")||[];a.innerHTML=o[0]||i.get("title"),a.style.cssText="margin:10px 20px",a.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=i.get("optionToContent"),c=i.get("contentToOption"),h=qw(t);if(_["w"](u)){var d=u(e.getOption());_["C"](d)?s.innerHTML=d:_["v"](d)&&s.appendChild(d)}else{l.readOnly=i.get("readOnly");var f=l.style;f.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",f.color=i.get("textColor"),f.borderColor=i.get("textareaBorderColor"),f.backgroundColor=i.get("textareaColor"),l.value=h.value,s.appendChild(l)}var p=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function x(){n.removeChild(r),b._dom=null}Object(Wa["a"])(v,"click",x),Object(Wa["a"])(y,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)x();else{var t;try{t=_["w"](c)?c(s,e.getOption()):tO(l.value,p)}catch(n){throw x(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),x()}})),v.innerHTML=o[1],y.innerHTML=o[2],y.style.cssText=v.style.cssText=m,!i.get("readOnly")&&g.appendChild(y),g.appendChild(v),r.appendChild(a),r.appendChild(s),r.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){var e={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return e},e}(Tw);function nO(t,e){return _["H"](t,(function(t,n){var i=e&&e[n];if(_["A"](i)&&!_["t"](i)){var r=_["A"](t)&&!_["t"](t);r||(t={value:t});var a=null!=i.name&&null==t.name;return t=_["i"](t,i),a&&delete t.name,t}return t}))}Xa["e"]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];_["k"](t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");n.push({name:t.name,data:nO(t.data,r)})}else n.push(_["m"]({type:"scatter"},t))})),e.mergeOption(_["i"]({series:n},t.newOption))}));var iO=eO,rO=_["k"],aO=Object(Te["o"])();function oO(t,e){var n=cO(t);rO(e,(function(e,i){for(var r=n.length-1;r>=0;r--){var a=n[r];if(a[i])break}if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var s=o.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(e)}function sO(t){var e=cO(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return rO(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n],t){i[n]=t;break}})),i}function lO(t){aO(t).snapshots=null}function uO(t){return cO(t).length}function cO(t){var e=aO(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var hO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.prototype.onclick=function(t,e){lO(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(Tw);Xa["e"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var dO=hO,fO=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],pO=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=mO(e,t);Object(_["k"])(vO,(function(t,e){(!n||!n.include||Object(_["r"])(n.include,e)>=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=bO[t.brushType](0,n,e);t.__rangeOffset={offset:wO[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(_["k"])(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(_["k"])(i.coordSyses,(function(i){var r=bO[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(_["k"])(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=bO[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?wO[t.brushType](i.values,r.offset,SO(i.xyMinMax,r.xyMinMax)):i.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(_["H"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Zf(i),isTargetByCursor:Yf(i,t,n.coordSysModel),getLinearBrushOtherExtent:qf(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&Object(_["r"])(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=mO(e,t),r=0;r<n.length;r++){var a=n[r],o=t.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<yO.length;s++)if(yO[s](i,a))return a}return!0},t}();function gO(t){return t[0]>t[1]&&t.reverse(),t}function mO(t,e){return Object(Te["s"])(t,e,{includeMainTypes:fO})}var vO={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,a=Object(_["f"])(),o={},s={};(n||i||r)&&(Object(_["k"])(n,(function(t){var e=t.axis.grid.model;a.set(e.id,e),o[e.id]=!0})),Object(_["k"])(i,(function(t){var e=t.axis.grid.model;a.set(e.id,e),s[e.id]=!0})),Object(_["k"])(r,(function(t){a.set(t.id,t),o[t.id]=!0,s[t.id]=!0})),a.each((function(t){var r=t.coordinateSystem,a=[];Object(_["k"])(r.getCartesians(),(function(t,e){(Object(_["r"])(n,t.getAxis("x").model)>=0||Object(_["r"])(i,t.getAxis("y").model)>=0)&&a.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:_O.grid,xAxisDeclared:o[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Object(_["k"])(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:_O.geo})}))}},yO=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],_O={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(ne["getTransform"](t)),e}},bO={lineX:Object(_["h"])(xO,0),lineY:Object(_["h"])(xO,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),a=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),o=[gO([r[0],a[0]]),gO([r[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],a=Object(_["H"])(n,(function(n){var a=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],a[0]),r[1][0]=Math.min(r[1][0],a[1]),r[0][1]=Math.max(r[0][1],a[0]),r[1][1]=Math.max(r[1][1],a[1]),a}));return{values:a,xyMinMax:r}}};function xO(t,e,n,i){var r=n.getAxis(["x","y"][t]),a=gO(Object(_["H"])([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),o=[];return o[t]=a,o[1-t]=[NaN,NaN],{values:a,xyMinMax:o}}var wO={lineX:Object(_["h"])(OO,0),lineY:Object(_["h"])(OO,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(_["H"])(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function OO(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function SO(t,e){var n=TO(t),i=TO(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function TO(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var MO=pO,AO=n("2f1f"),CO=_["k"],IO=Object(Te["p"])("toolbox-dataZoom_"),DO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new Xf(n.getZr()),this._brushController.on("brush",_["c"](this._onBrush,this)).mount()),PO(t,e,this,i,n),jO(t,e)},e.prototype.onclick=function(t,e,n){LO[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new MO(EO(this.model),i,{include:["grid"]});r.matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(a("x",n,e[0]),a("y",n,e[1])):a({lineX:"x",lineY:"y"}[i],n,e)}})),oO(i,n),this._dispatchZoomAction(n)}function a(t,e,r){var a=e.getAxis(t),s=a.model,l=o(t,s,i),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=Dd(0,r.slice(),a.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function o(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(t,e.componentIndex);r&&(i=n)})),i}},e.prototype._dispatchZoomAction=function(t){var e=[];CO(t,(function(t,n){e.push(_["d"](t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(Tw),LO={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(sO(this.ecModel))}};function EO(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function jO(t,e){t.setIconStatus("back",uO(e)>1?"emphasis":"normal")}function PO(t,e,n,i,r){var a=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(a="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var o=new MO(EO(t),e,{include:["grid"]}),s=o.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!a||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}Object(AO["b"])("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],a=EO(i),o=Object(Te["s"])(t,a);return CO(o.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),CO(o.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),r}function s(t,e,n){var a=t.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:IO+e+a};o[n]=a,r.push(o)}}));var NO=DO;function RO(t){t.registerComponentModel(Dw),t.registerComponentView(Nw),Aw("saveAsImage",kw),Aw("magicType",Gw),Aw("dataView",iO),Aw("dataZoom",NO),Aw("restore",dO),Object(i["a"])(Sw)}var kO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Xi["a"]),BO=kO,zO=n("65ed");function VO(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function FO(t){if(L_["a"].domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var GO=FO(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),HO=FO(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function UO(t,e){if(!t)return e;e=Object(He["k"])(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function WO(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var XO=UO(HO,"transition"),ZO=UO(GO,"transform"),qO="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(L_["a"].transform3dSupported?"will-change:transform;":"");function YO(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function KO(t,e,n){if(!Object(_["C"])(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=Object(He["c"])(e);var a,o=YO(n),s=Math.max(1.5*Math.round(r),6),l="",u=ZO+":";Object(_["r"])(["left","right"],o)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(a="left"===o?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(a="top"===o?225:45)+"deg)");var c=a*Math.PI/180,h=s+r,d=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),f=Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-h)/2))/100;l+=";"+o+":-"+f+"px";var p=e+" solid "+r+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+p,"border-right:"+p,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function QO(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=L_["a"].transformSupported?","+ZO+i:",left"+i+",top"+i),XO+":"+r}function JO(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!L_["a"].transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var a=L_["a"].transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+r+(a?",0":"")+")";return n?"top:0;left:0;"+ZO+":"+o+";":[["top",0],["left",0],[GO,o]]}function $O(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,o=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&a&&e.push("text-shadow:"+o+"px "+s+"px "+a+"px "+r),Object(_["k"])(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function tS(t,e,n){var i=[],r=t.get("transitionDuration"),a=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=Object(Ma["d"])(t,"html"),d=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+d),e&&r&&i.push(QO(r,n)),a&&i.push("background-color:"+a),Object(_["k"])(["width","color","radius"],(function(e){var n="border-"+e,r=Object(He["k"])(n),a=t.get(r);null!=a&&i.push(n+":"+a+("color"===e?"":"px"))})),i.push($O(c)),null!=h&&i.push("padding:"+Object(He["j"])(h).join("px ")+"px"),i.join(";")+";"}function eS(t,e,n,i,r){var a=e&&e.painter;if(n){var o=a&&a.getViewportRoot();o&&Object(zO["c"])(t,o,document.body,i,r)}else{t[0]=i,t[1]=r;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var nS=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,L_["a"].wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),a=this._appendToBody=n&&n.appendToBody;eS(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),a?document.body.appendChild(i):t.appendChild(i),this._container=t;var o=this;i.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!o._enterable){var e=r.handler,n=r.painter.getViewportRoot();Object(Wa["e"])(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=WO(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=qO+tS(t,!this._firstShow,this._longHide)+JO(r[0],r[1],!0)+"border-color:"+Object(He["c"])(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var a=this.el;if(null!=t){var o="";if(Object(_["C"])(r)&&"item"===n.get("trigger")&&!VO(n)&&(o=KO(n,i,r)),Object(_["C"])(t))a.innerHTML=t+o;else if(t){a.innerHTML="",Object(_["t"])(t)||(t=[t]);for(var s=0;s<t.length;s++)Object(_["v"])(t[s])&&t[s].parentNode!==a&&a.appendChild(t[s]);if(o&&a.childNodes.length){var l=document.createElement("div");l.innerHTML=o,a.appendChild(l)}}}else a.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(eS(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,r=JO(n[0],n[1]);Object(_["k"])(r,(function(t){i[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",L_["a"].transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(_["c"])(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),iS=nS,rS=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),sS(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var a=this;_["A"](t)&&Object(Su["c"])(""),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new $["a"]({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:o.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Object(Ma["d"])(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),_["k"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){a.el.style[t]=n.get(t)})),_["k"](["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){a.el.style[t]=o.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=oS(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;sS(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,a=aS(r.borderWidth||0),o=oS(r);n.x=t+a+o.left,n.y=e+a+o.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_["c"](this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function aS(t){return Math.max(0,t)}function oS(t){var e=aS(t.shadowBlur||0),n=aS(t.shadowOffsetX||0),i=aS(t.shadowOffsetY||0);return{left:aS(e-n),right:aS(e+n),top:aS(e-i),bottom:aS(e+i)}}function sS(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var lS=rS,uS=n("f876"),cS=n("38a2"),hS=new Re["a"]({shape:{x:-1,y:-1,width:2,height:2}}),dS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.init=function(t,e){if(!L_["a"].node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=Object(Te["i"])(n.get("renderMode"));this._tooltipContent="richText"===i?new lS(e):new iS(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!L_["a"].node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Object(On["b"])(this,"_updatePosition",50,"fixRate"):Object(On["a"])(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");P_("itemTooltip",this._api,Object(_["c"])((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!L_["a"].node&&n.getDom()){var r=pS(i,n);this._ticket="";var a=i.dataByCoordSys,o=_S(i,e,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=hS;l.x=i.x,l.y=i.y,l.update(),Object(ie["a"])(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:a,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=H_(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(pS(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,a=i.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=o){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),u=fS([l.getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:i.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var a,o;this._lastDataByCoordSys=null,Object(Zs["a"])(n,(function(t){return null!=Object(ie["a"])(t).dataIndex?(a=t,!0):null!=Object(ie["a"])(t).tooltipConfig?(o=t,!0):void 0}),!0),a?this._showSeriesItemTooltip(t,a,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(_["c"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],a=fS([e.tooltipOption],i),o=this._renderMode,s=[],l=Object(Ma["c"])("section",{blocks:[],noHeader:!0}),u=[],c=new Ma["a"];Object(_["k"])(t,(function(t){Object(_["k"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var a=y_(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=Object(Ma["c"])("section",{header:a,noHeader:!Object(_["T"])(a),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(_["k"])(t.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=d.getDataParams(f);if(!(p.dataIndex<0)){p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=sr["c"](e.axis,{value:r}),p.axisValueLabel=a,p.marker=c.makeTooltipMarker("item",Object(He["c"])(p.color),o);var g=Object(cS["b"])(d.formatTooltip(f,!0,null)),m=g.frag;if(m){var v=fS([d],i).get("valueFormatter");h.blocks.push(v?Object(_["m"])({valueFormatter:v},m):m)}g.text&&u.push(g.text),s.push(p)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,d=a.get("order"),f=Object(Ma["b"])(l,c,o,d,n.get("useUTC"),a.get("textStyle"));f&&u.unshift(f);var p="richText"===o?"\n\n":"<br/>",g=u.join(p);this._showOrMove(a,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(a,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(a,g,s,Math.random()+"",r[0],r[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Object(ie["a"])(e),a=r.seriesIndex,o=i.getSeriesByIndex(a),s=r.dataModel||o,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,f=fS([c.getItemModel(l),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=f.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,u),m=new Ma["a"];g.marker=m.makeTooltipMarker("item",Object(He["c"])(g.color),h);var v=Object(cS["b"])(s.formatTooltip(l,!1,u)),y=f.get("order"),b=f.get("valueFormatter"),x=v.frag,w=x?Object(Ma["b"])(b?Object(_["m"])({valueFormatter:b},x):x,m,h,y,i.get("useUTC"),f.get("textStyle")):v.text,O="item_"+s.name+"_"+l;this._showOrMove(f,(function(){this._showTooltipContent(f,w,g,O,t.offsetX,t.offsetY,t.position,t.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:a,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=Object(ie["a"])(e),r=i.tooltipConfig,a=r.option||{};if(Object(_["C"])(a)){var o=a;a={content:o,formatter:o}}var s=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:a.content});var u=t.positionDefault,c=fS(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),d=Math.random()+"",f=new Ma["a"];this._showOrMove(c,(function(){var n=Object(_["d"])(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,d,t.offsetX,t.offsetY,t.position,e,f)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,a,o,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");o=o||t.get("position");var h=e,d=this._getNearestPoint([r,a],n,t.get("trigger"),t.get("borderColor")),f=d.color;if(c)if(Object(_["C"])(c)){var p=t.ecModel.get("useUTC"),g=Object(_["t"])(n)?n[0]:n,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,m&&(h=Object(uS["h"])(g.axisValue,h,p)),h=Object(He["f"])(h,n,!0)}else if(Object(_["w"])(c)){var v=Object(_["c"])((function(e,i){e===this._ticket&&(u.setContent(i,l,t,f,o),this._updatePosition(t,o,r,a,u,n,s))}),this);this._ticket=i,h=c(n,i,v)}else h=c;u.setContent(h,l,t,f,o),u.show(t,f),this._updatePosition(t,o,r,a,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(_["t"])(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(_["t"])(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,a,o){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=o&&o.getBoundingRect().clone();if(o&&d.applyTransform(o.transform),Object(_["w"])(e)&&(e=e([n,i],a,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),Object(_["t"])(e))n=Object(Be["p"])(e[0],s),i=Object(Be["p"])(e[1],l);else if(Object(_["A"])(e)){var f=e;f.width=u[0],f.height=u[1];var p=Object(ri["g"])(f,{width:s,height:l});n=p.x,i=p.y,c=null,h=null}else if(Object(_["C"])(e)&&o){var g=vS(e,d,u,t.get("borderWidth"));n=g[0],i=g[1]}else{g=gS(n,i,r,s,l,c?null:20,h?null:20);n=g[0],i=g[1]}if(c&&(n-=yS(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=yS(h)?u[1]/2:"bottom"===h?u[1]:0),VO(t)){g=mS(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Object(_["k"])(n,(function(n,a){var o=n.dataByAxis||[],s=t[a]||{},l=s.dataByAxis||[];r=r&&o.length===l.length,r&&Object(_["k"])(o,(function(t,n){var a=l[n]||{},o=t.seriesDataIndices||[],s=a.seriesDataIndices||[];r=r&&t.value===a.value&&t.axisType===a.axisType&&t.axisId===a.axisId&&o.length===s.length,r&&Object(_["k"])(o,(function(t,e){var n=s[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&Object(_["k"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,a=e[n],o=i[n];a&&o&&o.data!==a.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!L_["a"].node&&e.getDom()&&(Object(On["a"])(this,"_updatePosition"),this._tooltipContent.dispose(),V_("itemTooltip",e))},e.type="tooltip",e}(Wi["a"]);function fS(t,e,n){var i,r=e.ecModel;n?(i=new Er["a"](n,r,r),i=new Er["a"](e.option,i,r)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Er["a"]&&(o=o.get("tooltip",!0)),Object(_["C"])(o)&&(o={formatter:o}),o&&(i=new Er["a"](o,i,r)))}return i}function pS(t,e){return t.dispatchAction||Object(_["c"])(e.dispatchAction,e)}function gS(t,e,n,i,r,a,o){var s=n.getSize(),l=s[0],u=s[1];return null!=a&&(t+l+a+2>i?t-=l+a:t+=a),null!=o&&(e+u+o>r?e-=u+o:e+=o),[t,e]}function mS(t,e,n,i,r){var a=n.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function vS(t,e,n,i){var r=n[0],a=n[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-a/2;break;case"top":s=e.x+u/2-r/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+o;break;case"left":s=e.x-r-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function yS(t){return"center"===t||"middle"===t}function _S(t,e,n){var i=Object(Te["t"])(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var a=Object(Te["v"])(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s,l=n.getViewOfComponentModel(o);return l.group.traverse((function(e){var n=Object(ie["a"])(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:r,componentIndex:o.componentIndex,el:s}:void 0}}}var bS=dS;function xS(t){Object(i["a"])(nb),t.registerComponentModel(BO),t.registerComponentView(bS),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},_["L"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},_["L"])}var wS=["rect","polygon","keep","clear"];function OS(t,e){var n=Object(Te["r"])(t?t.brush:[]);if(n.length){var i=[];_["k"](n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;_["t"](r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var a=r.feature||(r.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,i),SS(s),e&&!s.length&&s.push.apply(s,wS)}}function SS(t){var e={};_["k"](t,(function(t){e[t]=1})),t.length=0,_["k"](e,(function(e,n){t.push(n)}))}var TS=n("0924"),MS=_["k"];function AS(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function CS(t,e,n){var i={};return MS(e,(function(e){var a=i[e]=r();MS(t[e],(function(t,i){if(Gu.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),a[i]=new Gu(r),"opacity"===i&&(r=_["d"](r),r.type="colorAlpha",a.__hidden.__alphaForOpacity=new Gu(r))}}))})),i;function r(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function IS(t,e,n){var i;_["k"](n,(function(t){e.hasOwnProperty(t)&&AS(e[t])&&(i=!0)})),i&&_["k"](n,(function(n){e.hasOwnProperty(n)&&AS(e[n])?t[n]=_["d"](e[n]):delete t[n]}))}function DS(t,e,n,i,r,a){var o,s={};function l(t){return Object(TS["a"])(n,o,t)}function u(t,e){Object(TS["c"])(n,o,t,e)}function c(t,c){o=null==a?t:c;var h=n.getRawDataItem(o);if(!h||!1!==h.visualMap)for(var d=i.call(r,t),f=e[d],p=s[d],g=0,m=p.length;g<m;g++){var v=p[g];f[v]&&f[v].applyVisual(t,l,u)}}_["k"](t,(function(t){var n=Gu.prepareVisualTypes(e[t]);s[t]=n})),null==a?n.each(c):n.each([a],c)}function LS(t,e,n,i){var r={};return _["k"](t,(function(t){var n=Gu.prepareVisualTypes(e[t]);r[t]=n})),{progress:function(t,a){var o,s;function l(t){return Object(TS["a"])(a,s,t)}function u(t,e){Object(TS["c"])(a,s,t,e)}null!=i&&(o=a.getDimensionIndex(i));var c=a.getStore();while(null!=(s=t.next())){var h=a.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var d=null!=i?c.get(o,s):s,f=n(d),p=e[f],g=r[f],m=0,v=g.length;m<v;m++){var y=g[m];p[y]&&p[y].applyVisual(d,l,u)}}}}}var ES=n("0655");function jS(t){var e=t.brushType,n={point:function(i){return PS[e].point(i,n,t)},rect:function(i){return PS[e].rect(i,n,t)}};return n}var PS={lineX:NS(0),lineY:NS(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&ES["a"](n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,a=t.y,o=t.width,s=t.height,l=i[0];return!!(ES["a"](i,r,a)||ES["a"](i,r+o,a)||ES["a"](i,r,a+s)||ES["a"](i,r+o,a+s)||ki["a"].create(t).contain(l[0],l[1])||Object(ne["linePolygonIntersect"])(r,a,r+o,a,i)||Object(ne["linePolygonIntersect"])(r,a,r,a+s,i)||Object(ne["linePolygonIntersect"])(r+o,a,r+o,a+s,i)||Object(ne["linePolygonIntersect"])(r,a+s,r+o,a+s,i))||void 0}}};function NS(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range,a=e[t];return RS(a,r)}},rect:function(i,r,a){if(i){var o=a.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),RS(s[0],o)||RS(s[1],o)||RS(o[0],s)||RS(o[1],s)}}}}function RS(t,e){return e[0]<=t&&t<=e[1]}var kS=["inBrush","outOfBrush"],BS="__ecBrushSelect",zS="__ecInBrushSelectEvent";function VS(t){t.eachComponent({mainType:"brush"},(function(e){var n=e.brushTargetManager=new MO(e.option,t);n.setInputRanges(e.areas,t)}))}function FS(t,e,n){var i,r,a=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),VS(t),t.eachComponent({mainType:"brush"},(function(e,n){var o={brushId:e.id,brushIndex:n,brushName:e.name,areas:_["d"](e.areas),selected:[]};a.push(o);var s=e.option,l=s.brushLink,u=[],c=[],h=[],d=!1;n||(i=s.throttleType,r=s.throttleDelay);var f=_["H"](e.areas,(function(t){var e=XS[t.brushType],n=_["i"]({boundingRect:e?e(t):void 0},t);return n.selectors=jS(n),n})),p=CS(e.option,kS,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!u[t]}function m(t){return!!t.length}function v(t,e){var n=t.coordinateSystem;d=d||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}function y(n,i,r){if(n.brushSelector&&!WS(e,i)&&(_["k"](f,(function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),d=d||m(r)})),g(i)&&m(r))){var a=n.getData();a.each((function(t){US(n,r,a,t)&&(c[t]=1)}))}}_["t"](l)&&_["k"](l,(function(t){u[t]=1})),t.eachSeries((function(t,e){var n=h[e]=[];"parallel"===t.subType?v(t,e):y(t,e,n)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};o.selected.push(n);var i=h[e],r=t.getData(),a=g(e)?function(t){return c[t]?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return US(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?d:m(i))&&DS(kS,p,r,a)}))})),GS(e,i,r,a,n)}function GS(t,e,n,i,r){if(r){var a=t.getZr();if(!a[zS]){a[BS]||(a[BS]=HS);var o=On["b"](a,BS,n,e);o(t,i)}}}function HS(t,e){if(!t.isDisposed()){var n=t.getZr();n[zS]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[zS]=!1}}function US(t,e,n,i){for(var r=0,a=e.length;r<a;r++){var o=e[r];if(t.brushSelector(i,n,o.selectors,o))return!0}}function WS(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(_["t"](n)?_["r"](n,e)<0:e!==n)}var XS={rect:function(t){return ZS(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var a=n[i];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&ZS(e)}};function ZS(t){return new ki["a"](t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var qS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Xf(e.getZr())).on("brush",_["c"](this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){VS(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:_["d"](n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:_["d"](n),$from:e})},e.type="brush",e}(Wi["a"]),YS=qS,KS="#ddd",QS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return Object(qt["a"])(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&IS(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:KS},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=_["H"](t,(function(t){return JS(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=JS(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Xi["a"]);function JS(t,e){return _["I"]({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Er["a"](t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var $S=QS,tT=["rect","polygon","lineX","lineY","keep","clear"],eT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){var i,r,a;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",a=a||!!t.areas.length})),this._brushType=i,this._brushMode=r,_["k"](t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?a:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return _["k"](t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){var e={show:!0,type:tT.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(Tw),nT=eT;function iT(t){t.registerComponentView(YS),t.registerComponentModel($S),t.registerPreprocessor(OS),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,FS),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},_["L"]),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},_["L"]),Aw("brush",nT)}var rT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(qt["a"])(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Xi["a"]),aT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),a=t.getModel("subtextStyle"),o=t.get("textAlign"),s=_["P"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new $["a"]({style:Object(le["c"])(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new $["a"]({style:Object(le["c"])(a,{text:c,fill:a.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",(function(){Object(He["l"])(d,"_"+t.get("target"))})),f&&h.on("click",(function(){Object(He["l"])(f,"_"+t.get("subtarget"))})),Object(ie["a"])(l).eventData=Object(ie["a"])(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=Object(ri["g"])(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));o||(o=t.get("left")||t.get("right"),"middle"===o&&(o="center"),"right"===o?v.x+=v.width:"center"===o&&(v.x+=v.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var y={align:o,verticalAlign:s};l.setStyle(y),h.setStyle(y),g=i.getBoundingRect();var b=v.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new Re["a"]({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(Wi["a"]);function oT(t){t.registerComponentModel(rT),t.registerComponentView(aT)}var sT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return Object(qt["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],Object(_["k"])(n,(function(e,n){var i,a=Object(Te["e"])(Object(Te["h"])(e),"");Object(_["A"])(e)?(i=Object(_["d"])(e),i.value=n):i=n,t.push(i),r.push(a)}))):t=n;var a={category:"ordinal",time:"time",value:"number"}[i]||"number",o=this._data=new Mi["a"]([{name:"value",type:a}],this);o.initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Xi["a"]),lT=sT,uT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.type="timeline.slider",e.defaultOption=Object(bn["d"])(lT.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(lT);Object(_["K"])(uT,cS["a"].prototype);var cT=uT,hT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.type="timeline",e}(Wi["a"]),dT=hT,fT=function(t){function e(e,n,i,r){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a}return Object(qt["a"])(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(gr["a"]),pT=fT,gT=n("18c0"),mT=n("216a"),vT=Math.PI,yT=Object(Te["o"])(),_T=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),a=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){var e=o.scale.getLabel({value:t});return Object(Ma["c"])("nameValue",{noName:!0,value:e})},Object(_["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,o,t)}),this),this._renderAxisLabel(i,a,o,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i=t.get(["label","position"]),r=t.get("orient"),a=xT(t,e);n=null==i||"auto"===i?"horizontal"===r?a.y+a.height/2<e.getHeight()/2?"-":"+":a.x+a.width/2<e.getWidth()/2?"+":"-":Object(_["C"])(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][i]:i;var o,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:vT/2},d="vertical"===r?a.height:a.width,f=t.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,m=p?f.get("itemGap"):0,v=g+m,y=t.get(["label","rotate"])||0;y=y*vT/180;var b=f.get("position",!0),x=p&&f.get("showPlayBtn",!0),w=p&&f.get("showPrevBtn",!0),O=p&&f.get("showNextBtn",!0),S=0,T=d;"left"===b||"bottom"===b?(x&&(o=[0,0],S+=v),w&&(s=[S,0],S+=v),O&&(l=[T-g,0],T-=v)):(x&&(o=[T-g,0],T-=v),w&&(s=[0,0],S+=v),O&&(l=[T-g,0],T-=v));var M=[S,T];return t.get("inverse")&&M.reverse(),{viewRect:a,mainLength:d,orient:r,rotation:h[r],labelRotation:y,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[r],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[r],playPosition:o,prevBtnPosition:s,nextBtnPosition:l,axisExtent:M,controlSize:g,controlGap:m}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var a=ur["c"](),o=r.x,s=r.y+r.height;ur["i"](a,a,[-o,-s]),ur["g"](a,a,-vT/2),ur["i"](a,a,[o,s]),r=r.clone(),r.applyTransform(a)}var l=m(r),u=m(n.getBoundingRect()),c=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var f=t.labelPosOpt;if(null==f||Object(_["C"])(f)){var p="+"===f?0:1;v(h,u,l,1,p),v(d,c,l,1,1-p)}else{p=f>=0?0:1;v(h,u,l,1,p),d[1]=h[1]+f}function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=bT(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var a=n.getDataExtent("value");r.setExtent(a[0],a[1]),r.calcNiceTicks();var o=new pT("value",r,t.axisExtent,i);return o.model=e,o},e.prototype._createGroup=function(t){var e=this[t]=new Jt["a"];return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var a=new Lr["a"]({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(_["m"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(a);var o=this._progressLine=new Lr["a"]({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Object(_["i"])({lineCap:"round",lineWidth:a.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(o)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,a=i.getData(),o=n.scale.getTicks();this._tickSymbols=[],Object(_["k"])(o,(function(t){var o=n.dataToCoord(t.value),s=a.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:o,y:0,onclick:Object(_["c"])(r._changeTimeline,r,t.value)},d=OT(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),Object(re["o"])(d);var f=Object(ie["a"])(d);s.get("tooltip")?(f.dataIndex=t.value,f.dataModel=i):f.dataIndex=f.dataModel=null,r._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this,a=n.getLabelModel();if(a.get("show")){var o=i.getData(),s=n.getViewLabels();this._tickLabels=[],Object(_["k"])(s,(function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new $["a"]({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(_["c"])(r._changeTimeline,r,a),silent:!1,style:Object(le["c"])(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=Object(le["c"])(u),d.ensureState("progress").style=Object(le["c"])(c),e.add(d),Object(re["o"])(d),yT(d).dataIndex=a,r._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,a=t.rotation,o=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),c=i.get("inverse",!0);function h(t,n,l,c){if(t){var h=Object(u["g"])(Object(_["P"])(i.get(["controlStyle",n+"BtnSize"]),r),r),d=[0,-h/2,h,h],f=wT(i,n+"Icon",d,{x:t[0],y:t[1],originX:r/2,originY:0,rotation:c?-a:0,rectHover:!0,style:o,onclick:l});f.ensureState("emphasis").style=s,e.add(f),Object(re["o"])(f)}}h(t.nextBtnPosition,"next",Object(_["c"])(this._changeTimeline,this,c?"-":"+")),h(t.prevBtnPosition,"prev",Object(_["c"])(this._changeTimeline,this,c?"+":"-")),h(t.playPosition,l?"stop":"play",Object(_["c"])(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),a=i.getCurrentIndex(),o=r.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Object(_["c"])(s._handlePointerDrag,s),t.ondragend=Object(_["c"])(s._handlePointerDragend,s),ST(t,s._progressLine,a,n,i,!0)},onUpdate:function(t){ST(t,s._progressLine,a,n,i)}};this._currentPointer=OT(o,o,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=Be["c"](i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var a=this._findNearestTick(n),o=this.model;(e||a!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(a)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return ne["applyTransform"](t,e,!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,a){var o=r.dataToCoord(n),s=Math.abs(o-t);s<i&&(i=s,e=a)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",yT(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(dT);function bT(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new gT["a"]({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new mT["a"]({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new wr["a"]}}function xT(t,e){return ri["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function wT(t,e,n,i){var r=i.style,a=ne["createIcon"](t.get(["controlStyle",e]),i||{},new ki["a"](n[0],n[1],n[2],n[3]));return r&&a.setStyle(r),a}function OT(t,e,n,i,r,a){var o=e.get("color");if(r)r.setColor(o),n.add(r),a&&a.onUpdate(r);else{var s=t.get("symbol");r=Object(Qt["a"])(s,-1,-1,2,2,o),r.setStyle("strokeNoScale",!0),n.add(r),a&&a.onCreate(r)}var l=e.getItemStyle(["color"]);r.setStyle(l),i=Object(_["I"])({rectHover:!0,z2:100},i,!0);var u=Object(Qt["c"])(t.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var c=Object(Qt["b"])(t.get("symbolOffset"),u);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var h=t.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function ST(t,e,n,i,r,a){if(!t.dragging){var o=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(a||!o.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var TT=_T;function MT(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Object(_["i"])({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}function AT(t){var e=t&&t.timeline;_["t"](e)||(e=e?[e]:[]),_["k"](e,(function(t){t&&CT(t)}))}function CT(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),IT(t),DT(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});DT(i,"position")||(i.position=t.controlPosition),"none"!==i.position||DT(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}_["k"](t.data||[],(function(t){_["A"](t)&&!_["t"](t)&&(!DT(t,"value")&&DT(t,"name")&&(t.value=t.name),IT(t))}))}function IT(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),a={normal:1,emphasis:1};_["k"](i,(function(t,e){a[e]||DT(r,e)||(r[e]=t)})),n.label&&!DT(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function DT(t,e){return t.hasOwnProperty(e)}function LT(t){t.registerComponentModel(cT),t.registerComponentView(TT),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),MT(t),t.registerPreprocessor(AT)}function ET(t,e){if(!t)return!1;for(var n=Object(_["t"])(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function jT(t){Object(Te["f"])(t,"label",["show"])}var PT=Object(Te["o"])(),NT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return Object(qt["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(L_["a"].node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),a=PT(t)[r];n&&n.data?(a?a._mergeOption(n,e,!0):(i&&jT(n),_["k"](n.data,(function(t){t instanceof Array?(jT(t[0]),jT(t[1])):jT(t)})),a=this.createMarkerModelFromSeries(n,this,e),_["m"](a,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),a.__hostSeries=t),PT(t)[r]=a):PT(t)[r]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),a=i.getName(t);return Object(Ma["c"])("section",{header:this.name,blocks:[Object(Ma["c"])("nameValue",{name:a,value:r,noName:!a,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return PT(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Xi["a"]);_["K"](NT,cS["a"].prototype);var RT=NT,kT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(RT),BT=kT,zT=n("b7d9");function VT(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function FT(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function GT(t,e,n,i,r,a){var o=[],s=Object(ve["c"])(e,i),l=s?e.getCalculationInfo("stackResultDimension"):i,u=KT(e,l,t),c=e.indicesOfNearest(l,u)[0];o[r]=e.get(n,c),o[a]=e.get(l,c);var h=e.get(i,c),d=Be["g"](e.get(i,c));return d=Math.min(d,20),d>=0&&(o[a]=+o[a].toFixed(d)),[o,h]}var HT={min:Object(_["h"])(GT,"min"),max:Object(_["h"])(GT,"max"),average:Object(_["h"])(GT,"average"),median:Object(_["h"])(GT,"median")};function UT(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&!FT(e)&&!Object(_["t"])(e.coord)&&i){var r=i.dimensions,a=WT(e,n,i,t);if(e=Object(_["d"])(e),e.type&&HT[e.type]&&a.baseAxis&&a.valueAxis){var o=Object(_["r"])(r,a.baseAxis.dim),s=Object(_["r"])(r,a.valueAxis.dim),l=HT[e.type](n,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],c=0;c<2;c++)HT[u[c]]&&(u[c]=KT(n,n.mapDimension(r[c]),u[c]));e.coord=u}}return e}function WT(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(XT(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function XT(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function ZT(t,e){return!(t&&t.containData&&e.coord&&!VT(e))||t.containData(e.coord)}function qT(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!VT(e)&&!VT(n))||t.containZone(e.coord,n.coord)}function YT(t,e){return t?function(t,n,i,r){var a=r<2?t.coord&&t.coord[r]:t.value;return Object(zT["d"])(a,e[r])}:function(t,n,i,r){return Object(zT["d"])(t.value,e[r])}}function KT(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var QT=Object(Te["o"])(),JT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.init=function(){this.markerGroupMap=Object(_["f"])()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){QT(t).keep=!1})),e.eachSeries((function(t){var r=RT.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!QT(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){QT(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(_["k"])(t,(function(t){var i=RT.getMarkerModelFromSeries(t,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(t){t&&(e?Object(re["q"])(t):Object(re["B"])(t))}))}}))},e.type="marker",e}(Wi["a"]),$T=JT;function tM(t,e,n){var i=e.coordinateSystem;t.each((function(r){var a,o=t.getItemModel(r),s=Be["p"](o.get("x"),n.getWidth()),l=Be["p"](o.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)a=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),c=t.get(i.dimensions[1],r);a=i.dataToPoint([u,c])}}else a=[s,l];isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),t.setItemLayout(r,a)}))}var eM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=RT.getMarkerModelFromSeries(t,"markPoint");e&&(tM(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,a=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new me),u=nM(r,t,e);e.setData(u),tM(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),a=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(_["w"])(i)||Object(_["w"])(r)||Object(_["w"])(a)||Object(_["w"])(s)){var c=e.getRawValue(t),h=e.getDataParams(t);Object(_["w"])(i)&&(i=i(c,h)),Object(_["w"])(r)&&(r=r(c,h)),Object(_["w"])(a)&&(a=a(c,h)),Object(_["w"])(s)&&(s=s(c,h))}var d=n.getModel("itemStyle").getItemStyle(),f=Object(TS["b"])(o,"color");d.fill||(d.fill=f),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:a,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){Object(ie["a"])(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}($T);function nM(t,e,n){var i;i=t?Object(_["H"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(_["m"])(Object(_["m"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Mi["a"](i,n),a=Object(_["H"])(n.get("data"),Object(_["h"])(UT,e));t&&(a=Object(_["n"])(a,Object(_["h"])(ZT,t)));var o=YT(!!t,i);return r.initData(a,null,o),r}var iM=eM;function rM(t){t.registerComponentModel(BT),t.registerComponentView(iM),t.registerPreprocessor((function(t){ET(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var aM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(RT),oM=aM,sM=Object(Te["o"])(),lM=function(t,e,n,i){var r,a=t.getData();if(Object(_["t"])(i))r=i;else{var o=i.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=Object(_["O"])(i.yAxis,i.xAxis);else{var u=WT(i,a,e,t);s=u.valueAxis;var c=Object(ve["b"])(a,u.valueDataDim);l=KT(a,c,o)}var h="x"===s.dim?0:1,d=1-h,f=Object(_["d"])(i),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var g=n.get("precision");g>=0&&Object(_["z"])(l)&&(l=+l.toFixed(Math.min(g,20))),f.coord[h]=p.coord[h]=l,r=[f,p,{type:o,valueIndex:i.valueIndex,value:l}]}else r=[]}var m=[UT(t,r[0]),UT(t,r[1]),Object(_["m"])({},r[2])];return m[2].type=m[2].type||null,Object(_["I"])(m[2],m[0]),Object(_["I"])(m[2],m[1]),m};function uM(t){return!isNaN(t)&&!isFinite(t)}function cM(t,e,n,i){var r=1-t,a=i.dimensions[t];return uM(e[r])&&uM(n[r])&&e[t]===n[t]&&i.getAxis(a).containData(e[t])}function hM(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(cM(1,n,i,t)||cM(0,n,i,t)))return!0}return ZT(t,e[0])&&ZT(t,e[1])}function dM(t,e,n,i,r){var a,o=i.coordinateSystem,s=t.getItemModel(e),l=Be["p"](s.get("x"),r.getWidth()),u=Be["p"](s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)a=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=o.dimensions,h=t.get(c[0],e),d=t.get(c[1],e);a=o.dataToPoint([h,d])}if(Ge(o,"cartesian2d")){var f=o.getAxis("x"),p=o.getAxis("y");c=o.dimensions;uM(t.get(c[0],e))?a[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):uM(t.get(c[1],e))&&(a[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];t.setItemLayout(e,a)}var fM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=RT.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=sM(e).from,a=sM(e).to;r.each((function(e){dM(r,e,!0,t,n),dM(a,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),a.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,a=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new gh);this.group.add(l.group);var u=pM(r,t,e),c=u.from,h=u.to,d=u.line;sM(e).from=c,sM(e).to=h,e.setData(d);var f=e.get("symbol"),p=e.get("symbolSize"),g=e.get("symbolRotate"),m=e.get("symbolOffset");function v(e,n,r){var a=e.getItemModel(n);dM(e,n,r,t,i);var s=a.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Object(TS["b"])(o,"color")),e.setItemVisual(n,{symbolKeepAspect:a.get("symbolKeepAspect"),symbolOffset:Object(_["P"])(a.get("symbolOffset",!0),m[r?0:1]),symbolRotate:Object(_["P"])(a.get("symbolRotate",!0),g[r?0:1]),symbolSize:Object(_["P"])(a.get("symbolSize"),p[r?0:1]),symbol:Object(_["P"])(a.get("symbol",!0),f[r?0:1]),style:s})}Object(_["t"])(f)||(f=[f,f]),Object(_["t"])(p)||(p=[p,p]),Object(_["t"])(g)||(g=[g,g]),Object(_["t"])(m)||(m=[m,m]),u.from.each((function(t){v(c,t,!0),v(h,t,!1)})),d.each((function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(d),u.line.eachItemGraphicEl((function(t){Object(ie["a"])(t).dataModel=e,t.traverse((function(t){Object(ie["a"])(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}($T);function pM(t,e,n){var i;i=t?Object(_["H"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(_["m"])(Object(_["m"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Mi["a"](i,n),a=new Mi["a"](i,n),o=new Mi["a"]([],n),s=Object(_["H"])(n.get("data"),Object(_["h"])(lM,e,t,n));t&&(s=Object(_["n"])(s,Object(_["h"])(hM,t)));var l=YT(!!t,i);return r.initData(Object(_["H"])(s,(function(t){return t[0]})),null,l),a.initData(Object(_["H"])(s,(function(t){return t[1]})),null,l),o.initData(Object(_["H"])(s,(function(t){return t[2]}))),o.hasItemOption=!0,{from:r,to:a,line:o}}var gM=fM;function mM(t){t.registerComponentModel(oM),t.registerComponentView(gM),t.registerPreprocessor((function(t){ET(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var vM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(RT),yM=vM,_M=Object(Te["o"])(),bM=function(t,e,n,i){var r=UT(t,i[0]),a=UT(t,i[1]),o=r.coord,s=a.coord;o[0]=Object(_["O"])(o[0],-1/0),o[1]=Object(_["O"])(o[1],-1/0),s[0]=Object(_["O"])(s[0],1/0),s[1]=Object(_["O"])(s[1],1/0);var l=Object(_["J"])([{},r,a]);return l.coord=[r.coord,a.coord],l.x0=r.x,l.y0=r.y,l.x1=a.x,l.y1=a.y,l};function xM(t){return!isNaN(t)&&!isFinite(t)}function wM(t,e,n,i){var r=1-t;return xM(e[r])&&xM(n[r])}function OM(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},a={coord:i,x:e.x1,y:e.y1};return Ge(t,"cartesian2d")?!(!n||!i||!wM(1,n,i,t)&&!wM(0,n,i,t))||qT(t,r,a):ZT(t,r)||ZT(t,a)}function SM(t,e,n,i,r){var a,o=i.coordinateSystem,s=t.getItemModel(e),l=Be["p"](s.get(n[0]),r.getWidth()),u=Be["p"](s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)a=i.getMarkerPosition(t.getValues(n,e));else{var c=t.get(n[0],e),h=t.get(n[1],e),d=[c,h];o.clampData&&o.clampData(d,d),a=o.dataToPoint(d,!0)}if(Ge(o,"cartesian2d")){var f=o.getAxis("x"),p=o.getAxis("y");c=t.get(n[0],e),h=t.get(n[1],e);xM(c)?a[0]=f.toGlobalCoord(f.getExtent()["x0"===n[0]?0:1]):xM(h)&&(a[1]=p.toGlobalCoord(p.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];return a}var TM=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],MM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=RT.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=Object(_["H"])(TM,(function(r){return SM(i,e,r,t,n)}));i.setItemLayout(e,r);var a=i.getItemGraphicEl(e);a.setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,a=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,{group:new Jt["a"]});this.group.add(l.group),this.markKeep(l);var u=AM(r,t,e);e.setData(u),u.each((function(e){var n=Object(_["H"])(TM,(function(n){return SM(u,e,n,t,i)})),a=r.getAxis("x").scale,s=r.getAxis("y").scale,l=a.getExtent(),c=s.getExtent(),h=[a.parse(u.get("x0",e)),a.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];Be["c"](h),Be["c"](d);var f=!(l[0]>h[1]||l[1]<h[0]||c[0]>d[1]||c[1]<d[0]),p=!f;u.setItemLayout(e,{points:n,allClipped:p});var g=u.getItemModel(e).getModel("itemStyle").getItemStyle(),m=Object(TS["b"])(o,"color");g.fill||(g.fill=m,Object(_["C"])(g.fill)&&(g.fill=Ue["modifyAlpha"](g.fill,.4))),g.stroke||(g.stroke=m),u.setItemVisual(e,"style",g)})),u.diff(_M(l).data).add((function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new Oa["a"]({shape:{points:e.points}});u.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var i=_M(l).data.getItemGraphicEl(n),r=u.getItemLayout(t);r.allClipped?i&&l.group.remove(i):(i?ee["h"](i,{shape:{points:r.points}},e,t):i=new Oa["a"]({shape:{points:r.points}}),u.setItemGraphicEl(t,i),l.group.add(i))})).remove((function(t){var e=_M(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),Object(le["g"])(t,Object(le["e"])(i),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:Object(_["C"])(r.fill)?Ue["modifyAlpha"](r.fill,1):"#000"}),Object(re["I"])(t,i),Object(re["J"])(t,null,null,i.get(["emphasis","disabled"])),Object(ie["a"])(t).dataModel=e})),_M(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}($T);function AM(t,e,n){var i,r,a=["x0","y0","x1","y1"];if(t){var o=Object(_["H"])(t&&t.dimensions,(function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return Object(_["m"])(Object(_["m"])({},i),{name:t,ordinalMeta:null})}));r=Object(_["H"])(a,(function(t,e){return{name:t,type:o[e%2].type}})),i=new Mi["a"](r,n)}else r=[{name:"value",type:"float"}],i=new Mi["a"](r,n);var s=Object(_["H"])(n.get("data"),Object(_["h"])(bM,e,t,n));t&&(s=Object(_["n"])(s,Object(_["h"])(OM,t)));var l=t?function(t,e,n,i){var a=t.coord[Math.floor(i/2)][i%2];return Object(zT["d"])(a,r[i])}:function(t,e,n,i){return Object(zT["d"])(t.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}var CM=MM;function IM(t){t.registerComponentModel(yM),t.registerComponentView(CM),t.registerPreprocessor((function(t){ET(t.series,"markArea")&&(t.markArea=t.markArea||{})}))}var DM=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},LM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(qt["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),_["t"](e)&&_["k"](e,(function(t,i){_["C"](t)&&(t={type:t}),e[i]=_["I"](t,DM(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,a=i.name;if(n.push(a),i.legendVisualProvider){var o=i.legendVisualProvider,s=o.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(s)),s.length?e=e.concat(s):r=!0}else r=!0;r&&Object(Te["n"])(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,r=_["H"](i,(function(t){return(_["C"](t)||_["z"](t))&&(t={name:t}),new Er["a"](t,this,this.ecModel)}),this);this._data=r},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;_["k"](i,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;_["k"](t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;_["k"](t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&_["r"](this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Xi["a"]),EM=LM,jM=_["h"],PM=_["k"],NM=Jt["a"],RM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return Object(qt["a"])(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new NM),this.group.add(this._selectorGroup=new NM),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),a=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===a?"right":"left");var o=t.get("selector",!0),s=t.get("selectorPosition",!0);!o||s&&"auto"!==s||(s="horizontal"===a?"end":"start"),this.renderInner(r,t,e,n,o,a,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=ri["g"](l,u,c),d=this.layoutInner(t,r,h,i,o,s),f=ri["g"](_["i"]({width:d.width,height:d.height},l),u,c);this.group.x=f.x-d.x,this.group.y=f.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Ew(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,a,o){var s=this.getContentGroup(),l=_["f"](),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),PM(e.getData(),(function(r,a){var o=r.get("name");if(!this.newlineDisabled&&(""===o||"\n"===o)){var h=new NM;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(o)[0];if(!l.get(o)){if(d){var f=d.getData(),p=f.getVisual("legendLineStyle")||{},g=f.getVisual("legendIcon"),m=f.getVisual("style"),v=this._createItem(d,o,a,r,e,t,p,m,g,u,i);v.on("click",jM(zM,o,null,i,c)).on("mouseover",jM(FM,d.name,null,i,c)).on("mouseout",jM(GM,d.name,null,i,c)),l.set(o,!0)}else n.eachRawSeries((function(n){if(!l.get(o)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(o))return;var h=s.indexOfName(o),d=s.getItemVisual(h,"style"),f=s.getItemVisual(h,"legendIcon"),p=Object(Ue["parse"])(d.fill);p&&0===p[3]&&(p[3]=.2,d=_["m"](_["m"]({},d),{fill:Object(Ue["stringify"])(p,"rgba")}));var g=this._createItem(n,o,a,r,e,t,{},d,f,u,i);g.on("click",jM(zM,null,o,i,c)).on("mouseover",jM(FM,null,o,i,c)).on("mouseout",jM(GM,null,o,i,c)),l.set(o,!0)}}),this);0}}),this),r&&this._createSelector(r,e,i,a,o)},e.prototype._createSelector=function(t,e,n,i,r){var a=this.getSelectorGroup();PM(t,(function(t){var i=t.type,r=new $["a"]({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});a.add(r);var o=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);Object(le["g"])(r,{normal:o,emphasis:s},{defaultText:t.title}),Object(re["o"])(r)}))},e.prototype._createItem=function(t,e,n,i,r,a,o,s,l,u,c){var h=t.visualDrawType,d=r.get("itemWidth"),f=r.get("itemHeight"),p=r.isSelected(e),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),v=i.get("icon");l=v||l||"roundRect";var y=kM(l,i,o,s,h,p,c),b=new NM,x=i.getModel("textStyle");if(!_["w"](t.getLegendIcon)||v&&"inherit"!==v){var w="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;b.add(BM({itemWidth:d,itemHeight:f,icon:l,iconRotate:w,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}))}else b.add(t.getLegendIcon({itemWidth:d,itemHeight:f,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}));var O="left"===a?d+5:-5,S=a,T=r.get("formatter"),M=e;_["C"](T)&&T?M=T.replace("{name}",null!=e?e:""):_["w"](T)&&(M=T(e));var A=i.get("inactiveColor");b.add(new $["a"]({style:Object(le["c"])(x,{text:M,x:O,y:f/2,fill:p?x.getTextColor():A,align:S,verticalAlign:"middle"})}));var C=new Re["a"]({shape:b.getBoundingRect(),invisible:!0}),I=i.getModel("tooltip");return I.get("show")&&ne["setTooltipConfig"]({el:C,componentModel:r,itemName:e,itemTooltipOption:I.option}),b.add(C),b.eachChild((function(t){t.silent=!0})),C.silent=!u,this.getContentGroup().add(b),Object(re["o"])(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,e,n,i,r,a){var o=this.getContentGroup(),s=this.getSelectorGroup();ri["b"](t.get("orient"),o,t.get("itemGap"),n.width,n.height);var l=o.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),o.markRedraw(),r){ri["b"]("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),f=t.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",m=0===f?"y":"x";"end"===a?h[f]+=l[p]+d:u[f]+=c[p]+d,h[1-f]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],o.x=u[0],o.y=u[1];var v={x:0,y:0};return v[p]=l[p]+d+c[p],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+h[1-f]),v}return o.x=u[0],o.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Wi["a"]);function kM(t,e,n,i,r,a,o){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),PM(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?Object(as["a"])(h,o):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var d=e.getModel("lineStyle"),f=d.getLineStyle();if(s(f,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===f.stroke&&(f.stroke=i.fill),!a){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===p?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),f.stroke=d.get("inactiveColor"),f.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function BM(t){var e=t.icon||"roundRect",n=Object(Qt["a"])(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function zM(t,e,n,i){GM(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),FM(t,e,n,i)}function VM(t){var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;while(i<r&&!(e=n[i].states.emphasis))i++;return e&&e.hoverLayer}function FM(t,e,n,i){VM(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function GM(t,e,n,i){VM(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var HM=RM;function UM(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function WM(t,e,n){var i,r={},a="toggleSelected"===t;return n.eachComponent("legend",(function(n){a&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var o=n.getData();Object(_["k"])(o,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function XM(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(_["h"])(WM,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(_["h"])(WM,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(_["h"])(WM,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(_["h"])(WM,"select")),t.registerAction("legendUnSelect","legendunselected",Object(_["h"])(WM,"unSelect"))}function ZM(t){t.registerComponentModel(EM),t.registerComponentView(HM),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,UM),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),XM(t)}var qM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=Object(ri["f"])(e);t.prototype.init.call(this,e,n,i),YM(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),YM(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Object(bn["d"])(EM.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(EM);function YM(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,Object(ri["h"])(e,n,{type:"box",ignoreSize:!!r})}var KM=qM,QM=Jt["a"],JM=["width","height"],$M=["x","y"],tA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return Object(qt["a"])(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new QM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new QM)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,a,o,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,a,o,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=_["t"](c)?c:[c,c];f("pagePrev",0);var d=n.getModel("pageTextStyle");function f(t,e){var i=t+"DataIndex",a=ne["createIcon"](n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:_["c"](l._pageGo,l,i,n,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});a.name=t,u.add(a)}u.add(new $["a"]({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,a){var o=this.getSelectorGroup(),s=t.getOrient().index,l=JM[s],u=$M[s],c=JM[1-s],h=$M[1-s];r&&ri["b"]("horizontal",o,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),f=o.getBoundingRect(),p=[-f.x,-f.y],g=_["d"](n);r&&(g[l]=n[l]-f[l]-d);var m=this._layoutContentAndController(t,i,g,s,l,c,h,u);if(r){if("end"===a)p[s]+=m[l]+d;else{var v=f[l]+d;p[s]-=v,m[u]-=v}m[l]+=f[l]+d,p[1-s]+=m[h]+m[c]/2-f[c]/2,m[c]=Math.max(m[c],f[c]),m[h]=Math.min(m[h],f[h]+p[1-s]),o.x=p[0],o.y=p[1],o.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,e,n,i,r,a,o,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;ri["b"](t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),ri["b"]("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=c.getBoundingRect(),f=this._showController=h[r]>n[r],p=[-h.x,-h.y];e||(p[i]=l[s]);var g=[0,0],m=[-d.x,-d.y],v=_["P"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(f){var y=t.get("pageButtonPosition",!0);"end"===y?m[i]+=n[r]-d[r]:g[i]+=d[r]+v}m[1-i]+=h[a]/2-d[a]/2,l.setPosition(p),u.setPosition(g),c.setPosition(m);var b={x:0,y:0};if(b[r]=f?n[r]:h[r],b[a]=Math.max(h[a],d[a]),b[o]=Math.min(0,d[o]+m[1-i]),u.__rectSize=n[r],f){var x={x:0,y:0};x[r]=Math.max(n[r]-d[r]-v,0),x[a]=b[a],u.setClipPath(new Re["a"]({shape:x})),u.__rectSize=x[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&ee["h"](l,{x:w.contentPosition[0],y:w.contentPosition[1]},f?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;_["k"](["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",a=null!=e[r],o=n.childOfName(i);o&&(o.setStyle("fill",a?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=a?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),a=e.pageIndex,o=null!=a?a+1:0,s=e.pageCount;i&&r&&i.setStyle("text",_["C"](r)?r.replace("{current}",null==o?"":o+"").replace("{total}",null==s?"":s+""):r({current:o,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,a=JM[r],o=$M[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var f=y(u);d.contentPosition[r]=-f.s;for(var p=s+1,g=f,m=f,v=null;p<=c;++p)v=y(l[p]),(!v&&m.e>g.s+i||v&&!_(v,g.s))&&(g=m.i>g.i?m:v,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=v;for(p=s-1,g=f,m=f,v=null;p>=-1;--p)v=y(l[p]),v&&_(m,v.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function y(t){if(t){var e=t.getBoundingRect(),n=e[o]+t[o];return{s:n,e:n+e[a],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,r){var a=i.__legendDataIndex;null==n&&null!=a&&(n=r),a===t&&(e=r)})),null!=e?e:n},e.type="legend.scroll",e}(HM),eA=tA;function nA(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function iA(t){Object(i["a"])(ZM),t.registerComponentModel(KM),t.registerComponentView(eA),nA(t)}function rA(t){Object(i["a"])(ZM),Object(i["a"])(iA)}var aA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.type="dataZoom.inside",e.defaultOption=Object(bn["d"])(ow.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(ow),oA=aA,sA=Object(Te["o"])();function lA(t,e,n){sA(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}function uA(t,e){for(var n=sA(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var a=i[r],o=n.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||cA(n,o))}}}function cA(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function hA(t,e){var n={model:e,containsPoint:Object(_["h"])(fA,e),dispatchAction:Object(_["h"])(dA,t),dataZoomInfoMap:null,controller:null},i=n.controller=new no(t.getZr());return Object(_["k"])(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var a=(r.getRange||{})[t],o=a&&a(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&o&&i.push({dataZoomId:r.model.id,start:o[0],end:o[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function dA(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function fA(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function pA(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var a=t.model,o=!a.get("disabled",!0)&&(!a.get("zoomLock",!0)||"move");i[n+o]>i[n+e]&&(e=o),r=r&&a.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function gA(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=sA(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(_["f"])());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=nw(t);Object(_["k"])(n.infoList,(function(n){var r=n.model.uid,a=i.get(r)||i.set(r,hA(e,n.model)),o=a.dataZoomInfoMap||(a.dataZoomInfoMap=Object(_["f"])());o.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var a=r.keys()[0];null!=a&&(e=r.get(a))}if(e){var o=pA(r);n.enable(o.controlType,o.opt),n.setPointerChecker(t.containsPoint),On["b"](t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else cA(i,t)}))}))}var mA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return Object(qt["a"])(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),lA(i,e,{pan:Object(_["c"])(vA.pan,this),zoom:Object(_["c"])(vA.zoom,this),scrollMove:Object(_["c"])(vA.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){uA(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(cw),vA={zoom:function(t,e,n,i){var r=this.range,a=r.slice(),o=t.axisModels[0];if(o){var s=_A[e](null,[i.originX,i.originY],o,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Dd(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0}},pan:yA((function(t,e,n,i,r,a){var o=_A[i]([a.oldX,a.oldY],[a.newX,a.newY],e,r,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength})),scrollMove:yA((function(t,e,n,i,r,a){var o=_A[i]([0,0],[a.scrollDelta,a.scrollDelta],e,r,n);return o.signal*(t[1]-t[0])*a.scrollDelta}))};function yA(t){return function(e,n,i,r){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,n,i,r);return Dd(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}}}var _A={grid:function(t,e,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===a.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,n,i,r){var a=n.axis,o=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},bA=mA;function xA(t){Ow(t),t.registerComponentModel(oA),t.registerComponentView(bA),gA(t)}var wA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Object(bn["d"])(ow.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(ow),OA=wA,SA=Re["a"],TA=7,MA=1,AA=30,CA=7,IA="horizontal",DA="vertical",LA=5,EA=["line","bar","candlestick","scatter"],jA={easing:"cubicOut",duration:100,delay:0},PA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return Object(qt["a"])(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(_["c"])(this._onBrush,this),this._onBrushEnd=Object(_["c"])(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),On["b"](this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){On["a"](this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Jt["a"];this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=n?CA:0,r=this._findCoordRect(),a={width:e.getWidth(),height:e.getHeight()},o=this._orient===IA?{right:a.width-r.x-r.width,top:a.height-AA-TA-i,width:r.width,height:AA}:{right:TA,top:r.y,width:AA,height:r.height},s=ri["f"](t.option);Object(_["k"])(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=o[t])}));var l=ri["g"](s,a);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===DA&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==IA||r?n===IA&&r?{scaleY:o?1:-1,scaleX:-1}:n!==DA||r?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1});var s=t.getBoundingRect([a]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new SA({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new SA({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(_["c"])(this._onClickPanel,this)}),a=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),a=i.getShadowDim?i.getShadowDim():t.otherDim;if(null!=a){var o=this._shadowPolygonPts,s=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var l=r.getDataExtent(a),u=.3*(l[1]-l[0]);l=[l[0]-u,l[1]+u];var c,h=[0,e[1]],d=[0,e[0]],f=[[e[0],0],[0,0]],p=[],g=d[1]/(r.count()-1),m=0,v=Math.round(r.count()/e[0]);r.each([a],(function(t,e){if(v>0&&e%v)m+=g;else{var n=null==t||isNaN(t)||""===t,i=n?0:Object(Be["l"])(t,l,h,!0);n&&!c&&e?(f.push([f[f.length-1][0],0]),p.push([p[p.length-1][0],0])):!n&&c&&(f.push([m,0]),p.push([m,0])),f.push([m,i]),p.push([m,i]),m+=g,c=n}})),o=this._shadowPolygonPts=f,s=this._shadowPolylinePts=p}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var y=this.dataZoomModel,_=0;_<3;_++){var b=x(1===_);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function x(t){var e=y.getModel(t?"selectedDataBackground":"dataBackground"),n=new Jt["a"],i=new Oa["a"]({shape:{points:o},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new hi["a"]({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,a){var o=t.getAxisProxy(r,a).getTargetSeriesModels();Object(_["k"])(o,(function(t){if(!n&&!(!0!==e&&Object(_["r"])(EA,t.get("type"))<0)){var o,s=i.getComponent(tw(r),a).axis,l=NA(r),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(o=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:o}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,l=o.get("borderRadius")||0,u=o.get("brushSelect"),c=e.filler=new SA({silent:u,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new SA({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:l},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:MA,fill:"rgba(0,0,0,0)"}})),Object(_["k"])([0,1],(function(e){var a=o.get("handleIcon");!Qt["d"][a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a);var s=Object(Qt["a"])(a,-1,0,2,2,null,!0);s.attr({cursor:RA(this._orient),draggable:!0,drift:Object(_["c"])(this._onDragMove,this,e),ondragend:Object(_["c"])(this._onDragEnd,this),onmouseover:Object(_["c"])(this._showDataInfo,this,!0),onmouseout:Object(_["c"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=o.get("handleSize");this._handleHeight=Object(Be["p"])(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(o.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(re["o"])(s);var c=o.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[e]=s);var h=o.getModel("textStyle");t.add(i[e]=new $["a"]({silent:!0,invisible:!0,style:Object(le["c"])(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var d=Object(Be["p"])(o.get("moveHandleSize"),a[1]),f=e.moveHandle=new Re["a"]({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:d}}),p=.8*d,g=e.moveHandleIcon=Object(Qt["a"])(o.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=a[1]+d/2-.5,f.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(a[1]/2,Math.max(d,10));h=e.moveZone=new Re["a"]({invisible:!0,shape:{y:a[1]-m,height:d+m}}),h.on("mouseover",(function(){s.enterEmphasis(f)})).on("mouseout",(function(){s.leaveEmphasis(f)})),r.add(f),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:RA(this._orient),drift:Object(_["c"])(this._onDragMove,this,"all"),ondragstart:Object(_["c"])(this._showDataInfo,this,!0),ondragend:Object(_["c"])(this._onDragEnd,this),onmouseover:Object(_["c"])(this._showDataInfo,this,!0),onmouseout:Object(_["c"])(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Object(Be["l"])(t[0],[0,100],e,!0),Object(Be["l"])(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];Dd(e,i,r,n.get("zoomLock")?"all":t,null!=a.minSpan?Object(Be["l"])(a.minSpan,o,r,!0):null,null!=a.maxSpan?Object(Be["l"])(a.maxSpan,o,r,!0):null);var s=this._range,l=this._range=Object(Be["c"])([Object(Be["l"])(i[0],r,o,!0),Object(Be["l"])(i[1],r,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=Object(Be["c"])(n.slice()),r=this._size;Object(_["k"])([0,1],(function(t){var i=e.handles[t],a=this._handleHeight;i.attr({scaleX:a/2,scaleY:a/2,x:n[t]+(t?-1:1),y:r[1]/2-a/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var a={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(a),e.moveZone.setShape(a),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",a.x+a.width/2));for(var o=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<o.length;l++){var u=o[l],c=u.getClipPath();c||(c=new Re["a"],u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,a=["",""];if(e.get("showDetail")){var o=e.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,l=this._range,u=t?o.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=Object(Be["c"])(this._handleEnds.slice());function h(t){var e=ne["getTransform"](n.handles[t].parent,this.group),o=ne["transformDirection"](0===t?"right":"left",e),s=this._handleWidth/2+LA,l=ne["applyTransform"]([c[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===IA?"middle":o,align:r===IA?o:"center",text:a[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var a=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return Object(_["w"])(i)?i(t,a):Object(_["C"])(i)?i.replace("{value}",a):a},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,Wa["g"](i.event);var r=this._displayables.sliderGroup.getLocalTransform(),a=ne["applyTransform"]([e,n],r,!0),o=this._updateInterval(t,a[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,a=this._updateInterval("all",n[0]-r);this._updateView(),a&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new di["a"](e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),a=[0,100];this._range=Object(Be["c"])([Object(Be["l"])(n.x,r,a,!0),Object(Be["l"])(n.x+n.width,r,a,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Wa["g"](t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new SA({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(t,e),l=o.transformCoordToLocal(a.x,a.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?jA:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=nw(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(cw);function NA(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function RA(t){return"vertical"===t?"ns-resize":"ew-resize"}var kA=PA;function BA(t){t.registerComponentModel(OA),t.registerComponentView(kA),Ow(t)}function zA(t){Object(i["a"])(xA),Object(i["a"])(BA)}var VA={get:function(t,e,n){var i=_["d"]((FA[t]||{})[e]);return n&&_["t"](i)?i[i.length-1]:i}},FA={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},GA=VA,HA=Gu.mapVisual,UA=Gu.eachVisual,WA=_["t"],XA=_["k"],ZA=Be["c"],qA=Be["l"],YA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return Object(qt["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&IS(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=_["c"](t,this),this.controllerVisuals=CS(this.option.controller,e,t),this.targetVisuals=CS(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=Te["r"](t),e},e.prototype.eachTargetSeries=function(t,e){_["k"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,a=r.precision,o=this.dataBound,s=r.formatter;n=n||["<",">"],_["t"](t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return _["C"](s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):_["w"](s)?i?s(t[0],t[1]):s(t):i?t[0]===o[0]?n[0]+" "+l[1]:t[1]===o[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===o[0]?"min":t===o[1]?"max":(+t).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,e=ZA([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],a=t.getDimensionInfo(r);if(!a.isCalculationCoord)return a.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});_["I"](i,n),_["I"](r,n);var a=this.isCategory();function o(n){WA(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function s(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},XA(i,(function(t,e){if(Gu.isValidType(e)){var n=GA.get(e,"inactive",a);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function l(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),o=r||"roundRect";XA(this.stateList,(function(r){var s=this.itemSize,l=t[r];l||(l=t[r]={color:a?i:[i]}),null==l.symbol&&(l.symbol=e&&_["d"](e)||(a?o:[o])),null==l.symbolSize&&(l.symbolSize=n&&_["d"](n)||(a?s[0]:[s[0],s[0]])),l.symbol=HA(l.symbol,(function(t){return"none"===t?o:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;UA(u,(function(t){t>c&&(c=t)})),l.symbolSize=HA(u,(function(t){return qA(t,[0,c],[0,s[0]],!0)}))}}),this)}o.call(this,i),o.call(this,r),s.call(this,i,"inRange","outOfRange"),l.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Xi["a"]),KA=YA,QA=[20,140],JA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=QA[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=QA[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):_["t"](e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),_["k"](this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=Be["c"]((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=$A(this,"outOfRange",this.getExtent()),n=$A(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var a=0,o=0,s=n.length,l=e.length;o<l&&(!n.length||e[o]<=n[0]);o++)e[o]<n[a]&&r(e[o],"outOfRange");for(var u=1;a<s;a++,u=0)u&&i.length&&r(n[a],"outOfRange"),r(n[a],"inRange");for(u=1;o<l;o++)(!n.length||n[n.length-1]<e[o])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(e[o],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Object(bn["d"])(KA.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(KA);function $A(t,e,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,a=n[0],o=[],s=0;s<=i&&a<n[1];s++)o.push(a),a+=r;return o.push(n[1]),o}var tC=JA,eC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return Object(qt["a"])(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=He["j"](e.get("padding")||0),i=t.getBoundingRect();t.add(new Re["a"]({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){n=n||{};var i=n.forceState,r=this.visualMapModel,a={};if("color"===e){var o=r.get("contentColor");a.color=o}function s(t){return a[t]}function l(t,e){a[t]=e}var u=r.controllerVisuals[i||r.getValueState(t)],c=Gu.prepareVisualTypes(u);return _["k"](c,(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),Gu.dependsOn(i,e)&&r&&r.applyVisual(t,s,l)})),a[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;ri["i"](t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(Wi["a"]),nC=eC,iC=[["left","right","width"],["top","bottom","height"]];function rC(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var a={width:e.getWidth(),height:e.getHeight()},o="horizontal"===i.orient?1:0,s=iC[o],l=[0,null,10],u={},c=0;c<3;c++)u[iC[1-o][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][o],d=Object(ri["g"])(u,a,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*a[h[1]]?0:1]}function aC(t,e){return _["k"](t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var oC=Be["l"],sC=_["k"],lC=Math.min,uC=Math.max,cC=12,hC=6,dC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return Object(qt["a"])(e,t),e.prototype.doRender=function(t,e,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,a=r.get("textGap"),o=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([o[0]/2,0===n?-a:o[1]+a],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new $["a"]({style:Object(le["c"])(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,a=this._useHandle,o=rC(e,this.api,i),s=n.mainGroup=this._createBarGroup(o),l=new Jt["a"];s.add(l),l.add(n.outOfRange=fC()),l.add(n.inRange=fC(null,a?mC(this._orient):null,_["c"](this._dragHandle,this,"all",!1),_["c"](this._dragHandle,this,"all",!0))),l.setClipPath(new Re["a"]({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=uC(u.width,u.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,c,r),this._createHandle(e,s,1,i,c,r)),this._createIndicator(e,s,i,c,r),t.add(s)},e.prototype._createHandle=function(t,e,n,i,r,a){var o=_["c"](this._dragHandle,this,n,!1),s=_["c"](this._dragHandle,this,n,!0),l=Object(u["g"])(t.get("handleSize"),i[0]),c=Object(Qt["a"])(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),h=mC(this._orient);c.attr({cursor:h,draggable:!0,drift:o,ondragend:s,onmousemove:function(t){Wa["g"](t.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(re["F"])(c,!0),e.add(c);var d=this.visualMapModel.textStyleModel,f=new $["a"]({cursor:h,draggable:!0,drift:o,onmousemove:function(t){Wa["g"](t.event)},ondragend:s,style:Object(le["c"])(d,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[l,0],g=this._shapes;g.handleThumbs[n]=c,g.handleLabelPoints[n]=p,g.handleLabels[n]=f},e.prototype._createIndicator=function(t,e,n,i,r){var a=Object(u["g"])(t.get("indicatorSize"),n[0]),o=Object(Qt["a"])(t.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);o.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(o instanceof l["a"]){var c=o.style;o.useStyle(_["m"]({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else o.useStyle(s);e.add(o);var h=this.visualMapModel.textStyleModel,d=new $["a"]({silent:!0,invisible:!0,style:Object(le["c"])(h,{x:0,y:0,text:""})});this.group.add(d);var f=[("horizontal"===r?i/2:hC)+n[0]/2,0],p=this._shapes;p.indicator=o,p.indicatorLabel=d,p.indicatorLabelPoint=f,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():gC(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[oC(e[0],n,i,!0),oC(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];Dd(e,i,r,t,0);var a=n.getExtent();this._dataInterval=[oC(i[0],r,a,!0),oC(i[1],r,a,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],a=t?r:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(a,o)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},a=this._makeColorGradient(t,r),o=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,o);return{barColor:new Se["a"](0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=100,i=[],r=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var a=1;a<n;a++){var o=t[0]+r*a;if(o>t[1])break;i.push({color:this.getControllerVisual(o,"color",e),offset:a/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Jt["a"]("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,a=n.handleLabels,o=i.itemSize,s=i.getExtent();sC([0,1],(function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=oC(t[l],[0,o[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/o[0],u.x=o[0]-h/2;var d=ne["applyTransform"](n.handleLabelPoints[l],ne["getTransform"](u,this.group));a[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,a=r.getExtent(),o=r.itemSize,s=[0,o[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),d=this.getControllerVisual(t,"symbolSize"),f=oC(t,a,s,!0),p=o[0]-d/2,g={x:u.x,y:u.y};u.y=f,u.x=p;var m=ne["applyTransform"](l.indicatorLabelPoint,ne["getTransform"](u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),_=this._orient,b="horizontal"===_;v.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:b?y:"middle",align:b?"center":y});var x={x:p,y:f,style:{fill:h}},w={style:{x:m[0],y:m[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(x,O),v.animateTo(w,O)}else u.attr(x),v.attr(w);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var T=0;T<S.length;T++)this._api.enterBlur(S[T])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=lC(uC(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],a=n.getExtent();t=lC(uC(r[0],t),r[1]);var o=pC(n,a,r),s=[t-o,t+o],l=oC(t,r,a,!0),u=[oC(s[0],r,a,!0),oC(s[1],r,a,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",o):u[1]===1/0?this._showIndicator(l,u[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var c=this._hoverLinkDataIndices,h=[];(e||gC(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=Te["d"](c,h);this._dispatchHighDown("downplay",aC(d[0],n)),this._dispatchHighDown("highlight",aC(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=Object(ie["a"])(e).dataIndex){var i=Object(ie["a"])(e),r=this.ecModel.getSeriesByIndex(i.seriesIndex);if(n.isTargetSeries(r)){var a=r.getData(i.dataType),o=a.getStore().get(n.getDataDimensionIndex(a),i.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this._api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",aC(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var r=ne["getTransform"](e,i?null:this.group);return _["t"](t)?ne["applyTransform"](t,r,n):ne["transformDirection"](t,r,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(nC);function fC(t,e,n,i){return new Oa["a"]({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Wa["g"](t.event)},ondragend:i})}function pC(t,e,n){var i=cC/2,r=t.get("hoverLinkDataSize");return r&&(i=oC(r,e,n,!0)/2),i}function gC(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function mC(t){return"vertical"===t?"ns-resize":"ew-resize"}var vC=dC,yC={type:"selectDataRange",event:"dataRangeSelected",update:"update"},_C=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},bC=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i=t.pipelineContext;!e.isTargetSeries(t)||i&&i.large||n.push(LS(e.stateList,e.targetVisuals,_["c"](e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(_["c"](xC,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimensionIndex(n);a>=0&&(r.dimension=a,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function xC(t,e,n,i){for(var r=e.targetVisuals[i],a=Gu.prepareVisualTypes(r),o={color:Object(TS["b"])(t.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return o.color;function h(t){return o[t]}function d(t,e){o[t]=e}}var wC=_["k"];function OC(t){var e=t&&t.visualMap;_["t"](e)||(e=e?[e]:[]),wC(e,(function(t){if(t){SC(t,"splitList")&&!SC(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&_["t"](e)&&wC(e,(function(t){_["A"](t)&&(SC(t,"start")&&!SC(t,"min")&&(t.min=t.start),SC(t,"end")&&!SC(t,"max")&&(t.max=t.end))}))}}))}function SC(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var TC=!1;function MC(t){TC||(TC=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(yC,_C),Object(_["k"])(bC,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(OC))}function AC(t){t.registerComponentModel(tC),t.registerComponentView(vC),MC(t)}var CC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return Object(qt["a"])(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],IC[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=_["d"](r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=_["H"](this._pieceList,(function(t){return t=_["d"](t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=Gu.listVisualTypes(),r=this.isCategory();function a(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}_["k"](e.pieces,(function(t){_["k"](i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),_["k"](n,(function(t,n){var i=!1;_["k"](this.stateList,(function(t){i=i||a(e,t,n)||a(e.target,t,n)}),this),!i&&_["k"](this.stateList,(function(t){(e[t]||(e[t]={}))[n]=GA.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,_["k"](i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var a=!1;_["k"](i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(a?r[n]=!1:a=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=_["d"](t)},e.prototype.getValueState=function(t){var e=Gu.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],a=i.getData();a.each(this.getDataDimensionIndex(a),(function(e,i){var a=Gu.findPieceIndex(e,n);a===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var a=r[0].interval[0];a!==-1/0&&r.unshift({interval:[-1/0,a]}),a=r[r.length-1].interval[1],a!==1/0&&r.push({interval:[a,1/0]})}else r.push({interval:[-1/0,1/0]});var o=-1/0;return _["k"](r,(function(t){var e=t.interval;e&&(e[0]>o&&s([o,e[0]],"outOfRange"),s(e.slice()),o=e[1])}),this),{stops:e,outerColors:n}}function s(r,a){var o=i.getRepresentValue({interval:r});a||(a=i.getValueState(o));var s=t(o,a);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Object(bn["d"])(KA.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(KA),IC={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;var a=(i[1]-i[0])/r;while(+a.toFixed(n)!==a&&n<5)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<r;s+=a,o++){var l=o===r-1?i[1]:s+a;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),Object(Be["t"])(t),_["k"](t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;_["k"](e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),DC(e,t)},pieces:function(t){var e=this.option;_["k"](e.pieces,(function(e,n){_["A"](e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var a=i.interval=[],o=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==a[c];d++)a[c]=e[h[d]],o[c]=s[d],u[c]=2===d;null==a[c]&&(a[c]=l[c])}u[0]&&a[1]===1/0&&(o[0]=0),u[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(i.value=a[0])}i.visual=Gu.retrieveVisuals(e),t.push(i)}),this),DC(e,t),Object(Be["t"])(t),_["k"](t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function DC(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var LC=CC,EC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(qt["a"])(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),a=i.getTextColor(),o=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=_["O"](e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,o),_["k"](l.viewPieceList,(function(i){var l=i.piece,u=new Jt["a"];u.onclick=_["c"](this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(h);u.add(new $["a"]({style:{x:"right"===o?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:o,font:r,fill:a,opacity:"outOfRange"===d?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,o),ri["b"](e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:aC(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return rC(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var a=new Jt["a"],o=this.visualMapModel.textStyleModel;a.add(new $["a"]({style:Object(le["c"])(o,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(a)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=_["H"](t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(Object(Qt["a"])(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=_["d"](n.selected),a=e.getSelectedMapKey(t);"single"===i||!0===i?(r[a]=!0,_["k"](r,(function(t,e){r[e]=e===a}))):r[a]=!r[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(nC),jC=EC;function PC(t){t.registerComponentModel(LC),t.registerComponentView(jC),MC(t)}function NC(t){Object(i["a"])(AC),Object(i["a"])(PC)}var RC={label:{enabled:!0},decal:{show:!1}},kC=Object(Te["o"])(),BC={};function zC(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=_["d"](RC);_["I"](i.label,t.getLocaleModel().get("aria"),!1),_["I"](n.option,i,!1),r(),a()}function r(){var e=n.getModel("decal"),i=e.get("show");if(i){var r=_["f"]();t.eachSeries((function(t){if(!t.isColorBySeries()){var e=r.get(t.type);e||(e={},r.set(t.type,e)),kC(t).scope=e}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(_["w"](e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=Object(Wl["b"])(e.ecModel,e.name,BC,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var a=e.getRawData(),o={},s=kC(e).scope;n.each((function(t){var e=n.getRawIndex(t);o[e]=t}));var l=a.count();a.each((function(t){var i=o[t],r=a.getName(t)||t+"",c=Object(Wl["b"])(e.ecModel,r,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(h,c))}))}}function u(t,e){var n=t?_["m"](_["m"]({},e),t):e;return n.dirty=!0,n}}))}}function a(){var i=t.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=_["i"](r.option,i),r.get("enabled")){var a=e.getZr().dom;if(r.get("description"))a.setAttribute("aria-label",r.get("description"));else{var u,c=t.getSeriesCount(),h=r.get(["data","maxCount"])||10,d=r.get(["series","maxCount"])||10,f=Math.min(c,d);if(!(c<1)){var p=s();if(p){var g=r.get(["general","withTitle"]);u=o(g,{title:p})}else u=r.get(["general","withoutTitle"]);var m=[],v=c>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]);u+=o(v,{seriesCount:c}),t.eachSeries((function(t,e){if(e<f){var n=void 0,i=t.get("name"),a=i?"withName":"withoutName";n=c>1?r.get(["series","multiple",a]):r.get(["series","single",a]),n=o(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:l(t.subType)});var s=t.getData();if(s.count()>h){var u=r.get(["data","partialData"]);n+=o(u,{displayCnt:h})}else n+=r.get(["data","allData"]);for(var d=r.get(["data","separator","middle"]),p=r.get(["data","separator","end"]),g=[],v=0;v<s.count();v++)if(v<h){var y=s.getName(v),_=s.getValues(v),b=r.get(["data",y?"withName":"withoutName"]);g.push(o(b,{name:y,value:_.join(d)}))}n+=g.join(d)+p,m.push(n)}}));var y=r.getModel(["series","multiple","separator"]),b=y.get("middle"),x=y.get("end");u+=m.join(b)+x,a.setAttribute("aria-label",u)}}}}function o(t,e){if(!_["C"](t))return t;var n=t;return _["k"](e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function s(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}function l(e){return t.getLocaleModel().get(["series","typeNames"])[e]||"自定义图"}}function VC(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},_["k"](["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}function FC(t){t.registerPreprocessor(VC),t.registerVisual(t.PRIORITY.VISUAL.ARIA,zC)}var GC={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},HC=function(){function t(t){var e=this._condVal=Object(_["C"])(t)?new RegExp(t):Object(_["B"])(t)?t:null;if(null==e){var n="";0,Object(Su["c"])(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(_["C"])(e)?this._condVal.test(t):!!Object(_["z"])(e)&&this._condVal.test(t+"")},t}(),UC=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),WC=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),XC=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),ZC=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),qC=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(t?i:n))return!1;return!0},t}();function YC(t,e){if(!0===t||!1===t){var n=new UC;return n.value=t,n}var i="";return $C(t)||Object(Su["c"])(i),t.and?KC("and",t,e):t.or?KC("or",t,e):t.not?QC(t,e):JC(t,e)}function KC(t,e,n){var i=e[t],r="";Object(_["t"])(i)||Object(Su["c"])(r),i.length||Object(Su["c"])(r);var a="and"===t?new WC:new XC;return a.children=Object(_["H"])(i,(function(t){return YC(t,n)})),a.children.length||Object(Su["c"])(r),a}function QC(t,e){var n=t.not,i="";$C(n)||Object(Su["c"])(i);var r=new ZC;return r.child=YC(n,e),r.child||Object(Su["c"])(i),r}function JC(t,e){for(var n="",i=e.prepareGetValue(t),r=[],a=Object(_["F"])(t),o=t.parser,s=o?Object(zT["c"])(o):null,l=0;l<a.length;l++){var u=a[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var c=Object(_["q"])(GC,u)?GC[u]:u,h=t[u],d=s?s(h):h,f=Object(zT["b"])(c,d)||"reg"===c&&new HC(d);f||Object(Su["c"])(n),r.push(f)}}r.length||Object(Su["c"])(n);var p=new qC;return p.valueGetterParam=i,p.valueParser=s,p.getValue=e.getValue,p.subCondList=r,p}function $C(t){return Object(_["A"])(t)&&!Object(_["u"])(t)}var tI=function(){function t(t,e){this._cond=YC(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function eI(t,e){return new tI(t,e)}var nI={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,i=eI(t.config,{valueGetterAttrMap:Object(_["f"])({dimension:!0}),prepareGetValue:function(t){var e="",i=t.dimension;Object(_["q"])(t,"dimension")||Object(Su["c"])(e);var r=n.getDimensionInfo(i);return r||Object(Su["c"])(e),{dimIdx:r.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),r=[],a=0,o=n.count();a<o;a++)e=n.getRawDataItem(a),i.evaluate()&&r.push(e);return{data:r}}};var iI={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,i="",r=Object(Te["r"])(n);r.length||Object(Su["c"])(i);var a=[];Object(_["k"])(r,(function(t){var n=t.dimension,r=t.order,o=t.parser,s=t.incomparable;if(null==n&&Object(Su["c"])(i),"asc"!==r&&"desc"!==r&&Object(Su["c"])(i),s&&"min"!==s&&"max"!==s){var l="";0,Object(Su["c"])(l)}if("asc"!==r&&"desc"!==r){var u="";0,Object(Su["c"])(u)}var c=e.getDimensionInfo(n);c||Object(Su["c"])(i);var h=o?Object(zT["c"])(o):null;o&&!h&&Object(Su["c"])(i),a.push({dimIdx:c.index,parser:h,comparator:new zT["a"](r,s)})}));var o=e.sourceFormat;o!==rg["c"]&&o!==rg["e"]&&Object(Su["c"])(i);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var i=0;i<a.length;i++){var r=a[i],o=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(n,r.dimIdx);r.parser&&(o=r.parser(o),s=r.parser(s));var l=r.comparator.evaluate(o,s);if(0!==l)return l}return 0})),{data:s}}};function rI(t){t.registerTransform(nI),t.registerTransform(iI)}var aI=n("5e81"),oI=F["a"].CMD;function sI(t,e){return Math.abs(t-e)<1e-5}function lI(t){var e,n,i,r,a,o=t.data,s=t.len(),l=[],u=0,c=0,h=0,d=0;function f(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function p(t,n,i,r){sI(t,i)&&sI(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,a,o){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),d=Math.cos(n),f=Math.sin(n),p=c*a+i,g=h*o+r,m=d*a+i,v=f*o+r,y=a*l*u,_=o*l*u;e.push(p-y*h,g+_*c,m+y*f,v-_*d,m,v)}for(var m=0;m<s;){var v=o[m++],y=1===m;switch(y&&(u=o[m],c=o[m+1],h=u,d=c,v!==oI.L&&v!==oI.C&&v!==oI.Q||(e=[h,d])),v){case oI.M:u=h=o[m++],c=d=o[m++],f(h,d);break;case oI.L:n=o[m++],i=o[m++],p(u,c,n,i),u=n,c=i;break;case oI.C:e.push(o[m++],o[m++],o[m++],o[m++],u=o[m++],c=o[m++]);break;case oI.Q:n=o[m++],i=o[m++],r=o[m++],a=o[m++],e.push(u+2/3*(n-u),c+2/3*(i-c),r+2/3*(n-r),a+2/3*(i-a),r,a),u=r,c=a;break;case oI.A:var _=o[m++],b=o[m++],x=o[m++],w=o[m++],O=o[m++],S=o[m++]+O;m+=1;var T=!o[m++];n=Math.cos(O)*x+_,i=Math.sin(O)*w+b,y?(h=n,d=i,f(h,d)):p(u,c,n,i),u=Math.cos(S)*x+_,c=Math.sin(S)*w+b;for(var M=(T?-1:1)*Math.PI/2,A=O;T?A>S:A<S;A+=M){var C=T?Math.max(A+M,S):Math.min(A+M,S);g(A,C,_,b,x,w)}break;case oI.R:h=u=o[m++],d=c=o[m++],n=h+o[m++],i=d+o[m++],f(n,d),p(n,d,n,i),p(n,i,h,i),p(h,i,h,d),p(h,d,n,d);break;case oI.Z:e&&p(u,c,h,d),u=h,c=d;break}}return e&&e.length>2&&l.push(e),l}function uI(t,e,n,i,r,a,o,s,l,u){if(sI(t,n)&&sI(e,i)&&sI(r,o)&&sI(a,s))l.push(o,s);else{var c=2/u,h=c*c,d=o-t,f=s-e,p=Math.sqrt(d*d+f*f);d/=p,f/=p;var g=n-t,m=i-e,v=r-o,y=a-s,_=g*g+m*m,b=v*v+y*y;if(_<h&&b<h)l.push(o,s);else{var x=d*g+f*m,w=-d*v-f*y,O=_-x*x,S=b-w*w;if(O<h&&x>=0&&S<h&&w>=0)l.push(o,s);else{var T=[],M=[];Object(Me["g"])(t,n,r,o,.5,T),Object(Me["g"])(e,i,a,s,.5,M),uI(T[0],M[0],T[1],M[1],T[2],M[2],T[3],M[3],l,u),uI(T[4],M[4],T[5],M[5],T[6],M[6],T[7],M[7],l,u)}}}}function cI(t,e){var n=lI(t),i=[];e=e||1;for(var r=0;r<n.length;r++){var a=n[r],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],h=a[u++],d=a[u++],f=a[u++],p=a[u++],g=a[u++];uI(s,l,c,h,d,f,p,g,o,e),s=p,l=g}i.push(o)}return i}function hI(t,e,n){var i=t[e],r=t[1-e],a=Math.abs(i/r),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);0===s&&(s=1,o=n);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,h=n-c;if(h>0)for(u=0;u<h;u++)l[u%o]+=1;return l}function dI(t,e,n){for(var i=t.r0,r=t.r,a=t.startAngle,o=t.endAngle,s=Math.abs(o-a),l=s*r,u=r-i,c=l>Math.abs(u),h=hI([l,u],c?0:1,e),d=(c?s:u)/h.length,f=0;f<h.length;f++)for(var p=(c?u:s)/h[f],g=0;g<h[f];g++){var m={};c?(m.startAngle=a+d*f,m.endAngle=a+d*(f+1),m.r0=i+p*g,m.r=i+p*(g+1)):(m.startAngle=a+p*g,m.endAngle=a+p*(g+1),m.r0=i+d*f,m.r=i+d*(f+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,n.push(m)}}function fI(t,e,n){for(var i=t.width,r=t.height,a=i>r,o=hI([i,r],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",h=t[s]/o.length,d=0;d<o.length;d++)for(var f=t[l]/o[d],p=0;p<o[d];p++){var g={};g[u]=d*h,g[c]=p*f,g[s]=h,g[l]=f,g.x+=t.x,g.y+=t.y,n.push(g)}}function pI(t,e,n,i){return t*i-n*e}function gI(t,e,n,i,r,a,o,s){var l=n-t,u=i-e,c=o-r,h=s-a,d=pI(c,h,l,u);if(Math.abs(d)<1e-6)return null;var f=t-r,p=e-a,g=pI(f,p,c,h)/d;return g<0||g>1?null:new di["a"](g*l+t,g*u+e)}function mI(t,e,n){var i=new di["a"];di["a"].sub(i,n,e),i.normalize();var r=new di["a"];di["a"].sub(r,t,e);var a=r.dot(i);return a}function vI(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function yI(t,e,n){for(var i=t.length,r=[],a=0;a<i;a++){var o=t[a],s=t[(a+1)%i],l=gI(o[0],o[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&r.push({projPt:mI(l,e,n),pt:l,idx:a})}if(r.length<2)return[{points:t},{points:t}];r.sort((function(t,e){return t.projPt-e.projPt}));var u=r[0],c=r[r.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var d=[u.pt.x,u.pt.y],f=[c.pt.x,c.pt.y],p=[d],g=[f];for(a=u.idx+1;a<=c.idx;a++)vI(p,t[a].slice());vI(p,f),vI(p,d);for(a=c.idx+1;a<=u.idx+i;a++)vI(g,t[a%i].slice());return vI(g,d),vI(g,f),[{points:p},{points:g}]}function _I(t){var e=t.points,n=[],i=[];Object(fl["d"])(e,n,i);var r=new ki["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]),a=r.width,o=r.height,s=r.x,l=r.y,u=new di["a"],c=new di["a"];return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),yI(e,u,c)}function bI(t,e,n,i){if(1===n)i.push(e);else{var r=Math.floor(n/2),a=t(e);bI(t,a[0],r,i),bI(t,a[1],n-r,i)}return i}function xI(t,e){for(var n=[],i=0;i<e;i++)n.push(Object(uo["a"])(t));return n}function wI(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function OI(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function SI(t,e){var n,i=[],r=t.shape;switch(t.type){case"rect":fI(r,e,i),n=Re["a"];break;case"sector":dI(r,e,i),n=ke["a"];break;case"circle":dI({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},e,i),n=ke["a"];break;default:var a=t.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Object(_["H"])(cI(t.getUpdatedPathProxy(),o),(function(t){return OI(t)})),l=s.length;if(0===l)bI(_I,{points:s[0]},e,i);else if(l===e)for(var u=0;u<l;u++)i.push({points:s[u]});else{var c=0,h=Object(_["H"])(s,(function(t){var e=[],n=[];Object(fl["d"])(t,e,n);var i=(n[1]-e[1])*(n[0]-e[0]);return c+=i,{poly:t,area:i}}));h.sort((function(t,e){return e.area-t.area}));var d=e;for(u=0;u<l;u++){var f=h[u];if(d<=0)break;var p=u===l-1?d:Math.ceil(f.area/c*e);p<0||(bI(_I,{points:f.poly},p,i),d-=p)}}n=Oa["a"];break}if(!n)return xI(t,e);var g=[];for(u=0;u<i.length;u++){var m=new n;m.setShape(i[u]),wI(t,m),g.push(m)}return g}function TI(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var r=[],a=[],o=n<i?t:e,s=Math.min(n,i),l=Math.abs(i-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[o[0],o[1]],d=l,f=2;f<s;){var p=o[f-2],g=o[f-1],m=o[f++],v=o[f++],y=o[f++],_=o[f++],b=o[f++],x=o[f++];if(d<=0)h.push(m,v,y,_,b,x);else{for(var w=Math.min(d,c-1)+1,O=1;O<=w;O++){var S=O/w;Object(Me["g"])(p,m,y,b,S,r),Object(Me["g"])(g,v,_,x,S,a),p=r[3],g=a[3],h.push(r[1],a[1],r[2],a[2],p,g),m=r[5],v=a[5],y=r[6],_=a[6]}d-=w-1}}return o===t?[h,e]:[t,h]}function MI(t,e){for(var n=t.length,i=t[n-2],r=t[n-1],a=[],o=0;o<e.length;)a[o++]=i,a[o++]=r;return a}function AI(t,e){for(var n,i,r,a=[],o=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(n=TI(l,u),c=n[0],h=n[1],i=c,r=h):(h=MI(r||l,l),c=l):(c=MI(i||u,u),h=u),a.push(c),o.push(h)}return[a,o]}function CI(t){for(var e=0,n=0,i=0,r=t.length,a=0,o=r-2;a<r;o=a,a+=2){var s=t[o],l=t[o+1],u=t[a],c=t[a+1],h=s*c-u*l;e+=h,n+=(s+u)*h,i+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function II(t,e,n,i){for(var r=(t.length-2)/6,a=1/0,o=0,s=t.length,l=s-2,u=0;u<r;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var f=0===d?c:(c+d-2)%l+2,p=t[f]-n[0],g=t[f+1]-n[1],m=e[d]-i[0],v=e[d+1]-i[1],y=m-p,_=v-g;h+=y*y+_*_}h<a&&(a=h,o=u)}return o}function DI(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}function LI(t,e,n,i){for(var r,a=[],o=0;o<t.length;o++){var s=t[o],l=e[o],u=CI(s),c=CI(l);null==r&&(r=u[2]<0!==c[2]<0);var h=[],d=[],f=0,p=1/0,g=[],m=s.length;r&&(s=DI(s));for(var v=6*II(s,l,u,c),y=m-2,_=0;_<y;_+=2){var b=(v+_)%y+2;h[_+2]=s[b]-u[0],h[_+3]=s[b+1]-u[1]}if(h[0]=s[v]-u[0],h[1]=s[v+1]-u[1],n>0)for(var x=i/n,w=-i/2;w<=i/2;w+=x){var O=Math.sin(w),S=Math.cos(w),T=0;for(_=0;_<s.length;_+=2){var M=h[_],A=h[_+1],C=l[_]-c[0],I=l[_+1]-c[1],D=C*S-I*O,L=C*O+I*S;g[_]=D,g[_+1]=L;var E=D-M,j=L-A;T+=E*E+j*j}if(T<p){p=T,f=w;for(var P=0;P<g.length;P++)d[P]=g[P]}}else for(var N=0;N<m;N+=2)d[N]=l[N]-c[0],d[N+1]=l[N+1]-c[1];a.push({from:h,to:d,fromCp:u,toCp:c,rotation:-f})}return a}function EI(t){return t.__isCombineMorphing}var jI="__mOriginal_";function PI(t,e,n){var i=jI+e,r=t[i]||t[e];t[i]||(t[i]=t[e]);var a=n.replace,o=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=a?a.apply(this,e):r.apply(this,e),o&&o.apply(this,e),t}}function NI(t,e){var n=jI+e;t[n]&&(t[e]=t[n],t[n]=null)}function RI(t,e){for(var n=0;n<t.length;n++)for(var i=t[n],r=0;r<i.length;){var a=i[r],o=i[r+1];i[r++]=e[0]*a+e[2]*o+e[4],i[r++]=e[1]*a+e[3]*o+e[5]}}function kI(t,e){var n=t.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),r=AI(lI(n),lI(i)),a=r[0],o=r[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&RI(a,s),l&&RI(o,l),PI(e,"updateTransform",{replace:u}),e.transform=null;var c=LI(a,o,10,Math.PI),h=[];PI(e,"buildPath",{replace:function(t){for(var n=e.__morphT,i=1-n,r=[],a=0;a<c.length;a++){var o=c[a],s=o.from,l=o.to,u=o.rotation*n,d=o.fromCp,f=o.toCp,p=Math.sin(u),g=Math.cos(u);Object(cr["j"])(r,d,f,n);for(var m=0;m<s.length;m+=2){var v=s[m],y=s[m+1],_=l[m],b=l[m+1],x=v*i+_*n,w=y*i+b*n;h[m]=x*g-w*p+r[0],h[m+1]=x*p+w*g+r[1]}var O=h[0],S=h[1];t.moveTo(O,S);for(m=2;m<s.length;){_=h[m++],b=h[m++];var T=h[m++],M=h[m++],A=h[m++],C=h[m++];O===_&&S===b&&T===A&&M===C?t.lineTo(A,C):t.bezierCurveTo(_,b,T,M,A,C),O=A,S=C}}}})}function BI(t,e,n){if(!t||!e)return e;var i=n.done,r=n.during;function a(){NI(e,"buildPath"),NI(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return kI(t,e),e.__morphT=0,e.animateTo({__morphT:1},Object(_["i"])({during:function(t){e.dirtyShape(),r&&r(t)},done:function(){a(),i&&i()}},n)),e}function zI(t,e,n,i,r,a){var o=16;t=r===n?0:Math.round(32767*(t-n)/(r-n)),e=a===i?0:Math.round(32767*(e-i)/(a-i));for(var s,l=0,u=(1<<o)/2;u>0;u/=2){var c=0,h=0;(t&u)>0&&(c=1),(e&u)>0&&(h=1),l+=u*u*(3*c^h),0===h&&(1===c&&(t=u-1-t,e=u-1-e),s=t,t=e,e=s)}return l}function VI(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,a=Object(_["H"])(t,(function(t){var a=t.getBoundingRect(),o=t.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),l=a.y+a.height/2+(o?o[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]})),o=Object(_["H"])(a,(function(a,o){return{cp:a,z:zI(a[0],a[1],e,n,i,r),path:t[o]}}));return o.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function FI(t){return SI(t.path,t.count)}function GI(){return{fromIndividuals:[],toIndividuals:[],count:0}}function HI(t,e,n){var i=[];function r(t){for(var e=0;e<t.length;e++){var n=t[e];EI(n)?r(n.childrenRef()):n instanceof s["b"]&&i.push(n)}}r(t);var a=i.length;if(!a)return GI();var o=n.dividePath||FI,l=o({path:e,count:a});if(l.length!==a)return console.error("Invalid morphing: unmatched splitted path"),GI();i=VI(i),l=VI(l);for(var u=n.done,c=n.during,h=n.individualDelay,d=new V["c"],f=0;f<a;f++){var p=i[f],g=l[f];g.parent=e,g.copyTransform(d),h||kI(p,g)}function m(t){for(var e=0;e<l.length;e++)l[e].addSelfToZr(t)}function v(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,NI(e,"addSelfToZr"),NI(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return l},PI(e,"addSelfToZr",{after:function(t){m(t)}}),PI(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<l.length;e++)l[e].removeSelfFromZr(t)}});var y=l.length;if(h){var b=y,x=function(){b--,0===b&&(v(),u&&u())};for(f=0;f<y;f++){var w=h?Object(_["i"])({delay:(n.delay||0)+h(f,y,i[f],l[f]),done:x},n):n;BI(i[f],l[f],w)}}else e.__morphT=0,e.animateTo({__morphT:1},Object(_["i"])({during:function(t){for(var n=0;n<y;n++){var i=l[n];i.__morphT=e.__morphT,i.dirtyShape()}c&&c(t)},done:function(){v();for(var e=0;e<t.length;e++)NI(t[e],"updateTransform");u&&u()}},n));return e.__zr&&m(e.__zr),{fromIndividuals:i,toIndividuals:l,count:y}}function UI(t,e,n){var i=e.length,r=[],a=n.dividePath||FI;function o(t){for(var e=0;e<t.length;e++){var n=t[e];EI(n)?o(n.childrenRef()):n instanceof s["b"]&&r.push(n)}}if(EI(t)){o(t.childrenRef());var l=r.length;if(l<i)for(var u=0,c=l;c<i;c++)r.push(Object(uo["a"])(r[u++%l]));r.length=i}else{r=a({path:t,count:i});var h=t.getComputedTransform();for(c=0;c<r.length;c++)r[c].setLocalTransform(h);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),GI()}r=VI(r),e=VI(e);var d=n.individualDelay;for(c=0;c<i;c++){var f=d?Object(_["i"])({delay:(n.delay||0)+d(c,i,r[c],e[c])},n):n;BI(r[c],e[c],f)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}function WI(t){return Object(_["t"])(t[0])}function XI(t,e){for(var n=[],i=t.length,r=0;r<i;r++)n.push({one:t[r],many:[]});for(r=0;r<e.length;r++){var a=e[r].length,o=void 0;for(o=0;o<a;o++)n[o%i].many.push(e[r][o])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}a=l.length;var u=Math.ceil(a/2);n[r].many=l.slice(u,a),n[s].many=l.slice(0,u),s++}return n}var ZI={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var r=Object(uo["a"])(t.path);r.setStyle("opacity",n),e.push(r)}return e},split:null};function qI(t,e,n,i,r,a){if(t.length&&e.length){var o=Object(ee["a"])("update",i,r);if(o&&o.duration>0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},o);WI(t)&&(s=t,l=e),WI(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,d=s?XI(l,s):XI(h?e:t,[h?t:e]),f=0,p=0;p<d.length;p++)f+=d[p].many.length;var g=0;for(p=0;p<d.length;p++)m(d[p],h,g,f),g+=d[p].many.length}}function m(t,e,i,r,o){var s=t.many,l=t.one;if(1!==s.length||o)for(var h=Object(_["i"])({dividePath:ZI[n],individualDelay:u&&function(t,e,n,a){return u(t+i,r)}},c),d=e?HI(s,l,h):UI(l,s,h),f=d.fromIndividuals,p=d.toIndividuals,g=f.length,v=0;v<g;v++){x=u?Object(_["i"])({delay:u(v,g)},c):c;a(f[v],p[v],e?s[v]:t.one,e?t.one:s[v],x)}else{var y=e?s[0]:l,b=e?l:s[0];if(EI(y))m({many:[y],one:b},!0,i,r,!0);else{var x=u?Object(_["i"])({delay:u(i,r)},c):c;BI(y,b,x),a(y,b,y,b,x)}}}}function YI(t){if(!t)return[];if(Object(_["t"])(t)){for(var e=[],n=0;n<t.length;n++)e.push(YI(t[n]));return e}var i=[];return t.traverse((function(t){t instanceof s["b"]&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)})),i}var KI=1e4,QI=Object(Te["o"])();function JI(t){for(var e=t.dimensions,n=0;n<e.length;n++){var i=t.getDimensionInfo(e[n]);if(i&&0===i.otherDims.itemGroupId)return e[n]}}function $I(t){var e=[];return Object(_["k"])(t,(function(t){var n=t.data;if(!(n.count()>KI))for(var i=n.getIndices(),r=JI(n),a=0;a<i.length;a++)e.push({data:n,dim:t.dim||r,divide:t.divide,dataIndex:a})})),e}function tD(t,e,n){t.traverse((function(t){t instanceof s["b"]&&Object(ee["c"])(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function eD(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function nD(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function iD(t,e,n){var i=Object(ee["a"])("update",n,e);i&&t.traverse((function(t){if(t instanceof os["c"]){var e=Object(ee["b"])(t);e&&t.animateFrom({style:e},i)}}))}function rD(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var r=t[i],a=e[i];if(r.data.getId(r.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function aD(t,e,n){var i=$I(t),r=$I(e);function a(t,e,n,i,r){(n||t)&&e.animateFrom({style:n&&n!==t?Object(_["m"])(Object(_["m"])({},n.style),t.style):t.style},r)}function o(t){for(var e=0;e<t.length;e++)if(t[e].dim)return t[e].dim}var l=o(i),u=o(r),c=!1;function h(t,e){return function(n){var i=n.data,r=n.dataIndex;if(e)return i.getId(r);var a=i.hostModel&&i.hostModel.get("dataGroupId"),o=t?l||u:u||l,s=o&&i.getDimensionInfo(o),c=s&&s.ordinalMeta;if(s){var h=i.get(s.name,r);return c&&c.categories[h]||h+""}var d=i.getRawDataItem(r);return d&&d.groupId?d.groupId+"":a||i.getId(r)}}var d=rD(i,r),f={};if(!d)for(var p=0;p<r.length;p++){var g=r[p],m=g.data.getItemGraphicEl(g.dataIndex);m&&(f[m.id]=!0)}function v(t,e){var n=i[e],o=r[t],s=o.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=o.data.getItemGraphicEl(o.dataIndex);l!==u?l&&f[l.id]||u&&(nD(u),l?(nD(l),eD(l),c=!0,qI(YI(l),YI(u),o.divide,s,t,a)):tD(u,s,t)):u&&iD(u,o.dataIndex,s)}new Ql["a"](i,r,h(!0,d),h(!1,d),null,"multiple").update(v).updateManyToOne((function(t,e){var n=r[t],o=n.data,s=o.hostModel,l=o.getItemGraphicEl(n.dataIndex),u=Object(_["n"])(Object(_["H"])(e,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==l&&!f[t.id]}));l&&(nD(l),u.length?(Object(_["k"])(u,(function(t){nD(t),eD(t)})),c=!0,qI(YI(u),YI(l),n.divide,s,t,a)):tD(l,s,n.dataIndex))})).updateOneToMany((function(t,e){var n=i[e],o=n.data.getItemGraphicEl(n.dataIndex);if(!o||!f[o.id]){var s=Object(_["n"])(Object(_["H"])(t,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==o})),l=r[t[0]].data.hostModel;s.length&&(Object(_["k"])(s,(function(t){return nD(t)})),o?(nD(o),eD(o),c=!0,qI(YI(o),YI(s),n.divide,l,t[0],a)):Object(_["k"])(s,(function(e){return tD(e,l,t[0])})))}})).updateManyToMany((function(t,e){new Ql["a"](e,t,(function(t){return i[t].data.getId(i[t].dataIndex)}),(function(t){return r[t].data.getId(r[t].dataIndex)})).update((function(n,i){v(t[n],e[i])})).execute()})).execute(),c&&Object(_["k"])(e,(function(t){var e=t.data,i=e.hostModel,r=i&&n.getViewOfSeriesModel(i),a=Object(ee["a"])("update",i,0);r&&i.isAnimationEnabled()&&a&&a.duration>0&&r.group.traverse((function(t){t instanceof s["b"]&&!t.animators.length&&t.animateFrom({style:{opacity:0}},a)}))}))}function oD(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function sD(t){return Object(_["t"])(t)?t.sort().join(","):t}function lD(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function uD(t,e){var n=Object(_["f"])(),i=Object(_["f"])(),r=Object(_["f"])();return Object(_["k"])(t.oldSeries,(function(e,n){var a=t.oldData[n],o=oD(e),s=sD(o);i.set(s,a),Object(_["t"])(o)&&Object(_["k"])(o,(function(t){r.set(t,{data:a,key:s})}))})),Object(_["k"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.getData(),a=oD(t),o=sD(a),s=i.get(o);if(s)n.set(o,{oldSeries:[{divide:lD(s),data:s}],newSeries:[{divide:lD(e),data:e}]});else if(Object(_["t"])(a)){0;var l=[];Object(_["k"])(a,(function(t){var e=i.get(t);e&&l.push({divide:lD(e),data:e})})),l.length&&n.set(o,{oldSeries:l,newSeries:[{data:e,divide:lD(e)}]})}else{var u=r.get(a);if(u){var c=n.get(u.key);c||(c={oldSeries:[{data:u.data,divide:lD(u.data)}],newSeries:[]},n.set(u.key,c)),c.newSeries.push({data:e,divide:lD(e)})}}}})),n}function cD(t,e){for(var n=0;n<t.length;n++){var i=null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id;if(i)return n}}function hD(t,e,n,i){var r=[],a=[];Object(_["k"])(Object(Te["r"])(t.from),(function(t){var n=cD(e.oldSeries,t);n>=0&&r.push({data:e.oldData[n],divide:lD(e.oldData[n]),dim:t.dimension})})),Object(_["k"])(Object(Te["r"])(t.to),(function(t){var e=cD(n.updatedSeries,t);if(e>=0){var i=n.updatedSeries[e].getData();a.push({data:i,divide:lD(i),dim:t.dimension})}})),r.length>0&&a.length>0&&aD(r,a,i)}function dD(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(_["k"])(Object(Te["r"])(n.seriesTransition),(function(t){Object(_["k"])(Object(Te["r"])(t.to),(function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][Kt["a"]]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var i=QI(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)Object(_["k"])(Object(Te["r"])(r),(function(t){hD(t,i,n,e)}));else{var a=uD(i,n);Object(_["k"])(a.keys(),(function(t){var n=a.get(t);aD(n.oldSeries,n.newSeries,e)}))}Object(_["k"])(n.updatedSeries,(function(t){t[Kt["a"]]&&(t[Kt["a"]]=!1)}))}for(var o=t.getSeries(),s=i.oldSeries=[],l=i.oldData=[],u=0;u<o.length;u++){var c=o[u].getData();c.count()<KI&&(s.push(o[u]),l.push(c))}}))}var fD=n("ee29");Object(i["a"])([a["a"]]),Object(i["a"])([Zt]),Object(i["a"])([mn,ni,Pi,ya,Ha,Js,Gl,bc,Ph,Uh,ed,sp,zp,og,jg,Fg,dm,Om,$m,uv,Cv,r_]),Object(i["a"])(ib),Object(i["a"])(Yb),Object(i["a"])(Qs),Object(i["a"])(xx),Object(i["a"])(op),Object(i["a"])(Ex),Object(i["a"])(Kx),Object(i["a"])(RO),Object(i["a"])(xS),Object(i["a"])(nb),Object(i["a"])(iT),Object(i["a"])(oT),Object(i["a"])(LT),Object(i["a"])(rM),Object(i["a"])(mM),Object(i["a"])(IM),Object(i["a"])(rA),Object(i["a"])(zA),Object(i["a"])(xA),Object(i["a"])(BA),Object(i["a"])(NC),Object(i["a"])(AC),Object(i["a"])(PC),Object(i["a"])(FC),Object(i["a"])(rI),Object(i["a"])(aI["a"]),Object(i["a"])(dD),Object(i["a"])(fD["a"])},"342d":function(t,e,n){"use strict";n.d(e,"b",(function(){return A})),n.d(e,"c",(function(){return C})),n.d(e,"d",(function(){return I})),n.d(e,"a",(function(){return D}));var i=n("21a10"),r=n("cbe5"),a=n("20c8"),o=n("401b"),s=a["a"].CMD,l=[[],[],[]],u=Math.sqrt,c=Math.atan2;function h(t,e){if(e){var n,i,r,a,h,d,f=t.data,p=t.len(),g=s.M,m=s.C,v=s.L,y=s.R,_=s.A,b=s.Q;for(r=0,a=0;r<p;){switch(n=f[r++],a=r,i=0,n){case g:i=1;break;case v:i=1;break;case m:i=3;break;case b:i=2;break;case _:var x=e[4],w=e[5],O=u(e[0]*e[0]+e[1]*e[1]),S=u(e[2]*e[2]+e[3]*e[3]),T=c(-e[1]/S,e[0]/O);f[r]*=O,f[r++]+=x,f[r]*=S,f[r++]+=w,f[r++]*=O,f[r++]*=S,f[r++]+=T,f[r++]+=T,r+=2,a=r;break;case y:d[0]=f[r++],d[1]=f[r++],Object(o["b"])(d,d,e),f[a++]=d[0],f[a++]=d[1],d[0]+=f[r++],d[1]+=f[r++],Object(o["b"])(d,d,e),f[a++]=d[0],f[a++]=d[1]}for(h=0;h<i;h++){var M=l[h];M[0]=f[r++],M[1]=f[r++],Object(o["b"])(M,M,e),f[a++]=M[0],f[a++]=M[1]}}t.increaseVersion()}}var d=n("6d8b"),f=Math.sqrt,p=Math.sin,g=Math.cos,m=Math.PI;function v(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function y(t,e){return(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e))}function _(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(y(t,e))}function b(t,e,n,i,r,a,o,s,l,u,c){var h=l*(m/180),d=g(h)*(t-n)/2+p(h)*(e-i)/2,v=-1*p(h)*(t-n)/2+g(h)*(e-i)/2,b=d*d/(o*o)+v*v/(s*s);b>1&&(o*=f(b),s*=f(b));var x=(r===a?-1:1)*f((o*o*(s*s)-o*o*(v*v)-s*s*(d*d))/(o*o*(v*v)+s*s*(d*d)))||0,w=x*o*v/s,O=x*-s*d/o,S=(t+n)/2+g(h)*w-p(h)*O,T=(e+i)/2+p(h)*w+g(h)*O,M=_([1,0],[(d-w)/o,(v-O)/s]),A=[(d-w)/o,(v-O)/s],C=[(-1*d-w)/o,(-1*v-O)/s],I=_(A,C);if(y(A,C)<=-1&&(I=m),y(A,C)>=1&&(I=0),I<0){var D=Math.round(I/m*1e6)/1e6;I=2*m+D%2*m}c.addData(u,S,T,o,s,M,I,h,a)}var x=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,w=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function O(t){var e=new a["a"];if(!t)return e;var n,i=0,r=0,o=i,s=r,l=a["a"].CMD,u=t.match(x);if(!u)return e;for(var c=0;c<u.length;c++){for(var h=u[c],d=h.charAt(0),f=void 0,p=h.match(w)||[],g=p.length,m=0;m<g;m++)p[m]=parseFloat(p[m]);var v=0;while(v<g){var y=void 0,_=void 0,O=void 0,S=void 0,T=void 0,M=void 0,A=void 0,C=i,I=r,D=void 0,L=void 0;switch(d){case"l":i+=p[v++],r+=p[v++],f=l.L,e.addData(f,i,r);break;case"L":i=p[v++],r=p[v++],f=l.L,e.addData(f,i,r);break;case"m":i+=p[v++],r+=p[v++],f=l.M,e.addData(f,i,r),o=i,s=r,d="l";break;case"M":i=p[v++],r=p[v++],f=l.M,e.addData(f,i,r),o=i,s=r,d="L";break;case"h":i+=p[v++],f=l.L,e.addData(f,i,r);break;case"H":i=p[v++],f=l.L,e.addData(f,i,r);break;case"v":r+=p[v++],f=l.L,e.addData(f,i,r);break;case"V":r=p[v++],f=l.L,e.addData(f,i,r);break;case"C":f=l.C,e.addData(f,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),i=p[v-2],r=p[v-1];break;case"c":f=l.C,e.addData(f,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r),i+=p[v-2],r+=p[v-1];break;case"S":y=i,_=r,D=e.len(),L=e.data,n===l.C&&(y+=i-L[D-4],_+=r-L[D-3]),f=l.C,C=p[v++],I=p[v++],i=p[v++],r=p[v++],e.addData(f,y,_,C,I,i,r);break;case"s":y=i,_=r,D=e.len(),L=e.data,n===l.C&&(y+=i-L[D-4],_+=r-L[D-3]),f=l.C,C=i+p[v++],I=r+p[v++],i+=p[v++],r+=p[v++],e.addData(f,y,_,C,I,i,r);break;case"Q":C=p[v++],I=p[v++],i=p[v++],r=p[v++],f=l.Q,e.addData(f,C,I,i,r);break;case"q":C=p[v++]+i,I=p[v++]+r,i+=p[v++],r+=p[v++],f=l.Q,e.addData(f,C,I,i,r);break;case"T":y=i,_=r,D=e.len(),L=e.data,n===l.Q&&(y+=i-L[D-4],_+=r-L[D-3]),i=p[v++],r=p[v++],f=l.Q,e.addData(f,y,_,i,r);break;case"t":y=i,_=r,D=e.len(),L=e.data,n===l.Q&&(y+=i-L[D-4],_+=r-L[D-3]),i+=p[v++],r+=p[v++],f=l.Q,e.addData(f,y,_,i,r);break;case"A":O=p[v++],S=p[v++],T=p[v++],M=p[v++],A=p[v++],C=i,I=r,i=p[v++],r=p[v++],f=l.A,b(C,I,i,r,M,A,O,S,T,f,e);break;case"a":O=p[v++],S=p[v++],T=p[v++],M=p[v++],A=p[v++],C=i,I=r,i+=p[v++],r+=p[v++],f=l.A,b(C,I,i,r,M,A,O,S,T,f,e);break}}"z"!==d&&"Z"!==d||(f=l.Z,e.addData(f),i=o,r=s),n=f}return e.toStatic(),e}var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.applyTransform=function(t){},e}(r["b"]);function T(t){return null!=t.setData}function M(t,e){var n=O(t),i=Object(d["m"])({},e);return i.buildPath=function(t){if(T(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){h(n,t),this.dirtyShape()},i}function A(t,e){return new S(M(t,e))}function C(t,e){var n=M(t,e),r=function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return Object(i["a"])(e,t),e}(S);return r}function I(t,e){for(var n=[],i=t.length,a=0;a<i;a++){var o=t[a];n.push(o.getUpdatedPathProxy(!0))}var s=new r["b"](e);return s.createPathProxy(),s.buildPath=function(t){if(T(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},s}function D(t,e){e=e||{};var n=new r["b"];return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?h(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}},3437:function(t,e,n){"use strict";function i(t){return isFinite(t)}function r(t,e,n){var r=null==e.x?0:e.x,a=null==e.x2?1:e.x2,o=null==e.y?0:e.y,s=null==e.y2?0:e.y2;e.global||(r=r*n.width+n.x,a=a*n.width+n.x,o=o*n.height+n.y,s=s*n.height+n.y),r=i(r)?r:0,a=i(a)?a:1,o=i(o)?o:0,s=i(s)?s:0;var l=t.createLinearGradient(r,o,a,s);return l}function a(t,e,n){var r=n.width,a=n.height,o=Math.min(r,a),s=null==e.x?.5:e.x,l=null==e.y?.5:e.y,u=null==e.r?.5:e.r;e.global||(s=s*r+n.x,l=l*a+n.y,u*=o),s=i(s)?s:.5,l=i(l)?l:.5,u=u>=0&&i(u)?u:.5;var c=t.createRadialGradient(s,l,0,s,l,u);return c}function o(t,e,n){for(var i="radial"===e.type?a(t,e,n):r(t,e,n),o=e.colorStops,s=0;s<o.length;s++)i.addColorStop(o[s].offset,o[s].color);return i}function s(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function l(t){return parseInt(t,10)}function u(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||l(s[i])||l(t.style[i]))-(l(s[a])||0)-(l(s[o])||0)|0}n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u}))},3842:function(t,e,n){"use strict";n.d(e,"l",(function(){return s})),n.d(e,"p",(function(){return l})),n.d(e,"v",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return d})),n.d(e,"f",(function(){return f})),n.d(e,"e",(function(){return p})),n.d(e,"b",(function(){return g})),n.d(e,"a",(function(){return m})),n.d(e,"u",(function(){return v})),n.d(e,"k",(function(){return y})),n.d(e,"o",(function(){return b})),n.d(e,"r",(function(){return x})),n.d(e,"s",(function(){return w})),n.d(e,"m",(function(){return O})),n.d(e,"q",(function(){return S})),n.d(e,"t",(function(){return T})),n.d(e,"n",(function(){return M})),n.d(e,"j",(function(){return A})),n.d(e,"i",(function(){return C})),n.d(e,"d",(function(){return D}));var i=n("6d8b"),r=1e-4,a=20;function o(t){return t.replace(/^\s+|\s+$/g,"")}function s(t,e,n,i){var r=e[0],a=e[1],o=n[0],s=n[1],l=a-r,u=s-o;if(0===l)return 0===u?o:(o+s)/2;if(i)if(l>0){if(t<=r)return o;if(t>=a)return s}else{if(t>=r)return o;if(t<=a)return s}else{if(t===r)return o;if(t===a)return s}return(t-r)/l*u+o}function l(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return i["C"](t)?o(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function u(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),a),t=(+t).toFixed(e),n?t:+t}function c(t){return t.sort((function(t,e){return t-e})),t}function h(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return d(t)}function d(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,a=e.indexOf("."),o=a<0?0:r-1-a;return Math.max(0,o-i)}function f(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),a=Math.round(n(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20}function p(t,e,n){if(!t[e])return 0;var r=i["N"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;var a=Math.pow(10,n),o=i["H"](t,(function(t){return(isNaN(t)?0:t)/r*a*100})),s=100*a,l=i["H"](o,(function(t){return Math.floor(t)})),u=i["N"](l,(function(t,e){return t+e}),0),c=i["H"](o,(function(t,e){return t-l[e]}));while(u<s){for(var h=Number.NEGATIVE_INFINITY,d=null,f=0,p=c.length;f<p;++f)c[f]>h&&(h=c[f],d=f);++l[d],c[d]=0,++u}return l[e]/a}function g(t,e){var n=Math.max(h(t),h(e)),i=t+e;return n>a?i:u(i,n)}var m=9007199254740991;function v(t){var e=2*Math.PI;return(t%e+e)%e}function y(t){return t>-r&&t<r}var _=/^(?:(\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 b(t){if(t instanceof Date)return t;if(i["C"](t)){var e=_.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function x(t){return Math.pow(10,w(t))}function w(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function O(t,e){var n,i=w(t),r=Math.pow(10,i),a=t/r;return n=e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,t=n*r,i>=-20?+t.toFixed(i<0?-i:0):t}function S(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],a=n-i;return a?r+a*(t[i]-r):r}function T(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,a=t[i].close,o=0;o<2;o++)r[o]<=e&&(r[o]=e,a[o]=o?1:1-n),e=r[o],n=a[o];r[0]===r[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function M(t){var e=parseFloat(t);return e==t&&(0!==e||!i["C"](t)||t.indexOf("x")<=0)?e:NaN}function A(t){return!isNaN(M(t))}function C(){return Math.round(9*Math.random())}function I(t,e){return 0===e?t:I(e,t%e)}function D(t,e){return null==t?e:null==e?t:t*e/I(t,e)}},"38a2":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l}));var i=n("6d8b"),r=n("2b17"),a=n("eda2"),o=/\{@(.+?)\}/g,s=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),a=n.getName(t),o=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:a,dataIndex:r,data:o,dataType:e,value:i,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,s,l,u){e=e||"normal";var c=this.getData(n),h=this.getDataParams(t,n);if(u&&(h.value=u.interpolatedValue),null!=s&&i["t"](h.value)&&(h.value=h.value[s]),!l){var d=c.getItemModel(t);l=d.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(i["w"](l))return h.status=e,h.dimensionIndex=s,l(h);if(i["C"](l)){var f=Object(a["f"])(l,h);return f.replace(o,(function(e,n){var a=n.length,o=n;"["===o.charAt(0)&&"]"===o.charAt(a-1)&&(o=+o.slice(1,a-1));var s=Object(r["e"])(c,t,o);if(u&&i["t"](u.interpolatedValue)){var l=c.getDimensionIndex(o);l>=0&&(s=u.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return Object(r["e"])(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function l(t){var e,n;return i["A"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}},"38ac":function(t,e,n){"use strict";n("a792")},3901:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var i=n("282b"),r=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],a=Object(i["a"])(r),o=function(){function t(){}return t.prototype.getLineStyle=function(t){return a(this,t)},t}()},"392f":function(t,e,n){"use strict";var i=n("21a10"),r=n("19eb"),a=n("9850"),o=[],s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return Object(i["a"])(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new a["a"](1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(o)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var a=this._displayables[r];if(a.contain(t,e))return!0}return!1},e}(r["c"]);e["a"]=s},3985:function(t,e,n){"use strict";n("c1ff")},"3db9":function(t,e,n){"use strict";function i(t){var e=new XMLHttpRequest;e.open("get",t.url),e.responseType=t.responseType||"text",t.onprogress&&(e.onprogress=function(e){if(e.lengthComputable){var n=e.loaded/e.total;t.onprogress(n,e.loaded,e.total)}else t.onprogress(null)}),e.onload=function(n){e.status>=400?t.onerror&&t.onerror():t.onload&&t.onload(e.response)},t.onerror&&(e.onerror=t.onerror),e.send(null)}e["a"]={get:i}},"401b":function(t,e,n){"use strict";function i(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function r(t,e){return t[0]=e[0],t[1]=e[1],t}function a(t){return[t[0],t[1]]}function o(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function c(t){return Math.sqrt(h(t))}n.d(e,"e",(function(){return i})),n.d(e,"d",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"p",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"o",(function(){return l})),n.d(e,"q",(function(){return u})),n.d(e,"i",(function(){return c})),n.d(e,"n",(function(){return d})),n.d(e,"m",(function(){return f})),n.d(e,"h",(function(){return p})),n.d(e,"f",(function(){return g})),n.d(e,"g",(function(){return v})),n.d(e,"j",(function(){return y})),n.d(e,"b",(function(){return _})),n.d(e,"l",(function(){return b})),n.d(e,"k",(function(){return x}));function h(t){return t[0]*t[0]+t[1]*t[1]}function d(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function f(t,e){var n=c(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function p(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var g=p;function m(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var v=m;function y(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function _(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function b(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function x(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},4041:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return o}));var i=n("e0d3"),r=Object(i["o"])(),a=Object(i["o"])(),o=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var a=Object(i["r"])(this.get("color",!0)),o=this.get("colorLayer",!0);return u(this,r,a,o,t,e,n)},t.prototype.clearColorPalette=function(){c(this,r)},t}();function s(t,e,n,r){var o=Object(i["r"])(t.get(["aria","decal","decals"]));return u(t,a,o,null,e,n,r)}function l(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}function u(t,e,n,i,r,a,o){a=a||t;var s=e(a),u=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(r))return c[r];var h=null!=o&&i?l(i,o):n;if(h=h||n,h&&h.length){var d=h[u];return r&&(c[r]=d),s.paletteIdx=(u+1)%h.length,d}}function c(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}},"41ef":function(t,e,n){"use strict";n.r(e),n.d(e,"parse",(function(){return v})),n.d(e,"lift",(function(){return b})),n.d(e,"toHex",(function(){return x})),n.d(e,"fastLerp",(function(){return w})),n.d(e,"fastMapToColor",(function(){return O})),n.d(e,"lerp",(function(){return S})),n.d(e,"mapToColor",(function(){return T})),n.d(e,"modifyHSL",(function(){return M})),n.d(e,"modifyAlpha",(function(){return A})),n.d(e,"stringify",(function(){return C})),n.d(e,"lum",(function(){return I})),n.d(e,"random",(function(){return D}));var i=n("d51b"),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(t){return t=Math.round(t),t<0?0:t>255?255:t}function o(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function d(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new i["a"](20),g=null;function m(t,e){g&&f(g,e),g=p.put(t,g||e.slice())}function v(t,e){if(t){e=e||[];var n=p.get(t);if(n)return f(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in r)return f(e,r[i]),m(t,e),e;var a=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),s=i.indexOf(")");if(-1!==o&&s+1===a){var c=i.substr(0,o),h=i.substr(o+1,s-(o+1)).split(","),g=1;switch(c){case"rgba":if(4!==h.length)return 3===h.length?d(e,+h[0],+h[1],+h[2],1):d(e,0,0,0,1);g=u(h.pop());case"rgb":return 3!==h.length?void d(e,0,0,0,1):(d(e,l(h[0]),l(h[1]),l(h[2]),g),m(t,e),e);case"hsla":return 4!==h.length?void d(e,0,0,0,1):(h[3]=u(h[3]),y(h,e),m(t,e),e);case"hsl":return 3!==h.length?void d(e,0,0,0,1):(y(h,e),m(t,e),e);default:return}}d(e,0,0,0,1)}else{if(4===a||5===a){var v=parseInt(i.slice(1,4),16);return v>=0&&v<=4095?(d(e,(3840&v)>>4|(3840&v)>>8,240&v|(240&v)>>4,15&v|(15&v)<<4,5===a?parseInt(i.slice(4),16)/15:1),m(t,e),e):void d(e,0,0,0,1)}if(7===a||9===a){v=parseInt(i.slice(1,7),16);return v>=0&&v<=16777215?(d(e,(16711680&v)>>16,(65280&v)>>8,255&v,9===a?parseInt(i.slice(7),16)/255:1),m(t,e),e):void d(e,0,0,0,1)}}}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=u(t[1]),r=u(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return e=e||[],d(e,a(255*c(s,o,n+1/3)),a(255*c(s,o,n)),a(255*c(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function _(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:a===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}function b(t,e){var n=v(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return C(n,4===n.length?"rgba":"rgb")}}function x(t){var e=v(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),l=e[r],u=e[o],c=i-r;return n[0]=a(h(l[0],u[0],c)),n[1]=a(h(l[1],u[1],c)),n[2]=a(h(l[2],u[2],c)),n[3]=s(h(l[3],u[3],c)),n}}var O=w;function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),l=v(e[r]),u=v(e[o]),c=i-r,d=C([a(h(l[0],u[0],c)),a(h(l[1],u[1],c)),a(h(l[2],u[2],c)),s(h(l[3],u[3],c))],"rgba");return n?{color:d,leftIndex:r,rightIndex:o,value:i}:d}}var T=S;function M(t,e,n,i){var r=v(t);if(t)return r=_(r),null!=e&&(r[0]=o(e)),null!=n&&(r[1]=u(n)),null!=i&&(r[2]=u(i)),C(y(r),"rgba")}function A(t,e){var n=v(t);if(n&&null!=e)return n[3]=s(e),C(n,"rgba")}function C(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function I(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function D(){return C([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},"42e5":function(t,e,n){"use strict";var i=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();e["a"]=i},4319:function(t,e,n){"use strict";var i=n("22d1"),r=n("625e"),a=n("282b"),o=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],s=Object(a["a"])(o),l=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return s(this,t,e)},t}(),u=n("7837"),c=n("76a5"),h=["textStyle","color"],d=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],f=new c["a"],p=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(h):null)},t.prototype.getFont=function(){return Object(u["d"])({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<d.length;n++)e[d[n]]=this.getShallow(d[n]);return f.useStyle(e),f.update(),f.getBoundingRect()},t}(),g=p,m=n("3901"),v=n("551f"),y=n("6d8b"),_=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){Object(y["I"])(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null,a=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(a,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(Object(y["d"])(this.option))},t.prototype.parsePath=function(t){return"string"===typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!i["a"].node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length;i++)if(t[i]&&(n=n&&"object"===typeof n?n[t[i]]:null,null==n))break;return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Object(r["b"])(_),Object(r["a"])(_),Object(y["K"])(_,m["b"]),Object(y["K"])(_,v["b"]),Object(y["K"])(_,l),Object(y["K"])(_,g);e["a"]=_},4573:function(t,e,n){"use strict";var i=n("21a10"),r=n("cbe5"),a=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),o=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(r["b"]);o.prototype.type="ring",e["a"]=o},4747:function(t,e,n){"use strict";n("503c")},"47fe":function(t,e,n){"use strict";n("aaec")},"48a9":function(t,e,n){"use strict";var i=n("21a10"),r=n("42e5"),a=function(t){function e(e,n,i,r,a,o){var s=t.call(this,a)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=o||!1,s}return Object(i["a"])(e,t),e}(r["a"]);e["a"]=a},"491e":function(t,e,n){},"4a3f":function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return m})),n.d(e,"f",(function(){return v})),n.d(e,"c",(function(){return y})),n.d(e,"g",(function(){return _})),n.d(e,"e",(function(){return b})),n.d(e,"d",(function(){return x})),n.d(e,"h",(function(){return w})),n.d(e,"i",(function(){return O})),n.d(e,"m",(function(){return S})),n.d(e,"j",(function(){return T})),n.d(e,"n",(function(){return M})),n.d(e,"l",(function(){return A})),n.d(e,"k",(function(){return C}));var i=n("401b"),r=Math.pow,a=Math.sqrt,o=1e-8,s=1e-4,l=a(3),u=1/3,c=Object(i["e"])(),h=Object(i["e"])(),d=Object(i["e"])();function f(t){return t>-o&&t<o}function p(t){return t>o||t<-o}function g(t,e,n,i,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*i+3*a*n)}function m(t,e,n,i,r){var a=1-r;return 3*(((e-t)*a+2*(n-e)*r)*a+(i-n)*r*r)}function v(t,e,n,i,o,s){var c=i+3*(e-n)-t,h=3*(n-2*e+t),d=3*(e-t),p=t-o,g=h*h-3*c*d,m=h*d-9*c*p,v=d*d-3*h*p,y=0;if(f(g)&&f(m))if(f(h))s[0]=0;else{var _=-d/h;_>=0&&_<=1&&(s[y++]=_)}else{var b=m*m-4*g*v;if(f(b)){var x=m/g,w=(_=-h/c+x,-x/2);_>=0&&_<=1&&(s[y++]=_),w>=0&&w<=1&&(s[y++]=w)}else if(b>0){var O=a(b),S=g*h+1.5*c*(-m+O),T=g*h+1.5*c*(-m-O);S=S<0?-r(-S,u):r(S,u),T=T<0?-r(-T,u):r(T,u);_=(-h-(S+T))/(3*c);_>=0&&_<=1&&(s[y++]=_)}else{var M=(2*g*h-3*c*m)/(2*a(g*g*g)),A=Math.acos(M)/3,C=a(g),I=Math.cos(A),D=(_=(-h-2*C*I)/(3*c),w=(-h+C*(I+l*Math.sin(A)))/(3*c),(-h+C*(I-l*Math.sin(A)))/(3*c));_>=0&&_<=1&&(s[y++]=_),w>=0&&w<=1&&(s[y++]=w),D>=0&&D<=1&&(s[y++]=D)}}return y}function y(t,e,n,i,r){var o=6*n-12*e+6*t,s=9*e+3*i-3*t-9*n,l=3*e-3*t,u=0;if(f(s)){if(p(o)){var c=-l/o;c>=0&&c<=1&&(r[u++]=c)}}else{var h=o*o-4*s*l;if(f(h))r[0]=-o/(2*s);else if(h>0){var d=a(h),g=(c=(-o+d)/(2*s),(-o-d)/(2*s));c>=0&&c<=1&&(r[u++]=c),g>=0&&g<=1&&(r[u++]=g)}}return u}function _(t,e,n,i,r,a){var o=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-o)*r+o,c=(l-s)*r+s,h=(c-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=i}function b(t,e,n,r,o,l,u,f,p,m,v){var y,_,b,x,w,O=.005,S=1/0;c[0]=p,c[1]=m;for(var T=0;T<1;T+=.05)h[0]=g(t,n,o,u,T),h[1]=g(e,r,l,f,T),x=Object(i["g"])(c,h),x<S&&(y=T,S=x);S=1/0;for(var M=0;M<32;M++){if(O<s)break;_=y-O,b=y+O,h[0]=g(t,n,o,u,_),h[1]=g(e,r,l,f,_),x=Object(i["g"])(h,c),_>=0&&x<S?(y=_,S=x):(d[0]=g(t,n,o,u,b),d[1]=g(e,r,l,f,b),w=Object(i["g"])(d,c),b<=1&&w<S?(y=b,S=w):O*=.5)}return v&&(v[0]=g(t,n,o,u,y),v[1]=g(e,r,l,f,y)),a(S)}function x(t,e,n,i,r,a,o,s,l){for(var u=t,c=e,h=0,d=1/l,f=1;f<=l;f++){var p=f*d,m=g(t,n,r,o,p),v=g(e,i,a,s,p),y=m-u,_=v-c;h+=Math.sqrt(y*y+_*_),u=m,c=v}return h}function w(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function O(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function S(t,e,n,i,r){var o=t-2*e+n,s=2*(e-t),l=t-i,u=0;if(f(o)){if(p(s)){var c=-l/s;c>=0&&c<=1&&(r[u++]=c)}}else{var h=s*s-4*o*l;if(f(h)){c=-s/(2*o);c>=0&&c<=1&&(r[u++]=c)}else if(h>0){var d=a(h),g=(c=(-s+d)/(2*o),(-s-d)/(2*o));c>=0&&c<=1&&(r[u++]=c),g>=0&&g<=1&&(r[u++]=g)}}return u}function T(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function M(t,e,n,i,r){var a=(e-t)*i+t,o=(n-e)*i+e,s=(o-a)*i+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n}function A(t,e,n,r,o,l,u,f,p){var g,m=.005,v=1/0;c[0]=u,c[1]=f;for(var y=0;y<1;y+=.05){h[0]=w(t,n,o,y),h[1]=w(e,r,l,y);var _=Object(i["g"])(c,h);_<v&&(g=y,v=_)}v=1/0;for(var b=0;b<32;b++){if(m<s)break;var x=g-m,O=g+m;h[0]=w(t,n,o,x),h[1]=w(e,r,l,x);_=Object(i["g"])(h,c);if(x>=0&&_<v)g=x,v=_;else{d[0]=w(t,n,o,O),d[1]=w(e,r,l,O);var S=Object(i["g"])(d,c);O<=1&&S<v?(g=O,v=S):m*=.5}}return p&&(p[0]=w(t,n,o,g),p[1]=w(e,r,l,g)),a(v)}function C(t,e,n,i,r,a,o){for(var s=t,l=e,u=0,c=1/o,h=1;h<=o;h++){var d=h*c,f=w(t,n,r,d),p=w(e,i,a,d),g=f-s,m=p-l;u+=Math.sqrt(g*g+m*m),s=f,l=p}return u}},"4aa2":function(t,e,n){"use strict";var i=n("21a10"),r=n("cbe5"),a=n("6d8b"),o=Math.PI,s=2*o,l=Math.sin,u=Math.cos,c=Math.acos,h=Math.atan2,d=Math.abs,f=Math.sqrt,p=Math.max,g=Math.min,m=1e-4;function v(t,e,n,i,r,a,o,s){var l=n-t,u=i-e,c=o-r,h=s-a,d=h*l-c*u;if(!(d*d<m))return d=(c*(e-a)-h*(t-r))/d,[t+d*l,e+d*u]}function y(t,e,n,i,r,a,o){var s=t-n,l=e-i,u=(o?a:-a)/f(s*s+l*l),c=u*l,h=-u*s,d=t+c,g=e+h,m=n+c,v=i+h,y=(d+m)/2,_=(g+v)/2,b=m-d,x=v-g,w=b*b+x*x,O=r-a,S=d*v-m*g,T=(x<0?-1:1)*f(p(0,O*O*w-S*S)),M=(S*x-b*T)/w,A=(-S*b-x*T)/w,C=(S*x+b*T)/w,I=(-S*b+x*T)/w,D=M-y,L=A-_,E=C-y,j=I-_;return D*D+L*L>E*E+j*j&&(M=C,A=I),{cx:M,cy:A,x0:-c,y0:-h,x1:M*(r/O-1),y1:A*(r/O-1)}}function _(t){var e;if(Object(a["t"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function b(t,e){var n,i=p(e.r,0),r=p(e.r0||0,0),a=i>0,b=r>0;if(a||b){if(a||(i=r,r=0),r>i){var x=i;i=r,r=x}var w=e.startAngle,O=e.endAngle;if(!isNaN(w)&&!isNaN(O)){var S=e.cx,T=e.cy,M=!!e.clockwise,A=d(O-w),C=A>s&&A%s;if(C>m&&(A=C),i>m)if(A>s-m)t.moveTo(S+i*u(w),T+i*l(w)),t.arc(S,T,i,w,O,!M),r>m&&(t.moveTo(S+r*u(O),T+r*l(O)),t.arc(S,T,r,O,w,M));else{var I=void 0,D=void 0,L=void 0,E=void 0,j=void 0,P=void 0,N=void 0,R=void 0,k=void 0,B=void 0,z=void 0,V=void 0,F=void 0,G=void 0,H=void 0,U=void 0,W=i*u(w),X=i*l(w),Z=r*u(O),q=r*l(O),Y=A>m;if(Y){var K=e.cornerRadius;K&&(n=_(K),I=n[0],D=n[1],L=n[2],E=n[3]);var Q=d(i-r)/2;if(j=g(Q,L),P=g(Q,E),N=g(Q,I),R=g(Q,D),z=k=p(j,P),V=B=p(N,R),(k>m||B>m)&&(F=i*u(O),G=i*l(O),H=r*u(w),U=r*l(w),A<o)){var J=v(W,X,H,U,F,G,Z,q);if(J){var $=W-J[0],tt=X-J[1],et=F-J[0],nt=G-J[1],it=1/l(c(($*et+tt*nt)/(f($*$+tt*tt)*f(et*et+nt*nt)))/2),rt=f(J[0]*J[0]+J[1]*J[1]);z=g(k,(i-rt)/(it+1)),V=g(B,(r-rt)/(it-1))}}}if(Y)if(z>m){var at=g(L,z),ot=g(E,z),st=y(H,U,W,X,i,at,M),lt=y(F,G,Z,q,i,ot,M);t.moveTo(S+st.cx+st.x0,T+st.cy+st.y0),z<k&&at===ot?t.arc(S+st.cx,T+st.cy,z,h(st.y0,st.x0),h(lt.y0,lt.x0),!M):(at>0&&t.arc(S+st.cx,T+st.cy,at,h(st.y0,st.x0),h(st.y1,st.x1),!M),t.arc(S,T,i,h(st.cy+st.y1,st.cx+st.x1),h(lt.cy+lt.y1,lt.cx+lt.x1),!M),ot>0&&t.arc(S+lt.cx,T+lt.cy,ot,h(lt.y1,lt.x1),h(lt.y0,lt.x0),!M))}else t.moveTo(S+W,T+X),t.arc(S,T,i,w,O,!M);else t.moveTo(S+W,T+X);if(r>m&&Y)if(V>m){at=g(I,V),ot=g(D,V),st=y(Z,q,F,G,r,-ot,M),lt=y(W,X,H,U,r,-at,M);t.lineTo(S+st.cx+st.x0,T+st.cy+st.y0),V<B&&at===ot?t.arc(S+st.cx,T+st.cy,V,h(st.y0,st.x0),h(lt.y0,lt.x0),!M):(ot>0&&t.arc(S+st.cx,T+st.cy,ot,h(st.y0,st.x0),h(st.y1,st.x1),!M),t.arc(S,T,r,h(st.cy+st.y1,st.cx+st.x1),h(lt.cy+lt.y1,lt.cx+lt.x1),M),at>0&&t.arc(S+lt.cx,T+lt.cy,at,h(lt.y1,lt.x1),h(lt.y0,lt.x0),!M))}else t.lineTo(S+Z,T+q),t.arc(S,T,r,O,w,M);else t.lineTo(S+Z,T+q)}else t.moveTo(S,T);t.closePath()}}}var x=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),w=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultShape=function(){return new x},e.prototype.buildPath=function(t,e){b(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(r["b"]);w.prototype.type="sector";e["a"]=w},"4bc4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return a}));var i=1,r=2,a=4},"4f85":function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var i=n("7fae"),r=n("6d8b"),a=n("22d1"),o=n("e0d3"),s=n("6cb7"),l=n("4041"),u=n("38a2"),c=n("f934"),h=n("9fbc"),d=n("625e"),f=n("f72b"),p=n("f6d8"),g=o["o"]();function m(t,e){return t.getName(e)||t.getId(e)}var v="__universalTransitionEnabled",y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return Object(i["a"])(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Object(h["a"])({count:x,reset:w}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=g(this).sourceManager=new f["a"](this);i.prepareSource();var r=this.getInitialData(t,n);S(r,this),this.dataTask.context.data=r,g(this).dataBeforeProcessed=r,_(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Object(c["d"])(this),i=n?Object(c["f"])(t):{},a=this.subType;s["a"].hasClass(a)&&(a+="Series"),r["I"](t,e.getTheme().get(this.subType)),r["I"](t,this.getDefaultOption()),o["f"](t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Object(c["h"])(t,i,n)},e.prototype.mergeOption=function(t,e){t=r["I"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=Object(c["d"])(this);n&&Object(c["h"])(this.option,t,n);var i=g(this).sourceManager;i.dirty(),i.prepareSource();var a=this.getInitialData(t,e);S(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,g(this).dataBeforeProcessed=a,_(this),this._initSelectedMapFromData(a)},e.prototype.fillDataTextStyle=function(t){if(t&&!r["E"](t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&o["f"](t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=M(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return g(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=M(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}g(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return r["f"](t)},e.prototype.getSourceManager=function(){return g(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return g(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return Object(p["a"])({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(a["a"].node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=l["a"].prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var a=0;a<t.length;a++){var o=t[a],s=m(r,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=r["F"](t),n=[],i=0;i<e.length;i++){var a=t[e[i]];a>=0&&n.push(a)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[m(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[v])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,a=this.option,o=a.selectedMode,s=e.length;if(o&&s)if("series"===o)a.selectedMap="all";else if("multiple"===o){r["A"](a.selectedMap)||(a.selectedMap={});for(var l=a.selectedMap,u=0;u<s;u++){var c=e[u],h=m(t,c);l[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(c)}}else if("single"===o||!0===o){var d=e[s-1];h=m(t,d);a.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(d),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return s["a"].registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(s["a"]);function _(t){var e=t.name;o["n"](t)||(t.name=b(t)||e)}function b(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return r["k"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function x(t){return t.model.getRawData().count()}function w(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),O}function O(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function S(t,e){r["k"](r["e"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,r["h"](T,e))}))}function T(t,e){var n=M(t);return n&&n.setOutputEnd((e||this).count()),e}function M(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}r["K"](y,u["a"]),r["K"](y,l["a"]),Object(d["e"])(y,s["a"]),e["b"]=y},"4fac":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("401b");function r(t,e,n,r){var a,o,s,l,u=[],c=[],h=[],d=[];if(r){s=[1/0,1/0],l=[-1/0,-1/0];for(var f=0,p=t.length;f<p;f++)Object(i["l"])(s,s,t[f]),Object(i["k"])(l,l,t[f]);Object(i["l"])(s,s,r[0]),Object(i["k"])(l,l,r[1])}for(f=0,p=t.length;f<p;f++){var g=t[f];if(n)a=t[f?f-1:p-1],o=t[(f+1)%p];else{if(0===f||f===p-1){u.push(Object(i["c"])(t[f]));continue}a=t[f-1],o=t[f+1]}Object(i["q"])(c,o,a),Object(i["n"])(c,c,e);var m=Object(i["h"])(g,a),v=Object(i["h"])(g,o),y=m+v;0!==y&&(m/=y,v/=y),Object(i["n"])(h,c,-m),Object(i["n"])(d,c,v);var _=Object(i["a"])([],g,h),b=Object(i["a"])([],g,d);r&&(Object(i["k"])(_,_,s),Object(i["l"])(_,_,l),Object(i["k"])(b,b,s),Object(i["l"])(b,b,l)),u.push(_),u.push(b)}return n&&u.push(u.shift()),u}function a(t,e,n){var i=e.smooth,a=e.points;if(a&&a.length>=2){if(i){var o=r(a,i,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var s=a.length,l=0;l<(n?s:s-1);l++){var u=o[2*l],c=o[2*l+1],h=a[(l+1)%s];t.bezierCurveTo(u[0],u[1],c[0],c[1],h[0],h[1])}}else{t.moveTo(a[0][0],a[0][1]);l=1;for(var d=a.length;l<d;l++)t.lineTo(a[l][0],a[l][1])}n&&t.closePath()}}},"503c":function(t,e,n){},5119:function(t,e,n){"use strict";n("b476")},5210:function(t,e,n){"use strict";n.d(e,"c",(function(){return b})),n.d(e,"b",(function(){return z})),n.d(e,"a",(function(){return V}));var i=n("19eb"),r=n("20c8"),a=n("5e76"),o=n("3437"),s=n("cbe5"),l=n("0da8"),u=n("dd4f"),c=n("6d8b"),h=n("8d1d"),d=n("4bc4"),f=n("726e"),p=new r["a"](!0);function g(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function m(t){return"string"===typeof t&&"none"!==t}function v(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function _(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function b(t,e,n){var i=Object(a["a"])(e.image,e.__image,n);if(Object(a["c"])(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*c["a"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function x(t,e,n,i){var r,a=g(n),s=v(n),l=n.strokePercent,u=l<1,c=!e.path;e.silent&&!u||!c||e.createPathProxy();var f=e.path||p,m=e.__dirty;if(!i){var x=n.fill,w=n.stroke,O=s&&!!x.colorStops,S=a&&!!w.colorStops,T=s&&!!x.image,M=a&&!!w.image,A=void 0,C=void 0,I=void 0,D=void 0,L=void 0;(O||S)&&(L=e.getBoundingRect()),O&&(A=m?Object(o["a"])(t,x,L):e.__canvasFillGradient,e.__canvasFillGradient=A),S&&(C=m?Object(o["a"])(t,w,L):e.__canvasStrokeGradient,e.__canvasStrokeGradient=C),T&&(I=m||!e.__canvasFillPattern?b(t,x,e):e.__canvasFillPattern,e.__canvasFillPattern=I),M&&(D=m||!e.__canvasStrokePattern?b(t,w,e):e.__canvasStrokePattern,e.__canvasStrokePattern=I),O?t.fillStyle=A:T&&(I?t.fillStyle=I:s=!1),S?t.strokeStyle=C:M&&(D?t.strokeStyle=D:a=!1)}var E,j,P=e.getGlobalScale();f.setScale(P[0],P[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(r=Object(h["a"])(e),E=r[0],j=r[1]);var N=!0;(c||m&d["b"])&&(f.setDPR(t.dpr),u?f.setContext(null):(f.setContext(t),N=!1),f.reset(),e.buildPath(f,e.shape,i),f.toStatic(),e.pathUpdated()),N&&f.rebuildPath(t,u?l:1),E&&(t.setLineDash(E),t.lineDashOffset=j),i||(n.strokeFirst?(a&&_(t,n),s&&y(t,n)):(s&&y(t,n),a&&_(t,n))),E&&t.setLineDash([])}function w(t,e,n){var i=e.__image=Object(a["a"])(n.image,e.__image,e,e.onload);if(i&&Object(a["c"])(i)){var r=n.x||0,o=n.y||0,s=e.getWidth(),l=e.getHeight(),u=i.width/i.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=i.width,l=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,h=n.sy||0;t.drawImage(i,c,h,n.sWidth,n.sHeight,r,o,s,l)}else if(n.sx&&n.sy){c=n.sx,h=n.sy;var d=s-c,f=l-h;t.drawImage(i,c,h,d,f,r,o,s,l)}else t.drawImage(i,r,o,s,l)}}function O(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||f["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var a=void 0,o=void 0;t.setLineDash&&n.lineDash&&(i=Object(h["a"])(e),a=i[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),n.strokeFirst?(g(n)&&t.strokeText(r,n.x,n.y),v(n)&&t.fillText(r,n.x,n.y)):(v(n)&&t.fillText(r,n.x,n.y),g(n)&&t.strokeText(r,n.x,n.y)),a&&t.setLineDash([])}}var S=["shadowBlur","shadowOffsetX","shadowOffsetY"],T=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function M(t,e,n,r,a){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){k(t,a),o=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?i["b"].opacity:s}(r||e.blend!==n.blend)&&(o||(k(t,a),o=!0),t.globalCompositeOperation=e.blend||i["b"].blend);for(var l=0;l<S.length;l++){var u=S[l];(r||e[u]!==n[u])&&(o||(k(t,a),o=!0),t[u]=t.dpr*(e[u]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(k(t,a),o=!0),t.shadowColor=e.shadowColor||i["b"].shadowColor),o}function A(t,e,n,i,r){var a=B(e,r.inHover),o=i?null:n&&B(n,r.inHover)||{};if(a===o)return!1;var s=M(t,a,o,i,r);if((i||a.fill!==o.fill)&&(s||(k(t,r),s=!0),m(a.fill)&&(t.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(k(t,r),s=!0),m(a.stroke)&&(t.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(k(t,r),s=!0),t.globalAlpha=null==a.opacity?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(k(t,r),s=!0),t.lineWidth=u)}for(var c=0;c<T.length;c++){var h=T[c],d=h[0];(i||a[d]!==o[d])&&(s||(k(t,r),s=!0),t[d]=a[d]||h[1])}return s}function C(t,e,n,i,r){return M(t,B(e,r.inHover),n&&B(n,r.inHover),i,r)}function I(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function D(t,e,n){for(var i=!1,r=0;r<t.length;r++){var a=t[r];i=i||a.isZeroArea(),I(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}n.allClipped=i}function L(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var E=1,j=2,P=3,N=4;function R(t){var e=v(t),n=g(t);return!(t.lineDash||!(+e^+n)||e&&"string"!==typeof t.fill||n&&"string"!==typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function k(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function B(t,e){return e&&t.__hoverStyle||t.style}function z(t,e){V(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function V(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~d["a"],void(e.__isRendered=!1);var a=e.__clipPaths,c=n.prevElClipPaths,h=!1,f=!1;if(c&&!Object(o["c"])(a,c)||(c&&c.length&&(k(t,n),t.restore(),f=h=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(k(t,n),t.save(),D(a,t,n),h=!0),n.prevElClipPaths=a),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var p=n.prevEl;p||(f=h=!0);var g=e instanceof s["b"]&&e.autoBatch&&R(e.style);h||L(r,p.transform)?(k(t,n),I(t,e)):g||k(t,n);var m=B(e,n.inHover);e instanceof s["b"]?(n.lastDrawType!==E&&(f=!0,n.lastDrawType=E),A(t,e,p,f,n),g&&(n.batchFill||n.batchStroke)||t.beginPath(),x(t,e,m,g),g&&(n.batchFill=m.fill||"",n.batchStroke=m.stroke||"")):e instanceof u["a"]?(n.lastDrawType!==P&&(f=!0,n.lastDrawType=P),A(t,e,p,f,n),O(t,e,m)):e instanceof l["a"]?(n.lastDrawType!==j&&(f=!0,n.lastDrawType=j),C(t,e,p,f,n),w(t,e,m)):e.getTemporalDisplayables&&(n.lastDrawType!==N&&(f=!0,n.lastDrawType=N),F(t,e,n)),g&&i&&k(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function F(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var a,o,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(a=e.getCursor(),o=i.length;a<o;a++){var l=i[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),V(t,l,s,a===o-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=r.length;u<c;u++){l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),V(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}},"52c4":function(t,e,n){"use strict";n("9e2d")},"538f":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("6d8b"),r=n("e86a"),a=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var o=this._modelMinRaw=e.get("min",!0);Object(i["w"])(o)?this._modelMinNum=u(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=u(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(Object(i["w"])(s)?this._modelMaxNum=u(t,s({min:n[0],max:n[1]})):"dataMax"!==s&&(this._modelMaxNum=u(t,s)),a)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),c=Object(i["t"])(l)?l:[l||0,l||0];"boolean"===typeof c[0]||"boolean"===typeof c[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Object(r["g"])(c[0],1),Object(r["g"])(c[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s="dataMin"===this._modelMinRaw?e:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=s,c=null!=l;null==s&&(s=t?r?0:NaN:e-a[0]*o),null==l&&(l=t?r?r-1:NaN:n+a[1]*o),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN);var h=Object(i["l"])(s)||Object(i["l"])(l)||t&&!r;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,f=this._determinedMax;return null!=d&&(s=d,u=!0),null!=f&&(l=f,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[s[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=o[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),o={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function l(t,e,n){var i=t.rawExtentInfo;return i||(i=new a(t,e,n),t.rawExtentInfo=i,i)}function u(t,e){return null==e?null:Object(i["l"])(e)?NaN:t.parse(e)}},"551f":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var i=n("282b"),r=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],a=Object(i["a"])(r),o=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return a(this,t,e)},t}()},5749:function(t,e,n){t.exports=n.p+"static/img/tjc.2254aa5c.png"},"58c9":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a}));var i={};function r(t,e){i[t]=e}function a(t){return i[t]}},"5cfa":function(t,e,n){"use strict";n("ca7c")},"5e76":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return u}));var i=n("d51b"),r=n("726e"),a=new i["a"](50);function o(t){if("string"===typeof t){var e=a.get(t);return e&&e.image}return t}function s(t,e,n,i,o){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=a.get(t),c={hostEl:n,cb:i,cbPayload:o};return s?(e=s.image,!u(e)&&s.pending.push(c)):(e=r["d"].loadImage(t,l,l),e.__zrImageSrc=t,a.put(t,e.__cachedImgObj={image:e,pending:[c]})),e}return t}return e}function l(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function u(t){return t&&t.width&&t.height}},"5e81":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("7fae"),r=n("6cb7"),a=n("b12f"),o=n("07fd"),s=n("f72b"),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return Object(i["a"])(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new s["a"](this),Object(s["b"])(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Object(s["b"])(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:o["a"]},e}(r["a"]),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return Object(i["a"])(e,t),e.type="dataset",e}(a["a"]);function c(t){t.registerComponentModel(l),t.registerComponentView(u)}},"607d":function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return c})),n.d(e,"e",(function(){return h})),n.d(e,"a",(function(){return f})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return g})),n.d(e,"d",(function(){return m}));var i=n("22d1"),r=n("65ed"),a=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,o=[],s=i["a"].browser.firefox&&+i["a"].browser.version.split(".")[0]<39;function l(t,e,n,i){return n=n||{},i?u(t,e,n):s&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):u(t,e,n),n}function u(t,e,n){if(i["a"].domSupported&&t.getBoundingClientRect){var a=e.clientX,s=e.clientY;if(Object(r["a"])(t)){var l=t.getBoundingClientRect();return n.zrX=a-l.left,void(n.zrY=s-l.top)}if(Object(r["b"])(o,t,a,s))return n.zrX=o[0],void(n.zrY=o[1])}n.zrX=n.zrY=0}function c(t){return t||window.event}function h(t,e,n){if(e=c(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];o&&l(t,o,e,n)}else{l(t,e,e,n);var s=d(e);e.zrDelta=s?s/120:-(e.detail||0)/3}var u=e.button;return null==e.which&&void 0!==u&&a.test(e.type)&&(e.which=1&u?1:2&u?3:4&u?2:0),e}function d(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;var r=0!==i?Math.abs(i):Math.abs(n),a=i>0?-1:i<0?1:n>0?-1:1;return 3*r*a}function f(t,e,n,i){t.addEventListener(e,n,i)}function p(t,e,n,i){t.removeEventListener(e,n,i)}var g=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function m(t){return 2===t.which||3===t.which}},"60d9":function(t,e,n){},"615e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAoCAYAAAALz1FrAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABWZJREFUeNqsV3tQlFUUP7uwwPJQdkNcyBesDBZKqMhgVH8kzRg44ujYaJk5MoO9zGpqpBmZ/KOih9QfZROMj1ILLOnxB40y6TiBvGQMUCJwcVN57rJLwLIQC2znXL77zfftg10azsxv7vv87j3nfOfeT+F0OsFVFAoFK/dXQDAWmxA5iEcRSxELEUOI+4gaxC+Iy6ey4V9hjUw+/zQNFJ5Icn9VqLA4iDiMiAbfYkZ8iPgCMeFKovRAkIBFPaLITwKSRcL8OkTiySwnELgEuhBswOIiQsv7FgbrYL1uBzwSvQViwh8CdeACGJkYgB7bn9BiqoCG3jIYnxzh09eSCVHPZiS5LpqfmwsH9FjUCruCQGUw5CS8C0/FvQEqZYjXI4w6rPBT+xG4eu8rcIJTaj7yoUE0FxLQib7nBOFBD8Dh9KuQpX9nVgKSMJUW9qz+EvJSvsONBUnNd55bivvkJcQ6foJDqRUQH5kuKvpnzAzGwdZZydJid8G+NSekXaTvVWYuDDmi/xsRQx07V30Mm+Pflin4rfMcNPb9DPkZF9D+dugdMcrGNSHREKlmRoCTzS9ATfcZPtSLWEHHeZoTaNXLIHPFIXHxjZ7LYB3rhTZLFdgcJkamVcfA8aZMGcnuxLOQqd/D6jsSC1kwTE6zSCa9WWSubD758SW5UrtC13A7I+i3tyFJD6vHRuiBhyghJSpPRhgZEgsp0VulXVl0kg28lRydJVuwddXLormI4GBaMWtL/TPqsLj5Zw3qaey7ILqLSJbzVmx4kjwlNByApoESyXdUwkxT2v68bF6qbpus/WDEamlzGZFoqBYcEA5BAWrZ5C0Jr6GP9qNf+uBU6zY4svEWc3JpO7B6nCaJ+U2j1snWRaiiZHFBPrFRzTE9Bk7ntNvRjzWmg2Wsm9U7rX/AncEW2Xi8JhnGHTZZ38S0Xdq0E4mJatPOKVR2VzaZL16yIJGV5BcKBpKeYQPzzY9/FUFx83PybGm/I2uSuZpoQ9TqGKyCqNA4cbR75DYrz7QeYCV3/N3hZma+GdPoYW9SsYykw1olbd6ik1zjrbrub2WT6QPMiT8OutCUmZOY6kUyHsJHH6tlPqGsMGORSWjoKZOquUIn+QHxEWWU1oFK6BysBb1mI1t0e6gc9iUfgyeW74SLhvXMP97krdQ69tVXd50G6/h93j1J+lkWxgRZio1dPIwLMhow0kKZzSmCRB95SClcaJ517B4crV7LMrMgZZiFd3OSldhxExEy81Fmwyvrylmy9FeGJ0xQVJ8JXSM3xT0hHkYSI8vCaFsDFq/zUbqMPqnfBCa7wS8CMnFhTYaUAAR9RmmqJyIKkW942zB4DQp+T4LzbW9C/2iHm2K6oIxD16Gk6VkorM1w3dBpQZ/79YuSJ7xInmRew0xaafyMQRuyFBaHJUCoSoPXr5ldvza8hj3IFcSL0g4ZCbJPoH+2Y7WSEpt0jCJGEjXepAGxnfTInlhenkSLhDfVSvBfDMK9bvb5JBJOZBYuM7OfBLPOV3pbJUQcmc7hg8AhzPMaisrZViNRNRbv+SCh8erZJij9MMUHlOS8jFF/oS8F/pBQ/sn3Mpbvhzn9IiGht3qLS1+L0A/zRUJS4qM9LyTldF2IWWWmPe8kfUKm5g7v+98k9JclhYs0CmXzHDbnliDdxvE3LVS4Z1TPfA2mcEw4dgsMlO1lidQh/FnZ8U09PlcSOuFieifI3jYW6CcSmxnoWaMWwAQ3Q2QmJLP76xOtKwHL4e9DZfcNyMXykoc19IjWzeUk9HcbRg9L2UmsMHWpwGsKocizeBpwS/UuziZziD5BBAinp0VTAsYF2HiIu+r8T4ABAP8HFTMQDaZoAAAAAElFTkSuQmCC"},"620a":function(t,e,n){"use strict";(function(t){var i,r=n("3db9"),a={supportWebGL:function(){if(null==i)try{var t=document.createElement("canvas"),e=t.getContext("webgl")||t.getContext("experimental-webgl");if(!e)throw new Error}catch(n){i=!1}return i}};a.Int8Array="undefined"===typeof Int8Array?Array:Int8Array,a.Uint8Array="undefined"===typeof Uint8Array?Array:Uint8Array,a.Uint16Array="undefined"===typeof Uint16Array?Array:Uint16Array,a.Uint32Array="undefined"===typeof Uint32Array?Array:Uint32Array,a.Int16Array="undefined"===typeof Int16Array?Array:Int16Array,a.Float32Array="undefined"===typeof Float32Array?Array:Float32Array,a.Float64Array="undefined"===typeof Float64Array?Array:Float64Array;var o={};"undefined"!==typeof window?o=window:"undefined"!==typeof t&&(o=t),a.requestAnimationFrame=o.requestAnimationFrame||o.msRequestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||function(t){setTimeout(t,16)},a.createCanvas=function(){return document.createElement("canvas")},a.createImage=function(){return new o.Image},a.request={get:r["a"].get},a.addEventListener=function(t,e,n,i){t.addEventListener(e,n,i)},a.removeEventListener=function(t,e,n){t.removeEventListener(e,n)},e["a"]=a}).call(this,n("c8ba"))},"625e":function(t,e,n){"use strict";n.d(e,"f",(function(){return l})),n.d(e,"d",(function(){return c})),n.d(e,"b",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"a",(function(){return g})),n.d(e,"c",(function(){return y}));var i=n("7fae"),r=n("6d8b"),a=".",o="___EC__COMPONENT__CONTAINER___",s="___EC__EXTENDED_CLASS___";function l(t){var e={main:"",sub:""};if(t){var n=t.split(a);e.main=n[0]||"",e.sub=n[1]||""}return e}function u(t){r["b"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function c(t){return!(!t||!t[s])}function h(t,e){t.$constructor=t,t.extend=function(t){var e,n=this;return d(n)?e=function(t){function e(){return t.apply(this,arguments)||this}return Object(i["a"])(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},r["s"](e,this)),r["m"](e.prototype,t),e[s]=!0,e.extend=this.extend,e.superCall=m,e.superApply=v,e.superClass=n,e}}function d(t){return r["w"](t)&&/^class\s/.test(Function.prototype.toString.call(t))}function f(t,e){t.extend=e.extend}var p=Math.round(10*Math.random());function g(t){var e=["__\0is_clz",p++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function m(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function v(t,e,n){return this.superClass.prototype[e].apply(t,n)}function y(t){var e={};function n(t){var n=e[t.main];return n&&n[o]||(n=e[t.main]={},n[o]=!0),n}t.registerClass=function(t){var i=t.type||t.prototype.type;if(i){u(i),t.prototype.type=i;var r=l(i);if(r.sub){if(r.sub!==o){var a=n(r);a[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[o]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=l(t),i=[],a=e[n.main];return a&&a[o]?r["k"](a,(function(t,e){e!==o&&i.push(t)})):i.push(a),i},t.hasClass=function(t){var n=l(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return r["k"](e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=l(t),i=e[n.main];return i&&i[o]}}},"65ed":function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return f}));var i=n("22d1"),r=Math.log(2);function a(t,e,n,i,o,s){var l=i+"-"+o,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var c=Math.round(Math.log((1<<u)-1&~o)/r);return t[n][c]}var h=i|1<<n,d=n+1;while(i&1<<d)d++;for(var f=0,p=0,g=0;p<u;p++){var m=1<<p;m&o||(f+=(g%2?-1:1)*t[n][p]*a(t,e-1,d,h,o|m,s),g++)}return s[l]=f,f}function o(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=a(n,8,0,0,0,i);if(0!==r){for(var o=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==o[l]&&(o[l]=0),o[l]+=((s+l)%2?-1:1)*a(n,7,0===s?1:0,1<<s,1<<l,i)/r*e[s];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var s="___zrEVENTSAVED",l=[];function u(t,e,n,i,r){return c(l,e,i,r,!0)&&c(t,n,l[0],l[1])}function c(t,e,n,r,a){if(e.getBoundingClientRect&&i["a"].domSupported&&!f(e)){var o=e[s]||(e[s]={}),l=h(e,o),u=d(l,o,a);if(u)return u(t,n,r),!0}return!1}function h(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return n}function d(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],a=e.srcCoords,s=[],l=[],u=!0,c=0;c<4;c++){var h=t[c].getBoundingClientRect(),d=2*c,f=h.left,p=h.top;s.push(f,p),u=u&&a&&f===a[d]&&p===a[d+1],l.push(t[c].offsetLeft,t[c].offsetTop)}return u&&r?r:(e.srcCoords=s,e[i]=n?o(l,s):o(s,l))}function f(t){return"CANVAS"===t.nodeName.toUpperCase()}},"68ab":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("4a3f");function r(t,e,n,r,a,o,s,l,u){if(0===s)return!1;var c=s;if(u>e+c&&u>r+c&&u>o+c||u<e-c&&u<r-c&&u<o-c||l>t+c&&l>n+c&&l>a+c||l<t-c&&l<n-c&&l<a-c)return!1;var h=Object(i["l"])(t,e,n,r,a,o,l,u,null);return h<=c/2}},"697e":function(t,e,n){"use strict";n.d(e,"f",(function(){return M})),n.d(e,"i",(function(){return C})),n.d(e,"a",(function(){return I})),n.d(e,"g",(function(){return D})),n.d(e,"h",(function(){return L})),n.d(e,"c",(function(){return E})),n.d(e,"b",(function(){return j})),n.d(e,"e",(function(){return N})),n.d(e,"j",(function(){return R})),n.d(e,"d",(function(){return k})),n.d(e,"k",(function(){return B}));var i=n("6d8b"),r=n("18c0"),a=n("89e3"),o=n("e0d8"),s=n("9d57"),l=n("9850"),u=n("216a"),c=n("7fae"),h=n("3842"),d=n("944e"),f=o["a"].prototype,p=a["a"].prototype,g=h["v"],m=Math.floor,v=Math.ceil,y=Math.pow,_=Math.log,b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new a["a"],e._interval=0,e}return Object(c["a"])(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),a=p.getTicks.call(this,t);return i["H"](a,(function(t){var e=t.value,i=h["v"](y(this.base,e));return i=e===n[0]&&this._fixMin?w(i,r[0]):i,i=e===n[1]&&this._fixMax?w(i,r[1]):i,{value:i}}),this)},e.prototype.setExtent=function(t,e){var n=this.base;t=_(t)/_(n),e=_(e)/_(n),p.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=f.getExtent.call(this);e[0]=y(t,e[0]),e[1]=y(t,e[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(e[0]=w(e[0],i[0])),this._fixMax&&(e[1]=w(e[1],i[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=_(t[0])/_(e),t[1]=_(t[1])/_(e),f.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=h["r"](n),r=t/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var a=[h["v"](v(e[0]/i)*i),h["v"](m(e[1]/i)*i)];this._interval=i,this._niceExtent=a}},e.prototype.calcNiceExtent=function(t){p.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=_(t)/_(this.base),d["a"](t,this._extent)},e.prototype.normalize=function(t){return t=_(t)/_(this.base),d["f"](t,this._extent)},e.prototype.scale=function(t){return t=d["g"](t,this._extent),y(this.base,t)},e.type="log",e}(o["a"]),x=b.prototype;function w(t,e){return g(t,h["g"](e))}x.getMinorTicks=p.getMinorTicks,x.getLabel=p.getLabel,o["a"].registerClass(b);var O=b,S=n("ee1a"),T=n("538f");function M(t,e){var n=t.type,r=Object(T["a"])(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var a=r.min,o=r.max,l=e.ecModel;if(l&&"time"===n){var u=Object(s["e"])("bar",l),c=!1;if(i["k"](u,(function(t){c=c||t.getBaseAxis()===e.axis})),c){var h=Object(s["d"])(u),d=A(a,o,e,h);a=d.min,o=d.max}}return{extent:[a,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function A(t,e,n,r){var a=n.axis.getExtent(),o=a[1]-a[0],l=Object(s["f"])(r,n.axis);if(void 0===l)return{min:t,max:e};var u=1/0;i["k"](l,(function(t){u=Math.min(t.offset,u)}));var c=-1/0;i["k"](l,(function(t){c=Math.max(t.offset+t.width,c)})),u=Math.abs(u),c=Math.abs(c);var h=u+c,d=e-t,f=1-(u+c)/o,p=d/f-d;return e+=p*(c/h),t-=p*(u/h),{min:t,max:e}}function C(t,e){var n=e,i=M(t,n),r=i.extent,a=n.get("splitNumber");t instanceof O&&(t.base=n.get("logBase"));var o=t.type,s=n.get("interval"),l="interval"===o||"time"===o;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function I(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new r["a"]({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new u["a"]({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(o["a"].getClass(e)||a["a"])}}function D(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function L(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):i["C"](e)?function(e){return function(n){var i=t.scale.getLabel(n),r=e.replace("{value}",null!=i?i:"");return r}}(e):i["w"](e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(E(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function E(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function j(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,a,o=n.getExtent();n instanceof r["a"]?a=n.count():(i=n.getTicks(),a=i.length);var s,l=t.getLabelModel(),u=L(t),c=1;a>40&&(c=Math.ceil(a/40));for(var h=0;h<a;h+=c){var d=i?i[h]:{value:o[0]+h},f=u(d,h),p=l.getTextRect(f),g=P(p,l.get("rotate")||0);s?s.union(g):s=g}return s}}function P(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,a=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),o=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n)),s=new l["a"](t.x,t.y,a,o);return s}function N(t){var e=t.get("interval");return null==e?"auto":e}function R(t){return"category"===t.type&&0===N(t.getLabelModel())}function k(t,e){var n={};return i["k"](t.mapDimensionsAll(e),(function(e){n[Object(S["b"])(t,e)]=!0})),i["F"](n)}function B(t,e,n){e&&i["k"](k(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])}))}},"697e7":function(t,e,n){"use strict";n.r(e),n.d(e,"init",(function(){return dt})),n.d(e,"dispose",(function(){return ft})),n.d(e,"disposeAll",(function(){return pt})),n.d(e,"getInstance",(function(){return gt})),n.d(e,"registerPainter",(function(){return mt})),n.d(e,"version",(function(){return vt}));var i=n("22d1"),r=n("6d8b"),a=n("21a10"),o=n("401b"),s=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),l=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(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 s(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,a=i-this._y;this._x=n,this._y=i,e.drift(r,a,t),this.handler.dispatchToElement(new s(e,t),"drag",t.event);var o=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=o,e!==o&&(l&&o!==l&&this.handler.dispatchToElement(new s(l,t),"dragleave",t.event),o&&o!==l&&this.handler.dispatchToElement(new s(o,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new s(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),u=l,c=n("6fd3"),h=n("607d"),d=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},a=0,o=i.length;a<o;a++){var s=i[a],l=h["b"](n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in g)if(g.hasOwnProperty(e)){var n=g[e](this._track,t);if(n)return n}},t}();function f(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function p(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var g={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var a=f(i)/f(r);!isFinite(a)&&(a=1),e.pinchScale=a;var o=p(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},m="silent";function v(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:y}}function y(){h["g"](this.event)}var _=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Object(a["a"])(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(c["a"]),b=function(){function t(t,e){this.x=t,this.y=e}return t}(),x=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],w=function(t){function e(e,n,i,r){var a=t.call(this)||this;return a._hovered=new b(0,0),a.storage=e,a.painter=n,a.painterRoot=r,i=i||new _,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new u(a),a}return Object(a["a"])(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(r["k"](x,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=S(this,e,n),r=this._hovered,a=r.target;a&&!a.__zr&&(r=this.findHover(r.x,r.y),a=r.target);var o=this._hovered=i?new b(e,n):this.findHover(e,n),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(o,"mousemove",t),s&&s!==a&&this.dispatchToElement(o,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new b(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){var r="on"+e,a=v(e,t,n);while(i)if(i[r]&&(a.cancelBubble=!!i[r].call(i,a)),i.trigger(e,a),i=i.__hostTarget?i.__hostTarget:i.parent,a.cancelBubble)break;a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[r]&&t[r].call(t,a),t.trigger&&t.trigger(e,a)})))}},e.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new b(t,e),a=i.length-1;a>=0;a--){var o=void 0;if(i[a]!==n&&!i[a].ignore&&(o=O(i[a],t,e))&&(!r.topTarget&&(r.topTarget=i[a]),o!==m)){r.target=i[a];break}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new d);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var a=new b;a.target=i.target,this.dispatchToElement(a,r,i.event)}},e}(c["a"]);function O(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var i=t,r=void 0,a=!1;while(i){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||m}return!1}function S(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}r["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){w.prototype[t]=function(e){var n,i,r=e.zrX,a=e.zrY,s=S(this,r,a);if("mouseup"===t&&s||(n=this.findHover(r,a),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||o["f"](this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var T=w,M=n("04f6"),A=n("4bc4"),C=!1;function I(){C||(C=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function D(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var L=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=D}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Object(M["a"])(n,D)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];var r=i,a=t;while(r)r.parent=a,r.updateTransform(),e.push(r),a=r,r=r.getClipPath()}if(t.childrenRef){for(var o=t.childrenRef(),s=0;s<o.length;s++){var l=o[s];t.__dirty&&(l.__dirty|=A["a"]),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(I(),u.z=0),isNaN(u.z2)&&(I(),u.z2=0),isNaN(u.zlevel)&&(I(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=r["r"](this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),E=L,j=n("98b7"),P=n("06ad");function N(){return(new Date).getTime()}var R=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return Object(a["a"])(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=N()-this._pausedTime,n=e-this._time,i=this._head;while(i){var r=i.next,a=i.step(e,n);a?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(Object(j["a"])(e),!t._paused&&t.update())}this._running=!0,Object(j["a"])(e)},e.prototype.start=function(){this._running||(this._time=N(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=N(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=N()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new P["b"](t,e.loop);return this.addAnimator(n),n},e}(c["a"]),k=R,B=300,z=i["a"].domSupported,V=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=r["H"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:i}}(),F={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},G=!1;function H(t){var e=t.pointerType;return"pen"===e||"touch"===e}function U(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function W(t){t&&(t.zrByTouch=!0)}function X(t,e){return Object(h["e"])(t.dom,new q(t,e),!0)}function Z(t,e){var n=e,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return i}var q=function(){function t(t,e){this.stopPropagation=r["L"],this.stopImmediatePropagation=r["L"],this.preventDefault=r["L"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),Y={mousedown:function(t){t=Object(h["e"])(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Object(h["e"])(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Object(h["e"])(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Object(h["e"])(this.dom,t);var e=t.toElement||t.relatedTarget;Z(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){G=!0,t=Object(h["e"])(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){G||(t=Object(h["e"])(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Object(h["e"])(this.dom,t),W(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Y.mousemove.call(this,t),Y.mousedown.call(this,t)},touchmove:function(t){t=Object(h["e"])(this.dom,t),W(t),this.handler.processGesture(t,"change"),Y.mousemove.call(this,t)},touchend:function(t){t=Object(h["e"])(this.dom,t),W(t),this.handler.processGesture(t,"end"),Y.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<B&&Y.click.call(this,t)},pointerdown:function(t){Y.mousedown.call(this,t)},pointermove:function(t){H(t)||Y.mousemove.call(this,t)},pointerup:function(t){Y.mouseup.call(this,t)},pointerout:function(t){H(t)||Y.mouseout.call(this,t)}};r["k"](["click","dblclick","contextmenu"],(function(t){Y[t]=function(e){e=Object(h["e"])(this.dom,e),this.trigger(t,e)}}));var K={pointermove:function(t){H(t)||K.mousemove.call(this,t)},pointerup:function(t){K.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Q(t,e){var n=e.domHandlers;i["a"].pointerEventsSupported?r["k"](V.pointer,(function(i){$(e,i,(function(e){n[i].call(t,e)}))})):(i["a"].touchEventsSupported&&r["k"](V.touch,(function(i){$(e,i,(function(r){n[i].call(t,r),U(e)}))})),r["k"](V.mouse,(function(i){$(e,i,(function(r){r=Object(h["c"])(r),e.touching||n[i].call(t,r)}))})))}function J(t,e){function n(n){function i(i){i=Object(h["c"])(i),Z(t,i.target)||(i=X(t,i),e.domHandlers[n].call(t,i))}$(e,n,i,{capture:!0})}i["a"].pointerEventsSupported?r["k"](F.pointer,n):i["a"].touchEventsSupported||r["k"](F.mouse,n)}function $(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,Object(h["a"])(t.domTarget,e,n,i)}function tt(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Object(h["f"])(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var et=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),nt=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new et(e,Y),z&&(i._globalHandlerScope=new et(document,K)),Q(i,i._localHandlerScope),i}return Object(a["a"])(e,t),e.prototype.dispose=function(){tt(this._localHandlerScope),z&&tt(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,z&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?J(this,e):tt(e)}},e}(c["a"]),it=nt,rt=n("41ef"),at=n("2cf4"),ot=n("2dc5"),st={},lt={};function ut(t){delete lt[t]}function ct(t){if(!t)return!1;if("string"===typeof t)return Object(rt["lum"])(t,1)<at["b"];if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=Object(rt["lum"])(e[r].color,1);return n/=i,n<at["b"]}return!1}var ht=function(){function t(t,e,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var o=new E,s=n.renderer||"canvas";st[s]||(s=r["F"](st)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new st[s](e,o,n,t),u=n.ssr||l.ssrOnly;this.storage=o,this.painter=l;var c=i["a"].node||i["a"].worker||u?null:new it(l.getViewportRoot(),l.root);this.handler=new T(o,l,c,l.root),this.animation=new k({stage:{update:u?null:function(){return a._flush(!0)}}}),u||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=ct(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=N();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=N();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof ot["a"]&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,ut(this.id)},t}();function dt(t,e){var n=new ht(r["p"](),t,e);return lt[n.id]=n,n}function ft(t){t.dispose()}function pt(){for(var t in lt)lt.hasOwnProperty(t)&<[t].dispose();lt={}}function gt(t){return lt[t]}function mt(t,e){st[t]=e}var vt="5.3.2"},"6a2f":function(t,e,n){"use strict";var i=n("6d8b"),r=n("e0d3"),a=Object(r["o"])();function o(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,f(e,n,t),Object(i["k"])(n,(function(n){Object(i["k"])(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,Object(i["h"])(s,t))}))})),e.wrapMethod("cloneShallow",Object(i["h"])(u,t)),Object(i["k"])(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,Object(i["h"])(l,t))})),Object(i["b"])(n[e.dataType]===e)}function s(t,e){if(d(this)){var n=Object(i["m"])({},a(this).datas);n[this.dataType]=e,f(e,n,t)}else p(e,this.dataType,a(this).mainData,t);return e}function l(t,e){return t.struct&&t.struct.update(),e}function u(t,e){return Object(i["k"])(a(e).datas,(function(n,i){n!==e&&p(n.cloneShallow(),i,e,t)})),e}function c(t){var e=a(this).mainData;return null==t||null==e?e:a(e).datas[t]}function h(){var t=a(this).mainData;return null==t?[{data:t}]:Object(i["H"])(Object(i["F"])(a(t).datas),(function(e){return{type:e,data:a(t).datas[e]}}))}function d(t){return a(t).mainData===t}function f(t,e,n){a(t).datas={},Object(i["k"])(e,(function(e,i){p(e,i,t,n)}))}function p(t,e,n,i){a(n).datas[e]=t,a(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=c,t.getLinkedDataAll=h}e["a"]=o},"6cb7":function(t,e,n){"use strict";var i=n("7fae"),r=n("6d8b"),a=n("4319"),o=n("8918"),s=n("625e"),l=n("e0d3"),u=n("f934"),c=Object(l["o"])(),h=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=o["c"]("ec_cpt_model"),r}return Object(i["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=u["d"](this),i=n?u["f"](t):{},a=e.getTheme();r["I"](t,a.get(this.mainType)),r["I"](t,this.getDefaultOption()),n&&u["h"](t,i,n)},e.prototype.mergeOption=function(t,e){r["I"](this.option,t,!0);var n=u["d"](this);n&&u["h"](this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Object(s["d"])(t))return t.defaultOption;var e=c(this);if(!e.defaultOption){var n=[],i=t;while(i){var a=i.prototype.defaultOption;a&&n.push(a),i=i.superClass}for(var o={},l=n.length-1;l>=0;l--)o=r["I"](o,n[l],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Object(l["v"])(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(a["a"]);function d(t){var e=[];return r["k"](h.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=r["H"](e,(function(t){return Object(s["f"])(t).main})),"dataset"!==t&&r["r"](e,"dataset")<=0&&e.unshift("dataset"),e}Object(s["e"])(h,a["a"]),Object(s["c"])(h),o["a"](h),o["b"](h,d),e["a"]=h},"6d8b":function(t,e,n){"use strict";n.d(e,"p",(function(){return m})),n.d(e,"G",(function(){return v})),n.d(e,"d",(function(){return y})),n.d(e,"I",(function(){return _})),n.d(e,"J",(function(){return b})),n.d(e,"m",(function(){return x})),n.d(e,"i",(function(){return w})),n.d(e,"r",(function(){return O})),n.d(e,"s",(function(){return S})),n.d(e,"K",(function(){return T})),n.d(e,"u",(function(){return M})),n.d(e,"k",(function(){return A})),n.d(e,"H",(function(){return C})),n.d(e,"N",(function(){return I})),n.d(e,"n",(function(){return D})),n.d(e,"o",(function(){return L})),n.d(e,"F",(function(){return E})),n.d(e,"c",(function(){return P})),n.d(e,"h",(function(){return N})),n.d(e,"t",(function(){return R})),n.d(e,"w",(function(){return k})),n.d(e,"C",(function(){return B})),n.d(e,"D",(function(){return z})),n.d(e,"z",(function(){return V})),n.d(e,"A",(function(){return F})),n.d(e,"E",(function(){return H})),n.d(e,"v",(function(){return U})),n.d(e,"x",(function(){return W})),n.d(e,"y",(function(){return X})),n.d(e,"B",(function(){return Z})),n.d(e,"l",(function(){return q})),n.d(e,"O",(function(){return Y})),n.d(e,"P",(function(){return K})),n.d(e,"Q",(function(){return Q})),n.d(e,"S",(function(){return J})),n.d(e,"M",(function(){return $})),n.d(e,"b",(function(){return tt})),n.d(e,"T",(function(){return et})),n.d(e,"R",(function(){return it})),n.d(e,"f",(function(){return ot})),n.d(e,"e",(function(){return st})),n.d(e,"g",(function(){return lt})),n.d(e,"j",(function(){return ut})),n.d(e,"q",(function(){return ct})),n.d(e,"L",(function(){return ht})),n.d(e,"a",(function(){return dt}));var i=n("726e"),r=I(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),a=I(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),o=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,d=function(){}.constructor,f=d?d.prototype:null,p="__proto__",g=2311;function m(){return g++}function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!==typeof console&&console.error.apply(console,t)}function y(t){if(null==t||"object"!==typeof t)return t;var e=t,n=o.call(t);if("[object Array]"===n){if(!rt(t)){e=[];for(var i=0,s=t.length;i<s;i++)e[i]=y(t[i])}}else if(a[n]){if(!rt(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(i=0,s=t.length;i<s;i++)e[i]=t[i]}}}else if(!r[n]&&!rt(t)&&!U(t))for(var u in e={},t)t.hasOwnProperty(u)&&u!==p&&(e[u]=y(t[u]));return e}function _(t,e,n){if(!F(e)||!F(t))return n?y(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==p){var r=t[i],a=e[i];!F(a)||!F(r)||R(a)||R(r)||U(a)||U(r)||G(a)||G(r)||rt(a)||rt(r)?!n&&i in t||(t[i]=y(e[i])):_(r,a,n)}return t}function b(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=_(n,t[i],e);return n}function x(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==p&&(t[n]=e[n]);return t}function w(t,e,n){for(var i=E(e),r=0;r<i.length;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}i["d"].createCanvas;function O(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function S(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function T(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var a=i[r];"constructor"!==a&&(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}else w(t,e,n)}function M(t){return!!t&&("string"!==typeof t&&"number"===typeof t.length)}function A(t,e,n){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function C(t,e,n){if(!t)return[];if(!e)return J(t);if(t.map&&t.map===h)return t.map(e,n);for(var i=[],r=0,a=t.length;r<a;r++)i.push(e.call(n,t[r],r,t));return i}function I(t,e,n,i){if(t&&e){for(var r=0,a=t.length;r<a;r++)n=e.call(i,n,t[r],r,t);return n}}function D(t,e,n){if(!t)return[];if(!e)return J(t);if(t.filter&&t.filter===u)return t.filter(e,n);for(var i=[],r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function L(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function E(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function j(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(c.call(arguments)))}}var P=f&&k(f.bind)?f.call.bind(f.bind):j;function N(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(c.call(arguments)))}}function R(t){return Array.isArray?Array.isArray(t):"[object Array]"===o.call(t)}function k(t){return"function"===typeof t}function B(t){return"string"===typeof t}function z(t){return"[object String]"===o.call(t)}function V(t){return"number"===typeof t}function F(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function G(t){return!!r[o.call(t)]}function H(t){return!!a[o.call(t)]}function U(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function W(t){return null!=t.colorStops}function X(t){return null!=t.image}function Z(t){return"[object RegExp]"===o.call(t)}function q(t){return t!==t}function Y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function K(t,e){return null!=t?t:e}function Q(t,e,n){return null!=t?t:null!=e?e:n}function J(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return c.apply(t,e)}function $(t){if("number"===typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function tt(t,e){if(!t)throw new Error(e)}function et(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var nt="__ec_primitive__";function it(t){t[nt]=!0}function rt(t){return t[nt]}var at=function(){function t(e){this.data={};var n=R(e);this.data={};var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&A(e,r)}return t.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},t.prototype.set=function(t,e){return this.data[t]=e},t.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},t.prototype.keys=function(){return E(this.data)},t.prototype.removeKey=function(t){delete this.data[t]},t}();function ot(t){return new at(t)}function st(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function lt(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&x(n,e),n}function ut(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ct(t,e){return t.hasOwnProperty(e)}function ht(){}var dt=180/Math.PI},"6fd3":function(t,e,n){"use strict";var i=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof e&&(i=n,n=e,e=null),!n||!t)return this;var a=this._$eventProcessor;null!=e&&a&&a.normalizeQuery&&(e=a.normalizeQuery(e)),r[t]||(r[t]=[]);for(var o=0;o<r[t].length;o++)if(r[t][o].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,a=n[t].length;r<a;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var a=e.length,o=i.length,s=0;s<o;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(a){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 r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var a=e.length,o=e[a-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(a){case 0:u.h.call(o);break;case 1:u.h.call(o,e[0]);break;case 2:u.h.call(o,e[0],e[1]);break;default:u.h.apply(o,e.slice(1,a-1));break}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}();e["a"]=i},"726e":function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return d}));var i=12,r="sans-serif",a=i+"px "+r,o=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function u(t){var e={};if("undefined"===typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-o)/s;e[i]=r}return e}var c=u(l),h={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var o=h.createCanvas();t=o&&o.getContext("2d")}if(t)return e!==r&&(e=t.font=r||a),t.measureText(n);n=n||"",r=r||a;var s=/^([0-9]*?)px$/.exec(r),l=+(s&&s[1])||i,u=0;if(r.indexOf("mono")>=0)u=l*n.length;else for(var d=0;d<n.length;d++){var f=c[n[d]];u+=null==f?l:f*l}return{width:u}}}(),loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function d(t){for(var e in h)t[e]&&(h[e]=t[e])}},7368:function(t,e,n){"use strict";var i=n("6d8b");function r(t){return"_EC_"+t}var a=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[r(t)]){var i=new o(t,e);return i.hostGraph=this,this.nodes.push(i),n[r(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[r(t)]},t.prototype.addEdge=function(t,e,n){var a=this._nodesMap,l=this._edgesMap;if(i["z"](t)&&(t=this.nodes[t]),i["z"](e)&&(e=this.nodes[e]),t instanceof o||(t=a[r(t)]),e instanceof o||(e=a[r(e)]),t&&e){var u=t.id+"-"+e.id,c=new s(t,e,n);return c.hostGraph=this,this._directed&&(t.outEdges.push(c),e.inEdges.push(c)),t.edges.push(c),t!==e&&e.edges.push(c),this.edges.push(c),l[u]=c,c}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof o&&(t=t.id),e instanceof o&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof o||(e=this._nodesMap[r(e)]),e){for(var a="out"===n?"outEdges":"in"===n?"inEdges":"edges",s=0;s<this.nodes.length;s++)this.nodes[s].__visited=!1;if(!t.call(i,e,null)){var l=[e];while(l.length){var u=l.shift(),c=u[a];for(s=0;s<c.length;s++){var h=c[s],d=h.node1===u?h.node2:h.node1;if(!d.__visited){if(t.call(i,d,u))return;l.push(d),d.__visited=!0}}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(r=0,a=t.count();r<a;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,a=i.length;r<a;r++)i[r].dataIndex=-1;for(r=0,a=e.count();r<a;r++)i[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)e.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var a=i[r];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},t}(),o=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t}(),s=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t}();function l(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}i["K"](o,l("hostGraph","data")),i["K"](s,l("hostGraph","edgeData")),e["a"]=a},"76a5":function(t,e,n){"use strict";n.d(e,"c",(function(){return b})),n.d(e,"b",(function(){return w}));var i=n("21a10"),r=n("d409"),a=n("dd4f"),o=n("6d8b"),s=n("e86a"),l=n("0da8"),u=n("c7a2"),c=n("9850"),h=n("19eb"),d=n("726e"),f={fill:"#000"},p=2,g={style:Object(o["i"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},h["a"].style)},m=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=f,n.attr(e),n}return Object(i["a"])(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,O(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new c["a"](0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var a=e[r],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(t.copy(o),t.applyTransform(s),i=i||t.clone(),i.union(t)):(i=i||o.clone(),i.union(o))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||f},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return Object(o["m"])(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=Object(o["F"])(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},Object(o["m"])(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return g},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||d["a"],n=t.padding,i=C(t),o=Object(r["a"])(i,t),l=I(t),u=!!t.backgroundColor,h=o.outerHeight,f=o.outerWidth,g=o.contentWidth,m=o.lines,v=o.lineHeight,y=this._defaultStyle,_=t.x||0,b=t.y||0,w=t.align||y.align||"left",O=t.verticalAlign||y.verticalAlign||"top",S=_,D=Object(s["b"])(b,o.contentHeight,O);if(l||n){var L=Object(s["a"])(_,f,w),E=Object(s["b"])(b,h,O);l&&this._renderBackground(t,t,L,E,f,h)}D+=v/2,n&&(S=A(_,w,n),"top"===O?D+=n[0]:"bottom"===O&&(D-=n[2]));for(var j=0,P=!1,N=(M("fill"in t?t.fill:(P=!0,y.fill))),R=(T("stroke"in t?t.stroke:u||y.autoStroke&&!P?null:(j=p,y.stroke))),k=t.textShadowBlur>0,B=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),z=o.calculatedLineHeight,V=0;V<m.length;V++){var F=this._getOrCreateChild(a["a"]),G=F.createStyle();F.useStyle(G),G.text=m[V],G.x=S,G.y=D,w&&(G.textAlign=w),G.textBaseline="middle",G.opacity=t.opacity,G.strokeFirst=!0,k&&(G.shadowBlur=t.textShadowBlur||0,G.shadowColor=t.textShadowColor||"transparent",G.shadowOffsetX=t.textShadowOffsetX||0,G.shadowOffsetY=t.textShadowOffsetY||0),G.stroke=R,G.fill=N,R&&(G.lineWidth=t.lineWidth||j,G.lineDash=t.lineDash,G.lineDashOffset=t.lineDashOffset||0),G.font=e,x(G,t),D+=v,B&&F.setBoundingRect(new c["a"](Object(s["a"])(G.x,t.width,G.textAlign),Object(s["b"])(G.y,z,G.textBaseline),g,z))}},e.prototype._updateRichTexts=function(){var t=this.style,e=C(t),n=Object(r["b"])(e,t),i=n.width,a=n.outerWidth,o=n.outerHeight,l=t.padding,u=t.x||0,c=t.y||0,h=this._defaultStyle,d=t.align||h.align,f=t.verticalAlign||h.verticalAlign,p=Object(s["a"])(u,a,d),g=Object(s["b"])(c,o,f),m=p,v=g;l&&(m+=l[3],v+=l[0]);var y=m+i;I(t)&&this._renderBackground(t,t,p,g,a,o);for(var _=!!t.backgroundColor,b=0;b<n.lines.length;b++){var x=n.lines[b],w=x.tokens,O=w.length,S=x.lineHeight,T=x.width,M=0,A=m,D=y,L=O-1,E=void 0;while(M<O&&(E=w[M],!E.align||"left"===E.align))this._placeToken(E,t,S,v,A,"left",_),T-=E.width,A+=E.width,M++;while(L>=0&&(E=w[L],"right"===E.align))this._placeToken(E,t,S,v,D,"right",_),T-=E.width,D-=E.width,L--;A+=(i-(A-m)-(y-D)-T)/2;while(M<=L)E=w[M],this._placeToken(E,t,S,v,A+E.width/2,"center",_),A+=E.width,M++;v+=S}},e.prototype._placeToken=function(t,e,n,i,r,l,u){var h=e.rich[t.styleName]||{};h.text=t.text;var f=t.verticalAlign,g=i+n/2;"top"===f?g=i+t.height/2:"bottom"===f&&(g=i+n-t.height/2);var m=!t.isLineHolder&&I(h);m&&this._renderBackground(h,e,"right"===l?r-t.width:"center"===l?r-t.width/2:r,g-t.height/2,t.width,t.height);var v=!!h.backgroundColor,y=t.textPadding;y&&(r=A(r,l,y),g-=t.height/2-y[0]-t.innerHeight/2);var _=this._getOrCreateChild(a["a"]),b=_.createStyle();_.useStyle(b);var w=this._defaultStyle,O=!1,S=0,C=M("fill"in h?h.fill:"fill"in e?e.fill:(O=!0,w.fill)),D=T("stroke"in h?h.stroke:"stroke"in e?e.stroke:v||u||w.autoStroke&&!O?null:(S=p,w.stroke)),L=h.textShadowBlur>0||e.textShadowBlur>0;b.text=t.text,b.x=r,b.y=g,L&&(b.shadowBlur=h.textShadowBlur||e.textShadowBlur||0,b.shadowColor=h.textShadowColor||e.textShadowColor||"transparent",b.shadowOffsetX=h.textShadowOffsetX||e.textShadowOffsetX||0,b.shadowOffsetY=h.textShadowOffsetY||e.textShadowOffsetY||0),b.textAlign=l,b.textBaseline="middle",b.font=t.font||d["a"],b.opacity=Object(o["Q"])(h.opacity,e.opacity,1),x(b,h),D&&(b.lineWidth=Object(o["Q"])(h.lineWidth,e.lineWidth,S),b.lineDash=Object(o["P"])(h.lineDash,e.lineDash),b.lineDashOffset=e.lineDashOffset||0,b.stroke=D),C&&(b.fill=C);var E=t.contentWidth,j=t.contentHeight;_.setBoundingRect(new c["a"](Object(s["a"])(b.x,E,b.textAlign),Object(s["b"])(b.y,j,b.textBaseline),E,j))},e.prototype._renderBackground=function(t,e,n,i,r,a){var s,c,h=t.backgroundColor,d=t.borderWidth,f=t.borderColor,p=h&&h.image,g=h&&!p,m=t.borderRadius,v=this;if(g||t.lineHeight||d&&f){s=this._getOrCreateChild(u["a"]),s.useStyle(s.createStyle()),s.style.fill=null;var y=s.shape;y.x=n,y.y=i,y.width=r,y.height=a,y.r=m,s.dirtyShape()}if(g){var _=s.style;_.fill=h||null,_.fillOpacity=Object(o["P"])(t.fillOpacity,1)}else if(p){c=this._getOrCreateChild(l["a"]),c.onload=function(){v.dirtyStyle()};var b=c.style;b.image=h.image,b.x=n,b.y=i,b.width=r,b.height=a}if(d&&f){_=s.style;_.lineWidth=d,_.stroke=f,_.strokeOpacity=Object(o["P"])(t.strokeOpacity,1),_.lineDash=t.borderDash,_.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var x=(s||c).style;x.shadowBlur=t.shadowBlur||0,x.shadowColor=t.shadowColor||"transparent",x.shadowOffsetX=t.shadowOffsetX||0,x.shadowOffsetY=t.shadowOffsetY||0,x.opacity=Object(o["Q"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return w(t)&&(e=[t.fontStyle,t.fontWeight,b(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(o["T"])(e)||t.textFont||t.font},e}(h["c"]),v={left:!0,right:1,center:1},y={top:1,bottom:1,middle:1},_=["fontStyle","fontWeight","fontSize","fontFamily"];function b(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?d["c"]+"px":t+"px":t}function x(t,e){for(var n=0;n<_.length;n++){var i=_[n],r=e[i];null!=r&&(t[i]=r)}}function w(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function O(t){return S(t),Object(o["k"])(t.rich,S),t}function S(t){if(t){t.font=m.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||v[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||y[n]?n:"top";var i=t.padding;i&&(t.padding=Object(o["M"])(t.padding))}}function T(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function M(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function A(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function C(t){var e=t.text;return null!=e&&(e+=""),e}function I(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}e["a"]=m},7729:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAArCAYAAACNWyPFAAALpklEQVRYhY1Xe2xb133+zrnvyzdFihRJvW1LjhZLrt04Vlo3buykyZIWa4JgAdZuKTagbYZiQ7OhK7YCG4b90bXAhgHrHxm2YBv6SNJ16Owka5omnhPHcSpbkhXJtqyXKZmkRPEhkpf3fYZ75ZpGCmw+xAUvecnz/Z7f7zvk+a9/A97ieR7l7RrK25tIJbuQySRx/oM5EgoF41rLOFbYbD20sVEdazbMPhBOYnCNcFC+kctGP0yl1LOmRc52ReWbbU3DwOAgolEFrWYbhBDw+MhiDBAlAYZhhnTDeubih4tfqTQw4TgSeBJCOh1ENhNEcVNDqaQPNVbw4Pxy7blknK6M30O/5zjOvyqyWKKUeLsBIOAmJz/ho1BK0dLaYMyGIosTb/7P3L+fv5R/rmXyacaJ4AiH3kwchw/FsGeEIRTgYZoUO3UDoiSi2nRjH14pnDQs49FsOrocCavXHduF66ID4rkFwtBoNj/7+lvTLy0tbt7DqUFwvOcsBVyK+w7lEAgw1KtNGLoBRQEKN13fXl5goJKAcsXonp67+tuqRNxsJnlekgSXO/7gp8FzHAKqgmp158lTr577wVZJiwjxsIcM5gGAgiM8knEOXUkBcAh4aqG83cLWNg9KvcAwMNcCJzLYLqVXF1Y+HY0qxHWds/zSSt73JBhUcx+8P/cnlfKOLHen4DouGKNw/KfM/1ypmehzVDCiw3YZGg0FhmFDEAkYT+GCwPVyKnIwSQivvTX155Q4/8xrLW03XMwVLMcVPasNiwGmBWZoXhxARBGyoKBeqeHylAaB5+G6LlpNEwHFhekw6G0Hrmn5IacKBWwbtmuBEBf82OiwD6Io8ook8n9R17R/3Cg2+nqyXdjTn0ZQliBLPCRxd2NCCURJgZ9UZgBwYJoMusnQbgPbtRYWltehBujOyU8+8LfhoLLB64bpg5iWg0QifLq3J3qQA3vu2NGRrw/05yKqokBVFQiiCOKHg/i58vPkpYu4sG0bWqsFx3awuVWBKjTfM232rZd/9OLP/R602W6f8ISgUmshGgtUjhzc++NCafML5395KcJ79W47IDyFQDi4zAXzPfKwKBgjcF0GmzmQg0HozSZ6M+Hzhs299asO5HMSu1XCNhJhBWPpIWwbprg6P8t/8aFjyBsMr7x5BoX8OjTL/GjvgqMEye4kjt9/BM88cAD/9KOXceFKbfuBjx9wboOE+FuugIEPCHAkHhcXl9qG6Wh9e/dB3Cxjf64HRw/ci0gkjOpOA5rehiop6O6K+fcr+XVkoyE8cd84Zi9dxEJjdttlHYN4h3WsahtWZE889J3j/dkT908+GEuM7MPkGLBn/xjOXprB8UOHMTG6H4Tn4MVrZXUVr777Do4cPoQnJ48AkgtelPHEwYk/Orx/6EkAJ32Qnkz6Nohp2+PRcOjzvSPjcfU3DqJy6T3osRB6D92HldfewFitilAkDNguEAiCX89jcW0N2fFx0O4sUN1AOKggkh0YeWjy2Miv9qWOIMK7XFEEryjLO0RYyox/DMMDfRBDcazX2/iz5/8UL//HT3Du4rTfbJZhAMzFZqWKV06dxvN//Dz+8/SrQCyCoVwWgwMD0Bi9bTy15ABsJQiNl5GvtgpiOpNP5XI+PSvURS4WRnlrE612G7FwyGtaeGQDx0E8GoYkSSgVCxCZC8+C3q4YIjAwNXf5p7dz0j80ClGUkM+v499++OpvvXbm0ueVaAoSZzvh4ipJDwzQz504jkhQxaNH7wezTNR36ugSeOzr7cPv/OZjmL5yFWO5HkBrYbPRXH97ev5FIRL9zm0QQRB9a3iehkvl5rNzMzP4+ZuX8ehnDpz63rMnRzgOo19+7AT+4LOPQ1GCcCwTsizAsWzwjOEvv/pl6FoDCZXCyq+gyvMvyKnkX0VCsU51lTZLiERCuPzhlcfnriw/hkAvoJvoTne/uFCsZqOU+/vIwCAHymNzq4RirYpIOAZdL4IwB/2ZbgS7w0C9iKml5enNtvv91OAg1Gi2AzIze5nnOBp9/fWzvwfDAVwTH58c/UU0pJx76a2pzdK9feojnPiH6UxPtisqct5ELG40IAgE2e4kpKAAo5BvXbi29tM5k/+mEoutBhWKYmmjAxKLxRI38jfvf3dq/iRCUcB00RVg0zMzV4M8J42dnl/p+q/zU2tH9/RHJsfGIgeGBxCIKt5UxfbNMk7/5H2cunBpcU13y5868cmuwdzAqus42N/TaUB+eWXtxOrazQdgaBDCCXCiifMXrz3FS9HPqUpkoD1f5sr1mv3jt4voT13F73/hCTjlDYTCUVSojO/+ww8cvW2NcjKZ2Gma4wPZ4aeTqZFSJvhOh3oqNffvVvOlzzRMXvKGjUewbUOItNp8vK451HYiEKUUJTREiUwRGroH/z1VwdUKBRdNYHpmkUJN8oyoyC9e6xeVSDOT7jszqv4LQv1f3PWkWqv1W6YbguFC572h480tAZA4eC+P4EEcMM6E3qyjmi/gwKEjMFo1rMzOAIYNKgGEI3DELpSr7W+UioU3SFo7dztcTz/1yFfq9Ub/u+9NP2W4dLShOamWoUuu7bWcBcZ7DK34asYyXcxMzSLeJ8PUt1HfWEA00QWXctC8iSVwkCRebmmNezWLdEAG+nI/q9druH7t+isbW1piYrQ7uG8oHZubv66EAqG+6QXjW7neVPrggZQ3UfH2mVmszPwMhFKk0t3YO5zDdrWGa0tVNCiHd395DcvLq5HH95Y7idd1A7puwrKcqmE5VVWR0NcTQ+mmAL1dkzhO/Gq+UElbtgnHIjAsAYP9CVRrOioN4IP5VVi2DmYbUCQelcIWxu85rMSTdoe7bt+R3ZniOC5abR3BcALReILIkuTUdjQsrmxhZWMTuuWirknQIcBwTNRbLTTbpjc84ekVSAI4tiO9ceXoHSBk98YboZ4e5nkOPC8gk01h38iQLqtCy/uReOsZxwHhkAxuV2xB4Ch4ju6OfY8kPeKMqM565Q5aYYzBu1qajtHhFEaH06jWd2USczgIlNXoLX8p2dVV9aYGx3VAKbery3xd4c1/5r/ruqERZnVAPAXiCYLeXAqyLOPacun2Q4GnMA2jwRHB38gzxtvPG0ymZfo61w848+UWXC8wAodoNFb0iLfDwqKAeDyGTxyd9DXVnUtRRBRK57iljSYkjgf11AkAXbduabDdMQxK0DZ0oNUAH0hgeGDohqoG76yu3T+Ypr0ruu9YnuXJZOgKZZsMLiWE48FTDqrKo9n2Eun4uss1W053TLYDybAUSSbXXFiFtq53QMrllh+KjwL4OdFMjN878t1qpbpv6vLq0xADcJmC9bU6CGdB4mU0tQYk0ph75FOHf/Hsl373a4Vi6YOF+bmlRovrVFdQpfCoOSCTX7u87127XXv4oY/9jRqg25plwPCsp94IFkCICtvhkUylloNB+a9bzcZ0MhGf27tnyAiqyp1UL/6aBx9dlHKz0Vg0X9X0LoeooMT1D0UOUeDxTkAV2EBfT2Xx+tK3u7oShUwmg+2d9Q6IrKr/PwghLNsdmV1db014pelFlhHvPGL75ClzpNKd7IbpkJcsy0C+UEG9oXVAri1u/J8AuHUK607GLgpc4RmvsncLmfi6GNRBT0+qSAQFjXoFvdkU8qUmNO2OxG9XancBAqiKOEcFarqO1zTwm4M5uwfPWDy4RTjO753lG9to6F7ShQ5If1/PXXliWtaCGlBrOw0h4Hee/0AGxyuGbVgFSeCxf3QEK6t5tNoGAqrcASlv3rw7TwLBakJulVrlrSzEhHdOha0XoYpaW5GGGxzlocoqejL7cGz0FJLKCoCv7YJoWutuPEkWNgovmDvrE6xZAuSwyYlS02oU46IsRm8sp14ob018KRyOvAEugHTgBrLK+x1Pctnc3YCEz545O1QsFKuZbM/Cww+f/LZlWdsXLlz45sLV60fOvvNOon+wvz8QUrGxxTCMJqQokPD+DOB/AUTdPMSkWxHSAAAAAElFTkSuQmCC"},7837:function(t,e,n){"use strict";n.d(e,"g",(function(){return h})),n.d(e,"e",(function(){return d})),n.d(e,"c",(function(){return f})),n.d(e,"b",(function(){return p})),n.d(e,"d",(function(){return x})),n.d(e,"f",(function(){return w})),n.d(e,"h",(function(){return O})),n.d(e,"a",(function(){return S}));var i=n("76a5"),r=n("6d8b"),a=n("7d6c"),o=n("e0d3"),s=n("deab"),l={};function u(t,e){for(var n=0;n<a["g"].length;n++){var i=a["g"][n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(s,!0)}function c(t,e,n){var i,o=t.labelFetcher,s=t.labelDataIndex,l=t.labelDimIndex,u=e.normal;o&&(i=o.getFormattedLabel(s,"normal",null,l,u&&u.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=Object(r["w"])(t.defaultText)?t.defaultText(s,t,n):t.defaultText);for(var c={normal:i},h=0;h<a["g"].length;h++){var d=a["g"][h],f=e[d];c[d]=Object(r["P"])(o?o.getFormattedLabel(s,d,null,l,f&&f.get("formatter")):null,i)}return c}function h(t,e,n,o){n=n||l;for(var s=t instanceof i["a"],h=!1,d=0;d<a["a"].length;d++){var g=e[a["a"][d]];if(g&&g.getShallow("show")){h=!0;break}}var m=s?t:t.getTextContent();if(h){s||(m||(m=new i["a"],t.setTextContent(m)),t.stateProxy&&(m.stateProxy=t.stateProxy));var v=c(n,e),y=e.normal,_=!!y.getShallow("show"),b=f(y,o&&o.normal,n,!1,!s);b.text=v.normal,s||t.setTextConfig(p(y,n,!1));for(d=0;d<a["g"].length;d++){var x=a["g"][d];g=e[x];if(g){var O=m.ensureState(x),S=!!Object(r["P"])(g.getShallow("show"),_);if(S!==_&&(O.ignore=!S),O.style=f(g,o&&o[x],n,!0,!s),O.style.text=v[x],!s){var T=t.ensureState(x);T.textConfig=p(g,n,!0)}}}m.silent=!!y.getShallow("silent"),null!=m.style.x&&(b.x=m.style.x),null!=m.style.y&&(b.y=m.style.y),m.ignore=!_,m.useStyle(b),m.dirty(),n.enableTextSetter&&(w(m).setLabelText=function(t){var i=c(n,e,t);u(m,i)})}else m&&(m.ignore=!0);t.dirty()}function d(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<a["g"].length;i++){var r=a["g"][i];n[r]=t.getModel([r,e])}return n}function f(t,e,n,i,a){var o={};return g(o,t,n,i,a),e&&Object(r["m"])(o,e),o}function p(t,e,n){e=e||{};var i,a={},o=t.getShallow("rotate"),s=Object(r["P"])(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=e.defaultOutsidePosition||"top"),null!=i&&(a.position=i),null!=l&&(a.offset=l),null!=o&&(o*=Math.PI/180,a.rotation=o),null!=s&&(a.distance=s),a.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",a}function g(t,e,n,i,r){n=n||l;var a,o=e.ecModel,s=o&&o.option.textStyle,u=m(e);if(u)for(var c in a={},u)if(u.hasOwnProperty(c)){var h=e.getModel(["rich",c]);b(a[c]={},h,s,n,i,r,!1,!0)}a&&(t.rich=a);var d=e.get("overflow");d&&(t.overflow=d);var f=e.get("minMargin");null!=f&&(t.margin=f),b(t,e,s,n,i,r,!0,!1)}function m(t){var e;while(t&&t!==t.ecModel){var n=(t.option||l).rich;if(n){e=e||{};for(var i=Object(r["F"])(n),a=0;a<i.length;a++){var o=i[a];e[o]=1}}t=t.parentModel}return e}var v=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],y=["align","lineHeight","width","height","tag","verticalAlign"],_=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function b(t,e,n,i,a,o,s,u){n=!a&&n||l;var c=i&&i.inheritColor,h=e.getShallow("color"),d=e.getShallow("textBorderColor"),f=Object(r["P"])(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),o||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(t.fill=h),null!=d&&(t.stroke=d);var p=Object(r["P"])(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var g=Object(r["P"])(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var m=Object(r["P"])(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=m&&(t.lineDashOffset=m),a||null!=f||u||(f=i&&i.defaultOpacity),null!=f&&(t.opacity=f),a||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var b=0;b<v.length;b++){var x=v[b],w=Object(r["P"])(e.getShallow(x),n[x]);null!=w&&(t[x]=w)}for(b=0;b<y.length;b++){x=y[b],w=e.getShallow(x);null!=w&&(t[x]=w)}if(null==t.verticalAlign){var O=e.getShallow("baseline");null!=O&&(t.verticalAlign=O)}if(!s||!i.disableBox){for(b=0;b<_.length;b++){x=_[b],w=e.getShallow(x);null!=w&&(t[x]=w)}var S=e.getShallow("borderType");null!=S&&(t.borderDash=S),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}function x(t,e){var n=e&&e.getModel("textStyle");return Object(r["T"])([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var w=Object(o["o"])();function O(t,e,n,i){if(t){var r=w(t);r.prevValue=r.value,r.value=n;var a=e.normal;r.valueAnimation=a.get("valueAnimation"),r.valueAnimation&&(r.precision=a.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function S(t,e,n,i,a){var l=w(t);if(l.valueAnimation&&l.prevValue!==l.value){var h=l.defaultInterpolatedText,d=Object(r["P"])(l.interpolatedValue,l.prevValue),f=l.value;t.percent=0,(null==l.prevValue?s["c"]:s["h"])(t,{percent:1},i,e,null,p)}function p(i){var r=Object(o["k"])(n,l.precision,d,f,i);l.interpolatedValue=1===i?null:r;var s=c({labelDataIndex:e,labelFetcher:a,defaultText:h?h(r):r+""},l.statesModels,r);u(t,s)}}},"7a29":function(t,e,n){"use strict";(function(t){n.d(e,"p",(function(){return s})),n.d(e,"j",(function(){return u})),n.d(e,"q",(function(){return h})),n.d(e,"e",(function(){return d})),n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return p})),n.d(e,"i",(function(){return g})),n.d(e,"h",(function(){return m})),n.d(e,"l",(function(){return v})),n.d(e,"n",(function(){return _})),n.d(e,"m",(function(){return b})),n.d(e,"o",(function(){return x})),n.d(e,"k",(function(){return w})),n.d(e,"d",(function(){return O})),n.d(e,"f",(function(){return S})),n.d(e,"g",(function(){return T})),n.d(e,"c",(function(){return M}));var i=n("6d8b"),r=n("41ef"),a=n("22d1"),o=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"===typeof t&&t.indexOf("rgba")>-1){var n=Object(r["parse"])(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var l=1e-4;function u(t){return t<l&&t>-l}function c(t){return o(1e3*t)/1e3}function h(t){return o(1e4*t)/1e4}function d(t){return"matrix("+c(t[0])+","+c(t[1])+","+c(t[2])+","+c(t[3])+","+h(t[4])+","+h(t[5])+")"}var f={left:"start",right:"end",center:"middle",middle:"middle"};function p(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function m(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(t){return t&&!!t.image}function y(t){return t&&!!t.svgElement}function _(t){return v(t)||y(t)}function b(t){return"linear"===t.type}function x(t){return"radial"===t.type}function w(t){return t&&("linear"===t.type||"radial"===t.type)}function O(t){return"url(#"+t+")"}function S(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function T(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i["a"],a=Object(i["P"])(t.scaleX,1),s=Object(i["P"])(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,c=[];return(e||n)&&c.push("translate("+e+"px,"+n+"px)"),r&&c.push("rotate("+r+")"),1===a&&1===s||c.push("scale("+a+","+s+")"),(l||u)&&c.push("skew("+o(l*i["a"])+"deg, "+o(u*i["a"])+"deg)"),c.join(" ")}var M=function(){return a["a"].hasGlobalWindow&&Object(i["w"])(window.btoa)?function(t){return window.btoa(unescape(t))}:"undefined"!==typeof t?function(e){return t.from(e).toString("base64")}:function(t){return null}}()}).call(this,n("b639").Buffer)},"7d6c":function(t,e,n){"use strict";n.d(e,"d",(function(){return p})),n.d(e,"e",(function(){return g})),n.d(e,"g",(function(){return m})),n.d(e,"a",(function(){return v})),n.d(e,"j",(function(){return y})),n.d(e,"c",(function(){return b})),n.d(e,"b",(function(){return x})),n.d(e,"f",(function(){return w})),n.d(e,"i",(function(){return O})),n.d(e,"h",(function(){return S})),n.d(e,"H",(function(){return k})),n.d(e,"G",(function(){return H})),n.d(e,"r",(function(){return X})),n.d(e,"C",(function(){return Z})),n.d(e,"q",(function(){return q})),n.d(e,"B",(function(){return Y})),n.d(e,"s",(function(){return K})),n.d(e,"D",(function(){return Q})),n.d(e,"k",(function(){return $})),n.d(e,"l",(function(){return et})),n.d(e,"m",(function(){return nt})),n.d(e,"t",(function(){return it})),n.d(e,"x",(function(){return rt})),n.d(e,"w",(function(){return at})),n.d(e,"K",(function(){return ot})),n.d(e,"L",(function(){return st})),n.d(e,"u",(function(){return lt})),n.d(e,"o",(function(){return ut})),n.d(e,"J",(function(){return ht})),n.d(e,"p",(function(){return dt})),n.d(e,"I",(function(){return gt})),n.d(e,"F",(function(){return mt})),n.d(e,"y",(function(){return vt})),n.d(e,"n",(function(){return yt})),n.d(e,"v",(function(){return _t})),n.d(e,"A",(function(){return bt})),n.d(e,"z",(function(){return xt})),n.d(e,"E",(function(){return wt}));var i=n("d51b"),r=n("6d8b"),a=n("861c"),o=n("41ef"),s=n("e0d3"),l=n("cbe5"),u=1,c={},h=Object(s["o"])(),d=Object(s["o"])(),f=0,p=1,g=2,m=["emphasis","blur","select"],v=["normal","emphasis","blur","select"],y=10,_=9,b="highlight",x="downplay",w="select",O="unselect",S="toggleSelect";function T(t){return null!=t&&"none"!==t}var M=new i["a"](100);function A(t){if(Object(r["C"])(t)){var e=M.get(t);return e||(e=o["lift"](t,-.1),M.put(t,e)),e}if(Object(r["x"])(t)){var n=Object(r["m"])({},t);return n.colorStops=Object(r["H"])(t.colorStops,(function(t){return{offset:t.offset,color:o["lift"](t.color,-.1)}})),n}return t}function C(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function I(t){C(t,"emphasis",g)}function D(t){t.hoverState===g&&C(t,"normal",f)}function L(t){C(t,"blur",p)}function E(t){t.hoverState===p&&C(t,"normal",f)}function j(t){t.selected=!0}function P(t){t.selected=!1}function N(t,e,n){e(t,n)}function R(t,e,n){N(t,e,n),t.isGroup&&t.traverse((function(t){N(t,e,n)}))}function k(t,e){switch(e){case"emphasis":t.hoverState=g;break;case"normal":t.hoverState=f;break;case"blur":t.hoverState=p;break;case"select":t.selected=!0}}function B(t,e,n,i){for(var r=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=r[s];a[s]=null==l?i&&i[s]:l}for(o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(a,e)}return a}function z(t,e,n,i){var a=n&&Object(r["r"])(n,"select")>=0,o=!1;if(t instanceof l["b"]){var s=h(t),u=a&&s.selectFill||s.normalFill,c=a&&s.selectStroke||s.normalStroke;if(T(u)||T(c)){i=i||{};var d=i.style||{};"inherit"===d.fill?(o=!0,i=Object(r["m"])({},i),d=Object(r["m"])({},d),d.fill=u):!T(d.fill)&&T(u)?(o=!0,i=Object(r["m"])({},i),d=Object(r["m"])({},d),d.fill=A(u)):!T(d.stroke)&&T(c)&&(o||(i=Object(r["m"])({},i),d=Object(r["m"])({},d)),d.stroke=A(c)),i.style=d}}if(i&&null==i.z2){o||(i=Object(r["m"])({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(null!=f?f:y)}return i}function V(t,e,n){if(n&&null==n.z2){n=Object(r["m"])({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:_)}return n}function F(t,e,n){var i=Object(r["r"])(t.currentStates,e)>=0,a=t.style.opacity,o=i?null:B(t,["opacity"],e,{opacity:1});n=n||{};var s=n.style||{};return null==s.opacity&&(n=Object(r["m"])({},n),s=Object(r["m"])({opacity:i?a:.1*o.opacity},s),n.style=s),n}function G(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return z(this,t,e,n);if("blur"===t)return F(this,t,n);if("select"===t)return V(this,t,n)}return n}function H(t){t.stateProxy=G;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=G),n&&(n.stateProxy=G)}function U(t,e){!J(t,e)&&!t.__highByOuter&&R(t,I)}function W(t,e){!J(t,e)&&!t.__highByOuter&&R(t,D)}function X(t,e){t.__highByOuter|=1<<(e||0),R(t,I)}function Z(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&R(t,D)}function q(t){R(t,L)}function Y(t){R(t,E)}function K(t){R(t,j)}function Q(t){R(t,P)}function J(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function $(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var a=d(r),o="series"===e,s=o?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!o&&i.push(s),a.isBlured&&(s.group.traverse((function(t){E(t)})),o&&n.push(r)),a.isBlured=!1})),Object(r["k"])(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function tt(t,e,n,i){var a=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&Y(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var s=a.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];a.eachSeries((function(t){var a=s===t,c=t.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&l?c===l:a;if(!("series"===n&&!a||"coordinateSystem"===n&&!h||"series"===e&&a)){var f=i.getViewOfSeriesModel(t);if(f.group.traverse((function(t){L(t)})),Object(r["u"])(e))o(t.getData(),e);else if(Object(r["A"])(e))for(var p=Object(r["F"])(e),g=0;g<p.length;g++)o(t.getData(p[g]),e[p[g]]);u.push(t),d(t).isBlured=!0}})),a.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,a)}}))}}function et(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){d(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){L(t)}))}}}function nt(t,e,n){var i=t.seriesIndex,o=t.getData(e.dataType);if(o){var l=Object(s["u"])(o,e);l=(Object(r["t"])(l)?l[0]:l)||0;var u=o.getItemGraphicEl(l);if(!u){var c=o.count(),h=0;while(!u&&h<c)u=o.getItemGraphicEl(h++)}if(u){var d=Object(a["a"])(u);tt(i,d.focus,d.blurScope,n)}else{var f=t.get(["emphasis","focus"]),p=t.get(["emphasis","blurScope"]);null!=f&&tt(i,f,p,n)}}}function it(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var s=i.getViewOfComponentModel(o);if(!s||!s.findHighDownDispatchers)return r;for(var l,u=s.findHighDownDispatchers(n),c=0;c<u.length;c++)if("self"===Object(a["a"])(u[c]).focus){l=!0;break}return{focusSelf:l,dispatchers:u}}function rt(t,e,n){var i=Object(a["a"])(t),o=it(i.componentMainType,i.componentIndex,i.componentHighDownName,n),s=o.dispatchers,l=o.focusSelf;s?(l&&et(i.componentMainType,i.componentIndex,n),Object(r["k"])(s,(function(t){return U(t,e)}))):(tt(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&et(i.componentMainType,i.componentIndex,n),U(t,e))}function at(t,e,n){$(n);var i=Object(a["a"])(t),o=it(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;o?Object(r["k"])(o,(function(t){return W(t,e)})):W(t,e)}function ot(t,e,n){if(bt(e)){var i=e.dataType,a=t.getData(i),o=Object(s["u"])(a,e);Object(r["t"])(o)||(o=[o]),t[e.type===S?"toggleSelect":e.type===w?"select":"unselect"](o,i)}}function st(t){var e=t.getAllData();Object(r["k"])(e,(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?K(e):Q(e)}))}))}function lt(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();Object(r["k"])(n,(function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var a={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(a.dataType=i),e.push(a)}}))})),e}function ut(t,e,n){mt(t,!0),R(t,H),dt(t,e,n)}function ct(t){mt(t,!1)}function ht(t,e,n,i){i?ct(t):ut(t,e,n)}function dt(t,e,n){var i=Object(a["a"])(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var ft=["emphasis","blur","select"],pt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function gt(t,e,n,i){n=n||"itemStyle";for(var r=0;r<ft.length;r++){var a=ft[r],o=e.getModel([a,n]),s=t.ensureState(a);s.style=i?i(o):o[pt[n]]()}}function mt(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function vt(t){return!(!t||!t.__highDownDispatcher)}function yt(t,e,n){var i=Object(a["a"])(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}function _t(t){var e=c[t];return null==e&&u<=32&&(e=c[t]=u++),e}function bt(t){var e=t.type;return e===w||e===O||e===S}function xt(t){var e=t.type;return e===b||e===x}function wt(t){var e=h(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}},"7fae":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */
|
||
var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create},"806c":function(t,e,n){"use strict";n("491e")},"80b9":function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return h})),n.d(e,"e",(function(){return d}));var i=n("6d8b"),r=n("e0d3"),a=n("ec6f"),o=Object(r["o"])(),s={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},l=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=h(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(i["P"])(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Object(a["f"])(this.source),n=!d(t),i="",r=[],o=0,l=0;o<t;o++){var u=void 0,c=void 0,h=void 0,f=this.dimensions[l];if(f&&f.storeDimIndex===o)u=e?f.name:null,c=f.type,h=f.ordinalMeta,l++;else{var p=this.getSourceDimension(o);p&&(u=e?p.name:null,c=p.type)}r.push({property:u,type:c,ordinalMeta:h}),!e||null==u||f&&f.isCalculationCoord||(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=s[c]||"f",h&&(i+=h.uid),i+="$"}var g=this.source,m=[g.seriesLayoutBy,g.startIndex,i].join("$$");return{dimensions:r,hash:m}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var a=this.getSourceDimension(e);a&&(i=a.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function u(t){return t instanceof l}function c(t){for(var e=Object(i["f"])(),n=0;n<(t||[]).length;n++){var r=t[n],a=Object(i["A"])(r)?r.name:r;null!=a&&null==e.get(a)&&e.set(a,n)}return e}function h(t){var e=o(t);return e.dimNameMap||(e.dimNameMap=c(t.dimensionsDefine))}function d(t){return t>30}},"80f0":function(t,e,n){"use strict";function i(t){return null==t?0:t.length||1}function r(t){return t}var a=function(){function t(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||r,this._newKeyGetter=i||r,this.context=a,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=r[o],l=n[s],u=i(l);if(u>1){var c=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(c,o)}else 1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=r[l],h=i(u),d=i(c);if(h>1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,u),r[l]=null;else if(1===h&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),r[l]=null;else if(1===h&&1===d)this._update&&this._update(c,u),r[l]=null;else if(h>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),r[l]=null;else if(h>1)for(var f=0;f<h;f++)this._remove&&this._remove(u[f]);else this._remove&&this._remove(u)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],a=e[r],o=i(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else 1===o&&this._add&&this._add(a);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[r](t[o],o);if(a||(n[o]=s),e){var l=e[s],u=i(l);0===u?(e[s]=o,a&&n.push(s)):1===u?e[s]=[l,o]:l.push(o)}}},t}();e["a"]=a},"84ce":function(t,e,n){"use strict";var i=n("6d8b"),r=n("3842"),a=n("e86a"),o=n("e0d3"),s=n("697e"),l=Object(o["o"])();function u(t){return"category"===t.type?h(t):p(t)}function c(t,e){return"category"===t.type?f(t,e):{ticks:i["H"](t.scale.getTicks(),(function(t){return t.value}))}}function h(t){var e=t.getLabelModel(),n=d(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function d(t,e){var n,r,a=g(t,"labels"),o=Object(s["e"])(e),l=m(a,o);return l||(i["w"](o)?n=w(t,o):(r="auto"===o?y(t):o,n=x(t,r)),v(a,o,{labels:n,labelCategoryInterval:r}))}function f(t,e){var n,r,a=g(t,"ticks"),o=Object(s["e"])(e),l=m(a,o);if(l)return l;if(e.get("show")&&!t.scale.isBlank()||(n=[]),i["w"](o))n=w(t,o,!0);else if("auto"===o){var u=d(t,t.getLabelModel());r=u.labelCategoryInterval,n=i["H"](u.labels,(function(t){return t.tickValue}))}else r=o,n=x(t,r,!0);return v(a,o,{ticks:n,tickCategoryInterval:r})}function p(t){var e=t.scale.getTicks(),n=Object(s["h"])(t);return{labels:i["H"](e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function g(t,e){return l(t)[e]||(l(t)[e]=[])}function m(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function v(t,e,n){return t.push({key:e,value:n}),n}function y(t){var e=l(t).autoInterval;return null!=e?e:l(t).autoInterval=t.calculateCategoryInterval()}function _(t){var e=b(t),n=Object(s["h"])(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),u=r.count();if(o[1]-o[0]<1)return 0;var c=1;u>40&&(c=Math.max(1,Math.floor(u/40)));for(var h=o[0],d=t.dataToCoord(h+1)-t.dataToCoord(h),f=Math.abs(d*Math.cos(i)),p=Math.abs(d*Math.sin(i)),g=0,m=0;h<=o[1];h+=c){var v=0,y=0,_=a["d"](n({value:h}),e.font,"center","top");v=1.3*_.width,y=1.3*_.height,g=Math.max(g,v,7),m=Math.max(m,y,7)}var x=g/f,w=m/p;isNaN(x)&&(x=1/0),isNaN(w)&&(w=1/0);var O=Math.max(0,Math.floor(Math.min(x,w))),S=l(t.model),T=t.getExtent(),M=S.lastAutoInterval,A=S.lastTickCount;return null!=M&&null!=A&&Math.abs(M-O)<=1&&Math.abs(A-u)<=1&&M>O&&S.axisExtent0===T[0]&&S.axisExtent1===T[1]?O=M:(S.lastTickCount=u,S.lastAutoInterval=O,S.axisExtent0=T[0],S.axisExtent1=T[1]),O}function b(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function x(t,e,n){var i=Object(s["h"])(t),r=t.scale,a=r.getExtent(),o=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),c=a[0],h=r.count();0!==c&&u>1&&h/u>2&&(c=Math.round(Math.ceil(c/u)*u));var d=Object(s["j"])(t),f=o.get("showMinLabel")||d,p=o.get("showMaxLabel")||d;f&&c!==a[0]&&m(a[0]);for(var g=c;g<=a[1];g+=u)m(g);function m(t){var e={value:t};l.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return p&&g-u!==a[1]&&m(a[1]),l}function w(t,e,n){var r=t.scale,a=Object(s["h"])(t),o=[];return i["k"](r.getTicks(),(function(t){var i=r.getLabel(t),s=t.value;e(t.value,i)&&o.push(n?s:{formattedLabel:a(t),rawLabel:i,tickValue:s})})),o}var O=[0,1],S=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Object(r["f"])(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),T(n,i.count())),Object(r["l"])(t,O,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),T(n,i.count()));var a=Object(r["l"])(t,n,O,e);return this.scale.scale(a)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=c(this,e),r=n.ticks,a=Object(i["H"])(r,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return M(this,a,o,t.clamp),a},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),r=Object(i["H"])(n,(function(t){return Object(i["H"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(){return u(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return _(this)},t}();function T(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function M(t,e,n,a){var o=e.length;if(t.onBand&&!n&&o){var s,l,u=t.getExtent();if(1===o)e[0].coord=u[0],s=e[1]={coord:u[0]};else{var c=e[o-1].tickValue-e[0].tickValue,h=(e[o-1].coord-e[0].coord)/c;Object(i["k"])(e,(function(t){t.coord-=h/2}));var d=t.scale.getExtent();l=1+d[1]-e[o-1].tickValue,s={coord:e[o-1].coord+h*l},e.push(s)}var f=u[0]>u[1];p(e[0].coord,u[0])&&(a?e[0].coord=u[0]:e.shift()),a&&p(u[0],e[0].coord)&&e.unshift({coord:u[0]}),p(u[1],s.coord)&&(a?s.coord=u[1]:e.pop()),a&&p(s.coord,u[1])&&e.push({coord:u[1]})}function p(t,e){return t=Object(r["v"])(t),e=Object(r["v"])(e),f?t>e:t<e}}e["a"]=S},8567:function(t,e,n){},"857d":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=2*Math.PI;function r(t){return t%=i,t<0&&(t+=i),t}},8582:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return p}));var i=n("1687"),r=n("401b"),a=i["d"],o=5e-5;function s(t){return t>o||t<-o}var l=[],u=[],c=i["c"](),h=Math.abs,d=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||i["c"](),e?this.getLocalTransform(n):a(n),t&&(e?i["f"](n,t,n):i["b"](n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&a(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(l);var n=l[0]<0?-1:1,r=l[1]<0?-1:1,a=((l[0]-n)*e+n)/l[0]||0,o=((l[1]-r)*e+r)/l[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||i["c"](),i["e"](this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(i["f"](u,t.invTransform,e),e=u);var n=this.originX,r=this.originY;(n||r)&&(c[4]=n,c[5]=r,i["f"](u,e,c),u[4]-=n,u[5]-=r,e=u),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r["b"](n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r["b"](n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&h(t[0]-1)>1e-10&&h(t[3]-1)>1e-10?Math.sqrt(h(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){p(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,h=t.y,d=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||r||s||l){var p=n+s,g=r+l;e[4]=-p*a-d*g*o,e[5]=-g*o-f*p*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=f*a,e[2]=d*o,u&&i["g"](e,e,u),e[4]+=n+c,e[5]+=r+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),f=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function p(t,e){for(var n=0;n<f.length;n++){var i=f[n];t[i]=e[i]}}e["c"]=d},"861c":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a}));var i=n("e0d3"),r=Object(i["o"])(),a=function(t,e,n,i){if(i){var a=r(i);a.dataIndex=n,a.dataType=e,a.seriesIndex=t,"group"===i.type&&i.traverse((function(i){var a=r(i);a.seriesIndex=t,a.dataIndex=n,a.dataType=e}))}}},8728:function(t,e,n){"use strict";function i(t,e,n,i,r,a){if(a>e&&a>i||a<e&&a<i)return 0;if(i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;1!==o&&0!==o||(s=i<e?.5:-.5);var l=o*(n-t)+t;return l===r?1/0:l>r?s:0}n.d(e,"a",(function(){return i}))},"87b1":function(t,e,n){"use strict";var i=n("21a10"),r=n("cbe5"),a=n("4fac"),o=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),s=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){a["a"](t,e,!0)},e}(r["b"]);s.prototype.type="polygon",e["a"]=s},"88b3":function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return l}));var i="\0__throttleOriginMethod",r="\0__throttleRate",a="\0__throttleType";function o(t,e,n){var i,r,a,o,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(a,o||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),a=this,o=t;var f=s||e,p=s||n;s=null,r=i-(p?l:u)-f,clearTimeout(c),p?c=setTimeout(h,f):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function s(t,e,n,s){var l=t[e];if(l){var u=l[i]||l,c=l[a],h=l[r];if(h!==n||c!==s){if(null==n||!s)return t[e]=u;l=t[e]=o(u,n,"debounce"===s),l[i]=u,l[a]=s,l[r]=n}return l}}function l(t,e){var n=t[e];n&&n[i]&&(n.clear&&n.clear(),t[e]=n[i])}},8918:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"d",(function(){return u}));var i=n("6d8b"),r=n("625e"),a=Math.round(10*Math.random());function o(t){return[t||"",a++].join("_")}function s(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=Object(r["f"])(t);e[i.main]=n},t.determineSubType=function(n,i){var a=i.type;if(!a){var o=Object(r["f"])(n).main;t.hasSubTypes(n)&&e[o]&&(a=e[o](i))}return a}}function l(t,e){function n(t){var n={},o=[];return i["k"](t,(function(s){var l=r(n,s),u=l.originalDeps=e(s),c=a(u,t);l.entryCount=c.length,0===l.entryCount&&o.push(s),i["k"](c,(function(t){i["r"](l.predecessor,t)<0&&l.predecessor.push(t);var e=r(n,t);i["r"](e.successor,t)<0&&e.successor.push(s)}))})),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,e){var n=[];return i["k"](t,(function(t){i["r"](e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,a){if(t.length){var o=n(e),s=o.graph,l=o.noEntryList,u={};i["k"](t,(function(t){u[t]=!0}));while(l.length){var c=l.pop(),h=s[c],d=!!u[c];d&&(r.call(a,c,h.originalDeps.slice()),delete u[c]),i["k"](h.successor,d?p:f)}i["k"](u,(function(){var t="";throw new Error(t)}))}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function p(t){u[t]=!0,f(t)}}}function u(t,e){return i["I"](i["I"]({},t,!0),e,!0)}},"89b6":function(t,e,n){"use strict";n.d(e,"e",(function(){return C})),n.d(e,"c",(function(){return L})),n.d(e,"b",(function(){return E})),n.d(e,"d",(function(){return N})),n.d(e,"a",(function(){return R}));var i=n("dce8"),r=n("cbe5"),a=n("d498"),o=n("20c8"),s=n("857d"),l=n("4a3f"),u=n("6d8b"),c=n("1687"),h=n("401b"),d=n("7d6c"),f=2*Math.PI,p=o["a"].CMD,g=["top","right","bottom","left"];function m(t,e,n,i,r){var a=n.width,o=n.height;switch(t){case"top":i.set(n.x+a/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+a/2,n.y+o+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+o/2),r.set(-1,0);break;case"right":i.set(n.x+a+e,n.y+o/2),r.set(1,0);break}}function v(t,e,n,i,r,a,o,l,u){o-=t,l-=e;var c=Math.sqrt(o*o+l*l);o/=c,l/=c;var h=o*n+t,d=l*n+e;if(Math.abs(i-r)%f<1e-4)return u[0]=h,u[1]=d,c-n;if(a){var p=i;i=Object(s["a"])(r),r=Object(s["a"])(p)}else i=Object(s["a"])(i),r=Object(s["a"])(r);i>r&&(r+=f);var g=Math.atan2(l,o);if(g<0&&(g+=f),g>=i&&g<=r||g+f>=i&&g+f<=r)return u[0]=h,u[1]=d,c-n;var m=n*Math.cos(i)+t,v=n*Math.sin(i)+e,y=n*Math.cos(r)+t,_=n*Math.sin(r)+e,b=(m-o)*(m-o)+(v-l)*(v-l),x=(y-o)*(y-o)+(_-l)*(_-l);return b<x?(u[0]=m,u[1]=v,Math.sqrt(b)):(u[0]=y,u[1]=_,Math.sqrt(x))}function y(t,e,n,i,r,a,o,s){var l=r-t,u=a-e,c=n-t,h=i-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var f=l*c+u*h,p=f/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var g=o[0]=t+p*c,m=o[1]=e+p*h;return Math.sqrt((g-r)*(g-r)+(m-a)*(m-a))}function _(t,e,n,i,r,a,o){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=o[0]=Math.min(Math.max(r,t),s),c=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-r)*(u-r)+(c-a)*(c-a))}var b=[];function x(t,e,n){var i=_(e.x,e.y,e.width,e.height,t.x,t.y,b);return n.set(b[0],b[1]),i}function w(t,e,n){for(var i,r,a=0,o=0,s=0,u=0,c=1/0,h=e.data,d=t.x,f=t.y,g=0;g<h.length;){var m=h[g++];1===g&&(a=h[g],o=h[g+1],s=a,u=o);var x=c;switch(m){case p.M:s=h[g++],u=h[g++],a=s,o=u;break;case p.L:x=y(a,o,h[g],h[g+1],d,f,b,!0),a=h[g++],o=h[g++];break;case p.C:x=Object(l["e"])(a,o,h[g++],h[g++],h[g++],h[g++],h[g],h[g+1],d,f,b),a=h[g++],o=h[g++];break;case p.Q:x=Object(l["l"])(a,o,h[g++],h[g++],h[g],h[g+1],d,f,b),a=h[g++],o=h[g++];break;case p.A:var w=h[g++],O=h[g++],S=h[g++],T=h[g++],M=h[g++],A=h[g++];g+=1;var C=!!(1-h[g++]);i=Math.cos(M)*S+w,r=Math.sin(M)*T+O,g<=1&&(s=i,u=r);var I=(d-w)*T/S+w;x=v(w,O,T,M,M+A,C,I,f,b),a=Math.cos(M+A)*S+w,o=Math.sin(M+A)*T+O;break;case p.R:s=a=h[g++],u=o=h[g++];var D=h[g++],L=h[g++];x=_(s,u,D,L,d,f,b);break;case p.Z:x=y(a,o,s,u,d,f,b,!0),a=s,o=u;break}x<c&&(c=x,n.set(b[0],b[1]))}return c}var O=new i["a"],S=new i["a"],T=new i["a"],M=new i["a"],A=new i["a"];function C(t,e){if(t){var n=t.getTextGuideLine(),a=t.getTextContent();if(a&&n){var o=t.textGuideLineConfig||{},s=[[0,0],[0,0],[0,0]],l=o.candidates||g,u=a.getBoundingRect().clone();u.applyTransform(a.getComputedTransform());var h=1/0,d=o.anchor,f=t.getComputedTransform(),p=f&&Object(c["e"])([],f),v=e.get("length2")||0;d&&T.copy(d);for(var y=0;y<l.length;y++){var _=l[y];m(_,0,u,O,M),i["a"].scaleAndAdd(S,O,M,v),S.transform(p);var b=t.getBoundingRect(),A=d?d.distance(S):t instanceof r["b"]?w(S,t.path,T):x(S,b,T);A<h&&(h=A,S.transform(f),T.transform(f),T.toArray(s[0]),S.toArray(s[1]),O.toArray(s[2]))}L(s,e.get("minTurnAngle")),n.setShape({points:s})}}}var I=[],D=new i["a"];function L(t,e){if(e<=180&&e>0){e=e/180*Math.PI,O.fromArray(t[0]),S.fromArray(t[1]),T.fromArray(t[2]),i["a"].sub(M,O,S),i["a"].sub(A,T,S);var n=M.len(),r=A.len();if(!(n<.001||r<.001)){M.scale(1/n),A.scale(1/r);var a=M.dot(A),o=Math.cos(e);if(o<a){var s=y(S.x,S.y,T.x,T.y,O.x,O.y,I,!1);D.fromArray(I),D.scaleAndAdd(A,s/Math.tan(Math.PI-e));var l=T.x!==S.x?(D.x-S.x)/(T.x-S.x):(D.y-S.y)/(T.y-S.y);if(isNaN(l))return;l<0?i["a"].copy(D,S):l>1&&i["a"].copy(D,T),D.toArray(t[1])}}}}function E(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,O.fromArray(t[0]),S.fromArray(t[1]),T.fromArray(t[2]),i["a"].sub(M,S,O),i["a"].sub(A,T,S);var r=M.len(),a=A.len();if(!(r<.001||a<.001)){M.scale(1/r),A.scale(1/a);var o=M.dot(e),s=Math.cos(n);if(o<s){var l=y(S.x,S.y,T.x,T.y,O.x,O.y,I,!1);D.fromArray(I);var u=Math.PI/2,c=Math.acos(A.dot(e)),h=u+c-n;if(h>=u)i["a"].copy(D,T);else{D.scaleAndAdd(A,l/Math.tan(Math.PI/2-h));var d=T.x!==S.x?(D.x-S.x)/(T.x-S.x):(D.y-S.y)/(T.y-S.y);if(isNaN(d))return;d<0?i["a"].copy(D,S):d>1&&i["a"].copy(D,T)}D.toArray(t[1])}}}}function j(t,e,n,i){var r="normal"===n,a=r?t:t.ensureState(n);a.ignore=e;var o=i.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):a.style=s}function P(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=h["f"](i[0],i[1]),a=h["f"](i[1],i[2]);if(!r||!a)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var o=Math.min(r,a)*n,s=h["j"]([],i[1],i[0],o/r),l=h["j"]([],i[1],i[2],o/a),u=h["j"]([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function N(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,s=o.get("show"),l=r.ignore,c=0;c<d["a"].length;c++){var h=d["a"][c],f=e[h],p="normal"===h;if(f){var g=f.get("show"),m=p?l:Object(u["P"])(r.states[h]&&r.states[h].ignore,l);if(m||!Object(u["P"])(g,s)){var v=p?i:i&&i.states[h];v&&(v.ignore=!0);continue}i||(i=new a["a"],t.setTextGuideLine(i),p||!l&&s||j(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),j(i,!1,h,f)}}if(i){Object(u["i"])(i.style,n),i.style.fill=null;var y=o.get("showAbove"),_=t.textGuideLineConfig=t.textGuideLineConfig||{};_.showAbove=y||!1,i.buildPath=P}}else i&&t.removeTextGuideLine()}function R(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<d["g"].length;i++){var r=d["g"][i];n[r]=t.getModel([r,e])}return n}},"89e3":function(t,e,n){"use strict";var i=n("7fae"),r=n("3842"),a=n("eda2"),o=n("e0d8"),s=n("944e"),l=r["v"],u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return Object(i["a"])(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return s["a"](t,this._extent)},e.prototype.normalize=function(t){return s["f"](t,this._extent)},e.prototype.scale=function(t){return s["g"](t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=s["b"](t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,a=[];if(!e)return a;var o=1e4;n[0]<i[0]&&(t?a.push({value:l(i[0]-e,r)}):a.push({value:n[0]}));var s=i[0];while(s<=i[1]){if(a.push({value:s}),s=l(s+e,r),s===a[a.length-1].value)break;if(a.length>o)return[]}var u=a.length?a[a.length-1].value:i[1];return n[1]>u&&(t?a.push({value:l(u+e,r)}):a.push({value:n[1]})),a},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){var a=e[r],o=e[r-1],s=0,u=[],c=a.value-o.value,h=c/t;while(s<t-1){var d=l(o.value+(s+1)*h);d>i[0]&&d<i[1]&&u.push(d),s++}n.push(u)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=r["g"](t.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=l(t.value,n,!0);return a["a"](i)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var a=s["d"](i,t,e,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=l(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=l(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(o["a"]);o["a"].registerClass(u),e["a"]=u},"8d1d":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("6d8b");function r(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(i["z"])(t)?[t]:Object(i["t"])(t)?t:null:null}function a(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&r(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(n){var o=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;o&&1!==o&&(n=Object(i["H"])(n,(function(t){return t/o})),a/=o)}return[n,a]}},"8d32":function(t,e,n){"use strict";var i=n("21a10"),r=n("cbe5"),a=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),o=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),u=Math.sin(a);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,a,o,!s)},e}(r["b"]);o.prototype.type="arc",e["a"]=o},"8e43":function(t,e,n){"use strict";var i=n("6d8b"),r=0,a=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++r}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&Object(i["H"])(r,o);return new t({categories:a,needCollect:!a,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(i["C"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(i["f"])(this.categories))},t}();function o(t){return Object(i["A"])(t)&&null!=t.value?t.value:t+""}e["a"]=a},"92c1":function(t,e,n){t.exports=n.p+"static/img/car.78c4a90c.png"},"944e":function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return c})),n.d(e,"f",(function(){return h})),n.d(e,"g",(function(){return d}));var i=n("3842");function r(t){return"interval"===t.type||"log"===t.type}function a(t,e,n,r){var a={},o=t[1]-t[0],l=a.interval=Object(i["m"])(o/e,!0);null!=n&&l<n&&(l=a.interval=n),null!=r&&l>r&&(l=a.interval=r);var c=a.intervalPrecision=s(l),h=a.niceTickExtent=[Object(i["v"])(Math.ceil(t[0]/l)*l,c),Object(i["v"])(Math.floor(t[1]/l)*l,c)];return u(h,t),a}function o(t){var e=Math.pow(10,Object(i["s"])(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Object(i["v"])(n*e)}function s(t){return Object(i["g"])(t)+2}function l(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function u(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),l(t,0,e),l(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function c(t,e){return t>=e[0]&&t<=e[1]}function h(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function d(t,e){return t*(e[1]-e[0])+e[0]}},9680:function(t,e,n){"use strict";function i(t,e,n,i,r,a,o){if(0===r)return!1;var s=r,l=0,u=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>n+s||a<t-s&&a<n-s)return!1;if(t===n)return Math.abs(a-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var c=l*a-o+u,h=c*c/(l*l+1);return h<=s/2*s/2}n.d(e,"a",(function(){return i}))},9850:function(t,e,n){"use strict";var i=n("1687"),r=n("dce8"),a=Math.min,o=Math.max,s=new r["a"],l=new r["a"],u=new r["a"],c=new r["a"],h=new r["a"],d=new r["a"],f=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=a(t.x,this.x),n=a(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=o(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=o(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,a=i["c"]();return i["i"](a,a,[-e.x,-e.y]),i["h"](a,a,[n,r]),i["i"](a,a,[t.x,t.y]),a},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,a=i.x,o=i.x+i.width,s=i.y,l=i.y+i.height,u=e.x,c=e.x+e.width,f=e.y,p=e.y+e.height,g=!(o<u||c<a||l<f||p<s);if(n){var m=1/0,v=0,y=Math.abs(o-u),_=Math.abs(c-a),b=Math.abs(l-f),x=Math.abs(p-s),w=Math.min(y,_),O=Math.min(b,x);o<u||c<a?w>v&&(v=w,y<_?r["a"].set(d,-y,0):r["a"].set(d,_,0)):w<m&&(m=w,y<_?r["a"].set(h,y,0):r["a"].set(h,-_,0)),l<f||p<s?O>v&&(v=O,b<x?r["a"].set(d,0,-b):r["a"].set(d,0,x)):w<m&&(m=w,b<x?r["a"].set(h,0,b):r["a"].set(h,0,-x))}return n&&r["a"].copy(n,g?h:d),g},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],h=i[3],d=i[4],f=i[5];return e.x=n.x*r+d,e.y=n.y*h+f,e.width=n.width*r,e.height=n.height*h,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}s.x=u.x=n.x,s.y=c.y=n.y,l.x=c.x=n.x+n.width,l.y=u.y=n.y+n.height,s.transform(i),c.transform(i),l.transform(i),u.transform(i),e.x=a(s.x,l.x,u.x,c.x),e.y=a(s.y,l.y,u.y,c.y);var p=o(s.x,l.x,u.x,c.x),g=o(s.y,l.y,u.y,c.y);e.width=p-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}();e["a"]=f},"98b7":function(t,e,n){"use strict";var i,r=n("22d1");i=r["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},e["a"]=i},"98ce":function(t,e,n){"use strict";n.r(e);var i=n("7a23"),r=n("b893"),a=n("b932"),o=n("c5cb"),s=n("ad28");const l=Object(i["createTextVNode"])("详情");var u={__name:"index",setup(t,{expose:e}){const n=Object(i["reactive"])({tableData:[],keyCount:0,tableConfiger:{rowHieght:61,showSelectType:"null",loading:!1},total:0,pageConfiger:{pageSize:20,pageCurrent:1},tableHeight:143,controlsWidth:52,tableColumn:[{label:"线索名称",prop:"xsMc",width:"70px",showOverflowTooltip:!0},{label:"涉及人数",prop:"sjrs",width:"70px",showOverflowTooltip:!0},{label:"线索内容",prop:"xsNr",width:"120px",showOverflowTooltip:!0},{label:"指向地点",prop:"zxdz",width:"70px",showOverflowTooltip:!0}]}),r=Object(i["ref"])({});Object(i["onMounted"])(()=>{u()});const a=t=>{r.value=t,u()};function u(){let t={...r.value};delete t.dateRange,n.pageConfiger.loading=!0,Object(o["c"])(t,"/mosty-gsxt/qbcj/getRdXs").then(t=>{n.tableData=t||[],n.pageConfiger.loading=!1}).catch(()=>{n.pageConfiger.loading=!1})}return e({init:a}),(t,e)=>{const r=Object(i["resolveComponent"])("el-link");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",null,[(Object(i["openBlock"])(),Object(i["createBlock"])(s["a"],{tableData:n.tableData,tableColumn:n.tableColumn,tableHeight:n.tableHeight,key:n.keyCount,fixed:!1,tableConfiger:n.tableConfiger,controlsWidth:n.controlsWidth},{controls:Object(i["withCtx"])(({row:e})=>[Object(i["createVNode"])(r,{size:"small",type:"primary",onClick:n=>t.addEdit("detail",e)},{default:Object(i["withCtx"])(()=>[l]),_:2},1032,["onClick"])]),_:1},8,["tableData","tableColumn","tableHeight","tableConfiger","controlsWidth"]))])}}},c=(n("38ac"),n("6b0d")),h=n.n(c);const d=h()(u,[["__scopeId","data-v-43394445"]]);var f=d;const p={key:0},g=Object(i["createTextVNode"])("详情");var m={__name:"index",setup(t,{expose:e}){const n=Object(i["reactive"])({tableData:[],keyCount:0,tableConfiger:{rowHieght:61,showSelectType:"null",loading:!1},total:0,pageConfiger:{pageSize:20,pageCurrent:1},tableHeight:143,controlsWidth:52,tableColumn:[{label:"组织名称",prop:"qtMc",width:"70px",showOverflowTooltip:!0},{label:"涉及人数",prop:"sjrs",width:"70px",showSolt:!0,showOverflowTooltip:!0},{label:"标签",prop:"bqList",width:"50px",showSolt:!0,showOverflowTooltip:!0},{label:"线索数",prop:"xssl",width:"70px",showOverflowTooltip:!0},{label:"指令数",prop:"zlsl",width:"70px",showOverflowTooltip:!0}]}),r=Object(i["ref"])({});Object(i["onMounted"])(()=>{l()});const a=t=>{r.value=t,l()};function l(){let t={...r.value};delete t.dateRange,n.pageConfiger.loading=!0,Object(o["c"])(t,"/mosty-gsxt/tbGsxtZdqt/getRdzz").then(t=>{n.tableData=t||[],n.pageConfiger.loading=!1}).catch(()=>{n.pageConfiger.loading=!1})}return e({init:a}),(t,e)=>{const r=Object(i["resolveComponent"])("el-link");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",null,[(Object(i["openBlock"])(),Object(i["createBlock"])(s["a"],{tableData:n.tableData,tableColumn:n.tableColumn,tableHeight:n.tableHeight,key:n.keyCount,fixed:!1,tableConfiger:n.tableConfiger,controlsWidth:n.controlsWidth},{sjrs:Object(i["withCtx"])(({row:t})=>[Object(i["createElementVNode"])("span",null,Object(i["toDisplayString"])(t.zdryList?t.zdryList.length:0),1)]),bqList:Object(i["withCtx"])(({row:t})=>[t.bqList?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",p,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(t.bqList,(t,e)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:e},Object(i["toDisplayString"])(t.bqMc)+"、",1))),128))])):Object(i["createCommentVNode"])("",!0)]),controls:Object(i["withCtx"])(({row:e})=>[Object(i["createVNode"])(r,{size:"small",type:"primary",onClick:n=>t.addEdit("detail",e)},{default:Object(i["withCtx"])(()=>[g]),_:2},1032,["onClick"])]),_:1},8,["tableData","tableColumn","tableHeight","tableConfiger","controlsWidth"]))])}}};n("0947");const v=h()(m,[["__scopeId","data-v-283f7c3a"]]);var y=v;const _={class:"ww100 hh100"},b={key:0},x=Object(i["createTextVNode"])("; "),w=Object(i["createTextVNode"])("详情");var O={__name:"index",setup(t,{expose:e}){const n=Object(i["reactive"])({tableData:[],keyCount:0,tableConfiger:{rowHieght:61,showSelectType:"null",loading:!1},total:0,pageConfiger:{pageSize:20,pageCurrent:1},tableHeight:143,controlsWidth:52,tableColumn:[{label:"姓名",prop:"ryXm",width:"70px",showOverflowTooltip:!0},{label:"身份证",prop:"rySfzh",width:"70px",showOverflowTooltip:!0},{label:"标签",prop:"bqList",width:"50px",showSolt:!0,showOverflowTooltip:!0},{label:"线索数",prop:"xssl",width:"70px",showOverflowTooltip:!0},{label:"指令数",prop:"zlsl",width:"70px",showOverflowTooltip:!0}]}),r=Object(i["ref"])({});Object(i["onMounted"])(()=>{l()});const a=t=>{r.value=t,l()};function l(){let t={...r.value};delete t.dateRange,n.pageConfiger.loading=!0,Object(o["c"])(t,"/mosty-gsxt/tbGsxtZdry/getRdRy").then(t=>{n.tableData=t||[],n.pageConfiger.loading=!1}).catch(()=>{n.pageConfiger.loading=!1})}return e({init:a}),(t,e)=>{const r=Object(i["resolveComponent"])("el-link");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",_,[(Object(i["openBlock"])(),Object(i["createBlock"])(s["a"],{tableData:n.tableData,tableColumn:n.tableColumn,tableHeight:n.tableHeight,key:n.keyCount,fixed:!1,tableConfiger:n.tableConfiger,controlsWidth:n.controlsWidth},{bqList:Object(i["withCtx"])(({row:t})=>[t.bqList?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",b,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(t.bqList,t=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:t},Object(i["toDisplayString"])(t.bqMc),1))),128)),x])):Object(i["createCommentVNode"])("",!0)]),controls:Object(i["withCtx"])(({row:e})=>[Object(i["createVNode"])(r,{size:"small",type:"primary",onClick:n=>t.addEdit("detail",e)},{default:Object(i["withCtx"])(()=>[w]),_:2},1032,["onClick"])]),_:1},8,["tableData","tableColumn","tableHeight","tableConfiger","controlsWidth"]))])}}};n("9c28");const S=h()(O,[["__scopeId","data-v-b07a6e6e"]]);var T=S;const M=Object(i["createTextVNode"])("详情");var A={__name:"index",setup(t,{expose:e}){const n=Object(i["reactive"])({tableData:[],keyCount:0,tableConfiger:{rowHieght:61,showSelectType:"null",loading:!1},total:0,pageConfiger:{pageSize:20,pageCurrent:1},tableHeight:143,controlsWidth:52,tableColumn:[{label:"号码类型",prop:"hmlx",width:"70px",showOverflowTooltip:!0},{label:"号码",prop:"hm",width:"120px",showOverflowTooltip:!0},{label:"线索数",prop:"glxss",width:"70px",showOverflowTooltip:!0},{label:"指令数",prop:"glzls",width:"70px",showOverflowTooltip:!0}]}),r=Object(i["ref"])({});Object(i["onMounted"])(()=>{l()});const a=t=>{r.value=t,l()};function l(){let t={...r.value};delete t.dateRange,n.pageConfiger.loading=!0,Object(o["c"])(t,"/mosty-gsxt/tbGsxtZdqt/getRdhm").then(t=>{n.tableData=t||[],n.pageConfiger.loading=!1}).catch(()=>{n.pageConfiger.loading=!1})}return e({init:a}),(t,e)=>{const r=Object(i["resolveComponent"])("el-link");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",null,[(Object(i["openBlock"])(),Object(i["createBlock"])(s["a"],{tableData:n.tableData,tableColumn:n.tableColumn,tableHeight:n.tableHeight,key:n.keyCount,fixed:!1,tableConfiger:n.tableConfiger,controlsWidth:n.controlsWidth},{controls:Object(i["withCtx"])(({row:e})=>[Object(i["createVNode"])(r,{size:"small",type:"primary",onClick:n=>t.addEdit("detail",e)},{default:Object(i["withCtx"])(()=>[M]),_:2},1032,["onClick"])]),_:1},8,["tableData","tableColumn","tableHeight","tableConfiger","controlsWidth"]))])}}};n("f5c8");const C=h()(A,[["__scopeId","data-v-d2f576e8"]]);var I=C,D=n("e767");const L={class:"comom-cnt"};var E={__name:"index",setup(t,{expose:e}){const n=Object(i["ref"])(!1),a=Object(i["ref"])([]),s=Object(i["ref"])({});Object(i["onMounted"])(()=>{u()});const l=t=>{s.value=t,u()};function u(){let t={...s.value};delete t.dateRange,n.value=!0,Object(o["c"])(t,"/mosty-gsxt/tbGsxtZdqt/getSqflTj").then(t=>{n.value=!1;let e=t||[];a.value=e.map(t=>{let e=Object(r["c"])(),n=Object(r["a"])(e,.5);return{label:t.zdmc,value:t.dm,color:[e,n]}})}).catch(()=>{n.value=!1})}return e({init:l}),(t,e)=>{const r=Object(i["resolveDirective"])("loading");return Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("div",L,[Object(i["createVNode"])(D["a"],{echartsId:"zqflEcharts",color:"#333",data:a.value},null,8,["data"])])),[[r,n.value]])}}};n("cac2");const j=h()(E,[["__scopeId","data-v-1cf1d432"]]);var P=j;const N={class:"box-zl"};var R={__name:"index",setup(t,{expose:e}){const n=Object(i["ref"])([{label:"线索数量",num:0,type:"xs"},{label:"线索转指令数量",num:0,type:"zlxx"},{label:"关联群体数量",num:0,type:"zdqt"},{label:"关联人员数量",num:0,type:"zdry"}]),r=Object(i["ref"])(!1),a=Object(i["ref"])({});Object(i["onMounted"])(()=>{l()});const s=t=>{a.value=t,l()};function l(){let t={...a.value};delete t.dateRange,r.value=!0,Object(o["d"])(t,"/mosty-gsxt/qbcj/getXscjTjForZs").then(t=>{for(let e in t){let i=n.value.findIndex(t=>t.type==e);-1!=i&&(n.value[i].num=t[e])}r.value=!1}).catch(()=>{r.value=!1})}return e({init:s}),(t,e)=>{const a=Object(i["resolveDirective"])("loading");return Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("ul",N,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(n.value,(t,e)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{class:"items",key:e},[Object(i["createElementVNode"])("div",null,Object(i["toDisplayString"])(t.num),1),Object(i["createElementVNode"])("div",null,Object(i["toDisplayString"])(t.label),1)]))),128))])),[[a,r.value]])}}};n("26b4");const k=h()(R,[["__scopeId","data-v-7ffc6ca3"]]);var B=k,z=n("0007");const V={class:"comom-cnt"};var F={__name:"index",setup(t,{expose:e}){const n=Object(i["reactive"])({xData:[],color:["#0386FB","#00FFFF"],labelColor:"#333",list:[{label:"",val:[0,0,10,0,0,0,0]}]}),r=Object(i["ref"])(!1),a=Object(i["ref"])({});Object(i["onMounted"])(()=>{l()});const s=t=>{a.value=t,l()};function l(){let t={...a.value};delete t.dateRange,r.value=!0,Object(o["d"])(t,"/mosty-gsxt/qbcj/getXscjTjByXslx").then(t=>{r.value=!1;let e=t||[];n.xData=e.map(t=>t.zdmc),n.list[0].val=e.map(t=>t.count)}).catch(()=>{r.value=!1})}return e({init:s}),(t,e)=>{const a=Object(i["resolveDirective"])("loading");return Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("div",V,[Object(i["createVNode"])(z["a"],{echartsId:"qbsbEcharts111",data:n},null,8,["data"])])),[[a,r.value]])}}};n("a1ba");const G=h()(F,[["__scopeId","data-v-1113afdc"]]);var H=G,U=n("2d16");const W=t=>(Object(i["pushScopeId"])("data-v-4d577da3"),t=t(),Object(i["popScopeId"])(),t),X={class:"container"},Z={class:"header flex just-between"},q=W(()=>Object(i["createElementVNode"])("span",null,"情报研判分析",-1)),Y={class:"seachsBox"},K={class:"flex align-center"},Q=["onClick"],J={class:"contant"},$={class:"contant-left aside"},tt={class:"model"},et=W(()=>Object(i["createElementVNode"])("div",{class:"modelTitle"},"热点线索",-1)),nt={class:"cnt"},it={class:"model"},rt=W(()=>Object(i["createElementVNode"])("div",{class:"modelTitle"},"热点组织",-1)),at={class:"cnt"},ot={class:"model"},st=W(()=>Object(i["createElementVNode"])("div",{class:"modelTitle"},"热点人员",-1)),lt={class:"cnt"},ut={class:"model"},ct=W(()=>Object(i["createElementVNode"])("div",{class:"modelTitle"},"热点号码",-1)),ht={class:"cnt"},dt={class:"map"},ft=W(()=>Object(i["createElementVNode"])("ul",{class:"btns"},[Object(i["createElementVNode"])("li",null,[Object(i["createElementVNode"])("span",null,"热点集访单位")]),Object(i["createElementVNode"])("li",null,[Object(i["createElementVNode"])("span",null,"点位图")]),Object(i["createElementVNode"])("li",null,[Object(i["createElementVNode"])("span",null,"指令分布")])],-1)),pt={class:"contant-right aside"},gt={class:"model"},mt=W(()=>Object(i["createElementVNode"])("div",{class:"modelTitle"},"诉求分类",-1)),vt={class:"cnt"},yt={class:"model"},_t=W(()=>Object(i["createElementVNode"])("div",{class:"modelTitle"},"重点线索分类",-1)),bt={class:"cnt"},xt={class:"model"},wt=W(()=>Object(i["createElementVNode"])("div",{class:"modelTitle"},"指令次数",-1)),Ot={class:"cnt"};var St={__name:"index",emits:["close"],setup(t,{emit:e}){const{proxy:n}=Object(i["getCurrentInstance"])(),{SGXTQTSQLX:o}=n.$dict("SGXTQTSQLX"),s=Object(i["ref"])({}),l=Object(i["ref"])(-1),u=Object(i["reactive"])([{label:"今天",value:"10"},{label:"本周",value:"20"},{label:"本月",value:"30"},{label:"本季度",value:"40"},{label:"本年",value:"50"}]),c=Object(i["reactive"])([{label:"所属部门",prop:"ssbmdm",placeholder:"请选择",showType:"department"},{label:"数据周期",prop:"sjzq",placeholder:"请选择",showType:"defaultSlot"},{label:"指向地点",prop:"zxdz",placeholder:"请输入",showType:"input"},{label:"诉求类型",prop:"qtsq",placeholder:"请选择",showType:"select",options:o}]),h=Object(i["ref"])(),d=Object(i["ref"])(),p=Object(i["ref"])(),g=Object(i["ref"])(),m=Object(i["ref"])(),v=Object(i["ref"])(),_=Object(i["ref"])(),b=t=>{switch(l.value=t,t){case 0:s.value.dateRange=Object(r["d"])("天");break;case 1:s.value.dateRange=Object(r["d"])("本周");break;case 2:s.value.dateRange=Object(r["d"])("本月");break;case 3:s.value.dateRange=Object(r["d"])("本季度");break;case 4:s.value.dateRange=Object(r["d"])("本年");break}s.value.hskssj=s.value.dateRange[0]+" 00:00:00",s.value.hsjssj=s.value.dateRange[1]+" 23:59:59"},x=t=>{l.value=-1,t&&(s.value.hskssj=t[0]+" 00:00:00",s.value.hsjssj=t[1]+" 23:59:59",t[0]==Object(r["d"])("天")[0]&&t[1]==Object(r["d"])("天")[1]&&(l.value=0),t[0]==Object(r["d"])("本周")[0]&&t[1]==Object(r["d"])("本月")[1]&&(l.value=1),t[0]==Object(r["d"])("本月")[0]&&t[1]==Object(r["d"])("本月")[1]&&(l.value=2),t[0]==Object(r["d"])("本季度")[0]&&t[1]==Object(r["d"])("本季度")[1]&&(l.value=3),t[0]==Object(r["d"])("本年")[0]&&t[1]==Object(r["d"])("本年")[1]&&(l.value=4))},w=t=>{s.value={...s.value,...t},S()},O=t=>{s.value={},l.value=-1,s.value.dateRange="",s.value.hskssj="",s.value.hsjssj="",S()},S=()=>{h.value.init(s.value),d.value.init(s.value),p.value.init(s.value),g.value.init(s.value),m.value.init(s.value),v.value.init(s.value),_.value.init(s.value)};function M(){e("close")}return(t,e)=>{const n=Object(i["resolveComponent"])("Close"),r=Object(i["resolveComponent"])("el-icon"),o=Object(i["resolveComponent"])("el-date-picker");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",X,[Object(i["createElementVNode"])("div",Z,[q,Object(i["createElementVNode"])("span",{class:"pointer",onClick:M},[Object(i["createVNode"])(r,null,{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(n)]),_:1})])]),Object(i["createElementVNode"])("div",Y,[Object(i["createVNode"])(U["a"],{searchArr:c,onSubmit:w,onReset:O},{defaultSlot:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",K,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(u,(t,e)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{class:Object(i["normalizeClass"])(["marks",l.value==e?"activeBtn":""]),onClick:t=>b(e),key:e},Object(i["toDisplayString"])(t.label),11,Q))),128)),Object(i["createVNode"])(o,{onChange:x,modelValue:s.value.dateRange,"onUpdate:modelValue":e[0]||(e[0]=t=>s.value.dateRange=t),type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD"},null,8,["modelValue"])])]),_:1},8,["searchArr"])]),Object(i["createElementVNode"])("div",J,[Object(i["createElementVNode"])("div",$,[Object(i["createElementVNode"])("div",tt,[et,Object(i["createElementVNode"])("div",nt,[Object(i["createVNode"])(f,{ref_key:"RedRdxs",ref:h},null,512)])]),Object(i["createElementVNode"])("div",it,[rt,Object(i["createElementVNode"])("div",at,[Object(i["createVNode"])(y,{ref_key:"RedRdzz",ref:d},null,512)])]),Object(i["createElementVNode"])("div",ot,[st,Object(i["createElementVNode"])("div",lt,[Object(i["createVNode"])(T,{ref_key:"RedRdry",ref:p},null,512)])]),Object(i["createElementVNode"])("div",ut,[ct,Object(i["createElementVNode"])("div",ht,[Object(i["createVNode"])(I,{ref_key:"RedRdhm",ref:g},null,512)])])]),Object(i["createElementVNode"])("div",dt,[Object(i["createVNode"])(a["a"]),ft]),Object(i["createElementVNode"])("div",pt,[Object(i["createElementVNode"])("div",gt,[mt,Object(i["createElementVNode"])("div",vt,[Object(i["createVNode"])(P,{ref_key:"RedSqfl",ref:m},null,512)])]),Object(i["createElementVNode"])("div",yt,[_t,Object(i["createElementVNode"])("div",bt,[Object(i["createVNode"])(H,{ref_key:"RedZdxsfl",ref:_},null,512)])]),Object(i["createElementVNode"])("div",xt,[wt,Object(i["createElementVNode"])("div",Ot,[Object(i["createVNode"])(B,{ref_key:"RedZlcs",ref:v},null,512)])])])])])}}};n("cb94");const Tt=h()(St,[["__scopeId","data-v-4d577da3"]]);var Mt=Tt,At=n("2e9d"),Ct=n("1090"),It=n("7902"),Dt=n("1d22");const Lt=t=>(Object(i["pushScopeId"])("data-v-4df5353a"),t=t(),Object(i["popScopeId"])(),t),Et={key:0,class:"dialog"},jt={class:"head_box"},Pt=Lt(()=>Object(i["createElementVNode"])("span",{class:"title"},"人力情报信息采集流转详情",-1)),Nt=Object(i["createTextVNode"])("关闭"),Rt={class:"form_cnt"},kt={style:{width:"100%",height:"10px"},class:"mb20"},Bt=Object(i["createTextVNode"])("基础信息"),zt={style:{width:"100%",height:"10px"},class:"mb20"},Vt=Object(i["createTextVNode"])("线索内容"),Ft={style:{width:"100%","padding-left":"50px"}},Gt=Lt(()=>Object(i["createElementVNode"])("div",null,[Object(i["createTextVNode"])("上传附件:"),Object(i["createElementVNode"])("span",{class:"f12"},"(可附电子表格、Word文档、图像、音视频文件)")],-1)),Ht=Lt(()=>Object(i["createElementVNode"])("span",{class:"mr20"},"相关人员",-1)),Ut={key:0};var Wt={__name:"addForm",props:{dic:Object},emits:["change"],setup(t,{expose:e,emit:n}){const r=t,{proxy:a}=Object(i["getCurrentInstance"])(),l=Object(i["ref"])(!1),u=Object(i["reactive"])({xsMc:[{required:!0,message:"请输入线索名称",trigger:"blur"}],xlLx:[{required:!0,message:"请选择线索类型",trigger:"change"}],qbLy:[{required:!0,message:"请选择情报来源",trigger:"change"}]}),c=Object(i["ref"])([{prop:"gapdive",type:"slot",width:"100%"},{label:"线索名称",prop:"xsMc",type:"input"},{label:"线索类型",prop:"xlLx",type:"select",options:r.dic.D_GS_XS_LX},{label:"情报来源",prop:"qbLy",type:"select",options:r.dic.D_GS_XS_LY},{label:"指向开始时间",prop:"zxkssj",type:"datetime"},{label:"指向结束时间",prop:"zxjssj",type:"datetime"},{label:"指向地点",prop:"zxdz",type:"input"},{label:"所属专题",prop:"sszt",type:"select",options:r.dic.D_BZ_SSZT},{prop:"gapline",type:"slot",width:"100%"},{prop:"scfj",type:"slot",width:"100%"},{label:"线索内容",prop:"xsNr",type:"textarea",width:"100%"},{label:"群体类型",prop:"qtlx",type:"select",options:r.dic.D_GS_XS_QTLX},{label:"群体名称",prop:"qtmc",type:"input"},{label:"涉及人数",prop:"sjrs",type:"inputNumber"},{label:"线索报送单位",prop:"ssbmdm",type:"department"}]),h=Object(i["ref"])(),d=Object(i["ref"])({}),f=Object(i["ref"])(!1),p=Object(i["ref"])(),g=Object(i["ref"])(""),m=Object(i["reactive"])({tableData:[],keyCount:0,tableConfiger:{rowHieght:61,showSelectType:"checkBox",loading:!1,haveControls:!1},controlsWidth:220,tableColumn:[{label:"姓名",prop:"xm"},{label:"性别",prop:"xb",showSolt:!0},{label:"身份证号",prop:"sfzh"},{label:"户籍地",prop:"hjdz"},{label:"户籍地派出所",prop:"hjdpcs"},{label:"标签",prop:"bqList",showSolt:!0}]});Object(i["onMounted"])(()=>{b()});const v=(t,e)=>{h.value=[],b(),l.value=!0,g.value="add"==t?"新增":"info"==t?"详情":"编辑",e&&y(e.id)},y=t=>{Object(o["c"])({id:t},"/mosty-gsxt/qbcj/selectByid").then(t=>{h.value=t.ossList||[],d.value=t,m.tableData=t.ryList||[]})},_=()=>{h.value=[],d.value={},l.value=!1,f.value=!1},b=()=>{m.tableHeight=window.innerHeight-720,window.onresize=function(){b()}};return e({init:v}),(t,e)=>{const n=Object(i["resolveComponent"])("el-button"),a=Object(i["resolveComponent"])("el-divider"),o=Object(i["resolveComponent"])("DictTag"),f=Object(i["resolveComponent"])("el-tag");return l.value?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Et,[Object(i["createElementVNode"])("div",jt,[Pt,Object(i["createElementVNode"])("div",null,[Object(i["createVNode"])(n,{onClick:_},{default:Object(i["withCtx"])(()=>[Nt]),_:1})])]),Object(i["createElementVNode"])("div",Rt,[Object(i["createVNode"])(Dt["a"],{disabled:"",modelValue:d.value,"onUpdate:modelValue":e[1]||(e[1]=t=>d.value=t),formList:c.value,ref_key:"elform",ref:p,rules:u},{gapdive:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",kt,[Object(i["createVNode"])(a,{"content-position":"left"},{default:Object(i["withCtx"])(()=>[Bt]),_:1})])]),gapline:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",zt,[Object(i["createVNode"])(a,{"content-position":"left"},{default:Object(i["withCtx"])(()=>[Vt]),_:1})])]),scfj:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",Ft,[Gt,Object(i["createVNode"])(It["n"],{showBtn:!0,isAll:!0,isImg:!1,limit:10,modelValue:h.value,"onUpdate:modelValue":e[0]||(e[0]=t=>h.value=t)},null,8,["modelValue"])])]),_:1},8,["modelValue","formList","rules"]),Object(i["createVNode"])(a,{"content-position":"left"},{default:Object(i["withCtx"])(()=>[Ht]),_:1}),(Object(i["openBlock"])(),Object(i["createBlock"])(s["a"],{tableData:m.tableData,tableColumn:m.tableColumn,tableHeight:m.tableHeight,key:m.keyCount,tableConfiger:m.tableConfiger,controlsWidth:m.controlsWidth},{xb:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{value:t.xb,tag:!1,options:r.dic.D_BZ_XB},null,8,["value","options"])]),bqList:Object(i["withCtx"])(({row:t})=>[t.bqList?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ut,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(t.bqList,(t,e)=>(Object(i["openBlock"])(),Object(i["createBlock"])(f,{type:"success",key:e},{default:Object(i["withCtx"])(()=>[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.bqMc),1)]),_:2},1024))),128))])):Object(i["createCommentVNode"])("",!0)]),_:1},8,["tableData","tableColumn","tableHeight","tableConfiger","controlsWidth"]))])])):Object(i["createCommentVNode"])("",!0)}}};n("52c4");const Xt=h()(Wt,[["__scopeId","data-v-4df5353a"]]);var Zt=Xt,qt=n("6605");const Yt=t=>(Object(i["pushScopeId"])("data-v-3bb037b8"),t=t(),Object(i["popScopeId"])(),t),Kt={key:0,class:"dialog"},Qt={class:"head_box"},Jt=Yt(()=>Object(i["createElementVNode"])("span",{class:"title"},"转为指令",-1)),$t=Object(i["createTextVNode"])("保存"),te=Object(i["createTextVNode"])("关闭"),ee={class:"form_cnt"};var ne={__name:"zlForm",props:{dic:Object},emits:["updateDate"],setup(t,{expose:e,emit:n}){const r=t,a=Object(qt["d"])(),{proxy:s}=Object(i["getCurrentInstance"])(),l=Object(i["ref"])(!1),u=Object(i["reactive"])({zlbt:[{required:!0,message:"请输入指令标题",trigger:"blur"}],zllx:[{required:!0,message:"请选择指令类型",trigger:"change"}],zldj:[{required:!0,message:"请选择指令等级",trigger:"change"}],jssj:[{required:!0,message:"请选择反馈结束时间",trigger:"change"}],zllxr:[{required:!0,message:"请输入联系人",trigger:"blur"}],zllxdh:[{required:!0,message:"请输入联系电话",trigger:"blur"}],zsdw:[{required:!0,message:"请选择主送单位",trigger:"change"}],csdw:[{required:!0,message:"请选择抄送单位",trigger:"change"}],zlnr:[{required:!0,message:"请输入指令内容",trigger:"blur"}]}),c=Object(i["ref"])([{label:"线索名称",prop:"glxs",type:"input",disabled:!0},{label:"指令标题",prop:"zlbt",type:"input"},{label:"指令类型",prop:"zllx",type:"select",options:r.dic.D_GS_XS_ZLLX},{label:"指令等级",prop:"zldj",type:"select",options:r.dic.D_GS_ZDQT_FXDJ},{label:"反馈结束时间",prop:"jssj",type:"datetime"},{label:"联系人",prop:"zllxr",type:"input"},{label:"联系电话",prop:"zllxdh",type:"input"},{label:"主送单位",prop:"zsdw",type:"department"},{label:"抄送单位",prop:"csdw",type:"department"},{label:"指令内容",prop:"zlnr",type:"textarea",width:"100%"},{label:"附件",prop:"fjzd",type:"upload",width:"100%"}]),h=Object(i["ref"])({}),d=Object(i["ref"])(!1),f=Object(i["ref"])();Object(i["onMounted"])(()=>{});const p=t=>{h.value.fjzd=null,l.value=!0,h.value.glxs=t.xsMc,h.value.glxsid=t.id},g=()=>{f.value.submit(t=>{let e={...t};e.fjzd=e.fjzd?e.fjzd.join(","):"",d.value=!0,Object(o["d"])(e,"/mosty-gsxt/zlxx/add").then(t=>{d.value=!1,s.$message({type:"success",message:"转发成功"}),a.push("/InstructionInformation")}).catch(()=>{d.value=!1})})},m=()=>{h.value={},l.value=!1,d.value=!1};return e({init:p}),(t,e)=>{const n=Object(i["resolveComponent"])("el-button");return l.value?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Kt,[Object(i["createElementVNode"])("div",Qt,[Jt,Object(i["createElementVNode"])("div",null,[Object(i["createVNode"])(n,{type:"primary",size:"small",loading:d.value,onClick:g},{default:Object(i["withCtx"])(()=>[$t]),_:1},8,["loading"]),Object(i["createVNode"])(n,{size:"small",onClick:m},{default:Object(i["withCtx"])(()=>[te]),_:1})])]),Object(i["createElementVNode"])("div",ee,[Object(i["createVNode"])(Dt["a"],{modelValue:h.value,"onUpdate:modelValue":e[0]||(e[0]=t=>h.value=t),formList:c.value,ref_key:"elform",ref:f,rules:u},null,8,["modelValue","formList","rules"])])])):Object(i["createCommentVNode"])("",!0)}}};n("5119");const ie=h()(ne,[["__scopeId","data-v-3bb037b8"]]);var re=ie;const ae={style:{width:"100%"}};var oe={__name:"hbDetail",props:{modelValue:{type:Boolean,default:!1},dic:{type:Object,default:{}},id:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=Object(i["reactive"])({tableData:[],keyCount:0,tableConfiger:{rowHieght:61,showSelectType:"null",loading:!1,haveControls:!1},tableHeight:600,tableColumn:[{label:"线索编号",prop:"xsBh"},{label:"线索名称",prop:"xsMc"},{label:"线索来源",prop:"qbLy",showSolt:!0},{label:"开始时间",prop:"zxkssj"},{label:"截至时间",prop:"zxjssj"},{label:"指向地点",prop:"zxdz"},{label:"线索内容",prop:"xsNr"},{label:"群体类型",prop:"qtlx",showSolt:!0},{label:"群体名称",prop:"qtmc"},{label:"上报单位",prop:"ssbm"},{label:"上报时间",prop:"sxsbsj"},{label:"涉及人数",prop:"sjrs"},{label:"附件",prop:"fjdz",showSolt:!0},{label:"处置状态",prop:"czzt",showSolt:!0},{label:"状态",prop:"shzt",showSolt:!0}]}),a=()=>{r.tableConfiger.loading=!0,Object(o["c"])({hcxsid:n.id},"/mosty-gsxt/qbcj/getXshbXq").then(t=>{r.tableData=t||[],r.tableConfiger.loading=!1}).catch(()=>{r.tableConfiger.loading=!1})},l=()=>{r.tableData=[],e("update:modelValue",!1)};return Object(i["watch"])(()=>n.modelValue,t=>{t&&a()},{immediate:!0,deep:!0}),(e,a)=>{const o=Object(i["resolveComponent"])("DictTag"),u=Object(i["resolveComponent"])("el-dialog");return Object(i["openBlock"])(),Object(i["createBlock"])(u,{modelValue:t.modelValue,"onUpdate:modelValue":a[0]||(a[0]=t=>Object(i["isRef"])(modelValue)?modelValue.value=t:null),title:"合并详情",width:"1500px",onClose:l},{default:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",ae,[(Object(i["openBlock"])(),Object(i["createBlock"])(s["a"],{tableData:r.tableData,tableColumn:r.tableColumn,tableHeight:r.tableHeight,key:r.keyCount,tableConfiger:r.tableConfiger,controlsWidth:r.controlsWidth},{xlLx:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.xlLx,options:n.dic.D_GS_XS_LX},null,8,["value","options"])]),qbLy:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.qbLy,options:n.dic.D_GS_XS_LY},null,8,["value","options"])]),czzt:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.czzt,options:n.dic.D_GS_XS_CZZT},null,8,["value","options"])]),shzt:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.shzt,options:n.dic.D_BZ_XSSHZT},null,8,["value","options"])]),qtlx:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.qtlx,options:n.dic.D_GS_XS_QTLX},null,8,["value","options"])]),_:1},8,["tableData","tableColumn","tableHeight","tableConfiger","controlsWidth"]))])]),_:1},8,["modelValue"])}}};const se=oe;var le=se;const ue=t=>(Object(i["pushScopeId"])("data-v-44bf595e"),t=t(),Object(i["popScopeId"])(),t),ce={key:0,class:"dialog"},he={class:"head_box"},de=ue(()=>Object(i["createElementVNode"])("span",{class:"title"},"线索合并",-1)),fe=Object(i["createTextVNode"])("关闭"),pe={class:"form_cnt"},ge={class:"top hh48"},me={class:"flex nowrap align-center"},ve=ue(()=>Object(i["createElementVNode"])("span",null,"所属部门:",-1)),ye={class:"ml20 mr10"},_e=Object(i["createTextVNode"])("数据周期:"),be=Object(i["createTextVNode"])("查询"),xe=Object(i["createTextVNode"])("重置"),we=ue(()=>Object(i["createElementVNode"])("h3",null,"串并线索",-1)),Oe=Object(i["createTextVNode"])("详情"),Se={class:"flex just-end"},Te={class:"bottom hh48"},Me=ue(()=>Object(i["createElementVNode"])("h3",null,"来源线索",-1)),Ae={class:"flex align-center mb10"},Ce=ue(()=>Object(i["createElementVNode"])("span",null,"线索标题:",-1)),Ie=Object(i["createTextVNode"])("查询"),De=Object(i["createTextVNode"])("自动合并"),Le=Object(i["createTextVNode"])("手动合并");var Ee={__name:"hbForm",props:{dic:Object},emits:["change"],setup(t,{expose:e,emit:n}){const a=t,l=Object(i["ref"])(!1),u=Object(i["ref"])(""),c=Object(i["ref"])("本周"),h=Object(i["ref"])(["本周","本月","本季度","本年"]),{proxy:d}=Object(i["getCurrentInstance"])(),f=Object(i["ref"])(!1),p=Object(i["ref"])([]),g=Object(i["ref"])({times:Object(r["d"])("本周")}),m=Object(i["ref"])(""),v=Object(i["ref"])(!1),y=Object(i["reactive"])({tableData_hbh:[],tableData_hbq:[],keyCount:0,tableConfiger:{rowHieght:61,showSelectType:"checkBox",loading:!1,haveControls:!1},tableConfiger1:{rowHieght:61,showSelectType:"null",loading:!1},controlsWidth:100,tableColumn:[{label:"线索编号",prop:"xsBh"},{label:"线索名称",prop:"xsMc"},{label:"线索来源",prop:"qbLy",showSolt:!0},{label:"开始时间",prop:"zxkssj"},{label:"截至时间",prop:"zxjssj"},{label:"指向地点",prop:"zxdz"},{label:"线索内容",prop:"xsNr"},{label:"群体类型",prop:"qtlx",showSolt:!0},{label:"群体名称",prop:"qtmc"},{label:"上报单位",prop:"ssbm"},{label:"上报时间",prop:"sxsbsj"},{label:"涉及人数",prop:"sjrs"},{label:"附件",prop:"fjdz",showSolt:!0},{label:"处置状态",prop:"czzt",showSolt:!0},{label:"状态",prop:"shzt",showSolt:!0}]}),_=Object(i["reactive"])({pageCurrent:1,pageSize:10,total:0});Object(i["onMounted"])(()=>{j()});const b=()=>{f.value=!0,x(),M(),j()},x=()=>{Object(o["c"])({xsMc:m.value},"/mosty-gsxt/qbcj/getXshbFxcx").then(t=>{y.tableData_hbq=t||[]})},w=()=>{d.$confirm("是否确定要合并?","警告",{type:"warning"}).then(()=>{Object(o["d"])({xsMc:m.value},"/mosty-gsxt/qbcj/getXshbZdhb").then(t=>{d.$message({type:"success",message:"合并成功"}),x(),M()})})},O=()=>{if(p.value.length<2)return d.$message({type:"warning",message:"请先选择需要合并的数据,并且至少选择 2 条数据。"});d.$confirm("是否确定要合并?","警告",{type:"warning"}).then(()=>{Object(o["d"])(p.value,"/mosty-gsxt/qbcj/getXshbSdhb").then(t=>{d.$message({type:"success",message:"合并成功"}),x(),M()})})},S=()=>{c.value="本周",g.value={times:Object(r["d"])("本周")},_.pageCurrent=1,M()},T=()=>{_.pageCurrent=1,M()},M=()=>{let t={sfhb:1,..._,...g.value};t.times&&t.times.length>0&&(t.startTime=g.value.times[0],t.endTime=g.value.times[1]),delete t.times,y.tableConfiger.tableConfiger1=!0,Object(o["c"])(t,"/mosty-gsxt/qbcj/selectPage").then(t=>{console.log(t),y.tableConfiger.tableConfiger1=!1,y.tableData_hbh=t.records||[],_.total=t.total}).catch(()=>{y.tableConfiger.tableConfiger1=!1})},A=t=>{u.value=t.id,l.value=!0},C=t=>{_.pageCurrent=t,M()},I=t=>{_.pageSize=t,M()},D=t=>{switch(c.value=t,t){case"本周":g.value.times=Object(r["d"])("本周");break;case"本月":g.value.times=Object(r["d"])("本月");break;case"本季度":g.value.times=Object(r["d"])("本季度");break;case"本年":g.value.times=Object(r["d"])("本年");break}},L=t=>{Array.isArray(t)&&(p.value=t.map(t=>t.id))},E=()=>{c.value="本周",g.value={times:Object(r["d"])("本周")},m.value="",p.value=[],_.pageCurrent=1,f.value=!1,v.value=!1},j=()=>{y.tableHeight=window.innerHeight-660,y.tableHeight1=window.innerHeight-695,window.onresize=function(){j()}};return e({init:b}),(t,e)=>{const n=Object(i["resolveComponent"])("el-button"),r=Object(i["resolveComponent"])("el-date-picker"),o=Object(i["resolveComponent"])("DictTag"),d=Object(i["resolveComponent"])("el-link"),p=Object(i["resolveComponent"])("el-input");return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],null,[f.value?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ce,[Object(i["createElementVNode"])("div",he,[de,Object(i["createVNode"])(n,{onClick:E},{default:Object(i["withCtx"])(()=>[fe]),_:1})]),Object(i["createElementVNode"])("div",pe,[Object(i["createElementVNode"])("div",ge,[Object(i["createElementVNode"])("div",me,[ve,Object(i["createVNode"])(It["c"],{width:"300px",clearable:"",modelValue:g.value.ssbmdm,"onUpdate:modelValue":e[0]||(e[0]=t=>g.value.ssbmdm=t)},null,8,["modelValue"]),Object(i["createElementVNode"])("div",ye,[_e,(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(h.value,t=>(Object(i["openBlock"])(),Object(i["createBlock"])(n,{onClick:e=>D(t),key:t,type:c.value==t?"primary":"",size:"small"},{default:Object(i["withCtx"])(()=>[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t),1)]),_:2},1032,["onClick","type"]))),128))]),Object(i["createVNode"])(r,{modelValue:g.value.times,"onUpdate:modelValue":e[1]||(e[1]=t=>g.value.times=t),type:"daterange","range-separator":"To","value-format":"YYYY-MM-DD","start-placeholder":"选择开始时间","end-placeholder":"选择结束时间"},null,8,["modelValue"]),Object(i["createVNode"])(n,{class:"ml10 mr20",type:"primary",size:"small",onClick:T},{default:Object(i["withCtx"])(()=>[be]),_:1}),Object(i["createVNode"])(n,{type:"primary",size:"small",onClick:S},{default:Object(i["withCtx"])(()=>[xe]),_:1})]),we,(Object(i["openBlock"])(),Object(i["createBlock"])(s["a"],{tableData:y.tableData_hbh,tableColumn:y.tableColumn,tableHeight:y.tableHeight1,key:y.keyCount,tableConfiger:y.tableConfiger1,controlsWidth:y.controlsWidth},{xlLx:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.xlLx,options:a.dic.D_GS_XS_LX},null,8,["value","options"])]),qbLy:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.qbLy,options:a.dic.D_GS_XS_LY},null,8,["value","options"])]),czzt:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.czzt,options:a.dic.D_GS_XS_CZZT},null,8,["value","options"])]),shzt:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.shzt,options:a.dic.D_BZ_XSSHZT},null,8,["value","options"])]),qtlx:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.qtlx,options:a.dic.D_GS_XS_QTLX},null,8,["value","options"])]),controls:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(d,{size:"small",type:"primary",onClick:e=>A(t)},{default:Object(i["withCtx"])(()=>[Oe]),_:2},1032,["onClick"])]),_:1},8,["tableData","tableColumn","tableHeight","tableConfiger","controlsWidth"])),Object(i["createElementVNode"])("div",Se,[Object(i["createVNode"])(Ct["a"],{onChangeNo:C,onChangeSize:I,tableHeight:y.tableHeight1,pageConfiger:{..._}},null,8,["tableHeight","pageConfiger"])])]),Object(i["createElementVNode"])("div",Te,[Me,Object(i["createElementVNode"])("div",Ae,[Ce,Object(i["createVNode"])(p,{style:{width:"300px"},placeholder:"请输入标题",clearable:"",modelValue:m.value,"onUpdate:modelValue":e[2]||(e[2]=t=>m.value=t)},null,8,["modelValue"]),Object(i["createVNode"])(n,{class:"ml10 mr20",type:"primary",size:"small"},{default:Object(i["withCtx"])(()=>[Ie]),_:1}),Object(i["createVNode"])(n,{class:"mr10",type:"primary",size:"small",onClick:w},{default:Object(i["withCtx"])(()=>[De]),_:1}),Object(i["createVNode"])(n,{type:"primary",size:"small",onClick:O},{default:Object(i["withCtx"])(()=>[Le]),_:1})]),(Object(i["openBlock"])(),Object(i["createBlock"])(s["a"],{tableData:y.tableData_hbq,tableColumn:y.tableColumn,tableHeight:y.tableHeight,key:y.keyCount,tableConfiger:y.tableConfiger,controlsWidth:y.controlsWidth,onChooseData:L},{xlLx:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.xlLx,options:a.dic.D_GS_XS_LX},null,8,["value","options"])]),qbLy:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.qbLy,options:a.dic.D_GS_XS_LY},null,8,["value","options"])]),czzt:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.czzt,options:a.dic.D_GS_XS_CZZT},null,8,["value","options"])]),shzt:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.shzt,options:a.dic.D_BZ_XSSHZT},null,8,["value","options"])]),qtlx:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(o,{tag:!1,value:t.qtlx,options:a.dic.D_GS_XS_QTLX},null,8,["value","options"])]),_:1},8,["tableData","tableColumn","tableHeight","tableConfiger","controlsWidth"]))])])])):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(le,{modelValue:l.value,"onUpdate:modelValue":e[3]||(e[3]=t=>l.value=t),id:u.value},null,8,["modelValue","id"])],64)}}};n("3985");const je=h()(Ee,[["__scopeId","data-v-44bf595e"]]);var Pe=je;const Ne={class:"titleBox"},Re=Object(i["createTextVNode"])("情报研判分析"),ke=Object(i["createTextVNode"])("线索串联"),Be={class:"tabBox"},ze=Object(i["createTextVNode"])(" 至 "),Ve=Object(i["createTextVNode"])("转为指令"),Fe=Object(i["createTextVNode"])("详情");var Ge={__name:"index",setup(t){const{proxy:e}=Object(i["getCurrentInstance"])(),{D_GS_ZDQT_FXDJ:n,D_GS_XS_ZLLX:r,D_GS_XS_CZZT:a,D_GS_XS_LY:l,D_BZ_SSZT:u,D_BZ_SF:c,D_GS_XS_LX:h,D_GS_XS_QTLX:d,D_BZ_XB:f,D_BZ_XSSHZT:p}=e.$dict("D_GS_ZDQT_FXDJ","D_GS_XS_ZLLX","D_GS_XS_CZZT","D_GS_XS_LY","D_BZ_SSZT","D_BZ_SF","D_GS_XS_LX","D_GS_XS_QTLX","D_BZ_XB","D_BZ_XSSHZT"),g=Object(i["ref"])(),m=Object(i["ref"])(),v=Object(i["ref"])(!1),y=Object(i["ref"])(!1),_=Object(i["ref"])(!1),b=Object(i["ref"])(),x=Object(i["ref"])([{label:"线索名称",prop:"xsMc",placeholder:"请输入线索名称",showType:"input"},{label:"内容关键字",prop:"xsNr",placeholder:"请输入语义关键字",showType:"input"},{label:"线索类型",prop:"xlLx",placeholder:"请选择线索类型",showType:"select",options:h},{label:"线索来源",prop:"qbLy",placeholder:"请选择线索来源",showType:"select",options:l},{label:"指向地点",prop:"zxdz",placeholder:"请输入指向地点",showType:"input"}]),w=Object(i["reactive"])({tableData:[],keyCount:0,tableConfiger:{rowHieght:61,showSelectType:"checkBox",loading:!1},total:0,pageConfiger:{pageSize:20,pageCurrent:1},controlsWidth:150,tableColumn:[{label:"线索编号",prop:"xsBh"},{label:"线索名称",prop:"xsMc"},{label:"线索类型",prop:"xlLx",showSolt:!0},{label:"线索来源",prop:"qbLy",showSolt:!0},{label:"指向时间",prop:"zxkssj",showSolt:!0,showOverflowTooltip:!0},{label:"上报时间",prop:"sxsbsj",showOverflowTooltip:!0},{label:"指向地点",prop:"zxdz"},{label:"线索内容",prop:"xsNr",showOverflowTooltip:!0},{label:"处置状态",prop:"czzt",showSolt:!0},{label:"附件",prop:"fjdz",showSolt:!0},{label:"审核状态",prop:"shzt",showSolt:!0}]}),O=Object(i["ref"])({});Object(i["onMounted"])(()=>{A(),L()});const S=t=>{O.value={...t},w.pageConfiger.pageCurrent=1,A()},T=t=>{w.pageConfiger.pageCurrent=t,A()},M=t=>{w.pageConfiger.pageSize=t,A()},A=()=>{w.tableConfiger.loading=!0;let t={...w.pageConfiger,...O.value};Object(o["c"])(t,"/mosty-gsxt/qbcj/selectPage").then(t=>{w.tableData=t.records||[],w.total=t.total,w.tableConfiger.loading=!1}).catch(()=>{w.tableConfiger.loading=!1})},C=t=>{v.value=!0,setTimeout(()=>{_.value.init(t)},500)},I=(t,e)=>{v.value=!0,setTimeout(()=>{g.value.init(t,e)},500)},D=()=>{b.value.init()},L=()=>{w.tableHeight=window.innerHeight-m.value.offsetHeight-250,window.onresize=function(){L()}};return(t,e)=>{const o=Object(i["resolveComponent"])("el-button"),O=Object(i["resolveComponent"])("DictTag"),A=Object(i["resolveComponent"])("el-link");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",null,[Object(i["createElementVNode"])("div",Ne,[Object(i["createVNode"])(At["a"],{title:"人力情报信息采集流转"},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(o,{type:"primary",onClick:e[0]||(e[0]=t=>y.value=!0)},{default:Object(i["withCtx"])(()=>[Re]),_:1}),Object(i["createVNode"])(o,{type:"primary",onClick:D},{default:Object(i["withCtx"])(()=>[ke]),_:1})]),_:1})]),Object(i["createElementVNode"])("div",{ref_key:"searchBox",ref:m},[(Object(i["openBlock"])(),Object(i["createBlock"])(U["a"],{searchArr:x.value,onSubmit:S,key:w.keyCount},null,8,["searchArr"]))],512),Object(i["createElementVNode"])("div",Be,[(Object(i["openBlock"])(),Object(i["createBlock"])(s["a"],{tableData:w.tableData,tableColumn:w.tableColumn,tableHeight:w.tableHeight,key:w.keyCount,tableConfiger:w.tableConfiger,controlsWidth:w.controlsWidth},{xlLx:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(O,{tag:!1,value:t.xlLx,options:Object(i["unref"])(h)},null,8,["value","options"])]),qbLy:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(O,{tag:!1,value:t.qbLy,options:Object(i["unref"])(l)},null,8,["value","options"])]),czzt:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(O,{tag:!1,value:t.czzt,options:Object(i["unref"])(a)},null,8,["value","options"])]),shzt:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(O,{tag:!1,value:t.shzt,options:Object(i["unref"])(p)},null,8,["value","options"])]),zxkssj:Object(i["withCtx"])(({row:t})=>[Object(i["createElementVNode"])("span",null,Object(i["toDisplayString"])(t.zxkssj),1),ze,Object(i["createElementVNode"])("span",null,Object(i["toDisplayString"])(t.zxjssj),1)]),controls:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(A,{size:"small",type:"primary",onClick:e=>C(t)},{default:Object(i["withCtx"])(()=>[Ve]),_:2},1032,["onClick"]),Object(i["createVNode"])(A,{size:"small",type:"primary",onClick:e=>I("detail",t)},{default:Object(i["withCtx"])(()=>[Fe]),_:2},1032,["onClick"])]),_:1},8,["tableData","tableColumn","tableHeight","tableConfiger","controlsWidth"])),Object(i["createVNode"])(Ct["a"],{onChangeNo:T,onChangeSize:M,tableHeight:w.tableHeight,pageConfiger:{...w.pageConfiger,total:w.total}},null,8,["tableHeight","pageConfiger"])]),v.value?(Object(i["openBlock"])(),Object(i["createBlock"])(Zt,{key:0,ref_key:"detailDiloag",ref:g,dic:{D_BZ_SF:Object(i["unref"])(c),D_BZ_XB:Object(i["unref"])(f),D_GS_XS_LY:Object(i["unref"])(l),D_BZ_SSZT:Object(i["unref"])(u),D_GS_XS_LX:Object(i["unref"])(h),D_GS_XS_QTLX:Object(i["unref"])(d)}},null,8,["dic"])):Object(i["createCommentVNode"])("",!0),v.value?(Object(i["openBlock"])(),Object(i["createBlock"])(re,{key:1,ref_key:"zlDialog",ref:_,dic:{D_GS_XS_ZLLX:Object(i["unref"])(r),D_GS_ZDQT_FXDJ:Object(i["unref"])(n)}},null,8,["dic"])):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(Pe,{ref_key:"isShowhB",ref:b,dic:{D_GS_XS_LX:Object(i["unref"])(h),D_GS_XS_LY:Object(i["unref"])(l),D_GS_XS_CZZT:Object(i["unref"])(a),D_BZ_XSSHZT:Object(i["unref"])(p),D_GS_XS_QTLX:Object(i["unref"])(d)}},null,8,["dic"]),(Object(i["openBlock"])(),Object(i["createBlock"])(i["Teleport"],{to:"#app"},[y.value?(Object(i["openBlock"])(),Object(i["createBlock"])(Mt,{key:0,onClose:e[1]||(e[1]=t=>y.value=!1)})):Object(i["createCommentVNode"])("",!0)]))])}}};n("806c");const He=Ge;e["default"]=He},"998a":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("76a5");function r(t,e,n,r,a,o,s,l){var u=new i["a"]({style:{text:t,font:e,align:n,verticalAlign:r,padding:a,rich:o,overflow:s?"truncate":null,lineHeight:l}});return u.getBoundingRect()}},"9a7f":function(t,e,n){},"9c28":function(t,e,n){"use strict";n("bff8")},"9cf9":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=Math.round;function r(t,e,n){if(e){var r=e.x1,a=e.x2,s=e.y1,l=e.y2;t.x1=r,t.x2=a,t.y1=s,t.y2=l;var u=n&&n.lineWidth;return u?(i(2*r)===i(2*a)&&(t.x1=t.x2=o(r,u,!0)),i(2*s)===i(2*l)&&(t.y1=t.y2=o(s,u,!0)),t):t}}function a(t,e,n){if(e){var i=e.x,r=e.y,a=e.width,s=e.height;t.x=i,t.y=r,t.width=a,t.height=s;var l=n&&n.lineWidth;return l?(t.x=o(i,l,!0),t.y=o(r,l,!0),t.width=Math.max(o(i+a,l,!1)-t.x,0===a?0:1),t.height=Math.max(o(r+s,l,!1)-t.y,0===s?0:1),t):t}}function o(t,e,n){if(!e)return t;var r=i(2*t);return(r+i(e))%2===0?r/2:(r+(n?1:-1))/2}},"9d57":function(t,e,n){"use strict";n.d(e,"b",(function(){return h})),n.d(e,"e",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"f",(function(){return m})),n.d(e,"c",(function(){return v})),n.d(e,"a",(function(){return y}));var i=n("6d8b"),r=n("3842"),a=n("ee1a"),o=n("cccd"),s=n("f658"),l="__ec_stack_";function u(t){return t.get("stack")||l+t.seriesIndex}function c(t){return t.dim+t.index}function h(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var a=n.getBandWidth(),o=0;o<t.count;o++)e.push(Object(i["i"])({bandWidth:a,axisKey:r,stackId:l+o},t));var s=g(e),u=[];for(o=0;o<t.count;o++){var c=s[r][l+o];c.offsetCenter=c.offset+c.width/2,u.push(c)}return u}}function d(t,e){var n=[];return e.eachSeriesByType(t,(function(t){_(t)&&n.push(t)})),n}function f(t){var e={};Object(i["k"])(t,(function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=t.getData(),a=i.dim+"_"+i.index,o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getStore(),l=0,u=s.count();l<u;++l){var c=s.get(o,l);e[a]?e[a].push(c):e[a]=[c]}}));var n={};for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(a){a.sort((function(t,e){return t-e}));for(var o=null,s=1;s<a.length;++s){var l=a[s]-a[s-1];l>0&&(o=null===o?l:Math.min(o,l))}n[r]=o}}return n}function p(t){var e=f(t),n=[];return Object(i["k"])(t,(function(t){var i,a=t.coordinateSystem,o=a.getBaseAxis(),s=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var l=o.dim+"_"+o.index,h=e[l],d=Math.abs(s[1]-s[0]),f=o.scale.getExtent(),p=Math.abs(f[1]-f[0]);i=h?d/p*h:d}else{var g=t.getData();i=Math.abs(s[1]-s[0])/g.count()}var m=Object(r["p"])(t.get("barWidth"),i),v=Object(r["p"])(t.get("barMaxWidth"),i),y=Object(r["p"])(t.get("barMinWidth")||(b(t)?.5:1),i),_=t.get("barGap"),x=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:m,barMaxWidth:v,barMinWidth:y,barGap:_,barCategoryGap:x,axisKey:c(o),stackId:u(t)})})),g(n)}function g(t){var e={};Object(i["k"])(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,a=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=a.stacks;e[i]=a;var s=t.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var u=t.barMaxWidth;u&&(o[s].maxWidth=u);var c=t.barMinWidth;c&&(o[s].minWidth=c);var h=t.barGap;null!=h&&(a.gap=h);var d=t.barCategoryGap;null!=d&&(a.categoryGap=d)}));var n={};return Object(i["k"])(e,(function(t,e){n[e]={};var a=t.stacks,o=t.bandWidth,s=t.categoryGap;if(null==s){var l=Object(i["F"])(a).length;s=Math.max(35-4*l,15)+"%"}var u=Object(r["p"])(s,o),c=Object(r["p"])(t.gap,1),h=t.remainedWidth,d=t.autoWidthCount,f=(h-u)/(d+(d-1)*c);f=Math.max(f,0),Object(i["k"])(a,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,h-=i+c*i,d--}else{var i=f;e&&e<i&&(i=Math.min(e,h)),n&&n>i&&(i=n),i!==f&&(t.width=i,h-=i+c*i,d--)}})),f=(h-u)/(d+(d-1)*c),f=Math.max(f,0);var p,g=0;Object(i["k"])(a,(function(t,e){t.width||(t.width=f),p=t,g+=t.width*(1+c)})),p&&(g-=p.width*c);var m=-g/2;Object(i["k"])(a,(function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:m,width:t.width},m+=t.width*(1+c)}))})),n}function m(t,e,n){if(t&&e){var i=t[c(e)];return null!=i&&null!=n?i[u(n)]:i}}function v(t,e){var n=d(t,e),r=p(n);Object(i["k"])(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=u(t),o=r[c(i)][a],s=o.offset,l=o.width;e.setLayout({bandWidth:o.bandWidth,offset:s,size:l})}))}function y(t){return{seriesType:t,plan:Object(o["a"])(),reset:function(t){if(_(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),l=e.getDimensionIndex(e.mapDimension(i.dim)),u=t.get("showBackground",!0),c=e.mapDimension(r.dim),h=e.getCalculationInfo("stackResultDimension"),d=Object(a["c"])(e,c)&&!!e.getCalculationInfo("stackedOnSeries"),f=r.isHorizontal(),p=x(i,r),g=b(t),m=t.get("barMinHeight")||0,v=h&&e.getDimensionIndex(h),y=e.getLayout("size"),w=e.getLayout("offset");return{progress:function(t,e){var i,r=t.count,a=g&&Object(s["a"])(3*r),c=g&&u&&Object(s["a"])(3*r),h=g&&Object(s["a"])(r),_=n.master.getRect(),b=f?_.width:_.height,x=e.getStore(),O=0;while(null!=(i=t.next())){var S=x.get(d?v:o,i),T=x.get(l,i),M=p,A=void 0;d&&(A=+S-x.get(o,i));var C=void 0,I=void 0,D=void 0,L=void 0;if(f){var E=n.dataToPoint([S,T]);if(d){var j=n.dataToPoint([A,T]);M=j[0]}C=M,I=E[1]+w,D=E[0]-M,L=y,Math.abs(D)<m&&(D=(D<0?-1:1)*m)}else{E=n.dataToPoint([T,S]);if(d){j=n.dataToPoint([T,A]);M=j[1]}C=E[0]+w,I=M,D=y,L=E[1]-M,Math.abs(L)<m&&(L=(L<=0?-1:1)*m)}g?(a[O]=C,a[O+1]=I,a[O+2]=f?D:L,c&&(c[O]=f?_.x:C,c[O+1]=f?I:_.y,c[O+2]=b),h[i]=i):e.setItemLayout(i,{x:C,y:I,width:D,height:L}),O+=3}g&&e.setLayout({largePoints:a,largeDataIndices:h,largeBackgroundPoints:c,valueAxisHorizontal:f})}}}}}}function _(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function b(t){return t.pipelineContext&&t.pipelineContext.large}function x(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}},"9e2d":function(t,e,n){},"9fbc":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("6d8b");function r(t){return new a(t)}var a=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,s=h(this._modBy),l=this._modDataCount||0,u=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}s===u&&l===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=u,this._modDataCount=c;var d=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(o||f<p)){var g=this._progress;if(Object(i["t"])(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],f,p,u,c);else this._doProgress(g,f,p,u,c)}this._dueIndex=p;var v=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){o.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:o.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Object(i["t"])(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),o=function(){var t,e,n,i,r,a={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/n),a.next=n>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var a=e%r*n+Math.ceil(e/r),o=e>=t?null:a<i?a:e;return e++,o}}()},a15a:function(t,e,n){"use strict";n.d(e,"d",(function(){return y})),n.d(e,"a",(function(){return x})),n.d(e,"c",(function(){return w})),n.d(e,"b",(function(){return O}));var i=n("6d8b"),r=n("cbe5"),a=n("cb11"),o=n("c7a2"),s=n("d9fc"),l=n("2306"),u=n("9850"),c=n("e86a"),h=n("3842"),d=r["b"].extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i+a),t.lineTo(n-r,i+a),t.closePath()}}),f=r["b"].extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i),t.lineTo(n,i+a),t.lineTo(n-r,i),t.closePath()}}),p=r["b"].extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,a=Math.max(r,e.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u),f=.6*o,p=.7*o;t.moveTo(n-c,l+s),t.arc(n,l,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-c+h*f,l+s+d*f,n-c,l+s),t.closePath()}}),g=r["b"].extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,a=e.y,o=i/3*2;t.moveTo(r,a),t.lineTo(r+o,a+n),t.lineTo(r,a+n/4*3),t.lineTo(r-o,a+n),t.lineTo(r,a),t.closePath()}}),m={line:a["a"],rect:o["a"],roundRect:o["a"],square:o["a"],circle:s["a"],diamond:f,pin:p,arrow:g,triangle:d},v={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var a=Math.min(n,i);r.x=t,r.y=e,r.width=a,r.height=a},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},y={};Object(i["k"])(m,(function(t,e){y[e]=new t}));var _=r["b"].extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=Object(c["c"])(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=y[i];r||(i="rect",r=y[i]),v[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function b(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function x(t,e,n,i,r,a,o){var s,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?l["makeImage"](t.slice(8),new u["a"](e,n,i,r),o?"center":"cover"):0===t.indexOf("path://")?l["makePath"](t.slice(7),{},new u["a"](e,n,i,r),o?"center":"cover"):new _({shape:{symbolType:t,x:e,y:n,width:i,height:r}}),s.__isEmptyBrush=c,s.setColor=b,a&&s.setColor(a),s}function w(t){return Object(i["t"])(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function O(t,e){if(null!=t)return Object(i["t"])(t)||(t=[t,t]),[Object(h["p"])(t[0],e[0])||0,Object(h["p"])(Object(i["P"])(t[1],t[0]),e[1])||0]}},a1ba:function(t,e,n){"use strict";n("dc92")},a792:function(t,e,n){},aa74:function(t,e,n){"use strict";n.d(e,"n",(function(){return l["d"]})),n.d(e,"u",(function(){return l["l"]})),n.d(e,"s",(function(){return l["j"]})),n.d(e,"t",(function(){return l["k"]})),n.d(e,"j",(function(){return l["b"]})),n.d(e,"k",(function(){return l["c"]})),n.d(e,"x",(function(){return p})),n.d(e,"h",(function(){return g})),n.d(e,"m",(function(){return i})),n.d(e,"v",(function(){return j["a"]})),n.d(e,"q",(function(){return P["a"]})),n.d(e,"r",(function(){return P["a"]})),n.d(e,"p",(function(){return r})),n.d(e,"l",(function(){return a})),n.d(e,"i",(function(){return o})),n.d(e,"w",(function(){return s})),n.d(e,"e",(function(){return f["a"]})),n.d(e,"f",(function(){return b["a"]})),n.d(e,"a",(function(){return at["a"]})),n.d(e,"c",(function(){return u["a"]})),n.d(e,"d",(function(){return c["a"]})),n.d(e,"g",(function(){return h["b"]})),n.d(e,"b",(function(){return d["a"]})),n.d(e,"o",(function(){return ot["b"]}));var i={};n.r(i),n.d(i,"createList",(function(){return C})),n.d(i,"getLayoutRect",(function(){return x["g"]})),n.d(i,"createDimensions",(function(){return T["a"]})),n.d(i,"dataStack",(function(){return I})),n.d(i,"createSymbol",(function(){return M["a"]})),n.d(i,"createScale",(function(){return D})),n.d(i,"mixinAxisModelCommonMethods",(function(){return L})),n.d(i,"getECData",(function(){return O["a"]})),n.d(i,"enableHoverEmphasis",(function(){return A["o"]})),n.d(i,"createTextStyle",(function(){return E}));var r={};n.r(r),n.d(r,"linearMap",(function(){return N["l"]})),n.d(r,"round",(function(){return N["v"]})),n.d(r,"asc",(function(){return N["c"]})),n.d(r,"getPrecision",(function(){return N["g"]})),n.d(r,"getPrecisionSafe",(function(){return N["h"]})),n.d(r,"getPixelPrecision",(function(){return N["f"]})),n.d(r,"getPercentWithPrecision",(function(){return N["e"]})),n.d(r,"MAX_SAFE_INTEGER",(function(){return N["a"]})),n.d(r,"remRadian",(function(){return N["u"]})),n.d(r,"isRadianAroundZero",(function(){return N["k"]})),n.d(r,"parseDate",(function(){return N["o"]})),n.d(r,"quantity",(function(){return N["r"]})),n.d(r,"quantityExponent",(function(){return N["s"]})),n.d(r,"nice",(function(){return N["m"]})),n.d(r,"quantile",(function(){return N["q"]})),n.d(r,"reformIntervals",(function(){return N["t"]})),n.d(r,"isNumeric",(function(){return N["j"]})),n.d(r,"numericToNumber",(function(){return N["n"]}));var a={};n.r(a),n.d(a,"extendShape",(function(){return R["extendShape"]})),n.d(a,"extendPath",(function(){return R["extendPath"]})),n.d(a,"makePath",(function(){return R["makePath"]})),n.d(a,"makeImage",(function(){return R["makeImage"]})),n.d(a,"mergePath",(function(){return R["mergePath"]})),n.d(a,"resizePath",(function(){return R["resizePath"]})),n.d(a,"createIcon",(function(){return R["createIcon"]})),n.d(a,"updateProps",(function(){return k["h"]})),n.d(a,"initProps",(function(){return k["c"]})),n.d(a,"getTransform",(function(){return R["getTransform"]})),n.d(a,"clipPointsByRect",(function(){return R["clipPointsByRect"]})),n.d(a,"clipRectByRect",(function(){return R["clipRectByRect"]})),n.d(a,"registerShape",(function(){return R["registerShape"]})),n.d(a,"getShapeClass",(function(){return R["getShapeClass"]})),n.d(a,"Group",(function(){return B["a"]})),n.d(a,"Image",(function(){return z["a"]})),n.d(a,"Text",(function(){return V["a"]})),n.d(a,"Circle",(function(){return F["a"]})),n.d(a,"Ellipse",(function(){return G["a"]})),n.d(a,"Sector",(function(){return H["a"]})),n.d(a,"Ring",(function(){return U["a"]})),n.d(a,"Polygon",(function(){return W["a"]})),n.d(a,"Polyline",(function(){return X["a"]})),n.d(a,"Rect",(function(){return Z["a"]})),n.d(a,"Line",(function(){return q["a"]})),n.d(a,"BezierCurve",(function(){return Y["a"]})),n.d(a,"Arc",(function(){return K["a"]})),n.d(a,"IncrementalDisplayable",(function(){return Q["a"]})),n.d(a,"CompoundPath",(function(){return J["a"]})),n.d(a,"LinearGradient",(function(){return $["a"]})),n.d(a,"RadialGradient",(function(){return tt["a"]})),n.d(a,"BoundingRect",(function(){return et["a"]}));var o={};n.r(o),n.d(o,"addCommas",(function(){return nt["a"]})),n.d(o,"toCamelCase",(function(){return nt["k"]})),n.d(o,"normalizeCssArray",(function(){return nt["j"]})),n.d(o,"encodeHTML",(function(){return nt["d"]})),n.d(o,"formatTpl",(function(){return nt["f"]})),n.d(o,"getTooltipMarker",(function(){return nt["h"]})),n.d(o,"formatTime",(function(){return nt["e"]})),n.d(o,"capitalFirst",(function(){return nt["b"]})),n.d(o,"truncateText",(function(){return it["c"]})),n.d(o,"getTextRect",(function(){return rt["a"]}));var s={};n.r(s),n.d(s,"map",(function(){return m["H"]})),n.d(s,"each",(function(){return m["k"]})),n.d(s,"indexOf",(function(){return m["r"]})),n.d(s,"inherits",(function(){return m["s"]})),n.d(s,"reduce",(function(){return m["N"]})),n.d(s,"filter",(function(){return m["n"]})),n.d(s,"bind",(function(){return m["c"]})),n.d(s,"curry",(function(){return m["h"]})),n.d(s,"isArray",(function(){return m["t"]})),n.d(s,"isString",(function(){return m["C"]})),n.d(s,"isObject",(function(){return m["A"]})),n.d(s,"isFunction",(function(){return m["w"]})),n.d(s,"extend",(function(){return m["m"]})),n.d(s,"defaults",(function(){return m["i"]})),n.d(s,"clone",(function(){return m["d"]})),n.d(s,"merge",(function(){return m["I"]}));var l=n("1be7"),u=n("6cb7"),c=n("b12f"),h=n("4f85"),d=n("e887"),f=n("b682"),p=n("697e7"),g=n("41ef"),m=n("6d8b"),v=n("1830"),y=n("697e"),_=n("2023"),b=n("4319"),x=n("f934"),w=n("ee1a"),O=n("861c"),S=n("7837"),T=n("b1d4"),M=n("a15a"),A=n("7d6c");function C(t){return Object(v["a"])(null,t)}var I={isDimensionStacked:w["c"],enableDataStack:w["a"],getStackedDimension:w["b"]};function D(t,e){var n=e;e instanceof b["a"]||(n=new b["a"](e));var i=y["a"](n);return i.setExtent(t[0],t[1]),y["i"](i,n),i}function L(t){m["K"](t,_["a"])}function E(t,e){return e=e||{},Object(S["c"])(t,null,null,"normal"!==e.state)}var j=n("22b4"),P=n("bda7"),N=n("3842"),R=n("2306"),k=n("deab"),B=n("2dc5"),z=n("0da8"),V=n("76a5"),F=n("d9fc"),G=n("ae69"),H=n("4aa2"),U=n("4573"),W=n("87b1"),X=n("d498"),Z=n("c7a2"),q=n("cb11"),Y=n("ac0f"),K=n("8d32"),Q=n("392f"),J=n("d4c6"),$=n("48a9"),tt=n("dded"),et=n("9850"),nt=n("eda2"),it=n("d409"),rt=n("998a"),at=n("84ce"),ot=n("5210");var st=n("ee29");Object(j["a"])(st["a"])},aaec:function(t,e,n){},ac0f:function(t,e,n){"use strict";var i=n("21a10"),r=n("cbe5"),a=n("401b"),o=n("4a3f"),s=[],l=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function u(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?o["b"]:o["a"])(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?o["b"]:o["a"])(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?o["i"]:o["h"])(t.x1,t.cpx1,t.x2,e),(n?o["i"]:o["h"])(t.y1,t.cpy1,t.y2,e)]}var c=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,a=e.y2,l=e.cpx1,u=e.cpy1,c=e.cpx2,h=e.cpy2,d=e.percent;0!==d&&(t.moveTo(n,i),null==c||null==h?(d<1&&(Object(o["n"])(n,l,r,d,s),l=s[1],r=s[2],Object(o["n"])(i,u,a,d,s),u=s[1],a=s[2]),t.quadraticCurveTo(l,u,r,a)):(d<1&&(Object(o["g"])(n,l,c,r,d,s),l=s[1],c=s[2],r=s[3],Object(o["g"])(i,u,h,a,d,s),u=s[1],h=s[2],a=s[3]),t.bezierCurveTo(l,u,c,h,r,a)))},e.prototype.pointAt=function(t){return u(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=u(this.shape,t,!0);return a["m"](e,e)},e}(r["b"]);c.prototype.type="bezier-curve",e["a"]=c},ad28:function(t,e,n){"use strict";var i=n("7a23"),r={__name:"MyTable",props:{tableConfiger:{type:Object,default:()=>{}},tableData:{type:Array,default:()=>[]},tableColumn:{type:Array,default:()=>[]},controlsWidth:{type:Number,default:180},tableHeight:{type:Number||String},treePros:{type:Object,default:{children:"children",hasChildren:"hasChildren"}},fixed:{type:String,default:"right"}},emits:["chooseData"],setup(t,{emit:e}){const n=t,r=Object(i["ref"])(),a=Object(i["ref"])();let o=Object(i["reactive"])({showSelectType:null,showIndex:!0,rowKey:null,border:!0,defaultExpandAll:!1,loading:!1,align:"center",haveControls:!0,controls:"操作",stripe:!1,lazy:!0,portUrl:"",defaultSelectKeys:[],radioChoose:"",rowHeight:"41"});Object(i["watchEffect"])(()=>{o={...o,...n.tableConfiger},u()}),Object(i["onMounted"])(()=>{u()});const s=t=>{if("radio"===o.showSelectType&&t.length>1){let n=t.shift();r.value.toggleRowSelection(n,!1),a.value=t,e("chooseData",t)}else e("chooseData",t)},l=(t,e,n)=>{setTimeout(()=>{n([{id:31,date:"2016-05-01",name:"wangxiaohu",address:"No. 189, Grove St, Los Angeles"},{id:32,date:"2016-05-01",name:"wangxiaohu",address:"No. 189, Grove St, Los Angeles"}])},1e3)};function u(){Object(i["nextTick"])(()=>{var t,e;(null===(t=n.tableConfiger.defaultSelectKeys)||void 0===t?void 0:t.length)>0&&"checkBox"===n.tableConfiger.showSelectType?n.tableData.forEach(t=>{n.tableConfiger.defaultSelectKeys.findIndex(e=>e===t[n.tableConfiger.rowKey])>-1&&r.value.toggleRowSelection(t,!0)}):n.tableConfiger.defaultSelectKeys&&(null===(e=n.tableConfiger.defaultSelectKeys)||void 0===e?void 0:e.length)>0&&"radio"===n.tableConfiger.showSelectType&&(o.radioChoose=n.tableConfiger.defaultSelectKeys[0])})}return(e,n)=>{const a=Object(i["resolveComponent"])("el-table-column"),u=Object(i["resolveComponent"])("el-table"),c=Object(i["resolveDirective"])("loading");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{style:{width:"100%"},class:Object(i["normalizeClass"])("radio"===Object(i["unref"])(o).showSelectType?"tabBoxRadio":"")},[Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createBlock"])(u,{ref_key:"multipleTableRef",ref:r,data:t.tableData,onSelectionChange:s,"row-key":Object(i["unref"])(o).rowKey,border:Object(i["unref"])(o).border,"default-expand-all":Object(i["unref"])(o).defaultExpandAll,stripe:Object(i["unref"])(o).stripe,height:t.tableHeight,lazy:Object(i["unref"])(o).lazy,load:l,"tree-props":t.treePros,style:{width:"100%"},"header-cell-class-name":()=>"HeadBgColor","highlight-current-row":"radio"===Object(i["unref"])(o).showSelectType,"row-style":{height:"auto"===Object(i["unref"])(o).rowHeight?Object(i["unref"])(o).rowHeight:Object(i["unref"])(o).rowHeight+"px"}},{default:Object(i["withCtx"])(()=>{var n,r;return[Object(i["createVNode"])(a,{type:"selection",width:"55"}),Object(i["unref"])(o).showIndex?(Object(i["openBlock"])(),Object(i["createBlock"])(a,{key:0,type:"index",label:"序号",width:"60",align:null===(n=Object(i["unref"])(o))||void 0===n?void 0:n.align},null,8,["align"])):Object(i["createCommentVNode"])("",!0),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(t.tableColumn,(t,n)=>{var r;return Object(i["openBlock"])(),Object(i["createBlock"])(a,{align:null===(r=Object(i["unref"])(o))||void 0===r?void 0:r.align,prop:t.prop,key:n,label:t.label,width:t.width,style:{width:"100%","font-size":"14px"},"show-overflow-tooltip":t.showOverflowTooltip||!1,sortable:t.sortable||!1},Object(i["createSlots"])({_:2},[t.showSolt?{name:"default",fn:Object(i["withCtx"])(n=>[Object(i["renderSlot"])(e.$slots,t.prop,Object(i["normalizeProps"])(Object(i["guardReactiveProps"])(n)))])}:{name:"default",fn:Object(i["withCtx"])(({row:e})=>[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e[t.prop]),1)])}]),1032,["align","prop","label","width","show-overflow-tooltip","sortable"])}),128)),Object(i["unref"])(o).haveControls?(Object(i["openBlock"])(),Object(i["createBlock"])(a,{key:1,fixed:t.fixed,label:Object(i["unref"])(o).controls,width:t.controlsWidth,align:null===(r=Object(i["unref"])(o))||void 0===r?void 0:r.align},{default:Object(i["withCtx"])(t=>[Object(i["renderSlot"])(e.$slots,"controls",Object(i["normalizeProps"])(Object(i["guardReactiveProps"])(t)))]),_:3},8,["fixed","label","width","align"])):Object(i["createCommentVNode"])("",!0)]}),_:3},8,["data","row-key","border","default-expand-all","stripe","height","lazy","tree-props","header-cell-class-name","highlight-current-row","row-style"])),[[c,t.tableConfiger.loading]])],2)}}};n("47fe");const a=r;e["a"]=a},ae69:function(t,e,n){"use strict";var i=n("21a10"),r=n("cbe5"),a=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),o=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,a=e.rx,o=e.ry,s=a*n,l=o*n;t.moveTo(i-a,r),t.bezierCurveTo(i-a,r-l,i-s,r-o,i,r-o),t.bezierCurveTo(i+s,r-o,i+a,r-l,i+a,r),t.bezierCurveTo(i+a,r+l,i+s,r+o,i,r+o),t.bezierCurveTo(i-s,r+o,i-a,r+l,i-a,r),t.closePath()},e}(r["b"]);o.prototype.type="ellipse",e["a"]=o},b12f:function(t,e,n){"use strict";var i=n("2dc5"),r=n("8918"),a=n("625e"),o=function(){function t(){this.group=new i["a"],this.uid=r["c"]("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();a["b"](o),a["c"](o),e["a"]=o},b1d4:function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d}));var i=n("07fd"),r=n("cd70"),a=n("6d8b"),o=n("ec6f"),s=n("d0ce"),l=n("e0d3"),u=n("0f99"),c=n("80b9");function h(t,e){return d(t,e).dimensions}function d(t,e){Object(o["e"])(t)||(t=Object(o["c"])(t)),e=e||{};var n=e.coordDimensions||[],h=e.dimensionsDefine||t.dimensionsDefine||[],d=Object(a["f"])(),m=[],v=p(t,n,h,e.dimensionsCount),y=e.canOmitUnusedDimensions&&Object(c["e"])(v),_=h===t.dimensionsDefine,b=_?Object(c["c"])(t):Object(c["b"])(h),x=e.encodeDefine;!x&&e.encodeDefaulter&&(x=e.encodeDefaulter(t,v));for(var w=Object(a["f"])(x),O=new s["a"](v),S=0;S<O.length;S++)O[S]=-1;function T(t){var e=O[t];if(e<0){var n=h[t],i=Object(a["A"])(n)?n:{name:n},o=new r["a"],s=i.name;null!=s&&null!=b.get(s)&&(o.name=o.displayName=s),null!=i.type&&(o.type=i.type),null!=i.displayName&&(o.displayName=i.displayName);var l=m.length;return O[t]=l,o.storeDimIndex=t,m.push(o),o}return m[e]}if(!y)for(S=0;S<v;S++)T(S);w.each((function(t,e){var n=Object(l["r"])(t).slice();if(1===n.length&&!Object(a["C"])(n[0])&&n[0]<0)w.set(e,!1);else{var i=w.set(e,[]);Object(a["k"])(n,(function(t,n){var r=Object(a["C"])(t)?b.get(t):t;null!=r&&r<v&&(i[n]=r,A(T(r),e,n))}))}}));var M=0;function A(t,e,n){null!=i["i"].get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,d.set(e,!0))}Object(a["k"])(n,(function(t){var e,n,i,r;if(Object(a["C"])(t))e=t,r={};else{r=t,e=r.name;var o=r.ordinalMeta;r.ordinalMeta=null,r=Object(a["m"])({},r),r.ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=w.get(e);if(!1!==s){if(s=Object(l["r"])(s),!s.length)for(var u=0;u<(n&&n.length||1);u++){while(M<v&&null!=T(M).coordDim)M++;M<v&&s.push(M++)}Object(a["k"])(s,(function(t,o){var s=T(t);if(_&&null!=r.type&&(s.type=r.type),A(Object(a["i"])(s,r),e,o),null==s.name&&n){var l=n[o];!Object(a["A"])(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}i&&Object(a["i"])(s.otherDims,i)}))}}));var C=e.generateCoord,I=e.generateCoordCount,D=null!=I;I=C?I||1:0;var L=C||"value";function E(t){null==t.name&&(t.name=t.coordDim)}if(y)Object(a["k"])(m,(function(t){E(t)})),m.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var j=0;j<v;j++){var P=T(j),N=P.coordDim;null==N&&(P.coordDim=g(L,d,D),P.coordDimIndex=0,(!C||I<=0)&&(P.isExtraCoord=!0),I--),E(P),null!=P.type||Object(u["b"])(t,j)!==u["a"].Must&&(!P.isExtraCoord||null==P.otherDims.itemName&&null==P.otherDims.seriesName)||(P.type="ordinal")}return f(m),new c["a"]({source:t,dimensions:m,fullDimensionCount:v,dimensionOmitted:y})}function f(t){for(var e=Object(a["f"])(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function p(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Object(a["k"])(e,(function(t){var e;Object(a["A"])(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}function g(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){var r=0;while(i.hasOwnProperty(t+r))r++;t+=r}return e.set(t,!0),t}},b362:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("4a3f"),r=n("6d8b"),a=/cubic-bezier\(([0-9,\.e ]+)\)/;function o(t){var e=t&&a.exec(t);if(e){var n=e[1].split(","),o=+Object(r["T"])(n[0]),s=+Object(r["T"])(n[1]),l=+Object(r["T"])(n[2]),u=+Object(r["T"])(n[3]);if(isNaN(o+s+l+u))return;var c=[];return function(t){return t<=0?0:t>=1?1:Object(i["f"])(0,o,l,1,t,c)&&Object(i["a"])(0,s,u,1,c[0])}}}},b3c1:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var i=Math.round(9*Math.random()),r="function"===typeof Object.defineProperty,a=function(){function t(){this._id="__ec_inner_"+i++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return r?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype["delete"]=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),o=a,s=n("d51b"),l=n("6d8b"),u=n("3842"),c=n("a15a"),h=n("5210"),d=n("726e"),f=new o,p=new s["a"](100),g=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function m(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&f["delete"](t);var a=f.get(t);if(a)return a;var o=Object(l["i"])(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return m(s),s.rotation=o.rotation,s.scaleX=s.scaleY=r?1:1/n,f.set(t,s),t.dirty=!1,s;function m(t){for(var e,a=[n],s=!0,f=0;f<g.length;++f){var m=o[g[f]];if(null!=m&&!Object(l["t"])(m)&&!Object(l["C"])(m)&&!Object(l["z"])(m)&&"boolean"!==typeof m){s=!1;break}a.push(m)}if(s){e=a.join(",")+(r?"-svg":"");var w=p.get(e);w&&(r?t.svgElement=w:t.image=w)}var O,S=y(o.dashArrayX),T=_(o.dashArrayY),M=v(o.symbol),A=b(S),C=x(T),I=!r&&d["d"].createCanvas(),D=r&&{tag:"g",attrs:{},key:"dcl",children:[]},L=E();function E(){for(var t=1,e=0,n=A.length;e<n;++e)t=Object(u["d"])(t,A[e]);var i=1;for(e=0,n=M.length;e<n;++e)i=Object(u["d"])(i,M[e].length);t*=i;var r=C*A.length*M.length;return{width:Math.max(1,Math.min(t,o.maxTileWidth)),height:Math.max(1,Math.min(r,o.maxTileHeight))}}function j(){O&&(O.clearRect(0,0,I.width,I.height),o.backgroundColor&&(O.fillStyle=o.backgroundColor,O.fillRect(0,0,I.width,I.height)));for(var t=0,e=0;e<T.length;++e)t+=T[e];if(!(t<=0)){var a=-C,s=0,l=0,u=0;while(a<L.height){if(s%2===0){var d=l/2%M.length,f=0,p=0,g=0;while(f<2*L.width){var m=0;for(e=0;e<S[u].length;++e)m+=S[u][e];if(m<=0)break;if(p%2===0){var v=.5*(1-o.symbolSize),y=f+S[u][p]*v,_=a+T[s]*v,b=S[u][p]*o.symbolSize,x=T[s]*o.symbolSize,w=g/2%M[d].length;A(y,_,b,x,M[d][w])}f+=S[u][p],++g,++p,p===S[u].length&&(p=0)}++u,u===S.length&&(u=0)}a+=T[s],++l,++s,s===T.length&&(s=0)}}function A(t,e,a,s,l){var u=r?1:n,d=Object(c["a"])(l,t*u,e*u,a*u,s*u,o.color,o.symbolKeepAspect);if(r){var f=i.painter.renderOneToVNode(d);f&&D.children.push(f)}else Object(h["b"])(O,d)}}I&&(I.width=L.width*n,I.height=L.height*n,O=I.getContext("2d")),j(),s&&p.put(e,I||D),t.image=I,t.svgElement=D,t.svgWidth=L.width,t.svgHeight=L.height}}function v(t){if(!t||0===t.length)return[["rect"]];if(Object(l["C"])(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Object(l["C"])(t[n])){e=!1;break}if(e)return v([t]);var i=[];for(n=0;n<t.length;++n)Object(l["C"])(t[n])?i.push([t[n]]):i.push(t[n]);return i}function y(t){if(!t||0===t.length)return[[0,0]];if(Object(l["z"])(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,i=0;i<t.length;++i)if(!Object(l["z"])(t[i])){n=!1;break}if(n)return y([t]);var r=[];for(i=0;i<t.length;++i)if(Object(l["z"])(t[i])){e=Math.ceil(t[i]);r.push([e,e])}else{e=Object(l["H"])(t[i],(function(t){return Math.ceil(t)}));e.length%2===1?r.push(e.concat(e)):r.push(e)}return r}function _(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if(Object(l["z"])(t)){var e=Math.ceil(t);return[e,e]}var n=Object(l["H"])(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}function b(t){return Object(l["H"])(t,(function(t){return x(t)}))}function x(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}},b476:function(t,e,n){},b682:function(t,e,n){"use strict";var i,r,a,o,s,l,u,c=n("6d8b"),h=n("4319"),d=n("80f0"),f=n("2b17"),p=n("2f45"),g=n("cd70"),m=n("07fd"),v=n("e0d3"),y=n("861c"),_=n("ec6f"),b=n("d0ce"),x=n("80b9"),w=c["A"],O=c["H"],S="undefined"===typeof Int32Array?Array:Int32Array,T="e\0\0",M=-1,A=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],C=["_approximateExtent"],I=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;Object(x["d"])(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},a=[],o={},s=!1,l={},u=0;u<n.length;u++){var h=n[u],d=c["C"](h)?new g["a"]({name:h}):h instanceof g["a"]?h:new g["a"](h),f=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),r[f]=d,null!=l[f]&&(s=!0),d.createInvertedIndices&&(o[f]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),i&&(d.storeDimIndex=u)}if(this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=c["f"]();c["k"](a,(function(t){m.set(r[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(c["z"](t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof b["b"]&&(i=t),!i){var a=this.dimensions,o=Object(_["e"])(t)||c["u"](t)?new f["a"](t,a.length):t;i=new b["b"];var s=O(a,(function(t){return{type:r._dimInfos[t].type,property:t}}));i.initData(o,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Object(p["b"])(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,r=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=i;o<r;o++){var s=o-i;this._nameList[o]=e[s],a&&u(this,o)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==m["g"]&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=r.getSource().sourceFormat,l=s===m["f"];if(l&&!r.pure)for(var c=[],h=t;h<e;h++){var d=r.getItem(h,c);if(!this.hasItemOption&&Object(v["m"])(d)&&(this.hasItemOption=!0),d){var f=d.name;null==a[h]&&null!=f&&(a[h]=Object(v["e"])(f,null));var p=d.id;null==o[h]&&null!=p&&(o[h]=Object(v["e"])(p,null))}}if(this._shouldMakeIdFromName())for(h=t;h<e;h++)u(this,h);i(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){w(t)?c["m"](this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=a(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return r(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return c["t"](t)?i.getValues(O(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var i=n[e];return null==i||isNaN(i)?M:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){c["w"](t)&&(n=e,e=t,t=[]);var i=n||this,r=O(o(t),this._getStoreDimIndex,this);this._store.each(r,i?c["c"](e,i):e)},t.prototype.filterSelf=function(t,e,n){c["w"](t)&&(n=e,e=t,t=[]);var i=n||this,r=O(o(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?c["c"](e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=c["F"](t),r=[];return c["k"](i,(function(i){var a=e._getStoreDimIndex(i);n[a]=t[i],r.push(a)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){c["w"](t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,a=O(o(t),this._getStoreDimIndex,this),s=l(this);return s._store=this._store.map(a,r?c["c"](e,r):e),s},t.prototype.modify=function(t,e,n,i){var r=n||i||this;var a=O(o(t),this._getStoreDimIndex,this);this._store.modify(a,r?c["c"](e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=l(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=l(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new h["a"](n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new d["a"](t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return r(t,e)}),(function(t){return r(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},w(t)?c["m"](this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),c["t"](r)?r=r.slice():w(r)&&(r=c["m"]({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,w(e)?c["m"](i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){w(t)?c["m"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?c["m"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Object(y["b"])(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){c["k"](this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:O(this.dimensions,this._getDimInfo,this),this.hostModel)),s(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];c["w"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(c["S"](arguments)))})},t.internalField=function(){i=function(t){var e=t._invertedIndicesMap;c["k"](e,(function(n,i){var r=t._dimInfos[i],a=r.ordinalMeta,o=t._store;if(a){n=e[i]=new S(a.categories.length);for(var s=0;s<n.length;s++)n[s]=M;for(s=0;s<o.count();s++)n[o.get(r.storeDimIndex,s)]=s}}))},a=function(t,e,n){return Object(v["e"])(t._getCategory(e,n),null)},r=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=a(t,t._idDimIdx,e)),null==n&&(n=T+e),n},o=function(t){return c["t"](t)||(t=null!=t?[t]:[]),t},l=function(e){var n=new t(e._schema?e._schema:O(e.dimensions,e._getDimInfo,e),e.hostModel);return s(n,e),n},s=function(t,e){c["k"](A.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,c["k"](C,(function(n){t[n]=c["d"](e[n])})),t._calculationInfo=c["m"]({},e._calculationInfo)},u=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=i[e];if(null==s&&null!=r&&(n[e]=s=a(t,r,e)),null==l&&null!=o&&(i[e]=l=a(t,o,e)),null==l&&null!=s){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[e]=l}}}(),t}();e["a"]=I},b7d9:function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return f}));var i=n("3842"),r=n("6d8b"),a=n("edae");function o(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(r["z"])(t)||null==t||"-"===t||(t=+Object(i["o"])(t)),null==t||""===t?NaN:+t)}var s=Object(r["f"])({number:function(t){return parseFloat(t)},time:function(t){return+Object(i["o"])(t)},trim:function(t){return Object(r["C"])(t)?Object(r["T"])(t):t}});function l(t){return s.get(t)}var u={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},c=function(){function t(t,e){if(!Object(r["z"])(e)){var n="";0,Object(a["c"])(n)}this._opFn=u[t],this._rvalFloat=Object(i["n"])(e)}return t.prototype.evaluate=function(t){return Object(r["z"])(t)?this._opFn(t,this._rvalFloat):this._opFn(Object(i["n"])(t),this._rvalFloat)},t}(),h=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(r["z"])(t)?t:Object(i["n"])(t),a=Object(r["z"])(e)?e:Object(i["n"])(e),o=isNaN(n),s=isNaN(a);if(o&&(n=this._incomparable),s&&(a=this._incomparable),o&&s){var l=Object(r["C"])(t),u=Object(r["C"])(e);l&&(n=u?t:0),u&&(a=l?e:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},t}(),d=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Object(i["n"])(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Object(i["n"])(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function f(t,e){return"eq"===t||"ne"===t?new d("eq"===t,e):Object(r["q"])(u,t)?new c(t,e):null}},b932:function(t,e,n){"use strict";var i=n("7a23"),r=(n("caad"),n("986e"));function a(t){let e=this;e.mMap=t,e._self={},e._CustomDraw=null,e.polygonGeo=null,e.idsBox={},e.isCheck=!1,a.prototype.setMapCenter=(e,n)=>{t.mapboxGLMap.setCenter(e),t.mapboxGLMap.setZoom(n)},a.prototype.showPoint=n=>{let{coords:i,icon:r,flag:a,iconH:o}=n;if(!i)return;e._self[a]||(e._self[a]=[]);let s=i.map((t,e)=>{let n=t.kfdMc||t.wzBc||t.gajgmc||t.xm||t.jczmc,i={position:[t.jd,t.wd],userData:{deviceSn:"text"+e,area:n},id:t.id,text:n,data:t};if(t.jd&&t.wd)return i});const l=t.createdPoint(s,{image:r,scale:1,highlightImage:o||r,labelOption:{pixelOffset:[0,-2],allShow:!1,fontSize:"18px",fontWeight:600,fontColor:"#000000"}});e._self[a].push(l),l.addEventListener("click",t=>{let n=t.data?JSON.parse(t.data):{};e.openInfoDetail(a,[n])})},a.prototype.makerSki=n=>{let{coords:i,icon:r,flag:a,showTitle:o}=n;i&&(e._self[a]||(e._self[a]=[]),e.idsBox[a]||(e.idsBox[a]=[]),"rx"==a?e.handlePolice(i,r,a,o):i.forEach(n=>{let i=document.createElement("img");i.src=n.icon||r,i.style.width="kfd"==a?"32px":"25px",a.includes("jczMap_")&&(i.style.width="45px"),o&&e.makerShowTitle(n,[n.jd,n.wd],a);const s=t.Marker(i,[n.jd,n.wd],{anchor:"bottom",offset:[0,0]});i.addEventListener("click",()=>{e.openInfoDetail(a,n)}),e._self[a].push(s),e.idsBox[a].push(n.id)}))},a.prototype.handlePolice=(i,r,a,o)=>{i.forEach(i=>{let r=document.createElement("img"),s=n("dab1");switch(i.lx){case"01":s=n("0bb9");break;case"02":s=n("14c9");break;case"03":s=n("7729");break;default:s=n("0bb9");break}1==i.zzlx&&(s=n("dd70"));let l=i.cllx?i.cllx.split(","):[];(l.includes("03")||l.includes("04"))&&"02"==i.lx&&(s=n("157b")),(l.includes("03")||l.includes("04"))&&"01"==i.lx&&(s=n("5749")),(l.includes("08")||l.includes("06"))&&(s=n("e88d")),r.src=s;let u=l.includes("03")||l.includes("08");o&&e.makerShowTitle(i,[i.jd,i.wd],a),e.shouIcon(i,[i.jd,i.wd]);let c=u?[-10,0]:[0,0];l.includes("08")&&(c=[-12,-10]);const h=t.Marker(r,[i.jd,i.wd],{anchor:"bottom",offset:c});r.addEventListener("click",()=>{e.openInfoDetail(a,i)}),e._self[a].push(h),e.idsBox[a].push(i.id)})},a.prototype.makerShowTitle=(n,i,r,a)=>{let o="rx"==r?"rxTitle":"Title",s=r+o;e._self[s]||(e._self[s]=[]);let l=n.jzMc?n.jzMc:n.fzrXm+"警组";"sbwz_car"!=r&&"sbwz_sb"!=r&&"sbwz_zfjly"!=r||(l=n.sbmc),"gapText"==r&&(l=a);const u=document.createElement("div");u.className="makerTitle","sbwz_car"!=r&&"sbwz_sb"!=r&&"sbwz_zfjly"!=r||(u.className="makerTitlezb"),"rx"==r&&("0"==n.xfzt?u.classList.add("makerTitleLine"):"1"==n.xfzt?u.classList.add("makerTitlecj"):u.classList.add("makerTitleUnLine")),"gapText"==r&&(u.className="makerTitleGapText"),u.innerHTML=l;const c=t.Marker(u,i,{anchor:"bottom",offset:[0,-50]});e._self[s].push(c)},a.prototype.shouIcon=(i,r)=>{e._self.gpsZb||(e._self.gpsZb=[]);var a=n("bb77"),o=n("d8f9"),s=n("92c1");let l="string"==typeof i.jyqx?JSON.parse(i.jyqx):i.jyqx?i.jyqx:[],u="string"==typeof i.txzb?JSON.parse(i.txzb):i.txzb?i.txzb:[],c="string"==typeof i.pbcl?JSON.parse(i.pbcl):i.pbcl?i.pbcl:[],h=[],d=!!(c&&c.length>0),f=!!(u&&u.length>0),p=!!(l&&l.length>0);if(f){let e=document.createElement("img");e.style.width="15px",e.src=o;const n=t.Marker(e,r,{anchor:"bottom",offset:[20,-26]});h.push(n)}if(p){let e=document.createElement("img");e.style.width="15px",e.src=a;const n=t.Marker(e,r,{anchor:"bottom",offset:[20,-10]});h.push(n)}if(d){let e=document.createElement("img");e.style.width="20px",e.src=s;const n=t.Marker(e,r,{anchor:"bottom",offset:[20,2]});h.push(n)}e._self.gpsZb[i.id]=h},a.prototype.zdySquire=n=>{let{points:i,flag:r,distance:a}=n;e._self[r]||(e._self[r]=[]);let o="距离:"+a;const s=document.createElement("div");s.className="makerTitle","distance"==r&&(s.className="makerTitleDistance"),s.innerHTML=o;const l=t.Marker(s,i,{anchor:"bottom",offset:[0,-76]});e._self[r].push(l)},a.prototype.diffusionCircle=n=>{let{coords:i,flag:r,isClear:a}=n;e._self[r]||(e._self[r]={}),a&&e._self[r].destroy();let o=[{position:i}];e._self[r]=t.DiffuseCircle(o,{radius:10,color:"rgba(81,217,254)",duration:30,speed:4})},a.prototype.aggregateScatteringPoint=n=>{let{coords:i,icon:r,flag:a,isclear:o,scale:s,fontColor:l}=n,u=i.map(t=>(t.lng=t.jd,t.lat=t.wd,t));e._self[a]||(e._self[a]=[]),o&&e.removeElement(a);let c=t.clusterLayer(u,{id:a,size:18,pixelRange:60,gradient:{1:r,10:r,100:r,1e3:r},fontSize:14,fontColor:l||"#001022",style:"custom",image:r,scale:s||1,fontFamily:["Microsoft YaHei"]});e._self[a].push(c),c.addEventListener("click",t=>{e.openInfoDetail(a,[t])}),c.addEventListener("clusterClick",t=>{e.openInfoDetail(a,t)})},a.prototype.showHeatDrawing=n=>{let{coords:i,flag:r,isclear:a,color:o}=n;e._self[r]||(e._self[r]=[]),a&&e.removeElement(r);let s={type:"FeatureCollection",features:[]};for(let t=0;t<i.length;t++){const e=i[t];let n=e.lng||e.jd,r=e.lat||e.wd,a=e.count<=10?1.4:e.count>10&&e.count<=50?1.6:1.9,o={properties:{mag:a},type:"Feature",geometry:{type:"Point",coordinates:[n,r,.1]}};s.features.push(o)}let l={0:"rgba(23,102,172,0)",.5:"rgb(209,229,240)",1:"rgb(178,24,43)"};o&&(l={0:o[0],.5:o[1],1:o[2]});let u=t.HeatMap(s,{colors:l});e._self[r].push(u)},a.prototype.removeAll=()=>{for(let t in e._self)if("rx"!=t&&"gpsZb"!=t&&!t.includes("rxTitle")){let n=e._self[t];for(let t=0;t<n.length;t++){const e=n[t];e&&"object"==typeof e&&e.destroy()}e._self[t]=[]}},a.prototype.removeElement=t=>{if("gpsZb"==t)for(let n in e._self.gpsZb){let t=e._self.gpsZb[n];if(t&&t.length>0){for(let e in t)t[e].destroy();e._self.gpsZb[n]=[]}}if("rx"==t&&(e.idsBox[t]=[]),!e._self[t])return!1;if("gpsZb"!==t){for(let r=0;r<e._self[t].length;r++){const n=e._self[t][r];n.destroy()}e._self[t]=[];let n="rx"==t?"rxTitle":"Title",i=t+n;if(!e._self[i])return!1;for(let t=0;t<e._self[i].length;t++){const n=e._self[i][t];n.destroy()}e._self[i]=[]}},a.prototype.removeElementOne=(t,n)=>{if(!e.idsBox[t])return!1;let i=e.idsBox[t];i.forEach((i,r)=>{if(i==n&&(e.idsBox[t].splice(r,1),e._self[t][r]&&e._self[t][r].destroy(),e._self[t].splice(r,1),"rx"==t)){let i=t+"rxTitle";e._self[i][r]&&e._self[i][r].destroy(),e._self[i].splice(r,1),e.removeGpsZbOverlayById(n)}})},a.prototype.removeGpsZbOverlayById=t=>{if(e._self.gpsZb[t])try{let n=e._self.gpsZb[t];n&&(n.forEach(t=>{t.destroy()}),delete e._self.gpsZb[t])}catch(n){}},a.prototype.Drawplot=n=>{const{point:i,line:r,polygon:a,circle:o,rectangle:s,geoJson:l,remove:u,enableEdit:c}=t.draw({lineWidth:2,lineColor:"rgba(233,168,32,1)",fillColor:"rgba(233,168,32,0.5)",color:"rgba(233,168,32,1)",pixelSzie:0});e._CustomDraw={point:i,line:r,polygon:a,circle:o,rectangle:s,geoJson:l,remove:u,enableEdit:c}},a.prototype.plot=(t,n)=>{let{flag:i,color:r,linecolor:a,type:o,coords:s}=t;switch(e._self[i]||(e._self[i]=[]),t.isclear&&e.removePlot(i),!t.isclear||"polygon"!=t.type&&"line"!=t.type||e.removeEara(i),o){case"point":e._CustomDraw.point(t=>{e.handlePlot(t,o,i,n)});break;case"rectangle":e._CustomDraw.rectangle(t=>{e.handlePlot(t,o,i,n)});break;case"circle":e._CustomDraw.circle(t=>{e.handlePlot(t,o,i,n)});break;case"polygon":e._CustomDraw.polygon(t=>{e.handlePlot(t,o,i,n)},{fillColor:r||"rgba(233,168,32,0.5)",lineColor:a||"rgba(233,168,32,1)"});break;case"line":e._CustomDraw.line(t=>{e.handlePlot(t,o,i,n)});break;case"geoJson":let t={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Polygon",coordinates:s},id:i,properties:{fillColor:r||"rgba(233,168,32,1)",lineColor:a||"rgba(233,168,32,1)"}}]};e._CustomDraw.geoJson(t,t=>{e.handlePlot(t,o,i,n)});break}},a.prototype.handlePlot=(t,n,i,r)=>{e._self[i].push(t.id);let a=t.positionData;r(a,n,i,t)},a.prototype.removePlot=t=>{if(!e._self[t])return!1;e._self[t].forEach(t=>{e._CustomDraw.remove(t)})},a.prototype.removeEara=t=>{e._CustomDraw.remove(t),e.removePlot(t)},a.prototype.createLine=n=>{let{type:i,coords:r,isclear:a,flag:o,color:s,width:l}=n;if(!r)return!1;e._self[o]||(e._self[o]=[]),a&&e.removeElement(o);let u=r.map((t,e)=>({position:t.coords[0],text:"",id:e,userData:{name:t.text}})),c=t.createLine(u,{color:s||"rgba(20, 237, 245,1)",width:l||8,type:i,highlightColor:"red",labelOption:{pixelOffset:[0,-1],allShow:!1,type:"text",fontColor:"rgba(20, 237, 245,1)"}});e._self[o].push(c)},a.prototype.echoPlane=n=>{let{type:i,coords:a,fontColor:o,fontSize:s,text:l="",radius:u=0,isclear:c,flag:h,id:d=1,color:f,linecolor:p}=n;if(!a)return;c&&e.removeElement(h),e._self[h]||(e._self[h]=[]);let g,m=f||"rgba(29,237,245,0.6)",v=p||"rgba(29,237,245,0.6)",y={color:m,outLineColor:v,outLineWidth:2,highlightColor:"rgba(255,0,0,0.5)",labelOption:{pixelOffset:[0,0],allShow:!0,fontColor:o||"#ffffff",fontSize:s||"12px"}};if("circle"==i){let e=[{center:a,radius:u,text:l,id:d}];g=t.createCircle(e,y)}"rectangle"==i&&(g=t.createRectangle(a,y)),"polygon"==i&&(g=t.createPolygon(a,y)),e._self[h].push(g),g.addEventListener("click",t=>{"xfq"==h&&(g.highlight(t.id),r["a"].emit("showXFQinfo",t),t.id==e.lightHeight&&(e.isCheck=!e.isCheck,e.isCheck?(g.highlight(0),r["a"].emit("showXFQinfo",null)):r["a"].emit("showXFQinfo",t)),e.lightHeight=t.id),"zdxl_fzyc"==h&&r["a"].emit("showFzycInfo",{info:t,type:!0})})},a.prototype.gapText=t=>{let{points:n,text:i,flag:r}=t;e.makerShowTitle({},n,r,i)},a.prototype.displayLineAnimation=i=>{let{coords:r,isClear:a,flag:s}=i;if(!r)return;e._self[s]||(e._self[s]=[]),a&&e._self[s]&&e.removeElement(s);let l=o().slice(3,5);const u=[{position:r,text:"实线",id:l,userData:{name:"测试1"}}],c=t.trajectoryRealtime(u,{color:"#28F",width:8,image:"images/car.png",speed:80,imageWidth:20,imageHeight:40,isShowLine:!1,isAgain:!1,traveledColor:"#32b1fb"});c.start(),c.on("length",t=>{let i={flag:s};if(t&&0==t[0].percent){i.icon=n("615e");let r=t[0].position[0];i.coords=[{jd:r[0],wd:r[1]}],e.makerSki(i)}if(t&&99==t[0].percent){let r=t[0].position.length,a=t[0].position[r-1];i.coords=[{jd:a[0],wd:a[1]}],i.icon=n("bfe1"),e.makerSki(i)}}),e._self[s].push(c)},a.prototype.removeTrajectory=t=>{e._self[t]&&(e._self[t].destroy(),e._self[t]=null)},a.prototype.createBoundarys=n=>{let{data:i}=n;if(!i)return!1;e.polygonGeo&&e.removeBj(),e.polygonGeo=t.createPolygon(i,{color:"rgba(20,237,245,0.3)",outLineColor:"#cf1010",outLineWidth:6,highlightColor:"red",type:"solid",labelOption:{pixelOffset:[2,0],allShow:!1,fontColor:"#ffffff"}}),e.polygonGeo.flyTo()},a.prototype.removeBj=t=>{e.polygonGeo.destroy()},a.prototype.openInfoDetail=(t,e)=>{switch(t){case"home_yj_map":r["a"].emit("showHomeYJ",e);break}}}function o(){for(var t=[],e="0123456789abcdefghijklmnopqrstuvwxyz",n=0;n<32;n++)t[n]=e.substr(Math.floor(16*Math.random()),1);t[14]="4",t[19]=e.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23];let i=t.join("");return i}var s=n("5d2d");const l=["id"],u={key:0,class:"changeMap_box"},c={class:"zoomTargetBox"};var h={__name:"index",props:{mapid:{type:String,default:"mapDiv"},isShow:{type:Boolean,default:!1},isShowMvt:{type:Boolean,default:!1},isShowZoom:{type:Boolean,default:!1},isShowDraw:{type:Boolean,default:!1}},setup(t){const e=t,n=Object(i["ref"])(!0),o=(Object(i["ref"])(null),Object(i["ref"])(null)),h=Object(i["ref"])(6);try{Object(s["a"])("deptId")[0].deptCode}catch(m){}let d;Object(i["onMounted"])(()=>{r["a"].on("followUp",t=>{let e=document.getElementsByClassName("changeMap_box");e&&(e[0].style.right=t?"398px":"4px",e[0].style.transition="0.5s")}),d=new EliMap({id:e.mapid,crs:"EPSG:3857",style:{glyphs:"./fonts/{fontstack}/{range}.pbf",center:[94.36,29.65],zoom:10},transformRequest:t=>{if(-1!=t.indexOf("TileMatrix=")){const e=t.split("TileMatrix="),n=e[1].split("&");e[0],Number(n[0]),n[1],n[2]}}}),window.map=d,d.mapboxGLMap.on("load",()=>{d.addGaudLayer({url:"http://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}"}),h.value=d.mapboxGLMap.getZoom()}),o.value=new a(d),o.value.Drawplot(),r["a"].on("setMapCenter",t=>{o.value.setMapCenter(t.location,t.zoomLevel)}),r["a"].on("removePlot",t=>{o.value.removePlot(t)}),r["a"].on("removeAll",t=>{o.value.removeAll(t)}),r["a"].on("addPointArea",t=>{o.value.makerSki(t)}),r["a"].on("showPoint",t=>{o.value.showPoint(t)}),r["a"].on("deletePointArea",t=>{o.value.removeElement(t)}),r["a"].on("deletePointAreaOne",t=>{o.value.removeElementOne(t.flag,t.id)}),r["a"].on("showSquire",t=>{o.value.zdySquire(t)}),r["a"].on("drawShape",t=>{o.value.plot(t,f)}),r["a"].on("removeEara",t=>{o.value.removeEara(t)}),r["a"].on("echoPlane",t=>{o.value.echoPlane(t)}),r["a"].on("removeEara",t=>{o.value.removeEara(t)}),r["a"].on("echoLine",t=>{o.value.createLine(t,t.flag)}),r["a"].on("setBoundarys",t=>{o.value.createBoundarys(t)}),r["a"].on("removeBj",t=>{o.value.removeBj(t)}),r["a"].on("drawLineAnimation",t=>{o.value.displayLineAnimation(t)}),r["a"].on("addPoint",t=>{o.value.aggregateScatteringPoint(t)}),r["a"].on("thermodynamicChart",t=>{o.value.showHeatDrawing(t)}),r["a"].on("diffusionCircle",t=>{o.value.diffusionCircle(t)}),r["a"].on("showGapText",t=>{o.value.gapText(t)}),r["a"].on("getCurrentCenter",t=>{let e=d.mapboxGLMap.getCenter(),n=[e.lng,e.lat];r["a"].emit("getcentercoord",n)})});const f=(t,e,n,i)=>{r["a"].emit("coordString",{coord:t,type:e,flag:n,data:i})},p=t=>{d.mapboxGLMap.setZoom(t)},g=t=>{};return Object(i["onUnmounted"])(()=>{r["a"].off("removePlot"),r["a"].off("setMapCenter"),r["a"].off("addPointArea"),r["a"].off("showPoint"),r["a"].off("deletePointArea"),r["a"].off("deletePointAreaOne"),r["a"].off("drawShape"),r["a"].off("echoPlane"),r["a"].off("removeEara"),r["a"].off("echoLine"),r["a"].off("addPoint"),r["a"].off("thermodynamicChart"),r["a"].off("drawLineAnimation"),r["a"].off("aggregateScatteringPoint"),r["a"].off("hotmap"),r["a"].off("setBoundarys"),r["a"].off("diffusionCircle"),r["a"].off("SsCircle"),r["a"].off("ClearssCircle")}),(r,a)=>{const o=Object(i["resolveComponent"])("el-switch"),s=Object(i["resolveComponent"])("el-input-number");return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],null,[Object(i["createElementVNode"])("div",{id:t.mapid,class:"map"},null,8,l),e.isShow?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",u,[Object(i["createVNode"])(o,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=t=>n.value=t),onChange:g,"active-text":"打开路况","inactive-text":"关闭路况",style:{"--el-switch-color":"#13ce66","--el-switch-off-color":"#ff4949"}},null,8,["modelValue"]),Object(i["createElementVNode"])("div",c,[Object(i["createVNode"])(s,{min:7,max:18,modelValue:h.value,"onUpdate:modelValue":a[1]||(a[1]=t=>h.value=t),step:1,"step-strictly":"",onChange:p},null,8,["modelValue"])])])):Object(i["createCommentVNode"])("",!0)],64)}}},d=(n("4747"),n("6b0d")),f=n.n(d);const p=f()(h,[["__scopeId","data-v-96008730"]]);e["a"]=p},bb77:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAQCAYAAADJViUEAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGqSURBVCiRpZNNSxtRFIafyU2ik0lmMimaqBjq58KFKy0uCmaVTVUQqSLd2n26KHRl+wcKbiWC0GWXguLCnWAtYim4aEMXLZZ8qLGINR91MpMudKYOiaD0rM5973nOOe+FK2np5FwdloAYd4+CBClJTSfz9wSdBt6boOKTeTE8y0xfgl61k9+lY0JKO9s/PrOyt8b6+S5G3bTLY6Jlqu+NfVpOvGRhaBKfVaV8ukv202u8UoSu2CCJnjEquTL71W/OaI+dRGWdmd4EAEatQkloCLmbkpAxLYOoGmF6cJx2EXZgr50MhLsdUQ/F0UNxaBtxmRR+QdgT5Ng8+wc/7hjmefwp+9kMbQHVBVjUqV37rFgwH5ng/a8NvhiHV7DikwmIVh4ENeLa7Q+/+fEDfhRaJB8AkppO1u3Lg7l3nBUsDssFctUT/piXAISFgmbofD//ymJutdGzHflqkWd7r1zaZGCM6dgTZ/1bYV0OsjW+3LBy9rQIFbfWAD/q72lml9GBh7xdz7g0T9PKO4Zr8k7+gHzupGmhYdb4eXHk0v7rY3gkSAGF+4ISpP4CnuF/V7XaAZMAAAAASUVORK5CYII="},bda7:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("6d8b"),r=n("f279");function a(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return i["k"](r,(function(t){var e=t.geometry,r=e.encodeOffsets,a=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=s(a,r,n);break;case"Polygon":o(a,r,n);break;case"MultiLineString":o(a,r,n);break;case"MultiPolygon":i["k"](a,(function(t,e){return o(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}function o(t,e,n){for(var i=0;i<t.length;i++)t[i]=s(t[i],e[i],n)}function s(t,e,n){for(var i=[],r=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=a,r=s,a=l,i.push([s/n,l/n])}return i}function l(t,e){return t=a(t),i["H"](i["n"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,a=t.geometry,o=[];switch(a.type){case"Polygon":var s=a.coordinates;o.push(new r["b"](s[0],s.slice(1)));break;case"MultiPolygon":i["k"](a.coordinates,(function(t){t[0]&&o.push(new r["b"](t[0],t.slice(1)))}));break;case"LineString":o.push(new r["a"]([a.coordinates]));break;case"MultiLineString":o.push(new r["a"](a.coordinates))}var l=new r["c"](n[e||"name"],o,n.cp);return l.properties=n,l}))}},bfe1:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAoCAYAAAALz1FrAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABVxJREFUeNq0V2tsFFUUPjP7bsHSltIa2mLREkSJoqE1WxGxQGwNJSkaXSMSpQrGqrUaiyA/NK1ATCgxRAjgo9akYmwjKA8Li0paFHy0sEaBohURLX3RIm73MTvjOXdnZmd2t91dU0/y5e59zPnuPefcc89y/xQXQLgkO0+wFucs2BQjliLsiBxECmIYcQFxDLEH4cRvvPSNJEkR+rhoJCgmxDOIGsQUiC19iI2IrUmHj/uikuCEOuBeWJiPzW7EHEhcOhAO1HdGO2jUdpBgLjYHEWnqLtLSwTBvARjuuBP43DyApGSAK0Mgnu+GwDftEPiyFSS3W1lOGzuGeu5Fom8jToIT12P/a0RG0GBmMD1aAaZlDgCzedStS39fAf8720H4rIUcojWfHfWe0/qETkQ2u40NXpMClrrNwN94c9x2CnxxCLybXgUQ/MrQD4hCJBJ4eeAphYBOYKmrT4iAxLBgEZhfWKcdIn2V9INIyBYvq2H12CokuClkjsEBGHmgFAInO9SxkSceAW/9pggi46ISRKl26CV0g5lIShDXMjNNyQJT+YO6D/3NGGiT0oCfMTNoFiSTuruCvtjbwiB2nQ3FfsXTyGZSuqS3lHxxn7qTkjLtAhAv/gHC7gawbmsE7xu1YCyaD0L7V8ClprN54dMWRmj8aH/oTqRPBoN9HgSOHlGGSukkc1W7Ftp1p/DVbwT+roUg9veBePQwCAf2guTCk1weCJplaBBMz9awMNf5p6BI2y0gkmlKj582XX9Tp+YEydZXg3FlJUjDQ2B+pY4ppjFu9hwwlZVH+IbP0+nJJZJU9tNmA7BYdIstz9cwE3F5+WB2LAfbzg+Aw8tIZiKT0al8TY06n7DNpUzSdlPJJ1cRE8CL+U0ScQUfin10sn/7FuDt88G38y0Q/7rIFJtWVzG7C4cOgNC4C4S3t4IN/aKYTfJ4dImENPYGvSyCdKlHf5v7+9RbzWVmgaWyGqzvNzPnjyy5m623bNkB1oZmnV8k3Iw2eRJJp7pzV6c+7osXM6Vmx4pQxJ09zfoUcXSywPcngJ+arftO1Ov5kczVjmDeCzgPqpeJwtezYlnImRhlhtsLwL/nYxZp1CcyPn9GWH4JgIApRiNHKHdRCP2qZGTrm7uAnzU7eA+crcDPnBW5U3S0r6mBkVHUUVAoIuz/BHybN6hdxHQlQTYhHmI7zr0OTdGAoWWNma9oE9zkDDDcEnx6pN4e8Kxaznwoy4eYIB1KKK1HsJAQf/8NvK+txXzii0lCPlMJhi6Dd121loD0rVUSJMh5v0o16/F28LyIlw/9Eo+IP7nA81wFiN2/aIerUG93xPOLGfM9bEKhhHnMuPR+MC0pBy47N+y1kjDSfsYE2sTeEtAXEO+izsejPr8oT8oVyT1Bo/tBQCUELiMT+GycmjCRpRcJn19qowhlxtWxCgkqeVopsf2HQoJqqcWobziekihDrqluSIDgnPyu90UkzDHqqBK5jUfY+mgEY5EoO6NM4I9BQPPlSmWSKAlJG6I2xppaJGgbawEfhylepyQ3yhyNb4ilIB4Syj9rRplbg6fwjwcJyT7EqbCxU0iwL56P+QRCdEeM/riQNFOaUpKK3B93EnqbXRqH9/wfJCTfye1Jli44LioinoSxNOJfNJpPogeTKtDTRbf25ljN8KfX15/f1pkjX0R6eNzKexT13RlFOZ0wEzFRO47KLxHJBY/vPFVqMtSCU6583PGaKy2cgORhV1erc3B4JbafR/mG/h1kxX0S+d9tMhWROs97/YGyjjOjpRCKvIFoE1z4X+Iwx9m0PqFaWj49fRSQ4ZFxVQnxcJ3/CjAA4YgICJjJcpQAAAAASUVORK5CYII="},bff8:function(t,e,n){},c1ff:function(t,e,n){},c7a2:function(t,e,n){"use strict";var i=n("21a10"),r=n("cbe5");function a(t,e){var n,i,r,a,o,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=i=r=a=h:h instanceof Array?1===h.length?n=i=r=a=h[0]:2===h.length?(n=r=h[0],i=a=h[1]):3===h.length?(n=h[0],i=a=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],a=h[3]):n=i=r=a=0,n+i>u&&(o=n+i,n*=u/o,i*=u/o),r+a>u&&(o=r+a,r*=u/o,a*=u/o),i+r>c&&(o=i+r,i*=c/o,r*=c/o),n+a>c&&(o=n+a,n*=c/o,a*=c/o),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+a,l+c),0!==a&&t.arc(s+a,l+c-a,a,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var o=n("9cf9"),s=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),l={},u=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,i,r,s;if(this.subPixelOptimize){var u=Object(o["c"])(l,e,this.style);n=u.x,i=u.y,r=u.width,s=u.height,u.r=e.r,e=u}else n=e.x,i=e.y,r=e.width,s=e.height;e.r?a(t,e):t.rect(n,i,r,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(r["b"]);u.prototype.type="rect";e["a"]=u},ca7c:function(t,e,n){},ca80:function(t,e,n){"use strict";var i=n("dce8"),r=[0,0],a=[0,0],o=new i["a"],s=new i["a"],l=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new i["a"];for(n=0;n<2;n++)this._axes[n]=new i["a"];t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),e)for(var u=0;u<4;u++)n[u].transform(e);i["a"].sub(r[0],n[1],n[0]),i["a"].sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(u=0;u<2;u++)this._origin[u]=r[u].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return o.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,o,s,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,o,s,r,-1)&&(n=!1,r)||r||i["a"].copy(e,n?o:s),n},t.prototype._intersectCheckOneSide=function(t,e,n,o,s,l){for(var u=!0,c=0;c<2;c++){var h=this._axes[c];if(this._getProjMinMaxOnAxis(c,t._corners,r),this._getProjMinMaxOnAxis(c,e._corners,a),r[1]<a[0]||r[0]>a[1]){if(u=!1,s)return u;var d=Math.abs(a[0]-r[1]),f=Math.abs(r[0]-a[1]);Math.min(d,f)>o.len()&&(d<f?i["a"].scale(o,h,-d*l):i["a"].scale(o,h,f*l))}else if(n){d=Math.abs(a[0]-r[1]),f=Math.abs(r[0]-a[1]);Math.min(d,f)<n.len()&&(d<f?i["a"].scale(n,h,d*l):i["a"].scale(n,h,-f*l))}}return u},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,a=e[0].dot(i)+r[t],o=a,s=a,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];o=Math.min(u,o),s=Math.max(u,s)}n[0]=o,n[1]=s},t}();e["a"]=l},cac2:function(t,e,n){"use strict";n("8567")},cb11:function(t,e,n){"use strict";var i=n("21a10"),r=n("cbe5"),a=n("9cf9"),o={},s=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),l=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,i,r,s;if(this.subPixelOptimize){var l=Object(a["b"])(o,e,this.style);n=l.x1,i=l.y1,r=l.x2,s=l.y2}else n=e.x1,i=e.y1,r=e.x2,s=e.y2;var u=e.percent;0!==u&&(t.moveTo(n,i),u<1&&(r=n*(1-u)+r*u,s=i*(1-u)+s*u),t.lineTo(r,s))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(r["b"]);l.prototype.type="line",e["a"]=l},cb94:function(t,e,n){"use strict";n("0d20")},cbe5:function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var i=n("21a10"),r=n("19eb"),a=n("20c8"),o=n("9680"),s=n("4a3f");function l(t,e,n,i,r,a,o,l,u,c,h){if(0===u)return!1;var d=u;if(h>e+d&&h>i+d&&h>a+d&&h>l+d||h<e-d&&h<i-d&&h<a-d&&h<l-d||c>t+d&&c>n+d&&c>r+d&&c>o+d||c<t-d&&c<n-d&&c<r-d&&c<o-d)return!1;var f=s["e"](t,e,n,i,r,a,o,l,c,h,null);return f<=d/2}var u=n("68ab"),c=n("857d"),h=2*Math.PI;function d(t,e,n,i,r,a,o,s,l){if(0===o)return!1;var u=o;s-=t,l-=e;var d=Math.sqrt(s*s+l*l);if(d-u>n||d+u<n)return!1;if(Math.abs(i-r)%h<1e-4)return!0;if(a){var f=i;i=Object(c["a"])(r),r=Object(c["a"])(f)}else i=Object(c["a"])(i),r=Object(c["a"])(r);i>r&&(r+=h);var p=Math.atan2(l,s);return p<0&&(p+=h),p>=i&&p<=r||p+h>=i&&p+h<=r}var f=n("8728"),p=a["a"].CMD,g=2*Math.PI,m=1e-4;function v(t,e){return Math.abs(t-e)<m}var y=[-1,-1,-1],_=[-1,-1];function b(){var t=_[0];_[0]=_[1],_[1]=t}function x(t,e,n,i,r,a,o,l,u,c){if(c>e&&c>i&&c>a&&c>l||c<e&&c<i&&c<a&&c<l)return 0;var h=s["f"](e,i,a,l,c,y);if(0===h)return 0;for(var d=0,f=-1,p=void 0,g=void 0,m=0;m<h;m++){var v=y[m],x=0===v||1===v?.5:1,w=s["a"](t,n,r,o,v);w<u||(f<0&&(f=s["c"](e,i,a,l,_),_[1]<_[0]&&f>1&&b(),p=s["a"](e,i,a,l,_[0]),f>1&&(g=s["a"](e,i,a,l,_[1]))),2===f?v<_[0]?d+=p<e?x:-x:v<_[1]?d+=g<p?x:-x:d+=l<g?x:-x:v<_[0]?d+=p<e?x:-x:d+=l<p?x:-x)}return d}function w(t,e,n,i,r,a,o,l){if(l>e&&l>i&&l>a||l<e&&l<i&&l<a)return 0;var u=s["m"](e,i,a,l,y);if(0===u)return 0;var c=s["j"](e,i,a);if(c>=0&&c<=1){for(var h=0,d=s["h"](e,i,a,c),f=0;f<u;f++){var p=0===y[f]||1===y[f]?.5:1,g=s["h"](t,n,r,y[f]);g<o||(y[f]<c?h+=d<e?p:-p:h+=a<d?p:-p)}return h}p=0===y[0]||1===y[0]?.5:1,g=s["h"](t,n,r,y[0]);return g<o?0:a<e?p:-p}function O(t,e,n,i,r,a,o,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);y[0]=-l,y[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=g-1e-4){i=0,r=g;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=g,r+=g);for(var d=0,f=0;f<2;f++){var p=y[f];if(p+t>o){var m=Math.atan2(s,p);c=a?1:-1;m<0&&(m=g+m),(m>=i&&m<=r||m+g>=i&&m+g<=r)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),d+=c)}}return d}function S(t,e,n,i,r){for(var a,s,c=t.data,h=t.len(),g=0,m=0,y=0,_=0,b=0,S=0;S<h;){var T=c[S++],M=1===S;switch(T===p.M&&S>1&&(n||(g+=Object(f["a"])(m,y,_,b,i,r))),M&&(m=c[S],y=c[S+1],_=m,b=y),T){case p.M:_=c[S++],b=c[S++],m=_,y=b;break;case p.L:if(n){if(o["a"](m,y,c[S],c[S+1],e,i,r))return!0}else g+=Object(f["a"])(m,y,c[S],c[S+1],i,r)||0;m=c[S++],y=c[S++];break;case p.C:if(n){if(l(m,y,c[S++],c[S++],c[S++],c[S++],c[S],c[S+1],e,i,r))return!0}else g+=x(m,y,c[S++],c[S++],c[S++],c[S++],c[S],c[S+1],i,r)||0;m=c[S++],y=c[S++];break;case p.Q:if(n){if(u["a"](m,y,c[S++],c[S++],c[S],c[S+1],e,i,r))return!0}else g+=w(m,y,c[S++],c[S++],c[S],c[S+1],i,r)||0;m=c[S++],y=c[S++];break;case p.A:var A=c[S++],C=c[S++],I=c[S++],D=c[S++],L=c[S++],E=c[S++];S+=1;var j=!!(1-c[S++]);a=Math.cos(L)*I+A,s=Math.sin(L)*D+C,M?(_=a,b=s):g+=Object(f["a"])(m,y,a,s,i,r);var P=(i-A)*D/I+A;if(n){if(d(A,C,D,L,L+E,j,e,P,r))return!0}else g+=O(A,C,D,L,L+E,j,P,r);m=Math.cos(L+E)*I+A,y=Math.sin(L+E)*D+C;break;case p.R:_=m=c[S++],b=y=c[S++];var N=c[S++],R=c[S++];if(a=_+N,s=b+R,n){if(o["a"](_,b,a,b,e,i,r)||o["a"](a,b,a,s,e,i,r)||o["a"](a,s,_,s,e,i,r)||o["a"](_,s,_,b,e,i,r))return!0}else g+=Object(f["a"])(a,b,a,s,i,r),g+=Object(f["a"])(_,s,_,b,i,r);break;case p.Z:if(n){if(o["a"](m,y,_,b,e,i,r))return!0}else g+=Object(f["a"])(m,y,_,b,i,r);m=_,y=b;break}}return n||v(y,b)||(g+=Object(f["a"])(m,y,_,b,i,r)||0),0!==g}function T(t,e,n){return S(t,0,!1,e,n)}function M(t,e,n,i){return S(t,e,!0,n,i)}var A=n("6d8b"),C=n("41ef"),I=n("2cf4"),D=n("4bc4"),L=n("8582"),E=Object(A["i"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},r["b"]),j={style:Object(A["i"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},r["a"].style)},P=L["a"].concat(["invisible","culling","z","z2","zlevel","parent"]),N=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var a=r.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<P.length;++s)r[P[s]]=this[P[s]];r.__dirty|=D["a"]}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Object(A["F"])(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var a=n[r],o=e[a];"style"===a?this.style?Object(A["m"])(this.style,o):this.useStyle(o):"shape"===a?Object(A["m"])(this.shape,o):t.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Object(A["C"])(t)){var e=Object(C["lum"])(t,0);return e>.5?I["a"]:e>.2?I["c"]:I["d"]}if(t)return I["d"]}return I["a"]},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(A["C"])(e)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=Object(C["lum"])(t,0)<I["b"];if(i===r)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~D["b"]},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new a["a"](!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&D["b"])&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){a.copy(t);var o=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var a=this.path;if(this.hasStroke()){var o=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),M(a,o/s,t,e)))return!0}if(this.hasFill())return T(a,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=D["b"],this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(A["m"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&D["b"])},e.prototype.createStyle=function(t){return Object(A["g"])(E,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(A["m"])({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,a,o){t.prototype._applyStateObj.call(this,e,n,i,r,a,o);var s,l=!(n&&r);if(n&&n.shape?a?r?s=n.shape:(s=Object(A["m"])({},i.shape),Object(A["m"])(s,n.shape)):(s=Object(A["m"])({},r?this.shape:i.shape),Object(A["m"])(s,n.shape)):l&&(s=i.shape),s)if(a){this.shape=Object(A["m"])({},this.shape);for(var u={},c=Object(A["F"])(s),h=0;h<c.length;h++){var d=c[h];"object"===typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},o)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var a=e[r];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return j},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return Object(i["a"])(n,e),n.prototype.getDefaultStyle=function(){return Object(A["d"])(t.style)},n.prototype.getDefaultShape=function(){return Object(A["d"])(t.shape)},n}(e);for(var r in t)"function"===typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=D["a"]|D["c"]|D["b"]}(),e}(r["c"]);e["b"]=N},cccd:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("e0d3");function r(){var t=Object(i["o"])();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,a=!!n.progressiveRender,o=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===o&&a===s)&&"reset"}}},cd70:function(t,e,n){"use strict";var i=n("6d8b"),r=function(){function t(t){this.otherDims={},null!=t&&i["m"](this,t)}return t}();e["a"]=r},cf7e:function(t,e,n){"use strict";var i=n("6d8b"),r=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return i["H"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),i["n"](this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}();e["a"]=r},d0ce:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i,r=n("6d8b"),a=n("b7d9"),o=n("ec6f"),s="undefined",l=typeof Uint32Array===s?Array:Uint32Array,u=typeof Uint16Array===s?Array:Uint16Array,c=typeof Int32Array===s?Array:Int32Array,h=typeof Float64Array===s?Array:Float64Array,d={float:h,int:c,ordinal:Array,number:Array,time:h};function f(t){return t>65535?l:u}function p(){return[1/0,-1/0]}function g(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function m(t,e,n,i,r){var a=d[n||"float"];if(r){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var v=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(r["f"])()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),s=this.defaultDimValueGetter=i[a.sourceFormat];this._dimValueGetter=n||s,this._rawExtent=[];Object(o["f"])(a);this._dimensions=Object(r["H"])(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new d[e||"float"](this._rawCount),this._rawExtent[r]=p(),r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,a=i.ordinalOffset||0,o=n.length;0===a&&(r[t]=p());for(var s=r[t],l=a;l<o;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=o,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,a=r.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var c=r[u];m(n,u,c.type,l,!0)}for(var h=[],d=s;d<l;d++)for(var f=d-s,p=0;p<a;p++){c=r[p];var g=i.arrayRows.call(this,t[f]||h,c.property,f,p);n[p][d]=g;var v=o[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Object(r["H"])(o,(function(t){return t.property})),c=0;c<s;c++){var h=o[c];l[c]||(l[c]=p()),m(a,c,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,a,l);else for(var d=[],f=t;f<e;f++){d=i.getItem(f,d);for(var g=0;g<s;g++){var v=a[g],y=this._dimValueGetter(d,u[g],f,g);v[f]=y;var _=l[g];y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var a=i.length;r<a;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,r=this.count();i<r;i++){var a=this.get(t,i);isNaN(a)||(n+=a)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;var i=0,r=this._count-1;while(i<=r){var a=(i+r)/2|0;if(e[a]<t)i=a+1;else{if(!(e[a]>t))return a;r=a-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,r=i[t],a=[];if(!r)return a;null==n&&(n=1/0);for(var o=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var h=this.getRawIndex(u),d=e-r[h],f=Math.abs(d);f<=n&&((f<o||f===o&&d>=0&&s<0)&&(o=f,s=d,l=0),d===s&&(a[l++]=u))}return a.length=l,a},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{n=f(this._rawCount);t=new n(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=f(n._rawCount),a=new r(i),o=[],s=t.length,l=0,u=t[0],c=n._chunks,h=0;h<i;h++){var d=void 0,p=n.getRawIndex(h);if(0===s)d=e(h);else if(1===s){var g=c[u][p];d=e(g,h)}else{for(var m=0;m<s;m++)o[m]=c[t[m]][p];o[m]=h,d=e.apply(null,o)}d&&(a[l++]=p)}return l<i&&(n._indices=a),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=Object(r["F"])(t),a=i.length;if(!a)return this;var o=e.count(),s=f(e._rawCount),l=new s(o),u=0,c=i[0],h=t[c][0],d=t[c][1],p=e._chunks,g=!1;if(!e._indices){var m=0;if(1===a){for(var v=p[i[0]],y=0;y<n;y++){var _=v[y];(_>=h&&_<=d||isNaN(_))&&(l[u++]=m),m++}g=!0}else if(2===a){v=p[i[0]];var b=p[i[1]],x=t[i[1]][0],w=t[i[1]][1];for(y=0;y<n;y++){_=v[y];var O=b[y];(_>=h&&_<=d||isNaN(_))&&(O>=x&&O<=w||isNaN(O))&&(l[u++]=m),m++}g=!0}}if(!g)if(1===a)for(y=0;y<o;y++){var S=e.getRawIndex(y);_=p[i[0]][S];(_>=h&&_<=d||isNaN(_))&&(l[u++]=S)}else for(y=0;y<o;y++){for(var T=!0,M=(S=e.getRawIndex(y),0);M<a;M++){var A=i[M];_=p[A][S];(_<t[A][0]||_>t[A][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],a=e.length,o=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=p();for(var c=0;c<o;c++){for(var h=t.getRawIndex(c),d=0;d<a;d++)s[d]=i[e[d]][h];s[a]=c;var f=n&&n.apply(null,s);if(null!=f){"object"!==typeof f&&(r[0]=f,f=r);for(u=0;u<f.length;u++){var g=e[u],m=f[u],v=l[g],y=i[g];y&&(y[h]=m),m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,a=this.clone([t],!0),o=a._chunks,s=o[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),d=new(f(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));d[u++]=h;for(var p=1;p<l-1;p+=c){for(var g=Math.min(p+c,l-1),m=Math.min(p+2*c,l),v=(m+g)/2,y=0,_=g;_<m;_++){var b=this.getRawIndex(_),x=s[b];isNaN(x)||(y+=x)}y/=m-g;var w=p,O=Math.min(p+c,l),S=p-1,T=s[h];n=-1,r=w;var M=-1,A=0;for(_=w;_<O;_++){b=this.getRawIndex(_),x=s[b];isNaN(x)?(A++,M<0&&(M=b)):(i=Math.abs((S-v)*(x-T)-(S-_)*(y-T)),i>n&&(n=i,r=b))}A>0&&A<O-w&&(d[u++]=Math.min(M,r),r=Math.max(M,r)),d[u++]=r,h=r}return d[u++]=this.getRawIndex(l-1),a._count=u,a._indices=d,a.getRawIndex=this._getRawIdx,a},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),a=r._chunks,o=[],s=Math.floor(1/e),l=a[t],u=this.count(),c=r._rawExtent[t]=p(),h=new(f(this._rawCount))(Math.ceil(u/s)),d=0,g=0;g<u;g+=s){s>u-g&&(s=u-g,o.length=s);for(var m=0;m<s;m++){var v=this.getRawIndex(g+m);o[m]=l[v]}var y=n(o),_=this.getRawIndex(Math.min(g+i(o,y)||0,u-1));l[_]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[d++]=_}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,a=this.count();r<a;r++){var o=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][o],r);break;case 2:e(i[t[0]][o],i[t[1]][o],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][o];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=p();if(!e)return n;var i,r=this.count(),a=!this._indices;if(a)return this._rawExtent[t].slice();if(i=this._extent[t],i)return i.slice();i=n;for(var o=i[0],s=i[1],l=0;l<r;l++){var u=this.getRawIndex(l),c=e[u];c<o&&(o=c),c>s&&(s=c)}return i=[o,s],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i=new t,a=this._chunks,o=e&&Object(r["N"])(e,(function(t,e){return t[e]=!0,t}),{});if(o)for(var s=0;s<a.length;s++)i._chunks[s]=o[s]?g(a[s]):a[s];else i._chunks=a;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Object(r["d"])(this._extent),t._rawExtent=Object(r["d"])(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Object(a["d"])(t[i],this._dimensions[i])}i={arrayRows:t,objectRows:function(t,e,n,i){return Object(a["d"])(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Object(a["d"])(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}();e["b"]=v},d409:function(t,e,n){"use strict";n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return g}));var i=n("5e76"),r=n("6d8b"),a=n("e86a"),o=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(t,e,n,i,r){if(!e)return"";var a=(t+"").split("\n");r=l(e,n,i,r);for(var o=0,s=a.length;o<s;o++)a[o]=u(a[o],r);return a.join("\n")}function l(t,e,n,i){i=i||{};var o=Object(r["m"])({},i);o.font=e,n=Object(r["P"])(n,"..."),o.maxIterations=Object(r["P"])(i.maxIterations,2);var s=o.minChar=Object(r["P"])(i.minChar,0);o.cnCharWidth=Object(a["f"])("国",e);var l=o.ascCharWidth=Object(a["f"])("a",e);o.placeholder=Object(r["P"])(i.placeholder,"");for(var u=t=Math.max(0,t-1),c=0;c<s&&u>=l;c++)u-=l;var h=Object(a["f"])(n,e);return h>u&&(n="",h=0),u=t-h,o.ellipsis=n,o.ellipsisWidth=h,o.contentWidth=u,o.containerWidth=t,o}function u(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Object(a["f"])(t,i);if(o<=n)return t;for(var s=0;;s++){if(o<=r||s>=e.maxIterations){t+=e.ellipsis;break}var l=0===s?c(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,l),o=Object(a["f"])(t,i)}return""===t&&(t=e.placeholder),t}function c(t,e,n,i){for(var r=0,a=0,o=t.length;a<o&&r<e;a++){var s=t.charCodeAt(a);r+=0<=s&&s<=127?n:i}return a}function h(t,e){null!=t&&(t+="");var n,i=e.overflow,o=e.padding,s=e.font,c="truncate"===i,h=Object(a["e"])(s),d=Object(r["P"])(e.lineHeight,h),f=!!e.backgroundColor,p="truncate"===e.lineOverflow,g=e.width;n=null==g||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?b(t,e.font,g,"breakAll"===i,0).lines:[];var m=n.length*d,v=Object(r["P"])(e.height,m);if(m>v&&p){var y=Math.floor(v/d);n=n.slice(0,y)}if(t&&c&&null!=g)for(var _=l(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x=0;x<n.length;x++)n[x]=u(n[x],_);var w=v,O=0;for(x=0;x<n.length;x++)O=Math.max(Object(a["f"])(n[x],s),O);null==g&&(g=O);var S=O;return o&&(w+=o[0]+o[2],S+=o[1]+o[3],g+=o[1]+o[3]),f&&(S=g),{lines:n,height:v,outerWidth:S,outerHeight:w,lineHeight:d,calculatedLineHeight:h,contentWidth:O,contentHeight:m,width:g}}var d=function(){function t(){}return t}(),f=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),p=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function g(t,e){var n=new p;if(null!=t&&(t+=""),!t)return n;var l,u=e.width,c=e.height,h=e.overflow,d="break"!==h&&"breakAll"!==h||null==u?null:{width:u,accumWidth:0,breakAll:"breakAll"===h},f=o.lastIndex=0;while(null!=(l=o.exec(t))){var g=l.index;g>f&&m(n,t.substring(f,g),e,d),m(n,l[2],e,d,l[1]),f=o.lastIndex}f<t.length&&m(n,t.substring(f,t.length),e,d);var v=[],y=0,_=0,b=e.padding,x="truncate"===h,w="truncate"===e.lineOverflow;function O(t,e,n){t.width=e,t.lineHeight=n,y+=n,_=Math.max(_,e)}t:for(var S=0;S<n.lines.length;S++){for(var T=n.lines[S],M=0,A=0,C=0;C<T.tokens.length;C++){var I=T.tokens[C],D=I.styleName&&e.rich[I.styleName]||{},L=I.textPadding=D.padding,E=L?L[1]+L[3]:0,j=I.font=D.font||e.font;I.contentHeight=Object(a["e"])(j);var P=Object(r["P"])(D.height,I.contentHeight);if(I.innerHeight=P,L&&(P+=L[0]+L[2]),I.height=P,I.lineHeight=Object(r["Q"])(D.lineHeight,e.lineHeight,P),I.align=D&&D.align||e.align,I.verticalAlign=D&&D.verticalAlign||"middle",w&&null!=c&&y+I.lineHeight>c){C>0?(T.tokens=T.tokens.slice(0,C),O(T,A,M),n.lines=n.lines.slice(0,S+1)):n.lines=n.lines.slice(0,S);break t}var N=D.width,R=null==N||"auto"===N;if("string"===typeof N&&"%"===N.charAt(N.length-1))I.percentWidth=N,v.push(I),I.contentWidth=Object(a["f"])(I.text,j);else{if(R){var k=D.backgroundColor,B=k&&k.image;B&&(B=i["b"](B),i["c"](B)&&(I.width=Math.max(I.width,B.width*P/B.height)))}var z=x&&null!=u?u-A:null;null!=z&&z<I.width?!R||z<E?(I.text="",I.width=I.contentWidth=0):(I.text=s(I.text,z-E,j,e.ellipsis,{minChar:e.truncateMinChar}),I.width=I.contentWidth=Object(a["f"])(I.text,j)):I.contentWidth=Object(a["f"])(I.text,j)}I.width+=E,A+=I.width,D&&(M=Math.max(M,I.lineHeight))}O(T,A,M)}n.outerWidth=n.width=Object(r["P"])(u,_),n.outerHeight=n.height=Object(r["P"])(c,y),n.contentHeight=y,n.contentWidth=_,b&&(n.outerWidth+=b[1]+b[3],n.outerHeight+=b[0]+b[2]);for(S=0;S<v.length;S++){I=v[S];var V=I.percentWidth;I.width=parseInt(V,10)/100*n.width}return n}function m(t,e,n,i,r){var o,s,l=""===e,u=r&&n.rich[r]||{},c=t.lines,h=u.font||n.font,p=!1;if(i){var g=u.padding,m=g?g[1]+g[3]:0;if(null!=u.width&&"auto"!==u.width){var v=Object(a["g"])(u.width,i.width)+m;c.length>0&&v+i.accumWidth>i.width&&(o=e.split("\n"),p=!0),i.accumWidth=v}else{var y=b(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+m,s=y.linesWidths,o=y.lines}}else o=e.split("\n");for(var _=0;_<o.length;_++){var x=o[_],w=new d;if(w.styleName=r,w.text=x,w.isLineHolder=!x&&!l,"number"===typeof u.width?w.width=u.width:w.width=s?s[_]:Object(a["f"])(x,h),_||p)c.push(new f([w]));else{var O=(c[c.length-1]||(c[0]=new f)).tokens,S=O.length;1===S&&O[0].isLineHolder?O[0]=w:(x||!S||l)&&O.push(w)}}}function v(t){var e=t.charCodeAt(0);return e>=33&&e<=383}var y=Object(r["N"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function _(t){return!v(t)||!!y[t]}function b(t,e,n,i,r){for(var o=[],s=[],l="",u="",c=0,h=0,d=0;d<t.length;d++){var f=t.charAt(d);if("\n"!==f){var p=Object(a["f"])(f,e),g=!i&&!_(f);(o.length?h+p>n:r+h+p>n)?h?(l||u)&&(g?(l||(l=u,u="",c=0,h=c),o.push(l),s.push(h-c),u+=f,c+=p,l="",h=c):(u&&(l+=u,u="",c=0),o.push(l),s.push(h),l=f,h=p)):g?(o.push(u),s.push(c),u=f,c=p):(o.push(f),s.push(p)):(h+=p,g?(u+=f,c+=p):(u&&(l+=u,u="",c=0),l+=f))}else u&&(l+=u,h+=c),o.push(l),s.push(h),l="",u="",c=0,h=0}return o.length||l||(l=t,u="",c=0),u&&(l+=u),l&&(o.push(l),s.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:s}}},d498:function(t,e,n){"use strict";var i=n("21a10"),r=n("cbe5"),a=n("4fac"),o=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),s=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){a["a"](t,e,!1)},e}(r["b"]);s.prototype.type="polyline",e["a"]=s},d4c6:function(t,e,n){"use strict";var i=n("21a10"),r=n("cbe5"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return Object(i["a"])(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),r["b"].prototype.getBoundingRect.call(this)},e}(r["b"]);e["a"]=a},d51b:function(t,e,n){"use strict";var i=function(){function t(t){this.value=t}return t}(),r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),a=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,a=null;if(null==r[t]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete r[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return a},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=a},d5b7:function(t,e,n){"use strict";var i=n("8582"),r=n("06ad"),a=n("9850"),o=n("6fd3"),s=n("e86a"),l=n("6d8b"),u=n("2cf4"),c=n("41ef"),h=n("4bc4"),d="__zr_normal__",f=i["a"].concat(["ignore"]),p=Object(l["N"])(i["a"],(function(t,e){return t[e]=!0,t}),{ignore:!1}),g={},m=new a["a"](0,0,0,0),v=function(){function t(t){this.id=Object(l["p"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,a=void 0,o=void 0,l=!1;r.parent=i?this:null;var u=!1;if(r.copyTransform(e),null!=n.position){var c=m;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,c):Object(s["c"])(g,n,c),r.x=g.x,r.y=g.y,a=g.align,o=g.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var f=void 0,p=void 0;"center"===d?(f=.5*c.width,p=.5*c.height):(f=Object(s["g"])(d[0],c.width),p=Object(s["g"])(d[1],c.height)),u=!0,r.originX=-r.x+f+(i?0:c.x),r.originY=-r.y+p+(i?0:c.y)}}null!=n.rotation&&(r.rotation=n.rotation);var v=n.offset;v&&(r.x+=v[0],r.y+=v[1],u||(r.originX=-v[0],r.originY=-v[1]));var y=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),b=void 0,x=void 0,w=void 0;y&&this.canBeInsideText()?(b=n.insideFill,x=n.insideStroke,null!=b&&"auto"!==b||(b=this.getInsideTextFill()),null!=x&&"auto"!==x||(x=this.getInsideTextStroke(b),w=!0)):(b=n.outsideFill,x=n.outsideStroke,null!=b&&"auto"!==b||(b=this.getOutsideFill()),null!=x&&"auto"!==x||(x=this.getOutsideStroke(b),w=!0)),b=b||"#000",b===_.fill&&x===_.stroke&&w===_.autoStroke&&a===_.align&&o===_.verticalAlign||(l=!0,_.fill=b,_.stroke=x,_.autoStroke=w,_.align=a,_.verticalAlign=o,e.setDefaultTextStyle(_)),e.__dirty|=h["a"],l&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?u["d"]:u["a"]},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(c["parse"])(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*i+(r?0:255)*(1-i);return n[3]=1,Object(c["stringify"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(l["m"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(l["A"])(t))for(var n=t,i=Object(l["F"])(n),r=0;r<i.length;r++){var a=i[r];this.attrKV(a,t[a])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==d)){var a=i.targetName,o=a?e[a]:e;i.saveTo(o)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,f)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(d,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===d,a=this.hasState();if(a||!r){var o=this.currentStates,s=this.stateTransition;if(!(Object(l["r"])(o,t)>=0)||!e&&1!==o.length){var u;if(this.stateProxy&&!r&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),u||r){r||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var f=this._textContent,p=this._textGuide;return f&&f.useState(t,e,n,c),p&&p.useState(t,e,n,c),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h["a"]),u}Object(l["G"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,a=t.length,o=a===r.length;if(o)for(var s=0;s<a;s++)if(t[s]!==r[s]){o=!1;break}if(o)return;for(s=0;s<a;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var c=i[a-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(t,e,d),m&&m.useStates(t,e,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h["a"])}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Object(l["r"])(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=Object(l["r"])(i,t),a=Object(l["r"])(i,e)>=0;r>=0?a?i.splice(r,1):i[r]=e:n&&!a&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];Object(l["m"])(n,r),r.textConfig&&(e=e||{},Object(l["m"])(e,r.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,a){var o=!(e&&i);e&&e.textConfig?(this.textConfig=Object(l["m"])({},i?this.textConfig:n.textConfig),Object(l["m"])(this.textConfig,e.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},u=!1,c=0;c<f.length;c++){var h=f[c],d=r&&p[h];e&&null!=e[h]?d?(u=!0,s[h]=e[h]):this[h]=e[h]:o&&null!=n[h]&&(d?(u=!0,s[h]=n[h]):this[h]=n[h])}if(!r)for(c=0;c<this.animators.length;c++){var g=this.animators[c],m=g.targetName;g.getLoop()||g.__changeFinalValue(m?(e||n)[m]:e||n)}u&&this._transitionState(t,s,a)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new i["c"],this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(l["m"])(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=h["a"];var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this;var a=new r["b"](i,e,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during((function(){i.updateDuringAnimation(e)})).done((function(){var e=i.animators,n=Object(l["r"])(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],a=0;a<i;a++){var o=n[a];t&&t!==o.scope?r.push(o):o.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){y(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){y(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=y(this,e,n,i),a=0;a<r.length;a++)r[a].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=h["a"];function n(t,n,i,r){function a(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){if(!this[n]){var t=this[n]=[];a(this,t)}return this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,a(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function y(t,e,n,i,r){n=n||{};var a=[];S(t,"",t,e,n,i,a,r);var o=a.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&n.during&&a[0].during((function(t,e){n.during(e)}));for(var d=0;d<a.length;d++){var f=a[d];c&&f.done(c),h&&f.aborted(h),n.force&&f.duration(n.duration),f.start(n.easing)}return a}function _(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function b(t){return Object(l["u"])(t[0])}function x(t,e,n){if(Object(l["u"])(e[n]))if(Object(l["u"])(t[n])||(t[n]=[]),Object(l["E"])(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),_(t[n],e[n],i))}else{var r=e[n],a=t[n],o=r.length;if(b(r))for(var s=r[0].length,u=0;u<o;u++)a[u]?_(a[u],r[u],s):a[u]=Array.prototype.slice.call(r[u]);else _(a,r,o);a.length=r.length}else t[n]=e[n]}function w(t,e){return t===e||Object(l["u"])(t)&&Object(l["u"])(e)&&O(t,e)}function O(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function S(t,e,n,i,a,o,s,u){for(var c=Object(l["F"])(i),h=a.duration,d=a.delay,f=a.additive,p=a.setToFinal,g=!Object(l["A"])(o),m=t.animators,v=[],y=0;y<c.length;y++){var _=c[y],b=i[_];if(null!=b&&null!=n[_]&&(g||o[_]))if(!Object(l["A"])(b)||Object(l["u"])(b)||Object(l["x"])(b))v.push(_);else{if(e){u||(n[_]=b,t.updateDuringAnimation(e));continue}S(t,_,n[_],b,a,o&&o[_],s,u)}else u||(n[_]=b,t.updateDuringAnimation(e),v.push(_))}var O=v.length;if(!f&&O)for(var T=0;T<m.length;T++){var M=m[T];if(M.targetName===e){var A=M.stopTracks(v);if(A){var C=Object(l["r"])(m,M);m.splice(C,1)}}}if(a.force||(v=Object(l["n"])(v,(function(t){return!w(i[t],n[t])})),O=v.length),O>0||a.force&&!s.length){var I=void 0,D=void 0,L=void 0;if(u){D={},p&&(I={});for(T=0;T<O;T++){_=v[T];D[_]=n[_],p?I[_]=i[_]:n[_]=i[_]}}else if(p){L={};for(T=0;T<O;T++){_=v[T];L[_]=Object(r["a"])(n[_]),x(n,i,_)}}M=new r["b"](n,!1,!1,f?Object(l["n"])(m,(function(t){return t.targetName===e})):null);M.targetName=e,a.scope&&(M.scope=a.scope),p&&I&&M.whenWithKeys(0,I,v),L&&M.whenWithKeys(0,L,v),M.whenWithKeys(null==h?500:h,u?D:i,v).delay(d||0),t.addAnimator(M,e),s.push(M)}}Object(l["K"])(v,o["a"]),Object(l["K"])(v,i["c"]),e["a"]=v},d8f9:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAQCAYAAADJViUEAAAACXBIWXMAAAsTAAALEwEAmpwYAAABm0lEQVQokY2RPUxTURiGn3O41sZ7U8sl4dpKQ4hKSsPCz+RCRJSyGCIOLA4aNSkTkMDkxAAJCTMBBhwc2IyDS8V0AQZjulEZGEgYBJZaU2vb2x+Hhqbn3ovxm77zvu9zvnznCD1hAgwCLwALYDE+3xMOhvyzOwvfcdc5sA2khZ4wp4AdQLt0373c4tnwU4yZDg8WgAowKYHlVhDg20m62cfCfV6wBqxJ4F6r6tN83LXuALAQn+Pr2z0Mv4EmNecFvUJPmPVW5dZNi+OVjJLKF/NU61WGl+7zI3emjFfqzcgrAD6kP1K0S9TqNaxAJ2OxUSYHn7Ce2mxmpRMe6h5oGEIiBLRJSb6UB2Cif9y1uFLZ31kAavUadrUCwLW2asMrZP8N324PN3shhOKFgyHl7HqwR7GHvH+9jX5dV4LlSpnpjeckD3ebmmvnz5kv/PyTc8oU7aICesKA158ihTsqAdspWoFOV9DwG07J1oADYKRVXf60SsTsUpLnvy6c8L7QE2YUSAIR17ir6xR4rAFHQBR4ANz4D7AApIDCX7p2ZcHVjP67AAAAAElFTkSuQmCC"},d9fc:function(t,e,n){"use strict";var i=n("21a10"),r=n("cbe5"),a=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),o=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(r["b"]);o.prototype.type="circle",e["a"]=o},dab1:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADBRJREFUeNrMWnl4FOUZ/83s7JndbO5jEzAEEghHAiQEiERQILYVUFsfr6q1aEF49GnFVuujfR61rWI9qm1V1IIKXijVIHIpIggkKXcggZD7IsnmTjZ7zs5+fWf2EI8/aoIbNs87Mzs78873+97r934TjjGGkXwsFdyFX98gufMH3L6eZEXbVObDCD/cSIG8/K8X8JcF92fQ4b9JrlB5BWiGdIg+kQxniR7d5W64uj3QmHWwzDIi/gYJtZYqeA1u+HgpqGYdgVk1qkDIIuNpt40kK3YoAeP3zkTPDgElZeXgIOLqpTdi1d03YkvxF3j3rbcgig5kZmdj/D0iqiYfgSt2KKjqLQJz57AHIgMZriSfxiskTJa5BzPYmoceYalpV9HMpJJE0fHlbOu2g4xJbna49BTLn7WEzptJkpRrJucWsumbx7IxJ9UsoGf9cMcybIuQJXjaKb4R0x+Pa3avxoYNe9HddpLOmJWfjFFJuP22m7CwcCpKD1dh0ztb0NlRT7+pZWcI3O7G5S+koHHBGfhUijo9WcYVNtciIAba2VWSgBn75+PQk070djbBMnYSomLM0Gn0SEyIR2JiLAZtNnR2dkP0ilCp1Oi0WtHa3AiXw00u0Y+4OC3UW9uBSCXm4wlI9w8djzCC8AjNAIuUoNN6kFdQBLNJj4I5UzAxcyxaWlpwuuI4PB4vYmN4RJpiEJ+QhNa2JIBXQ6MXYO0pQ86jFpyLsJJ9FCD20YiRDbJvjyvXs+vfXMjy5hYyY2QKe/7Fzex4eSPLzlnK/IBjA5JAkszAJ7DouDFs8c8Xs4IPJwXjQ5YNwx3LSCwCcoHl5GJ6F++8+dzEk6gt7YFHZcS56nI0NZ3DqfJSuio5EA/BkHKC89nR1y2iuXIIQhofVLdR1jcq6ZdAxNCuJ0IyYFXdbWhcX4pj5Y3o6LehnhwkggafnRqLgpxEVDV04auzVtjocTmJetgHXVjxywXo+UUCNluK4ebdskoTgRkazliEkRbU4M6gicBNP5uDRROi0OA047EPTiBW6sXfVszGvHwBzS3TcNfTZdhT24rriq7CVAuPSbnZ+LtwLBgbCGbB0bCIinZejoCMtaXhoYprMdtgo6qdiG17W2FOisWtS6noD9SCS85DSWkzzpyux9VXpgMeG152V+ODjO1wqh0KvRk11wqAWUe7lcpxfxLmd2ThGcsSSNFjIURYwJx1EG2t0KTkgxMoYzMnBmvr8ID9JeyNqYZT65Rv3Uwgbh7JOPiRkrVxKwvukXckR9uiOvBRegmeHTgMgWoeFynA7bZRVhmEo/ssOZCDeFc3/iJux47kU0EQW0juH3XSSBa5j3ZFJIWBkg4d0+GK5hysT7sXfLQOPskJXhMJsWMA91pfxy5LGbz0963PDpK3yTLvjUaMyGRxydfKOKRp02H3DoKzqVBUOhOrVXGIJOrBSRzWkovtmVuHeEsUTASs2nkOXc5eCB4NRFOIlbxPYG4JJ0V5Ve4lhD4tpNeMMDckIyfPjOfW/hp69U9w6PAGPPfPckxLuxUzhg6hNykb75ZbcVXubty3eg3MhjycrHoWDz64A31WH9wFPcAdgxC1ShqOJTC9P3qMEAg5ba+QLRDTnQieqWBNbMKBXcexo/hTRKvMmJmVj+xxg9hdXo0/HXWguNoGHVdLwDKRYJwNE9+PN1/char2OnDLbPDpRGjduuAjYsJGUYhOvHoBtWAxT/EKHZm/MJ05vJ8xifWyTR/ezZImZDFjYj7TJcxnV147nR0+tY55SUHb4FqWNTVSuWfC5rgLacrucFMUuaNbIRfDhK4UVD/RR18daKhvwaEj27BoziLMm78IDz9cgYaWdGi1QP7MOKRNyCE3GMSO7WXoaKfyT6WofU0EUool2HSyDjSGlTTSzBnlGUw5JrDpd00NkEMto7TLfvvgXLqkmnU5qtiAdzMdt5CFTrMe50bW7Wwii5SxomsylHv0MemsYPUzbNnOpcxyig9aRfih4xlJHVFSrZoyTt2Wdn+zxHHwijwO7K/B+b49iNBmUC/ixdv/eRQffroWLtEAky4VR6s+RXWtle5RQTBokTN/Bhab5svfgrrV4SyIjypPtOtgGxjwq6KZSR2XioJFE1BTfwoq1gGN1ohPinfisx0l1LNEE6FpQisx49zr05GQlQjb+bM4u2cXJkrq7+FwP3L6DbW5dKupzILqFf7Z1cRqcN2f8/DE8p/CLGYRsGiIYg16eruIuruoqZoMQTMBPHcG/xUP4fEX9+Do0/Vgbj3mLFuC9keK4dEo1d5C6bc9HBZRpo/z8eh6yR2aRFWkF5UTKvBx92kYdALN0nmI7iakJCUhITEVdlcDuV49NGoBJx1W9OVawRtp8r1DKPvoPWgqzUH9t4TLtWQ6Am27CX3llGnkskLx4XG6YPPZUDywD/uq6+HmdIiLz4XLNUTtrhNJMRmwmBPgYnH4cugURKNbcUciNYrS+IrLvqE/HP2I8iDdiRjwggc+r7+F5/UaeM1e9Hc78PwrJZibtwjTp2VSCuJh0OoRHzUWjY0d2P3Vl2i9oRsS5wOvUvl9lIbiPhfSnx0uIFPkjapNT4RQRiH6z+p4MKMP9n0S9r//Lo7sPIComEgCoYFa0CgRbO3qRI+1AanTzZCyRfjUvBJf8kQ0V3YGB5QULiBj5I2nXYBaE43C2YVwk+uU20qADgc07Ub6dQCOgXaSlu/1Zu9xLbiZVI/GxaG12aqcS55kRJf/orpwAZGnEFE+CQc/eAdjMjMVyxw7thdP1vwV7eb+QPwLyqWcQtnJWv7baPJd0BnUmNaWg3tuvwPiTVHQaw3oddViDU7LV0SHK9jlKceKwsXIn5tLQWxArFaFhVNmIS9iIqQMJzVWGhqwh0BIoWUw5ZiJCkBulh0tXd1445PdiDfoUVRYAEtEKGvpwmWRFHkzLTYL9sEBeJmEExX7MCUyAyqXBr4Uhvi0ZLTXNIUewUJ1jkGtNoCpfbBOaUOtdRDtr9nxRH8H/jBjbVD/gXABOUqyYHv7HowfnAtNRATiI+LxccX7aFK3gLIuhFRSXYOAO/kuKNjkaBoPJIFHRGs0+AVAS1YlVmadgN2gLEKUBAhpWFxLmbGt079Aa3UFKeGh0ZtQHPs5jswrp5TKQZsZVO2DVqelpCC7mk+xiCaewAkMLp0dvhv6IOb2B0F8TnIHVXVruIA8Lm+6LH34I3sM5cf34HxrDc0yDZNjkKjQ2cZ0+nMCDV6IIzoYwwUcjEE3SUWNlAQpyS03+MoqY4CWFJHUDWdAw3Itepgkt7o06JXlU6ux3PY7jKlPQk1Wc+ga0UCciRf8ViDqwjxfr71pxnDwaUOLD5GkzzbSVZRhs196uLwMNEl+WzVosqMyp44In1IY3/aHg/Q1B9OTRXSq0GJiZFwkJS5uxKuLF21di8Cce+iZO5fRYSbJXYG9R8lSDpla+2OC4y6Id9laDvHC76qLAUS4GEoe/8eqGpfornnqgQ1y/l8uQ5GaOYIg1w4VGHmRz8tCFmIediEQftQtolRGykYCTfnWo0cReIcAqYuD+4RsDD8Ynd0InVMfCnZ08OCcIUNEXhIW2V15Fi6vF19UVMoo4pSTgzTQ8xrl/aAMxt3pDpBLf1xIrTKQ0ByaLgmLnPG40UCxUFA4T2lR5E2ExoRUouxKHBNVHxjohW1oSFkxkUPC1eGFzxXyLc0lYZGcaZNDxw3Yr5BXVQxgnkJ0rJJcz2SExy0q4jcIWajfA63EX1QgI7aIXqcJSXBNymm2wV3UhdRx6Ui7/DKYJhsCaYtTrOK028ENhWLk7ksCiFoQQnLtq6vlBn69/K8ZvTPPg3+uE55l1AnamR8IsWEwOV48EM5T8PsUE/2Giqt61IF8e6Fs2bpV8gxv9Km9EDOGMOjog6vF4c9w5GYFVyxAfsE86DvN4F2qb7QFo2sRtfo7csum3//Kv5xKnSDVDB8L9lm8Uv4kasgGdkrwdYeqe/KoB/umjZu+u1hGf/rb/S/+fQJlKGqkeEENu20IR0pK6QIeKgJsdoRm0jjqQBwD3/82mSLgoJKPF0kwtgL2DQI1h8R4qe01xpkgzKYsFicGL28d6Ti4i/yPZ9/+vP5/ZKVi4mzXjxTI/wQYAGSgebTljCOLAAAAAElFTkSuQmCC"},dc92:function(t,e,n){},dce8:function(t,e,n){"use strict";var i=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();e["a"]=i},dd4f:function(t,e,n){"use strict";var i=n("21a10"),r=n("19eb"),a=n("e86a"),o=n("cbe5"),s=n("6d8b"),l=n("726e"),u=Object(s["i"])({strokeFirst:!0,font:l["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},o["a"]),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(s["g"])(u,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Object(a["d"])(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(r["c"]);c.prototype.type="tspan",e["a"]=c},dd70:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAyCAYAAACgadDsAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAACxMAAAsTAQCanBgAAAucSURBVFhHvZhpVFPXFsfTvg5rva71+trX1dfX2taBtjhbq4gCUoQ6z9YRtYooDhW1iqitVRRlKPOgIKMgCCEIIWKYtM6IIoMBmRJmQYYwhWDm/zvnQtJE4+v7Yj/81t33nHv2f+9z9r3nJCwAfzlGG181RhtfNUYbXzVGG/VRqVRv9PX1va9QKN69fevWwr3Oe+LnzZ4jsLK0LPPy9HTnpqfbFxcXTxeLxf82Nt4YOqOoqMiA0tJSVmFhIcvf39/R2dk5b/myZQ2mJl9g+LBPQa9jvzLFyM8+ZzD94kvMMJ/eetLthH9LS4uJvoAxdIZUKjWAZMZKSkpaYWtrWzth4kT1Jx99jFHDR2D86DH4esJEhgnjxmEcuacBjCaBfP7JMJhPNWsTCASW+iLPY7SRwuVyHceMHav8ZsoUbP1hAw7u3oHNa1dh4vjxMDExgfVMK1hbW8PMzAyTSADjRo/GONPRGPX5cFhbWQm7u7vfpX40Gg2Dvm+DGy1dXV3DiEPxpK+/RlbieciE5ZCJyjFQLUBJNg8/79mNqZMnE7EJMCWZ0ufGj5+AMXQWJk7EZyTjvLy8VcZ8U3RGa2srQ0dHB4vH4y0wJZFvWLuaEewWFKJriP7KUshJAMVEPNLHiwTwI7ZtsMcuRwfs2LIZY0zHYDgRjY2JcVGr1SyZTMZgVNTDw4PBx8eH5eTktGQMWS9X511QiB6jvfgeWgrvQvzoARMAvUoqSqCsrWCC6hI8hILYD7O4GDViJFNsURERB1RKJUsq6WcwKlpRUcFQU1PDSmanzBpBKvIwEdU01SMjLgq/uuyFx9HDuJ7KJtk+Ql+FACkR4aTtEH49+BNupnHQU16K+Xa2+PCDD8HjXd5K/f7fayoVd1gvnz9HvXfnTvSX8dF0wweia/6oyvZCw40gdD66jY7iHNRe+w0VWZ6ozPFG03VfKIT3cHjfPthZmKO9sW499fU/RaVPagdpFr0lzc8queR7Ai67ndF56ygklcXYtXkzbCwscZ3th9abx1Cfsw21dzIxx8YWKxcvResDPnoL/eC69wA8d2+F7E5ml7yncyr1/VLR3ubaQZpEb3dcTRM1p8Wg6e5NNN/0wdOCRNTezoQgJwW1uafR9vtFtOafR/PtcFRd56LuDh9PboWirSCW2DchTI3B04w4SNualqmIbyVUxkX1kfd2T+otvevXI7jfLiZF0nafg44HbIgfstFxPwPt13jEzkdbYRo6C0kb6Wsv5KK7rAQ9jwrQdTe7WFJXuYdU71vG/L/QQNEMXQfaW7d3FuWT6iwhFKPrUTH6Guow0N5CsniCnuoK0l402FdWDHHJPUgaapJJdm8poWGpNYYZatEZKrVKh1Jrq5TvdFcJ7nSSV4a+JpSusodErIwggHjo9WEoIRmWFbXIZc8+UxJ/cpWSpdKomQS0SbwgqqaRPQd9WKWQD5PU1+T2lj+E5HExeoiouPQ+OgndxJZUkOxJn1T0WKB6JrVU0zFk7PMYFZWBfD2eQ077lPL3Swry/RJjY1Gcy0fzvevoEdCPxAPGLsnjgx0Xj4RkzpWunt73GH9kWjUkSxAff2BEVK6UGaAkg+Rd7ealuZl1UeEROOkdgGOnfRAWFITWvDRIbvKQEBKIw24eTJ+7tz/YlzKEjyurHZVKxWuDfv9EVKGS6VCREtcM9Jj8zr3UdIHDRTz7EuKTU3EmIhZuvwUh83wUarjx8PQPhV9wOM4nsnGB9CdfykBoxHkkXcpIkMll/6R+NUzWL3llNCqyhhQNsWUD/+KnskvCYxORwr2MlPTLSM3IROi5GPgGhcPJaScszKbA0y8UvwWewUVOOjjcTOa5uIsceAacwSUen01OHW8qyfdXTvZmo6IggiCCUCnf5GdkcLyCwpDATmMcsdN4OsKi4rF85TqYfDUanj5BuJDE0T1Dr4kpaQgMi4ZXwFnczr9/jPpWkkrW6RAMbgivXbv2e5BnYBiCwmOQlMo1EKRO0zOz8d3cRWQfnYDgs1FI45FC0nvmIhlDxwaQPr/QiIHmlqczntMwFBUIyrZ7B55lIg05F0ucZBg4pASGhsPCygZfmY5HZOwFMu1XDPoH1zUWQWEx8Ak+R9aXx1eqVG/r6+gM6YD0vci4i5UkOhJlNM7FJCCVrJO+Q5ppSFgUZlhY44svxxI7kq7dC88Eh0fjhHcg/M9EEuFwTW19w1yjonV19ct8Q87hN1IoJ7z8EUyKhq5P8tAU00Kh030uJh5Tp1lipMlo+ASEIO1yloEohxQcHXvKJ5iZZuqTn3vtV6OiQqFoh29IBDO19FWgUQ5OcwzORsUhNjGFvBop8PINgqWlNf4zbCTc3D2RfiXbUJQEF52QhIAzUcx4KhwUFu1mVLSx+clUEpWSPhhM1pNeKQFDV3cSuetJb+SnxKOOvKPuu7Zin8sRcPm5L4peSIY/KSRGMDwW3gGhx42KyuWKfySkpBV4k8rVCupz5IQXjrt7o4Psqer8K2jkxWO/iyvJNOelonQcFfYOfImoUiln9fX3jyCDrniRCqbFRMtey9HTvjh6whNFSZHgh3hh45JF+MHBCRlZeS+IhkXHMzNEBekykSDcjYrKZAPMVaFU/D3vxu0TRGiAvjbhMRcQFZfErCmZCTg4bscnn47Ex4SNm7eBpydKBc+dT8Rp32AmS7pMJGNpRbVwjlaHojPk8mdk/ySfK2Z3AKtEUL6LvPjt6ZlZGh4/h3wUspBIvsGbtmzHKFK5lA2btiLr6nWmj0sKipeVA7o57PvFHQfdvHHwmAcyruQkaTW06Ay5rF+HQt7PUpNPV7Ww7qNDRz0uH/zlNHwCw3Ga7CYO2/bD4tul+MZ8HjZu2YOzkfE46RkIlyOnYO+wF/ywYDxMjkFCaJA6NDzqerWobpq+IEVnqOjuMoRaI2f1S/tY5RXVrPWb96SYz1wCmzlrsPj7LZi7eCNs59kT4RWYvXADps9chinTF5IgFmKqxWIsWroJT8uKoiFusdEX0kdnaMiep0O3AeNvDtsOVE6etgA2s9cQkfWDLFgP27nrmAC+W2APu/n2TBvtmzV3LWrqmsyoTzXdsegmMqShRe+GHin0YdrfWLdxdy3NwtpuFeYs2sA4tp23DvabnEnmjkSUiC0aCoZgM3s1KiprZtHxxs5HFJ1BT276DG6+mtc2OuzLnzxtIZOpVvRb4tj1Z4/Hy1dv66GZagWH7P66+oZRCoWcJSPFqcWoaHml8AVqRA2srbsOsa3sVjKCWlEru+81cQmpc1au21GgL2o3fx1WrHF62inueUf6TEZ+XD/TYVRUrlS9gFqtYQWdiT41beZinSB1vOR7R2FvX//bP7m6ZVvPXqUTtSYzsHr9zrt9vb2v9/X1schVh1FRw0MUhZ5r1CyJpP+DTY57C+haUWEqcuCQeyQdczbywn6LWSuYdrq2JCBZztUbawcGaHaGfyf8oaMnqqQnQC0qObOuzMeC9JWXV0w2s1qimmazBuPMFoHLyz1C2+8VPPxm0oylarNZ6zDRfDHSuHzml9qfoTMUCnISHIIcIQcPaINfp9cJdjzfA9LkXRaI3T4NNYK7rrQqe7o7P714YN5AktNksF2WQC6R/Eie/VjrkylGtZJB20bRGTQrLWryk4K0faRQKPd3S8T52SXpysNxq1D2gAP+1SCEZXtcpj//rhRxIsM5zpr20lyk5HjhhiAXPZJusUKpPEXGkyMoCZoIMxgTbevsZmgntHaIzRuedg1UiZrglrgPq32ssNJnOk6yf8HjmhaUVwvvadRqVkNLU0O5sAlZhTewJ3oTXKK3wD3ZFaWVlWho6xZ3dEs2yOQK1jOZ/CWi7e06WlqfjhPVNXpU1dQerxKKjtfWNx1rbGx1q29sOt7Q2OzX2tpuT8eIausX3b5zf2+1SBhSJapNrRQKOWVVlZya2npOtaj+Rktrm8NgUQ3uYFoMbv4qjDa+aow2vlrA+i/YU+7hegGwiAAAAABJRU5ErkJggg=="},dded:function(t,e,n){"use strict";var i=n("21a10"),r=n("42e5"),a=function(t){function e(e,n,i,r,a){var o=t.call(this,r)||this;return o.x=null==e?.5:e,o.y=null==n?.5:n,o.r=null==i?.5:i,o.type="radial",o.global=a||!1,o}return Object(i["a"])(e,t),e}(r["a"]);e["a"]=a},deab:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"h",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return h})),n.d(e,"f",(function(){return f})),n.d(e,"g",(function(){return p})),n.d(e,"b",(function(){return g}));var i=n("6d8b"),r=n("e0d3"),a=Object(r["o"])();function o(t,e,n,r,a){var o;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();o=s&&s.animation}var l=e&&e.isAnimationEnabled(),u="update"===t;if(l){var c=void 0,h=void 0,d=void 0;r?(c=Object(i["P"])(r.duration,200),h=Object(i["P"])(r.easing,"cubicOut"),d=0):(c=e.getShallow(u?"animationDurationUpdate":"animationDuration"),h=e.getShallow(u?"animationEasingUpdate":"animationEasing"),d=e.getShallow(u?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(c=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(d=o.delay)),Object(i["w"])(d)&&(d=d(n,a)),Object(i["w"])(c)&&(c=c(n));var f={duration:c||0,delay:d,easing:h};return f}return null}function s(t,e,n,r,a,s,l){var u,c=!1;Object(i["w"])(a)?(l=s,s=a,a=null):Object(i["A"])(a)&&(s=a.cb,l=a.during,c=a.isFrom,u=a.removeOpt,a=a.dataIndex);var h="leave"===t;h||e.stopAnimation("leave");var d=o(t,r,a,h?u||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,a):null);if(d&&d.duration>0){var f=d.duration,p=d.delay,g=d.easing,m={duration:f,delay:p||0,easing:g,done:s,force:!!s||!!l,setToFinal:!h,scope:t,during:l};c?e.animateFrom(n,m):e.animateTo(n,m)}else e.stopAnimation(),!c&&e.attr(n),l&&l(1),s&&s()}function l(t,e,n,i,r,a){s("update",t,e,n,i,r,a)}function u(t,e,n,i,r,a){s("enter",t,e,n,i,r,a)}function c(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("leave"===n.scope)return!0}return!1}function h(t,e,n,i,r,a){c(t)||s("leave",t,e,n,i,r,a)}function d(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),h(t,{style:{opacity:0}},e,n,i)}function f(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||d(t,e,n,i)})):d(t,e,n,i)}function p(t){a(t).oldStyle=t.style}function g(t){return a(t).oldStyle}},e0d3:function(t,e,n){"use strict";n.d(e,"r",(function(){return u})),n.d(e,"f",(function(){return c})),n.d(e,"c",(function(){return h})),n.d(e,"h",(function(){return d})),n.d(e,"m",(function(){return f})),n.d(e,"q",(function(){return p})),n.d(e,"e",(function(){return O})),n.d(e,"n",(function(){return S})),n.d(e,"l",(function(){return T})),n.d(e,"p",(function(){return M})),n.d(e,"x",(function(){return A})),n.d(e,"d",(function(){return I})),n.d(e,"u",(function(){return D})),n.d(e,"o",(function(){return L})),n.d(e,"s",(function(){return j})),n.d(e,"t",(function(){return P})),n.d(e,"b",(function(){return N})),n.d(e,"a",(function(){return R})),n.d(e,"v",(function(){return k})),n.d(e,"w",(function(){return B})),n.d(e,"g",(function(){return z})),n.d(e,"i",(function(){return V})),n.d(e,"j",(function(){return F})),n.d(e,"k",(function(){return G}));var i=n("6d8b"),r=n("22d1"),a=n("3842");function o(t,e,n){return(e-t)*n+t}var s="series\0",l="\0_ec_\0";function u(t){return t instanceof Array?t:null==t?[]:[t]}function c(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var a=n[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var h=["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 d(t){return!Object(i["A"])(t)||Object(i["t"])(t)||t instanceof Date?t:t.value}function f(t){return Object(i["A"])(t)&&!(t instanceof Array)}function p(t,e,n){var r="normalMerge"===n,a="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var s=Object(i["f"])();Object(i["k"])(e,(function(t,n){Object(i["A"])(t)||(e[n]=null)}));var l=g(t,s,n);return(r||a)&&m(l,t,s,e),r&&v(l,e),r||a?y(l,e,a):o&&_(l,e),b(l),l}function g(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var a=t[r];a&&null!=a.id&&e.set(a.id,r),i.push({existing:"replaceMerge"===n||T(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function m(t,e,n,r){Object(i["k"])(r,(function(a,o){if(a&&null!=a.id){var s=w(a.id),l=n.get(s);if(null!=l){var u=t[l];Object(i["b"])(!u.newOption,'Duplicated option on id "'+s+'".'),u.newOption=a,u.existing=e[l],r[o]=null}}}))}function v(t,e){Object(i["k"])(e,(function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var a=t[r].existing;if(!t[r].newOption&&a&&(null==a.id||null==n.id)&&!T(n)&&!T(a)&&x("name",a,n))return t[r].newOption=n,void(e[i]=null)}}))}function y(t,e,n){Object(i["k"])(e,(function(e){if(e){var i,r=0;while((i=t[r])&&(i.newOption||T(i.existing)||i.existing&&null!=e.id&&!x("id",e,i.existing)))r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}}))}function _(t,e){Object(i["k"])(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function b(t){var e=Object(i["f"])();Object(i["k"])(t,(function(t){var n=t.existing;n&&e.set(n.id,t)})),Object(i["k"])(t,(function(t){var n=t.newOption;Object(i["b"])(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),Object(i["k"])(t,(function(t,n){var r=t.existing,a=t.newOption,o=t.keyInfo;if(Object(i["A"])(a)){if(o.name=null!=a.name?w(a.name):r?r.name:s+n,r)o.id=w(r.id);else if(null!=a.id)o.id=w(a.id);else{var l=0;do{o.id="\0"+o.name+"\0"+l++}while(e.get(o.id))}e.set(o.id,t)}}))}function x(t,e,n){var i=O(e[t],null),r=O(n[t],null);return null!=i&&null!=r&&i===r}function w(t){return O(t,"")}function O(t,e){return null==t?e:Object(i["C"])(t)?t:Object(i["z"])(t)||Object(i["D"])(t)?t+"":e}function S(t){var e=t.name;return!(!e||!e.indexOf(s))}function T(t){return t&&null!=t.id&&0===w(t.id).indexOf(l)}function M(t){return l+t}function A(t,e,n){Object(i["k"])(t,(function(t){var r=t.newOption;Object(i["A"])(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=C(e,r,t.existing,n))}))}function C(t,e,n,i){var r=e.type?e.type:n?n.subType:i.determineSubType(t,e);return r}function I(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[a(n),a(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var a=O(t[i].seriesId,null);if(null==a)return;for(var o=u(t[i].dataIndex),s=n&&n[a],l=0,c=o.length;l<c;l++){var h=o[l];s&&s[h]?s[h]=null:(e[a]||(e[a]={}))[h]=1}}}function a(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=a(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function D(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(i["t"])(e.dataIndex)?Object(i["H"])(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Object(i["t"])(e.name)?Object(i["H"])(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function L(){var t="__ec_inner_"+E++;return function(e){return e[t]||(e[t]={})}}var E=Object(a["i"])();function j(t,e,n){var i=P(e,n),r=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=n?n.defaultMainType:null;return!r&&l&&a.set(l,{}),a.each((function(e,i){var r=k(t,i,e,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[i+"Models"]=r.models,s[i+"Model"]=r.models[0]})),s}function P(t,e){var n;if(Object(i["C"])(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var a=Object(i["f"])(),o={},s=!1;return Object(i["k"])(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=r[1],u=(r[2]||"").toLowerCase();if(l&&u&&!(e&&e.includeMainTypes&&Object(i["r"])(e.includeMainTypes,l)<0)){s=s||!!l;var c=a.get(l)||a.set(l,{});c[u]=t}}else o[n]=t})),{mainTypeSpecified:s,queryOptionMap:a,others:o}}var N={useDefault:!0,enableAll:!1,enableNone:!1},R={useDefault:!1,enableAll:!0,enableNone:!0};function k(t,e,n,r){r=r||N;var a=n.index,o=n.id,s=n.name,l={models:null,specified:null!=a||null!=o||null!=s};if(!l.specified){var u=void 0;return l.models=r.useDefault&&(u=t.getComponent(e))?[u]:[],l}return"none"===a||!1===a?(Object(i["b"])(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===a&&(Object(i["b"])(r.enableAll,'`"all"` is not a valid value on index option.'),a=o=s=null),l.models=t.queryComponents({mainType:e,index:a,id:o,name:s}),l)}function B(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function z(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function V(t){return"auto"===t?r["a"].domSupported?"html":"richText":t||"html"}function F(t,e){var n=Object(i["f"])(),r=[];return Object(i["k"])(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}function G(t,e,n,r,s){var l=null==e||"auto"===e;if(null==r)return r;if(Object(i["z"])(r)){var u=o(n||0,r,s);return Object(a["v"])(u,l?Math.max(Object(a["g"])(n||0),Object(a["g"])(r)):e)}if(Object(i["C"])(r))return s<1?n:r;for(var c=[],h=n,d=r,f=Math.max(h?h.length:0,d.length),p=0;p<f;++p){var g=t.getDimensionInfo(p);if(g&&"ordinal"===g.type)c[p]=(s<1&&h?h:d)[p];else{var m=h&&h[p]?h[p]:0,v=d[p];u=o(m,v,s);c[p]=Object(a["v"])(u,l?Math.max(Object(a["g"])(m),Object(a["g"])(v)):e)}}return c}},e0d8:function(t,e,n){"use strict";var i=n("625e"),r=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();i["c"](r),e["a"]=r},e263:function(t,e,n){"use strict";n.d(e,"d",(function(){return f})),n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return v})),n.d(e,"e",(function(){return y})),n.d(e,"a",(function(){return _}));var i=n("401b"),r=n("4a3f"),a=Math.min,o=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,c=i["e"](),h=i["e"](),d=i["e"]();function f(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],s=i[0],l=i[1],u=i[1],c=1;c<t.length;c++)i=t[c],r=a(r,i[0]),s=o(s,i[0]),l=a(l,i[1]),u=o(u,i[1]);e[0]=r,e[1]=l,n[0]=s,n[1]=u}}function p(t,e,n,i,r,s){r[0]=a(t,n),r[1]=a(e,i),s[0]=o(t,n),s[1]=o(e,i)}var g=[],m=[];function v(t,e,n,i,s,l,u,c,h,d){var f=r["c"],p=r["a"],v=f(t,n,s,u,g);h[0]=1/0,h[1]=1/0,d[0]=-1/0,d[1]=-1/0;for(var y=0;y<v;y++){var _=p(t,n,s,u,g[y]);h[0]=a(_,h[0]),d[0]=o(_,d[0])}v=f(e,i,l,c,m);for(y=0;y<v;y++){var b=p(e,i,l,c,m[y]);h[1]=a(b,h[1]),d[1]=o(b,d[1])}h[0]=a(t,h[0]),d[0]=o(t,d[0]),h[0]=a(u,h[0]),d[0]=o(u,d[0]),h[1]=a(e,h[1]),d[1]=o(e,d[1]),h[1]=a(c,h[1]),d[1]=o(c,d[1])}function y(t,e,n,i,s,l,u,c){var h=r["j"],d=r["h"],f=o(a(h(t,n,s),1),0),p=o(a(h(e,i,l),1),0),g=d(t,n,s,f),m=d(e,i,l,p);u[0]=a(t,s,g),u[1]=a(e,l,m),c[0]=o(t,s,g),c[1]=o(e,l,m)}function _(t,e,n,r,a,o,f,p,g){var m=i["l"],v=i["k"],y=Math.abs(a-o);if(y%u<1e-4&&y>1e-4)return p[0]=t-n,p[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(c[0]=l(a)*n+t,c[1]=s(a)*r+e,h[0]=l(o)*n+t,h[1]=s(o)*r+e,m(p,c,h),v(g,c,h),a%=u,a<0&&(a+=u),o%=u,o<0&&(o+=u),a>o&&!f?o+=u:a<o&&f&&(a+=u),f){var _=o;o=a,a=_}for(var b=0;b<o;b+=Math.PI/2)b>a&&(d[0]=l(b)*n+t,d[1]=s(b)*r+e,m(p,d,p),v(g,d,g))}},e767:function(t,e,n){"use strict";var i=n("7a23"),r=n("313e"),a=n("aa74"),o=n("22b4"),s=(n("1be7"),n("f95e")),l=n("5e81"),u=n("ee29");Object(o["a"])([s["a"],l["a"]]);function c(t,e,n){"object"==typeof e&&(n=e,e=null);var i,r=this;if(!(t instanceof Function))for(var a in i=[],t)t.hasOwnProperty(a)&&i.push(a);var o=function(e){if(r.apply(this,arguments),t instanceof Function?h(this,t.call(this,e)):d(this,t,i),this.constructor===o)for(var n=o.__initializers__,a=0;a<n.length;a++)n[a].apply(this,arguments)};o.__super__=r,r.__initializers__?o.__initializers__=r.__initializers__.slice():o.__initializers__=[],e&&o.__initializers__.push(e);var s=function(){};return s.prototype=r.prototype,o.prototype=new s,o.prototype.constructor=o,h(o.prototype,n),o.extend=r.extend,o.derive=r.extend,o}function h(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function d(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];t[r]=e[r]}}Object(o["a"])(u["a"]);var f={extend:c,derive:c};function p(t,e){this.action=t,this.context=e}var g={trigger:function(t){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(t)){var e=this.__handlers__[t],n=e.length,i=-1,r=arguments;switch(r.length){case 1:while(++i<n)e[i].action.call(e[i].context);return;case 2:while(++i<n)e[i].action.call(e[i].context,r[1]);return;case 3:while(++i<n)e[i].action.call(e[i].context,r[1],r[2]);return;case 4:while(++i<n)e[i].action.call(e[i].context,r[1],r[2],r[3]);return;case 5:while(++i<n)e[i].action.call(e[i].context,r[1],r[2],r[3],r[4]);return;default:while(++i<n)e[i].action.apply(e[i].context,Array.prototype.slice.call(r,1));return}}},on:function(t,e,n){if(t&&e){var i=this.__handlers__||(this.__handlers__={});if(i[t]){if(this.has(t,e))return}else i[t]=[];var r=new p(e,n||this);return i[t].push(r),this}},once:function(t,e,n){if(t&&e){var i=this;return this.on(t,r,n)}function r(){i.off(t,r),e.apply(this,arguments)}},before:function(t,e,n){if(t&&e)return t="before"+t,this.on(t,e,n)},after:function(t,e,n){if(t&&e)return t="after"+t,this.on(t,e,n)},success:function(t,e){return this.once("success",t,e)},error:function(t,e){return this.once("error",t,e)},off:function(t,e){var n=this.__handlers__||(this.__handlers__={});if(e){if(n[t]){for(var i=n[t],r=[],a=0;a<i.length;a++)e&&i[a].action!==e&&r.push(i[a]);n[t]=r}return this}n[t]=[]},has:function(t,e){var n=this.__handlers__;if(!n||!n[t])return!1;for(var i=n[t],r=0;r<i.length;r++)if(i[r].action===e)return!0}},m=g,v=0,y=Array.prototype,_=y.forEach,b={genGUID:function(){return++v},relative2absolute:function(t,e){if(!e||t.match(/^\//))return t;var n=t.split("/"),i=e.split("/"),r=n[0];while("."===r||".."===r)".."===r&&i.pop(),n.shift(),r=n[0];return i.join("/")+"/"+n.join("/")},extend:function(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},defaults:function(t,e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n]);return t},extendWithPropList:function(t,e,n){if(e)for(var i=0;i<n.length;i++){var r=n[i];t[r]=e[r]}return t},defaultsWithPropList:function(t,e,n){if(e)for(var i=0;i<n.length;i++){var r=n[i];null==t[r]&&(t[r]=e[r])}return t},each:function(t,e,n){if(t&&e)if(t.forEach&&t.forEach===_)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)},isObject:function(t){return t===Object(t)},isArray:function(t){return Array.isArray(t)},isArrayLike:function(t){return!!t&&t.length===+t.length},clone:function(t){if(b.isObject(t)){if(b.isArray(t))return t.slice();if(b.isArrayLike(t)){for(var e=new t.constructor(t.length),n=0;n<t.length;n++)e[n]=t[n];return e}return b.extend({},t)}return t}},x=b,w=function(){this.__uid__=x.genGUID()};w.__initializers__=[function(t){x.extend(this,t)}],x.extend(w,f),x.extend(w.prototype,m);var O=w,S=["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear","OES_standard_derivatives","OES_vertex_array_object","OES_element_index_uint","WEBGL_compressed_texture_s3tc","WEBGL_depth_texture","EXT_texture_filter_anisotropic","EXT_shader_texture_lod","WEBGL_draw_buffers","EXT_frag_depth","EXT_sRGB","ANGLE_instanced_arrays"],T=["MAX_TEXTURE_SIZE","MAX_CUBE_MAP_TEXTURE_SIZE"];function M(t){for(var e={},n={},i=0;i<S.length;i++){var r=S[i];o(r)}for(i=0;i<T.length;i++){var a=T[i];n[a]=t.getParameter(t[a])}function o(n){if(t.getExtension){var i=t.getExtension(n);i||(i=t.getExtension("MOZ_"+n)),i||(i=t.getExtension("WEBKIT_"+n)),e[n]=i}}this.getExtension=function(t){return t in e||o(t),e[t]},this.getParameter=function(t){return n[t]}}var A=M,C={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,FUNC_ADD:32774,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,BLEND_COLOR:32773,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CULL_FACE:2884,BLEND:3042,DITHER:3024,STENCIL_TEST:2960,DEPTH_TEST:2929,SCISSOR_TEST:3089,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CW:2304,CCW:2305,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_UNIFORMS:35718,ACTIVE_ATTRIBUTES:35721,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,NOTEQUAL:517,GEQUAL:518,ALWAYS:519,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,VENDOR:7936,RENDERER:7937,VERSION:7938,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,TEXTURE1:33985,TEXTURE2:33986,TEXTURE3:33987,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE30:34014,TEXTURE31:34015,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,COMPILE_STATUS:35713,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,CONTEXT_LOST_WEBGL:37442,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,BROWSER_DEFAULT_WEBGL:37444},I=n("620a"),D=function(){this.head=null,this.tail=null,this._length=0};D.prototype.insert=function(t){var e=new D.Entry(t);return this.insertEntry(e),e},D.prototype.insertAt=function(t,e){if(!(t<0)){var n=this.head,i=0;while(n&&i!=t)n=n.next,i++;if(n){var r=new D.Entry(e),a=n.prev;a?(a.next=r,r.prev=a):this.head=r,r.next=n,n.prev=r}else this.insert(e)}},D.prototype.insertBeforeEntry=function(t,e){var n=new D.Entry(t),i=e.prev;i?(i.next=n,n.prev=i):this.head=n,n.next=e,e.prev=n,this._length++},D.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._length++},D.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._length--},D.prototype.removeAt=function(t){if(!(t<0)){var e=this.head,n=0;while(e&&n!=t)e=e.next,n++;return e?(this.remove(e),e.value):void 0}},D.prototype.getHead=function(){if(this.head)return this.head.value},D.prototype.getTail=function(){if(this.tail)return this.tail.value},D.prototype.getAt=function(t){if(!(t<0)){var e=this.head,n=0;while(e&&n!=t)e=e.next,n++;return e.value}},D.prototype.indexOf=function(t){var e=this.head,n=0;while(e){if(e.value===t)return n;e=e.next,n++}},D.prototype.length=function(){return this._length},D.prototype.isEmpty=function(){return 0===this._length},D.prototype.forEach=function(t,e){var n=this.head,i=0,r="undefined"!=typeof e;while(n)r?t.call(e,n.value,i):t(n.value,i),n=n.next,i++},D.prototype.clear=function(){this.tail=this.head=null,this._length=0},D.Entry=function(t){this.value=t,this.next=null,this.prev=null};var L=D,E=function(t){this._list=new L,this._map={},this._maxSize=t||10};E.prototype.setMaxSize=function(t){this._maxSize=t},E.prototype.put=function(t,e){if(!this._map.hasOwnProperty(t)){var n=this._list.length();if(n>=this._maxSize&&n>0){var i=this._list.head;this._list.remove(i),delete this._map[i.key]}var r=this._list.insert(e);r.key=t,this._map[t]=r}},E.prototype.get=function(t){var e=this._map[t];if(this._map.hasOwnProperty(t))return e!==this._list.tail&&(this._list.remove(e),this._list.insertEntry(e)),e.value},E.prototype.remove=function(t){var e=this._map[t];"undefined"!==typeof e&&(delete this._map[t],this._list.remove(e))},E.prototype.clear=function(){this._list.clear(),this._map={}};var j=E,P={},N={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 R(t){return t=Math.round(t),t<0?0:t>255?255:t}function k(t){return t=Math.round(t),t<0?0:t>360?360:t}function B(t){return t<0?0:t>1?1:t}function z(t){return t.length&&"%"===t.charAt(t.length-1)?R(parseFloat(t)/100*255):R(parseInt(t,10))}function V(t){return t.length&&"%"===t.charAt(t.length-1)?B(parseFloat(t)/100):B(parseFloat(t))}function F(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function G(t,e,n){return t+(e-t)*n}function H(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function U(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var W=new j(20),X=null;function Z(t,e){X&&U(X,e),X=W.put(t,X||e.slice())}function q(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=V(t[1]),r=V(t[2]),a=r<=.5?r*(i+1):r+i-r*i,o=2*r-a;return e=e||[],H(e,R(255*F(o,a,n+1/3)),R(255*F(o,a,n)),R(255*F(o,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Y(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:a===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}P.parse=function(t,e){if(t){e=e||[];var n=W.get(t);if(n)return U(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in N)return U(e,N[i]),Z(t,e),e;if("#"!==i.charAt(0)){var r=i.indexOf("("),a=i.indexOf(")");if(-1!==r&&a+1===i.length){var o=i.substr(0,r),s=i.substr(r+1,a-(r+1)).split(","),l=1;switch(o){case"rgba":if(4!==s.length)return void H(e,0,0,0,1);l=V(s.pop());case"rgb":return 3!==s.length?void H(e,0,0,0,1):(H(e,z(s[0]),z(s[1]),z(s[2]),l),Z(t,e),e);case"hsla":return 4!==s.length?void H(e,0,0,0,1):(s[3]=V(s[3]),q(s,e),Z(t,e),e);case"hsl":return 3!==s.length?void H(e,0,0,0,1):(q(s,e),Z(t,e),e);default:return}}H(e,0,0,0,1)}else{if(4===i.length){var u=parseInt(i.substr(1),16);return u>=0&&u<=4095?(H(e,(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1),Z(t,e),e):void H(e,0,0,0,1)}if(7===i.length){u=parseInt(i.substr(1),16);return u>=0&&u<=16777215?(H(e,(16711680&u)>>16,(65280&u)>>8,255&u,1),Z(t,e),e):void H(e,0,0,0,1)}}}},P.parseToFloat=function(t,e){if(e=P.parse(t,e),e)return e[0]/=255,e[1]/=255,e[2]/=255,e},P.lift=function(t,e){var n=P.parse(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0;return P.stringify(n,4===n.length?"rgba":"rgb")}},P.toHex=function(t){var e=P.parse(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},P.fastLerp=function(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),o=e[r],s=e[a],l=i-r;return n[0]=R(G(o[0],s[0],l)),n[1]=R(G(o[1],s[1],l)),n[2]=R(G(o[2],s[2],l)),n[3]=B(G(o[3],s[3],l)),n}},P.fastMapToColor=P.fastLerp,P.lerp=function(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),o=P.parse(e[r]),s=P.parse(e[a]),l=i-r,u=P.stringify([R(G(o[0],s[0],l)),R(G(o[1],s[1],l)),R(G(o[2],s[2],l)),B(G(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:a,value:i}:u}},P.mapToColor=P.lerp,P.modifyHSL=function(t,e,n,i){if(t=P.parse(t),t)return t=Y(t),null!=e&&(t[0]=k(e)),null!=n&&(t[1]=V(n)),null!=i&&(t[2]=V(i)),P.stringify(q(t),"rgba")},P.modifyAlpha=function(t,e){if(t=P.parse(t),t&&null!=e)return t[3]=B(e),P.stringify(t,"rgba")},P.stringify=function(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}};var K=P,Q=K.parseToFloat,J={};function $(t){var e=Object.keys(t);e.sort();for(var n=[],i=0;i<e.length;i++){var r=e[i],a=t[r];null===a?n.push(r):n.push(r+" "+a.toString())}return n.join("\n")}function tt(t,e,n){n.sort();for(var i=[],r=0;r<n.length;r++){var a=n[r];i.push(a)}var o=$(t)+"\n"+$(e)+"\n"+i.join("\n");if(J[o])return J[o];var s=x.genGUID();return J[o]=s,s}var et=O.extend((function(){return{name:"",depthTest:!0,depthMask:!0,transparent:!1,blend:null,autoUpdateTextureStatus:!0,uniforms:{},vertexDefines:{},fragmentDefines:{},_textureStatus:{},_enabledUniforms:null}}),(function(){this.name||(this.name="MATERIAL_"+this.__uid__),this.shader&&this.attachShader(this.shader,!0)}),{precision:"highp",setUniform:function(t,e){void 0===e&&console.warn('Uniform value "'+t+'" is undefined');var n=this.uniforms[t];n&&("string"===typeof e&&(e=Q(e)||e),n.value=e,this.autoUpdateTextureStatus&&"t"===n.type&&(e?this.enableTexture(t):this.disableTexture(t)))},setUniforms:function(t){for(var e in t){var n=t[e];this.setUniform(e,n)}},isUniformEnabled:function(t){return this._enabledUniforms.indexOf(t)>=0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(t,e){if("object"===typeof t)for(var n in t){var i=t[n];this.setUniform(n,i)}else this.setUniform(t,e)},get:function(t){var e=this.uniforms[t];if(e)return e.value},attachShader:function(t,e){var n=this.uniforms;this.uniforms=t.createUniforms(),this.shader=t;var i=this.uniforms;this._enabledUniforms=Object.keys(i),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter((function(t){var e=this.uniforms[t].type;return"t"===e||"tv"===e}),this);var r=this.vertexDefines,a=this.fragmentDefines;if(this.vertexDefines=x.clone(t.vertexDefines),this.fragmentDefines=x.clone(t.fragmentDefines),e){for(var o in n)i[o]&&(i[o].value=n[o].value);x.defaults(this.vertexDefines,r),x.defaults(this.fragmentDefines,a)}var s={};for(var l in t.textures)s[l]={shaderType:t.textures[l].shaderType,type:t.textures[l].type,enabled:!(!e||!this._textureStatus[l])&&this._textureStatus[l].enabled};this._textureStatus=s,this._programKey=""},clone:function(){var t=new this.constructor({name:this.name,shader:this.shader});for(var e in this.uniforms)t.uniforms[e].value=this.uniforms[e].value;return t.depthTest=this.depthTest,t.depthMask=this.depthMask,t.transparent=this.transparent,t.blend=this.blend,t.vertexDefines=x.clone(this.vertexDefines),t.fragmentDefines=x.clone(this.fragmentDefines),t.enableTexture(this.getEnabledTextures()),t.precision=this.precision,t},define:function(t,e,n){var i=this.vertexDefines,r=this.fragmentDefines;"vertex"!==t&&"fragment"!==t&&"both"!==t&&arguments.length<3&&(n=e,e=t,t="both"),n=null!=n?n:null,"vertex"!==t&&"both"!==t||i[e]!==n&&(i[e]=n,this._programKey=""),"fragment"!==t&&"both"!==t||r[e]!==n&&(r[e]=n,"both"!==t&&(this._programKey=""))},undefine:function(t,e){"vertex"!==t&&"fragment"!==t&&"both"!==t&&arguments.length<2&&(e=t,t="both"),"vertex"!==t&&"both"!==t||this.isDefined("vertex",e)&&(delete this.vertexDefines[e],this._programKey=""),"fragment"!==t&&"both"!==t||this.isDefined("fragment",e)&&(delete this.fragmentDefines[e],"both"!==t&&(this._programKey=""))},isDefined:function(t,e){switch(t){case"vertex":return void 0!==this.vertexDefines[e];case"fragment":return void 0!==this.fragmentDefines[e]}},getDefine:function(t,e){switch(t){case"vertex":return this.vertexDefines[e];case"fragment":return this.fragmentDefines[e]}},enableTexture:function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.enableTexture(t[e]);else{var n=this._textureStatus[t];if(n){var i=n.enabled;i||(n.enabled=!0,this._programKey="")}}},enableTexturesAll:function(){var t=this._textureStatus;for(var e in t)t[e].enabled=!0;this._programKey=""},disableTexture:function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.disableTexture(t[e]);else{var n=this._textureStatus[t];if(n){var i=!n.enabled;i||(n.enabled=!1,this._programKey="")}}},disableTexturesAll:function(){var t=this._textureStatus;for(var e in t)t[e].enabled=!1;this._programKey=""},isTextureEnabled:function(t){var e=this._textureStatus;return!!e[t]&&e[t].enabled},getEnabledTextures:function(){var t=[],e=this._textureStatus;for(var n in e)e[n].enabled&&t.push(n);return t},dirtyDefines:function(){this._programKey=""},getProgramKey:function(){return this._programKey||(this._programKey=tt(this.vertexDefines,this.fragmentDefines,this.getEnabledTextures())),this._programKey}}),nt=et,it=1e-6,rt=Array,at=Math.random,ot={create:function(){var t=new rt(2);return t[0]=0,t[1]=0,t},clone:function(t){var e=new rt(2);return e[0]=t[0],e[1]=t[1],e},fromValues:function(t,e){var n=new rt(2);return n[0]=t,n[1]=e,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},set:function(t,e,n){return t[0]=e,t[1]=n,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},subtract:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}};ot.sub=ot.subtract,ot.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},ot.mul=ot.multiply,ot.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},ot.div=ot.divide,ot.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},ot.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},ot.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},ot.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},ot.distance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)},ot.dist=ot.distance,ot.squaredDistance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i},ot.sqrDist=ot.squaredDistance,ot.length=function(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)},ot.len=ot.length,ot.squaredLength=function(t){var e=t[0],n=t[1];return e*e+n*n},ot.sqrLen=ot.squaredLength,ot.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},ot.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},ot.normalize=function(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t},ot.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},ot.cross=function(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t},ot.lerp=function(t,e,n,i){var r=e[0],a=e[1];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t},ot.random=function(t,e){e=e||1;var n=2*GLMAT_RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},ot.transformMat2=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t},ot.transformMat2d=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},ot.transformMat3=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t},ot.transformMat4=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t},ot.forEach=function(){var t=ot.create();return function(e,n,i,r,a,o){var s,l;for(n||(n=2),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],a(t,t,o),e[s]=t[0],e[s+1]=t[1];return e}}();var st=ot,lt=function(t,e){t=t||0,e=e||0,this.array=st.fromValues(t,e),this._dirty=!0};if(lt.prototype={constructor:lt,add:function(t){return st.add(this.array,this.array,t.array),this._dirty=!0,this},set:function(t,e){return this.array[0]=t,this.array[1]=e,this._dirty=!0,this},setArray:function(t){return this.array[0]=t[0],this.array[1]=t[1],this._dirty=!0,this},clone:function(){return new lt(this.x,this.y)},copy:function(t){return st.copy(this.array,t.array),this._dirty=!0,this},cross:function(t,e){return st.cross(t.array,this.array,e.array),t._dirty=!0,this},dist:function(t){return st.dist(this.array,t.array)},distance:function(t){return st.distance(this.array,t.array)},div:function(t){return st.div(this.array,this.array,t.array),this._dirty=!0,this},divide:function(t){return st.divide(this.array,this.array,t.array),this._dirty=!0,this},dot:function(t){return st.dot(this.array,t.array)},len:function(){return st.len(this.array)},length:function(){return st.length(this.array)},lerp:function(t,e,n){return st.lerp(this.array,t.array,e.array,n),this._dirty=!0,this},min:function(t){return st.min(this.array,this.array,t.array),this._dirty=!0,this},max:function(t){return st.max(this.array,this.array,t.array),this._dirty=!0,this},mul:function(t){return st.mul(this.array,this.array,t.array),this._dirty=!0,this},multiply:function(t){return st.multiply(this.array,this.array,t.array),this._dirty=!0,this},negate:function(){return st.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return st.normalize(this.array,this.array),this._dirty=!0,this},random:function(t){return st.random(this.array,t),this._dirty=!0,this},scale:function(t){return st.scale(this.array,this.array,t),this._dirty=!0,this},scaleAndAdd:function(t,e){return st.scaleAndAdd(this.array,this.array,t.array,e),this._dirty=!0,this},sqrDist:function(t){return st.sqrDist(this.array,t.array)},squaredDistance:function(t){return st.squaredDistance(this.array,t.array)},sqrLen:function(){return st.sqrLen(this.array)},squaredLength:function(){return st.squaredLength(this.array)},sub:function(t){return st.sub(this.array,this.array,t.array),this._dirty=!0,this},subtract:function(t){return st.subtract(this.array,this.array,t.array),this._dirty=!0,this},transformMat2:function(t){return st.transformMat2(this.array,this.array,t.array),this._dirty=!0,this},transformMat2d:function(t){return st.transformMat2d(this.array,this.array,t.array),this._dirty=!0,this},transformMat3:function(t){return st.transformMat3(this.array,this.array,t.array),this._dirty=!0,this},transformMat4:function(t){return st.transformMat4(this.array,this.array,t.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},Object.defineProperty){var ut=lt.prototype;Object.defineProperty(ut,"x",{get:function(){return this.array[0]},set:function(t){this.array[0]=t,this._dirty=!0}}),Object.defineProperty(ut,"y",{get:function(){return this.array[1]},set:function(t){this.array[1]=t,this._dirty=!0}})}lt.add=function(t,e,n){return st.add(t.array,e.array,n.array),t._dirty=!0,t},lt.set=function(t,e,n){return st.set(t.array,e,n),t._dirty=!0,t},lt.copy=function(t,e){return st.copy(t.array,e.array),t._dirty=!0,t},lt.cross=function(t,e,n){return st.cross(t.array,e.array,n.array),t._dirty=!0,t},lt.dist=function(t,e){return st.distance(t.array,e.array)},lt.distance=lt.dist,lt.div=function(t,e,n){return st.divide(t.array,e.array,n.array),t._dirty=!0,t},lt.divide=lt.div,lt.dot=function(t,e){return st.dot(t.array,e.array)},lt.len=function(t){return st.length(t.array)},lt.lerp=function(t,e,n,i){return st.lerp(t.array,e.array,n.array,i),t._dirty=!0,t},lt.min=function(t,e,n){return st.min(t.array,e.array,n.array),t._dirty=!0,t},lt.max=function(t,e,n){return st.max(t.array,e.array,n.array),t._dirty=!0,t},lt.mul=function(t,e,n){return st.multiply(t.array,e.array,n.array),t._dirty=!0,t},lt.multiply=lt.mul,lt.negate=function(t,e){return st.negate(t.array,e.array),t._dirty=!0,t},lt.normalize=function(t,e){return st.normalize(t.array,e.array),t._dirty=!0,t},lt.random=function(t,e){return st.random(t.array,e),t._dirty=!0,t},lt.scale=function(t,e,n){return st.scale(t.array,e.array,n),t._dirty=!0,t},lt.scaleAndAdd=function(t,e,n,i){return st.scaleAndAdd(t.array,e.array,n.array,i),t._dirty=!0,t},lt.sqrDist=function(t,e){return st.sqrDist(t.array,e.array)},lt.squaredDistance=lt.sqrDist,lt.sqrLen=function(t){return st.sqrLen(t.array)},lt.squaredLength=lt.sqrLen,lt.sub=function(t,e,n){return st.subtract(t.array,e.array,n.array),t._dirty=!0,t},lt.subtract=lt.sub,lt.transformMat2=function(t,e,n){return st.transformMat2(t.array,e.array,n.array),t._dirty=!0,t},lt.transformMat2d=function(t,e,n){return st.transformMat2d(t.array,e.array,n.array),t._dirty=!0,t},lt.transformMat3=function(t,e,n){return st.transformMat3(t.array,e.array,n.array),t._dirty=!0,t},lt.transformMat4=function(t,e,n){return st.transformMat4(t.array,e.array,n.array),t._dirty=!0,t};var ct=lt,ht=1,dt=2,ft=3,pt={};function gt(t){for(var e=t.split("\n"),n=0,i=e.length;n<i;n++)e[n]=n+1+": "+e[n];return e.join("\n")}function mt(t,e,n){if(!t.getShaderParameter(e,t.COMPILE_STATUS))return[t.getShaderInfoLog(e),gt(n)].join("\n")}var vt=new I["a"].Float32Array(16),yt=O.extend({uniformSemantics:{},attributes:{}},(function(){this._locations={},this._textureSlot=0,this._program=null}),{bind:function(t){this._textureSlot=0,t.gl.useProgram(this._program)},hasUniform:function(t){var e=this._locations[t];return null!==e&&void 0!==e},useTextureSlot:function(t,e,n){e&&(t.gl.activeTexture(t.gl.TEXTURE0+n),e.isRenderable()?e.bind(t):e.unbind(t))},currentTextureSlot:function(){return this._textureSlot},resetTextureSlot:function(t){this._textureSlot=t||0},takeCurrentTextureSlot:function(t,e){var n=this._textureSlot;return this.useTextureSlot(t,e,n),this._textureSlot++,n},setUniform:function(t,e,n,i){var r=this._locations,a=r[n];if(null===a||void 0===a)return!1;switch(e){case"m4":if(!(i instanceof Float32Array)){for(var o=0;o<i.length;o++)vt[o]=i[o];i=vt}t.uniformMatrix4fv(a,!1,i);break;case"2i":t.uniform2i(a,i[0],i[1]);break;case"2f":t.uniform2f(a,i[0],i[1]);break;case"3i":t.uniform3i(a,i[0],i[1],i[2]);break;case"3f":t.uniform3f(a,i[0],i[1],i[2]);break;case"4i":t.uniform4i(a,i[0],i[1],i[2],i[3]);break;case"4f":t.uniform4f(a,i[0],i[1],i[2],i[3]);break;case"1i":t.uniform1i(a,i);break;case"1f":t.uniform1f(a,i);break;case"1fv":t.uniform1fv(a,i);break;case"1iv":t.uniform1iv(a,i);break;case"2iv":t.uniform2iv(a,i);break;case"2fv":t.uniform2fv(a,i);break;case"3iv":t.uniform3iv(a,i);break;case"3fv":t.uniform3fv(a,i);break;case"4iv":t.uniform4iv(a,i);break;case"4fv":t.uniform4fv(a,i);break;case"m2":case"m2v":t.uniformMatrix2fv(a,!1,i);break;case"m3":case"m3v":t.uniformMatrix3fv(a,!1,i);break;case"m4v":if(Array.isArray(i)&&Array.isArray(i[0])){var s=new I["a"].Float32Array(16*i.length),l=0;for(o=0;o<i.length;o++)for(var u=i[o],c=0;c<16;c++)s[l++]=u[c];t.uniformMatrix4fv(a,!1,s)}else t.uniformMatrix4fv(a,!1,i);break}return!0},setUniformOfSemantic:function(t,e,n){var i=this.uniformSemantics[e];return!!i&&this.setUniform(t,i.type,i.symbol,n)},enableAttributes:function(t,e,n){var i,r=t.gl,a=this._program,o=this._locations;i=n?n.__enabledAttributeList:pt[t.__uid__],i||(i=n?n.__enabledAttributeList=[]:pt[t.__uid__]=[]);for(var s=[],l=0;l<e.length;l++){var u=e[l];if(this.attributes[u]){var c=o[u];if(null==c){if(c=r.getAttribLocation(a,u),-1===c){s[l]=-1;continue}o[u]=c}s[l]=c,i[c]?i[c]=dt:i[c]=ht}else s[l]=-1}for(l=0;l<i.length;l++)switch(i[l]){case ht:r.enableVertexAttribArray(l),i[l]=ft;break;case dt:i[l]=ft;break;case ft:r.disableVertexAttribArray(l),i[l]=0;break}return s},getAttribLocation:function(t,e){var n=this._locations,i=n[e];return null==i&&(i=t.getAttribLocation(this._program,e),n[e]=i),i},buildProgram:function(t,e,n,i){var r=t.createShader(t.VERTEX_SHADER),a=t.createProgram();t.shaderSource(r,n),t.compileShader(r);var o=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(o,i),t.compileShader(o);var s=mt(t,r,n);if(s)return s;if(s=mt(t,o,i),s)return s;if(t.attachShader(a,r),t.attachShader(a,o),e.attributeSemantics["POSITION"])t.bindAttribLocation(a,0,e.attributeSemantics["POSITION"].symbol);else{var l=Object.keys(this.attributes);t.bindAttribLocation(a,0,l[0])}if(t.linkProgram(a),t.deleteShader(r),t.deleteShader(o),this._program=a,this.vertexCode=n,this.fragmentCode=i,!t.getProgramParameter(a,t.LINK_STATUS))return"Could not link program\n"+t.getProgramInfoLog(a);for(var u=0;u<e.uniforms.length;u++){var c=e.uniforms[u];this._locations[c]=t.getUniformLocation(a,c)}}}),_t=yt,bt=/for\s*?\(int\s*?_idx_\s*\=\s*([\w-]+)\;\s*_idx_\s*<\s*([\w-]+);\s*_idx_\s*\+\+\s*\)\s*\{\{([\s\S]+?)(?=\}\})\}\}/g;function xt(t,e,n){function i(t,n,i,a){var o="";isNaN(n)&&(n=n in e?e[n]:r[n]),isNaN(i)&&(i=i in e?e[i]:r[i]);for(var s=parseInt(n);s<parseInt(i);s++)o+="{"+a.replace(/float\s*\(\s*_idx_\s*\)/g,s.toFixed(1)).replace(/_idx_/g,s)+"}";return o}var r={};for(var a in n)r[a+"_COUNT"]=n[a];return t.replace(bt,i)}function wt(t,e,n){var i=[];if(e)for(var r in e){var a=e[r];a>0&&i.push("#define "+r.toUpperCase()+"_COUNT "+a)}if(n)for(var o=0;o<n.length;o++){var s=n[o];i.push("#define "+s.toUpperCase()+"_ENABLED")}for(var s in t){var l=t[s];null===l?i.push("#define "+s):i.push("#define "+s+" "+l.toString())}return i.join("\n")}function Ot(t){for(var e=[],n=0;n<t.length;n++)e.push("#extension GL_"+t[n]+" : enable");return e.join("\n")}function St(t){return["precision",t,"float"].join(" ")+";\n"+["precision",t,"int"].join(" ")+";\n"+["precision",t,"sampler2D"].join(" ")+";\n"}function Tt(t){this._renderer=t,this._cache={}}Tt.prototype.getProgram=function(t,e,n){var i=this._cache,r=t.isSkinnedMesh&&t.isSkinnedMesh(),a=t.isInstancedMesh&&t.isInstancedMesh(),o="s"+e.shader.shaderID+"m"+e.getProgramKey();n&&(o+="se"+n.getProgramKey(t.lightGroup)),r&&(o+=",sk"+t.joints.length),a&&(o+=",is");var s=i[o];if(s)return s;var l=n?n.getLightsNumbers(t.lightGroup):{},u=this._renderer,c=u.gl,h=e.getEnabledTextures(),d="";if(r){var f={SKINNING:null,JOINT_COUNT:t.joints.length};t.joints.length>u.getMaxJointNumber()&&(f.USE_SKIN_MATRICES_TEXTURE=null),d+="\n"+wt(f)+"\n"}a&&(d+="\n#define INSTANCING\n");var p=d+wt(e.vertexDefines,l,h),g=d+wt(e.fragmentDefines,l,h),m=p+"\n"+e.shader.vertex,v=["OES_standard_derivatives","EXT_shader_texture_lod"].filter((function(t){return null!=u.getGLExtension(t)}));v.indexOf("EXT_shader_texture_lod")>=0&&(g+="\n#define SUPPORT_TEXTURE_LOD"),v.indexOf("OES_standard_derivatives")>=0&&(g+="\n#define SUPPORT_STANDARD_DERIVATIVES");var y=Ot(v)+"\n"+St(e.precision)+"\n"+g+"\n"+e.shader.fragment,_=xt(m,e.vertexDefines,l),b=xt(y,e.fragmentDefines,l);s=new _t;s.uniformSemantics=e.shader.uniformSemantics,s.attributes=e.shader.attributes;var x=s.buildProgram(c,e.shader,_,b);return s.__error=x,i[o]=s,s};var Mt=Tt,At=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g,Ct=/attribute\s+(float|int|vec2|vec3|vec4)\s+([\s\S]*?);/g,It=/#define\s+(\w+)?(\s+[\d-.]+)?\s*;?\s*\n/g,Dt={bool:"1i",int:"1i",sampler2D:"t",samplerCube:"t",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",ivec2:"2i",ivec3:"3i",ivec4:"4i",mat2:"m2",mat3:"m3",mat4:"m4"};function Lt(t){for(var e=[],n=0;n<t;n++)e[n]=0;return e}var Et={bool:function(){return!0},int:function(){return 0},float:function(){return 0},sampler2D:function(){return null},samplerCube:function(){return null},vec2:function(){return Lt(2)},vec3:function(){return Lt(3)},vec4:function(){return Lt(4)},ivec2:function(){return Lt(2)},ivec3:function(){return Lt(3)},ivec4:function(){return Lt(4)},mat2:function(){return Lt(4)},mat3:function(){return Lt(9)},mat4:function(){return Lt(16)},array:function(){return[]}},jt=["POSITION","NORMAL","BINORMAL","TANGENT","TEXCOORD","TEXCOORD_0","TEXCOORD_1","COLOR","JOINT","WEIGHT"],Pt=["SKIN_MATRIX","VIEWPORT_SIZE","VIEWPORT","DEVICEPIXELRATIO","WINDOW_SIZE","NEAR","FAR","TIME"],Nt=["WORLD","VIEW","PROJECTION","WORLDVIEW","VIEWPROJECTION","WORLDVIEWPROJECTION","WORLDINVERSE","VIEWINVERSE","PROJECTIONINVERSE","WORLDVIEWINVERSE","VIEWPROJECTIONINVERSE","WORLDVIEWPROJECTIONINVERSE","WORLDTRANSPOSE","VIEWTRANSPOSE","PROJECTIONTRANSPOSE","WORLDVIEWTRANSPOSE","VIEWPROJECTIONTRANSPOSE","WORLDVIEWPROJECTIONTRANSPOSE","WORLDINVERSETRANSPOSE","VIEWINVERSETRANSPOSE","PROJECTIONINVERSETRANSPOSE","WORLDVIEWINVERSETRANSPOSE","VIEWPROJECTIONINVERSETRANSPOSE","WORLDVIEWPROJECTIONINVERSETRANSPOSE"],Rt={vec4:4,vec3:3,vec2:2,float:1},kt={},Bt={};function zt(t,e){var n="vertex:"+t+"fragment:"+e;if(kt[n])return kt[n];var i=x.genGUID();return kt[n]=i,Bt[i]={vertex:t,fragment:e},i}function Vt(t){return t.replace(/[ \t]*\/\/.*\n/g,"").replace(/[ \t]*\/\*[\s\S]*?\*\//g,"")}function Ft(){console.error("Wrong uniform/attributes syntax")}function Gt(t,e){for(var n=/[,=\(\):]/,i=e.replace(/:\s*\[\s*(.*)\s*\]/g,"="+t+"($1)").replace(/\s+/g,"").split(/(?=[,=\(\):])/g),r=[],a=0;a<i.length;a++)i[a].match(n)?r.push(i[a].charAt(0),i[a].slice(1)):r.push(i[a]);i=r;var o,s=0,l=1,u=2,c=3,h=4,d=5,f=s,p={},g=null;function m(t){t||Ft();var e=t.match(/\[(.*?)\]/);o=t.replace(/\[(.*?)\]/,""),p[o]={},e&&(p[o].isArray=!0,p[o].arraySize=e[1])}m(i[0]);for(a=1;a<i.length;a++){var v=i[a];if(v)if("="!==v)if(":"!==v)if(","!==v)if(")"!==v)if("("!==v)if(v.indexOf("vec")>=0){if(f!==l&&f!==h){Ft();break}f=u,g=[]}else if(f!==l)if(f!==h)m(v),f=s;else{var y=v;jt.indexOf(y)>=0||Pt.indexOf(y)>=0||Nt.indexOf(y)>=0?p[o].semantic=y:"ignore"===y||"unconfigurable"===y?p[o].ignore=!0:p[o].value="bool"===t?"true"===y:parseFloat(y)}else p[o].value="bool"===t?"true"===v:parseFloat(v),g=null;else{if(f!==u){Ft();break}if(!(g instanceof Array)){Ft();break}g.push(+i[++a])}else p[o].value=new I["a"].Float32Array(g),g=null,f=d;else if(f===u){if(!(g instanceof Array)){Ft();break}g.push(+i[++a])}else f=d;else f=h;else{if(f!==s&&f!==c){Ft();break}f=l}}return p}function Ht(t,e){"object"===typeof t&&(e=t.fragment,t=t.vertex),t=Vt(t),e=Vt(e),this._shaderID=zt(t,e),this._vertexCode=Ht.parseImport(t),this._fragmentCode=Ht.parseImport(e),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}Ht.prototype={constructor:Ht,createUniforms:function(){var t={};for(var e in this.uniformTemplates){var n=this.uniformTemplates[e];t[e]={type:n.type,value:n.value()}}return t},_parseImport:function(){this._vertexCode=Ht.parseImport(this.vertex),this._fragmentCode=Ht.parseImport(this.fragment)},_addSemanticUniform:function(t,e,n){if(jt.indexOf(n)>=0)this.attributeSemantics[n]={symbol:t,type:e};else if(Nt.indexOf(n)>=0){var i=!1,r=n;n.match(/TRANSPOSE$/)&&(i=!0,r=n.slice(0,-9)),this.matrixSemantics[n]={symbol:t,type:e,isTranspose:i,semanticNoTranspose:r}}else Pt.indexOf(n)>=0&&(this.uniformSemantics[n]={symbol:t,type:e})},_addMaterialUniform:function(t,e,n,i,r,a){a[t]={type:n,value:r?Et["array"]:i||Et[e],semantic:null}},_parseUniforms:function(){var t={},e=this,n="vertex";function i(t){return null!=t?function(){return t}:null}function r(r,a,o){var s=Gt(a,o),l=[];for(var u in s){var c=s[u],h=c.semantic,d=u,f=Dt[a],p=i(s[u].value);s[u].isArray&&(d+="["+s[u].arraySize+"]",f+="v"),l.push(d),e._uniformList.push(u),c.ignore||("sampler2D"!==a&&"samplerCube"!==a||(e.textures[u]={shaderType:n,type:a}),h?e._addSemanticUniform(u,f,h):e._addMaterialUniform(u,a,f,p,s[u].isArray,t))}return l.length>0?"uniform "+a+" "+l.join(",")+";\n":""}this._uniformList=[],this._vertexCode=this._vertexCode.replace(At,r),n="fragment",this._fragmentCode=this._fragmentCode.replace(At,r),e.matrixSemanticKeys=Object.keys(this.matrixSemantics),this.uniformTemplates=t},_parseAttributes:function(){var t={},e=this;function n(n,i,r){var a=Gt(i,r),o=Rt[i]||1,s=[];for(var l in a){var u=a[l].semantic;if(t[l]={type:"float",size:o,semantic:u||null},u){if(jt.indexOf(u)<0)throw new Error('Unkown semantic "'+u+'"');e.attributeSemantics[u]={symbol:l,type:i}}s.push(l)}return"attribute "+i+" "+s.join(",")+";\n"}this._vertexCode=this._vertexCode.replace(Ct,n),this.attributes=t},_parseDefines:function(){var t=this,e="vertex";function n(n,i,r){var a="vertex"===e?t.vertexDefines:t.fragmentDefines;return a[i]||(a[i]="false"!==r&&("true"===r||(r?isNaN(parseFloat(r))?r.trim():parseFloat(r):null))),""}this._vertexCode=this._vertexCode.replace(It,n),e="fragment",this._fragmentCode=this._fragmentCode.replace(It,n)},clone:function(){var t=Bt[this._shaderID],e=new Ht(t.vertex,t.fragment);return e}},Object.defineProperty&&(Object.defineProperty(Ht.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(Ht.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(Ht.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(Ht.prototype,"uniforms",{get:function(){return this._uniformList}}));var Ut=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;Ht.parseImport=function(t){return t=t.replace(Ut,(function(t,e,n){t=Ht.source(n);return t?Ht.parseImport(t):(console.error('Shader chunk "'+n+'" not existed in library'),"")})),t};var Wt=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;Ht["import"]=function(t){t.replace(Wt,(function(t,e,n,i){i=i.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"");if(i){var r,a=n.split("."),o=Ht.codes,s=0;while(s<a.length-1)r=a[s++],o[r]||(o[r]={}),o=o[r];r=a[s],o[r]=i}return i}))},Ht.codes={},Ht.source=function(t){var e=t.split("."),n=Ht.codes,i=0;while(n&&i<e.length){var r=e[i++];n=n[r]}return"string"!==typeof n?(console.error('Shader "'+t+'" not existed in library'),""):n};var Xt=Ht,Zt="@export clay.prez.vertex\nuniform mat4 WVP : WORLDVIEWPROJECTION;\nattribute vec3 pos : POSITION;\nattribute vec2 uv : TEXCOORD_0;\nuniform vec2 uvRepeat : [1.0, 1.0];\nuniform vec2 uvOffset : [0.0, 0.0];\n@import clay.chunk.skinning_header\n@import clay.chunk.instancing_header\nvarying vec2 v_Texcoord;\nvoid main()\n{\n vec4 P = vec4(pos, 1.0);\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n P = skinMatrixWS * P;\n#endif\n#ifdef INSTANCING\n @import clay.chunk.instancing_matrix\n P = instanceMat * P;\n#endif\n gl_Position = WVP * P;\n v_Texcoord = uv * uvRepeat + uvOffset;\n}\n@end\n@export clay.prez.fragment\nuniform sampler2D alphaMap;\nuniform float alphaCutoff: 0.0;\nvarying vec2 v_Texcoord;\nvoid main()\n{\n if (alphaCutoff > 0.0) {\n if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) {\n discard;\n }\n }\n gl_FragColor = vec4(0.0,0.0,0.0,1.0);\n}\n@end",qt={create:function(){var t=new rt(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},clone:function(t){var e=new rt(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},transpose:function(t,e){if(t===e){var n=e[1],i=e[2],r=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=i,t[9]=a,t[11]=e[14],t[12]=r,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t},invert:function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],m=e[14],v=e[15],y=n*s-i*o,_=n*l-r*o,b=n*u-a*o,x=i*l-r*s,w=i*u-a*s,O=r*u-a*l,S=c*g-h*p,T=c*m-d*p,M=c*v-f*p,A=h*m-d*g,C=h*v-f*g,I=d*v-f*m,D=y*I-_*C+b*A+x*M-w*T+O*S;return D?(D=1/D,t[0]=(s*I-l*C+u*A)*D,t[1]=(r*C-i*I-a*A)*D,t[2]=(g*O-m*w+v*x)*D,t[3]=(d*w-h*O-f*x)*D,t[4]=(l*M-o*I-u*T)*D,t[5]=(n*I-r*M+a*T)*D,t[6]=(m*b-p*O-v*_)*D,t[7]=(c*O-d*b+f*_)*D,t[8]=(o*C-s*M+u*S)*D,t[9]=(i*M-n*C-a*S)*D,t[10]=(p*w-g*b+v*y)*D,t[11]=(h*b-c*w-f*y)*D,t[12]=(s*T-o*A-l*S)*D,t[13]=(n*A-i*T+r*S)*D,t[14]=(g*_-p*x-m*y)*D,t[15]=(c*x-h*_+d*y)*D,t):null},adjoint:function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],m=e[14],v=e[15];return t[0]=s*(d*v-f*m)-h*(l*v-u*m)+g*(l*f-u*d),t[1]=-(i*(d*v-f*m)-h*(r*v-a*m)+g*(r*f-a*d)),t[2]=i*(l*v-u*m)-s*(r*v-a*m)+g*(r*u-a*l),t[3]=-(i*(l*f-u*d)-s*(r*f-a*d)+h*(r*u-a*l)),t[4]=-(o*(d*v-f*m)-c*(l*v-u*m)+p*(l*f-u*d)),t[5]=n*(d*v-f*m)-c*(r*v-a*m)+p*(r*f-a*d),t[6]=-(n*(l*v-u*m)-o*(r*v-a*m)+p*(r*u-a*l)),t[7]=n*(l*f-u*d)-o*(r*f-a*d)+c*(r*u-a*l),t[8]=o*(h*v-f*g)-c*(s*v-u*g)+p*(s*f-u*h),t[9]=-(n*(h*v-f*g)-c*(i*v-a*g)+p*(i*f-a*h)),t[10]=n*(s*v-u*g)-o*(i*v-a*g)+p*(i*u-a*s),t[11]=-(n*(s*f-u*h)-o*(i*f-a*h)+c*(i*u-a*s)),t[12]=-(o*(h*m-d*g)-c*(s*m-l*g)+p*(s*d-l*h)),t[13]=n*(h*m-d*g)-c*(i*m-r*g)+p*(i*d-r*h),t[14]=-(n*(s*m-l*g)-o*(i*m-r*g)+p*(i*l-r*s)),t[15]=n*(s*d-l*h)-o*(i*d-r*h)+c*(i*l-r*s),t},determinant:function(t){var e=t[0],n=t[1],i=t[2],r=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],d=t[11],f=t[12],p=t[13],g=t[14],m=t[15],v=e*o-n*a,y=e*s-i*a,_=e*l-r*a,b=n*s-i*o,x=n*l-r*o,w=i*l-r*s,O=u*p-c*f,S=u*g-h*f,T=u*m-d*f,M=c*g-h*p,A=c*m-d*p,C=h*m-d*g;return v*C-y*A+_*M+b*T-x*S+w*O},multiply:function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],g=e[12],m=e[13],v=e[14],y=e[15],_=n[0],b=n[1],x=n[2],w=n[3];return t[0]=_*i+b*s+x*h+w*g,t[1]=_*r+b*l+x*d+w*m,t[2]=_*a+b*u+x*f+w*v,t[3]=_*o+b*c+x*p+w*y,_=n[4],b=n[5],x=n[6],w=n[7],t[4]=_*i+b*s+x*h+w*g,t[5]=_*r+b*l+x*d+w*m,t[6]=_*a+b*u+x*f+w*v,t[7]=_*o+b*c+x*p+w*y,_=n[8],b=n[9],x=n[10],w=n[11],t[8]=_*i+b*s+x*h+w*g,t[9]=_*r+b*l+x*d+w*m,t[10]=_*a+b*u+x*f+w*v,t[11]=_*o+b*c+x*p+w*y,_=n[12],b=n[13],x=n[14],w=n[15],t[12]=_*i+b*s+x*h+w*g,t[13]=_*r+b*l+x*d+w*m,t[14]=_*a+b*u+x*f+w*v,t[15]=_*o+b*c+x*p+w*y,t},multiplyAffine:function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[4],s=e[5],l=e[6],u=e[8],c=e[9],h=e[10],d=e[12],f=e[13],p=e[14],g=n[0],m=n[1],v=n[2];return t[0]=g*i+m*o+v*u,t[1]=g*r+m*s+v*c,t[2]=g*a+m*l+v*h,g=n[4],m=n[5],v=n[6],t[4]=g*i+m*o+v*u,t[5]=g*r+m*s+v*c,t[6]=g*a+m*l+v*h,g=n[8],m=n[9],v=n[10],t[8]=g*i+m*o+v*u,t[9]=g*r+m*s+v*c,t[10]=g*a+m*l+v*h,g=n[12],m=n[13],v=n[14],t[12]=g*i+m*o+v*u+d,t[13]=g*r+m*s+v*c+f,t[14]=g*a+m*l+v*h+p,t}};qt.mul=qt.multiply,qt.mulAffine=qt.multiplyAffine,qt.translate=function(t,e,n){var i,r,a,o,s,l,u,c,h,d,f,p,g=n[0],m=n[1],v=n[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=d,t[10]=f,t[11]=p,t[12]=i*g+s*m+h*v+e[12],t[13]=r*g+l*m+d*v+e[13],t[14]=a*g+u*m+f*v+e[14],t[15]=o*g+c*m+p*v+e[15]),t},qt.scale=function(t,e,n){var i=n[0],r=n[1],a=n[2];return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},qt.rotate=function(t,e,n,i){var r,a,o,s,l,u,c,h,d,f,p,g,m,v,y,_,b,x,w,O,S,T,M,A,C=i[0],I=i[1],D=i[2],L=Math.sqrt(C*C+I*I+D*D);return Math.abs(L)<it?null:(L=1/L,C*=L,I*=L,D*=L,r=Math.sin(n),a=Math.cos(n),o=1-a,s=e[0],l=e[1],u=e[2],c=e[3],h=e[4],d=e[5],f=e[6],p=e[7],g=e[8],m=e[9],v=e[10],y=e[11],_=C*C*o+a,b=I*C*o+D*r,x=D*C*o-I*r,w=C*I*o-D*r,O=I*I*o+a,S=D*I*o+C*r,T=C*D*o+I*r,M=I*D*o-C*r,A=D*D*o+a,t[0]=s*_+h*b+g*x,t[1]=l*_+d*b+m*x,t[2]=u*_+f*b+v*x,t[3]=c*_+p*b+y*x,t[4]=s*w+h*O+g*S,t[5]=l*w+d*O+m*S,t[6]=u*w+f*O+v*S,t[7]=c*w+p*O+y*S,t[8]=s*T+h*M+g*A,t[9]=l*T+d*M+m*A,t[10]=u*T+f*M+v*A,t[11]=c*T+p*M+y*A,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)},qt.rotateX=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],h=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*r+u*i,t[5]=o*r+c*i,t[6]=s*r+h*i,t[7]=l*r+d*i,t[8]=u*r-a*i,t[9]=c*r-o*i,t[10]=h*r-s*i,t[11]=d*r-l*i,t},qt.rotateY=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),a=e[0],o=e[1],s=e[2],l=e[3],u=e[8],c=e[9],h=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*r-u*i,t[1]=o*r-c*i,t[2]=s*r-h*i,t[3]=l*r-d*i,t[8]=a*i+u*r,t[9]=o*i+c*r,t[10]=s*i+h*r,t[11]=l*i+d*r,t},qt.rotateZ=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),a=e[0],o=e[1],s=e[2],l=e[3],u=e[4],c=e[5],h=e[6],d=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*r+u*i,t[1]=o*r+c*i,t[2]=s*r+h*i,t[3]=l*r+d*i,t[4]=u*r-a*i,t[5]=c*r-o*i,t[6]=h*r-s*i,t[7]=d*r-l*i,t},qt.fromRotationTranslation=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=i+i,l=r+r,u=a+a,c=i*s,h=i*l,d=i*u,f=r*l,p=r*u,g=a*u,m=o*s,v=o*l,y=o*u;return t[0]=1-(f+g),t[1]=h+y,t[2]=d-v,t[3]=0,t[4]=h-y,t[5]=1-(c+g),t[6]=p+m,t[7]=0,t[8]=d+v,t[9]=p-m,t[10]=1-(c+f),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},qt.fromQuat=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n+n,s=i+i,l=r+r,u=n*o,c=i*o,h=i*s,d=r*o,f=r*s,p=r*l,g=a*o,m=a*s,v=a*l;return t[0]=1-h-p,t[1]=c+v,t[2]=d-m,t[3]=0,t[4]=c-v,t[5]=1-u-p,t[6]=f+g,t[7]=0,t[8]=d+m,t[9]=f-g,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},qt.frustum=function(t,e,n,i,r,a,o){var s=1/(n-e),l=1/(r-i),u=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(r+i)*l,t[10]=(o+a)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*u,t[15]=0,t},qt.perspective=function(t,e,n,i,r){var a=1/Math.tan(e/2),o=1/(i-r);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(r+i)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*r*i*o,t[15]=0,t},qt.ortho=function(t,e,n,i,r,a,o){var s=1/(e-n),l=1/(i-r),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(r+i)*l,t[14]=(o+a)*u,t[15]=1,t},qt.lookAt=function(t,e,n,i){var r,a,o,s,l,u,c,h,d,f,p=e[0],g=e[1],m=e[2],v=i[0],y=i[1],_=i[2],b=n[0],x=n[1],w=n[2];return Math.abs(p-b)<it&&Math.abs(g-x)<it&&Math.abs(m-w)<it?qt.identity(t):(c=p-b,h=g-x,d=m-w,f=1/Math.sqrt(c*c+h*h+d*d),c*=f,h*=f,d*=f,r=y*d-_*h,a=_*c-v*d,o=v*h-y*c,f=Math.sqrt(r*r+a*a+o*o),f?(f=1/f,r*=f,a*=f,o*=f):(r=0,a=0,o=0),s=h*o-d*a,l=d*r-c*o,u=c*a-h*r,f=Math.sqrt(s*s+l*l+u*u),f?(f=1/f,s*=f,l*=f,u*=f):(s=0,l=0,u=0),t[0]=r,t[1]=s,t[2]=c,t[3]=0,t[4]=a,t[5]=l,t[6]=h,t[7]=0,t[8]=o,t[9]=u,t[10]=d,t[11]=0,t[12]=-(r*p+a*g+o*m),t[13]=-(s*p+l*g+u*m),t[14]=-(c*p+h*g+d*m),t[15]=1,t)},qt.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2)+Math.pow(t[9],2)+Math.pow(t[10],2)+Math.pow(t[11],2)+Math.pow(t[12],2)+Math.pow(t[13],2)+Math.pow(t[14],2)+Math.pow(t[15],2))};var Yt=qt,Kt={create:function(){var t=new rt(3);return t[0]=0,t[1]=0,t[2]=0,t},clone:function(t){var e=new rt(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},fromValues:function(t,e,n){var i=new rt(3);return i[0]=t,i[1]=e,i[2]=n,i},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},set:function(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},subtract:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}};Kt.sub=Kt.subtract,Kt.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t},Kt.mul=Kt.multiply,Kt.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t},Kt.div=Kt.divide,Kt.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},Kt.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},Kt.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},Kt.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t},Kt.distance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)},Kt.dist=Kt.distance,Kt.squaredDistance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r},Kt.sqrDist=Kt.squaredDistance,Kt.length=function(t){var e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)},Kt.len=Kt.length,Kt.squaredLength=function(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i},Kt.sqrLen=Kt.squaredLength,Kt.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},Kt.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},Kt.normalize=function(t,e){var n=e[0],i=e[1],r=e[2],a=n*n+i*i+r*r;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t},Kt.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},Kt.cross=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[0],s=n[1],l=n[2];return t[0]=r*l-a*s,t[1]=a*o-i*l,t[2]=i*s-r*o,t},Kt.lerp=function(t,e,n,i){var r=e[0],a=e[1],o=e[2];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t[2]=o+i*(n[2]-o),t},Kt.random=function(t,e){e=e||1;var n=2*at()*Math.PI,i=2*at()-1,r=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*r,t[1]=Math.sin(n)*r,t[2]=i*e,t},Kt.transformMat4=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[3]*i+n[7]*r+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*i+n[4]*r+n[8]*a+n[12])/o,t[1]=(n[1]*i+n[5]*r+n[9]*a+n[13])/o,t[2]=(n[2]*i+n[6]*r+n[10]*a+n[14])/o,t},Kt.transformMat3=function(t,e,n){var i=e[0],r=e[1],a=e[2];return t[0]=i*n[0]+r*n[3]+a*n[6],t[1]=i*n[1]+r*n[4]+a*n[7],t[2]=i*n[2]+r*n[5]+a*n[8],t},Kt.transformQuat=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[0],s=n[1],l=n[2],u=n[3],c=u*i+s*a-l*r,h=u*r+l*i-o*a,d=u*a+o*r-s*i,f=-o*i-s*r-l*a;return t[0]=c*u+f*-o+h*-l-d*-s,t[1]=h*u+f*-s+d*-o-c*-l,t[2]=d*u+f*-l+c*-s-h*-o,t},Kt.rotateX=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0],a[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),a[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},Kt.rotateY=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),a[1]=r[1],a[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},Kt.rotateZ=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),a[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),a[2]=r[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},Kt.forEach=function(){var t=Kt.create();return function(e,n,i,r,a,o){var s,l;for(n||(n=3),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],a(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}(),Kt.angle=function(t,e){var n=Kt.fromValues(t[0],t[1],t[2]),i=Kt.fromValues(e[0],e[1],e[2]);Kt.normalize(n,n),Kt.normalize(i,i);var r=Kt.dot(n,i);return r>1?0:Math.acos(r)};var Qt=Kt;Xt["import"](Zt);var Jt=Yt.create,$t={};function te(t){return t.material}function ee(t,e,n){return e.uniforms[n].value}function ne(t,e,n,i){return n!==i}function ie(t){return!0}function re(){}var ae={float:C.FLOAT,byte:C.BYTE,ubyte:C.UNSIGNED_BYTE,short:C.SHORT,ushort:C.UNSIGNED_SHORT};function oe(t,e,n){this.availableAttributes=t,this.availableAttributeSymbols=e,this.indicesBuffer=n,this.vao=null}function se(t){var e,n;this.bind=function(t){e||(e=I["a"].createCanvas(),e.width=e.height=1,e.getContext("2d"));var i=t.gl,r=!n;r&&(n=i.createTexture()),i.bindTexture(i.TEXTURE_2D,n),r&&i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,e)},this.unbind=function(t){t.gl.bindTexture(t.gl.TEXTURE_2D,null)},this.isRenderable=function(){return!0}}var le=O.extend((function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:"undefined"!==typeof window&&window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},maxJointNumber:20,__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}}),(function(){this.canvas||(this.canvas=I["a"].createCanvas());var t=this.canvas;try{var e={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),!this.gl)throw new Error;this._glinfo=new A(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(n){throw"Error creating WebGL Context "+n}this._programMgr=new Mt(this),this._placeholderTexture=new se(this)}),{resize:function(t,e){var n=this.canvas,i=this.devicePixelRatio;null!=t?(n.style&&(n.style.width=t+"px",n.style.height=e+"px"),n.width=t*i,n.height=e*i,this._width=t,this._height=e):(this._width=n.width/i,this._height=n.height/i),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var t=this.viewport;return t.width/t.height},setDevicePixelRatio:function(t){this.devicePixelRatio=t,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(t){return this._glinfo.getExtension(t)},getGLParameter:function(t){return this._glinfo.getParameter(t)},setViewport:function(t,e,n,i,r){if("object"===typeof t){var a=t;t=a.x,e=a.y,n=a.width,i=a.height,r=a.devicePixelRatio}r=r||this.devicePixelRatio,this.gl.viewport(t*r,e*r,n*r,i*r),this.viewport={x:t,y:e,width:n,height:i,devicePixelRatio:r}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var t=this._clearStack.pop();this.clearColor=t.clearColor,this.clearBit=t.clearBit}},bindSceneRendering:function(t){this._sceneRendering=t},render:function(t,e,n,i){var r=this.gl,a=this.clearColor;if(this.clearBit){r.colorMask(!0,!0,!0,!0),r.depthMask(!0);var o=this.viewport,s=!1,l=o.devicePixelRatio;(o.width!==this._width||o.height!==this._height||l&&l!==this.devicePixelRatio||o.x||o.y)&&(s=!0,r.enable(r.SCISSOR_TEST),r.scissor(o.x*l,o.y*l,o.width*l,o.height*l)),r.clearColor(a[0],a[1],a[2],a[3]),r.clear(this.clearBit),s&&r.disable(r.SCISSOR_TEST)}if(n||t.update(!1),t.updateLights(),e=e||t.getMainCamera(),e){e.update();var u=t.updateRenderList(e,!0);this._sceneRendering=t;var c=u.opaque,h=u.transparent,d=t.material;t.trigger("beforerender",this,t,e,u),i?(this.renderPreZ(c,t,e),r.depthFunc(r.LEQUAL)):r.depthFunc(r.LESS);for(var f=Jt(),p=Qt.create(),g=0;g<h.length;g++){var m=h[g];Yt.multiplyAffine(f,e.viewMatrix.array,m.worldTransform.array),Qt.transformMat4(p,m.position.array,f),m.__depth=p[2]}this.renderPass(c,e,{getMaterial:function(t){return d||t.material},sortCompare:this.opaqueSortCompare}),this.renderPass(h,e,{getMaterial:function(t){return d||t.material},sortCompare:this.transparentSortCompare}),t.trigger("afterrender",this,t,e,u),this._sceneRendering=null}else console.error("Can't find camera in the scene.")},getProgram:function(t,e,n){return e=e||t.material,this._programMgr.getProgram(t,e,n)},validateProgram:function(t){if(t.__error){var e=t.__error;if($t[t.__uid__])return;if($t[t.__uid__]=!0,this.throwError)throw new Error(e);this.trigger("error",e)}},updatePrograms:function(t,e,n){var i=n&&n.getMaterial||te;e=e||null;for(var r=0;r<t.length;r++){var a=t[r],o=i.call(this,a);if(r>0){var s=t[r-1],l=s.joints?s.joints.length:0,u=a.joints?a.joints.length:0;if(u===l&&a.material===s.material&&a.lightGroup===s.lightGroup){a.__program=s.__program;continue}}var c=this._programMgr.getProgram(a,o,e);this.validateProgram(c),a.__program=c}},renderPass:function(t,e,n){this.trigger("beforerenderpass",this,t,e,n),n=n||{},n.getMaterial=n.getMaterial||te,n.getUniform=n.getUniform||ee,n.isMaterialChanged=n.isMaterialChanged||ne,n.beforeRender=n.beforeRender||re,n.afterRender=n.afterRender||re;var i=n.ifRender||ie;this.updatePrograms(t,this._sceneRendering,n),n.sortCompare&&t.sort(n.sortCompare);var r=this.viewport,a=r.devicePixelRatio,o=[r.x*a,r.y*a,r.width*a,r.height*a],s=this.devicePixelRatio,l=this.__currentFrameBuffer?[this.__currentFrameBuffer.getTextureWidth(),this.__currentFrameBuffer.getTextureHeight()]:[this._width*s,this._height*s],u=[o[2],o[3]],c=Date.now();e?(Yt.copy(ue.VIEW,e.viewMatrix.array),Yt.copy(ue.PROJECTION,e.projectionMatrix.array),Yt.copy(ue.VIEWINVERSE,e.worldTransform.array)):(Yt.identity(ue.VIEW),Yt.identity(ue.PROJECTION),Yt.identity(ue.VIEWINVERSE)),Yt.multiply(ue.VIEWPROJECTION,ue.PROJECTION,ue.VIEW),Yt.invert(ue.PROJECTIONINVERSE,ue.PROJECTION),Yt.invert(ue.VIEWPROJECTIONINVERSE,ue.VIEWPROJECTION);for(var h,d,f,p,g,m,v,y,_,b,x,w,O=this.gl,S=this._sceneRendering,T=null,M=0;M<t.length;M++){var A,C=t[M],I=null!=C.worldTransform;if(i(C)){I&&(A=C.isSkinnedMesh&&C.isSkinnedMesh()?C.offsetMatrix?C.offsetMatrix.array:ue.IDENTITY:C.worldTransform.array);var D=C.geometry,L=n.getMaterial.call(this,C),E=C.__program,j=L.shader,P=D.__uid__+"-"+E.__uid__,N=P!==b;b=P,N&&T&&T.bindVertexArrayOES(null),I&&(Yt.copy(ue.WORLD,A),Yt.multiply(ue.WORLDVIEWPROJECTION,ue.VIEWPROJECTION,A),Yt.multiplyAffine(ue.WORLDVIEW,ue.VIEW,A),(j.matrixSemantics.WORLDINVERSE||j.matrixSemantics.WORLDINVERSETRANSPOSE)&&Yt.invert(ue.WORLDINVERSE,A),(j.matrixSemantics.WORLDVIEWINVERSE||j.matrixSemantics.WORLDVIEWINVERSETRANSPOSE)&&Yt.invert(ue.WORLDVIEWINVERSE,ue.WORLDVIEW),(j.matrixSemantics.WORLDVIEWPROJECTIONINVERSE||j.matrixSemantics.WORLDVIEWPROJECTIONINVERSETRANSPOSE)&&Yt.invert(ue.WORLDVIEWPROJECTIONINVERSE,ue.WORLDVIEWPROJECTION)),C.beforeRender&&C.beforeRender(this),n.beforeRender.call(this,C,L,h);var R=E!==d;R?(E.bind(this),E.setUniformOfSemantic(O,"VIEWPORT",o),E.setUniformOfSemantic(O,"WINDOW_SIZE",l),e&&(E.setUniformOfSemantic(O,"NEAR",e.near),E.setUniformOfSemantic(O,"FAR",e.far)),E.setUniformOfSemantic(O,"DEVICEPIXELRATIO",a),E.setUniformOfSemantic(O,"TIME",c),E.setUniformOfSemantic(O,"VIEWPORT_SIZE",u),S&&S.setLightUniforms(E,C.lightGroup,this)):E=d,(R||n.isMaterialChanged(C,f,L,h))&&(L.depthTest!==p&&(L.depthTest?O.enable(O.DEPTH_TEST):O.disable(O.DEPTH_TEST),p=L.depthTest),L.depthMask!==g&&(O.depthMask(L.depthMask),g=L.depthMask),L.transparent!==_&&(L.transparent?O.enable(O.BLEND):O.disable(O.BLEND),_=L.transparent),L.transparent&&(L.blend?L.blend(O):(O.blendEquationSeparate(O.FUNC_ADD,O.FUNC_ADD),O.blendFuncSeparate(O.SRC_ALPHA,O.ONE_MINUS_SRC_ALPHA,O.ONE,O.ONE_MINUS_SRC_ALPHA))),w=this._bindMaterial(C,L,E,f||null,h||null,d||null,n.getUniform),h=L);var k=j.matrixSemanticKeys;if(I)for(var B=0;B<k.length;B++){var z=k[B],V=j.matrixSemantics[z],F=ue[z];if(V.isTranspose){var G=ue[V.semanticNoTranspose];Yt.transpose(F,G)}E.setUniform(O,V.type,V.symbol,F)}C.cullFace!==v&&(v=C.cullFace,O.cullFace(v)),C.frontFace!==y&&(y=C.frontFace,O.frontFace(y)),C.culling!==m&&(m=C.culling,m?O.enable(O.CULL_FACE):O.disable(O.CULL_FACE)),this._updateSkeleton(C,E,w),N&&(x=this._bindVAO(T,j,D,E)),this._renderObject(C,x,E),n.afterRender(this,C),C.afterRender&&C.afterRender(this),d=E,f=C}}T&&T.bindVertexArrayOES(null),this.trigger("afterrenderpass",this,t,e,n)},getMaxJointNumber:function(){return this.maxJointNumber},_updateSkeleton:function(t,e,n){var i=this.gl,r=t.skeleton;if(r)if(r.update(),t.joints.length>this.getMaxJointNumber()){var a=r.getSubSkinMatricesTexture(t.__uid__,t.joints);e.useTextureSlot(this,a,n),e.setUniform(i,"1i","skinMatricesTexture",n),e.setUniform(i,"1f","skinMatricesTextureSize",a.width)}else{var o=r.getSubSkinMatrices(t.__uid__,t.joints);e.setUniformOfSemantic(i,"SKIN_MATRIX",o)}},_renderObject:function(t,e,n){var i=this.gl,r=t.geometry,a=t.mode;null==a&&(a=4);var o=null,s=t.isInstancedMesh&&t.isInstancedMesh();if(!s||(o=this.getGLExtension("ANGLE_instanced_arrays"),o)){var l;if(s&&(l=this._bindInstancedAttributes(t,n,o)),e.indicesBuffer){var u=this.getGLExtension("OES_element_index_uint"),c=u&&r.indices instanceof Uint32Array,h=c?i.UNSIGNED_INT:i.UNSIGNED_SHORT;s?o.drawElementsInstancedANGLE(a,e.indicesBuffer.count,h,0,t.getInstanceCount()):i.drawElements(a,e.indicesBuffer.count,h,0)}else s?o.drawArraysInstancedANGLE(a,0,r.vertexCount,t.getInstanceCount()):i.drawArrays(a,0,r.vertexCount);if(s)for(var d=0;d<l.length;d++)i.disableVertexAttribArray(l[d])}else console.warn("Device not support ANGLE_instanced_arrays extension")},_bindInstancedAttributes:function(t,e,n){for(var i=this.gl,r=t.getInstancedAttributesBuffers(this),a=[],o=0;o<r.length;o++){var s=r[o],l=e.getAttribLocation(i,s.symbol);if(!(l<0)){var u=ae[s.type]||i.FLOAT;i.enableVertexAttribArray(l),i.bindBuffer(i.ARRAY_BUFFER,s.buffer),i.vertexAttribPointer(l,s.size,u,!1,0,0),n.vertexAttribDivisorANGLE(l,s.divisor),a.push(l)}}return a},_bindMaterial:function(t,e,n,i,r,a,o){for(var s=this.gl,l=a===n,u=n.currentTextureSlot(),c=e.getEnabledUniforms(),h=e.getTextureUniforms(),d=this._placeholderTexture,f=0;f<h.length;f++){var p=h[f],g=o(t,e,p),m=e.uniforms[p].type;if("t"===m&&g)g.__slot=-1;else if("tv"===m)for(var v=0;v<g.length;v++)g[v]&&(g[v].__slot=-1)}d.__slot=-1;for(f=0;f<c.length;f++){p=c[f];var y=e.uniforms[p],_=(g=o(t,e,p),m=y.type,"t"===m);if(_&&(g&&g.isRenderable()||(g=d)),r&&l){var b=o(i,r,p);if(_&&(b&&b.isRenderable()||(b=d)),b===g){if(_)n.takeCurrentTextureSlot(this,null);else if("tv"===m&&g)for(v=0;v<g.length;v++)n.takeCurrentTextureSlot(this,null);continue}}if(null!=g)if(_)if(g.__slot<0){var x=n.currentTextureSlot(),w=n.setUniform(s,"1i",p,x);w&&(n.takeCurrentTextureSlot(this,g),g.__slot=x)}else n.setUniform(s,"1i",p,g.__slot);else if(Array.isArray(g)){if(0===g.length)continue;if("tv"===m){if(!n.hasUniform(p))continue;var O=[];for(v=0;v<g.length;v++){var S=g[v];if(S.__slot<0){x=n.currentTextureSlot();O.push(x),n.takeCurrentTextureSlot(this,S),S.__slot=x}else O.push(S.__slot)}n.setUniform(s,"1iv",p,O)}else n.setUniform(s,y.type,p,g)}else n.setUniform(s,y.type,p,g)}var T=n.currentTextureSlot();return n.resetTextureSlot(u),T},_bindVAO:function(t,e,n,i){var r=!n.dynamic,a=this.gl,o=this.__uid__+"-"+i.__uid__,s=n.__vaoCache[o];if(!s){var l=n.getBufferChunks(this);if(!l||!l.length)return;for(var u=l[0],c=u.attributeBuffers,h=u.indicesBuffer,d=[],f=[],p=0;p<c.length;p++){var g,m=c[p],v=m.name,y=m.semantic;if(y){var _=e.attributeSemantics[y];g=_&&_.symbol}else g=v;g&&i.attributes[g]&&(d.push(m),f.push(g))}s=new oe(d,f,h),r&&(n.__vaoCache[o]=s)}var b=!0;t&&r&&(null==s.vao?s.vao=t.createVertexArrayOES():b=!1,t.bindVertexArrayOES(s.vao));d=s.availableAttributes,h=s.indicesBuffer;if(b){var x=i.enableAttributes(this,s.availableAttributeSymbols,t&&r&&s);for(p=0;p<d.length;p++){var w=x[p];if(-1!==w){m=d[p];var O=m.buffer,S=m.size,T=ae[m.type]||a.FLOAT;a.bindBuffer(a.ARRAY_BUFFER,O),a.vertexAttribPointer(w,S,T,!1,0,0)}}n.isUseIndices()&&a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,h.buffer)}return s},renderPreZ:function(t,e,n){var i=this.gl,r=this._prezMaterial||new nt({shader:new Xt(Xt.source("clay.prez.vertex"),Xt.source("clay.prez.fragment"))});this._prezMaterial=r,i.colorMask(!1,!1,!1,!1),i.depthMask(!0),this.renderPass(t,n,{ifRender:function(t){return!t.ignorePreZ},isMaterialChanged:function(t,e){var n=t.material,i=e.material;return n.get("diffuseMap")!==i.get("diffuseMap")||(n.get("alphaCutoff")||0)!==(i.get("alphaCutoff")||0)},getUniform:function(t,e,n){if("alphaMap"===n)return t.material.get("diffuseMap");if("alphaCutoff"===n){if(t.material.isDefined("fragment","ALPHA_TEST")&&t.material.get("diffuseMap")){var i=t.material.get("alphaCutoff");return i||0}return 0}return"uvRepeat"===n?t.material.get("uvRepeat"):"uvOffset"===n?t.material.get("uvOffset"):e.get(n)},getMaterial:function(){return r},sort:this.opaqueSortCompare}),i.colorMask(!0,!0,!0,!0),i.depthMask(!0)},disposeScene:function(t){this.disposeNode(t,!0,!0),t.dispose()},disposeNode:function(t,e,n){t.getParent()&&t.getParent().remove(t);var i={};t.traverse((function(t){var r=t.material;if(t.geometry&&e&&t.geometry.dispose(this),n&&r&&!i[r.__uid__]){for(var a=r.getTextureUniforms(),o=0;o<a.length;o++){var s=a[o],l=r.uniforms[s].value,u=r.uniforms[s].type;if(l)if("t"===u)l.dispose&&l.dispose(this);else if("tv"===u)for(var c=0;c<l.length;c++)l[c]&&l[c].dispose&&l[c].dispose(this)}i[r.__uid__]=!0}t.dispose&&t.dispose(this)}),this)},disposeGeometry:function(t){t.dispose(this)},disposeTexture:function(t){t.dispose(this)},disposeFrameBuffer:function(t){t.dispose(this)},dispose:function(){},screenToNDC:function(t,e,n){n||(n=new ct),e=this._height-e;var i=this.viewport,r=n.array;return r[0]=(t-i.x)/i.width,r[0]=2*r[0]-1,r[1]=(e-i.y)/i.height,r[1]=2*r[1]-1,n}});le.opaqueSortCompare=le.prototype.opaqueSortCompare=function(t,e){return t.renderOrder===e.renderOrder?t.__program===e.__program?t.material===e.material?t.geometry.__uid__-e.geometry.__uid__:t.material.__uid__-e.material.__uid__:t.__program&&e.__program?t.__program.__uid__-e.__program.__uid__:0:t.renderOrder-e.renderOrder},le.transparentSortCompare=le.prototype.transparentSortCompare=function(t,e){return t.renderOrder===e.renderOrder?t.__depth===e.__depth?t.__program===e.__program?t.material===e.material?t.geometry.__uid__-e.geometry.__uid__:t.material.__uid__-e.material.__uid__:t.__program&&e.__program?t.__program.__uid__-e.__program.__uid__:0:t.__depth-e.__depth:t.renderOrder-e.renderOrder};var ue={IDENTITY:Jt(),WORLD:Jt(),VIEW:Jt(),PROJECTION:Jt(),WORLDVIEW:Jt(),VIEWPROJECTION:Jt(),WORLDVIEWPROJECTION:Jt(),WORLDINVERSE:Jt(),VIEWINVERSE:Jt(),PROJECTIONINVERSE:Jt(),WORLDVIEWINVERSE:Jt(),VIEWPROJECTIONINVERSE:Jt(),WORLDVIEWPROJECTIONINVERSE:Jt(),WORLDTRANSPOSE:Jt(),VIEWTRANSPOSE:Jt(),PROJECTIONTRANSPOSE:Jt(),WORLDVIEWTRANSPOSE:Jt(),VIEWPROJECTIONTRANSPOSE:Jt(),WORLDVIEWPROJECTIONTRANSPOSE:Jt(),WORLDINVERSETRANSPOSE:Jt(),VIEWINVERSETRANSPOSE:Jt(),PROJECTIONINVERSETRANSPOSE:Jt(),WORLDVIEWINVERSETRANSPOSE:Jt(),VIEWPROJECTIONINVERSETRANSPOSE:Jt(),WORLDVIEWPROJECTIONINVERSETRANSPOSE:Jt()};le.COLOR_BUFFER_BIT=C.COLOR_BUFFER_BIT,le.DEPTH_BUFFER_BIT=C.DEPTH_BUFFER_BIT,le.STENCIL_BUFFER_BIT=C.STENCIL_BUFFER_BIT;var ce=le,he=function(t,e,n){t=t||0,e=e||0,n=n||0,this.array=Qt.fromValues(t,e,n),this._dirty=!0};he.prototype={constructor:he,add:function(t){return Qt.add(this.array,this.array,t.array),this._dirty=!0,this},set:function(t,e,n){return this.array[0]=t,this.array[1]=e,this.array[2]=n,this._dirty=!0,this},setArray:function(t){return this.array[0]=t[0],this.array[1]=t[1],this.array[2]=t[2],this._dirty=!0,this},clone:function(){return new he(this.x,this.y,this.z)},copy:function(t){return Qt.copy(this.array,t.array),this._dirty=!0,this},cross:function(t,e){return Qt.cross(this.array,t.array,e.array),this._dirty=!0,this},dist:function(t){return Qt.dist(this.array,t.array)},distance:function(t){return Qt.distance(this.array,t.array)},div:function(t){return Qt.div(this.array,this.array,t.array),this._dirty=!0,this},divide:function(t){return Qt.divide(this.array,this.array,t.array),this._dirty=!0,this},dot:function(t){return Qt.dot(this.array,t.array)},len:function(){return Qt.len(this.array)},length:function(){return Qt.length(this.array)},lerp:function(t,e,n){return Qt.lerp(this.array,t.array,e.array,n),this._dirty=!0,this},min:function(t){return Qt.min(this.array,this.array,t.array),this._dirty=!0,this},max:function(t){return Qt.max(this.array,this.array,t.array),this._dirty=!0,this},mul:function(t){return Qt.mul(this.array,this.array,t.array),this._dirty=!0,this},multiply:function(t){return Qt.multiply(this.array,this.array,t.array),this._dirty=!0,this},negate:function(){return Qt.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return Qt.normalize(this.array,this.array),this._dirty=!0,this},random:function(t){return Qt.random(this.array,t),this._dirty=!0,this},scale:function(t){return Qt.scale(this.array,this.array,t),this._dirty=!0,this},scaleAndAdd:function(t,e){return Qt.scaleAndAdd(this.array,this.array,t.array,e),this._dirty=!0,this},sqrDist:function(t){return Qt.sqrDist(this.array,t.array)},squaredDistance:function(t){return Qt.squaredDistance(this.array,t.array)},sqrLen:function(){return Qt.sqrLen(this.array)},squaredLength:function(){return Qt.squaredLength(this.array)},sub:function(t){return Qt.sub(this.array,this.array,t.array),this._dirty=!0,this},subtract:function(t){return Qt.subtract(this.array,this.array,t.array),this._dirty=!0,this},transformMat3:function(t){return Qt.transformMat3(this.array,this.array,t.array),this._dirty=!0,this},transformMat4:function(t){return Qt.transformMat4(this.array,this.array,t.array),this._dirty=!0,this},transformQuat:function(t){return Qt.transformQuat(this.array,this.array,t.array),this._dirty=!0,this},applyProjection:function(t){var e=this.array;if(t=t.array,0===t[15]){var n=-1/e[2];e[0]=t[0]*e[0]*n,e[1]=t[5]*e[1]*n,e[2]=(t[10]*e[2]+t[14])*n}else e[0]=t[0]*e[0]+t[12],e[1]=t[5]*e[1]+t[13],e[2]=t[10]*e[2]+t[14];return this._dirty=!0,this},eulerFromQuat:function(t,e){he.eulerFromQuat(this,t,e)},eulerFromMat3:function(t,e){he.eulerFromMat3(this,t,e)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var de=Object.defineProperty;if(de){var fe=he.prototype;de(fe,"x",{get:function(){return this.array[0]},set:function(t){this.array[0]=t,this._dirty=!0}}),de(fe,"y",{get:function(){return this.array[1]},set:function(t){this.array[1]=t,this._dirty=!0}}),de(fe,"z",{get:function(){return this.array[2]},set:function(t){this.array[2]=t,this._dirty=!0}})}function pe(t,e,n){return t<e?e:t>n?n:t}he.add=function(t,e,n){return Qt.add(t.array,e.array,n.array),t._dirty=!0,t},he.set=function(t,e,n,i){Qt.set(t.array,e,n,i),t._dirty=!0},he.copy=function(t,e){return Qt.copy(t.array,e.array),t._dirty=!0,t},he.cross=function(t,e,n){return Qt.cross(t.array,e.array,n.array),t._dirty=!0,t},he.dist=function(t,e){return Qt.distance(t.array,e.array)},he.distance=he.dist,he.div=function(t,e,n){return Qt.divide(t.array,e.array,n.array),t._dirty=!0,t},he.divide=he.div,he.dot=function(t,e){return Qt.dot(t.array,e.array)},he.len=function(t){return Qt.length(t.array)},he.lerp=function(t,e,n,i){return Qt.lerp(t.array,e.array,n.array,i),t._dirty=!0,t},he.min=function(t,e,n){return Qt.min(t.array,e.array,n.array),t._dirty=!0,t},he.max=function(t,e,n){return Qt.max(t.array,e.array,n.array),t._dirty=!0,t},he.mul=function(t,e,n){return Qt.multiply(t.array,e.array,n.array),t._dirty=!0,t},he.multiply=he.mul,he.negate=function(t,e){return Qt.negate(t.array,e.array),t._dirty=!0,t},he.normalize=function(t,e){return Qt.normalize(t.array,e.array),t._dirty=!0,t},he.random=function(t,e){return Qt.random(t.array,e),t._dirty=!0,t},he.scale=function(t,e,n){return Qt.scale(t.array,e.array,n),t._dirty=!0,t},he.scaleAndAdd=function(t,e,n,i){return Qt.scaleAndAdd(t.array,e.array,n.array,i),t._dirty=!0,t},he.sqrDist=function(t,e){return Qt.sqrDist(t.array,e.array)},he.squaredDistance=he.sqrDist,he.sqrLen=function(t){return Qt.sqrLen(t.array)},he.squaredLength=he.sqrLen,he.sub=function(t,e,n){return Qt.subtract(t.array,e.array,n.array),t._dirty=!0,t},he.subtract=he.sub,he.transformMat3=function(t,e,n){return Qt.transformMat3(t.array,e.array,n.array),t._dirty=!0,t},he.transformMat4=function(t,e,n){return Qt.transformMat4(t.array,e.array,n.array),t._dirty=!0,t},he.transformQuat=function(t,e,n){return Qt.transformQuat(t.array,e.array,n.array),t._dirty=!0,t};var ge=Math.atan2,me=Math.asin,ve=Math.abs;he.eulerFromQuat=function(t,e,n){t._dirty=!0,e=e.array;var i=t.array,r=e[0],a=e[1],o=e[2],s=e[3],l=r*r,u=a*a,c=o*o,h=s*s;n=(n||"XYZ").toUpperCase();switch(n){case"XYZ":i[0]=ge(2*(r*s-a*o),h-l-u+c),i[1]=me(pe(2*(r*o+a*s),-1,1)),i[2]=ge(2*(o*s-r*a),h+l-u-c);break;case"YXZ":i[0]=me(pe(2*(r*s-a*o),-1,1)),i[1]=ge(2*(r*o+a*s),h-l-u+c),i[2]=ge(2*(r*a+o*s),h-l+u-c);break;case"ZXY":i[0]=me(pe(2*(r*s+a*o),-1,1)),i[1]=ge(2*(a*s-o*r),h-l-u+c),i[2]=ge(2*(o*s-r*a),h-l+u-c);break;case"ZYX":i[0]=ge(2*(r*s+o*a),h-l-u+c),i[1]=me(pe(2*(a*s-r*o),-1,1)),i[2]=ge(2*(r*a+o*s),h+l-u-c);break;case"YZX":i[0]=ge(2*(r*s-o*a),h-l+u-c),i[1]=ge(2*(a*s-r*o),h+l-u-c),i[2]=me(pe(2*(r*a+o*s),-1,1));break;case"XZY":i[0]=ge(2*(r*s+a*o),h-l+u-c),i[1]=ge(2*(r*o+a*s),h+l-u-c),i[2]=me(pe(2*(o*s-r*a),-1,1));break;default:console.warn("Unkown order: "+n)}return t},he.eulerFromMat3=function(t,e,n){var i=e.array,r=i[0],a=i[3],o=i[6],s=i[1],l=i[4],u=i[7],c=i[2],h=i[5],d=i[8],f=t.array;n=(n||"XYZ").toUpperCase();switch(n){case"XYZ":f[1]=me(pe(o,-1,1)),ve(o)<.99999?(f[0]=ge(-u,d),f[2]=ge(-a,r)):(f[0]=ge(h,l),f[2]=0);break;case"YXZ":f[0]=me(-pe(u,-1,1)),ve(u)<.99999?(f[1]=ge(o,d),f[2]=ge(s,l)):(f[1]=ge(-c,r),f[2]=0);break;case"ZXY":f[0]=me(pe(h,-1,1)),ve(h)<.99999?(f[1]=ge(-c,d),f[2]=ge(-a,l)):(f[1]=0,f[2]=ge(s,r));break;case"ZYX":f[1]=me(-pe(c,-1,1)),ve(c)<.99999?(f[0]=ge(h,d),f[2]=ge(s,r)):(f[0]=0,f[2]=ge(-a,l));break;case"YZX":f[2]=me(pe(s,-1,1)),ve(s)<.99999?(f[0]=ge(-u,l),f[1]=ge(-c,r)):(f[0]=0,f[1]=ge(o,d));break;case"XZY":f[2]=me(-pe(a,-1,1)),ve(a)<.99999?(f[0]=ge(h,l),f[1]=ge(o,r)):(f[0]=ge(-u,d),f[1]=0);break;default:console.warn("Unkown order: "+n)}return t._dirty=!0,t},Object.defineProperties(he,{POSITIVE_X:{get:function(){return new he(1,0,0)}},NEGATIVE_X:{get:function(){return new he(-1,0,0)}},POSITIVE_Y:{get:function(){return new he(0,1,0)}},NEGATIVE_Y:{get:function(){return new he(0,-1,0)}},POSITIVE_Z:{get:function(){return new he(0,0,1)}},NEGATIVE_Z:{get:function(){return new he(0,0,-1)}},UP:{get:function(){return new he(0,1,0)}},ZERO:{get:function(){return new he}}});var ye=he,_e=1e-5,be=function(t,e){this.origin=t||new ye,this.direction=e||new ye};be.prototype={constructor:be,intersectPlane:function(t,e){var n=t.normal.array,i=t.distance,r=this.origin.array,a=this.direction.array,o=Qt.dot(n,a);if(0===o)return null;e||(e=new ye);var s=(Qt.dot(n,r)-i)/o;return Qt.scaleAndAdd(e.array,r,a,-s),e._dirty=!0,e},mirrorAgainstPlane:function(t){var e=Qt.dot(t.normal.array,this.direction.array);Qt.scaleAndAdd(this.direction.array,this.direction.array,t.normal.array,2*-e),this.direction._dirty=!0},distanceToPoint:function(){var t=Qt.create();return function(e){Qt.sub(t,e,this.origin.array);var n=Qt.dot(t,this.direction.array);if(n<0)return Qt.distance(this.origin.array,e);var i=Qt.lenSquared(t);return Math.sqrt(i-n*n)}}(),intersectSphere:function(){var t=Qt.create();return function(e,n,i){var r=this.origin.array,a=this.direction.array;e=e.array,Qt.sub(t,e,r);var o=Qt.dot(t,a),s=Qt.squaredLength(t),l=s-o*o,u=n*n;if(!(l>u)){var c=Math.sqrt(u-l),h=o-c,d=o+c;return i||(i=new ye),h<0?d<0?null:(Qt.scaleAndAdd(i.array,r,a,d),i):(Qt.scaleAndAdd(i.array,r,a,h),i)}}}(),intersectBoundingBox:function(t,e){var n,i,r,a,o,s,l=this.direction.array,u=this.origin.array,c=t.min.array,h=t.max.array,d=1/l[0],f=1/l[1],p=1/l[2];if(d>=0?(n=(c[0]-u[0])*d,i=(h[0]-u[0])*d):(i=(c[0]-u[0])*d,n=(h[0]-u[0])*d),f>=0?(r=(c[1]-u[1])*f,a=(h[1]-u[1])*f):(a=(c[1]-u[1])*f,r=(h[1]-u[1])*f),n>a||r>i)return null;if((r>n||n!==n)&&(n=r),(a<i||i!==i)&&(i=a),p>=0?(o=(c[2]-u[2])*p,s=(h[2]-u[2])*p):(s=(c[2]-u[2])*p,o=(h[2]-u[2])*p),n>s||o>i)return null;if((o>n||n!==n)&&(n=o),(s<i||i!==i)&&(i=s),i<0)return null;var g=n>=0?n:i;return e||(e=new ye),Qt.scaleAndAdd(e.array,u,l,g),e},intersectTriangle:function(){var t=Qt.create(),e=Qt.create(),n=Qt.create(),i=Qt.create();return function(r,a,o,s,l,u){var c=this.direction.array,h=this.origin.array;r=r.array,a=a.array,o=o.array,Qt.sub(t,a,r),Qt.sub(e,o,r),Qt.cross(i,e,c);var d=Qt.dot(t,i);if(s){if(d>-_e)return null}else if(d>-_e&&d<_e)return null;Qt.sub(n,h,r);var f=Qt.dot(i,n)/d;if(f<0||f>1)return null;Qt.cross(i,t,n);var p=Qt.dot(c,i)/d;if(p<0||p>1||f+p>1)return null;Qt.cross(i,t,e);var g=-Qt.dot(n,i)/d;return g<0?null:(l||(l=new ye),u&&ye.set(u,1-f-p,f,p),Qt.scaleAndAdd(l.array,h,c,g),l)}}(),applyTransform:function(t){ye.add(this.direction,this.direction,this.origin),ye.transformMat4(this.origin,this.origin,t),ye.transformMat4(this.direction,this.direction,t),ye.sub(this.direction,this.direction,this.origin),ye.normalize(this.direction,this.direction)},copy:function(t){ye.copy(this.origin,t.origin),ye.copy(this.direction,t.direction)},clone:function(){var t=new be;return t.copy(this),t}};var xe=be,we={create:function(){var t=new rt(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},clone:function(t){var e=new rt(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},fromValues:function(t,e,n,i){var r=new rt(4);return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},set:function(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},subtract:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}};we.sub=we.subtract,we.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t},we.mul=we.multiply,we.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t},we.div=we.divide,we.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},we.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},we.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},we.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t},we.distance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+i*i+r*r+a*a)},we.dist=we.distance,we.squaredDistance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],a=e[3]-t[3];return n*n+i*i+r*r+a*a},we.sqrDist=we.squaredDistance,we.length=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return Math.sqrt(e*e+n*n+i*i+r*r)},we.len=we.length,we.squaredLength=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return e*e+n*n+i*i+r*r},we.sqrLen=we.squaredLength,we.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},we.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},we.normalize=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n*n+i*i+r*r+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t[3]=e[3]*o),t},we.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},we.lerp=function(t,e,n,i){var r=e[0],a=e[1],o=e[2],s=e[3];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t[2]=o+i*(n[2]-o),t[3]=s+i*(n[3]-s),t},we.random=function(t,e){return e=e||1,t[0]=at(),t[1]=at(),t[2]=at(),t[3]=at(),we.normalize(t,t),we.scale(t,t,e),t},we.transformMat4=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3];return t[0]=n[0]*i+n[4]*r+n[8]*a+n[12]*o,t[1]=n[1]*i+n[5]*r+n[9]*a+n[13]*o,t[2]=n[2]*i+n[6]*r+n[10]*a+n[14]*o,t[3]=n[3]*i+n[7]*r+n[11]*a+n[15]*o,t},we.transformQuat=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[0],s=n[1],l=n[2],u=n[3],c=u*i+s*a-l*r,h=u*r+l*i-o*a,d=u*a+o*r-s*i,f=-o*i-s*r-l*a;return t[0]=c*u+f*-o+h*-l-d*-s,t[1]=h*u+f*-s+d*-o-c*-l,t[2]=d*u+f*-l+c*-s-h*-o,t},we.forEach=function(){var t=we.create();return function(e,n,i,r,a,o){var s,l;for(n||(n=4),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],t[3]=e[s+3],a(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2],e[s+3]=t[3];return e}}();var Oe=we,Se={create:function(){var t=new rt(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromMat4:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},clone:function(t){var e=new rt(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},transpose:function(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},invert:function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=c*o-s*u,d=-c*a+s*l,f=u*a-o*l,p=n*h+i*d+r*f;return p?(p=1/p,t[0]=h*p,t[1]=(-c*i+r*u)*p,t[2]=(s*i-r*o)*p,t[3]=d*p,t[4]=(c*n-r*l)*p,t[5]=(-s*n+r*a)*p,t[6]=f*p,t[7]=(-u*n+i*l)*p,t[8]=(o*n-i*a)*p,t):null},adjoint:function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8];return t[0]=o*c-s*u,t[1]=r*u-i*c,t[2]=i*s-r*o,t[3]=s*l-a*c,t[4]=n*c-r*l,t[5]=r*a-n*s,t[6]=a*u-o*l,t[7]=i*l-n*u,t[8]=n*o-i*a,t},determinant:function(t){var e=t[0],n=t[1],i=t[2],r=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8];return e*(u*a-o*l)+n*(-u*r+o*s)+i*(l*r-a*s)},multiply:function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],f=n[1],p=n[2],g=n[3],m=n[4],v=n[5],y=n[6],_=n[7],b=n[8];return t[0]=d*i+f*o+p*u,t[1]=d*r+f*s+p*c,t[2]=d*a+f*l+p*h,t[3]=g*i+m*o+v*u,t[4]=g*r+m*s+v*c,t[5]=g*a+m*l+v*h,t[6]=y*i+_*o+b*u,t[7]=y*r+_*s+b*c,t[8]=y*a+_*l+b*h,t}};Se.mul=Se.multiply,Se.translate=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],f=n[1];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=d*i+f*o+u,t[7]=d*r+f*s+c,t[8]=d*a+f*l+h,t},Se.rotate=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=Math.sin(n),f=Math.cos(n);return t[0]=f*i+d*o,t[1]=f*r+d*s,t[2]=f*a+d*l,t[3]=f*o-d*i,t[4]=f*s-d*r,t[5]=f*l-d*a,t[6]=u,t[7]=c,t[8]=h,t},Se.scale=function(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},Se.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},Se.fromQuat=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n+n,s=i+i,l=r+r,u=n*o,c=i*o,h=i*s,d=r*o,f=r*s,p=r*l,g=a*o,m=a*s,v=a*l;return t[0]=1-h-p,t[3]=c-v,t[6]=d+m,t[1]=c+v,t[4]=1-u-p,t[7]=f-g,t[2]=d-m,t[5]=f+g,t[8]=1-u-h,t},Se.normalFromMat4=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],m=e[14],v=e[15],y=n*s-i*o,_=n*l-r*o,b=n*u-a*o,x=i*l-r*s,w=i*u-a*s,O=r*u-a*l,S=c*g-h*p,T=c*m-d*p,M=c*v-f*p,A=h*m-d*g,C=h*v-f*g,I=d*v-f*m,D=y*I-_*C+b*A+x*M-w*T+O*S;return D?(D=1/D,t[0]=(s*I-l*C+u*A)*D,t[1]=(l*M-o*I-u*T)*D,t[2]=(o*C-s*M+u*S)*D,t[3]=(r*C-i*I-a*A)*D,t[4]=(n*I-r*M+a*T)*D,t[5]=(i*M-n*C-a*S)*D,t[6]=(g*O-m*w+v*x)*D,t[7]=(m*b-p*O-v*_)*D,t[8]=(p*w-g*b+v*y)*D,t):null},Se.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))};var Te=Se,Me={create:function(){var t=new rt(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}};Me.rotationTo=function(){var t=Qt.create(),e=Qt.fromValues(1,0,0),n=Qt.fromValues(0,1,0);return function(i,r,a){var o=Qt.dot(r,a);return o<-.999999?(Qt.cross(t,e,r),Qt.length(t)<1e-6&&Qt.cross(t,n,r),Qt.normalize(t,t),Me.setAxisAngle(i,t,Math.PI),i):o>.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(Qt.cross(t,r,a),i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=1+o,Me.normalize(i,i))}}(),Me.setAxes=function(){var t=Te.create();return function(e,n,i,r){return t[0]=i[0],t[3]=i[1],t[6]=i[2],t[1]=r[0],t[4]=r[1],t[7]=r[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],Me.normalize(e,Me.fromMat3(e,t))}}(),Me.clone=Oe.clone,Me.fromValues=Oe.fromValues,Me.copy=Oe.copy,Me.set=Oe.set,Me.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},Me.setAxisAngle=function(t,e,n){n*=.5;var i=Math.sin(n);return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=Math.cos(n),t},Me.add=Oe.add,Me.multiply=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=i*c+o*s+r*u-a*l,t[1]=r*c+o*l+a*s-i*u,t[2]=a*c+o*u+i*l-r*s,t[3]=o*c-i*s-r*l-a*u,t},Me.mul=Me.multiply,Me.scale=Oe.scale,Me.rotateX=function(t,e,n){n*=.5;var i=e[0],r=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+o*s,t[1]=r*l+a*s,t[2]=a*l-r*s,t[3]=o*l-i*s,t},Me.rotateY=function(t,e,n){n*=.5;var i=e[0],r=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l-a*s,t[1]=r*l+o*s,t[2]=a*l+i*s,t[3]=o*l-r*s,t},Me.rotateZ=function(t,e,n){n*=.5;var i=e[0],r=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+r*s,t[1]=r*l-i*s,t[2]=a*l+o*s,t[3]=o*l-a*s,t},Me.calculateW=function(t,e){var n=e[0],i=e[1],r=e[2];return t[0]=n,t[1]=i,t[2]=r,t[3]=Math.sqrt(Math.abs(1-n*n-i*i-r*r)),t},Me.dot=Oe.dot,Me.lerp=Oe.lerp,Me.slerp=function(t,e,n,i){var r,a,o,s,l,u=e[0],c=e[1],h=e[2],d=e[3],f=n[0],p=n[1],g=n[2],m=n[3];return a=u*f+c*p+h*g+d*m,a<0&&(a=-a,f=-f,p=-p,g=-g,m=-m),1-a>1e-6?(r=Math.acos(a),o=Math.sin(r),s=Math.sin((1-i)*r)/o,l=Math.sin(i*r)/o):(s=1-i,l=i),t[0]=s*u+l*f,t[1]=s*c+l*p,t[2]=s*h+l*g,t[3]=s*d+l*m,t},Me.invert=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n*n+i*i+r*r+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-i*s,t[2]=-r*s,t[3]=a*s,t},Me.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},Me.length=Oe.length,Me.len=Me.length,Me.squaredLength=Oe.squaredLength,Me.sqrLen=Me.squaredLength,Me.normalize=Oe.normalize,Me.fromMat3=function(t,e){var n,i=e[0]+e[4]+e[8];if(i>0)n=Math.sqrt(i+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);var a=(r+1)%3,o=(r+2)%3;n=Math.sqrt(e[3*r+r]-e[3*a+a]-e[3*o+o]+1),t[r]=.5*n,n=.5/n,t[3]=(e[3*a+o]-e[3*o+a])*n,t[a]=(e[3*a+r]+e[3*r+a])*n,t[o]=(e[3*o+r]+e[3*r+o])*n}return t};var Ae=Me,Ce=function(){this._axisX=new ye,this._axisY=new ye,this._axisZ=new ye,this.array=Yt.create(),this._dirty=!0};Ce.prototype={constructor:Ce,setArray:function(t){for(var e=0;e<this.array.length;e++)this.array[e]=t[e];return this._dirty=!0,this},adjoint:function(){return Yt.adjoint(this.array,this.array),this._dirty=!0,this},clone:function(){return(new Ce).copy(this)},copy:function(t){return Yt.copy(this.array,t.array),this._dirty=!0,this},determinant:function(){return Yt.determinant(this.array)},fromQuat:function(t){return Yt.fromQuat(this.array,t.array),this._dirty=!0,this},fromRotationTranslation:function(t,e){return Yt.fromRotationTranslation(this.array,t.array,e.array),this._dirty=!0,this},fromMat2d:function(t){return Ce.fromMat2d(this,t),this},frustum:function(t,e,n,i,r,a){return Yt.frustum(this.array,t,e,n,i,r,a),this._dirty=!0,this},identity:function(){return Yt.identity(this.array),this._dirty=!0,this},invert:function(){return Yt.invert(this.array,this.array),this._dirty=!0,this},lookAt:function(t,e,n){return Yt.lookAt(this.array,t.array,e.array,n.array),this._dirty=!0,this},mul:function(t){return Yt.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return Yt.mul(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return Yt.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return Yt.multiply(this.array,t.array,this.array),this._dirty=!0,this},ortho:function(t,e,n,i,r,a){return Yt.ortho(this.array,t,e,n,i,r,a),this._dirty=!0,this},perspective:function(t,e,n,i){return Yt.perspective(this.array,t,e,n,i),this._dirty=!0,this},rotate:function(t,e){return Yt.rotate(this.array,this.array,t,e.array),this._dirty=!0,this},rotateX:function(t){return Yt.rotateX(this.array,this.array,t),this._dirty=!0,this},rotateY:function(t){return Yt.rotateY(this.array,this.array,t),this._dirty=!0,this},rotateZ:function(t){return Yt.rotateZ(this.array,this.array,t),this._dirty=!0,this},scale:function(t){return Yt.scale(this.array,this.array,t.array),this._dirty=!0,this},translate:function(t){return Yt.translate(this.array,this.array,t.array),this._dirty=!0,this},transpose:function(){return Yt.transpose(this.array,this.array),this._dirty=!0,this},decomposeMatrix:function(){var t=Qt.create(),e=Qt.create(),n=Qt.create(),i=Te.create();return function(r,a,o){var s=this.array;Qt.set(t,s[0],s[1],s[2]),Qt.set(e,s[4],s[5],s[6]),Qt.set(n,s[8],s[9],s[10]);var l=Qt.length(t),u=Qt.length(e),c=Qt.length(n),h=this.determinant();h<0&&(l=-l),r&&r.set(l,u,c),o.set(s[12],s[13],s[14]),Te.fromMat4(i,s),i[0]/=l,i[1]/=l,i[2]/=l,i[3]/=u,i[4]/=u,i[5]/=u,i[6]/=c,i[7]/=c,i[8]/=c,Ae.fromMat3(a.array,i),Ae.normalize(a.array,a.array),a._dirty=!0,o._dirty=!0}}(),toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var Ie=Object.defineProperty;if(Ie){var De=Ce.prototype;Ie(De,"z",{get:function(){var t=this.array;return this._axisZ.set(t[8],t[9],t[10]),this._axisZ},set:function(t){var e=this.array;t=t.array,e[8]=t[0],e[9]=t[1],e[10]=t[2],this._dirty=!0}}),Ie(De,"y",{get:function(){var t=this.array;return this._axisY.set(t[4],t[5],t[6]),this._axisY},set:function(t){var e=this.array;t=t.array,e[4]=t[0],e[5]=t[1],e[6]=t[2],this._dirty=!0}}),Ie(De,"x",{get:function(){var t=this.array;return this._axisX.set(t[0],t[1],t[2]),this._axisX},set:function(t){var e=this.array;t=t.array,e[0]=t[0],e[1]=t[1],e[2]=t[2],this._dirty=!0}})}Ce.adjoint=function(t,e){return Yt.adjoint(t.array,e.array),t._dirty=!0,t},Ce.copy=function(t,e){return Yt.copy(t.array,e.array),t._dirty=!0,t},Ce.determinant=function(t){return Yt.determinant(t.array)},Ce.identity=function(t){return Yt.identity(t.array),t._dirty=!0,t},Ce.ortho=function(t,e,n,i,r,a,o){return Yt.ortho(t.array,e,n,i,r,a,o),t._dirty=!0,t},Ce.perspective=function(t,e,n,i,r){return Yt.perspective(t.array,e,n,i,r),t._dirty=!0,t},Ce.lookAt=function(t,e,n,i){return Yt.lookAt(t.array,e.array,n.array,i.array),t._dirty=!0,t},Ce.invert=function(t,e){return Yt.invert(t.array,e.array),t._dirty=!0,t},Ce.mul=function(t,e,n){return Yt.mul(t.array,e.array,n.array),t._dirty=!0,t},Ce.multiply=Ce.mul,Ce.fromQuat=function(t,e){return Yt.fromQuat(t.array,e.array),t._dirty=!0,t},Ce.fromRotationTranslation=function(t,e,n){return Yt.fromRotationTranslation(t.array,e.array,n.array),t._dirty=!0,t},Ce.fromMat2d=function(t,e){t._dirty=!0;e=e.array,t=t.array;return t[0]=e[0],t[4]=e[2],t[12]=e[4],t[1]=e[1],t[5]=e[3],t[13]=e[5],t},Ce.rotate=function(t,e,n,i){return Yt.rotate(t.array,e.array,n,i.array),t._dirty=!0,t},Ce.rotateX=function(t,e,n){return Yt.rotateX(t.array,e.array,n),t._dirty=!0,t},Ce.rotateY=function(t,e,n){return Yt.rotateY(t.array,e.array,n),t._dirty=!0,t},Ce.rotateZ=function(t,e,n){return Yt.rotateZ(t.array,e.array,n),t._dirty=!0,t},Ce.scale=function(t,e,n){return Yt.scale(t.array,e.array,n.array),t._dirty=!0,t},Ce.transpose=function(t,e){return Yt.transpose(t.array,e.array),t._dirty=!0,t},Ce.translate=function(t,e,n){return Yt.translate(t.array,e.array,n.array),t._dirty=!0,t};var Le=Ce,Ee=function(t,e,n,i){t=t||0,e=e||0,n=n||0,i=void 0===i?1:i,this.array=Ae.fromValues(t,e,n,i),this._dirty=!0};Ee.prototype={constructor:Ee,add:function(t){return Ae.add(this.array,this.array,t.array),this._dirty=!0,this},calculateW:function(){return Ae.calculateW(this.array,this.array),this._dirty=!0,this},set:function(t,e,n,i){return this.array[0]=t,this.array[1]=e,this.array[2]=n,this.array[3]=i,this._dirty=!0,this},setArray:function(t){return this.array[0]=t[0],this.array[1]=t[1],this.array[2]=t[2],this.array[3]=t[3],this._dirty=!0,this},clone:function(){return new Ee(this.x,this.y,this.z,this.w)},conjugate:function(){return Ae.conjugate(this.array,this.array),this._dirty=!0,this},copy:function(t){return Ae.copy(this.array,t.array),this._dirty=!0,this},dot:function(t){return Ae.dot(this.array,t.array)},fromMat3:function(t){return Ae.fromMat3(this.array,t.array),this._dirty=!0,this},fromMat4:function(){var t=Te.create();return function(e){return Te.fromMat4(t,e.array),Te.transpose(t,t),Ae.fromMat3(this.array,t),this._dirty=!0,this}}(),identity:function(){return Ae.identity(this.array),this._dirty=!0,this},invert:function(){return Ae.invert(this.array,this.array),this._dirty=!0,this},len:function(){return Ae.len(this.array)},length:function(){return Ae.length(this.array)},lerp:function(t,e,n){return Ae.lerp(this.array,t.array,e.array,n),this._dirty=!0,this},mul:function(t){return Ae.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return Ae.multiply(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return Ae.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return Ae.multiply(this.array,t.array,this.array),this._dirty=!0,this},normalize:function(){return Ae.normalize(this.array,this.array),this._dirty=!0,this},rotateX:function(t){return Ae.rotateX(this.array,this.array,t),this._dirty=!0,this},rotateY:function(t){return Ae.rotateY(this.array,this.array,t),this._dirty=!0,this},rotateZ:function(t){return Ae.rotateZ(this.array,this.array,t),this._dirty=!0,this},rotationTo:function(t,e){return Ae.rotationTo(this.array,t.array,e.array),this._dirty=!0,this},setAxes:function(t,e,n){return Ae.setAxes(this.array,t.array,e.array,n.array),this._dirty=!0,this},setAxisAngle:function(t,e){return Ae.setAxisAngle(this.array,t.array,e),this._dirty=!0,this},slerp:function(t,e,n){return Ae.slerp(this.array,t.array,e.array,n),this._dirty=!0,this},sqrLen:function(){return Ae.sqrLen(this.array)},squaredLength:function(){return Ae.squaredLength(this.array)},fromEuler:function(t,e){return Ee.fromEuler(this,t,e)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var je=Object.defineProperty;if(je){var Pe=Ee.prototype;je(Pe,"x",{get:function(){return this.array[0]},set:function(t){this.array[0]=t,this._dirty=!0}}),je(Pe,"y",{get:function(){return this.array[1]},set:function(t){this.array[1]=t,this._dirty=!0}}),je(Pe,"z",{get:function(){return this.array[2]},set:function(t){this.array[2]=t,this._dirty=!0}}),je(Pe,"w",{get:function(){return this.array[3]},set:function(t){this.array[3]=t,this._dirty=!0}})}Ee.add=function(t,e,n){return Ae.add(t.array,e.array,n.array),t._dirty=!0,t},Ee.set=function(t,e,n,i,r){Ae.set(t.array,e,n,i,r),t._dirty=!0},Ee.copy=function(t,e){return Ae.copy(t.array,e.array),t._dirty=!0,t},Ee.calculateW=function(t,e){return Ae.calculateW(t.array,e.array),t._dirty=!0,t},Ee.conjugate=function(t,e){return Ae.conjugate(t.array,e.array),t._dirty=!0,t},Ee.identity=function(t){return Ae.identity(t.array),t._dirty=!0,t},Ee.invert=function(t,e){return Ae.invert(t.array,e.array),t._dirty=!0,t},Ee.dot=function(t,e){return Ae.dot(t.array,e.array)},Ee.len=function(t){return Ae.length(t.array)},Ee.lerp=function(t,e,n,i){return Ae.lerp(t.array,e.array,n.array,i),t._dirty=!0,t},Ee.slerp=function(t,e,n,i){return Ae.slerp(t.array,e.array,n.array,i),t._dirty=!0,t},Ee.mul=function(t,e,n){return Ae.multiply(t.array,e.array,n.array),t._dirty=!0,t},Ee.multiply=Ee.mul,Ee.rotateX=function(t,e,n){return Ae.rotateX(t.array,e.array,n),t._dirty=!0,t},Ee.rotateY=function(t,e,n){return Ae.rotateY(t.array,e.array,n),t._dirty=!0,t},Ee.rotateZ=function(t,e,n){return Ae.rotateZ(t.array,e.array,n),t._dirty=!0,t},Ee.setAxisAngle=function(t,e,n){return Ae.setAxisAngle(t.array,e.array,n),t._dirty=!0,t},Ee.normalize=function(t,e){return Ae.normalize(t.array,e.array),t._dirty=!0,t},Ee.sqrLen=function(t){return Ae.sqrLen(t.array)},Ee.squaredLength=Ee.sqrLen,Ee.fromMat3=function(t,e){return Ae.fromMat3(t.array,e.array),t._dirty=!0,t},Ee.setAxes=function(t,e,n,i){return Ae.setAxes(t.array,e.array,n.array,i.array),t._dirty=!0,t},Ee.rotationTo=function(t,e,n){return Ae.rotationTo(t.array,e.array,n.array),t._dirty=!0,t},Ee.fromEuler=function(t,e,n){t._dirty=!0,e=e.array;var i=t.array,r=Math.cos(e[0]/2),a=Math.cos(e[1]/2),o=Math.cos(e[2]/2),s=Math.sin(e[0]/2),l=Math.sin(e[1]/2),u=Math.sin(e[2]/2);n=(n||"XYZ").toUpperCase();switch(n){case"XYZ":i[0]=s*a*o+r*l*u,i[1]=r*l*o-s*a*u,i[2]=r*a*u+s*l*o,i[3]=r*a*o-s*l*u;break;case"YXZ":i[0]=s*a*o+r*l*u,i[1]=r*l*o-s*a*u,i[2]=r*a*u-s*l*o,i[3]=r*a*o+s*l*u;break;case"ZXY":i[0]=s*a*o-r*l*u,i[1]=r*l*o+s*a*u,i[2]=r*a*u+s*l*o,i[3]=r*a*o-s*l*u;break;case"ZYX":i[0]=s*a*o-r*l*u,i[1]=r*l*o+s*a*u,i[2]=r*a*u-s*l*o,i[3]=r*a*o+s*l*u;break;case"YZX":i[0]=s*a*o+r*l*u,i[1]=r*l*o+s*a*u,i[2]=r*a*u-s*l*o,i[3]=r*a*o-s*l*u;break;case"XZY":i[0]=s*a*o-r*l*u,i[1]=r*l*o-s*a*u,i[2]=r*a*u+s*l*o,i[3]=r*a*o+s*l*u;break}};var Ne=Ee,Re=Qt.set,ke=Qt.copy,Be=function(t,e){this.min=t||new ye(1/0,1/0,1/0),this.max=e||new ye(-1/0,-1/0,-1/0),this.vertices=null};Be.prototype={constructor:Be,updateFromVertices:function(t){if(t.length>0){var e=this.min,n=this.max,i=e.array,r=n.array;ke(i,t[0]),ke(r,t[0]);for(var a=1;a<t.length;a++){var o=t[a];o[0]<i[0]&&(i[0]=o[0]),o[1]<i[1]&&(i[1]=o[1]),o[2]<i[2]&&(i[2]=o[2]),o[0]>r[0]&&(r[0]=o[0]),o[1]>r[1]&&(r[1]=o[1]),o[2]>r[2]&&(r[2]=o[2])}e._dirty=!0,n._dirty=!0}},union:function(t){var e=this.min,n=this.max;return Qt.min(e.array,e.array,t.min.array),Qt.max(n.array,n.array,t.max.array),e._dirty=!0,n._dirty=!0,this},intersection:function(t){var e=this.min,n=this.max;return Qt.max(e.array,e.array,t.min.array),Qt.min(n.array,n.array,t.max.array),e._dirty=!0,n._dirty=!0,this},intersectBoundingBox:function(t){var e=this.min.array,n=this.max.array,i=t.min.array,r=t.max.array;return!(e[0]>r[0]||e[1]>r[1]||e[2]>r[2]||n[0]<i[0]||n[1]<i[1]||n[2]<i[2])},containBoundingBox:function(t){var e=this.min.array,n=this.max.array,i=t.min.array,r=t.max.array;return e[0]<=i[0]&&e[1]<=i[1]&&e[2]<=i[2]&&n[0]>=r[0]&&n[1]>=r[1]&&n[2]>=r[2]},containPoint:function(t){var e=this.min.array,n=this.max.array,i=t.array;return e[0]<=i[0]&&e[1]<=i[1]&&e[2]<=i[2]&&n[0]>=i[0]&&n[1]>=i[1]&&n[2]>=i[2]},isFinite:function(){var t=this.min.array,e=this.max.array;return isFinite(t[0])&&isFinite(t[1])&&isFinite(t[2])&&isFinite(e[0])&&isFinite(e[1])&&isFinite(e[2])},applyTransform:function(t){this.transformFrom(this,t)},transformFrom:function(){var t=Qt.create(),e=Qt.create(),n=Qt.create(),i=Qt.create(),r=Qt.create(),a=Qt.create();return function(o,s){var l=o.min.array,u=o.max.array,c=s.array;return t[0]=c[0]*l[0],t[1]=c[1]*l[0],t[2]=c[2]*l[0],e[0]=c[0]*u[0],e[1]=c[1]*u[0],e[2]=c[2]*u[0],n[0]=c[4]*l[1],n[1]=c[5]*l[1],n[2]=c[6]*l[1],i[0]=c[4]*u[1],i[1]=c[5]*u[1],i[2]=c[6]*u[1],r[0]=c[8]*l[2],r[1]=c[9]*l[2],r[2]=c[10]*l[2],a[0]=c[8]*u[2],a[1]=c[9]*u[2],a[2]=c[10]*u[2],l=this.min.array,u=this.max.array,l[0]=Math.min(t[0],e[0])+Math.min(n[0],i[0])+Math.min(r[0],a[0])+c[12],l[1]=Math.min(t[1],e[1])+Math.min(n[1],i[1])+Math.min(r[1],a[1])+c[13],l[2]=Math.min(t[2],e[2])+Math.min(n[2],i[2])+Math.min(r[2],a[2])+c[14],u[0]=Math.max(t[0],e[0])+Math.max(n[0],i[0])+Math.max(r[0],a[0])+c[12],u[1]=Math.max(t[1],e[1])+Math.max(n[1],i[1])+Math.max(r[1],a[1])+c[13],u[2]=Math.max(t[2],e[2])+Math.max(n[2],i[2])+Math.max(r[2],a[2])+c[14],this.min._dirty=!0,this.max._dirty=!0,this}}(),applyProjection:function(t){var e=this.min.array,n=this.max.array,i=t.array,r=e[0],a=e[1],o=e[2],s=n[0],l=n[1],u=e[2],c=n[0],h=n[1],d=n[2];if(1===i[15])e[0]=i[0]*r+i[12],e[1]=i[5]*a+i[13],n[2]=i[10]*o+i[14],n[0]=i[0]*c+i[12],n[1]=i[5]*h+i[13],e[2]=i[10]*d+i[14];else{var f=-1/o;e[0]=i[0]*r*f,e[1]=i[5]*a*f,n[2]=(i[10]*o+i[14])*f,f=-1/u,n[0]=i[0]*s*f,n[1]=i[5]*l*f,f=-1/d,e[2]=(i[10]*d+i[14])*f}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){var t=this.vertices;if(!t){t=[];for(var e=0;e<8;e++)t[e]=Qt.fromValues(0,0,0);this.vertices=t}var n=this.min.array,i=this.max.array;return Re(t[0],n[0],n[1],n[2]),Re(t[1],n[0],i[1],n[2]),Re(t[2],i[0],n[1],n[2]),Re(t[3],i[0],i[1],n[2]),Re(t[4],n[0],n[1],i[2]),Re(t[5],n[0],i[1],i[2]),Re(t[6],i[0],n[1],i[2]),Re(t[7],i[0],i[1],i[2]),this},copy:function(t){var e=this.min,n=this.max;return ke(e.array,t.min.array),ke(n.array,t.max.array),e._dirty=!0,n._dirty=!0,this},clone:function(){var t=new Be;return t.copy(this),t}};var ze=Be,Ve=0,Fe=O.extend({name:"",position:null,rotation:null,scale:null,worldTransform:null,localTransform:null,autoUpdateLocalTransform:!0,_parent:null,_scene:null,_needsUpdateWorldTransform:!0,_inIterating:!1,__depth:0},(function(){this.name||(this.name=(this.type||"NODE")+"_"+Ve++),this.position||(this.position=new ye),this.rotation||(this.rotation=new Ne),this.scale||(this.scale=new ye(1,1,1)),this.worldTransform=new Le,this.localTransform=new Le,this._children=[]}),{target:null,invisible:!1,isSkinnedMesh:function(){return!1},isRenderable:function(){return!1},setName:function(t){var e=this._scene;if(e){var n=e._nodeRepository;delete n[this.name],n[t]=this}this.name=t},add:function(t){var e=t._parent;if(e!==this){e&&e.remove(t),t._parent=this,this._children.push(t);var n=this._scene;n&&n!==t.scene&&t.traverse(this._addSelfToScene,this),t._needsUpdateWorldTransform=!0}},remove:function(t){var e=this._children,n=e.indexOf(t);n<0||(e.splice(n,1),t._parent=null,this._scene&&t.traverse(this._removeSelfFromScene,this))},removeAll:function(){for(var t=this._children,e=0;e<t.length;e++)t[e]._parent=null,this._scene&&t[e].traverse(this._removeSelfFromScene,this);this._children=[]},getScene:function(){return this._scene},getParent:function(){return this._parent},_removeSelfFromScene:function(t){t._scene.removeFromScene(t),t._scene=null},_addSelfToScene:function(t){this._scene.addToScene(t),t._scene=this._scene},isAncestor:function(t){var e=t._parent;while(e){if(e===this)return!0;e=e._parent}return!1},children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},getChildByName:function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},getDescendantByName:function(t){for(var e=this._children,n=0;n<e.length;n++){var i=e[n];if(i.name===t)return i;var r=i.getDescendantByName(t);if(r)return r}},queryNode:function(t){if(t){for(var e=t.split("/"),n=this,i=0;i<e.length;i++){var r=e[i];if(r){for(var a=!1,o=n._children,s=0;s<o.length;s++){var l=o[s];if(l.name===r){n=l,a=!0;break}}if(!a)return}}return n}},getPath:function(t){if(!this._parent)return"/";var e=this._parent,n=this.name;while(e._parent){if(n=e.name+"/"+n,e._parent==t)break;e=e._parent}return!e._parent&&t?null:n},traverse:function(t,e){t.call(e,this);for(var n=this._children,i=0,r=n.length;i<r;i++)n[i].traverse(t,e)},eachChild:function(t,e){for(var n=this._children,i=0,r=n.length;i<r;i++){var a=n[i];t.call(e,a,i)}},setLocalTransform:function(t){Yt.copy(this.localTransform.array,t.array),this.decomposeLocalTransform()},decomposeLocalTransform:function(t){var e=t?null:this.scale;this.localTransform.decomposeMatrix(e,this.rotation,this.position)},setWorldTransform:function(t){Yt.copy(this.worldTransform.array,t.array),this.decomposeWorldTransform()},decomposeWorldTransform:function(){var t=Yt.create();return function(e){var n=this.localTransform,i=this.worldTransform;this._parent?(Yt.invert(t,this._parent.worldTransform.array),Yt.multiply(n.array,t,i.array)):Yt.copy(n.array,i.array);var r=e?null:this.scale;n.decomposeMatrix(r,this.rotation,this.position)}}(),transformNeedsUpdate:function(){return this.position._dirty||this.rotation._dirty||this.scale._dirty},updateLocalTransform:function(){var t=this.position,e=this.rotation,n=this.scale;if(this.transformNeedsUpdate()){var i=this.localTransform.array;Yt.fromRotationTranslation(i,e.array,t.array),Yt.scale(i,i,n.array),e._dirty=!1,n._dirty=!1,t._dirty=!1,this._needsUpdateWorldTransform=!0}},_updateWorldTransformTopDown:function(){var t=this.localTransform.array,e=this.worldTransform.array;this._parent?Yt.multiplyAffine(e,this._parent.worldTransform.array,t):Yt.copy(e,t)},updateWorldTransform:function(){var t=this;while(t&&t.getParent()&&t.getParent().transformNeedsUpdate())t=t.getParent();t.update()},update:function(t){this.autoUpdateLocalTransform?this.updateLocalTransform():t=!0,(t||this._needsUpdateWorldTransform)&&(this._updateWorldTransformTopDown(),t=!0,this._needsUpdateWorldTransform=!1);for(var e=this._children,n=0,i=e.length;n<i;n++)e[n].update(t)},getBoundingBox:function(){function t(t){return!t.invisible&&t.geometry}var e=new ze,n=new Le,i=new Le;return function(r,a){return a=a||new ze,r=r||t,this._parent?Le.invert(i,this._parent.worldTransform):Le.identity(i),this.traverse((function(t){t.geometry&&t.geometry.boundingBox&&(e.copy(t.geometry.boundingBox),Le.multiply(n,i,t.worldTransform),e.applyTransform(n),a.union(e))}),this,t),a}}(),getWorldPosition:function(t){this.transformNeedsUpdate()&&this.updateWorldTransform();var e=this.worldTransform.array;if(t){var n=t.array;return n[0]=e[12],n[1]=e[13],n[2]=e[14],t}return new ye(e[12],e[13],e[14])},clone:function(){var t=new this.constructor,e=this._children;t.setName(this.name),t.position.copy(this.position),t.rotation.copy(this.rotation),t.scale.copy(this.scale);for(var n=0;n<e.length;n++)t.add(e[n].clone());return t},rotateAround:function(){var t=new ye,e=new Le;return function(n,i,r){t.copy(this.position).subtract(n);var a=this.localTransform;a.identity(),a.translate(n),a.rotate(r,i),e.fromRotationTranslation(this.rotation,t),a.multiply(e),a.scale(this.scale),this.decomposeLocalTransform(),this._needsUpdateWorldTransform=!0}}(),lookAt:function(){var t=new Le;return function(e,n){t.lookAt(this.position,e,n||this.localTransform.y).invert(),this.setLocalTransform(t),this.target=e}}()}),Ge=Fe,He=Ge.extend({material:null,geometry:null,mode:C.TRIANGLES,_renderInfo:null},{__program:null,lightGroup:0,renderOrder:0,culling:!0,cullFace:C.BACK,frontFace:C.CCW,frustumCulling:!0,receiveShadow:!0,castShadow:!0,ignorePicking:!1,ignorePreZ:!1,ignoreGBuffer:!1,isRenderable:function(){return this.geometry&&this.material&&this.material.shader&&!this.invisible&&this.geometry.vertexCount>0},beforeRender:function(t){},afterRender:function(t,e){},getBoundingBox:function(t,e){return e=Ge.prototype.getBoundingBox.call(this,t,e),this.geometry&&this.geometry.boundingBox&&e.union(this.geometry.boundingBox),e},clone:function(){var t=["castShadow","receiveShadow","mode","culling","cullFace","frontFace","frustumCulling","renderOrder","lineWidth","ignorePicking","ignorePreZ","ignoreGBuffer"];return function(){var e=Ge.prototype.clone.call(this);e.geometry=this.geometry,e.material=this.material;for(var n=0;n<t.length;n++){var i=t[n];e[i]!==this[i]&&(e[i]=this[i])}return e}}()});He.POINTS=C.POINTS,He.LINES=C.LINES,He.LINE_LOOP=C.LINE_LOOP,He.LINE_STRIP=C.LINE_STRIP,He.TRIANGLES=C.TRIANGLES,He.TRIANGLE_STRIP=C.TRIANGLE_STRIP,He.TRIANGLE_FAN=C.TRIANGLE_FAN,He.BACK=C.BACK,He.FRONT=C.FRONT,He.FRONT_AND_BACK=C.FRONT_AND_BACK,He.CW=C.CW,He.CCW=C.CCW;var Ue=He,We=O.extend({scene:null,camera:null,renderer:null},(function(){this._ray=new xe,this._ndc=new ct}),{pick:function(t,e,n){var i=this.pickAll(t,e,[],n);return i[0]||null},pickAll:function(t,e,n,i){return this.renderer.screenToNDC(t,e,this._ndc),this.camera.castRay(this._ndc,this._ray),n=n||[],this._intersectNode(this.scene,n,i||!1),n.sort(this._intersectionCompareFunc),n},_intersectNode:function(t,e,n){t instanceof Ue&&t.isRenderable()&&(t.ignorePicking&&!n||!(t.mode===C.TRIANGLES&&t.geometry.isUseIndices()||t.geometry.pickByRay||t.geometry.pick)||this._intersectRenderable(t,e));for(var i=0;i<t._children.length;i++)this._intersectNode(t._children[i],e,n)},_intersectRenderable:function(){var t=new ye,e=new ye,n=new ye,i=new xe,r=new Le;return function(a,o){var s=a.isSkinnedMesh();i.copy(this._ray),Le.invert(r,a.worldTransform),s||i.applyTransform(r);var l=a.geometry,u=s?a.skeleton.boundingBox:l.boundingBox;if(!u||i.intersectBoundingBox(u))if(l.pick)l.pick(this._ndc.x,this._ndc.y,this.renderer,this.camera,a,o);else if(l.pickByRay)l.pickByRay(i,a,o);else{var c,h,d=a.cullFace===C.BACK&&a.frontFace===C.CCW||a.cullFace===C.FRONT&&a.frontFace===C.CW,f=l.indices,p=l.attributes.position,g=l.attributes.weight,m=l.attributes.joint,v=[];if(p&&p.value&&f){if(s){h=a.skeleton.getSubSkinMatrices(a.__uid__,a.joints);for(var y=0;y<a.joints.length;y++){v[y]=v[y]||[];for(var _=0;_<16;_++)v[y][_]=h[16*y+_]}var b=[],x=[],w=[],O=[],S=[],T=l.attributes.skinnedPosition;T&&T.value||(l.createAttribute("skinnedPosition","f",3),T=l.attributes.skinnedPosition,T.init(l.vertexCount));for(y=0;y<l.vertexCount;y++){p.get(y,b),g.get(y,x),m.get(y,w),x[3]=1-x[0]-x[1]-x[2],Qt.set(O,0,0,0);for(_=0;_<4;_++)w[_]>=0&&x[_]>1e-4&&(Qt.transformMat4(S,b,v[w[_]]),Qt.scaleAndAdd(O,O,S,x[_]));T.set(y,O)}}for(y=0;y<f.length;y+=3){var M=f[y],A=f[y+1],I=f[y+2],D=s?l.attributes.skinnedPosition:p;if(D.get(M,t.array),D.get(A,e.array),D.get(I,n.array),c=d?i.intersectTriangle(t,e,n,a.culling):i.intersectTriangle(t,n,e,a.culling),c){var L=new ye;s?ye.copy(L,c):ye.transformMat4(L,c,a.worldTransform),o.push(new We.Intersection(c,L,a,[M,A,I],y/3,ye.dist(L,this._ray.origin)))}}}}}}(),_intersectionCompareFunc:function(t,e){return t.distance-e.distance}});We.Intersection=function(t,e,n,i,r,a){this.point=t,this.pointWorld=e,this.target=n,this.triangle=i,this.triangleIndex=r,this.distance=a};var Xe=We,Ze="__dt__",qe=function(){this._contextId=0,this._caches=[],this._context={}};qe.prototype={use:function(t,e){var n=this._caches;n[t]||(n[t]={},e&&(n[t]=e())),this._contextId=t,this._context=n[t]},put:function(t,e){this._context[t]=e},get:function(t){return this._context[t]},dirty:function(t){t=t||"";var e=Ze+t;this.put(e,!0)},dirtyAll:function(t){t=t||"";for(var e=Ze+t,n=this._caches,i=0;i<n.length;i++)n[i]&&(n[i][e]=!0)},fresh:function(t){t=t||"";var e=Ze+t;this.put(e,!1)},freshAll:function(t){t=t||"";for(var e=Ze+t,n=this._caches,i=0;i<n.length;i++)n[i]&&(n[i][e]=!1)},isDirty:function(t){t=t||"";var e=Ze+t,n=this._context;return!n.hasOwnProperty(e)||!0===n[e]},deleteContext:function(t){delete this._caches[t],this._context={}},delete:function(t){delete this._context[t]},clearAll:function(){this._caches={}},getContext:function(){return this._context},eachContext:function(t,e){var n=Object.keys(this._caches);n.forEach((function(n){t&&t.call(e,n)}))},miss:function(t){return!this._context.hasOwnProperty(t)}},qe.prototype.constructor=qe;var Ye=qe,Ke=O.extend({width:512,height:512,type:C.UNSIGNED_BYTE,format:C.RGBA,wrapS:C.REPEAT,wrapT:C.REPEAT,minFilter:C.LINEAR_MIPMAP_LINEAR,magFilter:C.LINEAR,useMipmap:!0,anisotropic:1,flipY:!0,sRGB:!0,unpackAlignment:4,premultiplyAlpha:!1,dynamic:!1,NPOT:!1,__used:0},(function(){this._cache=new Ye}),{getWebGLTexture:function(t){var e=t.gl,n=this._cache;return n.use(t.__uid__),n.miss("webgl_texture")&&n.put("webgl_texture",e.createTexture()),this.dynamic?this.update(t):n.isDirty()&&(this.update(t),n.fresh()),n.get("webgl_texture")},bind:function(){},unbind:function(){},dirty:function(){this._cache&&this._cache.dirtyAll()},update:function(t){},updateCommon:function(t){var e=t.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,this.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,this.unpackAlignment),this.format===C.DEPTH_COMPONENT&&(this.useMipmap=!1);var n=t.getGLExtension("EXT_sRGB");this.format!==Ke.SRGB||n||(this.format=Ke.RGB),this.format!==Ke.SRGB_ALPHA||n||(this.format=Ke.RGBA),this.NPOT=!this.isPowerOfTwo()},getAvailableWrapS:function(){return this.NPOT?C.CLAMP_TO_EDGE:this.wrapS},getAvailableWrapT:function(){return this.NPOT?C.CLAMP_TO_EDGE:this.wrapT},getAvailableMinFilter:function(){var t=this.minFilter;return this.NPOT||!this.useMipmap?t===C.NEAREST_MIPMAP_NEAREST||t===C.NEAREST_MIPMAP_LINEAR?C.NEAREST:t===C.LINEAR_MIPMAP_LINEAR||t===C.LINEAR_MIPMAP_NEAREST?C.LINEAR:t:t},getAvailableMagFilter:function(){return this.magFilter},nextHighestPowerOfTwo:function(t){--t;for(var e=1;e<32;e<<=1)t|=t>>e;return t+1},dispose:function(t){var e=this._cache;e.use(t.__uid__);var n=e.get("webgl_texture");n&&t.gl.deleteTexture(n),e.deleteContext(t.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(Ke.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t}}),Object.defineProperty(Ke.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t}}),Ke.BYTE=C.BYTE,Ke.UNSIGNED_BYTE=C.UNSIGNED_BYTE,Ke.SHORT=C.SHORT,Ke.UNSIGNED_SHORT=C.UNSIGNED_SHORT,Ke.INT=C.INT,Ke.UNSIGNED_INT=C.UNSIGNED_INT,Ke.FLOAT=C.FLOAT,Ke.HALF_FLOAT=36193,Ke.UNSIGNED_INT_24_8_WEBGL=34042,Ke.DEPTH_COMPONENT=C.DEPTH_COMPONENT,Ke.DEPTH_STENCIL=C.DEPTH_STENCIL,Ke.ALPHA=C.ALPHA,Ke.RGB=C.RGB,Ke.RGBA=C.RGBA,Ke.LUMINANCE=C.LUMINANCE,Ke.LUMINANCE_ALPHA=C.LUMINANCE_ALPHA,Ke.SRGB=35904,Ke.SRGB_ALPHA=35906,Ke.COMPRESSED_RGB_S3TC_DXT1_EXT=33776,Ke.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777,Ke.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778,Ke.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779,Ke.NEAREST=C.NEAREST,Ke.LINEAR=C.LINEAR,Ke.NEAREST_MIPMAP_NEAREST=C.NEAREST_MIPMAP_NEAREST,Ke.LINEAR_MIPMAP_NEAREST=C.LINEAR_MIPMAP_NEAREST,Ke.NEAREST_MIPMAP_LINEAR=C.NEAREST_MIPMAP_LINEAR,Ke.LINEAR_MIPMAP_LINEAR=C.LINEAR_MIPMAP_LINEAR,Ke.REPEAT=C.REPEAT,Ke.CLAMP_TO_EDGE=C.CLAMP_TO_EDGE,Ke.MIRRORED_REPEAT=C.MIRRORED_REPEAT;var Qe=Ke,Je=Ue.extend({skeleton:null,joints:null},(function(){this.joints||(this.joints=[])}),{offsetMatrix:null,isInstancedMesh:function(){return!1},isSkinnedMesh:function(){return!!(this.skeleton&&this.joints&&this.joints.length>0)},clone:function(){var t=Ue.prototype.clone.call(this);return t.skeleton=this.skeleton,this.joints&&(t.joints=this.joints.slice()),t}});Je.POINTS=C.POINTS,Je.LINES=C.LINES,Je.LINE_LOOP=C.LINE_LOOP,Je.LINE_STRIP=C.LINE_STRIP,Je.TRIANGLES=C.TRIANGLES,Je.TRIANGLE_STRIP=C.TRIANGLE_STRIP,Je.TRIANGLE_FAN=C.TRIANGLE_FAN,Je.BACK=C.BACK,Je.FRONT=C.FRONT,Je.FRONT_AND_BACK=C.FRONT_AND_BACK,Je.CW=C.CW,Je.CCW=C.CCW;var $e=Je,tn={isPowerOfTwo:function(t){return 0===(t&t-1)},nextPowerOfTwo:function(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t},nearestPowerOfTwo:function(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))}},en=tn,nn=en.isPowerOfTwo;function rn(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))}function an(t,e){var n=rn(t.width),i=rn(t.height);e=e||document.createElement("canvas"),e.width=n,e.height=i;var r=e.getContext("2d");return r.drawImage(t.image,0,0,n,i),e}var on=Qe.extend((function(){return{image:null,pixels:null,mipmaps:[],convertToPOT:!1}}),{textureType:"texture2D",update:function(t){var e=t.gl;e.bindTexture(e.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(t);var n=this.format,i=this.type,r=!(!this.convertToPOT||this.mipmaps.length||!this.image||this.wrapS!==Qe.REPEAT&&this.wrapT!==Qe.REPEAT||!this.NPOT);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,r?this.wrapS:this.getAvailableWrapS()),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,r?this.wrapT:this.getAvailableWrapT()),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,r?this.magFilter:this.getAvailableMagFilter()),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,r?this.minFilter:this.getAvailableMinFilter());var a=t.getGLExtension("EXT_texture_filter_anisotropic");if(a&&this.anisotropic>1&&e.texParameterf(e.TEXTURE_2D,a.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),36193===i){var o=t.getGLExtension("OES_texture_half_float");o||(i=C.FLOAT)}if(this.mipmaps.length)for(var s=this.width,l=this.height,u=0;u<this.mipmaps.length;u++){var c=this.mipmaps[u];this._updateTextureData(e,c,u,s,l,n,i,!1),s/=2,l/=2}else this._updateTextureData(e,this,0,this.width,this.height,n,i,r),!this.useMipmap||this.NPOT&&!r||e.generateMipmap(e.TEXTURE_2D);e.bindTexture(e.TEXTURE_2D,null)},_updateTextureData:function(t,e,n,i,r,a,o,s){if(e.image){var l=e.image;s&&(this._potCanvas=an(this,this._potCanvas),l=this._potCanvas),t.texImage2D(t.TEXTURE_2D,n,a,a,o,l)}else a<=Qe.COMPRESSED_RGBA_S3TC_DXT5_EXT&&a>=Qe.COMPRESSED_RGB_S3TC_DXT1_EXT?t.compressedTexImage2D(t.TEXTURE_2D,n,a,i,r,0,e.pixels):t.texImage2D(t.TEXTURE_2D,n,a,i,r,0,a,o,e.pixels)},generateMipmap:function(t){var e=t.gl;this.useMipmap&&!this.NPOT&&(e.bindTexture(e.TEXTURE_2D,this._cache.get("webgl_texture")),e.generateMipmap(e.TEXTURE_2D))},isPowerOfTwo:function(){return nn(this.width)&&nn(this.height)},isRenderable:function(){return this.image?this.image.width>0&&this.image.height>0:!(!this.width||!this.height)},bind:function(t){t.gl.bindTexture(t.gl.TEXTURE_2D,this.getWebGLTexture(t))},unbind:function(t){t.gl.bindTexture(t.gl.TEXTURE_2D,null)},load:function(t,e){var n=I["a"].createImage();e&&(n.crossOrigin=e);var i=this;return n.onload=function(){i.dirty(),i.trigger("success",i)},n.onerror=function(){i.trigger("error",i)},n.src=t,this.image=n,this}});Object.defineProperty(on.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(t){this.image?console.warn("Texture from image can't set width"):(this._width!==t&&this.dirty(),this._width=t)}}),Object.defineProperty(on.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(t){this.image?console.warn("Texture from image can't set height"):(this._height!==t&&this.dirty(),this._height=t)}});var sn=on;function ln(t){return{byte:I["a"].Int8Array,ubyte:I["a"].Uint8Array,short:I["a"].Int16Array,ushort:I["a"].Uint16Array}[t]||I["a"].Float32Array}function un(t){return"attr_"+t}function cn(t,e,n,i){switch(this.name=t,this.type=e,this.size=n,this.semantic=i||"",this.value=null,n){case 1:this.get=function(t){return this.value[t]},this.set=function(t,e){this.value[t]=e},this.copy=function(t,e){this.value[t]=this.value[t]};break;case 2:this.get=function(t,e){var n=this.value;return e[0]=n[2*t],e[1]=n[2*t+1],e},this.set=function(t,e){var n=this.value;n[2*t]=e[0],n[2*t+1]=e[1]},this.copy=function(t,e){var n=this.value;e*=2,t*=2,n[t]=n[e],n[t+1]=n[e+1]};break;case 3:this.get=function(t,e){var n=3*t,i=this.value;return e[0]=i[n],e[1]=i[n+1],e[2]=i[n+2],e},this.set=function(t,e){var n=3*t,i=this.value;i[n]=e[0],i[n+1]=e[1],i[n+2]=e[2]},this.copy=function(t,e){var n=this.value;e*=3,t*=3,n[t]=n[e],n[t+1]=n[e+1],n[t+2]=n[e+2]};break;case 4:this.get=function(t,e){var n=this.value,i=4*t;return e[0]=n[i],e[1]=n[i+1],e[2]=n[i+2],e[3]=n[i+3],e},this.set=function(t,e){var n=this.value,i=4*t;n[i]=e[0],n[i+1]=e[1],n[i+2]=e[2],n[i+3]=e[3]},this.copy=function(t,e){var n=this.value;e*=4,t*=4,n[t]=n[e],n[t+1]=n[e+1],n[t+2]=n[e+2],n[t+3]=n[e+3]}}}function hn(t,e,n,i,r){this.name=t,this.type=e,this.buffer=n,this.size=i,this.semantic=r,this.symbol="",this.needsRemove=!1}function dn(t){this.buffer=t,this.count=0}cn.prototype.init=function(t){if(!this.value||this.value.length!==t*this.size){var e=ln(this.type);this.value=new e(t*this.size)}},cn.prototype.fromArray=function(t){var e,n=ln(this.type);if(t[0]&&t[0].length){var i=0,r=this.size;e=new n(t.length*r);for(var a=0;a<t.length;a++)for(var o=0;o<r;o++)e[i++]=t[a][o]}else e=new n(t);this.value=e},cn.prototype.clone=function(t){var e=new cn(this.name,this.type,this.size,this.semantic);return t&&console.warn("todo"),e};var fn=O.extend((function(){return{attributes:{},indices:null,dynamic:!0,_enabledAttributes:null,__used:0}}),(function(){this._cache=new Ye,this._attributeList=Object.keys(this.attributes),this.__vaoCache={}}),{mainAttribute:"",pick:null,pickByRay:null,dirty:function(){for(var t=this.getEnabledAttributes(),e=0;e<t.length;e++)this.dirtyAttribute(t[e]);this.dirtyIndices(),this._enabledAttributes=null,this._cache.dirty("any")},dirtyIndices:function(){this._cache.dirtyAll("indices")},dirtyAttribute:function(t){this._cache.dirtyAll(un(t)),this._cache.dirtyAll("attributes")},getTriangleIndices:function(t,e){if(t<this.triangleCount&&t>=0){e||(e=[]);var n=this.indices;return e[0]=n[3*t],e[1]=n[3*t+1],e[2]=n[3*t+2],e}},setTriangleIndices:function(t,e){var n=this.indices;n[3*t]=e[0],n[3*t+1]=e[1],n[3*t+2]=e[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(t){var e,n=this.vertexCount>65535?I["a"].Uint32Array:I["a"].Uint16Array;if(t[0]&&t[0].length){var i=0,r=3;e=new n(t.length*r);for(var a=0;a<t.length;a++)for(var o=0;o<r;o++)e[i++]=t[a][o]}else e=new n(t);this.indices=e},createAttribute:function(t,e,n,i){var r=new cn(t,e,n,i);return this.attributes[t]&&this.removeAttribute(t),this.attributes[t]=r,this._attributeList.push(t),r},removeAttribute:function(t){var e=this._attributeList,n=e.indexOf(t);return n>=0&&(e.splice(n,1),delete this.attributes[t],!0)},getAttribute:function(t){return this.attributes[t]},getEnabledAttributes:function(){var t=this._enabledAttributes,e=this._attributeList;if(t)return t;for(var n=[],i=this.vertexCount,r=0;r<e.length;r++){var a=e[r],o=this.attributes[a];o.value&&o.value.length===i*o.size&&n.push(a)}return this._enabledAttributes=n,n},getBufferChunks:function(t){var e=this._cache;e.use(t.__uid__);var n=e.isDirty("attributes"),i=e.isDirty("indices");if(n||i){this._updateBuffer(t.gl,n,i);for(var r=this.getEnabledAttributes(),a=0;a<r.length;a++)e.fresh(un(r[a]));e.fresh("attributes"),e.fresh("indices")}return e.fresh("any"),e.get("chunks")},_updateBuffer:function(t,e,n){var i=this._cache,r=i.get("chunks"),a=!1;r||(r=[],r[0]={attributeBuffers:[],indicesBuffer:null},i.put("chunks",r),a=!0);var o=r[0],s=o.attributeBuffers,l=o.indicesBuffer;if(e||a){var u=this.getEnabledAttributes(),c={};if(!a)for(var h=0;h<s.length;h++)c[s[h].name]=s[h];for(var d=0;d<u.length;d++){var f,p,g=u[d],m=this.attributes[g];a||(f=c[g]),p=f?f.buffer:t.createBuffer(),i.isDirty(un(g))&&(t.bindBuffer(t.ARRAY_BUFFER,p),t.bufferData(t.ARRAY_BUFFER,m.value,this.dynamic?t.DYNAMIC_DRAW:t.STATIC_DRAW)),s[d]=new hn(g,m.type,p,m.size,m.semantic)}for(h=d;h<s.length;h++)t.deleteBuffer(s[h].buffer);s.length=d}this.isUseIndices()&&(n||a)&&(l||(l=new dn(t.createBuffer()),o.indicesBuffer=l),l.count=this.indices.length,t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,l.buffer),t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indices,this.dynamic?t.DYNAMIC_DRAW:t.STATIC_DRAW))},dispose:function(t){var e=this._cache;e.use(t.__uid__);var n=e.get("chunks");if(n)for(var i=0;i<n.length;i++){for(var r=n[i],a=0;a<r.attributeBuffers.length;a++){var o=r.attributeBuffers[a];t.gl.deleteBuffer(o.buffer)}r.indicesBuffer&&t.gl.deleteBuffer(r.indicesBuffer.buffer)}if(this.__vaoCache){var s=t.getGLExtension("OES_vertex_array_object");for(var l in this.__vaoCache){var u=this.__vaoCache[l].vao;u&&s.deleteVertexArrayOES(u)}}this.__vaoCache={},e.deleteContext(t.__uid__)}});Object.defineProperty&&(Object.defineProperty(fn.prototype,"vertexCount",{enumerable:!1,get:function(){var t=this.attributes[this.mainAttribute];return t||(t=this.attributes[this._attributeList[0]]),t&&t.value?t.value.length/t.size:0}}),Object.defineProperty(fn.prototype,"triangleCount",{enumerable:!1,get:function(){var t=this.indices;return t?t.length/3:0}})),fn.STATIC_DRAW=C.STATIC_DRAW,fn.DYNAMIC_DRAW=C.DYNAMIC_DRAW,fn.STREAM_DRAW=C.STREAM_DRAW,fn.AttributeBuffer=hn,fn.IndicesBuffer=dn,fn.Attribute=cn;var pn=fn,gn=Qt.create,mn=Qt.add,vn=Qt.set,yn=pn.Attribute,_n=pn.extend((function(){return{attributes:{position:new yn("position","float",3,"POSITION"),texcoord0:new yn("texcoord0","float",2,"TEXCOORD_0"),texcoord1:new yn("texcoord1","float",2,"TEXCOORD_1"),normal:new yn("normal","float",3,"NORMAL"),tangent:new yn("tangent","float",4,"TANGENT"),color:new yn("color","float",4,"COLOR"),weight:new yn("weight","float",3,"WEIGHT"),joint:new yn("joint","float",4,"JOINT"),barycentric:new yn("barycentric","float",3,null)},boundingBox:null}}),{mainAttribute:"position",updateBoundingBox:function(){var t=this.boundingBox;t||(t=this.boundingBox=new ze);var e=this.attributes.position.value;if(e&&e.length){var n=t.min,i=t.max,r=n.array,a=i.array;Qt.set(r,e[0],e[1],e[2]),Qt.set(a,e[0],e[1],e[2]);for(var o=3;o<e.length;){var s=e[o++],l=e[o++],u=e[o++];s<r[0]&&(r[0]=s),l<r[1]&&(r[1]=l),u<r[2]&&(r[2]=u),s>a[0]&&(a[0]=s),l>a[1]&&(a[1]=l),u>a[2]&&(a[2]=u)}n._dirty=!0,i._dirty=!0}},generateVertexNormals:function(){if(this.vertexCount){var t=this.indices,e=this.attributes,n=e.position.value,i=e.normal.value;if(i&&i.length===n.length)for(var r=0;r<i.length;r++)i[r]=0;else i=e.normal.value=new I["a"].Float32Array(n.length);for(var a,o,s,l=gn(),u=gn(),c=gn(),h=gn(),d=gn(),f=gn(),p=t?t.length:this.vertexCount,g=0;g<p;){t?(a=t[g++],o=t[g++],s=t[g++]):(a=g++,o=g++,s=g++),vn(l,n[3*a],n[3*a+1],n[3*a+2]),vn(u,n[3*o],n[3*o+1],n[3*o+2]),vn(c,n[3*s],n[3*s+1],n[3*s+2]),Qt.sub(h,l,u),Qt.sub(d,u,c),Qt.cross(f,h,d);for(r=0;r<3;r++)i[3*a+r]=i[3*a+r]+f[r],i[3*o+r]=i[3*o+r]+f[r],i[3*s+r]=i[3*s+r]+f[r]}for(r=0;r<i.length;)vn(f,i[r],i[r+1],i[r+2]),Qt.normalize(f,f),i[r++]=f[0],i[r++]=f[1],i[r++]=f[2];this.dirty()}},generateFaceNormals:function(){if(this.vertexCount){this.isUniqueVertex()||this.generateUniqueVertex();var t=this.indices,e=this.attributes,n=e.position.value,i=e.normal.value,r=gn(),a=gn(),o=gn(),s=gn(),l=gn(),u=gn();i||(i=e.normal.value=new Float32Array(n.length));for(var c,h,d,f=t?t.length:this.vertexCount,p=0;p<f;){t?(c=t[p++],h=t[p++],d=t[p++]):(c=p++,h=p++,d=p++),vn(r,n[3*c],n[3*c+1],n[3*c+2]),vn(a,n[3*h],n[3*h+1],n[3*h+2]),vn(o,n[3*d],n[3*d+1],n[3*d+2]),Qt.sub(s,r,a),Qt.sub(l,a,o),Qt.cross(u,s,l),Qt.normalize(u,u);for(var g=0;g<3;g++)i[3*c+g]=u[g],i[3*h+g]=u[g],i[3*d+g]=u[g]}this.dirty()}},generateTangents:function(){if(this.vertexCount){var t=this.vertexCount,e=this.attributes;e.tangent.value||(e.tangent.value=new Float32Array(4*t));var n=e.texcoord0.value,i=e.position.value,r=e.tangent.value,a=e.normal.value;if(n){for(var o=[],s=[],l=0;l<t;l++)o[l]=[0,0,0],s[l]=[0,0,0];var u,c,h,d=[0,0,0],f=[0,0,0],p=this.indices,g=p?p.length:this.vertexCount;for(l=0;l<g;){p?(u=p[l++],c=p[l++],h=p[l++]):(u=l++,c=l++,h=l++);var m=n[2*u],v=n[2*c],y=n[2*h],_=n[2*u+1],b=n[2*c+1],x=n[2*h+1],w=i[3*u],O=i[3*c],S=i[3*h],T=i[3*u+1],M=i[3*c+1],A=i[3*h+1],C=i[3*u+2],I=i[3*c+2],D=i[3*h+2],L=O-w,E=S-w,j=M-T,P=A-T,N=I-C,R=D-C,k=v-m,B=y-m,z=b-_,V=x-_,F=1/(k*V-z*B);d[0]=(V*L-z*E)*F,d[1]=(V*j-z*P)*F,d[2]=(V*N-z*R)*F,f[0]=(k*E-B*L)*F,f[1]=(k*P-B*j)*F,f[2]=(k*R-B*N)*F,mn(o[u],o[u],d),mn(o[c],o[c],d),mn(o[h],o[h],d),mn(s[u],s[u],f),mn(s[c],s[c],f),mn(s[h],s[h],f)}var G=gn(),H=gn(),U=gn();for(l=0;l<t;l++){U[0]=a[3*l],U[1]=a[3*l+1],U[2]=a[3*l+2];var W=o[l];Qt.scale(G,U,Qt.dot(U,W)),Qt.sub(G,W,G),Qt.normalize(G,G),Qt.cross(H,U,W),r[4*l]=G[0],r[4*l+1]=G[1],r[4*l+2]=G[2],r[4*l+3]=Qt.dot(H,s[l])<0?-1:1}this.dirty()}else console.warn("Geometry without texcoords can't generate tangents.")}},isUniqueVertex:function(){return!this.isUseIndices()||this.vertexCount===this.indices.length},generateUniqueVertex:function(){if(this.vertexCount&&this.indices){this.indices.length>65535&&(this.indices=new I["a"].Uint32Array(this.indices));for(var t=this.attributes,e=this.indices,n=this.getEnabledAttributes(),i={},r=0;r<n.length;r++){var a=n[r];i[a]=t[a].value,t[a].init(this.indices.length)}for(var o=0,s=0;s<e.length;s++){var l=e[s];for(r=0;r<n.length;r++){a=n[r];for(var u=t[a].value,c=t[a].size,h=0;h<c;h++)u[o*c+h]=i[a][l*c+h]}e[s]=o,o++}this.dirty()}},generateBarycentric:function(){if(this.vertexCount){this.isUniqueVertex()||this.generateUniqueVertex();var t=this.attributes,e=t.barycentric.value,n=this.indices;if(!e||e.length!==3*n.length){e=t.barycentric.value=new Float32Array(3*n.length);for(var i=0;i<(n?n.length:this.vertexCount/3);)for(var r=0;r<3;r++){var a=n?n[i++]:3*i+r;e[3*a+r]=1}this.dirty()}}},applyTransform:function(t){var e=this.attributes,n=e.position.value,i=e.normal.value,r=e.tangent.value;t=t.array;var a=Yt.create();Yt.invert(a,t),Yt.transpose(a,a);var o=Qt.transformMat4,s=Qt.forEach;s(n,3,0,null,o,t),i&&s(i,3,0,null,o,a),r&&s(r,4,0,null,o,a),this.boundingBox&&this.updateBoundingBox()},dispose:function(t){var e=this._cache;e.use(t.__uid__);var n=e.get("chunks");if(n)for(var i=0;i<n.length;i++){for(var r=n[i],a=0;a<r.attributeBuffers.length;a++){var o=r.attributeBuffers[a];t.gl.deleteBuffer(o.buffer)}r.indicesBuffer&&t.gl.deleteBuffer(r.indicesBuffer.buffer)}if(this.__vaoCache){var s=t.getGLExtension("OES_vertex_array_object");for(var l in this.__vaoCache){var u=this.__vaoCache[l].vao;u&&s.deleteVertexArrayOES(u)}}this.__vaoCache={},e.deleteContext(t.__uid__)}});_n.STATIC_DRAW=pn.STATIC_DRAW,_n.DYNAMIC_DRAW=pn.DYNAMIC_DRAW,_n.STREAM_DRAW=pn.STREAM_DRAW,_n.AttributeBuffer=pn.AttributeBuffer,_n.IndicesBuffer=pn.IndicesBuffer,_n.Attribute=yn;var bn=_n,xn="vec3 calcAmbientSHLight(int idx, vec3 N) {\n int offset = 9 * idx;\n return ambientSHLightCoefficients[0]\n + ambientSHLightCoefficients[1] * N.x\n + ambientSHLightCoefficients[2] * N.y\n + ambientSHLightCoefficients[3] * N.z\n + ambientSHLightCoefficients[4] * N.x * N.z\n + ambientSHLightCoefficients[5] * N.z * N.y\n + ambientSHLightCoefficients[6] * N.y * N.x\n + ambientSHLightCoefficients[7] * (3.0 * N.z * N.z - 1.0)\n + ambientSHLightCoefficients[8] * (N.x * N.x - N.y * N.y);\n}",wn="uniform vec3 ",On="uniform float ",Sn="@export clay.header.",Tn="@end",Mn=":unconfigurable;",An=[Sn+"directional_light",wn+"directionalLightDirection[DIRECTIONAL_LIGHT_COUNT]"+Mn,wn+"directionalLightColor[DIRECTIONAL_LIGHT_COUNT]"+Mn,Tn,Sn+"ambient_light",wn+"ambientLightColor[AMBIENT_LIGHT_COUNT]"+Mn,Tn,Sn+"ambient_sh_light",wn+"ambientSHLightColor[AMBIENT_SH_LIGHT_COUNT]"+Mn,wn+"ambientSHLightCoefficients[AMBIENT_SH_LIGHT_COUNT * 9]"+Mn,xn,Tn,Sn+"ambient_cubemap_light",wn+"ambientCubemapLightColor[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Mn,"uniform samplerCube ambientCubemapLightCubemap[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Mn,"uniform sampler2D ambientCubemapLightBRDFLookup[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Mn,Tn,Sn+"point_light",wn+"pointLightPosition[POINT_LIGHT_COUNT]"+Mn,On+"pointLightRange[POINT_LIGHT_COUNT]"+Mn,wn+"pointLightColor[POINT_LIGHT_COUNT]"+Mn,Tn,Sn+"spot_light",wn+"spotLightPosition[SPOT_LIGHT_COUNT]"+Mn,wn+"spotLightDirection[SPOT_LIGHT_COUNT]"+Mn,On+"spotLightRange[SPOT_LIGHT_COUNT]"+Mn,On+"spotLightUmbraAngleCosine[SPOT_LIGHT_COUNT]"+Mn,On+"spotLightPenumbraAngleCosine[SPOT_LIGHT_COUNT]"+Mn,On+"spotLightFalloffFactor[SPOT_LIGHT_COUNT]"+Mn,wn+"spotLightColor[SPOT_LIGHT_COUNT]"+Mn,Tn].join("\n");Xt["import"](An);var Cn=Ge.extend((function(){return{color:[1,1,1],intensity:1,castShadow:!0,shadowResolution:512,group:0}}),{type:"",clone:function(){var t=Ge.prototype.clone.call(this);return t.color=Array.prototype.slice.call(this.color),t.intensity=this.intensity,t.castShadow=this.castShadow,t.shadowResolution=this.shadowResolution,t}}),In=Cn,Dn=function(t,e){this.normal=t||new ye(0,1,0),this.distance=e||0};Dn.prototype={constructor:Dn,distanceToPoint:function(t){return Qt.dot(t.array,this.normal.array)-this.distance},projectPoint:function(t,e){e||(e=new ye);var n=this.distanceToPoint(t);return Qt.scaleAndAdd(e.array,t.array,this.normal.array,-n),e._dirty=!0,e},normalize:function(){var t=1/Qt.len(this.normal.array);Qt.scale(this.normal.array,t),this.distance*=t},intersectFrustum:function(t){for(var e=t.vertices,n=this.normal.array,i=Qt.dot(e[0].array,n)>this.distance,r=1;r<8;r++)if(Qt.dot(e[r].array,n)>this.distance!=i)return!0},intersectLine:function(){var t=Qt.create();return function(e,n,i){var r=this.distanceToPoint(e),a=this.distanceToPoint(n);if(r>0&&a>0||r<0&&a<0)return null;var o=this.normal.array,s=this.distance,l=e.array;Qt.sub(t,n.array,e.array),Qt.normalize(t,t);var u=Qt.dot(o,t);if(0===u)return null;i||(i=new ye);var c=(Qt.dot(o,l)-s)/u;return Qt.scaleAndAdd(i.array,l,t,-c),i._dirty=!0,i}}(),applyTransform:function(){var t=Yt.create(),e=Oe.create(),n=Oe.create();return n[3]=1,function(i){i=i.array,Qt.scale(n,this.normal.array,this.distance),Oe.transformMat4(n,n,i),this.distance=Qt.dot(n,this.normal.array),Yt.invert(t,i),Yt.transpose(t,t),e[3]=0,Qt.copy(e,this.normal.array),Oe.transformMat4(e,e,t),Qt.copy(this.normal.array,e)}}(),copy:function(t){Qt.copy(this.normal.array,t.normal.array),this.normal._dirty=!0,this.distance=t.distance},clone:function(){var t=new Dn;return t.copy(this),t}};var Ln=Dn,En=Qt.set,jn=Qt.copy,Pn=Qt.transformMat4,Nn=Math.min,Rn=Math.max,kn=function(){this.planes=[];for(var t=0;t<6;t++)this.planes.push(new Ln);this.boundingBox=new ze,this.vertices=[];for(t=0;t<8;t++)this.vertices[t]=Qt.fromValues(0,0,0)};kn.prototype={setFromProjection:function(t){var e=this.planes,n=t.array,i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],l=n[5],u=n[6],c=n[7],h=n[8],d=n[9],f=n[10],p=n[11],g=n[12],m=n[13],v=n[14],y=n[15];En(e[0].normal.array,o-i,c-s,p-h),e[0].distance=-(y-g),e[0].normalize(),En(e[1].normal.array,o+i,c+s,p+h),e[1].distance=-(y+g),e[1].normalize(),En(e[2].normal.array,o+r,c+l,p+d),e[2].distance=-(y+m),e[2].normalize(),En(e[3].normal.array,o-r,c-l,p-d),e[3].distance=-(y-m),e[3].normalize(),En(e[4].normal.array,o-a,c-u,p-f),e[4].distance=-(y-v),e[4].normalize(),En(e[5].normal.array,o+a,c+u,p+f),e[5].distance=-(y+v),e[5].normalize();var _=this.boundingBox,b=this.vertices;if(0===y){var x=l/i,w=-v/(f-1),O=-v/(f+1),S=-O/l,T=-w/l;_.min.set(-S*x,-S,O),_.max.set(S*x,S,w),En(b[0],-S*x,-S,O),En(b[1],-S*x,S,O),En(b[2],S*x,-S,O),En(b[3],S*x,S,O),En(b[4],-T*x,-T,w),En(b[5],-T*x,T,w),En(b[6],T*x,-T,w),En(b[7],T*x,T,w)}else{var M=(-1-g)/i,A=(1-g)/i,C=(1-m)/l,I=(-1-m)/l,D=(-1-v)/f,L=(1-v)/f;_.min.set(Math.min(M,A),Math.min(I,C),Math.min(L,D)),_.max.set(Math.max(A,M),Math.max(C,I),Math.max(D,L));var E=_.min.array,j=_.max.array;En(b[0],E[0],E[1],E[2]),En(b[1],E[0],j[1],E[2]),En(b[2],j[0],E[1],E[2]),En(b[3],j[0],j[1],E[2]),En(b[4],E[0],E[1],j[2]),En(b[5],E[0],j[1],j[2]),En(b[6],j[0],E[1],j[2]),En(b[7],j[0],j[1],j[2])}},getTransformedBoundingBox:function(){var t=Qt.create();return function(e,n){var i=this.vertices,r=n.array,a=e.min,o=e.max,s=a.array,l=o.array,u=i[0];Pn(t,u,r),jn(s,t),jn(l,t);for(var c=1;c<8;c++)u=i[c],Pn(t,u,r),s[0]=Nn(t[0],s[0]),s[1]=Nn(t[1],s[1]),s[2]=Nn(t[2],s[2]),l[0]=Rn(t[0],l[0]),l[1]=Rn(t[1],l[1]),l[2]=Rn(t[2],l[2]);return a._dirty=!0,o._dirty=!0,e}}()};var Bn=kn,zn=Ge.extend((function(){return{projectionMatrix:new Le,invProjectionMatrix:new Le,viewMatrix:new Le,frustum:new Bn}}),(function(){this.update(!0)}),{update:function(t){Ge.prototype.update.call(this,t),Le.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),Le.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(t){Le.copy(this.viewMatrix,t),Le.invert(this.worldTransform,t),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(t){Le.copy(this.projectionMatrix,t),Le.invert(this.invProjectionMatrix,t),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:function(){var t=Oe.create();return function(e,n){var i=void 0!==n?n:new xe,r=e.array[0],a=e.array[1];return Oe.set(t,r,a,-1,1),Oe.transformMat4(t,t,this.invProjectionMatrix.array),Oe.transformMat4(t,t,this.worldTransform.array),Qt.scale(i.origin.array,t,1/t[3]),Oe.set(t,r,a,1,1),Oe.transformMat4(t,t,this.invProjectionMatrix.array),Oe.transformMat4(t,t,this.worldTransform.array),Qt.scale(t,t,1/t[3]),Qt.sub(i.direction.array,t,i.origin.array),Qt.normalize(i.direction.array,i.direction.array),i.direction._dirty=!0,i.origin._dirty=!0,i}}()}),Vn=zn,Fn=Yt.create(),Gn=Yt.create(),Hn={};function Un(t){var e=[],n=Object.keys(t);n.sort();for(var i=0;i<n.length;i++){var r=n[i];e.push(r+" "+t[r])}var a=e.join("\n");if(Hn[a])return Hn[a];var o=x.genGUID();return Hn[a]=o,o}function Wn(){this.opaque=[],this.transparent=[],this._opaqueCount=0,this._transparentCount=0}Wn.prototype.startCount=function(){this._opaqueCount=0,this._transparentCount=0},Wn.prototype.add=function(t,e){e?this.transparent[this._transparentCount++]=t:this.opaque[this._opaqueCount++]=t},Wn.prototype.endCount=function(){this.transparent.length=this._transparentCount,this.opaque.length=this._opaqueCount};var Xn=Ge.extend((function(){return{material:null,lights:[],viewBoundingBoxLastFrame:new ze,shadowUniforms:{},_cameraList:[],_lightUniforms:{},_previousLightNumber:{},_lightNumber:{},_lightProgramKeys:{},_nodeRepository:{},_renderLists:new j(20)}}),(function(){this._scene=this}),{addToScene:function(t){t instanceof Vn?(this._cameraList.length>0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(t)):t instanceof In&&this.lights.push(t),t.name&&(this._nodeRepository[t.name]=t)},removeFromScene:function(t){var e;t instanceof Vn?(e=this._cameraList.indexOf(t),e>=0&&this._cameraList.splice(e,1)):t instanceof In&&(e=this.lights.indexOf(t),e>=0&&this.lights.splice(e,1)),t.name&&delete this._nodeRepository[t.name]},getNode:function(t){return this._nodeRepository[t]},setMainCamera:function(t){var e=this._cameraList.indexOf(t);e>=0&&this._cameraList.splice(e,1),this._cameraList.unshift(t)},getMainCamera:function(){return this._cameraList[0]},getLights:function(){return this.lights},updateLights:function(){var t=this.lights;this._previousLightNumber=this._lightNumber;for(var e={},n=0;n<t.length;n++){var i=t[n];if(!i.invisible){var r=i.group;e[r]||(e[r]={}),e[r][i.type]=e[r][i.type]||0,e[r][i.type]++}}for(var a in this._lightNumber=e,e)this._lightProgramKeys[a]=Un(e[a]);this._updateLightUniforms()},cloneNode:function(t){var e=t.clone(),n={};function i(t,e){n[t.__uid__]=e;for(var r=0;r<t._children.length;r++){var a=t._children[r],o=e._children[r];i(a,o)}}return i(t,e),e.traverse((function(t){t.skeleton&&(t.skeleton=t.skeleton.clone(n)),t.material&&(t.material=t.material.clone())})),e},updateRenderList:function(t,e){var n=t.__uid__,i=this._renderLists.get(n);i||(i=new Wn,this._renderLists.put(n,i)),i.startCount(),e&&(this.viewBoundingBoxLastFrame.min.set(1/0,1/0,1/0),this.viewBoundingBoxLastFrame.max.set(-1/0,-1/0,-1/0));var r=this.material&&this.material.transparent||!1;return this._doUpdateRenderList(this,t,r,i,e),i.endCount(),i},getRenderList:function(t){return this._renderLists.get(t.__uid__)},_doUpdateRenderList:function(t,e,n,i,r){if(!t.invisible)for(var a=0;a<t._children.length;a++){var o=t._children[a];if(o.isRenderable()){var s=o.isSkinnedMesh()?Fn:o.worldTransform.array,l=o.geometry;Yt.multiplyAffine(Gn,e.viewMatrix.array,s),(r&&!l.boundingBox||!this.isFrustumCulled(o,e,Gn))&&i.add(o,o.material.transparent||n)}o._children.length>0&&this._doUpdateRenderList(o,e,n,i,r)}},isFrustumCulled:function(){var t=new ze,e=new Le;return function(n,i,r){var a=n.boundingBox;if(a||(a=n.skeleton&&n.skeleton.boundingBox?n.skeleton.boundingBox:n.geometry.boundingBox),!a)return!1;if(e.array=r,t.transformFrom(a,e),n.castShadow&&this.viewBoundingBoxLastFrame.union(t),n.frustumCulling){if(!t.intersectBoundingBox(i.frustum.boundingBox))return!0;e.array=i.projectionMatrix.array,t.max.array[2]>0&&t.min.array[2]<0&&(t.max.array[2]=-1e-20),t.applyProjection(e);var o=t.min.array,s=t.max.array;if(s[0]<-1||o[0]>1||s[1]<-1||o[1]>1||s[2]<-1||o[2]>1)return!0}return!1}}(),_updateLightUniforms:function(){var t=this.lights;t.sort(Zn);var e=this._lightUniforms;for(var n in e)for(var i in e[n])e[n][i].value.length=0;for(var r=0;r<t.length;r++){var a=t[r];if(!a.invisible){n=a.group;for(var i in a.uniformTemplates){var o=a.uniformTemplates[i],s=o.value(a);if(null!=s){e[n]||(e[n]={}),e[n][i]||(e[n][i]={type:"",value:[]});var l=e[n][i];switch(l.type=o.type+"v",o.type){case"1i":case"1f":case"t":l.value.push(s);break;case"2f":case"3f":case"4f":for(var u=0;u<s.length;u++)l.value.push(s[u]);break;default:console.error("Unkown light uniform type "+o.type)}}}}}},getLightGroups:function(){var t=[];for(var e in this._lightNumber)t.push(e);return t},getNumberChangedLightGroups:function(){var t=[];for(var e in this._lightNumber)this.isLightNumberChanged(e)&&t.push(e);return t},isLightNumberChanged:function(t){var e=this._previousLightNumber,n=this._lightNumber;for(var i in n[t]){if(!e[t])return!0;if(n[t][i]!==e[t][i])return!0}for(var i in e[t]){if(!n[t])return!0;if(n[t][i]!==e[t][i])return!0}return!1},getLightsNumbers:function(t){return this._lightNumber[t]},getProgramKey:function(t){return this._lightProgramKeys[t]},setLightUniforms:function(){function t(t,e,n){for(var i in t){var r=t[i];if("tv"===r.type){if(!e.hasUniform(i))continue;for(var a=[],o=0;o<r.value.length;o++){var s=r.value[o],l=e.takeCurrentTextureSlot(n,s);a.push(l)}e.setUniform(n.gl,"1iv",i,a)}else e.setUniform(n.gl,r.type,i,r.value)}}return function(e,n,i){t(this._lightUniforms[n],e,i),t(this.shadowUniforms,e,i)}}(),dispose:function(){this.material=null,this._opaqueList=[],this._transparentList=[],this.lights=[],this._lightUniforms={},this._lightNumber={},this._nodeRepository={}}});function Zn(t,e){if(e.castShadow&&!t.castShadow)return!0}var qn=Xn,Yn=n("d51b"),Kn=en.isPowerOfTwo,Qn=["px","nx","py","ny","pz","nz"],Jn=Qe.extend((function(){return{image:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},pixels:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},mipmaps:[]}}),{textureType:"textureCube",update:function(t){var e=t.gl;e.bindTexture(e.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),this.updateCommon(t);var n=this.format,i=this.type;e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_WRAP_S,this.getAvailableWrapS()),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_WRAP_T,this.getAvailableWrapT()),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var r=t.getGLExtension("EXT_texture_filter_anisotropic");if(r&&this.anisotropic>1&&e.texParameterf(e.TEXTURE_CUBE_MAP,r.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),36193===i){var a=t.getGLExtension("OES_texture_half_float");a||(i=C.FLOAT)}if(this.mipmaps.length)for(var o=this.width,s=this.height,l=0;l<this.mipmaps.length;l++){var u=this.mipmaps[l];this._updateTextureData(e,u,l,o,s,n,i),o/=2,s/=2}else this._updateTextureData(e,this,0,this.width,this.height,n,i),!this.NPOT&&this.useMipmap&&e.generateMipmap(e.TEXTURE_CUBE_MAP);e.bindTexture(e.TEXTURE_CUBE_MAP,null)},_updateTextureData:function(t,e,n,i,r,a,o){for(var s=0;s<6;s++){var l=Qn[s],u=e.image&&e.image[l];u?t.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+s,n,a,a,o,u):t.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+s,n,a,i,r,0,a,o,e.pixels&&e.pixels[l])}},generateMipmap:function(t){var e=t.gl;this.useMipmap&&!this.NPOT&&(e.bindTexture(e.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),e.generateMipmap(e.TEXTURE_CUBE_MAP))},bind:function(t){t.gl.bindTexture(t.gl.TEXTURE_CUBE_MAP,this.getWebGLTexture(t))},unbind:function(t){t.gl.bindTexture(t.gl.TEXTURE_CUBE_MAP,null)},isPowerOfTwo:function(){return this.image.px?Kn(this.image.px.width)&&Kn(this.image.px.height):Kn(this.width)&&Kn(this.height)},isRenderable:function(){return this.image.px?$n(this.image.px)&&$n(this.image.nx)&&$n(this.image.py)&&$n(this.image.ny)&&$n(this.image.pz)&&$n(this.image.nz):!(!this.width||!this.height)},load:function(t,e){var n=0,i=this;return x.each(t,(function(t,r){var a=I["a"].createImage();e&&(a.crossOrigin=e),a.onload=function(){n--,0===n&&(i.dirty(),i.trigger("success",i))},a.onerror=function(){n--},n++,a.src=t,i.image[r]=a})),this}});function $n(t){return t.width>0&&t.height>0}Object.defineProperty(Jn.prototype,"width",{get:function(){return this.image&&this.image.px?this.image.px.width:this._width},set:function(t){this.image&&this.image.px?console.warn("Texture from image can't set width"):(this._width!==t&&this.dirty(),this._width=t)}}),Object.defineProperty(Jn.prototype,"height",{get:function(){return this.image&&this.image.px?this.image.px.height:this._height},set:function(t){this.image&&this.image.px?console.warn("Texture from image can't set height"):(this._height!==t&&this.dirty(),this._height=t)}});var ti=Jn,ei=Vn.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var t=this.fov/180*Math.PI;this.projectionMatrix.perspective(t,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var t=this.projectionMatrix.array,e=2*Math.atan(1/t[5]);this.fov=e/Math.PI*180,this.aspect=t[5]/t[0],this.near=t[14]/(t[10]-1),this.far=t[14]/(t[10]+1)},clone:function(){var t=Vn.prototype.clone.call(this);return t.fov=this.fov,t.aspect=this.aspect,t.near=this.near,t.far=this.far,t}}),ni=ei,ii="framebuffer",ri="renderbuffer",ai=ri+"_width",oi=ri+"_height",si=ri+"_attached",li="depthtexture_attached",ui=C.FRAMEBUFFER,ci=C.RENDERBUFFER,hi=C.DEPTH_ATTACHMENT,di=C.COLOR_ATTACHMENT0,fi=O.extend({depthBuffer:!0,viewport:null,_width:0,_height:0,_textures:null,_boundRenderer:null},(function(){this._cache=new Ye,this._textures={}}),{getTextureWidth:function(){return this._width},getTextureHeight:function(){return this._height},bind:function(t){if(t.__currentFrameBuffer){if(t.__currentFrameBuffer===this)return;console.warn("Renderer already bound with another framebuffer. Unbind it first")}t.__currentFrameBuffer=this;var e=t.gl;e.bindFramebuffer(ui,this._getFrameBufferGL(t)),this._boundRenderer=t;var n=this._cache;n.put("viewport",t.viewport);var i,r,a=!1;for(var o in this._textures){a=!0;var s=this._textures[o];s&&(i=s.texture.width,r=s.texture.height,this._doAttach(t,s.texture,o,s.target))}this._width=i,this._height=r,!a&&this.depthBuffer&&console.error("Must attach texture before bind, or renderbuffer may have incorrect width and height."),this.viewport?t.setViewport(this.viewport):t.setViewport(0,0,i,r,1);var l=n.get("attached_textures");if(l)for(var o in l)if(!this._textures[o]){var u=l[o];this._doDetach(e,o,u)}if(!n.get(li)&&this.depthBuffer){n.miss(ri)&&n.put(ri,e.createRenderbuffer());var c=n.get(ri);i===n.get(ai)&&r===n.get(oi)||(e.bindRenderbuffer(ci,c),e.renderbufferStorage(ci,e.DEPTH_COMPONENT16,i,r),n.put(ai,i),n.put(oi,r),e.bindRenderbuffer(ci,null)),n.get(si)||(e.framebufferRenderbuffer(ui,hi,ci,c),n.put(si,!0))}},unbind:function(t){t.__currentFrameBuffer=null;var e=t.gl;e.bindFramebuffer(ui,null),this._boundRenderer=null,this._cache.use(t.__uid__);var n=this._cache.get("viewport");n&&t.setViewport(n),this.updateMipmap(t)},updateMipmap:function(t){var e=t.gl;for(var n in this._textures){var i=this._textures[n];if(i){var r=i.texture;if(!r.NPOT&&r.useMipmap&&r.minFilter===Qe.LINEAR_MIPMAP_LINEAR){var a="textureCube"===r.textureType?C.TEXTURE_CUBE_MAP:C.TEXTURE_2D;e.bindTexture(a,r.getWebGLTexture(t)),e.generateMipmap(a),e.bindTexture(a,null)}}}},checkStatus:function(t){return t.checkFramebufferStatus(ui)},_getFrameBufferGL:function(t){var e=this._cache;return e.use(t.__uid__),e.miss(ii)&&e.put(ii,t.gl.createFramebuffer()),e.get(ii)},attach:function(t,e,n){if(!t.width)throw new Error("The texture attached to color buffer is not a valid.");e=e||di,n=n||C.TEXTURE_2D;var i,r=this._boundRenderer,a=r&&r.gl;if(a){var o=this._cache;o.use(r.__uid__),i=o.get("attached_textures")}var s=this._textures[e];if(!s||s.target!==n||s.texture!==t||!i||null==i[e]){var l=!0;r&&(l=this._doAttach(r,t,e,n),this.viewport||r.setViewport(0,0,t.width,t.height,1)),l&&(this._textures[e]=this._textures[e]||{},this._textures[e].texture=t,this._textures[e].target=n)}},_doAttach:function(t,e,n,i){var r=t.gl,a=e.getWebGLTexture(t),o=this._cache.get("attached_textures");if(o&&o[n]){var s=o[n];if(s.texture===e&&s.target===i)return}n=+n;var l=!0;if(n===hi||n===C.DEPTH_STENCIL_ATTACHMENT){var u=t.getGLExtension("WEBGL_depth_texture");if(u||(console.error("Depth texture is not supported by the browser"),l=!1),e.format!==C.DEPTH_COMPONENT&&e.format!==C.DEPTH_STENCIL&&(console.error("The texture attached to depth buffer is not a valid."),l=!1),l){var c=this._cache.get(ri);c&&(r.framebufferRenderbuffer(ui,hi,ci,null),r.deleteRenderbuffer(c),this._cache.put(ri,!1)),this._cache.put(si,!1),this._cache.put(li,!0)}}return r.framebufferTexture2D(ui,n,i,a,0),o||(o={},this._cache.put("attached_textures",o)),o[n]=o[n]||{},o[n].texture=e,o[n].target=i,l},_doDetach:function(t,e,n){t.framebufferTexture2D(ui,e,n,null,0);var i=this._cache.get("attached_textures");i&&i[e]&&(i[e]=null),e!==hi&&e!==C.DEPTH_STENCIL_ATTACHMENT||this._cache.put(li,!1)},detach:function(t,e){if(this._textures[t]=null,this._boundRenderer){var n=this._cache;n.use(this._boundRenderer.__uid__),this._doDetach(this._boundRenderer.gl,t,e)}},dispose:function(t){var e=t.gl,n=this._cache;n.use(t.__uid__);var i=n.get(ri);i&&e.deleteRenderbuffer(i);var r=n.get(ii);r&&e.deleteFramebuffer(r),n.deleteContext(t.__uid__),this._textures={}}});fi.DEPTH_ATTACHMENT=hi,fi.COLOR_ATTACHMENT0=di,fi.STENCIL_ATTACHMENT=C.STENCIL_ATTACHMENT,fi.DEPTH_STENCIL_ATTACHMENT=C.DEPTH_STENCIL_ATTACHMENT;var pi=fi,gi=["px","nx","py","ny","pz","nz"],mi=O.extend((function(){var t={position:new ye,far:1e3,near:.1,texture:null,shadowMapPass:null},e=t._cameras={px:new ni({fov:90}),nx:new ni({fov:90}),py:new ni({fov:90}),ny:new ni({fov:90}),pz:new ni({fov:90}),nz:new ni({fov:90})};return e.px.lookAt(ye.POSITIVE_X,ye.NEGATIVE_Y),e.nx.lookAt(ye.NEGATIVE_X,ye.NEGATIVE_Y),e.py.lookAt(ye.POSITIVE_Y,ye.POSITIVE_Z),e.ny.lookAt(ye.NEGATIVE_Y,ye.NEGATIVE_Z),e.pz.lookAt(ye.POSITIVE_Z,ye.NEGATIVE_Y),e.nz.lookAt(ye.NEGATIVE_Z,ye.NEGATIVE_Y),t._frameBuffer=new pi,t}),{getCamera:function(t){return this._cameras[t]},render:function(t,e,n){var i=t.gl;n||e.update();for(var r=this.texture.width,a=2*Math.atan(r/(r-.5))/Math.PI*180,o=0;o<6;o++){var s=gi[o],l=this._cameras[s];if(ye.copy(l.position,this.position),l.far=this.far,l.near=this.near,l.fov=a,this.shadowMapPass){l.update();var u=e.getBoundingBox();u.applyTransform(l.viewMatrix),e.viewBoundingBoxLastFrame.copy(u),this.shadowMapPass.render(t,e,l,!0)}this._frameBuffer.attach(this.texture,i.COLOR_ATTACHMENT0,i.TEXTURE_CUBE_MAP_POSITIVE_X+o),this._frameBuffer.bind(t),t.render(e,l,!0),this._frameBuffer.unbind(t)}},dispose:function(t){this._frameBuffer.dispose(t)}}),vi=mi,yi=bn.extend({dynamic:!1,widthSegments:1,heightSegments:1},(function(){this.build()}),{build:function(){for(var t=this.heightSegments,e=this.widthSegments,n=this.attributes,i=[],r=[],a=[],o=[],s=0;s<=t;s++)for(var l=s/t,u=0;u<=e;u++){var c=u/e;if(i.push([2*c-1,2*l-1,0]),r&&r.push([c,l]),a&&a.push([0,0,1]),u<e&&s<t){var h=u+s*(e+1);o.push([h,h+1,h+e+1]),o.push([h+e+1,h+1,h+e+2])}}n.position.fromArray(i),n.texcoord0.fromArray(r),n.normal.fromArray(a),this.initIndicesFromArray(o),this.boundingBox=new ze,this.boundingBox.min.set(-1,-1,0),this.boundingBox.max.set(1,1,0)}}),_i=yi,bi=new Le,xi=bn.extend({dynamic:!1,widthSegments:1,heightSegments:1,depthSegments:1,inside:!1},(function(){this.build()}),{build:function(){var t={px:wi("px",this.depthSegments,this.heightSegments),nx:wi("nx",this.depthSegments,this.heightSegments),py:wi("py",this.widthSegments,this.depthSegments),ny:wi("ny",this.widthSegments,this.depthSegments),pz:wi("pz",this.widthSegments,this.heightSegments),nz:wi("nz",this.widthSegments,this.heightSegments)},e=["position","texcoord0","normal"],n=0,i=0;for(var r in t)n+=t[r].vertexCount,i+=t[r].indices.length;for(var a=0;a<e.length;a++)this.attributes[e[a]].init(n);this.indices=new I["a"].Uint16Array(i);var o=0,s=0;for(var r in t){var l=t[r];for(a=0;a<e.length;a++)for(var u=e[a],c=l.attributes[u].value,h=l.attributes[u].size,d="normal"===u,f=0;f<c.length;f++){var p=c[f];this.inside&&d&&(p=-p),this.attributes[u].value[f+h*s]=p}var g=l.indices.length;for(f=0;f<l.indices.length;f++)this.indices[f+o]=s+l.indices[this.inside?g-f-1:f];o+=l.indices.length,s+=l.vertexCount}this.boundingBox=new ze,this.boundingBox.max.set(1,1,1),this.boundingBox.min.set(-1,-1,-1)}});function wi(t,e,n){bi.identity();var i=new _i({widthSegments:e,heightSegments:n});switch(t){case"px":Le.translate(bi,bi,ye.POSITIVE_X),Le.rotateY(bi,bi,Math.PI/2);break;case"nx":Le.translate(bi,bi,ye.NEGATIVE_X),Le.rotateY(bi,bi,-Math.PI/2);break;case"py":Le.translate(bi,bi,ye.POSITIVE_Y),Le.rotateX(bi,bi,-Math.PI/2);break;case"ny":Le.translate(bi,bi,ye.NEGATIVE_Y),Le.rotateX(bi,bi,Math.PI/2);break;case"pz":Le.translate(bi,bi,ye.POSITIVE_Z);break;case"nz":Le.translate(bi,bi,ye.NEGATIVE_Z),Le.rotateY(bi,bi,Math.PI);break}return i.applyTransform(bi),i}var Oi=xi,Si="@export clay.skybox.vertex\n#define SHADER_NAME skybox\nuniform mat4 world : WORLD;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nattribute vec3 position : POSITION;\nvarying vec3 v_WorldPosition;\nvoid main()\n{\n v_WorldPosition = (world * vec4(position, 1.0)).xyz;\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n@end\n@export clay.skybox.fragment\n#define PI 3.1415926\nuniform mat4 viewInverse : VIEWINVERSE;\n#ifdef EQUIRECTANGULAR\nuniform sampler2D environmentMap;\n#else\nuniform samplerCube environmentMap;\n#endif\nuniform float lod: 0.0;\nvarying vec3 v_WorldPosition;\n@import clay.util.rgbm\n@import clay.util.srgb\n@import clay.util.ACES\nvoid main()\n{\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(v_WorldPosition - eyePos);\n#ifdef EQUIRECTANGULAR\n float phi = acos(V.y);\n float theta = atan(-V.x, V.z) + PI * 0.5;\n vec2 uv = vec2(theta / 2.0 / PI, phi / PI);\n vec4 texel = decodeHDR(texture2D(environmentMap, fract(uv)));\n#else\n #if defined(LOD) || defined(SUPPORT_TEXTURE_LOD)\n vec4 texel = decodeHDR(textureCubeLodEXT(environmentMap, V, lod));\n #else\n vec4 texel = decodeHDR(textureCube(environmentMap, V));\n #endif\n#endif\n#ifdef SRGB_DECODE\n texel = sRGBToLinear(texel);\n#endif\n#ifdef TONEMAPPING\n texel.rgb = ACESToneMapping(texel.rgb);\n#endif\n#ifdef SRGB_ENCODE\n texel = linearTosRGB(texel);\n#endif\n gl_FragColor = encodeHDR(vec4(texel.rgb, 1.0));\n}\n@end";Xt.import(Si);var Ti=$e.extend((function(){var t=new Xt({vertex:Xt.source("clay.skybox.vertex"),fragment:Xt.source("clay.skybox.fragment")}),e=new nt({shader:t,depthMask:!1});return{scene:null,geometry:new Oi,material:e,environmentMap:null,culling:!1,_dummyCamera:new ni}}),(function(){var t=this.scene;t&&this.attachScene(t),this.environmentMap&&this.setEnvironmentMap(this.environmentMap)}),{attachScene:function(t){this.scene&&this.detachScene(),t.skybox=this,this.scene=t,t.on("beforerender",this._beforeRenderScene,this)},detachScene:function(){this.scene&&(this.scene.off("beforerender",this._beforeRenderScene),this.scene.skybox=null),this.scene=null},dispose:function(t){this.detachScene(),this.geometry.dispose(t)},setEnvironmentMap:function(t){"texture2D"===t.textureType?(this.material.define("EQUIRECTANGULAR"),t.minFilter=Qe.LINEAR):this.material.undefine("EQUIRECTANGULAR"),this.material.set("environmentMap",t)},getEnvironmentMap:function(){return this.material.get("environmentMap")},_beforeRenderScene:function(t,e,n){this.renderSkybox(t,n)},renderSkybox:function(t,e){var n=this._dummyCamera;n.aspect=t.getViewportAspect(),n.fov=e.fov||50,n.updateProjectionMatrix(),Le.invert(n.invProjectionMatrix,n.projectionMatrix),n.worldTransform.copy(e.worldTransform),n.viewMatrix.copy(e.viewMatrix),this.position.copy(e.getWorldPosition()),this.update(),t.gl.disable(t.gl.BLEND),this.material.get("lod")>0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),t.renderPass([this],n)}}),Mi=Ti,Ai=Mi,Ci=542327876,Ii=131072,Di=512,Li=4;function Ei(t){return t.charCodeAt(0)+(t.charCodeAt(1)<<8)+(t.charCodeAt(2)<<16)+(t.charCodeAt(3)<<24)}var ji=31,Pi=Ei("DXT1"),Ni=Ei("DXT3"),Ri=Ei("DXT5"),ki=0,Bi=1,zi=2,Vi=3,Fi=4,Gi=7,Hi=20,Ui=21,Wi=28,Xi={parse:function(t,e){var n=new Int32Array(t,0,ji);if(n[ki]!==Ci)return null;if(!n(Hi)&Li)return null;var i,r,a=n(Ui),o=n[Fi],s=n[Vi],l=n[Wi]&Di,u=n[zi]&Ii;switch(a){case Pi:i=8,r=Qe.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case Ni:i=16,r=Qe.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case Ri:i=16,r=Qe.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var c=n[Bi]+4,h=l?6:1,d=1;u&&(d=Math.max(1,n[Gi]));for(var f=[],p=0;p<h;p++){var g=o,m=s;f[p]=new sn({width:g,height:m,format:r});for(var v=[],y=0;y<d;y++){var _=Math.max(4,g)/4*Math.max(4,m)/4*i,b=new Uint8Array(t,c,_);c+=_,g*=.5,m*=.5,v[y]=b}f[p].pixels=v[0],u&&(f[p].mipmaps=v)}if(!e)return f[0];e.width=f[0].width,e.height=f[0].height,e.format=f[0].format,e.pixels=f[0].pixels,e.mipmaps=f[0].mipmaps}},Zi=Xi,qi=String.fromCharCode,Yi=8,Ki=32767;function Qi(t,e,n,i){if(t[3]>0){var r=Math.pow(2,t[3]-128-8+i);e[n+0]=t[0]*r,e[n+1]=t[1]*r,e[n+2]=t[2]*r}else e[n+0]=0,e[n+1]=0,e[n+2]=0;return e[n+3]=1,e}function Ji(t,e,n){for(var i="",r=e;r<n;r++)i+=qi(t[r]);return i}function $i(t,e){e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]}function tr(t,e,n,i){var r=0,a=0,o=i;while(o>0)if(t[a][0]=e[n++],t[a][1]=e[n++],t[a][2]=e[n++],t[a][3]=e[n++],1===t[a][0]&&1===t[a][1]&&1===t[a][2]){for(var s=t[a][3]<<r>>>0;s>0;s--)$i(t[a-1],t[a]),a++,o--;r+=8}else a++,o--,r=0;return n}function er(t,e,n,i){if(i<Yi|i>Ki)return tr(t,e,n,i);var r=e[n++];if(2!=r)return tr(t,e,n-1,i);if(t[0][1]=e[n++],t[0][2]=e[n++],r=e[n++],(t[0][2]<<8>>>0|r)>>>0!==i)return null;for(r=0;r<4;r++)for(var a=0;a<i;){var o=e[n++];if(o>128){o=(127&o)>>>0;var s=e[n++];while(o--)t[a++][r]=s}else while(o--)t[a++][r]=e[n++]}return n}var nr={parseRGBE:function(t,e,n){null==n&&(n=0);var i=new Uint8Array(t),r=i.length;if("#?"===Ji(i,0,2)){for(var a=2;a<r;a++)if("\n"===qi(i[a])&&"\n"===qi(i[a+1]))break;if(!(a>=r)){a+=2;for(var o="";a<r;a++){var s=qi(i[a]);if("\n"===s)break;o+=s}var l=o.split(" "),u=parseInt(l[1]),c=parseInt(l[3]);if(c&&u){for(var h=a+1,d=[],f=0;f<c;f++){d[f]=[];for(var p=0;p<4;p++)d[f][p]=0}for(var g=new Float32Array(c*u*4),m=0,v=0;v<u;v++){h=er(d,i,h,c);if(!h)return null;for(f=0;f<c;f++)Qi(d[f],g,m,n),m+=4}return e||(e=new sn),e.width=c,e.height=u,e.pixels=g,e.type=Qe.FLOAT,e}}}},parseRGBEFromPNG:function(t){}},ir=nr,rr={loadTexture:function(t,e,n,i){var r;if("function"===typeof e?(n=e,i=n,e={}):e=e||{},"string"===typeof t){if(t.match(/.hdr$/)||"hdr"===e.fileType)return r=new sn({width:0,height:0,sRGB:!1}),rr._fetchTexture(t,(function(t){ir.parseRGBE(t,r,e.exposure),r.dirty(),n&&n(r)}),i),r;t.match(/.dds$/)||"dds"===e.fileType?(r=new sn({width:0,height:0}),rr._fetchTexture(t,(function(t){Zi.parse(t,r),r.dirty(),n&&n(r)}),i)):(r=new sn,r.load(t),r.success(n),r.error(i))}else"object"===typeof t&&"undefined"!==typeof t.px&&(r=new ti,r.load(t),r.success(n),r.error(i));return r},loadPanorama:function(t,e,n,i,r,a){var o=this;"function"===typeof i?(r=i,a=r,i={}):i=i||{},rr.loadTexture(e,i,(function(e){e.flipY=i.flipY||!1,o.panoramaToCubeMap(t,e,n,i),e.dispose(t),r&&r(n)}),a)},panoramaToCubeMap:function(t,e,n,i){var r=new vi,a=new Ai({scene:new qn});return a.setEnvironmentMap(e),i=i||{},i.encodeRGBM&&a.material.define("fragment","RGBM_ENCODE"),n.sRGB=e.sRGB,r.texture=n,r.render(t,a.scene),r.texture=null,r.dispose(t),n},heightToNormal:function(t,e){var n=document.createElement("canvas"),i=n.width=t.width,r=n.height=t.height,a=n.getContext("2d");a.drawImage(t,0,0,i,r),e=e||!1;for(var o=a.getImageData(0,0,i,r),s=a.createImageData(i,r),l=0;l<o.data.length;l+=4){if(e){var u=o.data[l],c=o.data[l+1],h=o.data[l+2],d=Math.abs(u-c)+Math.abs(c-h);if(d>20)return console.warn("Given image is not a height map"),t}var f,p,g,m;l%(4*i)===0?(f=o.data[l],g=o.data[l+4]):l%(4*i)===4*(i-1)?(f=o.data[l-4],g=o.data[l]):(f=o.data[l-4],g=o.data[l+4]),l<4*i?(p=o.data[l],m=o.data[l+4*i]):l>i*(r-1)*4?(p=o.data[l-4*i],m=o.data[l]):(p=o.data[l-4*i],m=o.data[l+4*i]),s.data[l]=f-g+127,s.data[l+1]=p-m+127,s.data[l+2]=255,s.data[l+3]=255}return a.putImageData(s,0,0),n},isHeightImage:function(t,e,n){if(!t||!t.width||!t.height)return!1;var i=document.createElement("canvas"),r=i.getContext("2d"),a=e||32;n=n||20,i.width=i.height=a,r.drawImage(t,0,0,a,a);for(var o=r.getImageData(0,0,a,a),s=0;s<o.data.length;s+=4){var l=o.data[s],u=o.data[s+1],c=o.data[s+2],h=Math.abs(l-u)+Math.abs(u-c);if(h>n)return!1}return!0},_fetchTexture:function(t,e,n){I["a"].request.get({url:t,responseType:"arraybuffer",onload:e,onerror:n})},createChessboard:function(t,e,n,i){t=t||512,e=e||64,n=n||"black",i=i||"white";var r=Math.ceil(t/e),a=document.createElement("canvas");a.width=t,a.height=t;var o=a.getContext("2d");o.fillStyle=i,o.fillRect(0,0,t,t),o.fillStyle=n;for(var s=0;s<r;s++)for(var l=0;l<r;l++){var u=l%2?s%2:s%2-1;u&&o.fillRect(s*e,l*e,e,e)}var c=new sn({image:a,anisotropic:8});return c},createBlank:function(t){var e=document.createElement("canvas");e.width=1,e.height=1;var n=e.getContext("2d");n.fillStyle=t,n.fillRect(0,0,1,1);var i=new sn({image:e});return i}},ar=rr,or=["mousedown","mouseup","mousemove","mouseover","mouseout","click","dblclick","contextmenu"];function sr(t){return"_on"+t}var lr=function(t){var e=this;this._texture=new sn({anisotropic:32,flipY:!1,surface:this,dispose:function(t){e.dispose(),sn.prototype.dispose.call(this,t)}}),or.forEach((function(t){this[sr(t)]=function(e){e.triangle&&this._meshes.forEach((function(n){this.dispatchEvent(t,n,e.triangle,e.point)}),this)}}),this),this._meshes=[],t&&this.setECharts(t),this.onupdate=null};lr.prototype={constructor:lr,getTexture:function(){return this._texture},setECharts:function(t){this._chart=t;var e=t.getDom();if(e instanceof HTMLCanvasElement){var n=this,i=t.getZr(),r=i.__oldRefreshImmediately||i.refreshImmediately;i.refreshImmediately=function(){r.call(this),n._texture.dirty(),n.onupdate&&n.onupdate()},i.__oldRefreshImmediately=r}else console.error("ECharts must init on canvas if it is used as texture."),e=document.createElement("canvas");this._texture.image=e,this._texture.dirty(),this.onupdate&&this.onupdate()},dispatchEvent:function(){var t=new ye,e=new ye,n=new ye,i=new ct,r=new ct,a=new ct,o=new ct,s=new ye;return function(l,u,c,h){var d=u.geometry,f=d.attributes.position,p=d.attributes.texcoord0,g=ye.dot,m=ye.cross;f.get(c[0],t.array),f.get(c[1],e.array),f.get(c[2],n.array),p.get(c[0],i.array),p.get(c[1],r.array),p.get(c[2],a.array),m(s,e,n);var v=g(t,s),y=g(h,s)/v;m(s,n,t);var _=g(h,s)/v;m(s,t,e);var b=g(h,s)/v;ct.scale(o,i,y),ct.scaleAndAdd(o,o,r,_),ct.scaleAndAdd(o,o,a,b);var x=o.x*this._chart.getWidth(),w=o.y*this._chart.getHeight();this._chart.getZr().handler.dispatch(l,{zrX:x,zrY:w})}}(),attachToMesh:function(t){this._meshes.indexOf(t)>=0||(or.forEach((function(e){t.on(e,this[sr(e)],this)}),this),this._meshes.push(t))},detachFromMesh:function(t){var e=this._meshes.indexOf(t);e>=0&&this._meshes.splice(e,1),or.forEach((function(e){t.off(e,this[sr(e)])}),this)},dispose:function(){this._meshes.forEach((function(t){this.detachFromMesh(t)}),this)}};var ur=lr,cr=Vn.extend({left:-1,right:1,near:-1,far:1,top:1,bottom:-1},{updateProjectionMatrix:function(){this.projectionMatrix.ortho(this.left,this.right,this.bottom,this.top,this.near,this.far)},decomposeProjectionMatrix:function(){var t=this.projectionMatrix.array;this.left=(-1-t[12])/t[0],this.right=(1-t[12])/t[0],this.top=(1-t[13])/t[5],this.bottom=(-1-t[13])/t[5],this.near=-(-1-t[14])/t[10],this.far=-(1-t[14])/t[10]},clone:function(){var t=Vn.prototype.clone.call(this);return t.left=this.left,t.right=this.right,t.near=this.near,t.far=this.far,t.top=this.top,t.bottom=this.bottom,t}}),hr=cr,dr="\n@export clay.compositor.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\nvarying vec2 v_Texcoord;\nvoid main()\n{\n v_Texcoord = texcoord;\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n@end";Xt["import"](dr);var fr=new _i,pr=new $e({geometry:fr,frustumCulling:!1}),gr=new hr,mr=O.extend((function(){return{fragment:"",outputs:null,material:null,blendWithPrevious:!1,clearColor:!1,clearDepth:!0}}),(function(){var t=new Xt(Xt.source("clay.compositor.vertex"),this.fragment),e=new nt({shader:t});e.enableTexturesAll(),this.material=e}),{setUniform:function(t,e){this.material.setUniform(t,e)},getUniform:function(t){var e=this.material.uniforms[t];if(e)return e.value},attachOutput:function(t,e){this.outputs||(this.outputs={}),e=e||C.COLOR_ATTACHMENT0,this.outputs[e]=t},detachOutput:function(t){for(var e in this.outputs)this.outputs[e]===t&&(this.outputs[e]=null)},bind:function(t,e){if(this.outputs)for(var n in this.outputs){var i=this.outputs[n];i&&e.attach(i,n)}e&&e.bind(t)},unbind:function(t,e){e.unbind(t)},render:function(t,e){var n=t.gl;if(e){this.bind(t,e);var i=t.getGLExtension("EXT_draw_buffers");if(i&&this.outputs){var r=[];for(var a in this.outputs)a=+a,a>=n.COLOR_ATTACHMENT0&&a<=n.COLOR_ATTACHMENT0+8&&r.push(a);i.drawBuffersEXT(r)}}this.trigger("beforerender",this,t);var o=this.clearDepth?n.DEPTH_BUFFER_BIT:0;if(n.depthMask(!0),this.clearColor){o|=n.COLOR_BUFFER_BIT,n.colorMask(!0,!0,!0,!0);var s=this.clearColor;Array.isArray(s)&&n.clearColor(s[0],s[1],s[2],s[3])}n.clear(o),this.blendWithPrevious?(n.enable(n.BLEND),this.material.transparent=!0):(n.disable(n.BLEND),this.material.transparent=!1),this.renderQuad(t),this.trigger("afterrender",this,t),e&&this.unbind(t,e)},renderQuad:function(t){pr.material=this.material,t.renderPass([pr],gr)},dispose:function(t){}}),vr=mr,yr="#define SAMPLE_NUMBER 1024\n#define PI 3.14159265358979\nuniform sampler2D normalDistribution;\nuniform vec2 viewportSize : [512, 256];\nconst vec3 N = vec3(0.0, 0.0, 1.0);\nconst float fSampleNumber = float(SAMPLE_NUMBER);\nvec3 importanceSampleNormal(float i, float roughness, vec3 N) {\n vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb;\n vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);\n vec3 tangentX = normalize(cross(N, upVector));\n vec3 tangentZ = cross(N, tangentX);\n return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);\n}\nfloat G_Smith(float roughness, float NoV, float NoL) {\n float k = roughness * roughness / 2.0;\n float G1V = NoV / (NoV * (1.0 - k) + k);\n float G1L = NoL / (NoL * (1.0 - k) + k);\n return G1L * G1V;\n}\nvoid main() {\n vec2 uv = gl_FragCoord.xy / viewportSize;\n float NoV = uv.x;\n float roughness = uv.y;\n vec3 V;\n V.x = sqrt(1.0 - NoV * NoV);\n V.y = 0.0;\n V.z = NoV;\n float A = 0.0;\n float B = 0.0;\n for (int i = 0; i < SAMPLE_NUMBER; i++) {\n vec3 H = importanceSampleNormal(float(i) / fSampleNumber, roughness, N);\n vec3 L = reflect(-V, H);\n float NoL = clamp(L.z, 0.0, 1.0);\n float NoH = clamp(H.z, 0.0, 1.0);\n float VoH = clamp(dot(V, H), 0.0, 1.0);\n if (NoL > 0.0) {\n float G = G_Smith(roughness, NoV, NoL);\n float G_Vis = G * VoH / (NoH * NoV);\n float Fc = pow(1.0 - VoH, 5.0);\n A += (1.0 - Fc) * G_Vis;\n B += Fc * G_Vis;\n }\n }\n gl_FragColor = vec4(vec2(A, B) / fSampleNumber, 0.0, 1.0);\n}\n",_r="#define SHADER_NAME prefilter\n#define SAMPLE_NUMBER 1024\n#define PI 3.14159265358979\nuniform mat4 viewInverse : VIEWINVERSE;\nuniform samplerCube environmentMap;\nuniform sampler2D normalDistribution;\nuniform float roughness : 0.5;\nvarying vec2 v_Texcoord;\nvarying vec3 v_WorldPosition;\n@import clay.util.rgbm\nvec3 importanceSampleNormal(float i, float roughness, vec3 N) {\n vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb;\n vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);\n vec3 tangentX = normalize(cross(N, upVector));\n vec3 tangentZ = cross(N, tangentX);\n return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);\n}\nvoid main() {\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(v_WorldPosition - eyePos);\n vec3 N = V;\n vec3 prefilteredColor = vec3(0.0);\n float totalWeight = 0.0;\n float fMaxSampleNumber = float(SAMPLE_NUMBER);\n for (int i = 0; i < SAMPLE_NUMBER; i++) {\n vec3 H = importanceSampleNormal(float(i) / fMaxSampleNumber, roughness, N);\n vec3 L = reflect(-V, H);\n float NoL = clamp(dot(N, L), 0.0, 1.0);\n if (NoL > 0.0) {\n prefilteredColor += decodeHDR(textureCube(environmentMap, L)).rgb * NoL;\n totalWeight += NoL;\n }\n }\n gl_FragColor = encodeHDR(vec4(prefilteredColor / totalWeight, 1.0));\n}\n",br={},xr=["px","nx","py","ny","pz","nz"];br.prefilterEnvironmentMap=function(t,e,n,i,r){r&&i||(i=br.generateNormalDistribution(),r=br.integrateBRDF(t,i)),n=n||{};var a=n.width||64,o=n.height||64,s=n.type||e.type,l=new ti({width:a,height:o,type:s,flipY:!1,mipmaps:[]});l.isPowerOfTwo()||console.warn("Width and height must be power of two to enable mipmap.");var u=Math.min(a,o),c=Math.log(u)/Math.log(2)+1,h=new nt({shader:new Xt({vertex:Xt.source("clay.skybox.vertex"),fragment:_r})});h.set("normalDistribution",i),n.encodeRGBM&&h.define("fragment","RGBM_ENCODE"),n.decodeRGBM&&h.define("fragment","RGBM_DECODE");var d,f=new qn;if("texture2D"===e.textureType){var p=new ti({width:a,height:o,type:s===Qe.FLOAT?Qe.HALF_FLOAT:s});ar.panoramaToCubeMap(t,e,p,{encodeRGBM:n.decodeRGBM}),e=p}d=new Mi({scene:f,material:h}),d.material.set("environmentMap",e);var g=new vi({texture:l});n.encodeRGBM&&(s=l.type=Qe.UNSIGNED_BYTE);for(var m=new sn({width:a,height:o,type:s}),v=new pi({depthBuffer:!1}),y=I["a"][s===Qe.UNSIGNED_BYTE?"Uint8Array":"Float32Array"],_=0;_<c;_++){l.mipmaps[_]={pixels:{}},d.material.set("roughness",_/(c-1));for(var b=m.width,x=2*Math.atan(b/(b-.5))/Math.PI*180,w=0;w<xr.length;w++){var O=new y(m.width*m.height*4);v.attach(m),v.bind(t);var S=g.getCamera(xr[w]);S.fov=x,t.render(f,S),t.gl.readPixels(0,0,m.width,m.height,Qe.RGBA,s,O),v.unbind(t),l.mipmaps[_].pixels[xr[w]]=O}m.width/=2,m.height/=2,m.dirty()}return v.dispose(t),m.dispose(t),d.dispose(t),i.dispose(t),{environmentMap:l,brdfLookup:r,normalDistribution:i,maxMipmapLevel:c}},br.integrateBRDF=function(t,e){e=e||br.generateNormalDistribution();var n=new pi({depthBuffer:!1}),i=new vr({fragment:yr}),r=new sn({width:512,height:256,type:Qe.HALF_FLOAT,wrapS:Qe.CLAMP_TO_EDGE,wrapT:Qe.CLAMP_TO_EDGE,minFilter:Qe.NEAREST,magFilter:Qe.NEAREST,useMipmap:!1});return i.setUniform("normalDistribution",e),i.setUniform("viewportSize",[512,256]),i.attachOutput(r),i.render(t,n),n.dispose(t),r},br.generateNormalDistribution=function(t,e){t=t||256,e=e||1024;for(var n=new sn({width:t,height:e,type:Qe.FLOAT,minFilter:Qe.NEAREST,magFilter:Qe.NEAREST,wrapS:Qe.CLAMP_TO_EDGE,wrapT:Qe.CLAMP_TO_EDGE,useMipmap:!1}),i=new Float32Array(e*t*4),r=[],a=0;a<t;a++){for(var o=a/t,s=o*o,l=0;l<e;l++){var u=(l<<16|l>>>16)>>>0;u=((1431655765&u)<<1|(2863311530&u)>>>1)>>>0,u=((858993459&u)<<2|(3435973836&u)>>>2)>>>0,u=((252645135&u)<<4|(4042322160&u)>>>4)>>>0,u=(((16711935&u)<<8|(4278255360&u)>>>8)>>>0)/4294967296;var c=Math.sqrt((1-u)/(1+(s*s-1)*u));r[l]=c}for(l=0;l<e;l++){var h=4*(l*t+a),d=(c=r[l],Math.sqrt(1-c*c)),f=l/e,p=2*Math.PI*f;i[h]=d*Math.cos(p),i[h+1]=c,i[h+2]=d*Math.sin(p),i[h+3]=1}}return n.pixels=i,n};var wr=br,Or=In.extend({cubemap:null,castShadow:!1,_normalDistribution:null,_brdfLookup:null},{type:"AMBIENT_CUBEMAP_LIGHT",prefilter:function(t,e){if(t.getGLExtension("EXT_shader_texture_lod")){this._brdfLookup||(this._normalDistribution=wr.generateNormalDistribution(),this._brdfLookup=wr.integrateBRDF(t,this._normalDistribution));var n=this.cubemap;if(!n.__prefiltered){var i=wr.prefilterEnvironmentMap(t,n,{encodeRGBM:!0,width:e,height:e},this._normalDistribution,this._brdfLookup);this.cubemap=i.environmentMap,this.cubemap.__prefiltered=!0,n.dispose(t)}}else console.warn("Device not support textureCubeLodEXT")},getBRDFLookup:function(){return this._brdfLookup},uniformTemplates:{ambientCubemapLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}},ambientCubemapLightCubemap:{type:"t",value:function(t){return t.cubemap}},ambientCubemapLightBRDFLookup:{type:"t",value:function(t){return t._brdfLookup}}}}),Sr=Or,Tr=In.extend({castShadow:!1,coefficients:[]},(function(){this._coefficientsTmpArr=new I["a"].Float32Array(27)}),{type:"AMBIENT_SH_LIGHT",uniformTemplates:{ambientSHLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}},ambientSHLightCoefficients:{type:"3f",value:function(t){for(var e=t._coefficientsTmpArr,n=0;n<t.coefficients.length;n++)e[n]=t.coefficients[n];return e}}}}),Mr=Tr,Ar={},Cr=["px","nx","py","ny","pz","nz"];function Ir(t,e){var n=t[0],i=t[1],r=t[2];return 0===e?1:1===e?n:2===e?i:3===e?r:4===e?n*r:5===e?i*r:6===e?n*i:7===e?3*r*r-1:n*n-i*i}var Dr={px:[2,1,0,-1,-1,1],nx:[2,1,0,1,-1,-1],py:[0,2,1,1,-1,-1],ny:[0,2,1,1,1,1],pz:[0,1,2,-1,-1,-1],nz:[0,1,2,1,-1,1]};function Lr(t,e,n,i){for(var r=new I["a"].Float32Array(27),a=Qt.create(),o=Qt.create(),s=Qt.create(),l=0;l<9;l++){for(var u=Qt.create(),c=0;c<Cr.length;c++){for(var h=e[Cr[c]],d=Qt.create(),f=0,p=0,g=Dr[Cr[c]],m=0;m<i;m++)for(var v=0;v<n;v++){a[0]=v/(n-1)*2-1,a[1]=m/(i-1)*2-1,a[2]=-1,Qt.normalize(a,a),s[0]=a[g[0]]*g[3],s[1]=a[g[1]]*g[4],s[2]=a[g[2]]*g[5],o[0]=h[p++]/255,o[1]=h[p++]/255,o[2]=h[p++]/255;var y=h[p++]/255*8.12;o[0]*=y,o[1]*=y,o[2]*=y,Qt.scaleAndAdd(d,d,o,Ir(s,l)*-a[2]),f+=-a[2]}Qt.scaleAndAdd(u,u,d,1/f)}r[3*l]=u[0]/6,r[3*l+1]=u[1]/6,r[3*l+2]=u[2]/6}return r}Ar.projectEnvironmentMap=function(t,e,n){var i;n=n||{},n.lod=n.lod||0;var r=new qn,a=64;"texture2D"===e.textureType?i=new Ai({scene:r,environmentMap:e}):(a=e.image&&e.image.px?e.image.px.width:e.width,i=new Mi({scene:r,environmentMap:e}));var o=Math.ceil(a/Math.pow(2,n.lod)),s=Math.ceil(a/Math.pow(2,n.lod)),l=new sn({width:o,height:s}),u=new pi;i.material.define("fragment","RGBM_ENCODE"),n.decodeRGBM&&i.material.define("fragment","RGBM_DECODE"),i.material.set("lod",n.lod);for(var c=new vi({texture:l}),h={},d=0;d<Cr.length;d++){h[Cr[d]]=new Uint8Array(o*s*4);var f=c.getCamera(Cr[d]);f.fov=90,u.attach(l),u.bind(t),t.render(r,f),t.gl.readPixels(0,0,o,s,Qe.RGBA,Qe.UNSIGNED_BYTE,h[Cr[d]]),u.unbind(t)}return i.dispose(t),u.dispose(t),l.dispose(t),Lr(t,h,o,s)};var Er=Ar,jr={firstNotNull:function(){for(var t=0,e=arguments.length;t<e;t++)if(null!=arguments[t])return arguments[t]},queryDataIndex:function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?a["w"].isArray(e.dataIndex)?a["w"].map(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?a["w"].isArray(e.name)?a["w"].map(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}},Pr=jr,Nr=bn.extend({dynamic:!1,widthSegments:40,heightSegments:20,phiStart:0,phiLength:2*Math.PI,thetaStart:0,thetaLength:Math.PI,radius:1},(function(){this.build()}),{build:function(){var t=this.heightSegments,e=this.widthSegments,n=this.attributes.position,i=this.attributes.texcoord0,r=this.attributes.normal,a=(e+1)*(t+1);n.init(a),i.init(a),r.init(a);var o,s,l,u,c,h,d,f,p,g,m,v=a>65535?Uint32Array:Uint16Array,y=this.indices=new v(e*t*6),_=this.radius,b=this.phiStart,x=this.phiLength,w=this.thetaStart,O=this.thetaLength,S=(_=this.radius,[]),T=[],M=0,A=1/_;for(d=0;d<=t;d++)for(h=0;h<=e;h++)u=h/e,c=d/t,o=-_*Math.cos(b+u*x)*Math.sin(w+c*O),s=_*Math.cos(w+c*O),l=_*Math.sin(b+u*x)*Math.sin(w+c*O),S[0]=o,S[1]=s,S[2]=l,T[0]=u,T[1]=c,n.set(M,S),i.set(M,T),S[0]*=A,S[1]*=A,S[2]*=A,r.set(M,S),M++;var C=e+1,I=0;for(d=0;d<t;d++)for(h=0;h<e;h++)p=d*C+h,f=d*C+h+1,m=(d+1)*C+h+1,g=(d+1)*C+h,y[I++]=f,y[I++]=p,y[I++]=m,y[I++]=p,y[I++]=g,y[I++]=m;this.boundingBox=new ze,this.boundingBox.max.set(_,_,_),this.boundingBox.min.set(-_,-_,-_)}}),Rr=Nr,kr=In.extend({castShadow:!1},{type:"AMBIENT_LIGHT",uniformTemplates:{ambientLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}}}}),Br=kr,zr=In.extend({shadowBias:.001,shadowSlopeScale:2,shadowCascade:1,cascadeSplitLogFactor:.2},{type:"DIRECTIONAL_LIGHT",uniformTemplates:{directionalLightDirection:{type:"3f",value:function(t){return t.__dir=t.__dir||new ye,t.__dir.copy(t.worldTransform.z).normalize().negate().array}},directionalLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}}},clone:function(){var t=In.prototype.clone.call(this);return t.shadowBias=this.shadowBias,t.shadowSlopeScale=this.shadowSlopeScale,t}}),Vr=zr,Fr=In.extend({range:100,castShadow:!1},{type:"POINT_LIGHT",uniformTemplates:{pointLightPosition:{type:"3f",value:function(t){return t.getWorldPosition().array}},pointLightRange:{type:"1f",value:function(t){return t.range}},pointLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}}},clone:function(){var t=In.prototype.clone.call(this);return t.range=this.range,t}}),Gr=Fr,Hr=In.extend({range:20,umbraAngle:30,penumbraAngle:45,falloffFactor:2,shadowBias:.001,shadowSlopeScale:2},{type:"SPOT_LIGHT",uniformTemplates:{spotLightPosition:{type:"3f",value:function(t){return t.getWorldPosition().array}},spotLightRange:{type:"1f",value:function(t){return t.range}},spotLightUmbraAngleCosine:{type:"1f",value:function(t){return Math.cos(t.umbraAngle*Math.PI/180)}},spotLightPenumbraAngleCosine:{type:"1f",value:function(t){return Math.cos(t.penumbraAngle*Math.PI/180)}},spotLightFalloffFactor:{type:"1f",value:function(t){return t.falloffFactor}},spotLightDirection:{type:"3f",value:function(t){return t.__dir=t.__dir||new ye,t.__dir.copy(t.worldTransform.z).negate().array}},spotLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}}},clone:function(){var t=In.prototype.clone.call(this);return t.range=this.range,t.umbraAngle=this.umbraAngle,t.penumbraAngle=this.penumbraAngle,t.falloffFactor=this.falloffFactor,t.shadowBias=this.shadowBias,t.shadowSlopeScale=this.shadowSlopeScale,t}}),Ur=Hr,Wr=function(t,e,n,i){t=t||0,e=e||0,n=n||0,i=i||0,this.array=Oe.fromValues(t,e,n,i),this._dirty=!0};Wr.prototype={constructor:Wr,add:function(t){return Oe.add(this.array,this.array,t.array),this._dirty=!0,this},set:function(t,e,n,i){return this.array[0]=t,this.array[1]=e,this.array[2]=n,this.array[3]=i,this._dirty=!0,this},setArray:function(t){return this.array[0]=t[0],this.array[1]=t[1],this.array[2]=t[2],this.array[3]=t[3],this._dirty=!0,this},clone:function(){return new Wr(this.x,this.y,this.z,this.w)},copy:function(t){return Oe.copy(this.array,t.array),this._dirty=!0,this},dist:function(t){return Oe.dist(this.array,t.array)},distance:function(t){return Oe.distance(this.array,t.array)},div:function(t){return Oe.div(this.array,this.array,t.array),this._dirty=!0,this},divide:function(t){return Oe.divide(this.array,this.array,t.array),this._dirty=!0,this},dot:function(t){return Oe.dot(this.array,t.array)},len:function(){return Oe.len(this.array)},length:function(){return Oe.length(this.array)},lerp:function(t,e,n){return Oe.lerp(this.array,t.array,e.array,n),this._dirty=!0,this},min:function(t){return Oe.min(this.array,this.array,t.array),this._dirty=!0,this},max:function(t){return Oe.max(this.array,this.array,t.array),this._dirty=!0,this},mul:function(t){return Oe.mul(this.array,this.array,t.array),this._dirty=!0,this},multiply:function(t){return Oe.multiply(this.array,this.array,t.array),this._dirty=!0,this},negate:function(){return Oe.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return Oe.normalize(this.array,this.array),this._dirty=!0,this},random:function(t){return Oe.random(this.array,t),this._dirty=!0,this},scale:function(t){return Oe.scale(this.array,this.array,t),this._dirty=!0,this},scaleAndAdd:function(t,e){return Oe.scaleAndAdd(this.array,this.array,t.array,e),this._dirty=!0,this},sqrDist:function(t){return Oe.sqrDist(this.array,t.array)},squaredDistance:function(t){return Oe.squaredDistance(this.array,t.array)},sqrLen:function(){return Oe.sqrLen(this.array)},squaredLength:function(){return Oe.squaredLength(this.array)},sub:function(t){return Oe.sub(this.array,this.array,t.array),this._dirty=!0,this},subtract:function(t){return Oe.subtract(this.array,this.array,t.array),this._dirty=!0,this},transformMat4:function(t){return Oe.transformMat4(this.array,this.array,t.array),this._dirty=!0,this},transformQuat:function(t){return Oe.transformQuat(this.array,this.array,t.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var Xr=Object.defineProperty;if(Xr){var Zr=Wr.prototype;Xr(Zr,"x",{get:function(){return this.array[0]},set:function(t){this.array[0]=t,this._dirty=!0}}),Xr(Zr,"y",{get:function(){return this.array[1]},set:function(t){this.array[1]=t,this._dirty=!0}}),Xr(Zr,"z",{get:function(){return this.array[2]},set:function(t){this.array[2]=t,this._dirty=!0}}),Xr(Zr,"w",{get:function(){return this.array[3]},set:function(t){this.array[3]=t,this._dirty=!0}})}Wr.add=function(t,e,n){return Oe.add(t.array,e.array,n.array),t._dirty=!0,t},Wr.set=function(t,e,n,i,r){Oe.set(t.array,e,n,i,r),t._dirty=!0},Wr.copy=function(t,e){return Oe.copy(t.array,e.array),t._dirty=!0,t},Wr.dist=function(t,e){return Oe.distance(t.array,e.array)},Wr.distance=Wr.dist,Wr.div=function(t,e,n){return Oe.divide(t.array,e.array,n.array),t._dirty=!0,t},Wr.divide=Wr.div,Wr.dot=function(t,e){return Oe.dot(t.array,e.array)},Wr.len=function(t){return Oe.length(t.array)},Wr.lerp=function(t,e,n,i){return Oe.lerp(t.array,e.array,n.array,i),t._dirty=!0,t},Wr.min=function(t,e,n){return Oe.min(t.array,e.array,n.array),t._dirty=!0,t},Wr.max=function(t,e,n){return Oe.max(t.array,e.array,n.array),t._dirty=!0,t},Wr.mul=function(t,e,n){return Oe.multiply(t.array,e.array,n.array),t._dirty=!0,t},Wr.multiply=Wr.mul,Wr.negate=function(t,e){return Oe.negate(t.array,e.array),t._dirty=!0,t},Wr.normalize=function(t,e){return Oe.normalize(t.array,e.array),t._dirty=!0,t},Wr.random=function(t,e){return Oe.random(t.array,e),t._dirty=!0,t},Wr.scale=function(t,e,n){return Oe.scale(t.array,e.array,n),t._dirty=!0,t},Wr.scaleAndAdd=function(t,e,n,i){return Oe.scaleAndAdd(t.array,e.array,n.array,i),t._dirty=!0,t},Wr.sqrDist=function(t,e){return Oe.sqrDist(t.array,e.array)},Wr.squaredDistance=Wr.sqrDist,Wr.sqrLen=function(t){return Oe.sqrLen(t.array)},Wr.squaredLength=Wr.sqrLen,Wr.sub=function(t,e,n){return Oe.subtract(t.array,e.array,n.array),t._dirty=!0,t},Wr.subtract=Wr.sub,Wr.transformMat4=function(t,e,n){return Oe.transformMat4(t.array,e.array,n.array),t._dirty=!0,t},Wr.transformQuat=function(t,e,n){return Oe.transformQuat(t.array,e.array,n.array),t._dirty=!0,t};var qr=Wr,Yr={create:function(){var t=new rt(4);return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},clone:function(t){var e=new rt(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},transpose:function(t,e){if(t===e){var n=e[1];t[1]=e[2],t[2]=n}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t},invert:function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n*a-r*i;return o?(o=1/o,t[0]=a*o,t[1]=-i*o,t[2]=-r*o,t[3]=n*o,t):null},adjoint:function(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t},determinant:function(t){return t[0]*t[3]-t[2]*t[1]},multiply:function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=i*s+a*l,t[1]=r*s+o*l,t[2]=i*u+a*c,t[3]=r*u+o*c,t}};Yr.mul=Yr.multiply,Yr.rotate=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+a*s,t[1]=r*l+o*s,t[2]=i*-s+a*l,t[3]=r*-s+o*l,t},Yr.scale=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=n[0],l=n[1];return t[0]=i*s,t[1]=r*s,t[2]=a*l,t[3]=o*l,t},Yr.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2))},Yr.LDU=function(t,e,n,i){return t[2]=i[2]/i[0],n[0]=i[0],n[1]=i[1],n[3]=i[3]-t[2]*n[1],[t,e,n]};var Kr=Yr,Qr=function(){this.array=Kr.create(),this._dirty=!0};Qr.prototype={constructor:Qr,setArray:function(t){for(var e=0;e<this.array.length;e++)this.array[e]=t[e];return this._dirty=!0,this},clone:function(){return(new Qr).copy(this)},copy:function(t){return Kr.copy(this.array,t.array),this._dirty=!0,this},adjoint:function(){return Kr.adjoint(this.array,this.array),this._dirty=!0,this},determinant:function(){return Kr.determinant(this.array)},identity:function(){return Kr.identity(this.array),this._dirty=!0,this},invert:function(){return Kr.invert(this.array,this.array),this._dirty=!0,this},mul:function(t){return Kr.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return Kr.mul(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return Kr.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return Kr.multiply(this.array,t.array,this.array),this._dirty=!0,this},rotate:function(t){return Kr.rotate(this.array,this.array,t),this._dirty=!0,this},scale:function(t){return Kr.scale(this.array,this.array,t.array),this._dirty=!0,this},transpose:function(){return Kr.transpose(this.array,this.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},Qr.adjoint=function(t,e){return Kr.adjoint(t.array,e.array),t._dirty=!0,t},Qr.copy=function(t,e){return Kr.copy(t.array,e.array),t._dirty=!0,t},Qr.determinant=function(t){return Kr.determinant(t.array)},Qr.identity=function(t){return Kr.identity(t.array),t._dirty=!0,t},Qr.invert=function(t,e){return Kr.invert(t.array,e.array),t._dirty=!0,t},Qr.mul=function(t,e,n){return Kr.mul(t.array,e.array,n.array),t._dirty=!0,t},Qr.multiply=Qr.mul,Qr.rotate=function(t,e,n){return Kr.rotate(t.array,e.array,n),t._dirty=!0,t},Qr.scale=function(t,e,n){return Kr.scale(t.array,e.array,n.array),t._dirty=!0,t},Qr.transpose=function(t,e){return Kr.transpose(t.array,e.array),t._dirty=!0,t};var Jr=Qr,$r={create:function(){var t=new rt(6);return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},clone:function(t){var e=new rt(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},invert:function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=n*a-i*r;return l?(l=1/l,t[0]=a*l,t[1]=-i*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*o)*l,t[5]=(i*o-n*s)*l,t):null},determinant:function(t){return t[0]*t[3]-t[1]*t[2]},multiply:function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=n[0],c=n[1],h=n[2],d=n[3],f=n[4],p=n[5];return t[0]=i*u+a*c,t[1]=r*u+o*c,t[2]=i*h+a*d,t[3]=r*h+o*d,t[4]=i*f+a*p+s,t[5]=r*f+o*p+l,t}};$r.mul=$r.multiply,$r.rotate=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+a*u,t[1]=r*c+o*u,t[2]=i*-u+a*c,t[3]=r*-u+o*c,t[4]=s,t[5]=l,t},$r.scale=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=n[0],c=n[1];return t[0]=i*u,t[1]=r*u,t[2]=a*c,t[3]=o*c,t[4]=s,t[5]=l,t},$r.translate=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=n[0],c=n[1];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=i*u+a*c+s,t[5]=r*u+o*c+l,t},$r.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+1)};var ta=$r,ea=function(){this.array=ta.create(),this._dirty=!0};ea.prototype={constructor:ea,setArray:function(t){for(var e=0;e<this.array.length;e++)this.array[e]=t[e];return this._dirty=!0,this},clone:function(){return(new ea).copy(this)},copy:function(t){return ta.copy(this.array,t.array),this._dirty=!0,this},determinant:function(){return ta.determinant(this.array)},identity:function(){return ta.identity(this.array),this._dirty=!0,this},invert:function(){return ta.invert(this.array,this.array),this._dirty=!0,this},mul:function(t){return ta.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return ta.mul(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return ta.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return ta.multiply(this.array,t.array,this.array),this._dirty=!0,this},rotate:function(t){return ta.rotate(this.array,this.array,t),this._dirty=!0,this},scale:function(t){return ta.scale(this.array,this.array,t.array),this._dirty=!0,this},translate:function(t){return ta.translate(this.array,this.array,t.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},ea.copy=function(t,e){return ta.copy(t.array,e.array),t._dirty=!0,t},ea.determinant=function(t){return ta.determinant(t.array)},ea.identity=function(t){return ta.identity(t.array),t._dirty=!0,t},ea.invert=function(t,e){return ta.invert(t.array,e.array),t._dirty=!0,t},ea.mul=function(t,e,n){return ta.mul(t.array,e.array,n.array),t._dirty=!0,t},ea.multiply=ea.mul,ea.rotate=function(t,e,n){return ta.rotate(t.array,e.array,n),t._dirty=!0,t},ea.scale=function(t,e,n){return ta.scale(t.array,e.array,n.array),t._dirty=!0,t},ea.translate=function(t,e,n){return ta.translate(t.array,e.array,n.array),t._dirty=!0,t};var na=ea,ia=function(){this.array=Te.create(),this._dirty=!0};ia.prototype={constructor:ia,setArray:function(t){for(var e=0;e<this.array.length;e++)this.array[e]=t[e];return this._dirty=!0,this},adjoint:function(){return Te.adjoint(this.array,this.array),this._dirty=!0,this},clone:function(){return(new ia).copy(this)},copy:function(t){return Te.copy(this.array,t.array),this._dirty=!0,this},determinant:function(){return Te.determinant(this.array)},fromMat2d:function(t){return Te.fromMat2d(this.array,t.array),this._dirty=!0,this},fromMat4:function(t){return Te.fromMat4(this.array,t.array),this._dirty=!0,this},fromQuat:function(t){return Te.fromQuat(this.array,t.array),this._dirty=!0,this},identity:function(){return Te.identity(this.array),this._dirty=!0,this},invert:function(){return Te.invert(this.array,this.array),this._dirty=!0,this},mul:function(t){return Te.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return Te.mul(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return Te.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return Te.multiply(this.array,t.array,this.array),this._dirty=!0,this},rotate:function(t){return Te.rotate(this.array,this.array,t),this._dirty=!0,this},scale:function(t){return Te.scale(this.array,this.array,t.array),this._dirty=!0,this},translate:function(t){return Te.translate(this.array,this.array,t.array),this._dirty=!0,this},normalFromMat4:function(t){return Te.normalFromMat4(this.array,t.array),this._dirty=!0,this},transpose:function(){return Te.transpose(this.array,this.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},ia.adjoint=function(t,e){return Te.adjoint(t.array,e.array),t._dirty=!0,t},ia.copy=function(t,e){return Te.copy(t.array,e.array),t._dirty=!0,t},ia.determinant=function(t){return Te.determinant(t.array)},ia.identity=function(t){return Te.identity(t.array),t._dirty=!0,t},ia.invert=function(t,e){return Te.invert(t.array,e.array),t},ia.mul=function(t,e,n){return Te.mul(t.array,e.array,n.array),t._dirty=!0,t},ia.multiply=ia.mul,ia.fromMat2d=function(t,e){return Te.fromMat2d(t.array,e.array),t._dirty=!0,t},ia.fromMat4=function(t,e){return Te.fromMat4(t.array,e.array),t._dirty=!0,t},ia.fromQuat=function(t,e){return Te.fromQuat(t.array,e.array),t._dirty=!0,t},ia.normalFromMat4=function(t,e){return Te.normalFromMat4(t.array,e.array),t._dirty=!0,t},ia.rotate=function(t,e,n){return Te.rotate(t.array,e.array,n),t._dirty=!0,t},ia.scale=function(t,e,n){return Te.scale(t.array,e.array,n.array),t._dirty=!0,t},ia.transpose=function(t,e){return Te.transpose(t.array,e.array),t._dirty=!0,t},ia.translate=function(t,e,n){return Te.translate(t.array,e.array,n.array),t._dirty=!0,t};var ra=ia,aa=n("06ad"),oa={_animators:null,getAnimators:function(){return this._animators=this._animators||[],this._animators},animate:function(t,e){this._animators=this._animators||[];var n,i=this;if(t){for(var r=t.split("."),a=i,o=0,s=r.length;o<s;o++)a&&(a=a[r[o]]);a&&(n=a)}else n=i;if(null==n)throw new Error("Target "+t+" not exists");var l=this._animators,u=new aa["b"](n,e),c=this;return u.during((function(){c.__zr&&c.__zr.refresh()})).done((function(){var t=l.indexOf(u);t>=0&&l.splice(t,1)})),l.push(u),this.__zr&&this.__zr.animation.addAnimator(u),u},stopAnimation:function(t){this._animators=this._animators||[];for(var e=this._animators,n=e.length,i=0;i<n;i++)e[i].stop(t);return e.length=0,this},addAnimatorsToZr:function(t){if(this._animators)for(var e=0;e<this._animators.length;e++)t.animation.addAnimator(this._animators[e])},removeAnimatorsFromZr:function(t){if(this._animators)for(var e=0;e<this._animators.length;e++)t.animation.removeAnimator(this._animators[e])}},sa=oa,la="\n@export clay.util.rand\nhighp float rand(vec2 uv) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot(uv.xy, vec2(a,b)), sn = mod(dt, 3.141592653589793);\n return fract(sin(sn) * c);\n}\n@end\n@export clay.util.calculate_attenuation\nuniform float attenuationFactor : 5.0;\nfloat lightAttenuation(float dist, float range)\n{\n float attenuation = 1.0;\n attenuation = dist*dist/(range*range+1.0);\n float att_s = attenuationFactor;\n attenuation = 1.0/(attenuation*att_s+1.0);\n att_s = 1.0/(att_s+1.0);\n attenuation = attenuation - att_s;\n attenuation /= 1.0 - att_s;\n return clamp(attenuation, 0.0, 1.0);\n}\n@end\n@export clay.util.edge_factor\n#ifdef SUPPORT_STANDARD_DERIVATIVES\nfloat edgeFactor(float width)\n{\n vec3 d = fwidth(v_Barycentric);\n vec3 a3 = smoothstep(vec3(0.0), d * width, v_Barycentric);\n return min(min(a3.x, a3.y), a3.z);\n}\n#else\nfloat edgeFactor(float width)\n{\n return 1.0;\n}\n#endif\n@end\n@export clay.util.encode_float\nvec4 encodeFloat(const in float depth)\n{\n const vec4 bitShifts = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0);\n const vec4 bit_mask = vec4(0.0, 1.0/256.0, 1.0/256.0, 1.0/256.0);\n vec4 res = fract(depth * bitShifts);\n res -= res.xxyz * bit_mask;\n return res;\n}\n@end\n@export clay.util.decode_float\nfloat decodeFloat(const in vec4 color)\n{\n const vec4 bitShifts = vec4(1.0/(256.0*256.0*256.0), 1.0/(256.0*256.0), 1.0/256.0, 1.0);\n return dot(color, bitShifts);\n}\n@end\n@export clay.util.float\n@import clay.util.encode_float\n@import clay.util.decode_float\n@end\n@export clay.util.rgbm_decode\nvec3 RGBMDecode(vec4 rgbm, float range) {\n return range * rgbm.rgb * rgbm.a;\n}\n@end\n@export clay.util.rgbm_encode\nvec4 RGBMEncode(vec3 color, float range) {\n if (dot(color, color) == 0.0) {\n return vec4(0.0);\n }\n vec4 rgbm;\n color /= range;\n rgbm.a = clamp(max(max(color.r, color.g), max(color.b, 1e-6)), 0.0, 1.0);\n rgbm.a = ceil(rgbm.a * 255.0) / 255.0;\n rgbm.rgb = color / rgbm.a;\n return rgbm;\n}\n@end\n@export clay.util.rgbm\n@import clay.util.rgbm_decode\n@import clay.util.rgbm_encode\nvec4 decodeHDR(vec4 color)\n{\n#if defined(RGBM_DECODE) || defined(RGBM)\n return vec4(RGBMDecode(color, 8.12), 1.0);\n#else\n return color;\n#endif\n}\nvec4 encodeHDR(vec4 color)\n{\n#if defined(RGBM_ENCODE) || defined(RGBM)\n return RGBMEncode(color.xyz, 8.12);\n#else\n return color;\n#endif\n}\n@end\n@export clay.util.srgb\nvec4 sRGBToLinear(in vec4 value) {\n return vec4(mix(pow(value.rgb * 0.9478672986 + vec3(0.0521327014), vec3(2.4)), value.rgb * 0.0773993808, vec3(lessThanEqual(value.rgb, vec3(0.04045)))), value.w);\n}\nvec4 linearTosRGB(in vec4 value) {\n return vec4(mix(pow(value.rgb, vec3(0.41666)) * 1.055 - vec3(0.055), value.rgb * 12.92, vec3(lessThanEqual(value.rgb, vec3(0.0031308)))), value.w);\n}\n@end\n@export clay.chunk.skinning_header\n#ifdef SKINNING\nattribute vec3 weight : WEIGHT;\nattribute vec4 joint : JOINT;\n#ifdef USE_SKIN_MATRICES_TEXTURE\nuniform sampler2D skinMatricesTexture : ignore;\nuniform float skinMatricesTextureSize: ignore;\nmat4 getSkinMatrix(sampler2D tex, float idx) {\n float j = idx * 4.0;\n float x = mod(j, skinMatricesTextureSize);\n float y = floor(j / skinMatricesTextureSize) + 0.5;\n vec2 scale = vec2(skinMatricesTextureSize);\n return mat4(\n texture2D(tex, vec2(x + 0.5, y) / scale),\n texture2D(tex, vec2(x + 1.5, y) / scale),\n texture2D(tex, vec2(x + 2.5, y) / scale),\n texture2D(tex, vec2(x + 3.5, y) / scale)\n );\n}\nmat4 getSkinMatrix(float idx) {\n return getSkinMatrix(skinMatricesTexture, idx);\n}\n#else\nuniform mat4 skinMatrix[JOINT_COUNT] : SKIN_MATRIX;\nmat4 getSkinMatrix(float idx) {\n return skinMatrix[int(idx)];\n}\n#endif\n#endif\n@end\n@export clay.chunk.skin_matrix\nmat4 skinMatrixWS = getSkinMatrix(joint.x) * weight.x;\nif (weight.y > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.y) * weight.y;\n}\nif (weight.z > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.z) * weight.z;\n}\nfloat weightW = 1.0-weight.x-weight.y-weight.z;\nif (weightW > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.w) * weightW;\n}\n@end\n@export clay.chunk.instancing_header\n#ifdef INSTANCING\nattribute vec4 instanceMat1;\nattribute vec4 instanceMat2;\nattribute vec4 instanceMat3;\n#endif\n@end\n@export clay.chunk.instancing_matrix\nmat4 instanceMat = mat4(\n vec4(instanceMat1.xyz, 0.0),\n vec4(instanceMat2.xyz, 0.0),\n vec4(instanceMat3.xyz, 0.0),\n vec4(instanceMat1.w, instanceMat2.w, instanceMat3.w, 1.0)\n);\n@end\n@export clay.util.parallax_correct\nvec3 parallaxCorrect(in vec3 dir, in vec3 pos, in vec3 boxMin, in vec3 boxMax) {\n vec3 first = (boxMax - pos) / dir;\n vec3 second = (boxMin - pos) / dir;\n vec3 further = max(first, second);\n float dist = min(further.x, min(further.y, further.z));\n vec3 fixedPos = pos + dir * dist;\n vec3 boxCenter = (boxMax + boxMin) * 0.5;\n return normalize(fixedPos - boxCenter);\n}\n@end\n@export clay.util.clamp_sample\nvec4 clampSample(const in sampler2D texture, const in vec2 coord)\n{\n#ifdef STEREO\n float eye = step(0.5, coord.x) * 0.5;\n vec2 coordClamped = clamp(coord, vec2(eye, 0.0), vec2(0.5 + eye, 1.0));\n#else\n vec2 coordClamped = clamp(coord, vec2(0.0), vec2(1.0));\n#endif\n return texture2D(texture, coordClamped);\n}\n@end\n@export clay.util.ACES\nvec3 ACESToneMapping(vec3 color)\n{\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\n@end",ua="\n@export ecgl.common.transformUniforms\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE;\nuniform mat4 world : WORLD;\n@end\n\n@export ecgl.common.attributes\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\nattribute vec3 normal : NORMAL;\n@end\n\n@export ecgl.common.uv.header\nuniform vec2 uvRepeat : [1.0, 1.0];\nuniform vec2 uvOffset : [0.0, 0.0];\nuniform vec2 detailUvRepeat : [1.0, 1.0];\nuniform vec2 detailUvOffset : [0.0, 0.0];\n\nvarying vec2 v_Texcoord;\nvarying vec2 v_DetailTexcoord;\n@end\n\n@export ecgl.common.uv.main\nv_Texcoord = texcoord * uvRepeat + uvOffset;\nv_DetailTexcoord = texcoord * detailUvRepeat + detailUvOffset;\n@end\n\n@export ecgl.common.uv.fragmentHeader\nvarying vec2 v_Texcoord;\nvarying vec2 v_DetailTexcoord;\n@end\n\n\n@export ecgl.common.albedo.main\n\n vec4 albedoTexel = vec4(1.0);\n#ifdef DIFFUSEMAP_ENABLED\n albedoTexel = texture2D(diffuseMap, v_Texcoord);\n #ifdef SRGB_DECODE\n albedoTexel = sRGBToLinear(albedoTexel);\n #endif\n#endif\n\n#ifdef DETAILMAP_ENABLED\n vec4 detailTexel = texture2D(detailMap, v_DetailTexcoord);\n #ifdef SRGB_DECODE\n detailTexel = sRGBToLinear(detailTexel);\n #endif\n albedoTexel.rgb = mix(albedoTexel.rgb, detailTexel.rgb, detailTexel.a);\n albedoTexel.a = detailTexel.a + (1.0 - detailTexel.a) * albedoTexel.a;\n#endif\n\n@end\n\n@export ecgl.common.wireframe.vertexHeader\n\n#ifdef WIREFRAME_QUAD\nattribute vec4 barycentric;\nvarying vec4 v_Barycentric;\n#elif defined(WIREFRAME_TRIANGLE)\nattribute vec3 barycentric;\nvarying vec3 v_Barycentric;\n#endif\n\n@end\n\n@export ecgl.common.wireframe.vertexMain\n\n#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)\n v_Barycentric = barycentric;\n#endif\n\n@end\n\n\n@export ecgl.common.wireframe.fragmentHeader\n\nuniform float wireframeLineWidth : 1;\nuniform vec4 wireframeLineColor: [0, 0, 0, 0.5];\n\n#ifdef WIREFRAME_QUAD\nvarying vec4 v_Barycentric;\nfloat edgeFactor () {\n vec4 d = fwidth(v_Barycentric);\n vec4 a4 = smoothstep(vec4(0.0), d * wireframeLineWidth, v_Barycentric);\n return min(min(min(a4.x, a4.y), a4.z), a4.w);\n}\n#elif defined(WIREFRAME_TRIANGLE)\nvarying vec3 v_Barycentric;\nfloat edgeFactor () {\n vec3 d = fwidth(v_Barycentric);\n vec3 a3 = smoothstep(vec3(0.0), d * wireframeLineWidth, v_Barycentric);\n return min(min(a3.x, a3.y), a3.z);\n}\n#endif\n\n@end\n\n\n@export ecgl.common.wireframe.fragmentMain\n\n#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)\n if (wireframeLineWidth > 0.) {\n vec4 lineColor = wireframeLineColor;\n#ifdef SRGB_DECODE\n lineColor = sRGBToLinear(lineColor);\n#endif\n\n gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor()) * lineColor.a);\n }\n#endif\n@end\n\n\n\n\n@export ecgl.common.bumpMap.header\n\n#ifdef BUMPMAP_ENABLED\nuniform sampler2D bumpMap;\nuniform float bumpScale : 1.0;\n\n\nvec3 bumpNormal(vec3 surfPos, vec3 surfNormal, vec3 baseNormal)\n{\n vec2 dSTdx = dFdx(v_Texcoord);\n vec2 dSTdy = dFdy(v_Texcoord);\n\n float Hll = bumpScale * texture2D(bumpMap, v_Texcoord).x;\n float dHx = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdx).x - Hll;\n float dHy = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdy).x - Hll;\n\n vec3 vSigmaX = dFdx(surfPos);\n vec3 vSigmaY = dFdy(surfPos);\n vec3 vN = surfNormal;\n\n vec3 R1 = cross(vSigmaY, vN);\n vec3 R2 = cross(vN, vSigmaX);\n\n float fDet = dot(vSigmaX, R1);\n\n vec3 vGrad = sign(fDet) * (dHx * R1 + dHy * R2);\n return normalize(abs(fDet) * baseNormal - vGrad);\n\n}\n#endif\n\n@end\n\n@export ecgl.common.normalMap.vertexHeader\n\n#ifdef NORMALMAP_ENABLED\nattribute vec4 tangent : TANGENT;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@end\n\n@export ecgl.common.normalMap.vertexMain\n\n#ifdef NORMALMAP_ENABLED\n if (dot(tangent, tangent) > 0.0) {\n v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);\n v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);\n }\n#endif\n\n@end\n\n\n@export ecgl.common.normalMap.fragmentHeader\n\n#ifdef NORMALMAP_ENABLED\nuniform sampler2D normalMap;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@end\n\n@export ecgl.common.normalMap.fragmentMain\n#ifdef NORMALMAP_ENABLED\n if (dot(v_Tangent, v_Tangent) > 0.0) {\n vec3 normalTexel = texture2D(normalMap, v_DetailTexcoord).xyz;\n if (dot(normalTexel, normalTexel) > 0.0) { N = normalTexel * 2.0 - 1.0;\n mat3 tbn = mat3(v_Tangent, v_Bitangent, v_Normal);\n N = normalize(tbn * N);\n }\n }\n#endif\n@end\n\n\n\n@export ecgl.common.vertexAnimation.header\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute vec3 prevNormal;\nuniform float percent;\n#endif\n\n@end\n\n@export ecgl.common.vertexAnimation.main\n\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n vec3 norm = mix(prevNormal, normal, percent);\n#else\n vec3 pos = position;\n vec3 norm = normal;\n#endif\n\n@end\n\n\n@export ecgl.common.ssaoMap.header\n#ifdef SSAOMAP_ENABLED\nuniform sampler2D ssaoMap;\nuniform vec4 viewport : VIEWPORT;\n#endif\n@end\n\n@export ecgl.common.ssaoMap.main\n float ao = 1.0;\n#ifdef SSAOMAP_ENABLED\n ao = texture2D(ssaoMap, (gl_FragCoord.xy - viewport.xy) / viewport.zw).r;\n#endif\n@end\n\n\n\n\n@export ecgl.common.diffuseLayer.header\n\n#if (LAYER_DIFFUSEMAP_COUNT > 0)\nuniform float layerDiffuseIntensity[LAYER_DIFFUSEMAP_COUNT];\nuniform sampler2D layerDiffuseMap[LAYER_DIFFUSEMAP_COUNT];\n#endif\n\n@end\n\n@export ecgl.common.emissiveLayer.header\n\n#if (LAYER_EMISSIVEMAP_COUNT > 0)\nuniform float layerEmissionIntensity[LAYER_EMISSIVEMAP_COUNT];\nuniform sampler2D layerEmissiveMap[LAYER_EMISSIVEMAP_COUNT];\n#endif\n\n@end\n\n@export ecgl.common.layers.header\n@import ecgl.common.diffuseLayer.header\n@import ecgl.common.emissiveLayer.header\n@end\n\n@export ecgl.common.diffuseLayer.main\n\n#if (LAYER_DIFFUSEMAP_COUNT > 0)\n for (int _idx_ = 0; _idx_ < LAYER_DIFFUSEMAP_COUNT; _idx_++) {{\n float intensity = layerDiffuseIntensity[_idx_];\n vec4 texel2 = texture2D(layerDiffuseMap[_idx_], v_Texcoord);\n #ifdef SRGB_DECODE\n texel2 = sRGBToLinear(texel2);\n #endif\n albedoTexel.rgb = mix(albedoTexel.rgb, texel2.rgb * intensity, texel2.a);\n albedoTexel.a = texel2.a + (1.0 - texel2.a) * albedoTexel.a;\n }}\n#endif\n\n@end\n\n@export ecgl.common.emissiveLayer.main\n\n#if (LAYER_EMISSIVEMAP_COUNT > 0)\n for (int _idx_ = 0; _idx_ < LAYER_EMISSIVEMAP_COUNT; _idx_++)\n {{\n vec4 texel2 = texture2D(layerEmissiveMap[_idx_], v_Texcoord) * layerEmissionIntensity[_idx_];\n #ifdef SRGB_DECODE\n texel2 = sRGBToLinear(texel2);\n #endif\n float intensity = layerEmissionIntensity[_idx_];\n gl_FragColor.rgb += texel2.rgb * texel2.a * intensity;\n }}\n#endif\n\n@end\n",ca="@export ecgl.color.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\n@import ecgl.common.uv.header\n\nattribute vec2 texcoord : TEXCOORD_0;\nattribute vec3 position: POSITION;\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nuniform float percent : 1.0;\n#endif\n\n#ifdef ATMOSPHERE_ENABLED\nattribute vec3 normal: NORMAL;\nuniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE;\nvarying vec3 v_Normal;\n#endif\n\nvoid main()\n{\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n#else\n vec3 pos = position;\n#endif\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n @import ecgl.common.uv.main\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n#ifdef ATMOSPHERE_ENABLED\n v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n\n}\n\n@end\n\n@export ecgl.color.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n\nuniform sampler2D diffuseMap;\nuniform sampler2D detailMap;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\n#ifdef ATMOSPHERE_ENABLED\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform vec3 glowColor;\nuniform float glowPower;\nvarying vec3 v_Normal;\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n@import ecgl.common.layers.header\n\n@import ecgl.common.uv.fragmentHeader\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color);\n#else\n gl_FragColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n gl_FragColor *= albedoTexel;\n\n#ifdef ATMOSPHERE_ENABLED\n float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor.rgb += glowColor * atmoIntensity;\n#endif\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n\n}\n@end",ha="/**\n * http: */\n\n@export ecgl.lambert.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n\n@import ecgl.common.attributes\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.vertexAnimation.header\n\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nvoid main()\n{\n @import ecgl.common.uv.main\n\n @import ecgl.common.vertexAnimation.main\n\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n}\n\n@end\n\n\n@export ecgl.lambert.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform sampler2D diffuseMap;\nuniform sampler2D detailMap;\n\n@import ecgl.common.layers.header\n\nuniform float emissionIntensity: 1.0;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef ATMOSPHERE_ENABLED\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform vec3 glowColor;\nuniform float glowPower;\n#endif\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color);\n#else\n gl_FragColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n gl_FragColor *= sRGBToLinear(v_Color);\n #else\n gl_FragColor *= v_Color;\n #endif\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n gl_FragColor *= albedoTexel;\n\n vec3 N = v_Normal;\n#ifdef DOUBLE_SIDED\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n vec3 diffuseColor = vec3(0.0, 0.0, 0.0);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)\n {\n diffuseColor += ambientLightColor[i] * ambientFactor * ao;\n }\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n diffuseColor += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;\n }}\n#endif\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)\n {\n vec3 lightDirection = -directionalLightDirection[i];\n vec3 lightColor = directionalLightColor[i];\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[i];\n }\n#endif\n\n float ndl = dot(N, normalize(lightDirection)) * shadowContrib;\n\n diffuseColor += lightColor * clamp(ndl, 0.0, 1.0);\n }\n#endif\n\n gl_FragColor.rgb *= diffuseColor;\n\n#ifdef ATMOSPHERE_ENABLED\n float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor.rgb += glowColor * atmoIntensity;\n#endif\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end",da="@export ecgl.realistic.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n@import ecgl.common.attributes\n\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef NORMALMAP_ENABLED\nattribute vec4 tangent : TANGENT;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@import ecgl.common.vertexAnimation.header\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nvoid main()\n{\n\n @import ecgl.common.uv.main\n\n @import ecgl.common.vertexAnimation.main\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n#ifdef NORMALMAP_ENABLED\n v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);\n v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n\n}\n\n@end\n\n\n\n@export ecgl.realistic.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n#define PI 3.14159265358979\n#define ROUGHNESS_CHANEL 0\n#define METALNESS_CHANEL 1\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform sampler2D diffuseMap;\n\nuniform sampler2D detailMap;\nuniform sampler2D metalnessMap;\nuniform sampler2D roughnessMap;\n\n@import ecgl.common.layers.header\n\nuniform float emissionIntensity: 1.0;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nuniform float metalness : 0.0;\nuniform float roughness : 0.5;\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef ATMOSPHERE_ENABLED\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform vec3 glowColor;\nuniform float glowPower;\n#endif\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT\n@import clay.header.ambient_cubemap_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n@import ecgl.common.normalMap.fragmentHeader\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import clay.util.rgbm\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nvec3 F_Schlick(float ndv, vec3 spec) {\n return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0);\n}\n\nfloat D_Phong(float g, float ndh) {\n float a = pow(8192.0, g);\n return (a + 2.0) / 8.0 * pow(ndh, a);\n}\n\nvoid main()\n{\n vec4 albedoColor = color;\n\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n albedoColor *= sRGBToLinear(v_Color);\n #else\n albedoColor *= v_Color;\n #endif\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n albedoColor *= albedoTexel;\n\n float m = metalness;\n\n#ifdef METALNESSMAP_ENABLED\n float m2 = texture2D(metalnessMap, v_DetailTexcoord)[METALNESS_CHANEL];\n m = clamp(m2 + (m - 0.5) * 2.0, 0.0, 1.0);\n#endif\n\n vec3 baseColor = albedoColor.rgb;\n albedoColor.rgb = baseColor * (1.0 - m);\n vec3 specFactor = mix(vec3(0.04), baseColor, m);\n\n float g = 1.0 - roughness;\n\n#ifdef ROUGHNESSMAP_ENABLED\n float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL];\n g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0);\n#endif\n\n vec3 N = v_Normal;\n\n#ifdef DOUBLE_SIDED\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n@import ecgl.common.normalMap.fragmentMain\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n vec3 diffuseTerm = vec3(0.0);\n vec3 specularTerm = vec3(0.0);\n\n float ndv = clamp(dot(N, V), 0.0, 1.0);\n vec3 fresnelTerm = F_Schlick(ndv, specFactor);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_LIGHT_COUNT; _idx_++)\n {{\n diffuseTerm += ambientLightColor[_idx_] * ambientFactor * ao;\n }}\n#endif\n\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n diffuseTerm += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;\n }}\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++)\n {{\n vec3 L = -directionalLightDirection[_idx_];\n vec3 lc = directionalLightColor[_idx_];\n\n vec3 H = normalize(L + V);\n float ndl = clamp(dot(N, normalize(L)), 0.0, 1.0);\n float ndh = clamp(dot(N, H), 0.0, 1.0);\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[_idx_];\n }\n#endif\n\n vec3 li = lc * ndl * shadowContrib;\n\n diffuseTerm += li;\n specularTerm += li * fresnelTerm * D_Phong(g, ndh);\n }}\n#endif\n\n\n#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT\n vec3 L = reflect(-V, N);\n L = vec3(L.x, L[NORMAL_UP_AXIS], L[NORMAL_FRONT_AXIS]);\n float rough2 = clamp(1.0 - g, 0.0, 1.0);\n float bias2 = rough2 * 5.0;\n vec2 brdfParam2 = texture2D(ambientCubemapLightBRDFLookup[0], vec2(rough2, ndv)).xy;\n vec3 envWeight2 = specFactor * brdfParam2.x + brdfParam2.y;\n vec3 envTexel2;\n for(int _idx_ = 0; _idx_ < AMBIENT_CUBEMAP_LIGHT_COUNT; _idx_++)\n {{\n envTexel2 = RGBMDecode(textureCubeLodEXT(ambientCubemapLightCubemap[_idx_], L, bias2), 8.12);\n specularTerm += ambientCubemapLightColor[_idx_] * envTexel2 * envWeight2 * ao;\n }}\n#endif\n\n gl_FragColor.rgb = albedoColor.rgb * diffuseTerm + specularTerm;\n gl_FragColor.a = albedoColor.a;\n\n#ifdef ATMOSPHERE_ENABLED\n float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor.rgb += glowColor * atmoIntensity;\n#endif\n\n#ifdef SRGB_ENCODE\n gl_FragColor = linearTosRGB(gl_FragColor);\n#endif\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end",fa="@export ecgl.hatching.vertex\n\n@import ecgl.realistic.vertex\n\n@end\n\n\n@export ecgl.hatching.fragment\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform vec4 color : [0.0, 0.0, 0.0, 1.0];\nuniform vec4 paperColor : [1.0, 1.0, 1.0, 1.0];\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nuniform sampler2D hatch1;\nuniform sampler2D hatch2;\nuniform sampler2D hatch3;\nuniform sampler2D hatch4;\nuniform sampler2D hatch5;\nuniform sampler2D hatch6;\n\nfloat shade(in float tone) {\n vec4 c = vec4(1. ,1., 1., 1.);\n float step = 1. / 6.;\n vec2 uv = v_DetailTexcoord;\n if (tone <= step / 2.0) {\n c = mix(vec4(0.), texture2D(hatch6, uv), 12. * tone);\n }\n else if (tone <= step) {\n c = mix(texture2D(hatch6, uv), texture2D(hatch5, uv), 6. * tone);\n }\n if(tone > step && tone <= 2. * step){\n c = mix(texture2D(hatch5, uv), texture2D(hatch4, uv) , 6. * (tone - step));\n }\n if(tone > 2. * step && tone <= 3. * step){\n c = mix(texture2D(hatch4, uv), texture2D(hatch3, uv), 6. * (tone - 2. * step));\n }\n if(tone > 3. * step && tone <= 4. * step){\n c = mix(texture2D(hatch3, uv), texture2D(hatch2, uv), 6. * (tone - 3. * step));\n }\n if(tone > 4. * step && tone <= 5. * step){\n c = mix(texture2D(hatch2, uv), texture2D(hatch1, uv), 6. * (tone - 4. * step));\n }\n if(tone > 5. * step){\n c = mix(texture2D(hatch1, uv), vec4(1.), 6. * (tone - 5. * step));\n }\n\n return c.r;\n}\n\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n vec4 inkColor = sRGBToLinear(color);\n#else\n vec4 inkColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n inkColor *= sRGBToLinear(v_Color);\n #else\n inkColor *= v_Color;\n #endif\n#endif\n\n vec3 N = v_Normal;\n#ifdef DOUBLE_SIDED\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float tone = 0.0;\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)\n {\n tone += dot(ambientLightColor[i], w) * ambientFactor * ao;\n }\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n tone += dot(calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_], w) * ao;\n }}\n#endif\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)\n {\n vec3 lightDirection = -directionalLightDirection[i];\n float lightTone = dot(directionalLightColor[i], w);\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[i];\n }\n#endif\n\n float ndl = dot(N, normalize(lightDirection)) * shadowContrib;\n\n tone += lightTone * clamp(ndl, 0.0, 1.0);\n }\n#endif\n\n gl_FragColor = mix(inkColor, paperColor, shade(clamp(tone, 0.0, 1.0)));\n }\n@end\n",pa="@export ecgl.sm.depth.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nuniform float percent : 1.0;\n#endif\n\nvarying vec4 v_ViewPosition;\nvarying vec2 v_Texcoord;\n\nvoid main(){\n\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n#else\n vec3 pos = position;\n#endif\n\n v_ViewPosition = worldViewProjection * vec4(pos, 1.0);\n gl_Position = v_ViewPosition;\n\n v_Texcoord = texcoord;\n\n}\n@end\n\n\n\n@export ecgl.sm.depth.fragment\n\n@import clay.sm.depth.fragment\n\n@end";function ga(t){return!t||"none"===t}function ma(t){return t instanceof HTMLCanvasElement||t instanceof HTMLImageElement||t instanceof Image}function va(t){return t.getZr&&t.setOption}Object.assign(Ge.prototype,sa),Xt.import(la),Xt.import(Zt),Xt.import(ua),Xt.import(ca),Xt.import(ha),Xt.import(da),Xt.import(fa),Xt.import(pa);var ya=qn.prototype.addToScene,_a=qn.prototype.removeFromScene;qn.prototype.addToScene=function(t){if(ya.call(this,t),this.__zr){var e=this.__zr;t.traverse((function(t){t.__zr=e,t.addAnimatorsToZr&&t.addAnimatorsToZr(e)}))}},qn.prototype.removeFromScene=function(t){_a.call(this,t),t.traverse((function(t){var e=t.__zr;t.__zr=null,e&&t.removeAnimatorsFromZr&&t.removeAnimatorsFromZr(e)}))},nt.prototype.setTextureImage=function(t,e,n,i){if(this.shader){var r,a=n.getZr(),o=this;return o.autoUpdateTextureStatus=!1,o.disableTexture(t),ga(e)||(r=ba.loadTexture(e,n,i,(function(e){o.enableTexture(t),a&&a.refresh()})),o.set(t,r)),r}};var ba={};ba.Renderer=ce,ba.Node=Ge,ba.Mesh=$e,ba.Shader=Xt,ba.Material=nt,ba.Texture=Qe,ba.Texture2D=sn,ba.Geometry=bn,ba.SphereGeometry=Rr,ba.PlaneGeometry=_i,ba.CubeGeometry=Oi,ba.AmbientLight=Br,ba.DirectionalLight=Vr,ba.PointLight=Gr,ba.SpotLight=Ur,ba.PerspectiveCamera=ni,ba.OrthographicCamera=hr,ba.Vector2=ct,ba.Vector3=ye,ba.Vector4=qr,ba.Quaternion=Ne,ba.Matrix2=Jr,ba.Matrix2d=na,ba.Matrix3=ra,ba.Matrix4=Le,ba.Plane=Ln,ba.Ray=xe,ba.BoundingBox=ze,ba.Frustum=Bn;var xa=null;function wa(){return null!==xa||(xa=ar.createBlank("rgba(255,255,255,0)").image),xa}function Oa(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))}function Sa(t){if((t.wrapS===Qe.REPEAT||t.wrapT===Qe.REPEAT)&&t.image){var e=Oa(t.width),n=Oa(t.height);if(e!==t.width||n!==t.height){var i=document.createElement("canvas");i.width=e,i.height=n;var r=i.getContext("2d");r.drawImage(t.image,0,0,e,n),t.image=i}}}ba.loadTexture=function(t,e,n,i){"function"===typeof n&&(i=n,n={}),n=n||{};for(var r=Object.keys(n).sort(),a="",o=0;o<r.length;o++)a+=r[o]+"_"+n[r[o]]+"_";var s=e.__textureCache=e.__textureCache||new Yn["a"](20);if(va(t)){var l=t.__textureid__,u=s.get(a+l);if(u)u.texture.surface.setECharts(t),i&&i(u.texture);else{var c=new ur(t);c.onupdate=function(){e.getZr().refresh()},u={texture:c.getTexture()};for(o=0;o<r.length;o++)u.texture[r[o]]=n[r[o]];l=t.__textureid__||"__ecgl_ec__"+u.texture.__uid__,t.__textureid__=l,s.put(a+l,u),i&&i(u.texture)}return u.texture}if(ma(t)){l=t.__textureid__,u=s.get(a+l);if(!u){u={texture:new ba.Texture2D({image:t})};for(o=0;o<r.length;o++)u.texture[r[o]]=n[r[o]];l=t.__textureid__||"__ecgl_image__"+u.texture.__uid__,t.__textureid__=l,s.put(a+l,u),Sa(u.texture),i&&i(u.texture)}return u.texture}u=s.get(a+t);if(u)u.callbacks?u.callbacks.push(i):i&&i(u.texture);else if(t.match(/.hdr$|^data:application\/octet-stream/)){u={callbacks:[i]};var h=ar.loadTexture(t,{exposure:n.exposure,fileType:"hdr"},(function(){h.dirty(),u.callbacks.forEach((function(t){t&&t(h)})),u.callbacks=null}));u.texture=h,s.put(a+t,u)}else{for(h=new ba.Texture2D({image:new Image}),o=0;o<r.length;o++)h[r[o]]=n[r[o]];u={texture:h,callbacks:[i]};var d=h.image;d.onload=function(){h.image=d,Sa(h),h.dirty(),u.callbacks.forEach((function(t){t&&t(h)})),u.callbacks=null},d.crossOrigin="Anonymous",d.src=t,h.image=wa(),s.put(a+t,u)}return u.texture},ba.createAmbientCubemap=function(t,e,n,i){t=t||{};var r=t.texture,a=Pr.firstNotNull(t.exposure,1),o=new Sr({intensity:Pr.firstNotNull(t.specularIntensity,1)}),s=new Mr({intensity:Pr.firstNotNull(t.diffuseIntensity,1),coefficients:[.844,.712,.691,-.037,.083,.167,.343,.288,.299,-.041,-.021,-.009,-.003,-.041,-.064,-.011,-.007,-.004,-.031,.034,.081,-.06,-.049,-.06,.046,.056,.05]});return o.cubemap=ba.loadTexture(r,n,{exposure:a},(function(){o.cubemap.flipY=!1,o.prefilter(e,32),s.coefficients=Er.projectEnvironmentMap(e,o.cubemap,{lod:1}),i&&i()})),{specular:o,diffuse:s}},ba.createBlankTexture=ar.createBlank,ba.isImage=ma,ba.additiveBlend=function(t){t.blendEquation(t.FUNC_ADD),t.blendFunc(t.SRC_ALPHA,t.ONE)},ba.parseColor=function(t,e){return t instanceof Array?(e||(e=[]),e[0]=t[0],e[1]=t[1],e[2]=t[2],t.length>3?e[3]=t[3]:e[3]=1,e):(e=a["h"].parse(t||"#000",e)||[0,0,0,0],e[0]/=255,e[1]/=255,e[2]/=255,e)},ba.directionFromAlphaBeta=function(t,e){var n=t/180*Math.PI+Math.PI/2,i=-e/180*Math.PI+Math.PI/2,r=[],a=Math.sin(n);return r[0]=a*Math.cos(i),r[1]=-Math.cos(n),r[2]=a*Math.sin(i),r},ba.getShadowResolution=function(t){var e=1024;switch(t){case"low":e=512;break;case"medium":break;case"high":e=2048;break;case"ultra":e=4096;break}return e},ba.COMMON_SHADERS=["lambert","color","realistic","hatching","shadow"],ba.createShader=function(t){"ecgl.shadow"===t&&(t="ecgl.displayShadow");var e=Xt.source(t+".vertex"),n=Xt.source(t+".fragment");e||console.error("Vertex shader of '%s' not exits",t),n||console.error("Fragment shader of '%s' not exits",t);var i=new Xt(e,n);return i.name=t,i},ba.createMaterial=function(t,e){e instanceof Array||(e=[e]);var n=ba.createShader(t),i=new nt({shader:n});return e.forEach((function(t){"string"===typeof t&&i.define(t)})),i},ba.setMaterialFromModel=function(t,e,n,i){e.autoUpdateTextureStatus=!1;var r=n.getModel(t+"Material"),a=r.get("detailTexture"),o=Pr.firstNotNull(r.get("textureTiling"),1),s=Pr.firstNotNull(r.get("textureOffset"),0);"number"===typeof o&&(o=[o,o]),"number"===typeof s&&(s=[s,s]);var l=o[0]>1||o[1]>1?ba.Texture.REPEAT:ba.Texture.CLAMP_TO_EDGE,u={anisotropic:8,wrapS:l,wrapT:l};if("realistic"===t){var c=r.get("roughness"),h=r.get("metalness");null!=h?isNaN(h)&&(e.setTextureImage("metalnessMap",h,i,u),h=Pr.firstNotNull(r.get("metalnessAdjust"),.5)):h=0,null!=c?isNaN(c)&&(e.setTextureImage("roughnessMap",c,i,u),c=Pr.firstNotNull(r.get("roughnessAdjust"),.5)):c=.5;var d=r.get("normalTexture");e.setTextureImage("detailMap",a,i,u),e.setTextureImage("normalMap",d,i,u),e.set({roughness:c,metalness:h,detailUvRepeat:o,detailUvOffset:s})}else if("lambert"===t)e.setTextureImage("detailMap",a,i,u),e.set({detailUvRepeat:o,detailUvOffset:s});else if("color"===t)e.setTextureImage("detailMap",a,i,u),e.set({detailUvRepeat:o,detailUvOffset:s});else if("hatching"===t){var f=r.get("hatchingTextures")||[];f.length;for(var p=0;p<6;p++)e.setTextureImage("hatch"+(p+1),f[p],i,{anisotropic:8,wrapS:ba.Texture.REPEAT,wrapT:ba.Texture.REPEAT});e.set({detailUvRepeat:o,detailUvOffset:s})}},ba.updateVertexAnimation=function(t,e,n,i){var r=i.get("animation"),a=i.get("animationDurationUpdate"),o=i.get("animationEasingUpdate"),s=n.shadowDepthMaterial;if(r&&e&&a>0&&e.geometry.vertexCount===n.geometry.vertexCount){n.material.define("vertex","VERTEX_ANIMATION"),n.ignorePreZ=!0,s&&s.define("vertex","VERTEX_ANIMATION");for(var l=0;l<t.length;l++)n.geometry.attributes[t[l][0]].value=e.geometry.attributes[t[l][1]].value;n.geometry.dirty(),n.__percent=0,n.material.set("percent",0),n.stopAnimation(),n.animate().when(a,{__percent:1}).during((function(){n.material.set("percent",n.__percent),s&&s.set("percent",n.__percent)})).done((function(){n.ignorePreZ=!1,n.material.undefine("vertex","VERTEX_ANIMATION"),s&&s.undefine("vertex","VERTEX_ANIMATION")})).start(o)}else n.material.undefine("vertex","VERTEX_ANIMATION"),s&&s.undefine("vertex","VERTEX_ANIMATION")};var Ta=ba,Ma=n("98b7"),Aa=function(t,e){this.id=t,this.zr=e;try{this.renderer=new ce({clearBit:0,devicePixelRatio:e.painter.dpr,preserveDrawingBuffer:!0,premultipliedAlpha:!0}),this.renderer.resize(e.painter.getWidth(),e.painter.getHeight())}catch(i){return this.renderer=null,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute; left: 0; top: 0; right: 0; bottom: 0;",this.dom.className="ecgl-nowebgl",this.dom.innerHTML="Sorry, your browser does not support WebGL",void console.error(i)}this.onglobalout=this.onglobalout.bind(this),e.on("globalout",this.onglobalout),this.dom=this.renderer.canvas;var n=this.dom.style;n.position="absolute",n.left="0",n.top="0",this.views=[],this._picking=new Xe({renderer:this.renderer}),this._viewsToDispose=[],this._accumulatingId=0,this._zrEventProxy=new a["l"].Rect({shape:{x:-1,y:-1,width:2,height:2},__isGLToZRProxy:!0}),this._backgroundColor=null,this._disposed=!1};function Ca(t){var e=t.__zr;t.__zr=null,e&&t.removeAnimatorsFromZr&&t.removeAnimatorsFromZr(e)}Aa.prototype.setUnpainted=function(){},Aa.prototype.addView=function(t){if(t.layer!==this){var e=this._viewsToDispose.indexOf(t);e>=0&&this._viewsToDispose.splice(e,1),this.views.push(t),t.layer=this;var n=this.zr;t.scene.traverse((function(t){t.__zr=n,t.addAnimatorsToZr&&t.addAnimatorsToZr(n)}))}},Aa.prototype.removeView=function(t){if(t.layer===this){var e=this.views.indexOf(t);e>=0&&(this.views.splice(e,1),t.scene.traverse(Ca,this),t.layer=null,this._viewsToDispose.push(t))}},Aa.prototype.removeViewsAll=function(){this.views.forEach((function(t){t.scene.traverse(Ca,this),t.layer=null,this._viewsToDispose.push(t)}),this),this.views.length=0},Aa.prototype.resize=function(t,e){var n=this.renderer;n.resize(t,e)},Aa.prototype.clear=function(){var t=this.renderer.gl,e=this._backgroundColor||[0,0,0,0];t.clearColor(e[0],e[1],e[2],e[3]),t.depthMask(!0),t.colorMask(!0,!0,!0,!0),t.clear(t.DEPTH_BUFFER_BIT|t.COLOR_BUFFER_BIT)},Aa.prototype.clearDepth=function(){var t=this.renderer.gl;t.clear(t.DEPTH_BUFFER_BIT)},Aa.prototype.clearColor=function(){var t=this.renderer.gl;t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT)},Aa.prototype.needsRefresh=function(){this.zr.refresh()},Aa.prototype.refresh=function(t){this._backgroundColor=t?Ta.parseColor(t):[0,0,0,0],this.renderer.clearColor=this._backgroundColor;for(var e=0;e<this.views.length;e++)this.views[e].prepareRender(this.renderer);this._doRender(!1),this._trackAndClean();for(e=0;e<this._viewsToDispose.length;e++)this._viewsToDispose[e].dispose(this.renderer);this._viewsToDispose.length=0,this._startAccumulating()},Aa.prototype.renderToCanvas=function(t){this._startAccumulating(!0),t.drawImage(this.dom,0,0,t.canvas.width,t.canvas.height)},Aa.prototype._doRender=function(t){this.clear(),this.renderer.saveViewport();for(var e=0;e<this.views.length;e++)this.views[e].render(this.renderer,t);this.renderer.restoreViewport()},Aa.prototype._stopAccumulating=function(){this._accumulatingId=0,clearTimeout(this._accumulatingTimeout)};var Ia=1;function Da(t){for(var e=0;e<t.length;e++)t[e].__used__=0}function La(t,e){for(var n=0;n<e.length;n++)e[n].__used__||e[n].dispose(t)}function Ea(t,e){t.__used__=t.__used__||0,t.__used__++,1===t.__used__&&e.push(t)}function ja(t,e,n){var i,r;t.traverse((function(t){if(t.isRenderable()){var a=t.geometry,o=t.material;if(o!==i)for(var s=o.getTextureUniforms(),l=0;l<s.length;l++){var u=s[l],c=o.uniforms[u].value;if(c)if(c instanceof Qe)Ea(c,e);else if(c instanceof Array)for(var h=0;h<c.length;h++)c[h]instanceof Qe&&Ea(c[h],e)}a!==r&&Ea(a,n),i=o,r=a}}));for(var a=0;a<t.lights.length;a++)t.lights[a].cubemap&&Ea(t.lights[a].cubemap,e)}Aa.prototype._startAccumulating=function(t){var e=this;this._stopAccumulating();for(var n=!1,i=0;i<this.views.length;i++)n=this.views[i].needsAccumulate()||n;function r(i){if(e._accumulatingId&&i===e._accumulatingId){for(var a=!0,o=0;o<e.views.length;o++)a=e.views[o].isAccumulateFinished()&&n;a||(e._doRender(!0),t?r(i):Object(Ma["a"])((function(){r(i)})))}}n&&(this._accumulatingId=Ia++,t?r(e._accumulatingId):this._accumulatingTimeout=setTimeout((function(){r(e._accumulatingId)}),50))},Aa.prototype._trackAndClean=function(){var t=[],e=[];this._textureList&&(Da(this._textureList),Da(this._geometriesList));for(var n=0;n<this.views.length;n++)ja(this.views[n].scene,t,e);this._textureList&&(La(this.renderer,this._textureList),La(this.renderer,this._geometriesList)),this._textureList=t,this._geometriesList=e},Aa.prototype.dispose=function(){this._disposed||(this._stopAccumulating(),this._textureList&&(Da(this._textureList),Da(this._geometriesList),La(this.renderer,this._textureList),La(this.renderer,this._geometriesList)),this.zr.off("globalout",this.onglobalout),this._disposed=!0)},Aa.prototype.onmousedown=function(t){if(!t.target||!t.target.__isGLToZRProxy){t=t.event;var e=this.pickObject(t.offsetX,t.offsetY);e&&(this._dispatchEvent("mousedown",t,e),this._dispatchDataEvent("mousedown",t,e)),this._downX=t.offsetX,this._downY=t.offsetY}},Aa.prototype.onmousemove=function(t){if(!t.target||!t.target.__isGLToZRProxy){t=t.event;var e=this.pickObject(t.offsetX,t.offsetY),n=e&&e.target,i=this._hovered;this._hovered=e,i&&n!==i.target&&(i.relatedTarget=n,this._dispatchEvent("mouseout",t,i),this.zr.setCursorStyle("default")),this._dispatchEvent("mousemove",t,e),e&&(this.zr.setCursorStyle("pointer"),i&&n===i.target||this._dispatchEvent("mouseover",t,e)),this._dispatchDataEvent("mousemove",t,e)}},Aa.prototype.onmouseup=function(t){if(!t.target||!t.target.__isGLToZRProxy){t=t.event;var e=this.pickObject(t.offsetX,t.offsetY);e&&(this._dispatchEvent("mouseup",t,e),this._dispatchDataEvent("mouseup",t,e)),this._upX=t.offsetX,this._upY=t.offsetY}},Aa.prototype.onclick=Aa.prototype.dblclick=function(t){if(!t.target||!t.target.__isGLToZRProxy){var e=this._upX-this._downX,n=this._upY-this._downY;if(!(Math.sqrt(e*e+n*n)>20)){t=t.event;var i=this.pickObject(t.offsetX,t.offsetY);i&&(this._dispatchEvent(t.type,t,i),this._dispatchDataEvent(t.type,t,i));var r=this._clickToSetFocusPoint(t);if(r){var a=r.view.setDOFFocusOnPoint(r.distance);a&&this.zr.refresh()}}}},Aa.prototype._clickToSetFocusPoint=function(t){for(var e=this.renderer,n=e.viewport,i=this.views.length-1;i>=0;i--){var r=this.views[i];if(r.hasDOF()&&r.containPoint(t.offsetX,t.offsetY)){this._picking.scene=r.scene,this._picking.camera=r.camera,e.viewport=r.viewport;var a=this._picking.pick(t.offsetX,t.offsetY,!0);if(a)return a.view=r,a}}e.viewport=n},Aa.prototype.onglobalout=function(t){var e=this._hovered;e&&this._dispatchEvent("mouseout",t,{target:e.target})},Aa.prototype.pickObject=function(t,e){for(var n=[],i=this.renderer,r=i.viewport,a=0;a<this.views.length;a++){var o=this.views[a];o.containPoint(t,e)&&(this._picking.scene=o.scene,this._picking.camera=o.camera,i.viewport=o.viewport,this._picking.pickAll(t,e,n))}return i.viewport=r,n.sort((function(t,e){return t.distance-e.distance})),n[0]},Aa.prototype._dispatchEvent=function(t,e,n){n||(n={});var i=n.target;n.cancelBubble=!1,n.event=e,n.type=t,n.offsetX=e.offsetX,n.offsetY=e.offsetY;while(i)if(i.trigger(t,n),i=i.getParent(),n.cancelBubble)break;this._dispatchToView(t,n)},Aa.prototype._dispatchDataEvent=function(t,e,n){var i=n&&n.target,r=i&&i.dataIndex,o=i&&i.seriesIndex,s=i&&i.eventData,l=!1,u=this._zrEventProxy;u.x=e.offsetX,u.y=e.offsetY,u.update();var c={target:u};const h=a["m"].getECData(u);"mousemove"===t&&(null!=r?r!==this._lastDataIndex&&(parseInt(this._lastDataIndex,10)>=0&&(h.dataIndex=this._lastDataIndex,h.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(c,"mouseout",e)),l=!0):null!=s&&s!==this._lastEventData&&(null!=this._lastEventData&&(h.eventData=this._lastEventData,this.zr.handler.dispatchToElement(c,"mouseout",e)),l=!0),this._lastEventData=s,this._lastDataIndex=r,this._lastSeriesIndex=o),h.eventData=s,h.dataIndex=r,h.seriesIndex=o,(null!=s||parseInt(r,10)>=0&&parseInt(o,10)>=0)&&(this.zr.handler.dispatchToElement(c,t,e),l&&this.zr.handler.dispatchToElement(c,"mouseover",e))},Aa.prototype._dispatchToView=function(t,e){for(var n=0;n<this.views.length;n++)this.views[n].containPoint(e.offsetX,e.offsetY)&&this.views[n].trigger(t,e)},Object.assign(Aa.prototype,m);var Pa=Aa,Na=["bar3D","line3D","map3D","scatter3D","surface","lines3D","scatterGL","scatter3D"];function Ra(t,e){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i)}}function ka(t){Ra(t,"itemStyle"),Ra(t,"lineStyle"),Ra(t,"areaStyle"),Ra(t,"label")}function Ba(t){t&&(t instanceof Array||(t=[t]),a["w"].each(t,(function(t){if(t.axisLabel){var e=t.axisLabel;Object.assign(e,e.textStyle),e.textStyle=null}})))}var za=function(t){a["w"].each(t.series,(function(e){a["w"].indexOf(Na,e.type)>=0&&(ka(e),"mapbox"===e.coordinateSystem&&(e.coordinateSystem="mapbox3D",t.mapbox3D=t.mapbox))})),Ba(t.xAxis3D),Ba(t.yAxis3D),Ba(t.zAxis3D),Ba(t.grid3D),Ra(t.geo3D)};function Va(t){this._layers={},this._zr=t}Va.prototype.update=function(t,e){var n=this,i=e.getZr();if(i.getWidth()&&i.getHeight()){for(var r in this._layers)this._layers[r].removeViewsAll();t.eachComponent((function(n,i){if("series"!==n){var r=e.getViewOfComponentModel(i),a=i.coordinateSystem;if(r.__ecgl__){if(a){if(!a.viewGL)return void console.error("Can't find viewGL in coordinateSystem of component "+i.id);l=a.viewGL}else{if(!i.viewGL)return void console.error("Can't find viewGL of component "+i.id);l=a.viewGL}var l=a.viewGL,u=o(i);u.addView(l),r.afterRender&&r.afterRender(i,t,e,u),s(r.groupGL,i.get("silent"))}}})),t.eachSeries((function(n){var i=e.getViewOfSeriesModel(n),r=n.coordinateSystem;if(i.__ecgl__){if(r&&!r.viewGL&&!i.viewGL)return void console.error("Can't find viewGL of series "+i.id);var a=r&&r.viewGL||i.viewGL,l=o(n);l.addView(a),i.afterRender&&i.afterRender(n,t,e,l),s(i.groupGL,n.get("silent"))}}))}else console.warn("Dom has no width or height");function o(t){var e;i.setSleepAfterStill(0),e=(t.coordinateSystem&&t.coordinateSystem.model,t.get("zlevel"));var r=n._layers,o=r[e];if(!o){if(o=r[e]=new Pa("gl-"+e,i),i.painter.isSingleCanvas()){o.virtual=!0;var s=new a["l"].Image({z:1e4,style:{image:o.renderer.canvas},silent:!0});o.__hostImage=s,i.add(s)}i.painter.insertLayer(e,o)}return o.__hostImage&&o.__hostImage.setStyle({width:o.renderer.getWidth(),height:o.renderer.getHeight()}),o}function s(t,e){t&&t.traverse((function(t){t.isRenderable&&t.isRenderable()&&(t.ignorePicking=null!=t.$ignorePicking?t.$ignorePicking:e)}))}},a["s"]((function(t){var e=t.getZr(),n=e.painter.dispose;e.painter.dispose=function(){"function"===typeof this.eachOtherLayer&&this.eachOtherLayer((function(t){t instanceof Pa&&t.dispose()})),n.call(this)},e.painter.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=document.createElement("canvas"),n=t.pixelRatio||this.dpr;e.width=this.getWidth()*n,e.height=this.getHeight()*n;var i=e.getContext("2d");i.dpr=n,i.clearRect(0,0,e.width,e.height),t.backgroundColor&&(i.fillStyle=t.backgroundColor,i.fillRect(0,0,e.width,e.height));var r,a=this.storage.getDisplayList(!0),o={},s=this;function l(t,e){var n,r=s._zlevelList;null==t&&(t=-1/0);for(var a=0;a<r.length;a++){var o=r[a],l=s._layers[o];if(!l.__builtin__&&o>t&&o<e){n=l;break}}n&&n.renderToCanvas&&(i.save(),n.renderToCanvas(i),i.restore())}for(var u={ctx:i},c=0;c<a.length;c++){var h=a[c];h.zlevel!==r&&(l(r,h.zlevel),r=h.zlevel),this._doPaintEl(h,u,!0,null,o)}return l(r,1/0),e}})),a["t"]((function(t,e){var n=e.getZr(),i=n.__egl=n.__egl||new Va(n);i.update(t,e)})),a["u"](za);var Fa={defaultOption:{viewControl:{projection:"perspective",autoRotate:!1,autoRotateDirection:"cw",autoRotateSpeed:10,autoRotateAfterStill:3,damping:.8,rotateSensitivity:1,zoomSensitivity:1,panSensitivity:1,panMouseButton:"middle",rotateMouseButton:"left",distance:150,minDistance:40,maxDistance:400,orthographicSize:150,maxOrthographicSize:400,minOrthographicSize:20,center:[0,0,0],alpha:0,beta:0,minAlpha:-90,maxAlpha:90}},setView:function(t){t=t||{},this.option.viewControl=this.option.viewControl||{},null!=t.alpha&&(this.option.viewControl.alpha=t.alpha),null!=t.beta&&(this.option.viewControl.beta=t.beta),null!=t.distance&&(this.option.viewControl.distance=t.distance),null!=t.center&&(this.option.viewControl.center=t.center)}},Ga={defaultOption:{postEffect:{enable:!1,bloom:{enable:!0,intensity:.1},depthOfField:{enable:!1,focalRange:20,focalDistance:50,blurRadius:10,fstop:2.8,quality:"medium"},screenSpaceAmbientOcclusion:{enable:!1,radius:2,quality:"medium",intensity:1},screenSpaceReflection:{enable:!1,quality:"medium",maxRoughness:.8},colorCorrection:{enable:!0,exposure:0,brightness:0,contrast:1,saturation:1,lookupTexture:""},edge:{enable:!1},FXAA:{enable:!1}},temporalSuperSampling:{enable:"auto"}}},Ha={defaultOption:{light:{main:{shadow:!1,shadowQuality:"high",color:"#fff",intensity:1,alpha:0,beta:0},ambient:{color:"#fff",intensity:.2},ambientCubemap:{texture:null,exposure:1,diffuseIntensity:.5,specularIntensity:.5}}}},Ua=a["c"].extend({type:"grid3D",dependencies:["xAxis3D","yAxis3D","zAxis3D"],defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",boxWidth:100,boxHeight:100,boxDepth:100,axisPointer:{show:!0,lineStyle:{color:"rgba(0, 0, 0, 0.8)",width:1},label:{show:!0,formatter:null,margin:8,textStyle:{fontSize:14,color:"#fff",backgroundColor:"rgba(0,0,0,0.5)",padding:3,borderRadius:3}}},axisLine:{show:!0,lineStyle:{color:"#333",width:2,type:"solid"}},axisTick:{show:!0,inside:!1,length:3,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}},light:{main:{alpha:30,beta:40},ambient:{intensity:.4}},viewControl:{alpha:20,beta:40,autoRotate:!1,distance:200,minDistance:40,maxDistance:400}}});a["w"].merge(Ua.prototype,Fa),a["w"].merge(Ua.prototype,Ga),a["w"].merge(Ua.prototype,Ha);var Wa=Ua,Xa=n("7837"),Za=Pr.firstNotNull,qa={left:0,middle:1,right:2};function Ya(t){return t instanceof Array||(t=[t,t]),t}var Ka=O.extend((function(){return{zr:null,viewGL:null,_center:new ye,minDistance:.5,maxDistance:1.5,maxOrthographicSize:300,minOrthographicSize:30,minAlpha:-90,maxAlpha:90,minBeta:-1/0,maxBeta:1/0,autoRotateAfterStill:0,autoRotateDirection:"cw",autoRotateSpeed:60,damping:.8,rotateSensitivity:1,zoomSensitivity:1,panSensitivity:1,panMouseButton:"middle",rotateMouseButton:"left",_mode:"rotate",_camera:null,_needsUpdate:!1,_rotating:!1,_phi:0,_theta:0,_mouseX:0,_mouseY:0,_rotateVelocity:new ct,_panVelocity:new ct,_distance:500,_zoomSpeed:0,_stillTimeout:0,_animators:[]}}),(function(){["_mouseDownHandler","_mouseWheelHandler","_mouseMoveHandler","_mouseUpHandler","_pinchHandler","_contextMenuHandler","_update"].forEach((function(t){this[t]=this[t].bind(this)}),this)}),{init:function(){var t=this.zr;t&&(t.on("mousedown",this._mouseDownHandler),t.on("globalout",this._mouseUpHandler),t.on("mousewheel",this._mouseWheelHandler),t.on("pinch",this._pinchHandler),t.animation.on("frame",this._update),t.dom.addEventListener("contextmenu",this._contextMenuHandler))},dispose:function(){var t=this.zr;t&&(t.off("mousedown",this._mouseDownHandler),t.off("mousemove",this._mouseMoveHandler),t.off("mouseup",this._mouseUpHandler),t.off("mousewheel",this._mouseWheelHandler),t.off("pinch",this._pinchHandler),t.off("globalout",this._mouseUpHandler),t.dom.removeEventListener("contextmenu",this._contextMenuHandler),t.animation.off("frame",this._update)),this.stopAllAnimation()},getDistance:function(){return this._distance},setDistance:function(t){this._distance=t,this._needsUpdate=!0},getOrthographicSize:function(){return this._orthoSize},setOrthographicSize:function(t){this._orthoSize=t,this._needsUpdate=!0},getAlpha:function(){return this._theta/Math.PI*180},getBeta:function(){return-this._phi/Math.PI*180},getCenter:function(){return this._center.toArray()},setAlpha:function(t){t=Math.max(Math.min(this.maxAlpha,t),this.minAlpha),this._theta=t/180*Math.PI,this._needsUpdate=!0},setBeta:function(t){t=Math.max(Math.min(this.maxBeta,t),this.minBeta),this._phi=-t/180*Math.PI,this._needsUpdate=!0},setCenter:function(t){this._center.setArray(t)},setViewGL:function(t){this.viewGL=t},getCamera:function(){return this.viewGL.camera},setFromViewControlModel:function(t,e){e=e||{};var n=e.baseDistance||0,i=e.baseOrthoSize||1,r=t.get("projection");"perspective"!==r&&"orthographic"!==r&&"isometric"!==r&&(r="perspective"),this._projection=r,this.viewGL.setProjection(r);var a=t.get("distance")+n,o=t.get("orthographicSize")+i;[["damping",.8],["autoRotate",!1],["autoRotateAfterStill",3],["autoRotateDirection","cw"],["autoRotateSpeed",10],["minDistance",30],["maxDistance",400],["minOrthographicSize",30],["maxOrthographicSize",300],["minAlpha",-90],["maxAlpha",90],["minBeta",-1/0],["maxBeta",1/0],["rotateSensitivity",1],["zoomSensitivity",1],["panSensitivity",1],["panMouseButton","left"],["rotateMouseButton","middle"]].forEach((function(e){this[e[0]]=Za(t.get(e[0]),e[1])}),this),this.minDistance+=n,this.maxDistance+=n,this.minOrthographicSize+=i,this.maxOrthographicSize+=i;var s=t.ecModel,l={};["animation","animationDurationUpdate","animationEasingUpdate"].forEach((function(e){l[e]=Za(t.get(e),s&&s.get(e))}));var u=Za(e.alpha,t.get("alpha"))||0,c=Za(e.beta,t.get("beta"))||0,h=Za(e.center,t.get("center"))||[0,0,0];l.animation&&l.animationDurationUpdate>0&&this._notFirst?this.animateTo({alpha:u,beta:c,center:h,distance:a,orthographicSize:o,easing:l.animationEasingUpdate,duration:l.animationDurationUpdate}):(this.setDistance(a),this.setAlpha(u),this.setBeta(c),this.setCenter(h),this.setOrthographicSize(o)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){0},animateTo:function(t){var e=this.zr,n=this,i={},r={};return null!=t.distance&&(i.distance=this.getDistance(),r.distance=t.distance),null!=t.orthographicSize&&(i.orthographicSize=this.getOrthographicSize(),r.orthographicSize=t.orthographicSize),null!=t.alpha&&(i.alpha=this.getAlpha(),r.alpha=t.alpha),null!=t.beta&&(i.beta=this.getBeta(),r.beta=t.beta),null!=t.center&&(i.center=this.getCenter(),r.center=t.center),this._addAnimator(e.animation.animate(i).when(t.duration||1e3,r).during((function(){null!=i.alpha&&n.setAlpha(i.alpha),null!=i.beta&&n.setBeta(i.beta),null!=i.distance&&n.setDistance(i.distance),null!=i.center&&n.setCenter(i.center),null!=i.orthographicSize&&n.setOrthographicSize(i.orthographicSize),n._needsUpdate=!0}))).start(t.easing||"linear")},stopAllAnimation:function(){for(var t=0;t<this._animators.length;t++)this._animators[t].stop();this._animators.length=0},update:function(){this._needsUpdate=!0,this._update(20)},_isAnimating:function(){return this._animators.length>0},_update:function(t){if(this._rotating){var e=("cw"===this.autoRotateDirection?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=e*t/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(t=Math.min(t,50),this._updateDistanceOrSize(t),this._updatePan(t),this._updateRotate(t),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(t){var e=this._rotateVelocity;this._phi=e.y*t/20+this._phi,this._theta=e.x*t/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(e,Math.pow(this.damping,t/16))},_updateDistanceOrSize:function(t){"perspective"===this._projection?this._setDistance(this._distance+this._zoomSpeed*t/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*t/20),this._zoomSpeed*=Math.pow(this.damping,t/16)},_setDistance:function(t){this._distance=Math.max(Math.min(t,this.maxDistance),this.minDistance)},_setOrthoSize:function(t){this._orthoSize=Math.max(Math.min(t,this.maxOrthographicSize),this.minOrthographicSize);var e=this.getCamera(),n=this._orthoSize,i=n/this.viewGL.viewport.height*this.viewGL.viewport.width;e.left=-i/2,e.right=i/2,e.top=n/2,e.bottom=-n/2},_updatePan:function(t){var e=this._panVelocity,n=this._distance,i=this.getCamera(),r=i.worldTransform.y,a=i.worldTransform.x;this._center.scaleAndAdd(a,-e.x*n/200).scaleAndAdd(r,-e.y*n/200),this._vectorDamping(e,0)},_updateTransform:function(){var t=this.getCamera(),e=new ye,n=this._theta+Math.PI/2,i=this._phi+Math.PI/2,r=Math.sin(n);e.x=r*Math.cos(i),e.y=-Math.cos(n),e.z=r*Math.sin(i),t.position.copy(this._center).scaleAndAdd(e,this._distance),t.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var t=this.autoRotateAfterStill,e=this;!isNaN(t)&&t>0&&(this._stillTimeout=setTimeout((function(){e._rotating=!0}),1e3*t))},_vectorDamping:function(t,e){var n=t.len();n*=e,n<1e-4&&(n=0),t.normalize().scale(n)},_decomposeTransform:function(){if(this.getCamera()){this.getCamera().updateWorldTransform();var t=this.getCamera().worldTransform.z,e=Math.asin(t.y),n=Math.atan2(t.x,t.z);this._theta=e,this._phi=-n,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(t){if(!t.target&&!this._isAnimating()){var e=t.offsetX,n=t.offsetY;this.viewGL&&!this.viewGL.containPoint(e,n)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),t.event.targetTouches?1===t.event.targetTouches.length&&(this._mode="rotate"):t.event.button===qa[this.rotateMouseButton]?this._mode="rotate":t.event.button===qa[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=t.offsetX,this._mouseY=t.offsetY)}},_mouseMoveHandler:function(t){if((!t.target||!t.target.__isGLToZRProxy)&&!this._isAnimating()){var e=Ya(this.panSensitivity),n=Ya(this.rotateSensitivity);"rotate"===this._mode?(this._rotateVelocity.y=(t.offsetX-this._mouseX)/this.zr.getHeight()*2*n[0],this._rotateVelocity.x=(t.offsetY-this._mouseY)/this.zr.getWidth()*2*n[1]):"pan"===this._mode&&(this._panVelocity.x=(t.offsetX-this._mouseX)/this.zr.getWidth()*e[0]*400,this._panVelocity.y=(-t.offsetY+this._mouseY)/this.zr.getHeight()*e[1]*400),this._mouseX=t.offsetX,this._mouseY=t.offsetY,t.event.preventDefault()}},_mouseWheelHandler:function(t){if(!this._isAnimating()){var e=t.event.wheelDelta||-t.event.detail;this._zoomHandler(t,e)}},_pinchHandler:function(t){this._isAnimating()||(this._zoomHandler(t,t.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(t,e){if(0!==e){var n,i=t.offsetX,r=t.offsetY;if(!this.viewGL||this.viewGL.containPoint(i,r))n="perspective"===this._projection?Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(e>0?-1:1)*n*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&"rotate"===this._mode&&this._startCountingStill(),t.event.preventDefault()}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return"right"===this.rotateMouseButton||"right"===this.panMouseButton},_contextMenuHandler:function(t){this._isRightMouseButtonUsed()&&t.preventDefault()},_addAnimator:function(t){var e=this._animators;return e.push(t),t.done((function(){var n=e.indexOf(t);n>=0&&e.splice(n,1)})),t}});Object.defineProperty(Ka.prototype,"autoRotate",{get:function(t){return this._autoRotate},set:function(t){this._autoRotate=t,this._rotating=t}});var Qa=Ka,Ja={convertToDynamicArray:function(t){t&&this.resetOffset();var e=this.attributes;for(var n in e)t||!e[n].value?e[n].value=[]:e[n].value=Array.prototype.slice.call(e[n].value);t||!this.indices?this.indices=[]:this.indices=Array.prototype.slice.call(this.indices)},convertToTypedArray:function(){var t=this.attributes;for(var e in t)t[e].value&&t[e].value.length>0?t[e].value=new Float32Array(t[e].value):t[e].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}},$a={vec2:st,vec3:Qt,vec4:Oe,mat2:Kr,mat2d:ta,mat3:Te,mat4:Yt,quat:Ae},to=$a,eo=to.vec3,no=[[0,0],[1,1]],io=bn.extend((function(){return{segmentScale:1,dynamic:!0,useNativeLine:!0,attributes:{position:new bn.Attribute("position","float",3,"POSITION"),positionPrev:new bn.Attribute("positionPrev","float",3),positionNext:new bn.Attribute("positionNext","float",3),prevPositionPrev:new bn.Attribute("prevPositionPrev","float",3),prevPosition:new bn.Attribute("prevPosition","float",3),prevPositionNext:new bn.Attribute("prevPositionNext","float",3),offset:new bn.Attribute("offset","float",1),color:new bn.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(t){var e=this.attributes;this.vertexCount!==t&&(e.position.init(t),e.color.init(t),this.useNativeLine||(e.positionPrev.init(t),e.positionNext.init(t),e.offset.init(t)),t>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(t){this.triangleCount!==t&&(this.indices=0===t?null:this.vertexCount>65535?new Uint32Array(3*t):new Uint16Array(3*t))},_getCubicCurveApproxStep:function(t,e,n,i){var r=eo.dist(t,e)+eo.dist(n,e)+eo.dist(i,n),a=1/(r+1)*this.segmentScale;return a},getCubicCurveVertexCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),a=Math.ceil(1/r);return this.useNativeLine?2*a:2*a+2},getCubicCurveTriangleCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),a=Math.ceil(1/r);return this.useNativeLine?0:2*a},getLineVertexCount:function(){return this.getPolylineVertexCount(no)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(no)},getPolylineVertexCount:function(t){var e;if("number"===typeof t)e=t;else{var n="number"!==typeof t[0];e=n?t.length:t.length/3}return this.useNativeLine?2*(e-1):2*(e-1)+2},getPolylineTriangleCount:function(t){var e;if("number"===typeof t)e=t;else{var n="number"!==typeof t[0];e=n?t.length:t.length/3}return this.useNativeLine?0:2*Math.max(e-1,0)},addCubicCurve:function(t,e,n,i,r,a){null==a&&(a=1);var o=t[0],s=t[1],l=t[2],u=e[0],c=e[1],h=e[2],d=n[0],f=n[1],p=n[2],g=i[0],m=i[1],v=i[2],y=this._getCubicCurveApproxStep(t,e,n,i),_=y*y,b=_*y,x=3*y,w=3*_,O=6*_,S=6*b,T=o-2*u+d,M=s-2*c+f,A=l-2*h+p,C=3*(u-d)-o+g,I=3*(c-f)-s+m,D=3*(h-p)-l+v,L=o,E=s,j=l,P=(u-o)*x+T*w+C*b,N=(c-s)*x+M*w+I*b,R=(h-l)*x+A*w+D*b,k=T*O+C*S,B=M*O+I*S,z=A*O+D*S,V=C*S,F=I*S,G=D*S,H=0,U=0,W=Math.ceil(1/y),X=new Float32Array(3*(W+1)),Z=(X=[],0);for(U=0;U<W+1;U++)X[Z++]=L,X[Z++]=E,X[Z++]=j,L+=P,E+=N,j+=R,P+=k,N+=B,R+=z,k+=V,B+=F,z+=G,H+=y,H>1&&(L=P>0?Math.min(L,g):Math.max(L,g),E=N>0?Math.min(E,m):Math.max(E,m),j=R>0?Math.min(j,v):Math.max(j,v));return this.addPolyline(X,r,a)},addLine:function(t,e,n,i){return this.addPolyline([t,e],n,i)},addPolyline:function(t,e,n,i,r){if(t.length){var a="number"!==typeof t[0];if(null==r&&(r=a?t.length:t.length/3),!(r<2)){null==i&&(i=0),null==n&&(n=1),this._itemVertexOffsets.push(this._vertexOffset);a="number"!==typeof t[0];var o,s,l=a?"number"!==typeof e[0]:e.length/4===r,u=this.attributes.position,c=this.attributes.positionPrev,h=this.attributes.positionNext,d=this.attributes.color,f=this.attributes.offset,p=this.indices,g=this._vertexOffset;n=Math.max(n,.01);for(var m=i;m<r;m++){if(a)o=t[m],s=l?e[m]:e;else{var v=3*m;if(o=o||[],o[0]=t[v],o[1]=t[v+1],o[2]=t[v+2],l){var y=4*m;s=s||[],s[0]=e[y],s[1]=e[y+1],s[2]=e[y+2],s[3]=e[y+3]}else s=e}if(this.useNativeLine?m>1&&(u.copy(g,g-1),d.copy(g,g-1),g++):(m<r-1&&(c.set(g+2,o),c.set(g+3,o)),m>0&&(h.set(g-2,o),h.set(g-1,o)),u.set(g,o),u.set(g+1,o),d.set(g,s),d.set(g+1,s),f.set(g,n/2),f.set(g+1,-n/2),g+=2),this.useNativeLine)d.set(g,s),u.set(g,o),g++;else if(m>0){var _=3*this._triangleOffset;p=this.indices;p[_]=g-4,p[_+1]=g-3,p[_+2]=g-2,p[_+3]=g-3,p[_+4]=g-1,p[_+5]=g-2,this._triangleOffset+=2}}if(!this.useNativeLine){var b=this._vertexOffset,x=this._vertexOffset+2*r;c.copy(b,b+2),c.copy(b+1,b+3),h.copy(x-1,x-3),h.copy(x-2,x-4)}return this._vertexOffset=g,this._vertexOffset}}},setItemColor:function(t,e){for(var n=this._itemVertexOffsets[t],i=t<this._itemVertexOffsets.length-1?this._itemVertexOffsets[t+1]:this._vertexOffset,r=n;r<i;r++)this.attributes.color.set(r,e);this.dirty("color")},currentTriangleOffset:function(){return this._triangleOffset},currentVertexOffset:function(){return this._vertexOffset}});a["w"].defaults(io.prototype,Ja);var ro=io;function ao(t,e,n,i,r,a,o){this._zr=t,this._x=0,this._y=0,this._rowHeight=0,this.width=i,this.height=r,this.offsetX=e,this.offsetY=n,this.dpr=o,this.gap=a}function oo(t){t=t||{},t.width=t.width||512,t.height=t.height||512,t.devicePixelRatio=t.devicePixelRatio||1,t.gap=null==t.gap?2:t.gap;var e=document.createElement("canvas");e.width=t.width*t.devicePixelRatio,e.height=t.height*t.devicePixelRatio,this._canvas=e,this._texture=new sn({image:e,flipY:!1});var n=this;this._zr=a["x"].init(e);var i=this._zr.refreshImmediately;this._zr.refreshImmediately=function(){i.call(this),n._texture.dirty(),n.onupdate&&n.onupdate()},this._dpr=t.devicePixelRatio,this._coords={},this.onupdate=t.onupdate,this._gap=t.gap,this._textureAtlasNodes=[new ao(this._zr,0,0,t.width,t.height,this._gap,this._dpr)],this._nodeWidth=t.width,this._nodeHeight=t.height,this._currentNodeIdx=0}ao.prototype={constructor:ao,clear:function(){this._x=0,this._y=0,this._rowHeight=0},add:function(t,e,n){var i=t.getBoundingRect();null==e&&(e=i.width),null==n&&(n=i.height),e*=this.dpr,n*=this.dpr,this._fitElement(t,e,n);var r=this._x,a=this._y,o=this.width*this.dpr,s=this.height*this.dpr,l=this.gap;if(r+e+l>o&&(r=this._x=0,a+=this._rowHeight+l,this._y=a,this._rowHeight=0),this._x+=e+l,this._rowHeight=Math.max(this._rowHeight,n),a+n+l>s)return null;t.x+=this.offsetX*this.dpr+r,t.y+=this.offsetY*this.dpr+a,this._zr.add(t);var u=[this.offsetX/this.width,this.offsetY/this.height],c=[[r/o+u[0],a/s+u[1]],[(r+e)/o+u[0],(a+n)/s+u[1]]];return c},_fitElement:function(t,e,n){var i=t.getBoundingRect(),r=e/i.width,a=n/i.height;t.x=-i.x*r,t.y=-i.y*a,t.scaleX=r,t.scaleY=a,t.update()}},oo.prototype={clear:function(){for(var t=0;t<this._textureAtlasNodes.length;t++)this._textureAtlasNodes[t].clear();this._currentNodeIdx=0,this._zr.clear(),this._coords={}},getWidth:function(){return this._width},getHeight:function(){return this._height},getTexture:function(){return this._texture},getDevicePixelRatio:function(){return this._dpr},getZr:function(){return this._zr},_getCurrentNode:function(){return this._textureAtlasNodes[this._currentNodeIdx]},_expand:function(){if(this._currentNodeIdx++,this._textureAtlasNodes[this._currentNodeIdx])return this._textureAtlasNodes[this._currentNodeIdx];var t=4096/this._dpr,e=this._textureAtlasNodes,n=e.length,i=n*this._nodeWidth%t,r=Math.floor(n*this._nodeWidth/t)*this._nodeHeight;if(!(r>=t)){var a=(i+this._nodeWidth)*this._dpr,o=(r+this._nodeHeight)*this._dpr;try{this._zr.resize({width:a,height:o})}catch(l){this._canvas.width=a,this._canvas.height=o}var s=new ao(this._zr,i,r,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(s),s}},add:function(t,e,n){if(this._coords[t.id])return this._coords[t.id];var i=this._getCurrentNode().add(t,e,n);if(!i){var r=this._expand();if(!r)return;i=r.add(t,e,n)}return this._coords[t.id]=i,i},getCoordsScale:function(){var t=this._dpr;return[this._nodeWidth/this._canvas.width*t,this._nodeHeight/this._canvas.height*t]},getCoords:function(t){return this._coords[t]},dispose:function(){this._zr.dispose()}};var so=oo;function lo(){}lo.prototype={constructor:lo,setScene:function(t){this._scene=t,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(t){this._lightRoot=t,this.mainLight=new Ta.DirectionalLight({shadowBias:.005}),this.ambientLight=new Ta.AmbientLight,t.add(this.mainLight),t.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(t){var e=this.mainLight,n=this.ambientLight,i=t.getModel("light"),r=i.getModel("main"),a=i.getModel("ambient");e.intensity=r.get("intensity"),n.intensity=a.get("intensity"),e.color=Ta.parseColor(r.get("color")).slice(0,3),n.color=Ta.parseColor(a.get("color")).slice(0,3);var o=r.get("alpha")||0,s=r.get("beta")||0;e.position.setArray(Ta.directionFromAlphaBeta(o,s)),e.lookAt(Ta.Vector3.ZERO),e.castShadow=r.get("shadow"),e.shadowResolution=Ta.getShadowResolution(r.get("shadowQuality"))},updateAmbientCubemap:function(t,e,n){var i=e.getModel("light.ambientCubemap"),r=i.get("texture");if(r){this._cubemapLightsCache=this._cubemapLightsCache||{};var a=this._cubemapLightsCache[r];if(!a){var o=this;a=this._cubemapLightsCache[r]=Ta.createAmbientCubemap(i.option,t,n,(function(){o._isSkyboxFromAmbientCubemap&&o._skybox.setEnvironmentMap(a.specular.cubemap),n.getZr().refresh()}))}this._lightRoot.add(a.diffuse),this._lightRoot.add(a.specular),this._currentCubemapLights=a}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(t,e,n){var i=e.get("environment"),r=this;function o(){return r._skybox=r._skybox||new Mi,r._skybox}var s=o();if(i&&"none"!==i)if("auto"===i)if(this._isSkyboxFromAmbientCubemap=!0,this._currentCubemapLights){var l=this._currentCubemapLights.specular.cubemap;s.setEnvironmentMap(l),this._scene&&s.attachScene(this._scene),s.material.set("lod",3)}else this._skybox&&this._skybox.detachScene();else if("object"===typeof i&&i.colorStops||"string"===typeof i&&a["h"].parse(i)){this._isSkyboxFromAmbientCubemap=!1;var u=new Ta.Texture2D({anisotropic:8,flipY:!1});s.setEnvironmentMap(u);var c=u.image=document.createElement("canvas");c.width=c.height=16;var h=c.getContext("2d"),d=new a["l"].Rect({shape:{x:0,y:0,width:16,height:16},style:{fill:i}});a["o"](h,d),s.attachScene(this._scene)}else{this._isSkyboxFromAmbientCubemap=!1;u=Ta.loadTexture(i,n,{anisotropic:8,flipY:!1});s.setEnvironmentMap(u),s.attachScene(this._scene)}else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var f=e.coordinateSystem;if(this._skybox)if(!f||!f.viewGL||"auto"===i||i.match&&i.match(/.hdr$/))this._skybox.material.undefine("fragment","SRGB_DECODE");else{var p=f.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[p]("fragment","SRGB_DECODE")}}};var uo=lo,co=to.vec3,ho=bn.extend((function(){return{segmentScale:1,useNativeLine:!0,attributes:{position:new bn.Attribute("position","float",3,"POSITION"),normal:new bn.Attribute("normal","float",3,"NORMAL"),color:new bn.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setQuadCount:function(t){var e=this.attributes,n=this.getQuadVertexCount()*t,i=this.getQuadTriangleCount()*t;this.vertexCount!==n&&(e.position.init(n),e.normal.init(n),e.color.init(n)),this.triangleCount!==i&&(this.indices=n>65535?new Uint32Array(3*i):new Uint16Array(3*i))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:function(){var t=co.create(),e=co.create(),n=co.create(),i=[0,3,1,3,2,1];return function(r,a){var o=this.attributes.position,s=this.attributes.normal,l=this.attributes.color;co.sub(t,r[1],r[0]),co.sub(e,r[2],r[1]),co.cross(n,t,e),co.normalize(n,n);for(var u=0;u<4;u++)o.set(this._vertexOffset+u,r[u]),l.set(this._vertexOffset+u,a),s.set(this._vertexOffset+u,n);var c=3*this._faceOffset;for(u=0;u<6;u++)this.indices[c+u]=i[u]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2}}()});a["w"].defaults(ho.prototype,Ja);var fo=ho,po=Pr.firstNotNull,go={x:0,y:2,z:1};function mo(t,e,n,i){var r=[0,0,0],a=i<0?n.getExtentMin():n.getExtentMax();r[go[n.dim]]=a,t.position.setArray(r),t.rotation.identity(),e.distance=-Math.abs(a),e.normal.set(0,0,0),"x"===n.dim?(t.rotation.rotateY(i*Math.PI/2),e.normal.x=-i):"z"===n.dim?(t.rotation.rotateX(-i*Math.PI/2),e.normal.y=-i):(i>0&&t.rotation.rotateY(Math.PI),e.normal.z=-i)}function vo(t,e,n){this.rootNode=new Ta.Node;var i=new Ta.Mesh({geometry:new ro({useNativeLine:!1}),material:e,castShadow:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:1}),r=new Ta.Mesh({geometry:new fo,material:n,castShadow:!1,culling:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:0});this.rootNode.add(r),this.rootNode.add(i),this.faceInfo=t,this.plane=new Ta.Plane,this.linesMesh=i,this.quadsMesh=r}vo.prototype.update=function(t,e,n){var i=t.coordinateSystem,r=[i.getAxis(this.faceInfo[0]),i.getAxis(this.faceInfo[1])],a=this.linesMesh.geometry,o=this.quadsMesh.geometry;a.convertToDynamicArray(!0),o.convertToDynamicArray(!0),this._updateSplitLines(a,r,t,n),this._udpateSplitAreas(o,r,t,n),a.convertToTypedArray(),o.convertToTypedArray();var s=i.getAxis(this.faceInfo[2]);mo(this.rootNode,this.plane,s,this.faceInfo[3])},vo.prototype._updateSplitLines=function(t,e,n,i){var r=i.getDevicePixelRatio();e.forEach((function(i,o){var s=i.model,l=e[1-o].getExtent();if(!i.scale.isBlank()){var u=s.getModel("splitLine",n.getModel("splitLine"));if(u.get("show")){var c=u.getModel("lineStyle"),h=c.get("color"),d=po(c.get("opacity"),1),f=po(c.get("width"),1);h=a["w"].isArray(h)?h:[h];for(var p=i.getTicksCoords({tickModel:u}),g=0,m=0;m<p.length;m++){var v=p[m].coord,y=Ta.parseColor(h[g%h.length]);y[3]*=d;var _=[0,0,0],b=[0,0,0];_[o]=b[o]=v,_[1-o]=l[0],b[1-o]=l[1],t.addLine(_,b,y,f*r),g++}}}}))},vo.prototype._udpateSplitAreas=function(t,e,n,i){e.forEach((function(i,r){var o=i.model,s=e[1-r].getExtent();if(!i.scale.isBlank()){var l=o.getModel("splitArea",n.getModel("splitArea"));if(l.get("show")){var u=l.getModel("areaStyle"),c=u.get("color"),h=po(u.get("opacity"),1);c=a["w"].isArray(c)?c:[c];for(var d=i.getTicksCoords({tickModel:l,clamp:!0}),f=0,p=[0,0,0],g=[0,0,0],m=0;m<d.length;m++){var v=d[m].coord,y=[0,0,0],_=[0,0,0];if(y[r]=_[r]=v,y[1-r]=s[0],_[1-r]=s[1],0!==m){var b=Ta.parseColor(c[f%c.length]);b[3]*=h,t.addQuad([p,y,_,g],b),p=y,g=_,f++}else p=y,g=_}}}}))};var yo=vo,_o=[0,1,2,0,2,3],bo=bn.extend((function(){return{attributes:{position:new bn.Attribute("position","float",3,"POSITION"),texcoord:new bn.Attribute("texcoord","float",2,"TEXCOORD_0"),offset:new bn.Attribute("offset","float",2),color:new bn.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setSpriteCount:function(t){this._spriteCount=t;var e=4*t,n=2*t;this.vertexCount!==e&&(this.attributes.position.init(e),this.attributes.offset.init(e),this.attributes.color.init(e)),this.triangleCount!==n&&(this.indices=e>65535?new Uint32Array(3*n):new Uint16Array(3*n))},setSpriteAlign:function(t,e,n,i,r){var a,o,s,l;switch(null==n&&(n="left"),null==i&&(i="top"),r=r||0,n){case"left":a=r,s=e[0]+r;break;case"center":case"middle":a=-e[0]/2,s=e[0]/2;break;case"right":a=-e[0]-r,s=-r;break}switch(i){case"bottom":o=r,l=e[1]+r;break;case"middle":o=-e[1]/2,l=e[1]/2;break;case"top":o=-e[1]-r,l=-r;break}var u=4*t,c=this.attributes.offset;c.set(u,[a,l]),c.set(u+1,[s,l]),c.set(u+2,[s,o]),c.set(u+3,[a,o])},addSprite:function(t,e,n,i,r,a){var o=this._vertexOffset;this.setSprite(this._vertexOffset/4,t,e,n,i,r,a);for(var s=0;s<_o.length;s++)this.indices[3*this._faceOffset+s]=_o[s]+o;return this._faceOffset+=2,this._vertexOffset+=4,o/4},setSprite:function(t,e,n,i,r,a,o){for(var s=4*t,l=this.attributes,u=0;u<4;u++)l.position.set(s+u,e);var c=l.texcoord;c.set(s,[i[0][0],i[0][1]]),c.set(s+1,[i[1][0],i[0][1]]),c.set(s+2,[i[1][0],i[1][1]]),c.set(s+3,[i[0][0],i[1][1]]),this.setSpriteAlign(t,n,r,a,o)}});a["w"].defaults(bo.prototype,Ja);var xo=bo,wo="@export ecgl.labels.vertex\n\nattribute vec3 position: POSITION;\nattribute vec2 texcoord: TEXCOORD_0;\nattribute vec2 offset;\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\n\nvarying vec2 v_Texcoord;\n\nvoid main()\n{\n vec4 proj = worldViewProjection * vec4(position, 1.0);\n\n vec2 screen = (proj.xy / abs(proj.w) + 1.0) * 0.5 * viewport.zw;\n\n screen += offset;\n\n proj.xy = (screen / viewport.zw - 0.5) * 2.0 * abs(proj.w);\n gl_Position = proj;\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n v_Texcoord = texcoord;\n}\n@end\n\n\n@export ecgl.labels.fragment\n\nuniform vec3 color : [1.0, 1.0, 1.0];\nuniform float alpha : 1.0;\nuniform sampler2D textureAtlas;\nuniform vec2 uvScale: [1.0, 1.0];\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\nvarying float v_Miter;\n\nvarying vec2 v_Texcoord;\n\nvoid main()\n{\n gl_FragColor = vec4(color, alpha) * texture2D(textureAtlas, v_Texcoord * uvScale);\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n#endif\n}\n\n@end";Ta.Shader.import(wo);var Oo=Ta.Mesh.extend((function(){var t=new xo({dynamic:!0}),e=new Ta.Material({shader:Ta.createShader("ecgl.labels"),transparent:!0,depthMask:!1});return{geometry:t,material:e,culling:!1,castShadow:!1,ignorePicking:!0}})),So=Pr.firstNotNull,To={x:0,y:2,z:1};function Mo(t,e){var n=new Ta.Mesh({geometry:new ro({useNativeLine:!1}),material:e,castShadow:!1,ignorePicking:!0,renderOrder:2}),i=new Oo;i.material.depthMask=!1;var r=new Ta.Node;r.add(n),r.add(i),this.rootNode=r,this.dim=t,this.linesMesh=n,this.labelsMesh=i,this.axisLineCoords=null,this.labelElements=[]}var Ao={x:"y",y:"x",z:"y"};Mo.prototype.update=function(t,e,n){var i=t.coordinateSystem,r=i.getAxis(this.dim),o=this.linesMesh.geometry,s=this.labelsMesh.geometry;o.convertToDynamicArray(!0),s.convertToDynamicArray(!0);var l=r.model,u=r.getExtent(),c=n.getDevicePixelRatio(),h=l.getModel("axisLine",t.getModel("axisLine")),d=l.getModel("axisTick",t.getModel("axisTick")),f=l.getModel("axisLabel",t.getModel("axisLabel")),p=h.get("lineStyle.color");if(h.get("show")){var g=h.getModel("lineStyle"),m=[0,0,0],v=[0,0,0],y=To[r.dim];m[y]=u[0],v[y]=u[1],this.axisLineCoords=[m,v];var _=Ta.parseColor(p),b=So(g.get("width"),1),x=So(g.get("opacity"),1);_[3]*=x,o.addLine(m,v,_,b*c)}if(d.get("show")){var w=d.getModel("lineStyle"),O=Ta.parseColor(So(w.get("color"),p));b=So(w.get("width"),1);O[3]*=So(w.get("opacity"),1);for(var S=r.getTicksCoords(),T=d.get("length"),M=0;M<S.length;M++){var A=S[M].coord,C=(m=[0,0,0],v=[0,0,0],y=To[r.dim],To[Ao[r.dim]]);m[y]=v[y]=A,v[C]=T,o.addLine(m,v,O,b*c)}}this.labelElements=[];c=n.getDevicePixelRatio();if(f.get("show")){S=r.getTicksCoords();var I=l.get("data"),D=f.get("margin"),L=r.getViewLabels();for(M=0;M<L.length;M++){var E=L[M].tickValue,j=L[M].formattedLabel,P=L[M].rawLabel,N=(A=r.dataToCoord(E),[0,0,0]);y=To[r.dim],C=To[Ao[r.dim]];N[y]=N[y]=A,N[C]=D;var R=f;I&&I[E]&&I[E].textStyle&&(R=new a["f"](I[E].textStyle,f,l.ecModel));var k=So(R.get("color"),p),B=new a["l"].Text({style:Object(Xa["c"])(R,{text:j,fill:"function"===typeof k?k("category"===r.type?P:"value"===r.type?E+"":E,M):k,verticalAlign:"top",align:"left"})}),z=e.add(B),V=B.getBoundingRect();s.addSprite(N,[V.width*c,V.height*c],z),this.labelElements.push(B)}}if(l.get("name")){var F=l.getModel("nameTextStyle"),G=(N=[0,0,0],y=To[r.dim],C=To[Ao[r.dim]],So(F.get("color"),p)),H=F.get("borderColor");b=F.get("borderWidth");N[y]=N[y]=(u[0]+u[1])/2,N[C]=l.get("nameGap");B=new a["l"].Text({style:Object(Xa["c"])(F,{text:l.get("name"),fill:G,stroke:H,lineWidth:b})}),z=e.add(B),V=B.getBoundingRect();s.addSprite(N,[V.width*c,V.height*c],z),B.__idx=this.labelElements.length,this.nameLabelElement=B}this.labelsMesh.material.set("textureAtlas",e.getTexture()),this.labelsMesh.material.set("uvScale",e.getCoordsScale()),o.convertToTypedArray(),s.convertToTypedArray()},Mo.prototype.setSpriteAlign=function(t,e,n){for(var i=n.getDevicePixelRatio(),r=this.labelsMesh.geometry,a=0;a<this.labelElements.length;a++){var o=this.labelElements[a],s=o.getBoundingRect();r.setSpriteAlign(a,[s.width*i,s.height*i],t,e)}var l=this.nameLabelElement;if(l){s=l.getBoundingRect();r.setSpriteAlign(l.__idx,[s.width*i,s.height*i],t,e),r.dirty()}this.textAlign=t,this.textVerticalAlign=e};var Co=Mo,Io="@export ecgl.lines3D.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec3 position: POSITION;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(position, 1.0);\n v_Color = a_Color;\n}\n\n@end\n\n@export ecgl.lines3D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n}\n@end\n\n\n\n@export ecgl.lines3D.clipNear\n\nvec4 clipNear(vec4 p1, vec4 p2) {\n float n = (p1.w - near) / (p1.w - p2.w);\n return vec4(mix(p1.xy, p2.xy, n), -near, near);\n}\n\n@end\n\n@export ecgl.lines3D.expandLine\n#ifdef VERTEX_ANIMATION\n vec4 prevProj = worldViewProjection * vec4(mix(prevPositionPrev, positionPrev, percent), 1.0);\n vec4 currProj = worldViewProjection * vec4(mix(prevPosition, position, percent), 1.0);\n vec4 nextProj = worldViewProjection * vec4(mix(prevPositionNext, positionNext, percent), 1.0);\n#else\n vec4 prevProj = worldViewProjection * vec4(positionPrev, 1.0);\n vec4 currProj = worldViewProjection * vec4(position, 1.0);\n vec4 nextProj = worldViewProjection * vec4(positionNext, 1.0);\n#endif\n\n if (currProj.w < 0.0) {\n if (nextProj.w > 0.0) {\n currProj = clipNear(currProj, nextProj);\n }\n else if (prevProj.w > 0.0) {\n currProj = clipNear(currProj, prevProj);\n }\n }\n\n vec2 prevScreen = (prevProj.xy / abs(prevProj.w) + 1.0) * 0.5 * viewport.zw;\n vec2 currScreen = (currProj.xy / abs(currProj.w) + 1.0) * 0.5 * viewport.zw;\n vec2 nextScreen = (nextProj.xy / abs(nextProj.w) + 1.0) * 0.5 * viewport.zw;\n\n vec2 dir;\n float len = offset;\n if (position == positionPrev) {\n dir = normalize(nextScreen - currScreen);\n }\n else if (position == positionNext) {\n dir = normalize(currScreen - prevScreen);\n }\n else {\n vec2 dirA = normalize(currScreen - prevScreen);\n vec2 dirB = normalize(nextScreen - currScreen);\n\n vec2 tanget = normalize(dirA + dirB);\n\n float miter = 1.0 / max(dot(tanget, dirA), 0.5);\n len *= miter;\n dir = tanget;\n }\n\n dir = vec2(-dir.y, dir.x) * len;\n currScreen += dir;\n\n currProj.xy = (currScreen / viewport.zw - 0.5) * 2.0 * abs(currProj.w);\n@end\n\n\n@export ecgl.meshLines3D.vertex\n\nattribute vec3 position: POSITION;\nattribute vec3 positionPrev;\nattribute vec3 positionNext;\nattribute float offset;\nattribute vec4 a_Color : COLOR;\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute vec3 prevPositionPrev;\nattribute vec3 prevPositionNext;\nuniform float percent : 1.0;\n#endif\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\nuniform float near : NEAR;\n\nvarying vec4 v_Color;\n\n@import ecgl.common.wireframe.vertexHeader\n\n@import ecgl.lines3D.clipNear\n\nvoid main()\n{\n @import ecgl.lines3D.expandLine\n\n gl_Position = currProj;\n\n v_Color = a_Color;\n\n @import ecgl.common.wireframe.vertexMain\n}\n@end\n\n\n@export ecgl.meshLines3D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end",Do=Pr.firstNotNull;Ta.Shader.import(Io);var Lo={x:0,y:2,z:1},Eo=a["d"].extend({type:"grid3D",__ecgl__:!0,init:function(t,e){var n=[["y","z","x",-1,"left"],["y","z","x",1,"right"],["x","y","z",-1,"bottom"],["x","y","z",1,"top"],["x","z","y",-1,"far"],["x","z","y",1,"near"]],i=["x","y","z"],r=new Ta.Material({shader:Ta.createShader("ecgl.color"),depthMask:!1,transparent:!0}),a=new Ta.Material({shader:Ta.createShader("ecgl.meshLines3D"),depthMask:!1,transparent:!0});r.define("fragment","DOUBLE_SIDED"),r.define("both","VERTEX_COLOR"),this.groupGL=new Ta.Node,this._control=new Qa({zr:e.getZr()}),this._control.init(),this._faces=n.map((function(t){var e=new yo(t,a,r);return this.groupGL.add(e.rootNode),e}),this),this._axes=i.map((function(t){var e=new Co(t,a);return this.groupGL.add(e.rootNode),e}),this);var o=e.getDevicePixelRatio();this._axisLabelSurface=new so({width:256,height:256,devicePixelRatio:o}),this._axisLabelSurface.onupdate=function(){e.getZr().refresh()},this._axisPointerLineMesh=new Ta.Mesh({geometry:new ro({useNativeLine:!1}),material:a,castShadow:!1,ignorePicking:!0,renderOrder:3}),this.groupGL.add(this._axisPointerLineMesh),this._axisPointerLabelsSurface=new so({width:128,height:128,devicePixelRatio:o}),this._axisPointerLabelsMesh=new Oo({ignorePicking:!0,renderOrder:4,castShadow:!1}),this._axisPointerLabelsMesh.material.set("textureAtlas",this._axisPointerLabelsSurface.getTexture()),this.groupGL.add(this._axisPointerLabelsMesh),this._lightRoot=new Ta.Node,this._sceneHelper=new uo,this._sceneHelper.initLight(this._lightRoot)},render:function(t,e,n){this._model=t,this._api=n;var i=t.coordinateSystem;i.viewGL.add(this._lightRoot),t.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL);var r=this._control;r.setViewGL(i.viewGL);var a=t.getModel("viewControl");r.setFromViewControlModel(a,0),this._axisLabelSurface.clear(),r.off("update"),t.get("show")&&(this._faces.forEach((function(i){i.update(t,e,n)}),this),this._axes.forEach((function(e){e.update(t,this._axisLabelSurface,n)}),this)),r.on("update",this._onCameraChange.bind(this,t,n),this),this._sceneHelper.setScene(i.viewGL.scene),this._sceneHelper.updateLight(t),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling")),this._initMouseHandler(t)},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n)},showAxisPointer:function(t,e,n,i){this._doShowAxisPointer(),this._updateAxisPointer(i.value)},hideAxisPointer:function(t,e,n,i){this._doHideAxisPointer()},_initMouseHandler:function(t){var e=t.coordinateSystem,n=e.viewGL;t.get("show")&&t.get("axisPointer.show")?n.on("mousemove",this._updateAxisPointerOnMousePosition,this):n.off("mousemove",this._updateAxisPointerOnMousePosition)},_updateAxisPointerOnMousePosition:function(t){if(!t.target){for(var e,n=this._model,i=n.coordinateSystem,r=i.viewGL,a=r.castRay(t.offsetX,t.offsetY,new Ta.Ray),o=0;o<this._faces.length;o++){var s=this._faces[o];if(!s.rootNode.invisible){s.plane.normal.dot(r.camera.worldTransform.z)<0&&s.plane.normal.negate();var l=a.intersectPlane(s.plane);if(l){var u=i.getAxis(s.faceInfo[0]),c=i.getAxis(s.faceInfo[1]),h=Lo[s.faceInfo[0]],d=Lo[s.faceInfo[1]];u.contain(l.array[h])&&c.contain(l.array[d])&&(e=l)}}}if(e){var f=i.pointToData(e.array,[],!0);this._updateAxisPointer(f),this._doShowAxisPointer()}else this._doHideAxisPointer()}},_onCameraChange:function(t,e){t.get("show")&&(this._updateFaceVisibility(),this._updateAxisLinePosition());var n=this._control;e.dispatchAction({type:"grid3DChangeCamera",alpha:n.getAlpha(),beta:n.getBeta(),distance:n.getDistance(),center:n.getCenter(),from:this.uid,grid3DId:t.id})},_updateFaceVisibility:function(){var t=this._control.getCamera(),e=new Ta.Vector3;t.update();for(var n=0;n<this._faces.length/2;n++){for(var i=[],r=0;r<2;r++){var a=this._faces[2*n+r];a.rootNode.getWorldPosition(e),e.transformMat4(t.viewMatrix),i[r]=e.z}var o=i[0]>i[1]?0:1,s=this._faces[2*n+o],l=this._faces[2*n+1-o];s.rootNode.invisible=!0,l.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var t=this._model.coordinateSystem,e=t.getAxis("x"),n=t.getAxis("y"),i=t.getAxis("z"),r=i.getExtentMax(),a=i.getExtentMin(),o=e.getExtentMin(),s=e.getExtentMax(),l=n.getExtentMax(),u=n.getExtentMin(),c=this._axes[0].rootNode,h=this._axes[1].rootNode,d=this._axes[2].rootNode,f=this._faces,p=f[4].rootNode.invisible?u:l,g=f[2].rootNode.invisible?r:a,m=f[0].rootNode.invisible?o:s,v=f[2].rootNode.invisible?r:a,y=f[0].rootNode.invisible?s:o,_=f[4].rootNode.invisible?u:l;c.rotation.identity(),h.rotation.identity(),d.rotation.identity(),f[4].rootNode.invisible&&(this._axes[0].flipped=!0,c.rotation.rotateX(Math.PI)),f[0].rootNode.invisible&&(this._axes[1].flipped=!0,h.rotation.rotateZ(Math.PI)),f[4].rootNode.invisible&&(this._axes[2].flipped=!0,d.rotation.rotateY(Math.PI)),c.position.set(0,g,p),h.position.set(m,v,0),d.position.set(y,0,_),c.update(),h.update(),d.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var t=this._control.getCamera(),e=[new Ta.Vector4,new Ta.Vector4],n=new Ta.Vector4;this.groupGL.getWorldPosition(n),n.w=1,n.transformMat4(t.viewMatrix).transformMat4(t.projectionMatrix),n.x/=n.w,n.y/=n.w,this._axes.forEach((function(i){for(var r=i.axisLineCoords,a=(i.labelsMesh.geometry,0);a<e.length;a++)e[a].setArray(r[a]),e[a].w=1,e[a].transformMat4(i.rootNode.worldTransform).transformMat4(t.viewMatrix).transformMat4(t.projectionMatrix),e[a].x/=e[a].w,e[a].y/=e[a].w;var o,s,l=e[1].x-e[0].x,u=e[1].y-e[0].y,c=(e[1].x+e[0].x)/2,h=(e[1].y+e[0].y)/2;Math.abs(u/l)<.5?(o="center",s=h>n.y?"bottom":"top"):(s="middle",o=c>n.x?"left":"right"),i.setSpriteAlign(o,s,this._api)}),this)},_doShowAxisPointer:function(){this._axisPointerLineMesh.invisible&&(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(t){var e=this._model.coordinateSystem,n=e.dataToPoint(t),i=this._axisPointerLineMesh,r=i.geometry,a=this._model.getModel("axisPointer"),o=this._api.getDevicePixelRatio();function s(t){return Pr.firstNotNull(t.model.get("axisPointer.show"),a.get("show"))}function l(t){var e=t.model.getModel("axisPointer",a),n=e.getModel("lineStyle"),i=Ta.parseColor(n.get("color")),r=Do(n.get("width"),1),o=Do(n.get("opacity"),1);return i[3]*=o,{color:i,lineWidth:r}}r.convertToDynamicArray(!0);for(var u=0;u<this._faces.length;u++){var c=this._faces[u];if(!c.rootNode.invisible){for(var h=c.faceInfo,d=h[3]<0?e.getAxis(h[2]).getExtentMin():e.getAxis(h[2]).getExtentMax(),f=Lo[h[2]],p=0;p<2;p++){var g=h[p],m=h[1-p],v=e.getAxis(g),y=e.getAxis(m);if(s(v)){var _=[0,0,0],b=[0,0,0],x=Lo[g],w=Lo[m];_[x]=b[x]=n[x],_[f]=b[f]=d,_[w]=y.getExtentMin(),b[w]=y.getExtentMax();var O=l(v);r.addLine(_,b,O.color,O.lineWidth*o)}}if(s(e.getAxis(h[2]))){_=n.slice(),b=n.slice();b[f]=d;O=l(e.getAxis(h[2]));r.addLine(_,b,O.color,O.lineWidth*o)}}}r.convertToTypedArray(),this._updateAxisPointerLabelsMesh(t),this._api.getZr().refresh()},_updateAxisPointerLabelsMesh:function(t){var e=this._model,n=this._axisPointerLabelsMesh,i=this._axisPointerLabelsSurface,r=e.coordinateSystem,o=e.getModel("axisPointer");n.geometry.convertToDynamicArray(!0),i.clear();var s={x:"y",y:"x",z:"y"};this._axes.forEach((function(e,l){var u=r.getAxis(e.dim),c=u.model,h=c.getModel("axisPointer",o),d=h.getModel("label"),f=h.get("lineStyle.color");if(d.get("show")&&h.get("show")){var p=t[l],g=d.get("formatter"),m=u.scale.getLabel({value:p});if(null!=g)m=g(m,t);else if("interval"===u.scale.type||"log"===u.scale.type){var v=a["p"].getPrecisionSafe(u.scale.getTicks()[0]);m=p.toFixed(v+2)}var y=d.get("color"),_=new a["l"].Text({style:Object(Xa["c"])(d,{text:m,fill:y||f,align:"left",verticalAlign:"top"})}),b=i.add(_),x=_.getBoundingRect(),w=this._api.getDevicePixelRatio(),O=e.rootNode.position.toArray(),S=Lo[s[e.dim]];O[S]+=(e.flipped?-1:1)*d.get("margin"),O[Lo[e.dim]]=u.dataToCoord(t[l]),n.geometry.addSprite(O,[x.width*w,x.height*w],b,e.textAlign,e.textVerticalAlign)}}),this),i.getZr().refreshImmediately(),n.material.set("uvScale",i.getCoordsScale()),n.geometry.convertToTypedArray()},dispose:function(){this.groupGL.removeAll(),this._control.dispose(),this._axisLabelSurface.dispose(),this._axisPointerLabelsSurface.dispose()}}),jo=n("cf7e");function Po(t){jo["a"].call(this,t),this.type="cartesian3D",this.dimensions=["x","y","z"],this.size=[0,0,0]}Po.prototype={constructor:Po,model:null,containPoint:function(t){return this.getAxis("x").contain(t[0])&&this.getAxis("y").contain(t[2])&&this.getAxis("z").contain(t[1])},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])&&this.getAxis("z").containData(t[2])},dataToPoint:function(t,e,n){return e=e||[],e[0]=this.getAxis("x").dataToCoord(t[0],n),e[2]=this.getAxis("y").dataToCoord(t[1],n),e[1]=this.getAxis("z").dataToCoord(t[2],n),e},pointToData:function(t,e,n){return e=e||[],e[0]=this.getAxis("x").coordToData(t[0],n),e[1]=this.getAxis("y").coordToData(t[2],n),e[2]=this.getAxis("z").coordToData(t[1],n),e}},a["w"].inherits(Po,jo["a"]);var No=Po;function Ro(t,e,n){a["a"].call(this,t,e,n)}Ro.prototype={constructor:Ro,getExtentMin:function(){var t=this._extent;return Math.min(t[0],t[1])},getExtentMax:function(){var t=this._extent;return Math.max(t[0],t[1])},calculateCategoryInterval:function(){return Math.floor(this.scale.count()/8)}},a["w"].inherits(Ro,a["a"]);var ko=Ro,Bo=n("f934"),zo=function(){this._pool={},this._allocatedTextures=[]};zo.prototype={constructor:zo,get:function(t){var e=Go(t);this._pool.hasOwnProperty(e)||(this._pool[e]=[]);var n=this._pool[e];if(!n.length){var i=new sn(t);return this._allocatedTextures.push(i),i}return n.pop()},put:function(t){var e=Go(t);this._pool.hasOwnProperty(e)||(this._pool[e]=[]);var n=this._pool[e];n.push(t)},clear:function(t){for(var e=0;e<this._allocatedTextures.length;e++)this._allocatedTextures[e].dispose(t);this._pool={},this._allocatedTextures=[]}};var Vo={width:512,height:512,type:C.UNSIGNED_BYTE,format:C.RGBA,wrapS:C.CLAMP_TO_EDGE,wrapT:C.CLAMP_TO_EDGE,minFilter:C.LINEAR_MIPMAP_LINEAR,magFilter:C.LINEAR,useMipmap:!0,anisotropic:1,flipY:!0,unpackAlignment:4,premultiplyAlpha:!1},Fo=Object.keys(Vo);function Go(t){x.defaultsWithPropList(t,Vo,Fo),Ho(t);for(var e="",n=0;n<Fo.length;n++){var i=Fo[n],r=t[i].toString();e+=r}return e}function Ho(t){var e=Uo(t.width,t.height);t.format===C.DEPTH_COMPONENT&&(t.useMipmap=!1),e&&t.useMipmap||(t.minFilter==C.NEAREST_MIPMAP_NEAREST||t.minFilter==C.NEAREST_MIPMAP_LINEAR?t.minFilter=C.NEAREST:t.minFilter!=C.LINEAR_MIPMAP_LINEAR&&t.minFilter!=C.LINEAR_MIPMAP_NEAREST||(t.minFilter=C.LINEAR)),e||(t.wrapS=C.CLAMP_TO_EDGE,t.wrapT=C.CLAMP_TO_EDGE)}function Uo(t,e){return 0===(t&t-1)&&0===(e&e-1)}var Wo=zo,Xo="@export clay.sm.depth.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\nuniform vec2 uvRepeat = vec2(1.0, 1.0);\nuniform vec2 uvOffset = vec2(0.0, 0.0);\n@import clay.chunk.skinning_header\n@import clay.chunk.instancing_header\nvarying vec4 v_ViewPosition;\nvarying vec2 v_Texcoord;\nvoid main(){\n vec4 P = vec4(position, 1.0);\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n P = skinMatrixWS * P;\n#endif\n#ifdef INSTANCING\n @import clay.chunk.instancing_matrix\n P = instanceMat * P;\n#endif\n v_ViewPosition = worldViewProjection * P;\n gl_Position = v_ViewPosition;\n v_Texcoord = texcoord * uvRepeat + uvOffset;\n}\n@end\n@export clay.sm.depth.fragment\nvarying vec4 v_ViewPosition;\nvarying vec2 v_Texcoord;\nuniform float bias : 0.001;\nuniform float slopeScale : 1.0;\nuniform sampler2D alphaMap;\nuniform float alphaCutoff: 0.0;\n@import clay.util.encode_float\nvoid main(){\n float depth = v_ViewPosition.z / v_ViewPosition.w;\n if (alphaCutoff > 0.0) {\n if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) {\n discard;\n }\n }\n#ifdef USE_VSM\n depth = depth * 0.5 + 0.5;\n float moment1 = depth;\n float moment2 = depth * depth;\n #ifdef SUPPORT_STANDARD_DERIVATIVES\n float dx = dFdx(depth);\n float dy = dFdy(depth);\n moment2 += 0.25*(dx*dx+dy*dy);\n #endif\n gl_FragColor = vec4(moment1, moment2, 0.0, 1.0);\n#else\n #ifdef SUPPORT_STANDARD_DERIVATIVES\n float dx = dFdx(depth);\n float dy = dFdy(depth);\n depth += sqrt(dx*dx + dy*dy) * slopeScale + bias;\n #else\n depth += bias;\n #endif\n gl_FragColor = encodeFloat(depth * 0.5 + 0.5);\n#endif\n}\n@end\n@export clay.sm.debug_depth\nuniform sampler2D depthMap;\nvarying vec2 v_Texcoord;\n@import clay.util.decode_float\nvoid main() {\n vec4 tex = texture2D(depthMap, v_Texcoord);\n#ifdef USE_VSM\n gl_FragColor = vec4(tex.rgb, 1.0);\n#else\n float depth = decodeFloat(tex);\n gl_FragColor = vec4(depth, depth, depth, 1.0);\n#endif\n}\n@end\n@export clay.sm.distance.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform mat4 world : WORLD;\nattribute vec3 position : POSITION;\n@import clay.chunk.skinning_header\nvarying vec3 v_WorldPosition;\nvoid main (){\n vec4 P = vec4(position, 1.0);\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n P = skinMatrixWS * P;\n#endif\n#ifdef INSTANCING\n @import clay.chunk.instancing_matrix\n P = instanceMat * P;\n#endif\n gl_Position = worldViewProjection * P;\n v_WorldPosition = (world * P).xyz;\n}\n@end\n@export clay.sm.distance.fragment\nuniform vec3 lightPosition;\nuniform float range : 100;\nvarying vec3 v_WorldPosition;\n@import clay.util.encode_float\nvoid main(){\n float dist = distance(lightPosition, v_WorldPosition);\n#ifdef USE_VSM\n gl_FragColor = vec4(dist, dist * dist, 0.0, 0.0);\n#else\n dist = dist / range;\n gl_FragColor = encodeFloat(dist);\n#endif\n}\n@end\n@export clay.plugin.shadow_map_common\n@import clay.util.decode_float\nfloat tapShadowMap(sampler2D map, vec2 uv, float z){\n vec4 tex = texture2D(map, uv);\n return step(z, decodeFloat(tex) * 2.0 - 1.0);\n}\nfloat pcf(sampler2D map, vec2 uv, float z, float textureSize, vec2 scale) {\n float shadowContrib = tapShadowMap(map, uv, z);\n vec2 offset = vec2(1.0 / textureSize) * scale;\n#ifdef PCF_KERNEL_SIZE\n for (int _idx_ = 0; _idx_ < PCF_KERNEL_SIZE; _idx_++) {{\n shadowContrib += tapShadowMap(map, uv + offset * pcfKernel[_idx_], z);\n }}\n return shadowContrib / float(PCF_KERNEL_SIZE + 1);\n#else\n shadowContrib += tapShadowMap(map, uv+vec2(offset.x, 0.0), z);\n shadowContrib += tapShadowMap(map, uv+vec2(offset.x, offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(0.0, offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, 0.0), z);\n shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, -offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(offset.x, -offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(0.0, -offset.y), z);\n return shadowContrib / 9.0;\n#endif\n}\nfloat pcf(sampler2D map, vec2 uv, float z, float textureSize) {\n return pcf(map, uv, z, textureSize, vec2(1.0));\n}\nfloat chebyshevUpperBound(vec2 moments, float z){\n float p = 0.0;\n z = z * 0.5 + 0.5;\n if (z <= moments.x) {\n p = 1.0;\n }\n float variance = moments.y - moments.x * moments.x;\n variance = max(variance, 0.0000001);\n float mD = moments.x - z;\n float pMax = variance / (variance + mD * mD);\n pMax = clamp((pMax-0.4)/(1.0-0.4), 0.0, 1.0);\n return max(p, pMax);\n}\nfloat computeShadowContrib(\n sampler2D map, mat4 lightVPM, vec3 position, float textureSize, vec2 scale, vec2 offset\n) {\n vec4 posInLightSpace = lightVPM * vec4(position, 1.0);\n posInLightSpace.xyz /= posInLightSpace.w;\n float z = posInLightSpace.z;\n if(all(greaterThan(posInLightSpace.xyz, vec3(-0.99, -0.99, -1.0))) &&\n all(lessThan(posInLightSpace.xyz, vec3(0.99, 0.99, 1.0)))){\n vec2 uv = (posInLightSpace.xy+1.0) / 2.0;\n #ifdef USE_VSM\n vec2 moments = texture2D(map, uv * scale + offset).xy;\n return chebyshevUpperBound(moments, z);\n #else\n return pcf(map, uv * scale + offset, z, textureSize, scale);\n #endif\n }\n return 1.0;\n}\nfloat computeShadowContrib(sampler2D map, mat4 lightVPM, vec3 position, float textureSize) {\n return computeShadowContrib(map, lightVPM, position, textureSize, vec2(1.0), vec2(0.0));\n}\nfloat computeShadowContribOmni(samplerCube map, vec3 direction, float range)\n{\n float dist = length(direction);\n vec4 shadowTex = textureCube(map, direction);\n#ifdef USE_VSM\n vec2 moments = shadowTex.xy;\n float variance = moments.y - moments.x * moments.x;\n float mD = moments.x - dist;\n float p = variance / (variance + mD * mD);\n if(moments.x + 0.001 < dist){\n return clamp(p, 0.0, 1.0);\n }else{\n return 1.0;\n }\n#else\n return step(dist, (decodeFloat(shadowTex) + 0.0002) * range);\n#endif\n}\n@end\n@export clay.plugin.compute_shadow_map\n#if defined(SPOT_LIGHT_SHADOWMAP_COUNT) || defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) || defined(POINT_LIGHT_SHADOWMAP_COUNT)\n#ifdef SPOT_LIGHT_SHADOWMAP_COUNT\nuniform sampler2D spotLightShadowMaps[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform mat4 spotLightMatrices[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform float spotLightShadowMapSizes[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\n#endif\n#ifdef DIRECTIONAL_LIGHT_SHADOWMAP_COUNT\n#if defined(SHADOW_CASCADE)\nuniform sampler2D directionalLightShadowMaps[1]:unconfigurable;\nuniform mat4 directionalLightMatrices[SHADOW_CASCADE]:unconfigurable;\nuniform float directionalLightShadowMapSizes[1]:unconfigurable;\nuniform float shadowCascadeClipsNear[SHADOW_CASCADE]:unconfigurable;\nuniform float shadowCascadeClipsFar[SHADOW_CASCADE]:unconfigurable;\n#else\nuniform sampler2D directionalLightShadowMaps[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform mat4 directionalLightMatrices[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform float directionalLightShadowMapSizes[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\n#endif\n#endif\n#ifdef POINT_LIGHT_SHADOWMAP_COUNT\nuniform samplerCube pointLightShadowMaps[POINT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\n#endif\nuniform bool shadowEnabled : true;\n#ifdef PCF_KERNEL_SIZE\nuniform vec2 pcfKernel[PCF_KERNEL_SIZE];\n#endif\n@import clay.plugin.shadow_map_common\n#if defined(SPOT_LIGHT_SHADOWMAP_COUNT)\nvoid computeShadowOfSpotLights(vec3 position, inout float shadowContribs[SPOT_LIGHT_COUNT] ) {\n float shadowContrib;\n for(int _idx_ = 0; _idx_ < SPOT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{\n shadowContrib = computeShadowContrib(\n spotLightShadowMaps[_idx_], spotLightMatrices[_idx_], position,\n spotLightShadowMapSizes[_idx_]\n );\n shadowContribs[_idx_] = shadowContrib;\n }}\n for(int _idx_ = SPOT_LIGHT_SHADOWMAP_COUNT; _idx_ < SPOT_LIGHT_COUNT; _idx_++){{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#endif\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n#ifdef SHADOW_CASCADE\nvoid computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){\n float depth = (2.0 * gl_FragCoord.z - gl_DepthRange.near - gl_DepthRange.far)\n / (gl_DepthRange.far - gl_DepthRange.near);\n float shadowContrib;\n shadowContribs[0] = 1.0;\n for (int _idx_ = 0; _idx_ < SHADOW_CASCADE; _idx_++) {{\n if (\n depth >= shadowCascadeClipsNear[_idx_] &&\n depth <= shadowCascadeClipsFar[_idx_]\n ) {\n shadowContrib = computeShadowContrib(\n directionalLightShadowMaps[0], directionalLightMatrices[_idx_], position,\n directionalLightShadowMapSizes[0],\n vec2(1.0 / float(SHADOW_CASCADE), 1.0),\n vec2(float(_idx_) / float(SHADOW_CASCADE), 0.0)\n );\n shadowContribs[0] = shadowContrib;\n }\n }}\n for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#else\nvoid computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){\n float shadowContrib;\n for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_++) {{\n shadowContrib = computeShadowContrib(\n directionalLightShadowMaps[_idx_], directionalLightMatrices[_idx_], position,\n directionalLightShadowMapSizes[_idx_]\n );\n shadowContribs[_idx_] = shadowContrib;\n }}\n for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#endif\n#endif\n#if defined(POINT_LIGHT_SHADOWMAP_COUNT)\nvoid computeShadowOfPointLights(vec3 position, inout float shadowContribs[POINT_LIGHT_COUNT] ){\n vec3 lightPosition;\n vec3 direction;\n for(int _idx_ = 0; _idx_ < POINT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{\n lightPosition = pointLightPosition[_idx_];\n direction = position - lightPosition;\n shadowContribs[_idx_] = computeShadowContribOmni(pointLightShadowMaps[_idx_], direction, pointLightRange[_idx_]);\n }}\n for(int _idx_ = POINT_LIGHT_SHADOWMAP_COUNT; _idx_ < POINT_LIGHT_COUNT; _idx_++) {{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#endif\n#endif\n@end",Zo=["px","nx","py","ny","pz","nz"];function qo(t,e,n){if("alphaMap"===n)return t.material.get("diffuseMap");if("alphaCutoff"===n){if(t.material.isDefined("fragment","ALPHA_TEST")&&t.material.get("diffuseMap")){var i=t.material.get("alphaCutoff");return i||0}return 0}return"uvRepeat"===n?t.material.get("uvRepeat"):"uvOffset"===n?t.material.get("uvOffset"):e.get(n)}function Yo(t,e){var n=t.material,i=e.material;return n.get("diffuseMap")!==i.get("diffuseMap")||(n.get("alphaCutoff")||0)!==(i.get("alphaCutoff")||0)}Xt["import"](Xo);var Ko=O.extend((function(){return{softShadow:Ko.PCF,shadowBlur:1,lightFrustumBias:"auto",kernelPCF:new Float32Array([1,0,1,1,-1,1,0,1,-1,0,-1,-1,1,-1,0,-1]),precision:"highp",_lastRenderNotCastShadow:!1,_frameBuffer:new pi,_textures:{},_shadowMapNumber:{POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},_depthMaterials:{},_distanceMaterials:{},_receivers:[],_lightsCastShadow:[],_lightCameras:{},_lightMaterials:{},_texturePool:new Wo}}),(function(){this._gaussianPassH=new vr({fragment:Xt.source("clay.compositor.gaussian_blur")}),this._gaussianPassV=new vr({fragment:Xt.source("clay.compositor.gaussian_blur")}),this._gaussianPassH.setUniform("blurSize",this.shadowBlur),this._gaussianPassH.setUniform("blurDir",0),this._gaussianPassV.setUniform("blurSize",this.shadowBlur),this._gaussianPassV.setUniform("blurDir",1),this._outputDepthPass=new vr({fragment:Xt.source("clay.sm.debug_depth")})}),{render:function(t,e,n,i){n||(n=e.getMainCamera()),this.trigger("beforerender",this,t,e,n),this._renderShadowPass(t,e,n,i),this.trigger("afterrender",this,t,e,n)},renderDebug:function(t,e){t.saveClear();var n=t.viewport,i=0,r=0,a=e||n.width/4,o=a;for(var s in this.softShadow===Ko.VSM?this._outputDepthPass.material.define("fragment","USE_VSM"):this._outputDepthPass.material.undefine("fragment","USE_VSM"),this._textures){var l=this._textures[s];t.setViewport(i,r,a*l.width/l.height,o),this._outputDepthPass.setUniform("depthMap",l),this._outputDepthPass.render(t),i+=a*l.width/l.height}t.setViewport(n),t.restoreClear()},_updateReceivers:function(t,e){if(e.receiveShadow?(this._receivers.push(e),e.material.set("shadowEnabled",1),e.material.set("pcfKernel",this.kernelPCF)):e.material.set("shadowEnabled",0),this.softShadow===Ko.VSM)e.material.define("fragment","USE_VSM"),e.material.undefine("fragment","PCF_KERNEL_SIZE");else{e.material.undefine("fragment","USE_VSM");var n=this.kernelPCF;n&&n.length?e.material.define("fragment","PCF_KERNEL_SIZE",n.length/2):e.material.undefine("fragment","PCF_KERNEL_SIZE")}},_update:function(t,e){var n=this;e.traverse((function(e){e.isRenderable()&&n._updateReceivers(t,e)}));for(var i=0;i<e.lights.length;i++){var r=e.lights[i];r.castShadow&&!r.invisible&&this._lightsCastShadow.push(r)}},_renderShadowPass:function(t,e,n,i){for(var r in this._shadowMapNumber)this._shadowMapNumber[r]=0;this._lightsCastShadow.length=0,this._receivers.length=0;var a=t.gl;if(i||e.update(),n&&n.update(),e.updateLights(),this._update(t,e),this._lightsCastShadow.length||!this._lastRenderNotCastShadow){this._lastRenderNotCastShadow=0===this._lightsCastShadow,a.enable(a.DEPTH_TEST),a.depthMask(!0),a.disable(a.BLEND),a.clearColor(1,1,1,1);for(var o,s=[],l=[],u=[],c=[],h=[],d=[],f=0;f<this._lightsCastShadow.length;f++){var p=this._lightsCastShadow[f];if("DIRECTIONAL_LIGHT"===p.type){if(o){console.warn("Only one direectional light supported with shadow cascade");continue}if(p.shadowCascade>4){console.warn("Support at most 4 cascade");continue}p.shadowCascade>1&&(o=p),this.renderDirectionalLightShadow(t,e,n,p,h,c,u)}else"SPOT_LIGHT"===p.type?this.renderSpotLightShadow(t,e,p,l,s):"POINT_LIGHT"===p.type&&this.renderPointLightShadow(t,e,p,d);this._shadowMapNumber[p.type]++}for(var g in this._shadowMapNumber){var m=this._shadowMapNumber[g],v=g+"_SHADOWMAP_COUNT";for(f=0;f<this._receivers.length;f++){var y=this._receivers[f],_=y.material;_.fragmentDefines[v]!==m&&(m>0?_.define("fragment",v,m):_.isDefined("fragment",v)&&_.undefine("fragment",v))}}for(f=0;f<this._receivers.length;f++){y=this._receivers[f],_=y.material;o?_.define("fragment","SHADOW_CASCADE",o.shadowCascade):_.undefine("fragment","SHADOW_CASCADE")}var b=e.shadowUniforms;if(u.length>0){var x=u.map(T);if(b.directionalLightShadowMaps={value:u,type:"tv"},b.directionalLightMatrices={value:c,type:"m4v"},b.directionalLightShadowMapSizes={value:x,type:"1fv"},o){var w=h.slice(),O=h.slice();w.pop(),O.shift(),w.reverse(),O.reverse(),c.reverse(),b.shadowCascadeClipsNear={value:w,type:"1fv"},b.shadowCascadeClipsFar={value:O,type:"1fv"}}}if(s.length>0){var S=s.map(T);b=e.shadowUniforms;b.spotLightShadowMaps={value:s,type:"tv"},b.spotLightMatrices={value:l,type:"m4v"},b.spotLightShadowMapSizes={value:S,type:"1fv"}}d.length>0&&(b.pointLightShadowMaps={value:d,type:"tv"})}function T(t){return t.height}},renderDirectionalLightShadow:function(){var t=new Bn,e=new Le,n=new ze,i=new Le,r=new Le,a=new Le,o=new Le;return function(s,l,u,c,h,d,f){var p=this._getDepthMaterial(c),g={getMaterial:function(t){return t.shadowDepthMaterial||p},isMaterialChanged:Yo,getUniform:qo,ifRender:function(t){return t.castShadow},sortCompare:ce.opaqueSortCompare};if(!l.viewBoundingBoxLastFrame.isFinite()){var m=l.getBoundingBox();l.viewBoundingBoxLastFrame.copy(m).applyTransform(u.viewMatrix)}var v=Math.min(-l.viewBoundingBoxLastFrame.min.z,u.far),y=Math.max(-l.viewBoundingBoxLastFrame.max.z,u.near),_=this._getDirectionalLightCamera(c,l,u),b=a.array;o.copy(_.projectionMatrix),Yt.invert(r.array,_.worldTransform.array),Yt.multiply(r.array,r.array,u.worldTransform.array),Yt.multiply(b,o.array,r.array);for(var x=[],w=u instanceof ni,O=(u.near+u.far)/(u.near-u.far),S=2*u.near*u.far/(u.near-u.far),T=0;T<=c.shadowCascade;T++){var M=y*Math.pow(v/y,T/c.shadowCascade),A=y+(v-y)*T/c.shadowCascade,C=M*c.cascadeSplitLogFactor+A*(1-c.cascadeSplitLogFactor);x.push(C),h.push(-(-C*O+S)/-C)}var I=this._getTexture(c,c.shadowCascade);f.push(I);var D=s.viewport,L=s.gl;this._frameBuffer.attach(I),this._frameBuffer.bind(s),L.clear(L.COLOR_BUFFER_BIT|L.DEPTH_BUFFER_BIT);for(T=0;T<c.shadowCascade;T++){var E=x[T],j=x[T+1];w?Yt.perspective(e.array,u.fov/180*Math.PI,u.aspect,E,j):Yt.ortho(e.array,u.left,u.right,u.bottom,u.top,E,j),t.setFromProjection(e),t.getTransformedBoundingBox(n,r),n.applyProjection(o);var P=n.min.array,N=n.max.array;P[0]=Math.max(P[0],-1),P[1]=Math.max(P[1],-1),N[0]=Math.min(N[0],1),N[1]=Math.min(N[1],1),i.ortho(P[0],N[0],P[1],N[1],1,-1),_.projectionMatrix.multiplyLeft(i);var R=c.shadowResolution||512;s.setViewport((c.shadowCascade-T-1)*R,0,R,R,1);var k=l.updateRenderList(_);s.renderPass(k.opaque,_,g),this.softShadow===Ko.VSM&&this._gaussianFilter(s,I,I.width);var B=new Le;B.copy(_.viewMatrix).multiplyLeft(_.projectionMatrix),d.push(B.array),_.projectionMatrix.copy(o)}this._frameBuffer.unbind(s),s.setViewport(D)}}(),renderSpotLightShadow:function(t,e,n,i,r){var a=this._getTexture(n),o=this._getSpotLightCamera(n),s=t.gl;this._frameBuffer.attach(a),this._frameBuffer.bind(t),s.clear(s.COLOR_BUFFER_BIT|s.DEPTH_BUFFER_BIT);var l=this._getDepthMaterial(n),u={getMaterial:function(t){return t.shadowDepthMaterial||l},isMaterialChanged:Yo,getUniform:qo,ifRender:function(t){return t.castShadow},sortCompare:ce.opaqueSortCompare},c=e.updateRenderList(o);t.renderPass(c.opaque,o,u),this._frameBuffer.unbind(t),this.softShadow===Ko.VSM&&this._gaussianFilter(t,a,a.width);var h=new Le;h.copy(o.worldTransform).invert().multiplyLeft(o.projectionMatrix),r.push(a),i.push(h.array)},renderPointLightShadow:function(t,e,n,i){var r=this._getTexture(n),a=t.gl;i.push(r);var o=this._getDepthMaterial(n),s={getMaterial:function(t){return t.shadowDepthMaterial||o},getUniform:qo,sortCompare:ce.opaqueSortCompare},l={px:[],py:[],pz:[],nx:[],ny:[],nz:[]},u=new ze,c=n.getWorldPosition().array,h=new ze,d=n.range;h.min.setArray(c),h.max.setArray(c);var f=new ye(d,d,d);h.max.add(f),h.min.sub(f);var p={px:!1,py:!1,pz:!1,nx:!1,ny:!1,nz:!1};e.traverse((function(t){if(t.isRenderable()&&t.castShadow){var e=t.geometry;if(!e.boundingBox){for(var n=0;n<Zo.length;n++)l[Zo[n]].push(t);return}if(u.transformFrom(e.boundingBox,t.worldTransform),!u.intersectBoundingBox(h))return;u.updateVertices();for(n=0;n<Zo.length;n++)p[Zo[n]]=!1;for(n=0;n<8;n++){var i=u.vertices[n],r=i[0]-c[0],a=i[1]-c[1],o=i[2]-c[2],s=Math.abs(r),d=Math.abs(a),f=Math.abs(o);s>d?s>f?p[r>0?"px":"nx"]=!0:p[o>0?"pz":"nz"]=!0:d>f?p[a>0?"py":"ny"]=!0:p[o>0?"pz":"nz"]=!0}for(n=0;n<Zo.length;n++)p[Zo[n]]&&l[Zo[n]].push(t)}}));for(var g=0;g<6;g++){var m=Zo[g],v=this._getPointLightCamera(n,m);this._frameBuffer.attach(r,a.COLOR_ATTACHMENT0,a.TEXTURE_CUBE_MAP_POSITIVE_X+g),this._frameBuffer.bind(t),a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),t.renderPass(l[m],v,s)}this._frameBuffer.unbind(t)},_getDepthMaterial:function(t){var e=this._lightMaterials[t.__uid__],n="POINT_LIGHT"===t.type;if(!e){var i=n?"clay.sm.distance.":"clay.sm.depth.";e=new nt({precision:this.precision,shader:new Xt(Xt.source(i+"vertex"),Xt.source(i+"fragment"))}),this._lightMaterials[t.__uid__]=e}return null!=t.shadowSlopeScale&&e.setUniform("slopeScale",t.shadowSlopeScale),null!=t.shadowBias&&e.setUniform("bias",t.shadowBias),this.softShadow===Ko.VSM?e.define("fragment","USE_VSM"):e.undefine("fragment","USE_VSM"),n&&(e.set("lightPosition",t.getWorldPosition().array),e.set("range",t.range)),e},_gaussianFilter:function(t,e,n){var i={width:n,height:n,type:Qe.FLOAT},r=this._texturePool.get(i);this._frameBuffer.attach(r),this._frameBuffer.bind(t),this._gaussianPassH.setUniform("texture",e),this._gaussianPassH.setUniform("textureWidth",n),this._gaussianPassH.render(t),this._frameBuffer.attach(e),this._gaussianPassV.setUniform("texture",r),this._gaussianPassV.setUniform("textureHeight",n),this._gaussianPassV.render(t),this._frameBuffer.unbind(t),this._texturePool.put(r)},_getTexture:function(t,e){var n=t.__uid__,i=this._textures[n],r=t.shadowResolution||512;return e=e||1,i||(i="POINT_LIGHT"===t.type?new ti:new sn,i.width=r*e,i.height=r,this.softShadow===Ko.VSM?(i.type=Qe.FLOAT,i.anisotropic=4):(i.minFilter=C.NEAREST,i.magFilter=C.NEAREST,i.useMipmap=!1),this._textures[n]=i),i},_getPointLightCamera:function(t,e){this._lightCameras.point||(this._lightCameras.point={px:new ni,nx:new ni,py:new ni,ny:new ni,pz:new ni,nz:new ni});var n=this._lightCameras.point[e];switch(n.far=t.range,n.fov=90,n.position.set(0,0,0),e){case"px":n.lookAt(ye.POSITIVE_X,ye.NEGATIVE_Y);break;case"nx":n.lookAt(ye.NEGATIVE_X,ye.NEGATIVE_Y);break;case"py":n.lookAt(ye.POSITIVE_Y,ye.POSITIVE_Z);break;case"ny":n.lookAt(ye.NEGATIVE_Y,ye.NEGATIVE_Z);break;case"pz":n.lookAt(ye.POSITIVE_Z,ye.NEGATIVE_Y);break;case"nz":n.lookAt(ye.NEGATIVE_Z,ye.NEGATIVE_Y);break}return t.getWorldPosition(n.position),n.update(),n},_getDirectionalLightCamera:function(){var t=new Le,e=new ze,n=new ze;return function(i,r,a){this._lightCameras.directional||(this._lightCameras.directional=new hr);var o=this._lightCameras.directional;e.copy(r.viewBoundingBoxLastFrame),e.intersection(a.frustum.boundingBox),o.position.copy(e.min).add(e.max).scale(.5).transformMat4(a.worldTransform),o.rotation.copy(i.rotation),o.scale.copy(i.scale),o.updateWorldTransform(),Le.invert(t,o.worldTransform),Le.multiply(t,t,a.worldTransform),n.copy(e).applyTransform(t);var s=n.min.array,l=n.max.array;return o.position.set((s[0]+l[0])/2,(s[1]+l[1])/2,l[2]).transformMat4(o.worldTransform),o.near=0,o.far=-s[2]+l[2],isNaN(this.lightFrustumBias)?o.far*=4:o.far+=this.lightFrustumBias,o.left=s[0],o.right=l[0],o.top=l[1],o.bottom=s[1],o.update(!0),o}}(),_getSpotLightCamera:function(t){this._lightCameras.spot||(this._lightCameras.spot=new ni);var e=this._lightCameras.spot;return e.fov=2*t.penumbraAngle,e.far=t.range,e.worldTransform.copy(t.worldTransform),e.updateProjectionMatrix(),Yt.invert(e.viewMatrix.array,e.worldTransform.array),e},dispose:function(t){var e=t.gl||t;for(var n in this._frameBuffer&&this._frameBuffer.dispose(e),this._textures)this._textures[n].dispose(e);this._texturePool.clear(t.gl),this._depthMaterials={},this._distanceMaterials={},this._textures={},this._lightCameras={},this._shadowMapNumber={POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},this._meshMaterials={};for(var i=0;i<this._receivers.length;i++){var r=this._receivers[i];if(r.material){var a=r.material;a.undefine("fragment","POINT_LIGHT_SHADOW_COUNT"),a.undefine("fragment","DIRECTIONAL_LIGHT_SHADOW_COUNT"),a.undefine("fragment","AMBIENT_LIGHT_SHADOW_COUNT"),a.set("shadowEnabled",0)}}this._receivers=[],this._lightsCastShadow=[]}});Ko.VSM=1,Ko.PCF=2;var Qo=Ko,Jo=O.extend((function(){return{name:"",inputLinks:{},outputLinks:{},_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}}),{updateParameter:function(t,e){var n,i,r=this.outputs[t],a=r.parameters,o=r._parametersCopy;if(o||(o=r._parametersCopy={}),a)for(var s in a)"width"!==s&&"height"!==s&&(o[s]=a[s]);return n=a.width instanceof Function?a.width.call(this,e):a.width,i=a.height instanceof Function?a.height.call(this,e):a.height,o.width===n&&o.height===i||this._outputTextures[t]&&this._outputTextures[t].dispose(e.gl),o.width=n,o.height=i,o},setParameter:function(t,e){},getParameter:function(t){},setParameters:function(t){for(var e in t)this.setParameter(e,t[e])},render:function(){},getOutput:function(t,e){if(null==e)return e=t,this._outputTextures[e];var n=this.outputs[e];return n?this._rendered?n.outputLastFrame?this._prevOutputTextures[e]:this._outputTextures[e]:this._rendering?(this._prevOutputTextures[e]||(this._prevOutputTextures[e]=this._compositor.allocateTexture(n.parameters||{})),this._prevOutputTextures[e]):(this.render(t),this._outputTextures[e]):void 0},removeReference:function(t){if(this._outputReferences[t]--,0===this._outputReferences[t]){var e=this.outputs[t];e.keepLastFrame?(this._prevOutputTextures[t]&&this._compositor.releaseTexture(this._prevOutputTextures[t]),this._prevOutputTextures[t]=this._outputTextures[t]):this._compositor.releaseTexture(this._outputTextures[t])}},link:function(t,e,n){this.inputLinks[t]={node:e,pin:n},e.outputLinks[n]||(e.outputLinks[n]=[]),e.outputLinks[n].push({node:this,pin:t}),this.pass.material.enableTexture(t)},clear:function(){this.inputLinks={},this.outputLinks={}},updateReference:function(t){if(!this._rendering){for(var e in this._rendering=!0,this.inputLinks){var n=this.inputLinks[e];n.node.updateReference(n.pin)}this._rendering=!1}t&&this._outputReferences[t]++},beforeFrame:function(){for(var t in this._rendered=!1,this.outputLinks)this._outputReferences[t]=0},afterFrame:function(){for(var t in this.outputLinks)if(this._outputReferences[t]>0){var e=this.outputs[t];e.keepLastFrame?(this._prevOutputTextures[t]&&this._compositor.releaseTexture(this._prevOutputTextures[t]),this._prevOutputTextures[t]=this._outputTextures[t]):this._compositor.releaseTexture(this._outputTextures[t])}}}),$o=Jo,ts=O.extend((function(){return{nodes:[]}}),{dirty:function(){this._dirty=!0},addNode:function(t){this.nodes.indexOf(t)>=0||(this.nodes.push(t),this._dirty=!0)},removeNode:function(t){"string"===typeof t&&(t=this.getNodeByName(t));var e=this.nodes.indexOf(t);e>=0&&(this.nodes.splice(e,1),this._dirty=!0)},getNodeByName:function(t){for(var e=0;e<this.nodes.length;e++)if(this.nodes[e].name===t)return this.nodes[e]},update:function(){for(var t=0;t<this.nodes.length;t++)this.nodes[t].clear();for(t=0;t<this.nodes.length;t++){var e=this.nodes[t];if(e.inputs)for(var n in e.inputs)if(e.inputs[n])if(!e.pass||e.pass.material.isUniformEnabled(n)){var i=e.inputs[n],r=this.findPin(i);r?e.link(n,r.node,r.pin):"string"===typeof i?console.warn("Node "+i+" not exist"):console.warn("Pin of "+i.node+"."+i.pin+" not exist")}else console.warn("Pin "+e.name+"."+n+" not used.")}},findPin:function(t){var e;if(("string"===typeof t||t instanceof $o)&&(t={node:t}),"string"===typeof t.node)for(var n=0;n<this.nodes.length;n++){var i=this.nodes[n];i.name===t.node&&(e=i)}else e=t.node;if(e){var r=t.pin;if(r||e.outputs&&(r=Object.keys(e.outputs)[0]),e.outputs[r])return{node:e,pin:r}}}}),es=ts,ns=es.extend((function(){return{_outputs:[],_texturePool:new Wo,_frameBuffer:new pi({depthBuffer:!1})}}),{addNode:function(t){es.prototype.addNode.call(this,t),t._compositor=this},render:function(t,e){if(this._dirty){this.update(),this._dirty=!1,this._outputs.length=0;for(var n=0;n<this.nodes.length;n++)this.nodes[n].outputs||this._outputs.push(this.nodes[n])}for(n=0;n<this.nodes.length;n++)this.nodes[n].beforeFrame();for(n=0;n<this._outputs.length;n++)this._outputs[n].updateReference();for(n=0;n<this._outputs.length;n++)this._outputs[n].render(t,e);for(n=0;n<this.nodes.length;n++)this.nodes[n].afterFrame()},allocateTexture:function(t){return this._texturePool.get(t)},releaseTexture:function(t){this._texturePool.put(t)},getFrameBuffer:function(){return this._frameBuffer},dispose:function(t){this._texturePool.clear(t)}}),is=ns,rs=$o.extend({name:"scene",scene:null,camera:null,autoUpdateScene:!0,preZ:!1},(function(){this.frameBuffer=new pi}),{render:function(t){this._rendering=!0;var e,n=t.gl;if(this.trigger("beforerender"),this.outputs){var i=this.frameBuffer;for(var r in this.outputs){var a=this.updateParameter(r,t),o=this.outputs[r],s=this._compositor.allocateTexture(a);this._outputTextures[r]=s;var l=o.attachment||n.COLOR_ATTACHMENT0;"string"==typeof l&&(l=n[l]),i.attach(s,l)}i.bind(t);var u=t.getGLExtension("EXT_draw_buffers");if(u){var c=[];for(var l in this.outputs)l=parseInt(l),l>=n.COLOR_ATTACHMENT0&&l<=n.COLOR_ATTACHMENT0+8&&c.push(l);u.drawBuffersEXT(c)}t.saveClear(),t.clearBit=C.DEPTH_BUFFER_BIT|C.COLOR_BUFFER_BIT,e=t.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),t.restoreClear(),i.unbind(t)}else e=t.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ);this.trigger("afterrender",e),this._rendering=!1,this._rendered=!0}}),as=rs,os=$o.extend((function(){return{texture:null,outputs:{color:{}}}}),(function(){}),{getOutput:function(t,e){return this.texture},beforeFrame:function(){},afterFrame:function(){}}),ss=os,ls=$o.extend((function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}}),(function(){var t=new vr({fragment:this.shader});this.pass=t}),{render:function(t,e){this.trigger("beforerender",t),this._rendering=!0;var n=t.gl;for(var i in this.inputLinks){var r=this.inputLinks[i],a=r.node.getOutput(t,r.pin);this.pass.setUniform(i,a)}if(this.outputs){this.pass.outputs={};var o={};for(var s in this.outputs){var l=this.updateParameter(s,t);isNaN(l.width)&&this.updateParameter(s,t);var u=this.outputs[s],c=this._compositor.allocateTexture(l);this._outputTextures[s]=c;var h=u.attachment||n.COLOR_ATTACHMENT0;"string"===typeof h&&(h=n[h]),o[h]=c}for(var h in this._compositor.getFrameBuffer().bind(t),o)this._compositor.getFrameBuffer().attach(o[h],h);this.pass.render(t),this._compositor.getFrameBuffer().updateMipmap(t)}else this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(t),this.pass.render(t,e);for(var i in this.inputLinks){r=this.inputLinks[i];r.node.removeReference(r.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",t)},updateParameter:function(t,e){var n,i,r=this.outputs[t],a=r.parameters,o=r._parametersCopy;if(o||(o=r._parametersCopy={}),a)for(var s in a)"width"!==s&&"height"!==s&&(o[s]=a[s]);return n="function"===typeof a.width?a.width.call(this,e):a.width,i="function"===typeof a.height?a.height.call(this,e):a.height,n=Math.ceil(n),i=Math.ceil(i),o.width===n&&o.height===i||this._outputTextures[t]&&this._outputTextures[t].dispose(e),o.width=n,o.height=i,o},setParameter:function(t,e){this.pass.setUniform(t,e)},getParameter:function(t){return this.pass.getUniform(t)},setParameters:function(t){for(var e in t)this.setParameter(e,t[e])},define:function(t,e){this.pass.material.define("fragment",t,e)},undefine:function(t){this.pass.material.undefine("fragment",t)},removeReference:function(t){if(this._outputReferences[t]--,0===this._outputReferences[t]){var e=this.outputs[t];e.keepLastFrame?(this._prevOutputTextures[t]&&this._compositor.releaseTexture(this._prevOutputTextures[t]),this._prevOutputTextures[t]=this._outputTextures[t]):this._compositor.releaseTexture(this._outputTextures[t])}},clear:function(){$o.prototype.clear.call(this),this.pass.material.disableTexturesAll()}}),us=ls,cs="@export clay.compositor.coloradjust\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float brightness : 0.0;\nuniform float contrast : 1.0;\nuniform float exposure : 0.0;\nuniform float gamma : 1.0;\nuniform float saturation : 1.0;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord);\n vec3 color = clamp(tex.rgb + vec3(brightness), 0.0, 1.0);\n color = clamp( (color-vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0);\n color = clamp( color * pow(2.0, exposure), 0.0, 1.0);\n color = clamp( pow(color, vec3(gamma)), 0.0, 1.0);\n float luminance = dot( color, w );\n color = mix(vec3(luminance), color, saturation);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.brightness\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float brightness : 0.0;\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord);\n vec3 color = tex.rgb + vec3(brightness);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.contrast\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float contrast : 1.0;\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord);\n vec3 color = (tex.rgb-vec3(0.5))*contrast+vec3(0.5);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.exposure\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float exposure : 0.0;\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n vec3 color = tex.rgb * pow(2.0, exposure);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.gamma\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float gamma : 1.0;\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n vec3 color = pow(tex.rgb, vec3(gamma));\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.saturation\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float saturation : 1.0;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n vec3 color = tex.rgb;\n float luminance = dot(color, w);\n color = mix(vec3(luminance), color, saturation);\n gl_FragColor = vec4(color, tex.a);\n}\n@end",hs="@export clay.compositor.kernel.gaussian_9\nfloat gaussianKernel[9];\ngaussianKernel[0] = 0.07;\ngaussianKernel[1] = 0.09;\ngaussianKernel[2] = 0.12;\ngaussianKernel[3] = 0.14;\ngaussianKernel[4] = 0.16;\ngaussianKernel[5] = 0.14;\ngaussianKernel[6] = 0.12;\ngaussianKernel[7] = 0.09;\ngaussianKernel[8] = 0.07;\n@end\n@export clay.compositor.kernel.gaussian_13\nfloat gaussianKernel[13];\ngaussianKernel[0] = 0.02;\ngaussianKernel[1] = 0.03;\ngaussianKernel[2] = 0.06;\ngaussianKernel[3] = 0.08;\ngaussianKernel[4] = 0.11;\ngaussianKernel[5] = 0.13;\ngaussianKernel[6] = 0.14;\ngaussianKernel[7] = 0.13;\ngaussianKernel[8] = 0.11;\ngaussianKernel[9] = 0.08;\ngaussianKernel[10] = 0.06;\ngaussianKernel[11] = 0.03;\ngaussianKernel[12] = 0.02;\n@end\n@export clay.compositor.gaussian_blur\n#define SHADER_NAME gaussian_blur\nuniform sampler2D texture;varying vec2 v_Texcoord;\nuniform float blurSize : 2.0;\nuniform vec2 textureSize : [512.0, 512.0];\nuniform float blurDir : 0.0;\n@import clay.util.rgbm\n@import clay.util.clamp_sample\nvoid main (void)\n{\n @import clay.compositor.kernel.gaussian_9\n vec2 off = blurSize / textureSize;\n off *= vec2(1.0 - blurDir, blurDir);\n vec4 sum = vec4(0.0);\n float weightAll = 0.0;\n for (int i = 0; i < 9; i++) {\n float w = gaussianKernel[i];\n vec4 texel = decodeHDR(clampSample(texture, v_Texcoord + float(i - 4) * off));\n sum += texel * w;\n weightAll += w;\n }\n gl_FragColor = encodeHDR(sum / max(weightAll, 0.01));\n}\n@end\n",ds="@export clay.compositor.hdr.log_lum\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\n@import clay.util.rgbm\nvoid main()\n{\n vec4 tex = decodeHDR(texture2D(texture, v_Texcoord));\n float luminance = dot(tex.rgb, w);\n luminance = log(luminance + 0.001);\n gl_FragColor = encodeHDR(vec4(vec3(luminance), 1.0));\n}\n@end\n@export clay.compositor.hdr.lum_adaption\nvarying vec2 v_Texcoord;\nuniform sampler2D adaptedLum;\nuniform sampler2D currentLum;\nuniform float frameTime : 0.02;\n@import clay.util.rgbm\nvoid main()\n{\n float fAdaptedLum = decodeHDR(texture2D(adaptedLum, vec2(0.5, 0.5))).r;\n float fCurrentLum = exp(encodeHDR(texture2D(currentLum, vec2(0.5, 0.5))).r);\n fAdaptedLum += (fCurrentLum - fAdaptedLum) * (1.0 - pow(0.98, 30.0 * frameTime));\n gl_FragColor = encodeHDR(vec4(vec3(fAdaptedLum), 1.0));\n}\n@end\n@export clay.compositor.lum\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord );\n float luminance = dot(tex.rgb, w);\n gl_FragColor = vec4(vec3(luminance), 1.0);\n}\n@end",fs="\n@export clay.compositor.lut\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform sampler2D lookup;\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n float blueColor = tex.b * 63.0;\n vec2 quad1;\n quad1.y = floor(floor(blueColor) / 8.0);\n quad1.x = floor(blueColor) - (quad1.y * 8.0);\n vec2 quad2;\n quad2.y = floor(ceil(blueColor) / 8.0);\n quad2.x = ceil(blueColor) - (quad2.y * 8.0);\n vec2 texPos1;\n texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r);\n texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g);\n vec2 texPos2;\n texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r);\n texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g);\n vec4 newColor1 = texture2D(lookup, texPos1);\n vec4 newColor2 = texture2D(lookup, texPos2);\n vec4 newColor = mix(newColor1, newColor2, fract(blueColor));\n gl_FragColor = vec4(newColor.rgb, tex.w);\n}\n@end",ps="@export clay.compositor.vignette\n#define OUTPUT_ALPHA\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float darkness: 1;\nuniform float offset: 1;\n@import clay.util.rgbm\nvoid main()\n{\n vec4 texel = decodeHDR(texture2D(texture, v_Texcoord));\n gl_FragColor.rgb = texel.rgb;\n vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(offset);\n gl_FragColor = encodeHDR(vec4(mix(texel.rgb, vec3(1.0 - darkness), dot(uv, uv)), texel.a));\n}\n@end",gs="@export clay.compositor.output\n#define OUTPUT_ALPHA\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\n@import clay.util.rgbm\nvoid main()\n{\n vec4 tex = decodeHDR(texture2D(texture, v_Texcoord));\n gl_FragColor.rgb = tex.rgb;\n#ifdef OUTPUT_ALPHA\n gl_FragColor.a = tex.a;\n#else\n gl_FragColor.a = 1.0;\n#endif\n gl_FragColor = encodeHDR(gl_FragColor);\n#ifdef PREMULTIPLY_ALPHA\n gl_FragColor.rgb *= gl_FragColor.a;\n#endif\n}\n@end",ms="@export clay.compositor.bright\nuniform sampler2D texture;\nuniform float threshold : 1;\nuniform float scale : 1.0;\nuniform vec2 textureSize: [512, 512];\nvarying vec2 v_Texcoord;\nconst vec3 lumWeight = vec3(0.2125, 0.7154, 0.0721);\n@import clay.util.rgbm\nvec4 median(vec4 a, vec4 b, vec4 c)\n{\n return a + b + c - min(min(a, b), c) - max(max(a, b), c);\n}\nvoid main()\n{\n vec4 texel = decodeHDR(texture2D(texture, v_Texcoord));\n#ifdef ANTI_FLICKER\n vec3 d = 1.0 / textureSize.xyx * vec3(1.0, 1.0, 0.0);\n vec4 s1 = decodeHDR(texture2D(texture, v_Texcoord - d.xz));\n vec4 s2 = decodeHDR(texture2D(texture, v_Texcoord + d.xz));\n vec4 s3 = decodeHDR(texture2D(texture, v_Texcoord - d.zy));\n vec4 s4 = decodeHDR(texture2D(texture, v_Texcoord + d.zy));\n texel = median(median(texel, s1, s2), s3, s4);\n#endif\n float lum = dot(texel.rgb , lumWeight);\n vec4 color;\n if (lum > threshold && texel.a > 0.0)\n {\n color = vec4(texel.rgb * scale, texel.a * scale);\n }\n else\n {\n color = vec4(0.0);\n }\n gl_FragColor = encodeHDR(color);\n}\n@end\n",vs="@export clay.compositor.downsample\nuniform sampler2D texture;\nuniform vec2 textureSize : [512, 512];\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\nfloat brightness(vec3 c)\n{\n return max(max(c.r, c.g), c.b);\n}\n@import clay.util.clamp_sample\nvoid main()\n{\n vec4 d = vec4(-1.0, -1.0, 1.0, 1.0) / textureSize.xyxy;\n#ifdef ANTI_FLICKER\n vec3 s1 = decodeHDR(clampSample(texture, v_Texcoord + d.xy)).rgb;\n vec3 s2 = decodeHDR(clampSample(texture, v_Texcoord + d.zy)).rgb;\n vec3 s3 = decodeHDR(clampSample(texture, v_Texcoord + d.xw)).rgb;\n vec3 s4 = decodeHDR(clampSample(texture, v_Texcoord + d.zw)).rgb;\n float s1w = 1.0 / (brightness(s1) + 1.0);\n float s2w = 1.0 / (brightness(s2) + 1.0);\n float s3w = 1.0 / (brightness(s3) + 1.0);\n float s4w = 1.0 / (brightness(s4) + 1.0);\n float oneDivideSum = 1.0 / (s1w + s2w + s3w + s4w);\n vec4 color = vec4(\n (s1 * s1w + s2 * s2w + s3 * s3w + s4 * s4w) * oneDivideSum,\n 1.0\n );\n#else\n vec4 color = decodeHDR(clampSample(texture, v_Texcoord + d.xy));\n color += decodeHDR(clampSample(texture, v_Texcoord + d.zy));\n color += decodeHDR(clampSample(texture, v_Texcoord + d.xw));\n color += decodeHDR(clampSample(texture, v_Texcoord + d.zw));\n color *= 0.25;\n#endif\n gl_FragColor = encodeHDR(color);\n}\n@end",ys="\n@export clay.compositor.upsample\n#define HIGH_QUALITY\nuniform sampler2D texture;\nuniform vec2 textureSize : [512, 512];\nuniform float sampleScale: 0.5;\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\n@import clay.util.clamp_sample\nvoid main()\n{\n#ifdef HIGH_QUALITY\n vec4 d = vec4(1.0, 1.0, -1.0, 0.0) / textureSize.xyxy * sampleScale;\n vec4 s;\n s = decodeHDR(clampSample(texture, v_Texcoord - d.xy));\n s += decodeHDR(clampSample(texture, v_Texcoord - d.wy)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord - d.zy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord )) * 4.0;\n s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.wy)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord + d.xy));\n gl_FragColor = encodeHDR(s / 16.0);\n#else\n vec4 d = vec4(-1.0, -1.0, +1.0, +1.0) / textureSize.xyxy;\n vec4 s;\n s = decodeHDR(clampSample(texture, v_Texcoord + d.xy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.xw));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zw));\n gl_FragColor = encodeHDR(s / 4.0);\n#endif\n}\n@end",_s="@export clay.compositor.hdr.composite\n#define TONEMAPPING\nuniform sampler2D texture;\n#ifdef BLOOM_ENABLED\nuniform sampler2D bloom;\n#endif\n#ifdef LENSFLARE_ENABLED\nuniform sampler2D lensflare;\nuniform sampler2D lensdirt;\n#endif\n#ifdef LUM_ENABLED\nuniform sampler2D lum;\n#endif\n#ifdef LUT_ENABLED\nuniform sampler2D lut;\n#endif\n#ifdef COLOR_CORRECTION\nuniform float brightness : 0.0;\nuniform float contrast : 1.0;\nuniform float saturation : 1.0;\n#endif\n#ifdef VIGNETTE\nuniform float vignetteDarkness: 1.0;\nuniform float vignetteOffset: 1.0;\n#endif\nuniform float exposure : 1.0;\nuniform float bloomIntensity : 0.25;\nuniform float lensflareIntensity : 1;\nvarying vec2 v_Texcoord;\n@import clay.util.srgb\nvec3 ACESToneMapping(vec3 color)\n{\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\nfloat eyeAdaption(float fLum)\n{\n return mix(0.2, fLum, 0.5);\n}\n#ifdef LUT_ENABLED\nvec3 lutTransform(vec3 color) {\n float blueColor = color.b * 63.0;\n vec2 quad1;\n quad1.y = floor(floor(blueColor) / 8.0);\n quad1.x = floor(blueColor) - (quad1.y * 8.0);\n vec2 quad2;\n quad2.y = floor(ceil(blueColor) / 8.0);\n quad2.x = ceil(blueColor) - (quad2.y * 8.0);\n vec2 texPos1;\n texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);\n texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);\n vec2 texPos2;\n texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);\n texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);\n vec4 newColor1 = texture2D(lut, texPos1);\n vec4 newColor2 = texture2D(lut, texPos2);\n vec4 newColor = mix(newColor1, newColor2, fract(blueColor));\n return newColor.rgb;\n}\n#endif\n@import clay.util.rgbm\nvoid main()\n{\n vec4 texel = vec4(0.0);\n vec4 originalTexel = vec4(0.0);\n#ifdef TEXTURE_ENABLED\n texel = decodeHDR(texture2D(texture, v_Texcoord));\n originalTexel = texel;\n#endif\n#ifdef BLOOM_ENABLED\n vec4 bloomTexel = decodeHDR(texture2D(bloom, v_Texcoord));\n texel.rgb += bloomTexel.rgb * bloomIntensity;\n texel.a += bloomTexel.a * bloomIntensity;\n#endif\n#ifdef LENSFLARE_ENABLED\n texel += decodeHDR(texture2D(lensflare, v_Texcoord)) * texture2D(lensdirt, v_Texcoord) * lensflareIntensity;\n#endif\n texel.a = min(texel.a, 1.0);\n#ifdef LUM_ENABLED\n float fLum = texture2D(lum, vec2(0.5, 0.5)).r;\n float adaptedLumDest = 3.0 / (max(0.1, 1.0 + 10.0*eyeAdaption(fLum)));\n float exposureBias = adaptedLumDest * exposure;\n#else\n float exposureBias = exposure;\n#endif\n#ifdef TONEMAPPING\n texel.rgb *= exposureBias;\n texel.rgb = ACESToneMapping(texel.rgb);\n#endif\n texel = linearTosRGB(texel);\n#ifdef LUT_ENABLED\n texel.rgb = lutTransform(clamp(texel.rgb,vec3(0.0),vec3(1.0)));\n#endif\n#ifdef COLOR_CORRECTION\n texel.rgb = clamp(texel.rgb + vec3(brightness), 0.0, 1.0);\n texel.rgb = clamp((texel.rgb - vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0);\n float lum = dot(texel.rgb, vec3(0.2125, 0.7154, 0.0721));\n texel.rgb = mix(vec3(lum), texel.rgb, saturation);\n#endif\n#ifdef VIGNETTE\n vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(vignetteOffset);\n texel.rgb = mix(texel.rgb, vec3(1.0 - vignetteDarkness), dot(uv, uv));\n#endif\n gl_FragColor = encodeHDR(texel);\n#ifdef DEBUG\n #if DEBUG == 1\n gl_FragColor = encodeHDR(decodeHDR(texture2D(texture, v_Texcoord)));\n #elif DEBUG == 2\n gl_FragColor = encodeHDR(decodeHDR(texture2D(bloom, v_Texcoord)) * bloomIntensity);\n #elif DEBUG == 3\n gl_FragColor = encodeHDR(decodeHDR(texture2D(lensflare, v_Texcoord) * lensflareIntensity));\n #endif\n#endif\n if (originalTexel.a <= 0.01 && gl_FragColor.a > 1e-5) {\n gl_FragColor.a = dot(gl_FragColor.rgb, vec3(0.2125, 0.7154, 0.0721));\n }\n#ifdef PREMULTIPLY_ALPHA\n gl_FragColor.rgb *= gl_FragColor.a;\n#endif\n}\n@end",bs="@export clay.compositor.lensflare\n#define SAMPLE_NUMBER 8\nuniform sampler2D texture;\nuniform sampler2D lenscolor;\nuniform vec2 textureSize : [512, 512];\nuniform float dispersal : 0.3;\nuniform float haloWidth : 0.4;\nuniform float distortion : 1.0;\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\nvec4 textureDistorted(\n in vec2 texcoord,\n in vec2 direction,\n in vec3 distortion\n) {\n return vec4(\n decodeHDR(texture2D(texture, texcoord + direction * distortion.r)).r,\n decodeHDR(texture2D(texture, texcoord + direction * distortion.g)).g,\n decodeHDR(texture2D(texture, texcoord + direction * distortion.b)).b,\n 1.0\n );\n}\nvoid main()\n{\n vec2 texcoord = -v_Texcoord + vec2(1.0); vec2 textureOffset = 1.0 / textureSize;\n vec2 ghostVec = (vec2(0.5) - texcoord) * dispersal;\n vec2 haloVec = normalize(ghostVec) * haloWidth;\n vec3 distortion = vec3(-textureOffset.x * distortion, 0.0, textureOffset.x * distortion);\n vec4 result = vec4(0.0);\n for (int i = 0; i < SAMPLE_NUMBER; i++)\n {\n vec2 offset = fract(texcoord + ghostVec * float(i));\n float weight = length(vec2(0.5) - offset) / length(vec2(0.5));\n weight = pow(1.0 - weight, 10.0);\n result += textureDistorted(offset, normalize(ghostVec), distortion) * weight;\n }\n result *= texture2D(lenscolor, vec2(length(vec2(0.5) - texcoord)) / length(vec2(0.5)));\n float weight = length(vec2(0.5) - fract(texcoord + haloVec)) / length(vec2(0.5));\n weight = pow(1.0 - weight, 10.0);\n vec2 offset = fract(texcoord + haloVec);\n result += textureDistorted(offset, normalize(ghostVec), distortion) * weight;\n gl_FragColor = result;\n}\n@end",xs="@export clay.compositor.blend\n#define SHADER_NAME blend\n#ifdef TEXTURE1_ENABLED\nuniform sampler2D texture1;\nuniform float weight1 : 1.0;\n#endif\n#ifdef TEXTURE2_ENABLED\nuniform sampler2D texture2;\nuniform float weight2 : 1.0;\n#endif\n#ifdef TEXTURE3_ENABLED\nuniform sampler2D texture3;\nuniform float weight3 : 1.0;\n#endif\n#ifdef TEXTURE4_ENABLED\nuniform sampler2D texture4;\nuniform float weight4 : 1.0;\n#endif\n#ifdef TEXTURE5_ENABLED\nuniform sampler2D texture5;\nuniform float weight5 : 1.0;\n#endif\n#ifdef TEXTURE6_ENABLED\nuniform sampler2D texture6;\nuniform float weight6 : 1.0;\n#endif\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\nvoid main()\n{\n vec4 tex = vec4(0.0);\n#ifdef TEXTURE1_ENABLED\n tex += decodeHDR(texture2D(texture1, v_Texcoord)) * weight1;\n#endif\n#ifdef TEXTURE2_ENABLED\n tex += decodeHDR(texture2D(texture2, v_Texcoord)) * weight2;\n#endif\n#ifdef TEXTURE3_ENABLED\n tex += decodeHDR(texture2D(texture3, v_Texcoord)) * weight3;\n#endif\n#ifdef TEXTURE4_ENABLED\n tex += decodeHDR(texture2D(texture4, v_Texcoord)) * weight4;\n#endif\n#ifdef TEXTURE5_ENABLED\n tex += decodeHDR(texture2D(texture5, v_Texcoord)) * weight5;\n#endif\n#ifdef TEXTURE6_ENABLED\n tex += decodeHDR(texture2D(texture6, v_Texcoord)) * weight6;\n#endif\n gl_FragColor = encodeHDR(tex);\n}\n@end",ws="@export clay.compositor.fxaa\nuniform sampler2D texture;\nuniform vec4 viewport : VIEWPORT;\nvarying vec2 v_Texcoord;\n#define FXAA_REDUCE_MIN (1.0/128.0)\n#define FXAA_REDUCE_MUL (1.0/8.0)\n#define FXAA_SPAN_MAX 8.0\n@import clay.util.rgbm\nvoid main()\n{\n vec2 resolution = 1.0 / viewport.zw;\n vec3 rgbNW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, -1.0 ) ) * resolution ) ).xyz;\n vec3 rgbNE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, -1.0 ) ) * resolution ) ).xyz;\n vec3 rgbSW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, 1.0 ) ) * resolution ) ).xyz;\n vec3 rgbSE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, 1.0 ) ) * resolution ) ).xyz;\n vec4 rgbaM = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution ) );\n vec3 rgbM = rgbaM.xyz;\n float opacity = rgbaM.w;\n vec3 luma = vec3( 0.299, 0.587, 0.114 );\n float lumaNW = dot( rgbNW, luma );\n float lumaNE = dot( rgbNE, luma );\n float lumaSW = dot( rgbSW, luma );\n float lumaSE = dot( rgbSE, luma );\n float lumaM = dot( rgbM, luma );\n float lumaMin = min( lumaM, min( min( lumaNW, lumaNE ), min( lumaSW, lumaSE ) ) );\n float lumaMax = max( lumaM, max( max( lumaNW, lumaNE) , max( lumaSW, lumaSE ) ) );\n vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n float dirReduce = max( ( lumaNW + lumaNE + lumaSW + lumaSE ) * ( 0.25 * FXAA_REDUCE_MUL ), FXAA_REDUCE_MIN );\n float rcpDirMin = 1.0 / ( min( abs( dir.x ), abs( dir.y ) ) + dirReduce );\n dir = min( vec2( FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max( vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * resolution;\n vec3 rgbA = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 1.0 / 3.0 - 0.5 ) ) ).xyz;\n rgbA += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 2.0 / 3.0 - 0.5 ) ) ).xyz;\n rgbA *= 0.5;\n vec3 rgbB = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * -0.5 ) ).xyz;\n rgbB += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * 0.5 ) ).xyz;\n rgbB *= 0.25;\n rgbB += rgbA * 0.5;\n float lumaB = dot( rgbB, luma );\n if ( ( lumaB < lumaMin ) || ( lumaB > lumaMax ) )\n {\n gl_FragColor = vec4( rgbA, opacity );\n }\n else {\n gl_FragColor = vec4( rgbB, opacity );\n }\n}\n@end";function Os(t){t["import"](cs),t["import"](hs),t["import"](ds),t["import"](fs),t["import"](ps),t["import"](gs),t["import"](ms),t["import"](vs),t["import"](ys),t["import"](_s),t["import"](bs),t["import"](xs),t["import"](ws)}Os(Xt);var Ss=/^#source\((.*?)\)/;function Ts(t,e){var n=new is;e=e||{};var i={textures:{},parameters:{}},r=function(r,a){for(var o=0;o<t.nodes.length;o++){var s=t.nodes[o],l=Ms(s,i,e);l&&n.addNode(l)}};for(var a in t.parameters){var o=t.parameters[a];i.parameters[a]=Is(o)}return Ds(t,i,e,(function(t){i.textures=t,r()})),n}function Ms(t,e,n){var i,r,a,o,s=t.type||"filter";if("filter"===s){var l=t.shader.trim(),u=Ss.exec(l);if(u?i=Xt.source(u[1].trim()):"#"===l.charAt(0)&&(i=e.shaders[l.substr(1)]),i||(i=l),!i)return}if(t.inputs)for(var c in r={},t.inputs)"string"===typeof t.inputs[c]?r[c]=t.inputs[c]:r[c]={node:t.inputs[c].node,pin:t.inputs[c].pin};if(t.outputs)for(var c in a={},t.outputs){var h=t.outputs[c];a[c]={},null!=h.attachment&&(a[c].attachment=h.attachment),null!=h.keepLastFrame&&(a[c].keepLastFrame=h.keepLastFrame),null!=h.outputLastFrame&&(a[c].outputLastFrame=h.outputLastFrame),h.parameters&&(a[c].parameters=Is(h.parameters))}if(o="scene"===s?new as({name:t.name,scene:n.scene,camera:n.camera,outputs:a}):"texture"===s?new ss({name:t.name,outputs:a}):new us({name:t.name,shader:i,inputs:r,outputs:a}),o){if(t.parameters)for(var c in t.parameters){var d=t.parameters[c];"string"===typeof d?(d=d.trim(),"#"===d.charAt(0)?d=e.textures[d.substr(1)]:o.on("beforerender",Ls(c,js(d)))):"function"===typeof d&&o.on("beforerender",d),o.setParameter(c,d)}if(t.defines&&o.pass)for(var c in t.defines){d=t.defines[c];o.pass.material.define("fragment",c,d)}}return o}function As(t,e){return t}function Cs(t,e){return e}function Is(t){var e={};if(!t)return e;["type","minFilter","magFilter","wrapS","wrapT","flipY","useMipmap"].forEach((function(n){var i=t[n];null!=i&&("string"===typeof i&&(i=Qe[i]),e[n]=i)}));var n=t.scale||1;return["width","height"].forEach((function(i){if(null!=t[i]){var r=t[i];"string"===typeof r?(r=r.trim(),e[i]=Es(i,js(r),n)):e[i]=r}})),e.width||(e.width=As),e.height||(e.height=Cs),null!=t.useMipmap&&(e.useMipmap=t.useMipmap),e}function Ds(t,e,n,i){if(t.textures){var r={},a=0,o=!1,s=n.textureRootPath;x.each(t.textures,(function(t,e){var n,l=t.path,u=Is(t.parameters);if(Array.isArray(l)&&6===l.length)s&&(l=l.map((function(t){return x.relative2absolute(t,s)}))),n=new ti(u);else{if("string"!==typeof l)return;s&&(l=x.relative2absolute(l,s)),n=new sn(u)}n.load(l),a++,n.once("success",(function(){r[e]=n,a--,0===a&&(i(r),o=!0)}))})),0!==a||o||i(r)}else i({})}function Ls(t,e){return function(n){var i=n.getDevicePixelRatio(),r=n.getWidth(),a=n.getHeight(),o=e(r,a,i);this.setParameter(t,o)}}function Es(t,e,n){return n=n||1,function(t){var i=t.getDevicePixelRatio(),r=t.getWidth()*n,a=t.getHeight()*n;return e(r,a,i)}}function js(t){var e=/^expr\((.*)\)$/.exec(t);if(e)try{var n=new Function("width","height","dpr","return "+e[1]);return n(1,1),n}catch(i){throw new Error("Invalid expression.")}}var Ps=Ts,Ns=Ps;function Rs(t,e){var n=0,i=1/e,r=t;while(r>0)n+=i*(r%e),r=Math.floor(r/e),i/=e;return n}var ks=Rs,Bs="@export ecgl.ssao.estimate\n\nuniform sampler2D depthTex;\n\nuniform sampler2D normalTex;\n\nuniform sampler2D noiseTex;\n\nuniform vec2 depthTexSize;\n\nuniform vec2 noiseTexSize;\n\nuniform mat4 projection;\n\nuniform mat4 projectionInv;\n\nuniform mat4 viewInverseTranspose;\n\nuniform vec3 kernel[KERNEL_SIZE];\n\nuniform float radius : 1;\n\nuniform float power : 1;\n\nuniform float bias: 1e-2;\n\nuniform float intensity: 1.0;\n\nvarying vec2 v_Texcoord;\n\nfloat ssaoEstimator(in vec3 originPos, in mat3 kernelBasis) {\n float occlusion = 0.0;\n\n for (int i = 0; i < KERNEL_SIZE; i++) {\n vec3 samplePos = kernel[i];\n#ifdef NORMALTEX_ENABLED\n samplePos = kernelBasis * samplePos;\n#endif\n samplePos = samplePos * radius + originPos;\n\n vec4 texCoord = projection * vec4(samplePos, 1.0);\n texCoord.xy /= texCoord.w;\n\n vec4 depthTexel = texture2D(depthTex, texCoord.xy * 0.5 + 0.5);\n\n float sampleDepth = depthTexel.r * 2.0 - 1.0;\n if (projection[3][3] == 0.0) {\n sampleDepth = projection[3][2] / (sampleDepth * projection[2][3] - projection[2][2]);\n }\n else {\n sampleDepth = (sampleDepth - projection[3][2]) / projection[2][2];\n }\n \n float rangeCheck = smoothstep(0.0, 1.0, radius / abs(originPos.z - sampleDepth));\n occlusion += rangeCheck * step(samplePos.z, sampleDepth - bias);\n }\n#ifdef NORMALTEX_ENABLED\n occlusion = 1.0 - occlusion / float(KERNEL_SIZE);\n#else\n occlusion = 1.0 - clamp((occlusion / float(KERNEL_SIZE) - 0.6) * 2.5, 0.0, 1.0);\n#endif\n return pow(occlusion, power);\n}\n\nvoid main()\n{\n\n vec4 depthTexel = texture2D(depthTex, v_Texcoord);\n\n#ifdef NORMALTEX_ENABLED\n vec4 tex = texture2D(normalTex, v_Texcoord);\n if (dot(tex.rgb, tex.rgb) == 0.0) {\n gl_FragColor = vec4(1.0);\n return;\n }\n vec3 N = tex.rgb * 2.0 - 1.0;\n N = (viewInverseTranspose * vec4(N, 0.0)).xyz;\n\n vec2 noiseTexCoord = depthTexSize / vec2(noiseTexSize) * v_Texcoord;\n vec3 rvec = texture2D(noiseTex, noiseTexCoord).rgb * 2.0 - 1.0;\n vec3 T = normalize(rvec - N * dot(rvec, N));\n vec3 BT = normalize(cross(N, T));\n mat3 kernelBasis = mat3(T, BT, N);\n#else\n if (depthTexel.r > 0.99999) {\n gl_FragColor = vec4(1.0);\n return;\n }\n mat3 kernelBasis;\n#endif\n\n float z = depthTexel.r * 2.0 - 1.0;\n\n vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0);\n vec4 p4 = projectionInv * projectedPos;\n\n vec3 position = p4.xyz / p4.w;\n\n float ao = ssaoEstimator(position, kernelBasis);\n ao = clamp(1.0 - (1.0 - ao) * intensity, 0.0, 1.0);\n gl_FragColor = vec4(vec3(ao), 1.0);\n}\n\n@end\n\n\n@export ecgl.ssao.blur\n#define SHADER_NAME SSAO_BLUR\n\nuniform sampler2D ssaoTexture;\n\n#ifdef NORMALTEX_ENABLED\nuniform sampler2D normalTex;\n#endif\n\nvarying vec2 v_Texcoord;\n\nuniform vec2 textureSize;\nuniform float blurSize : 1.0;\n\nuniform int direction: 0.0;\n\n#ifdef DEPTHTEX_ENABLED\nuniform sampler2D depthTex;\nuniform mat4 projection;\nuniform float depthRange : 0.5;\n\nfloat getLinearDepth(vec2 coord)\n{\n float depth = texture2D(depthTex, coord).r * 2.0 - 1.0;\n return projection[3][2] / (depth * projection[2][3] - projection[2][2]);\n}\n#endif\n\nvoid main()\n{\n float kernel[5];\n kernel[0] = 0.122581;\n kernel[1] = 0.233062;\n kernel[2] = 0.288713;\n kernel[3] = 0.233062;\n kernel[4] = 0.122581;\n\n vec2 off = vec2(0.0);\n if (direction == 0) {\n off[0] = blurSize / textureSize.x;\n }\n else {\n off[1] = blurSize / textureSize.y;\n }\n\n vec2 coord = v_Texcoord;\n\n float sum = 0.0;\n float weightAll = 0.0;\n\n#ifdef NORMALTEX_ENABLED\n vec3 centerNormal = texture2D(normalTex, v_Texcoord).rgb * 2.0 - 1.0;\n#endif\n#if defined(DEPTHTEX_ENABLED)\n float centerDepth = getLinearDepth(v_Texcoord);\n#endif\n\n for (int i = 0; i < 5; i++) {\n vec2 coord = clamp(v_Texcoord + vec2(float(i) - 2.0) * off, vec2(0.0), vec2(1.0));\n\n float w = kernel[i];\n#ifdef NORMALTEX_ENABLED\n vec3 normal = texture2D(normalTex, coord).rgb * 2.0 - 1.0;\n w *= clamp(dot(normal, centerNormal), 0.0, 1.0);\n#endif\n#ifdef DEPTHTEX_ENABLED\n float d = getLinearDepth(coord);\n w *= (1.0 - smoothstep(abs(centerDepth - d) / depthRange, 0.0, 1.0));\n#endif\n\n weightAll += w;\n sum += texture2D(ssaoTexture, coord).r * w;\n }\n\n gl_FragColor = vec4(vec3(sum / weightAll), 1.0);\n}\n\n@end\n";function zs(t){for(var e=new Uint8Array(t*t*4),n=0,i=new ye,r=0;r<t;r++)for(var a=0;a<t;a++)i.set(2*Math.random()-1,2*Math.random()-1,0).normalize(),e[n++]=255*(.5*i.x+.5),e[n++]=255*(.5*i.y+.5),e[n++]=0,e[n++]=255;return e}function Vs(t){return new sn({pixels:zs(t),wrapS:Qe.REPEAT,wrapT:Qe.REPEAT,width:t,height:t})}function Fs(t,e,n){var i=new Float32Array(3*t);e=e||0;for(var r=0;r<t;r++){var a=ks(r+e,2)*(n?1:2)*Math.PI,o=ks(r+e,3)*Math.PI,s=Math.random(),l=Math.cos(a)*Math.sin(o)*s,u=Math.cos(o)*s,c=Math.sin(a)*Math.sin(o)*s;i[3*r]=l,i[3*r+1]=u,i[3*r+2]=c}return i}function Gs(t){t=t||{},this._ssaoPass=new vr({fragment:Xt.source("ecgl.ssao.estimate")}),this._blurPass=new vr({fragment:Xt.source("ecgl.ssao.blur")}),this._framebuffer=new pi({depthBuffer:!1}),this._ssaoTexture=new sn,this._blurTexture=new sn,this._blurTexture2=new sn,this._depthTex=t.depthTexture,this._normalTex=t.normalTexture,this.setNoiseSize(4),this.setKernelSize(t.kernelSize||12),null!=t.radius&&this.setParameter("radius",t.radius),null!=t.power&&this.setParameter("power",t.power),this._normalTex||(this._ssaoPass.material.disableTexture("normalTex"),this._blurPass.material.disableTexture("normalTex")),this._depthTex||this._blurPass.material.disableTexture("depthTex"),this._blurPass.material.setUniform("normalTex",this._normalTex),this._blurPass.material.setUniform("depthTex",this._depthTex)}Xt.import(Bs),Gs.prototype.setDepthTexture=function(t){this._depthTex=t},Gs.prototype.setNormalTexture=function(t){this._normalTex=t,this._ssaoPass.material[t?"enableTexture":"disableTexture"]("normalTex"),this.setKernelSize(this._kernelSize)},Gs.prototype.update=function(t,e,n){var i=t.getWidth(),r=t.getHeight(),a=this._ssaoPass,o=this._blurPass;a.setUniform("kernel",this._kernels[n%this._kernels.length]),a.setUniform("depthTex",this._depthTex),null!=this._normalTex&&a.setUniform("normalTex",this._normalTex),a.setUniform("depthTexSize",[this._depthTex.width,this._depthTex.height]);var s=new Le;Le.transpose(s,e.worldTransform),a.setUniform("projection",e.projectionMatrix.array),a.setUniform("projectionInv",e.invProjectionMatrix.array),a.setUniform("viewInverseTranspose",s.array);var l=this._ssaoTexture,u=this._blurTexture,c=this._blurTexture2;l.width=i/2,l.height=r/2,u.width=i,u.height=r,c.width=i,c.height=r,this._framebuffer.attach(l),this._framebuffer.bind(t),t.gl.clearColor(1,1,1,1),t.gl.clear(t.gl.COLOR_BUFFER_BIT),a.render(t),o.setUniform("textureSize",[i/2,r/2]),o.setUniform("projection",e.projectionMatrix.array),this._framebuffer.attach(u),o.setUniform("direction",0),o.setUniform("ssaoTexture",l),o.render(t),this._framebuffer.attach(c),o.setUniform("textureSize",[i,r]),o.setUniform("direction",1),o.setUniform("ssaoTexture",u),o.render(t),this._framebuffer.unbind(t);var h=t.clearColor;t.gl.clearColor(h[0],h[1],h[2],h[3])},Gs.prototype.getTargetTexture=function(){return this._blurTexture2},Gs.prototype.setParameter=function(t,e){"noiseTexSize"===t?this.setNoiseSize(e):"kernelSize"===t?this.setKernelSize(e):"intensity"===t?this._ssaoPass.material.set("intensity",e):this._ssaoPass.setUniform(t,e)},Gs.prototype.setKernelSize=function(t){this._kernelSize=t,this._ssaoPass.material.define("fragment","KERNEL_SIZE",t),this._kernels=this._kernels||[];for(var e=0;e<30;e++)this._kernels[e]=Fs(t,e*t,!!this._normalTex)},Gs.prototype.setNoiseSize=function(t){var e=this._ssaoPass.getUniform("noiseTex");e?(e.data=zs(t),e.width=e.height=t,e.dirty()):(e=Vs(t),this._ssaoPass.setUniform("noiseTex",Vs(t))),this._ssaoPass.setUniform("noiseTexSize",[t,t])},Gs.prototype.dispose=function(t){this._blurTexture.dispose(t),this._ssaoTexture.dispose(t),this._blurTexture2.dispose(t)};var Hs=Gs,Us="@export ecgl.ssr.main\n\n#define SHADER_NAME SSR\n#define MAX_ITERATION 20;\n#define SAMPLE_PER_FRAME 5;\n#define TOTAL_SAMPLES 128;\n\nuniform sampler2D sourceTexture;\nuniform sampler2D gBufferTexture1;\nuniform sampler2D gBufferTexture2;\nuniform sampler2D gBufferTexture3;\nuniform samplerCube specularCubemap;\nuniform float specularIntensity: 1;\n\nuniform mat4 projection;\nuniform mat4 projectionInv;\nuniform mat4 toViewSpace;\nuniform mat4 toWorldSpace;\n\nuniform float maxRayDistance: 200;\n\nuniform float pixelStride: 16;\nuniform float pixelStrideZCutoff: 50; \nuniform float screenEdgeFadeStart: 0.9; \nuniform float eyeFadeStart : 0.2; uniform float eyeFadeEnd: 0.8; \nuniform float minGlossiness: 0.2; uniform float zThicknessThreshold: 1;\n\nuniform float nearZ;\nuniform vec2 viewportSize : VIEWPORT_SIZE;\n\nuniform float jitterOffset: 0;\n\nvarying vec2 v_Texcoord;\n\n#ifdef DEPTH_DECODE\n@import clay.util.decode_float\n#endif\n\n#ifdef PHYSICALLY_CORRECT\nuniform sampler2D normalDistribution;\nuniform float sampleOffset: 0;\nuniform vec2 normalDistributionSize;\n\nvec3 transformNormal(vec3 H, vec3 N) {\n vec3 upVector = N.y > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);\n vec3 tangentX = normalize(cross(N, upVector));\n vec3 tangentZ = cross(N, tangentX);\n return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);\n}\nvec3 importanceSampleNormalGGX(float i, float roughness, vec3 N) {\n float p = fract((i + sampleOffset) / float(TOTAL_SAMPLES));\n vec3 H = texture2D(normalDistribution,vec2(roughness, p)).rgb;\n return transformNormal(H, N);\n}\nfloat G_Smith(float g, float ndv, float ndl) {\n float roughness = 1.0 - g;\n float k = roughness * roughness / 2.0;\n float G1V = ndv / (ndv * (1.0 - k) + k);\n float G1L = ndl / (ndl * (1.0 - k) + k);\n return G1L * G1V;\n}\nvec3 F_Schlick(float ndv, vec3 spec) {\n return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0);\n}\n#endif\n\nfloat fetchDepth(sampler2D depthTexture, vec2 uv)\n{\n vec4 depthTexel = texture2D(depthTexture, uv);\n return depthTexel.r * 2.0 - 1.0;\n}\n\nfloat linearDepth(float depth)\n{\n if (projection[3][3] == 0.0) {\n return projection[3][2] / (depth * projection[2][3] - projection[2][2]);\n }\n else {\n return (depth - projection[3][2]) / projection[2][2];\n }\n}\n\nbool rayIntersectDepth(float rayZNear, float rayZFar, vec2 hitPixel)\n{\n if (rayZFar > rayZNear)\n {\n float t = rayZFar; rayZFar = rayZNear; rayZNear = t;\n }\n float cameraZ = linearDepth(fetchDepth(gBufferTexture2, hitPixel));\n return rayZFar <= cameraZ && rayZNear >= cameraZ - zThicknessThreshold;\n}\n\n\nbool traceScreenSpaceRay(\n vec3 rayOrigin, vec3 rayDir, float jitter,\n out vec2 hitPixel, out vec3 hitPoint, out float iterationCount\n)\n{\n float rayLength = ((rayOrigin.z + rayDir.z * maxRayDistance) > -nearZ)\n ? (-nearZ - rayOrigin.z) / rayDir.z : maxRayDistance;\n\n vec3 rayEnd = rayOrigin + rayDir * rayLength;\n\n vec4 H0 = projection * vec4(rayOrigin, 1.0);\n vec4 H1 = projection * vec4(rayEnd, 1.0);\n\n float k0 = 1.0 / H0.w, k1 = 1.0 / H1.w;\n\n vec3 Q0 = rayOrigin * k0, Q1 = rayEnd * k1;\n\n vec2 P0 = (H0.xy * k0 * 0.5 + 0.5) * viewportSize;\n vec2 P1 = (H1.xy * k1 * 0.5 + 0.5) * viewportSize;\n\n P1 += dot(P1 - P0, P1 - P0) < 0.0001 ? 0.01 : 0.0;\n vec2 delta = P1 - P0;\n\n bool permute = false;\n if (abs(delta.x) < abs(delta.y)) {\n permute = true;\n delta = delta.yx;\n P0 = P0.yx;\n P1 = P1.yx;\n }\n float stepDir = sign(delta.x);\n float invdx = stepDir / delta.x;\n\n vec3 dQ = (Q1 - Q0) * invdx;\n float dk = (k1 - k0) * invdx;\n\n vec2 dP = vec2(stepDir, delta.y * invdx);\n\n float strideScaler = 1.0 - min(1.0, -rayOrigin.z / pixelStrideZCutoff);\n float pixStride = 1.0 + strideScaler * pixelStride;\n\n dP *= pixStride; dQ *= pixStride; dk *= pixStride;\n\n vec4 pqk = vec4(P0, Q0.z, k0);\n vec4 dPQK = vec4(dP, dQ.z, dk);\n\n pqk += dPQK * jitter;\n float rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w);\n float rayZNear;\n\n bool intersect = false;\n\n vec2 texelSize = 1.0 / viewportSize;\n\n iterationCount = 0.0;\n\n for (int i = 0; i < MAX_ITERATION; i++)\n {\n pqk += dPQK;\n\n rayZNear = rayZFar;\n rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w);\n\n hitPixel = permute ? pqk.yx : pqk.xy;\n hitPixel *= texelSize;\n\n intersect = rayIntersectDepth(rayZNear, rayZFar, hitPixel);\n\n iterationCount += 1.0;\n\n dPQK *= 1.2;\n\n if (intersect) {\n break;\n }\n }\n\n Q0.xy += dQ.xy * iterationCount;\n Q0.z = pqk.z;\n hitPoint = Q0 / pqk.w;\n\n return intersect;\n}\n\nfloat calculateAlpha(\n float iterationCount, float reflectivity,\n vec2 hitPixel, vec3 hitPoint, float dist, vec3 rayDir\n)\n{\n float alpha = clamp(reflectivity, 0.0, 1.0);\n alpha *= 1.0 - (iterationCount / float(MAX_ITERATION));\n vec2 hitPixelNDC = hitPixel * 2.0 - 1.0;\n float maxDimension = min(1.0, max(abs(hitPixelNDC.x), abs(hitPixelNDC.y)));\n alpha *= 1.0 - max(0.0, maxDimension - screenEdgeFadeStart) / (1.0 - screenEdgeFadeStart);\n\n float _eyeFadeStart = eyeFadeStart;\n float _eyeFadeEnd = eyeFadeEnd;\n if (_eyeFadeStart > _eyeFadeEnd) {\n float tmp = _eyeFadeEnd;\n _eyeFadeEnd = _eyeFadeStart;\n _eyeFadeStart = tmp;\n }\n\n float eyeDir = clamp(rayDir.z, _eyeFadeStart, _eyeFadeEnd);\n alpha *= 1.0 - (eyeDir - _eyeFadeStart) / (_eyeFadeEnd - _eyeFadeStart);\n\n alpha *= 1.0 - clamp(dist / maxRayDistance, 0.0, 1.0);\n\n return alpha;\n}\n\n@import clay.util.rand\n\n@import clay.util.rgbm\n\nvoid main()\n{\n vec4 normalAndGloss = texture2D(gBufferTexture1, v_Texcoord);\n\n if (dot(normalAndGloss.rgb, vec3(1.0)) == 0.0) {\n discard;\n }\n\n float g = normalAndGloss.a;\n#if !defined(PHYSICALLY_CORRECT)\n if (g <= minGlossiness) {\n discard;\n }\n#endif\n\n float reflectivity = (g - minGlossiness) / (1.0 - minGlossiness);\n\n vec3 N = normalize(normalAndGloss.rgb * 2.0 - 1.0);\n N = normalize((toViewSpace * vec4(N, 0.0)).xyz);\n\n vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, fetchDepth(gBufferTexture2, v_Texcoord), 1.0);\n vec4 pos = projectionInv * projectedPos;\n vec3 rayOrigin = pos.xyz / pos.w;\n vec3 V = -normalize(rayOrigin);\n\n float ndv = clamp(dot(N, V), 0.0, 1.0);\n float iterationCount;\n float jitter = rand(fract(v_Texcoord + jitterOffset));\n\n#ifdef PHYSICALLY_CORRECT\n vec4 color = vec4(vec3(0.0), 1.0);\n vec4 albedoMetalness = texture2D(gBufferTexture3, v_Texcoord);\n vec3 albedo = albedoMetalness.rgb;\n float m = albedoMetalness.a;\n vec3 diffuseColor = albedo * (1.0 - m);\n vec3 spec = mix(vec3(0.04), albedo, m);\n\n float jitter2 = rand(fract(v_Texcoord)) * float(TOTAL_SAMPLES);\n\n for (int i = 0; i < SAMPLE_PER_FRAME; i++) {\n vec3 H = importanceSampleNormalGGX(float(i) + jitter2, 1.0 - g, N);\n vec3 rayDir = normalize(reflect(-V, H));\n#else\n vec3 rayDir = normalize(reflect(-V, N));\n#endif\n vec2 hitPixel;\n vec3 hitPoint;\n\n bool intersect = traceScreenSpaceRay(rayOrigin, rayDir, jitter, hitPixel, hitPoint, iterationCount);\n\n float dist = distance(rayOrigin, hitPoint);\n\n vec3 hitNormal = texture2D(gBufferTexture1, hitPixel).rgb * 2.0 - 1.0;\n hitNormal = normalize((toViewSpace * vec4(hitNormal, 0.0)).xyz);\n#ifdef PHYSICALLY_CORRECT\n float ndl = clamp(dot(N, rayDir), 0.0, 1.0);\n float vdh = clamp(dot(V, H), 0.0, 1.0);\n float ndh = clamp(dot(N, H), 0.0, 1.0);\n vec3 litTexel = vec3(0.0);\n if (dot(hitNormal, rayDir) < 0.0 && intersect) {\n litTexel = texture2D(sourceTexture, hitPixel).rgb;\n litTexel *= pow(clamp(1.0 - dist / 200.0, 0.0, 1.0), 3.0);\n\n }\n else {\n #ifdef SPECULARCUBEMAP_ENABLED\n vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb;\n litTexel = RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, 0.0), 8.12).rgb * specularIntensity;\n#endif\n }\n color.rgb += ndl * litTexel * (\n F_Schlick(ndl, spec) * G_Smith(g, ndv, ndl) * vdh / (ndh * ndv + 0.001)\n );\n }\n color.rgb /= float(SAMPLE_PER_FRAME);\n#else\n #if !defined(SPECULARCUBEMAP_ENABLED)\n if (dot(hitNormal, rayDir) >= 0.0) {\n discard;\n }\n if (!intersect) {\n discard;\n }\n#endif\n float alpha = clamp(calculateAlpha(iterationCount, reflectivity, hitPixel, hitPoint, dist, rayDir), 0.0, 1.0);\n vec4 color = texture2D(sourceTexture, hitPixel);\n color.rgb *= alpha;\n\n#ifdef SPECULARCUBEMAP_ENABLED\n vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb;\n alpha = alpha * (intersect ? 1.0 : 0.0);\n float bias = (1.0 -g) * 5.0;\n color.rgb += (1.0 - alpha)\n * RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, bias), 8.12).rgb\n * specularIntensity;\n#endif\n\n#endif\n\n gl_FragColor = encodeHDR(color);\n}\n@end\n\n@export ecgl.ssr.blur\n\nuniform sampler2D texture;\nuniform sampler2D gBufferTexture1;\nuniform sampler2D gBufferTexture2;\nuniform mat4 projection;\nuniform float depthRange : 0.05;\n\nvarying vec2 v_Texcoord;\n\nuniform vec2 textureSize;\nuniform float blurSize : 1.0;\n\n#ifdef BLEND\n #ifdef SSAOTEX_ENABLED\nuniform sampler2D ssaoTex;\n #endif\nuniform sampler2D sourceTexture;\n#endif\n\nfloat getLinearDepth(vec2 coord)\n{\n float depth = texture2D(gBufferTexture2, coord).r * 2.0 - 1.0;\n return projection[3][2] / (depth * projection[2][3] - projection[2][2]);\n}\n\n@import clay.util.rgbm\n\n\nvoid main()\n{\n @import clay.compositor.kernel.gaussian_9\n\n vec4 centerNTexel = texture2D(gBufferTexture1, v_Texcoord);\n float g = centerNTexel.a;\n float maxBlurSize = clamp(1.0 - g, 0.0, 1.0) * blurSize;\n#ifdef VERTICAL\n vec2 off = vec2(0.0, maxBlurSize / textureSize.y);\n#else\n vec2 off = vec2(maxBlurSize / textureSize.x, 0.0);\n#endif\n\n vec2 coord = v_Texcoord;\n\n vec4 sum = vec4(0.0);\n float weightAll = 0.0;\n\n vec3 cN = centerNTexel.rgb * 2.0 - 1.0;\n float cD = getLinearDepth(v_Texcoord);\n for (int i = 0; i < 9; i++) {\n vec2 coord = clamp((float(i) - 4.0) * off + v_Texcoord, vec2(0.0), vec2(1.0));\n float w = gaussianKernel[i]\n * clamp(dot(cN, texture2D(gBufferTexture1, coord).rgb * 2.0 - 1.0), 0.0, 1.0);\n float d = getLinearDepth(coord);\n w *= (1.0 - smoothstep(abs(cD - d) / depthRange, 0.0, 1.0));\n\n weightAll += w;\n sum += decodeHDR(texture2D(texture, coord)) * w;\n }\n\n#ifdef BLEND\n float aoFactor = 1.0;\n #ifdef SSAOTEX_ENABLED\n aoFactor = texture2D(ssaoTex, v_Texcoord).r;\n #endif\n gl_FragColor = encodeHDR(\n sum / weightAll * aoFactor + decodeHDR(texture2D(sourceTexture, v_Texcoord))\n );\n#else\n gl_FragColor = encodeHDR(sum / weightAll);\n#endif\n}\n\n@end";function Ws(t){t=t||{},this._ssrPass=new vr({fragment:Xt.source("ecgl.ssr.main"),clearColor:[0,0,0,0]}),this._blurPass1=new vr({fragment:Xt.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blurPass2=new vr({fragment:Xt.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blendPass=new vr({fragment:Xt.source("clay.compositor.blend")}),this._blendPass.material.disableTexturesAll(),this._blendPass.material.enableTexture(["texture1","texture2"]),this._ssrPass.setUniform("gBufferTexture1",t.normalTexture),this._ssrPass.setUniform("gBufferTexture2",t.depthTexture),this._blurPass1.setUniform("gBufferTexture1",t.normalTexture),this._blurPass1.setUniform("gBufferTexture2",t.depthTexture),this._blurPass2.setUniform("gBufferTexture1",t.normalTexture),this._blurPass2.setUniform("gBufferTexture2",t.depthTexture),this._blurPass2.material.define("fragment","VERTICAL"),this._blurPass2.material.define("fragment","BLEND"),this._ssrTexture=new sn({type:Qe.HALF_FLOAT}),this._texture2=new sn({type:Qe.HALF_FLOAT}),this._texture3=new sn({type:Qe.HALF_FLOAT}),this._prevTexture=new sn({type:Qe.HALF_FLOAT}),this._currentTexture=new sn({type:Qe.HALF_FLOAT}),this._frameBuffer=new pi({depthBuffer:!1}),this._normalDistribution=null,this._totalSamples=256,this._samplePerFrame=4,this._ssrPass.material.define("fragment","SAMPLE_PER_FRAME",this._samplePerFrame),this._ssrPass.material.define("fragment","TOTAL_SAMPLES",this._totalSamples),this._downScale=1}Xt.import(Us),Ws.prototype.setAmbientCubemap=function(t,e){this._ssrPass.material.set("specularCubemap",t),this._ssrPass.material.set("specularIntensity",e);var n=t&&e;this._ssrPass.material[n?"enableTexture":"disableTexture"]("specularCubemap")},Ws.prototype.update=function(t,e,n,i){var r=t.getWidth(),a=t.getHeight(),o=this._ssrTexture,s=this._texture2,l=this._texture3;o.width=this._prevTexture.width=this._currentTexture.width=r/this._downScale,o.height=this._prevTexture.height=this._currentTexture.height=a/this._downScale,s.width=l.width=r,s.height=l.height=a;var u=this._frameBuffer,c=this._ssrPass,h=this._blurPass1,d=this._blurPass2,f=this._blendPass,p=new Le,g=new Le;Le.transpose(p,e.worldTransform),Le.transpose(g,e.viewMatrix),c.setUniform("sourceTexture",n),c.setUniform("projection",e.projectionMatrix.array),c.setUniform("projectionInv",e.invProjectionMatrix.array),c.setUniform("toViewSpace",p.array),c.setUniform("toWorldSpace",g.array),c.setUniform("nearZ",e.near);var m=i/this._totalSamples*this._samplePerFrame;if(c.setUniform("jitterOffset",m),c.setUniform("sampleOffset",i*this._samplePerFrame),h.setUniform("textureSize",[o.width,o.height]),d.setUniform("textureSize",[r,a]),d.setUniform("sourceTexture",n),h.setUniform("projection",e.projectionMatrix.array),d.setUniform("projection",e.projectionMatrix.array),u.attach(o),u.bind(t),c.render(t),this._physicallyCorrect&&(u.attach(this._currentTexture),f.setUniform("texture1",this._prevTexture),f.setUniform("texture2",o),f.material.set({weight1:i>=1?.95:0,weight2:i>=1?.05:1}),f.render(t)),u.attach(s),h.setUniform("texture",this._physicallyCorrect?this._currentTexture:o),h.render(t),u.attach(l),d.setUniform("texture",s),d.render(t),u.unbind(t),this._physicallyCorrect){var v=this._prevTexture;this._prevTexture=this._currentTexture,this._currentTexture=v}},Ws.prototype.getTargetTexture=function(){return this._texture3},Ws.prototype.setParameter=function(t,e){"maxIteration"===t?this._ssrPass.material.define("fragment","MAX_ITERATION",e):this._ssrPass.setUniform(t,e)},Ws.prototype.setPhysicallyCorrect=function(t){t?(this._normalDistribution||(this._normalDistribution=wr.generateNormalDistribution(64,this._totalSamples)),this._ssrPass.material.define("fragment","PHYSICALLY_CORRECT"),this._ssrPass.material.set("normalDistribution",this._normalDistribution),this._ssrPass.material.set("normalDistributionSize",[64,this._totalSamples])):this._ssrPass.material.undefine("fragment","PHYSICALLY_CORRECT"),this._physicallyCorrect=t},Ws.prototype.setSSAOTexture=function(t){var e=this._blurPass2;t?(e.material.enableTexture("ssaoTex"),e.material.set("ssaoTex",t)):e.material.disableTexture("ssaoTex")},Ws.prototype.isFinished=function(t){return!this._physicallyCorrect||t>this._totalSamples/this._samplePerFrame},Ws.prototype.dispose=function(t){this._ssrTexture.dispose(t),this._texture2.dispose(t),this._texture3.dispose(t),this._prevTexture.dispose(t),this._currentTexture.dispose(t),this._frameBuffer.dispose(t)};var Xs=Ws,Zs=[0,0,-.321585265978,-.154972575841,.458126042375,.188473391593,.842080129861,.527766490688,.147304551086,-.659453822776,-.331943915203,-.940619700594,.0479226680259,.54812163202,.701581552186,-.709825561388,-.295436780218,.940589268233,-.901489676764,.237713156085,.973570876096,-.109899459384,-.866792314779,-.451805525005,.330975007087,.800048655954,-.344275183665,.381779221166,-.386139432542,-.437418421534,-.576478634965,-.0148463392551,.385798197415,-.262426961053,-.666302061145,.682427250835,-.628010632582,-.732836215494,.10163141741,-.987658134403,.711995289051,-.320024291314,.0296005138058,.950296523438,.0130612307608,-.351024443122,-.879596633704,-.10478487883,.435712737232,.504254490347,.779203817497,.206477676721,.388264289969,-.896736162545,-.153106280781,-.629203242522,-.245517550697,.657969239148,.126830499058,.26862328493,-.634888119007,-.302301223431,.617074219636,.779817204925],qs="@export ecgl.normal.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n@import ecgl.common.attributes\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\n@import ecgl.common.normalMap.vertexHeader\n\n@import ecgl.common.vertexAnimation.header\n\nvoid main()\n{\n\n @import ecgl.common.vertexAnimation.main\n\n @import ecgl.common.uv.main\n\n v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n @import ecgl.common.normalMap.vertexMain\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n}\n\n\n@end\n\n\n@export ecgl.normal.fragment\n\n#define ROUGHNESS_CHANEL 0\n\nuniform bool useBumpMap;\nuniform bool useRoughnessMap;\nuniform bool doubleSide;\nuniform float roughness;\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n@import ecgl.common.normalMap.fragmentHeader\n@import ecgl.common.bumpMap.header\n\nuniform sampler2D roughnessMap;\n\nvoid main()\n{\n vec3 N = v_Normal;\n \n bool flipNormal = false;\n if (doubleSide) {\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n flipNormal = true;\n }\n }\n\n @import ecgl.common.normalMap.fragmentMain\n\n if (useBumpMap) {\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n }\n\n float g = 1.0 - roughness;\n\n if (useRoughnessMap) {\n float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL];\n g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0);\n }\n\n if (flipNormal) {\n N = -N;\n }\n\n gl_FragColor.rgb = (N.xyz + 1.0) * 0.5;\n gl_FragColor.a = g;\n}\n@end";function Ys(t,e,n,i,r){var a=t.gl;e.setUniform(a,"1i",n,r),a.activeTexture(a.TEXTURE0+r),i.isRenderable()?i.bind(t):i.unbind(t)}function Ks(t,e,n,i,r){var a,o,s,l,u=t.gl;return function(r,c,h){if(!l||l.material!==r.material){var d=r.material,f=r.__program,p=d.get("roughness");null==p&&(p=1);var g=d.get("normalMap")||e,m=d.get("roughnessMap"),v=d.get("bumpMap"),y=d.get("uvRepeat"),_=d.get("uvOffset"),b=d.get("detailUvRepeat"),x=d.get("detailUvOffset"),w=!!v&&d.isTextureEnabled("bumpMap"),O=!!m&&d.isTextureEnabled("roughnessMap"),S=d.isDefined("fragment","DOUBLE_SIDED");v=v||n,m=m||i,h!==c?(c.set("normalMap",g),c.set("bumpMap",v),c.set("roughnessMap",m),c.set("useBumpMap",w),c.set("useRoughnessMap",O),c.set("doubleSide",S),null!=y&&c.set("uvRepeat",y),null!=_&&c.set("uvOffset",_),null!=b&&c.set("detailUvRepeat",b),null!=x&&c.set("detailUvOffset",x),c.set("roughness",p)):(f.setUniform(u,"1f","roughness",p),a!==g&&Ys(t,f,"normalMap",g,0),o!==v&&v&&Ys(t,f,"bumpMap",v,1),s!==m&&m&&Ys(t,f,"roughnessMap",m,2),null!=y&&f.setUniform(u,"2f","uvRepeat",y),null!=_&&f.setUniform(u,"2f","uvOffset",_),null!=b&&f.setUniform(u,"2f","detailUvRepeat",b),null!=x&&f.setUniform(u,"2f","detailUvOffset",x),f.setUniform(u,"1i","useBumpMap",+w),f.setUniform(u,"1i","useRoughnessMap",+O),f.setUniform(u,"1i","doubleSide",+S)),a=g,o=v,s=m,l=r}}}function Qs(t){t=t||{},this._depthTex=new sn({format:Qe.DEPTH_COMPONENT,type:Qe.UNSIGNED_INT}),this._normalTex=new sn({type:Qe.HALF_FLOAT}),this._framebuffer=new pi,this._framebuffer.attach(this._normalTex),this._framebuffer.attach(this._depthTex,pi.DEPTH_ATTACHMENT),this._normalMaterial=new nt({shader:new Xt(Xt.source("ecgl.normal.vertex"),Xt.source("ecgl.normal.fragment"))}),this._normalMaterial.enableTexture(["normalMap","bumpMap","roughnessMap"]),this._defaultNormalMap=ar.createBlank("#000"),this._defaultBumpMap=ar.createBlank("#000"),this._defaultRoughessMap=ar.createBlank("#000"),this._debugPass=new vr({fragment:Xt.source("clay.compositor.output")}),this._debugPass.setUniform("texture",this._normalTex),this._debugPass.material.undefine("fragment","OUTPUT_ALPHA")}Xt.import(qs),Qs.prototype.getDepthTexture=function(){return this._depthTex},Qs.prototype.getNormalTexture=function(){return this._normalTex},Qs.prototype.update=function(t,e,n){var i=t.getWidth(),r=t.getHeight(),a=this._depthTex,o=this._normalTex,s=this._normalMaterial;a.width=i,a.height=r,o.width=i,o.height=r;var l=e.getRenderList(n).opaque;this._framebuffer.bind(t),t.gl.clearColor(0,0,0,0),t.gl.clear(t.gl.COLOR_BUFFER_BIT|t.gl.DEPTH_BUFFER_BIT),t.gl.disable(t.gl.BLEND),t.renderPass(l,n,{getMaterial:function(){return s},ifRender:function(t){return t.renderNormal},beforeRender:Ks(t,this._defaultNormalMap,this._defaultBumpMap,this._defaultRoughessMap,this._normalMaterial),sort:t.opaqueSortCompare}),this._framebuffer.unbind(t)},Qs.prototype.renderDebug=function(t){this._debugPass.render(t)},Qs.prototype.dispose=function(t){this._depthTex.dispose(t),this._normalTex.dispose(t)};var Js=Qs;function $s(t){t=t||{},this._edgePass=new vr({fragment:Xt.source("ecgl.edge")}),this._edgePass.setUniform("normalTexture",t.normalTexture),this._edgePass.setUniform("depthTexture",t.depthTexture),this._targetTexture=new sn({type:Qe.HALF_FLOAT}),this._frameBuffer=new pi,this._frameBuffer.attach(this._targetTexture)}$s.prototype.update=function(t,e,n,i){var r=t.getWidth(),a=t.getHeight(),o=this._targetTexture;o.width=r,o.height=a;var s=this._frameBuffer;s.bind(t),this._edgePass.setUniform("projectionInv",e.invProjectionMatrix.array),this._edgePass.setUniform("textureSize",[r,a]),this._edgePass.setUniform("texture",n),this._edgePass.render(t),s.unbind(t)},$s.prototype.getTargetTexture=function(){return this._targetTexture},$s.prototype.setParameter=function(t,e){this._edgePass.setUniform(t,e)},$s.prototype.dispose=function(t){this._targetTexture.dispose(t),this._frameBuffer.dispose(t)};var tl=$s,el={type:"compositor",nodes:[{name:"source",type:"texture",outputs:{color:{}}},{name:"source_half",shader:"#source(clay.compositor.downsample)",inputs:{texture:"source"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bright",shader:"#source(clay.compositor.bright)",inputs:{texture:"source_half"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{threshold:2,scale:4,textureSize:"expr([width * 1.0 / 2, height / 2])"}},{name:"bright_downsample_4",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 2, height / 2] )"}},{name:"bright_downsample_8",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 4, height / 4] )"}},{name:"bright_downsample_16",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 8, height / 8] )"}},{name:"bright_downsample_32",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 32)",height:"expr(height * 1.0 / 32)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 16, height / 16] )"}},{name:"bright_upsample_16_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_32"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 32, height / 32] )"}},{name:"bright_upsample_16_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_16_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_8_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_8_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_8_blur_v",texture2:"bright_upsample_16_blur_v"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_4_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_4_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_4_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_4_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_4_blur_v",texture2:"bright_upsample_8_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_2_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_2_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_2_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_2_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_2_blur_v",texture2:"bright_upsample_4_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_full_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_full_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_full_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bloom_composite",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_full_blur_v",texture2:"bright_upsample_2_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"coc",shader:"#source(ecgl.dof.coc)",outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{focalDist:50,focalRange:30}},{name:"dof_far_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"dof_near_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_NEARFIELD:null}},{name:"dof_coc_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"coc"},outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_COC:null}},{name:"dof_composite",shader:"#source(ecgl.dof.composite)",inputs:{original:"source",blurred:"dof_far_blur",nearfield:"dof_near_blur",coc:"coc",nearcoc:"dof_coc_blur"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}}},{name:"composite",shader:"#source(clay.compositor.hdr.composite)",inputs:{texture:"source",bloom:"bloom_composite"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},defines:{}},{name:"FXAA",shader:"#source(clay.compositor.fxaa)",inputs:{texture:"composite"}}]},nl="@export ecgl.dof.coc\n\nuniform sampler2D depth;\n\nuniform float zNear: 0.1;\nuniform float zFar: 2000;\n\nuniform float focalDistance: 3;\nuniform float focalRange: 1;\nuniform float focalLength: 30;\nuniform float fstop: 2.8;\n\nvarying vec2 v_Texcoord;\n\n@import clay.util.encode_float\n\nvoid main()\n{\n float z = texture2D(depth, v_Texcoord).r * 2.0 - 1.0;\n\n float dist = 2.0 * zNear * zFar / (zFar + zNear - z * (zFar - zNear));\n\n float aperture = focalLength / fstop;\n\n float coc;\n\n float uppper = focalDistance + focalRange;\n float lower = focalDistance - focalRange;\n if (dist <= uppper && dist >= lower) {\n coc = 0.5;\n }\n else {\n float focalAdjusted = dist > uppper ? uppper : lower;\n\n coc = abs(aperture * (focalLength * (dist - focalAdjusted)) / (dist * (focalAdjusted - focalLength)));\n coc = clamp(coc, 0.0, 2.0) / 2.00001;\n\n if (dist < lower) {\n coc = -coc;\n }\n coc = coc * 0.5 + 0.5;\n }\n\n gl_FragColor = encodeFloat(coc);\n}\n@end\n\n\n@export ecgl.dof.composite\n\n#define DEBUG 0\n\nuniform sampler2D original;\nuniform sampler2D blurred;\nuniform sampler2D nearfield;\nuniform sampler2D coc;\nuniform sampler2D nearcoc;\nvarying vec2 v_Texcoord;\n\n@import clay.util.rgbm\n@import clay.util.float\n\nvoid main()\n{\n vec4 blurredColor = texture2D(blurred, v_Texcoord);\n vec4 originalColor = texture2D(original, v_Texcoord);\n\n float fCoc = decodeFloat(texture2D(coc, v_Texcoord));\n\n fCoc = abs(fCoc * 2.0 - 1.0);\n\n float weight = smoothstep(0.0, 1.0, fCoc);\n \n#ifdef NEARFIELD_ENABLED\n vec4 nearfieldColor = texture2D(nearfield, v_Texcoord);\n float fNearCoc = decodeFloat(texture2D(nearcoc, v_Texcoord));\n fNearCoc = abs(fNearCoc * 2.0 - 1.0);\n\n gl_FragColor = encodeHDR(\n mix(\n nearfieldColor, mix(originalColor, blurredColor, weight),\n pow(1.0 - fNearCoc, 4.0)\n )\n );\n#else\n gl_FragColor = encodeHDR(mix(originalColor, blurredColor, weight));\n#endif\n\n}\n\n@end\n\n\n\n@export ecgl.dof.diskBlur\n\n#define POISSON_KERNEL_SIZE 16;\n\nuniform sampler2D texture;\nuniform sampler2D coc;\nvarying vec2 v_Texcoord;\n\nuniform float blurRadius : 10.0;\nuniform vec2 textureSize : [512.0, 512.0];\n\nuniform vec2 poissonKernel[POISSON_KERNEL_SIZE];\n\nuniform float percent;\n\nfloat nrand(const in vec2 n) {\n return fract(sin(dot(n.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\n@import clay.util.rgbm\n@import clay.util.float\n\n\nvoid main()\n{\n vec2 offset = blurRadius / textureSize;\n\n float rnd = 6.28318 * nrand(v_Texcoord + 0.07 * percent );\n float cosa = cos(rnd);\n float sina = sin(rnd);\n vec4 basis = vec4(cosa, -sina, sina, cosa);\n\n#if !defined(BLUR_NEARFIELD) && !defined(BLUR_COC)\n offset *= abs(decodeFloat(texture2D(coc, v_Texcoord)) * 2.0 - 1.0);\n#endif\n\n#ifdef BLUR_COC\n float cocSum = 0.0;\n#else\n vec4 color = vec4(0.0);\n#endif\n\n\n float weightSum = 0.0;\n\n for (int i = 0; i < POISSON_KERNEL_SIZE; i++) {\n vec2 ofs = poissonKernel[i];\n\n ofs = vec2(dot(ofs, basis.xy), dot(ofs, basis.zw));\n\n vec2 uv = v_Texcoord + ofs * offset;\n vec4 texel = texture2D(texture, uv);\n\n float w = 1.0;\n#ifdef BLUR_COC\n float fCoc = decodeFloat(texel) * 2.0 - 1.0;\n cocSum += clamp(fCoc, -1.0, 0.0) * w;\n#else\n texel = texel;\n #if !defined(BLUR_NEARFIELD)\n float fCoc = decodeFloat(texture2D(coc, uv)) * 2.0 - 1.0;\n w *= abs(fCoc);\n #endif\n texel.rgb *= texel.a;\n color += texel * w;\n#endif\n\n weightSum += w;\n }\n\n#ifdef BLUR_COC\n gl_FragColor = encodeFloat(clamp(cocSum / weightSum, -1.0, 0.0) * 0.5 + 0.5);\n#else\n color /= weightSum;\n color.rgb /= (color.a + 0.0001);\n gl_FragColor = color;\n#endif\n}\n\n@end",il="@export ecgl.edge\n\nuniform sampler2D texture;\n\nuniform sampler2D normalTexture;\nuniform sampler2D depthTexture;\n\nuniform mat4 projectionInv;\n\nuniform vec2 textureSize;\n\nuniform vec4 edgeColor: [0,0,0,0.8];\n\nvarying vec2 v_Texcoord;\n\nvec3 packColor(vec2 coord) {\n float z = texture2D(depthTexture, coord).r * 2.0 - 1.0;\n vec4 p = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0);\n vec4 p4 = projectionInv * p;\n\n return vec3(\n texture2D(normalTexture, coord).rg,\n -p4.z / p4.w / 5.0\n );\n}\n\nvoid main() {\n vec2 cc = v_Texcoord;\n vec3 center = packColor(cc);\n\n float size = clamp(1.0 - (center.z - 10.0) / 100.0, 0.0, 1.0) * 0.5;\n float dx = size / textureSize.x;\n float dy = size / textureSize.y;\n\n vec2 coord;\n vec3 topLeft = packColor(cc+vec2(-dx, -dy));\n vec3 top = packColor(cc+vec2(0.0, -dy));\n vec3 topRight = packColor(cc+vec2(dx, -dy));\n vec3 left = packColor(cc+vec2(-dx, 0.0));\n vec3 right = packColor(cc+vec2(dx, 0.0));\n vec3 bottomLeft = packColor(cc+vec2(-dx, dy));\n vec3 bottom = packColor(cc+vec2(0.0, dy));\n vec3 bottomRight = packColor(cc+vec2(dx, dy));\n\n vec3 v = -topLeft-2.0*top-topRight+bottomLeft+2.0*bottom+bottomRight;\n vec3 h = -bottomLeft-2.0*left-topLeft+bottomRight+2.0*right+topRight;\n\n float edge = sqrt(dot(h, h) + dot(v, v));\n\n edge = smoothstep(0.8, 1.0, edge);\n\n gl_FragColor = mix(texture2D(texture, v_Texcoord), vec4(edgeColor.rgb, 1.0), edgeColor.a * edge);\n}\n@end";function rl(t,e){return{color:{parameters:{width:t,height:e}}}}Xt["import"](hs),Xt["import"](fs),Xt["import"](gs),Xt["import"](ms),Xt["import"](vs),Xt["import"](ys),Xt["import"](_s),Xt["import"](xs),Xt["import"](ws),Xt["import"](nl),Xt["import"](il);var al=["composite","FXAA"];function ol(){this._width,this._height,this._dpr,this._sourceTexture=new sn({type:Qe.HALF_FLOAT}),this._depthTexture=new sn({format:Qe.DEPTH_COMPONENT,type:Qe.UNSIGNED_INT}),this._framebuffer=new pi,this._framebuffer.attach(this._sourceTexture),this._framebuffer.attach(this._depthTexture,pi.DEPTH_ATTACHMENT),this._normalPass=new Js,this._compositor=Ns(el);var t=this._compositor.getNodeByName("source");t.texture=this._sourceTexture;var e=this._compositor.getNodeByName("coc");this._sourceNode=t,this._cocNode=e,this._compositeNode=this._compositor.getNodeByName("composite"),this._fxaaNode=this._compositor.getNodeByName("FXAA"),this._dofBlurNodes=["dof_far_blur","dof_near_blur","dof_coc_blur"].map((function(t){return this._compositor.getNodeByName(t)}),this),this._dofBlurKernel=0,this._dofBlurKernelSize=new Float32Array(0),this._finalNodesChain=al.map((function(t){return this._compositor.getNodeByName(t)}),this);var n={normalTexture:this._normalPass.getNormalTexture(),depthTexture:this._normalPass.getDepthTexture()};this._ssaoPass=new Hs(n),this._ssrPass=new Xs(n),this._edgePass=new tl(n)}ol.prototype.resize=function(t,e,n){n=n||1;t*=n,e*=n;var i=this._sourceTexture,r=this._depthTexture;i.width=t,i.height=e,r.width=t,r.height=e;var a={getWidth:function(){return t},getHeight:function(){return e},getDevicePixelRatio:function(){return n}};function o(t,e){if("function"===typeof t[e]){var n=t[e].__original||t[e];t[e]=function(t){return n.call(this,a)},t[e].__original=n}}this._compositor.nodes.forEach((function(t){for(var e in t.outputs){var n=t.outputs[e].parameters;n&&(o(n,"width"),o(n,"height"))}for(var i in t.parameters)o(t.parameters,i)})),this._width=t,this._height=e,this._dpr=n},ol.prototype.getWidth=function(){return this._width},ol.prototype.getHeight=function(){return this._height},ol.prototype._ifRenderNormalPass=function(){return this._enableSSAO||this._enableEdge||this._enableSSR},ol.prototype._getPrevNode=function(t){var e=al.indexOf(t.name)-1,n=this._finalNodesChain[e];while(n&&!this._compositor.getNodeByName(n.name))e-=1,n=this._finalNodesChain[e];return n},ol.prototype._getNextNode=function(t){var e=al.indexOf(t.name)+1,n=this._finalNodesChain[e];while(n&&!this._compositor.getNodeByName(n.name))e+=1,n=this._finalNodesChain[e];return n},ol.prototype._addChainNode=function(t){var e=this._getPrevNode(t),n=this._getNextNode(t);e&&(t.inputs.texture=e.name,n?(t.outputs=rl(this.getWidth.bind(this),this.getHeight.bind(this)),n.inputs.texture=t.name):t.outputs=null,this._compositor.addNode(t))},ol.prototype._removeChainNode=function(t){var e=this._getPrevNode(t),n=this._getNextNode(t);e&&(n?(e.outputs=rl(this.getWidth.bind(this),this.getHeight.bind(this)),n.inputs.texture=e.name):e.outputs=null,this._compositor.removeNode(t))},ol.prototype.updateNormal=function(t,e,n,i){this._ifRenderNormalPass()&&this._normalPass.update(t,e,n)},ol.prototype.updateSSAO=function(t,e,n,i){this._ssaoPass.update(t,n,i)},ol.prototype.enableSSAO=function(){this._enableSSAO=!0},ol.prototype.disableSSAO=function(){this._enableSSAO=!1},ol.prototype.enableSSR=function(){this._enableSSR=!0},ol.prototype.disableSSR=function(){this._enableSSR=!1},ol.prototype.getSSAOTexture=function(){return this._ssaoPass.getTargetTexture()},ol.prototype.getSourceFrameBuffer=function(){return this._framebuffer},ol.prototype.getSourceTexture=function(){return this._sourceTexture},ol.prototype.disableFXAA=function(){this._removeChainNode(this._fxaaNode)},ol.prototype.enableFXAA=function(){this._addChainNode(this._fxaaNode)},ol.prototype.enableBloom=function(){this._compositeNode.inputs.bloom="bloom_composite",this._compositor.dirty()},ol.prototype.disableBloom=function(){this._compositeNode.inputs.bloom=null,this._compositor.dirty()},ol.prototype.enableDOF=function(){this._compositeNode.inputs.texture="dof_composite",this._compositor.dirty()},ol.prototype.disableDOF=function(){this._compositeNode.inputs.texture="source",this._compositor.dirty()},ol.prototype.enableColorCorrection=function(){this._compositeNode.define("COLOR_CORRECTION"),this._enableColorCorrection=!0},ol.prototype.disableColorCorrection=function(){this._compositeNode.undefine("COLOR_CORRECTION"),this._enableColorCorrection=!1},ol.prototype.enableEdge=function(){this._enableEdge=!0},ol.prototype.disableEdge=function(){this._enableEdge=!1},ol.prototype.setBloomIntensity=function(t){this._compositeNode.setParameter("bloomIntensity",t)},ol.prototype.setSSAOParameter=function(t,e){switch(t){case"quality":var n={low:6,medium:12,high:32,ultra:62}[e]||12;this._ssaoPass.setParameter("kernelSize",n);break;case"radius":this._ssaoPass.setParameter(t,e),this._ssaoPass.setParameter("bias",e/200);break;case"intensity":this._ssaoPass.setParameter(t,e);break;default:0}},ol.prototype.setDOFParameter=function(t,e){switch(t){case"focalDistance":case"focalRange":case"fstop":this._cocNode.setParameter(t,e);break;case"blurRadius":for(var n=0;n<this._dofBlurNodes.length;n++)this._dofBlurNodes[n].setParameter("blurRadius",e);break;case"quality":var i={low:4,medium:8,high:16,ultra:32}[e]||8;this._dofBlurKernelSize=i;for(n=0;n<this._dofBlurNodes.length;n++)this._dofBlurNodes[n].pass.material.define("POISSON_KERNEL_SIZE",i);this._dofBlurKernel=new Float32Array(2*i);break;default:0}},ol.prototype.setSSRParameter=function(t,e){if(null!=e)switch(t){case"quality":var n={low:10,medium:15,high:30,ultra:80}[e]||20,i={low:32,medium:16,high:8,ultra:4}[e]||16;this._ssrPass.setParameter("maxIteration",n),this._ssrPass.setParameter("pixelStride",i);break;case"maxRoughness":this._ssrPass.setParameter("minGlossiness",Math.max(Math.min(1-e,1),0));break;case"physical":this.setPhysicallyCorrectSSR(e);break;default:console.warn("Unkown SSR parameter "+t)}},ol.prototype.setPhysicallyCorrectSSR=function(t){this._ssrPass.setPhysicallyCorrect(t)},ol.prototype.setEdgeColor=function(t){var e=Ta.parseColor(t);this._edgePass.setParameter("edgeColor",e)},ol.prototype.setExposure=function(t){this._compositeNode.setParameter("exposure",Math.pow(2,t))},ol.prototype.setColorLookupTexture=function(t,e){this._compositeNode.pass.material.setTextureImage("lut",this._enableColorCorrection?t:"none",e,{minFilter:Ta.Texture.NEAREST,magFilter:Ta.Texture.NEAREST,flipY:!1})},ol.prototype.setColorCorrection=function(t,e){this._compositeNode.setParameter(t,e)},ol.prototype.isSSREnabled=function(){return this._enableSSR},ol.prototype.composite=function(t,e,n,i,r){var a=this._sourceTexture,o=a;this._enableEdge&&(this._edgePass.update(t,n,a,r),a=o=this._edgePass.getTargetTexture()),this._enableSSR&&(this._ssrPass.update(t,n,a,r),o=this._ssrPass.getTargetTexture(),this._ssrPass.setSSAOTexture(this._enableSSAO?this._ssaoPass.getTargetTexture():null)),this._sourceNode.texture=o,this._cocNode.setParameter("depth",this._depthTexture);for(var s=this._dofBlurKernel,l=this._dofBlurKernelSize,u=Math.floor(Zs.length/2/l),c=r%u,h=0;h<2*l;h++)s[h]=Zs[h+c*l*2];for(h=0;h<this._dofBlurNodes.length;h++)this._dofBlurNodes[h].setParameter("percent",r/30),this._dofBlurNodes[h].setParameter("poissonKernel",s);this._cocNode.setParameter("zNear",n.near),this._cocNode.setParameter("zFar",n.far),this._compositor.render(t,i)},ol.prototype.dispose=function(t){this._sourceTexture.dispose(t),this._depthTexture.dispose(t),this._framebuffer.dispose(t),this._compositor.dispose(t),this._normalPass.dispose(t),this._ssaoPass.dispose(t)};var sl=ol;function ll(t){for(var e=[],n=0;n<30;n++)e.push([ks(n,2),ks(n,3)]);this._haltonSequence=e,this._frame=0,this._sourceTex=new sn,this._sourceFb=new pi,this._sourceFb.attach(this._sourceTex),this._prevFrameTex=new sn,this._outputTex=new sn;var i=this._blendPass=new vr({fragment:Xt.source("clay.compositor.blend")});i.material.disableTexturesAll(),i.material.enableTexture(["texture1","texture2"]),this._blendFb=new pi({depthBuffer:!1}),this._outputPass=new vr({fragment:Xt.source("clay.compositor.output"),blendWithPrevious:!0}),this._outputPass.material.define("fragment","OUTPUT_ALPHA"),this._outputPass.material.blend=function(t){t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD),t.blendFuncSeparate(t.ONE,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA)}}ll.prototype={constructor:ll,jitterProjection:function(t,e){var n=t.viewport,i=n.devicePixelRatio||t.getDevicePixelRatio(),r=n.width*i,a=n.height*i,o=this._haltonSequence[this._frame%this._haltonSequence.length],s=new Le;s.array[12]=(2*o[0]-1)/r,s.array[13]=(2*o[1]-1)/a,Le.mul(e.projectionMatrix,s,e.projectionMatrix),Le.invert(e.invProjectionMatrix,e.projectionMatrix)},resetFrame:function(){this._frame=0},getFrame:function(){return this._frame},getSourceFrameBuffer:function(){return this._sourceFb},getOutputTexture:function(){return this._outputTex},resize:function(t,e){this._prevFrameTex.width=t,this._prevFrameTex.height=e,this._outputTex.width=t,this._outputTex.height=e,this._sourceTex.width=t,this._sourceTex.height=e,this._prevFrameTex.dirty(),this._outputTex.dirty(),this._sourceTex.dirty()},isFinished:function(){return this._frame>=this._haltonSequence.length},render:function(t,e,n){var i=this._blendPass;0===this._frame?(i.setUniform("weight1",0),i.setUniform("weight2",1)):(i.setUniform("weight1",.9),i.setUniform("weight2",.1)),i.setUniform("texture1",this._prevFrameTex),i.setUniform("texture2",e||this._sourceTex),this._blendFb.attach(this._outputTex),this._blendFb.bind(t),i.render(t),this._blendFb.unbind(t),n||(this._outputPass.setUniform("texture",this._outputTex),this._outputPass.render(t));var r=this._prevFrameTex;this._prevFrameTex=this._outputTex,this._outputTex=r,this._frame++},dispose:function(t){this._sourceFb.dispose(t),this._blendFb.dispose(t),this._prevFrameTex.dispose(t),this._outputTex.dispose(t),this._sourceTex.dispose(t),this._outputPass.dispose(t),this._blendPass.dispose(t)}};var ul=ll;function cl(t){t=t||"perspective",this.layer=null,this.scene=new qn,this.rootNode=this.scene,this.viewport={x:0,y:0,width:0,height:0},this.setProjection(t),this._compositor=new sl,this._temporalSS=new ul,this._shadowMapPass=new Qo;for(var e=[],n=0,i=0;i<30;i++){for(var r=[],a=0;a<6;a++)r.push(4*ks(n,2)-2),r.push(4*ks(n,3)-2),n++;e.push(r)}this._pcfKernels=e,this.scene.on("beforerender",(function(t,e,n){this.needsTemporalSS()&&this._temporalSS.jitterProjection(t,n)}),this)}cl.prototype.setProjection=function(t){var e=this.camera;e&&e.update(),"perspective"===t?this.camera instanceof ni||(this.camera=new ni,e&&this.camera.setLocalTransform(e.localTransform)):this.camera instanceof hr||(this.camera=new hr,e&&this.camera.setLocalTransform(e.localTransform)),this.camera.near=.1,this.camera.far=2e3},cl.prototype.setViewport=function(t,e,n,i,r){this.camera instanceof ni&&(this.camera.aspect=n/i),r=r||1,this.viewport.x=t,this.viewport.y=e,this.viewport.width=n,this.viewport.height=i,this.viewport.devicePixelRatio=r,this._compositor.resize(n*r,i*r),this._temporalSS.resize(n*r,i*r)},cl.prototype.containPoint=function(t,e){var n=this.viewport,i=this.layer.renderer.getHeight();return e=i-e,t>=n.x&&e>=n.y&&t<=n.x+n.width&&e<=n.y+n.height};var hl=new ct;cl.prototype.castRay=function(t,e,n){var i=this.layer.renderer,r=i.viewport;return i.viewport=this.viewport,i.screenToNDC(t,e,hl),this.camera.castRay(hl,n),i.viewport=r,n},cl.prototype.prepareRender=function(){this.scene.update(),this.camera.update(),this.scene.updateLights();var t=this.scene.updateRenderList(this.camera);this._needsSortProgressively=!1;for(var e=0;e<t.transparent.length;e++){var n=t.transparent[e],i=n.geometry;i.needsSortVerticesProgressively&&i.needsSortVerticesProgressively()&&(this._needsSortProgressively=!0),i.needsSortTrianglesProgressively&&i.needsSortTrianglesProgressively()&&(this._needsSortProgressively=!0)}this._frame=0,this._temporalSS.resetFrame()},cl.prototype.render=function(t,e){this._doRender(t,e,this._frame),this._frame++},cl.prototype.needsAccumulate=function(){return this.needsTemporalSS()||this._needsSortProgressively},cl.prototype.needsTemporalSS=function(){var t=this._enableTemporalSS;return"auto"===t&&(t=this._enablePostEffect),t},cl.prototype.hasDOF=function(){return this._enableDOF},cl.prototype.isAccumulateFinished=function(){return this.needsTemporalSS()?this._temporalSS.isFinished():this._frame>30},cl.prototype._doRender=function(t,e,n){var i=this.scene,r=this.camera;n=n||0,this._updateTransparent(t,i,r,n),e||(this._shadowMapPass.kernelPCF=this._pcfKernels[0],this._shadowMapPass.render(t,i,r,!0)),this._updateShadowPCFKernel(n);var a=t.clearColor;if(t.gl.clearColor(a[0],a[1],a[2],a[3]),this._enablePostEffect&&(this.needsTemporalSS()&&this._temporalSS.jitterProjection(t,r),this._compositor.updateNormal(t,i,r,this._temporalSS.getFrame())),this._updateSSAO(t,i,r,this._temporalSS.getFrame()),this._enablePostEffect){var o=this._compositor.getSourceFrameBuffer();o.bind(t),t.gl.clear(t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT),t.render(i,r,!0,!0),o.unbind(t),this.needsTemporalSS()&&e?(this._compositor.composite(t,i,r,this._temporalSS.getSourceFrameBuffer(),this._temporalSS.getFrame()),t.setViewport(this.viewport),this._temporalSS.render(t)):(t.setViewport(this.viewport),this._compositor.composite(t,i,r,null,0))}else if(this.needsTemporalSS()&&e){o=this._temporalSS.getSourceFrameBuffer();o.bind(t),t.saveClear(),t.clearBit=t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT,t.render(i,r,!0,!0),t.restoreClear(),o.unbind(t),t.setViewport(this.viewport),this._temporalSS.render(t)}else t.setViewport(this.viewport),t.render(i,r,!0,!0)},cl.prototype._updateTransparent=function(t,e,n,i){for(var r=new ye,a=new Le,o=n.getWorldPosition(),s=e.getRenderList(n).transparent,l=0;l<s.length;l++){var u=s[l],c=u.geometry;Le.invert(a,u.worldTransform),ye.transformMat4(r,o,a),c.needsSortTriangles&&c.needsSortTriangles()&&c.doSortTriangles(r,i),c.needsSortVertices&&c.needsSortVertices()&&c.doSortVertices(r,i)}},cl.prototype._updateSSAO=function(t,e,n){var i=this._enableSSAO&&this._enablePostEffect;i&&this._compositor.updateSSAO(t,e,n,this._temporalSS.getFrame());for(var r=e.getRenderList(n),a=0;a<r.opaque.length;a++){var o=r.opaque[a];o.renderNormal&&o.material[i?"enableTexture":"disableTexture"]("ssaoMap"),i&&o.material.set("ssaoMap",this._compositor.getSSAOTexture())}},cl.prototype._updateShadowPCFKernel=function(t){for(var e=this._pcfKernels[t%this._pcfKernels.length],n=this.scene.getRenderList(this.camera),i=n.opaque,r=0;r<i.length;r++)i[r].receiveShadow&&(i[r].material.set("pcfKernel",e),i[r].material.define("fragment","PCF_KERNEL_SIZE",e.length/2))},cl.prototype.dispose=function(t){this._compositor.dispose(t.gl),this._temporalSS.dispose(t.gl),this._shadowMapPass.dispose(t)},cl.prototype.setPostEffect=function(t,e){var n=this._compositor;this._enablePostEffect=t.get("enable");var i=t.getModel("bloom"),r=t.getModel("edge"),a=t.getModel("DOF",t.getModel("depthOfField")),o=t.getModel("SSAO",t.getModel("screenSpaceAmbientOcclusion")),s=t.getModel("SSR",t.getModel("screenSpaceReflection")),l=t.getModel("FXAA"),u=t.getModel("colorCorrection");i.get("enable")?n.enableBloom():n.disableBloom(),a.get("enable")?n.enableDOF():n.disableDOF(),s.get("enable")?n.enableSSR():n.disableSSR(),u.get("enable")?n.enableColorCorrection():n.disableColorCorrection(),r.get("enable")?n.enableEdge():n.disableEdge(),l.get("enable")?n.enableFXAA():n.disableFXAA(),this._enableDOF=a.get("enable"),this._enableSSAO=o.get("enable"),this._enableSSAO?n.enableSSAO():n.disableSSAO(),n.setBloomIntensity(i.get("intensity")),n.setEdgeColor(r.get("color")),n.setColorLookupTexture(u.get("lookupTexture"),e),n.setExposure(u.get("exposure")),["radius","quality","intensity"].forEach((function(t){n.setSSAOParameter(t,o.get(t))})),["quality","maxRoughness","physical"].forEach((function(t){n.setSSRParameter(t,s.get(t))})),["quality","focalDistance","focalRange","blurRadius","fstop"].forEach((function(t){n.setDOFParameter(t,a.get(t))})),["brightness","contrast","saturation"].forEach((function(t){n.setColorCorrection(t,u.get(t))}))},cl.prototype.setDOFFocusOnPoint=function(t){if(this._enablePostEffect){if(t>this.camera.far||t<this.camera.near)return;return this._compositor.setDOFParameter("focalDistance",t),!0}},cl.prototype.setTemporalSuperSampling=function(t){this._enableTemporalSS=t.get("enable")},cl.prototype.isLinearSpace=function(){return this._enablePostEffect},cl.prototype.setRootNode=function(t){if(this.rootNode!==t){for(var e=this.rootNode.children(),n=0;n<e.length;n++)t.add(e[n]);t!==this.scene&&this.scene.add(t),this.rootNode=t}},cl.prototype.add=function(t){this.rootNode.add(t)},cl.prototype.remove=function(t){this.rootNode.remove(t)},cl.prototype.removeAll=function(t){this.rootNode.removeAll(t)},Object.assign(cl.prototype,m);var dl=cl;function fl(t,e){var n=t.getBoxLayoutParams(),i=Object(Bo["g"])(n,{width:e.getWidth(),height:e.getHeight()});i.y=e.getHeight()-i.y-i.height,this.viewGL.setViewport(i.x,i.y,i.width,i.height,e.getDevicePixelRatio());var r=t.get("boxWidth"),a=t.get("boxHeight"),o=t.get("boxDepth");this.getAxis("x").setExtent(-r/2,r/2),this.getAxis("y").setExtent(o/2,-o/2),this.getAxis("z").setExtent(-a/2,a/2),this.size=[r,a,o]}function pl(t,e){var n={};function i(t,e){n[t]=n[t]||[1/0,-1/0],n[t][0]=Math.min(e[0],n[t][0]),n[t][1]=Math.max(e[1],n[t][1])}t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();["x","y","z"].forEach((function(t){e.mapDimensionsAll(t,!0).forEach((function(n){i(t,e.getDataExtent(n,!0))}))}))}}),this),["xAxis3D","yAxis3D","zAxis3D"].forEach((function(e){t.eachComponent(e,(function(t){var i=e.charAt(0),r=t.getReferringComponents("grid3D").models[0],o=r.coordinateSystem;if(o===this){var s=o.getAxis(i);if(!s){var l=a["m"].createScale(n[i]||[1/0,-1/0],t);s=new ko(i,l),s.type=t.get("type");var u="category"===s.type;s.onBand=u&&t.get("boundaryGap"),s.inverse=t.get("inverse"),t.axis=s,s.model=t,s.getLabelModel=function(){return t.getModel("axisLabel",r.getModel("axisLabel"))},s.getTickModel=function(){return t.getModel("axisTick",r.getModel("axisTick"))},o.addAxis(s)}}}),this)}),this),this.resize(this.model,e)}var gl={dimensions:No.prototype.dimensions,create:function(t,e){var n=[];t.eachComponent("grid3D",(function(t){t.__viewGL=t.__viewGL||new dl;var e=new No;e.model=t,e.viewGL=t.__viewGL,t.coordinateSystem=e,n.push(e),e.resize=fl,e.update=pl}));var i=["xAxis3D","yAxis3D","zAxis3D"];function r(t,e){return i.map((function(n){var i=t.getReferringComponents(n).models[0];return null==i&&(i=e.getComponent(n)),i}))}return t.eachSeries((function(e){if("cartesian3D"===e.get("coordinateSystem")){var n=e.getReferringComponents("grid3D").models[0];if(null==n){var i=r(e,t);n=i[0].getCoordSysModel();i.forEach((function(t){t.getCoordSysModel()}))}var a=n.coordinateSystem;e.coordinateSystem=a}})),n}},ml=gl,vl=a["c"].extend({type:"cartesian3DAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid3D",index:this.option.gridIndex,id:this.option.gridId})[0]}});a["m"].mixinAxisModelCommonMethods(vl);var yl=vl,_l={show:!0,grid3DIndex:0,inverse:!1,name:"",nameLocation:"middle",nameTextStyle:{fontSize:16},nameGap:20,axisPointer:{},axisLine:{},axisTick:{},axisLabel:{},splitArea:{}},bl=a["w"].merge({boundaryGap:!0,axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"},axisPointer:{label:{show:!1}}},_l),xl=a["w"].merge({boundaryGap:[0,0],splitNumber:5,axisPointer:{label:{}}},_l),wl=a["w"].defaults({scale:!0,min:"dataMin",max:"dataMax"},xl),Ol=a["w"].defaults({logBase:10},xl);Ol.scale=!0;var Sl={categoryAxis3D:bl,valueAxis3D:xl,timeAxis3D:wl,logAxis3D:Ol},Tl=n("8e43"),Ml=["value","category","time","log"],Al=function(t,e,n,i,r){Ml.forEach((function(o){var s=n.extend({type:e+"Axis3D."+o,__ordinalMeta:null,mergeDefaultAndTheme:function(t,n){var r=n.getTheme();a["w"].merge(t,r.get(o+"Axis3D")),a["w"].merge(t,this.getDefaultOption()),t.type=i(e,t)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=Tl["a"].createByAxisModel(this))},getCategories:function(){if("category"===this.option.type)return this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:a["w"].merge(a["w"].clone(Sl[o+"Axis3D"]),r||{},!0)});t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis3D",a["w"].curry(i,e))};function Cl(t,e){return e.type||(e.data?"category":"value")}function Il(t){t.registerComponentModel(Wa),t.registerComponentView(Eo),t.registerCoordinateSystem("grid3D",ml),["x","y","z"].forEach((function(e){Al(t,e,yl,Cl,{name:e.toUpperCase()});const n=t.ComponentView.extend({type:e+"Axis3D"});t.registerComponentView(n)})),t.registerAction({type:"grid3DChangeCamera",event:"grid3dcamerachanged",update:"series:updateCamera"},(function(t,e){e.eachComponent({mainType:"grid3D",query:t},(function(e){e.setView(t)}))})),t.registerAction({type:"grid3DShowAxisPointer",event:"grid3dshowaxispointer",update:"grid3D:showAxisPointer"},(function(t,e){})),t.registerAction({type:"grid3DHideAxisPointer",event:"grid3dhideaxispointer",update:"grid3D:hideAxisPointer"},(function(t,e){}))}Object(a["v"])(Il);var Dl={defaultOption:{shading:null,realisticMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},lambertMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},colorMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},hatchingMaterial:{textureTiling:1,textureOffset:0,paperColor:"#fff"}}},Ll={getFilledRegions:function(t,e){var n,i=(t||[]).slice();if("string"===typeof e?(e=a["k"](e),n=e&&e.geoJson):e&&e.features&&(n=e),!n)return[];for(var r={},o=n.features,s=0;s<i.length;s++)r[i[s].name]=i[s];for(s=0;s<o.length;s++){var l=o[s].properties.name;r[l]||i.push({name:l})}return i},defaultOption:{show:!0,zlevel:-10,map:"",left:0,top:0,width:"100%",height:"100%",boxWidth:100,boxHeight:10,boxDepth:"auto",regionHeight:3,environment:"auto",groundPlane:{show:!1,color:"#aaa"},shading:"lambert",light:{main:{alpha:40,beta:30}},viewControl:{alpha:40,beta:0,distance:100,orthographicSize:60,minAlpha:5,minBeta:-80,maxBeta:80},label:{show:!1,distance:2,textStyle:{fontSize:20,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:4}},itemStyle:{color:"#fff",borderWidth:0,borderColor:"#333"},emphasis:{itemStyle:{color:"#639fc0"},label:{show:!0}}}},El=a["c"].extend({type:"geo3D",layoutMode:"box",coordinateSystem:null,optionUpdated:function(){var t=this.option;t.regions=this.getFilledRegions(t.regions,t.map);var e=a["m"].createDimensions(t.data||[],{coordDimensions:["value"],encodeDefine:this.get("encode"),dimensionsDefine:this.get("dimensions")}),n=new a["e"](e,this);n.initData(t.regions);var i={};n.each((function(t){var e=n.getName(t),r=n.getItemModel(t);i[e]=r})),this._regionModelMap=i,this._data=n},getData:function(){return this._data},getRegionModel:function(t){var e=this.getData().getName(t);return this._regionModelMap[e]||new a["f"](null,this)},getRegionPolygonCoords:function(t){var e=this.getData().getName(t),n=this.coordinateSystem.getRegion(e);return n?n.geometries:[]},getFormattedLabel:function(t,e){var n=this._data.getName(t),i=this.getRegionModel(t),r=i.get("normal"===e?["label","formatter"]:["emphasis","label","formatter"]);null==r&&(r=i.get(["label","formatter"]));var a={name:n};if("function"===typeof r)return a.status=e,r(a);if("string"===typeof r){var o=a.seriesName;return r.replace("{a}",null!=o?o:"")}return n},defaultOption:{regions:[]}});a["w"].merge(El.prototype,Ll),a["w"].merge(El.prototype,Fa),a["w"].merge(El.prototype,Ga),a["w"].merge(El.prototype,Ha),a["w"].merge(El.prototype,Dl);var jl=El,Pl=Nl;function Nl(t,e,n){n=n||2;var i,r,a,o,s,l,u,c=e&&e.length,h=c?e[0]*n:t.length,d=Rl(t,0,h,n,!0),f=[];if(!d)return f;if(c&&(d=Hl(t,e,d,n)),t.length>80*n){i=a=t[0],r=o=t[1];for(var p=n;p<h;p+=n)s=t[p],l=t[p+1],s<i&&(i=s),l<r&&(r=l),s>a&&(a=s),l>o&&(o=l);u=Math.max(a-i,o-r)}return Bl(d,f,n,i,r,u),f}function Rl(t,e,n,i,r){var a,o;if(r===uu(t,e,n,i)>0)for(a=e;a<n;a+=i)o=ou(a,t[a],t[a+1],o);else for(a=n-i;a>=e;a-=i)o=ou(a,t[a],t[a+1],o);return o&&tu(o,o.next)&&(su(o),o=o.next),o}function kl(t,e){if(!t)return t;e||(e=t);var n,i=t;do{if(n=!1,i.steiner||!tu(i,i.next)&&0!==$l(i.prev,i,i.next))i=i.next;else{if(su(i),i=e=i.prev,i===i.next)return null;n=!0}}while(n||i!==e);return e}function Bl(t,e,n,i,r,a,o){if(t){!o&&a&&Zl(t,i,r,a);var s,l,u=t;while(t.prev!==t.next)if(s=t.prev,l=t.next,a?Vl(t,i,r,a):zl(t))e.push(s.i/n),e.push(t.i/n),e.push(l.i/n),su(t),t=l.next,u=l.next;else if(t=l,t===u){o?1===o?(t=Fl(t,e,n),Bl(t,e,n,i,r,a,2)):2===o&&Gl(t,e,n,i,r,a):Bl(kl(t),e,n,i,r,a,1);break}}}function zl(t){var e=t.prev,n=t,i=t.next;if($l(e,n,i)>=0)return!1;var r=t.next.next;while(r!==t.prev){if(Ql(e.x,e.y,n.x,n.y,i.x,i.y,r.x,r.y)&&$l(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function Vl(t,e,n,i){var r=t.prev,a=t,o=t.next;if($l(r,a,o)>=0)return!1;var s=r.x<a.x?r.x<o.x?r.x:o.x:a.x<o.x?a.x:o.x,l=r.y<a.y?r.y<o.y?r.y:o.y:a.y<o.y?a.y:o.y,u=r.x>a.x?r.x>o.x?r.x:o.x:a.x>o.x?a.x:o.x,c=r.y>a.y?r.y>o.y?r.y:o.y:a.y>o.y?a.y:o.y,h=Yl(s,l,e,n,i),d=Yl(u,c,e,n,i),f=t.nextZ;while(f&&f.z<=d){if(f!==t.prev&&f!==t.next&&Ql(r.x,r.y,a.x,a.y,o.x,o.y,f.x,f.y)&&$l(f.prev,f,f.next)>=0)return!1;f=f.nextZ}f=t.prevZ;while(f&&f.z>=h){if(f!==t.prev&&f!==t.next&&Ql(r.x,r.y,a.x,a.y,o.x,o.y,f.x,f.y)&&$l(f.prev,f,f.next)>=0)return!1;f=f.prevZ}return!0}function Fl(t,e,n){var i=t;do{var r=i.prev,a=i.next.next;!tu(r,a)&&eu(r,i,i.next,a)&&iu(r,a)&&iu(a,r)&&(e.push(r.i/n),e.push(i.i/n),e.push(a.i/n),su(i),su(i.next),i=t=a),i=i.next}while(i!==t);return i}function Gl(t,e,n,i,r,a){var o=t;do{var s=o.next.next;while(s!==o.prev){if(o.i!==s.i&&Jl(o,s)){var l=au(o,s);return o=kl(o,o.next),l=kl(l,l.next),Bl(o,e,n,i,r,a),void Bl(l,e,n,i,r,a)}s=s.next}o=o.next}while(o!==t)}function Hl(t,e,n,i){var r,a,o,s,l,u=[];for(r=0,a=e.length;r<a;r++)o=e[r]*i,s=r<a-1?e[r+1]*i:t.length,l=Rl(t,o,s,i,!1),l===l.next&&(l.steiner=!0),u.push(Kl(l));for(u.sort(Ul),r=0;r<u.length;r++)Wl(u[r],n),n=kl(n,n.next);return n}function Ul(t,e){return t.x-e.x}function Wl(t,e){if(e=Xl(t,e),e){var n=au(e,t);kl(n,n.next)}}function Xl(t,e){var n,i=e,r=t.x,a=t.y,o=-1/0;do{if(a<=i.y&&a>=i.next.y&&i.next.y!==i.y){var s=i.x+(a-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&s>o){if(o=s,s===r){if(a===i.y)return i;if(a===i.next.y)return i.next}n=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!n)return null;if(r===o)return n.prev;var l,u=n,c=n.x,h=n.y,d=1/0;i=n.next;while(i!==u)r>=i.x&&i.x>=c&&r!==i.x&&Ql(a<h?r:o,a,c,h,a<h?o:r,a,i.x,i.y)&&(l=Math.abs(a-i.y)/(r-i.x),(l<d||l===d&&i.x>n.x)&&iu(i,t)&&(n=i,d=l)),i=i.next;return n}function Zl(t,e,n,i){var r=t;do{null===r.z&&(r.z=Yl(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,ql(r)}function ql(t){var e,n,i,r,a,o,s,l,u=1;do{n=t,t=null,a=null,o=0;while(n){for(o++,i=n,s=0,e=0;e<u;e++)if(s++,i=i.nextZ,!i)break;l=u;while(s>0||l>0&&i)0!==s&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,l--),a?a.nextZ=r:t=r,r.prevZ=a,a=r;n=i}a.nextZ=null,u*=2}while(o>1);return t}function Yl(t,e,n,i,r){return t=32767*(t-n)/r,e=32767*(e-i)/r,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t|e<<1}function Kl(t){var e=t,n=t;do{e.x<n.x&&(n=e),e=e.next}while(e!==t);return n}function Ql(t,e,n,i,r,a,o,s){return(r-o)*(e-s)-(t-o)*(a-s)>=0&&(t-o)*(i-s)-(n-o)*(e-s)>=0&&(n-o)*(a-s)-(r-o)*(i-s)>=0}function Jl(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!nu(t,e)&&iu(t,e)&&iu(e,t)&&ru(t,e)}function $l(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function tu(t,e){return t.x===e.x&&t.y===e.y}function eu(t,e,n,i){return!!(tu(t,e)&&tu(n,i)||tu(t,i)&&tu(n,e))||$l(t,e,n)>0!==$l(t,e,i)>0&&$l(n,i,t)>0!==$l(n,i,e)>0}function nu(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&eu(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}function iu(t,e){return $l(t.prev,t,t.next)<0?$l(t,e,t.next)>=0&&$l(t,t.prev,e)>=0:$l(t,e,t.prev)<0||$l(t,t.next,e)<0}function ru(t,e){var n=t,i=!1,r=(t.x+e.x)/2,a=(t.y+e.y)/2;do{n.y>a!==n.next.y>a&&n.next.y!==n.y&&r<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}function au(t,e){var n=new lu(t.i,t.x,t.y),i=new lu(e.i,e.x,e.y),r=t.next,a=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,a.next=i,i.prev=a,i}function ou(t,e,n,i){var r=new lu(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function su(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function lu(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function uu(t,e,n,i){for(var r=0,a=e,o=n-i;a<n;a+=i)r+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return r}function cu(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function hu(t,e,n,i,r){var a=n,o=t[e];cu(t,e,i);for(var s=n;s<i;s++)r(t[s],o)<0&&(cu(t,s,a),a++);return cu(t,i,a),a}function du(t,e,n,i){if(n<i){var r=Math.floor((n+i)/2),a=hu(t,r,n,i,e);du(t,e,n,a-1),du(t,e,a+1,i)}}function fu(){this._parts=[]}Nl.deviation=function(t,e,n,i){var r=e&&e.length,a=r?e[0]*n:t.length,o=Math.abs(uu(t,0,a,n));if(r)for(var s=0,l=e.length;s<l;s++){var u=e[s]*n,c=s<l-1?e[s+1]*n:t.length;o-=Math.abs(uu(t,u,c,n))}var h=0;for(s=0;s<i.length;s+=3){var d=i[s]*n,f=i[s+1]*n,p=i[s+2]*n;h+=Math.abs((t[d]-t[p])*(t[f+1]-t[d+1])-(t[d]-t[f])*(t[p+1]-t[d+1]))}return 0===o&&0===h?0:Math.abs((h-o)/o)},fu.prototype.step=function(t,e,n){var i=t.length;if(0===n){this._parts=[],this._sorted=!1;var r=Math.floor(i/2);this._parts.push({pivot:r,left:0,right:i-1}),this._currentSortPartIdx=0}if(!this._sorted){var a=this._parts;if(0===a.length)return this._sorted=!0,!0;if(a.length<512){for(var o=0;o<a.length;o++)a[o].pivot=hu(t,a[o].pivot,a[o].left,a[o].right,e);var s=[];for(o=0;o<a.length;o++){var l=a[o].left,u=a[o].pivot-1;u>l&&s.push({pivot:Math.floor((u+l)/2),left:l,right:u});l=a[o].pivot+1,u=a[o].right;u>l&&s.push({pivot:Math.floor((u+l)/2),left:l,right:u})}a=this._parts=s}else for(o=0;o<Math.floor(a.length/10);o++){var c=a.length-1-this._currentSortPartIdx;if(du(t,e,a[c].left,a[c].right),this._currentSortPartIdx++,this._currentSortPartIdx===a.length)return this._sorted=!0,!0}return!1}},fu.sort=du;var pu=fu,gu=to.vec3,mu=gu.create(),vu=gu.create(),yu=gu.create(),_u={needsSortTriangles:function(){return this.indices&&this.sortTriangles},needsSortTrianglesProgressively:function(){return this.needsSortTriangles()&&this.triangleCount>=2e4},doSortTriangles:function(t,e){var n=this.indices;if(0===e){var i=this.attributes.position;t=t.array;this._triangleZList&&this._triangleZList.length===this.triangleCount||(this._triangleZList=new Float32Array(this.triangleCount),this._sortedTriangleIndices=new Uint32Array(this.triangleCount),this._indicesTmp=new n.constructor(n.length),this._triangleZListTmp=new Float32Array(this.triangleCount));for(var r,a=0,o=0;o<n.length;){i.get(n[o++],mu),i.get(n[o++],vu),i.get(n[o++],yu);var s=gu.sqrDist(mu,t),l=gu.sqrDist(vu,t),u=gu.sqrDist(yu,t),c=Math.min(s,l);c=Math.min(c,u),3===o?(r=c,c=0):c-=r,this._triangleZList[a++]=c}}var h=this._sortedTriangleIndices;for(o=0;o<h.length;o++)h[o]=o;if(this.triangleCount<2e4)0===e&&this._simpleSort(!0);else for(o=0;o<3;o++)this._progressiveQuickSort(3*e+o);var d=this._indicesTmp,f=this._triangleZListTmp,p=this._triangleZList;for(o=0;o<this.triangleCount;o++){var g=3*h[o],m=3*o;d[m++]=n[g++],d[m++]=n[g++],d[m]=n[g],f[o]=p[h[o]]}var v=this._indicesTmp;this._indicesTmp=this.indices,this.indices=v;v=this._triangleZListTmp;this._triangleZListTmp=this._triangleZList,this._triangleZList=v,this.dirtyIndices()},_simpleSort:function(t){var e=this._triangleZList,n=this._sortedTriangleIndices;function i(t,n){return e[n]-e[t]}t?Array.prototype.sort.call(n,i):pu.sort(n,i,0,n.length-1)},_progressiveQuickSort:function(t){var e=this._triangleZList,n=this._sortedTriangleIndices;this._quickSort=this._quickSort||new pu,this._quickSort.step(n,(function(t,n){return e[n]-e[t]}),t)}};function bu(t){const e=t.getVisual("style");if(e){const n=t.getVisual("drawType");return e[n]}}function xu(t){const e=t.getVisual("style");return e.opacity}function wu(t,e){const n=t.getItemVisual(e,"style");if(n){const e=t.getVisual("drawType");return n[e]}}function Ou(t,e){const n=t.getItemVisual(e,"style");return n&&n.opacity}var Su=1,Tu=2;function Mu(t,e,n){this._labelsMesh=new Oo,this._labelTextureSurface=new so({width:512,height:512,devicePixelRatio:n.getDevicePixelRatio(),onupdate:function(){n.getZr().refresh()}}),this._api=n,this._labelsMesh.material.set("textureAtlas",this._labelTextureSurface.getTexture())}Mu.prototype.getLabelPosition=function(t,e,n){return[0,0,0]},Mu.prototype.getLabelDistance=function(t,e,n){return 0},Mu.prototype.getMesh=function(){return this._labelsMesh},Mu.prototype.updateData=function(t,e,n){null==e&&(e=0),null==n&&(n=t.count()),this._labelsVisibilitiesBits&&this._labelsVisibilitiesBits.length===n-e||(this._labelsVisibilitiesBits=new Uint8Array(n-e));for(var i=["label","show"],r=["emphasis","label","show"],a=e;a<n;a++){var o=t.getItemModel(a),s=o.get(i),l=o.get(r);null==l&&(l=s);var u=(s?Su:0)|(l?Tu:0);this._labelsVisibilitiesBits[a-e]=u}this._start=e,this._end=n,this._data=t},Mu.prototype.updateLabels=function(t){if(this._data){t=t||[];for(var e=t.length>0,n={},i=0;i<t.length;i++)n[t[i]]=!0;this._labelsMesh.geometry.convertToDynamicArray(!0),this._labelTextureSurface.clear();for(var r=["label"],o=["emphasis","label"],s=this._data.hostModel,l=this._data,u=s.getModel(r),c=s.getModel(o,u),h={left:"right",right:"left",top:"center",bottom:"center"},d={left:"middle",right:"middle",top:"bottom",bottom:"top"},f=this._start;f<this._end;f++){var p=!1;e&&n[f]&&(p=!0);var g=this._labelsVisibilitiesBits[f-this._start]&(p?Tu:Su);if(g){var m=l.getItemModel(f),v=m.getModel(p?o:r,p?c:u),y=v.get("distance")||0,_=v.get("position"),b=this._api.getDevicePixelRatio(),x=s.getFormattedLabel(f,p?"emphasis":"normal");if(null==x||""===x)return;var w=new a["l"].Text({style:Object(Xa["c"])(v,{text:x,fill:v.get("color")||wu(l,f)||"#000",align:"left",verticalAlign:"top",opacity:Pr.firstNotNull(v.get("opacity"),Ou(l,f),1)})}),O=w.getBoundingRect(),S=1.2;O.height*=S;var T=this._labelTextureSurface.add(w),M=h[_]||"center",A=d[_]||"bottom";this._labelsMesh.geometry.addSprite(this.getLabelPosition(f,_,y),[O.width*b,O.height*b],T,M,A,this.getLabelDistance(f,_,y)*b)}}this._labelsMesh.material.set("uvScale",this._labelTextureSurface.getCoordsScale()),this._labelTextureSurface.getZr().refreshImmediately(),this._labelsMesh.geometry.convertToTypedArray(),this._labelsMesh.geometry.dirty()}},Mu.prototype.dispose=function(){this._labelTextureSurface.dispose()};var Au=Mu,Cu=to.vec3;function Iu(t){this.rootNode=new Ta.Node,this._triangulationResults={},this._shadersMap=Ta.COMMON_SHADERS.filter((function(t){return"shadow"!==t})).reduce((function(t,e){return t[e]=Ta.createShader("ecgl."+e),t}),{}),this._linesShader=Ta.createShader("ecgl.meshLines3D");var e={};Ta.COMMON_SHADERS.forEach((function(t){e[t]=new Ta.Material({shader:Ta.createShader("ecgl."+t)})})),this._groundMaterials=e,this._groundMesh=new Ta.Mesh({geometry:new Ta.PlaneGeometry({dynamic:!0}),castShadow:!1,renderNormal:!0,$ignorePicking:!0}),this._groundMesh.rotation.rotateX(-Math.PI/2),this._labelsBuilder=new Au(512,512,t),this._labelsBuilder.getMesh().renderOrder=100,this._labelsBuilder.getMesh().material.depthTest=!1,this.rootNode.add(this._labelsBuilder.getMesh()),this._initMeshes(),this._api=t}Ta.Shader.import(Io),Iu.prototype={constructor:Iu,extrudeY:!0,update:function(t,e,n,i,r){var a=t.getData();null==i&&(i=0),null==r&&(r=a.count()),this._startIndex=i,this._endIndex=r-1,this._triangulation(t,i,r);var o=this._getShader(t.get("shading"));this._prepareMesh(t,o,n,i,r),this.rootNode.updateWorldTransform(),this._updateRegionMesh(t,n,i,r);var s=t.coordinateSystem;"geo3D"===s.type&&this._updateGroundPlane(t,s,n);var l=this;this._labelsBuilder.updateData(a,i,r),this._labelsBuilder.getLabelPosition=function(t,e,n){var i=a.getName(t),r=n;if("geo3D"===s.type){var o=s.getRegion(i);if(!o)return[NaN,NaN,NaN];h=o.getCenter();var u=s.dataToPoint([h[0],h[1],r]);return u}var c=l._triangulationResults[t-l._startIndex],h=l.extrudeY?[(c.max[0]+c.min[0])/2,c.max[1]+r,(c.max[2]+c.min[2])/2]:[(c.max[0]+c.min[0])/2,(c.max[1]+c.min[1])/2,c.max[2]+r]},this._data=a,this._labelsBuilder.updateLabels(),this._updateDebugWireframe(t),this._lastHoverDataIndex=0},_initMeshes:function(){var t=this;function e(){var e=new Ta.Mesh({name:"Polygon",material:new Ta.Material({shader:t._shadersMap.lambert}),geometry:new Ta.Geometry({sortTriangles:!0,dynamic:!0}),culling:!1,ignorePicking:!0,renderNormal:!0});return Object.assign(e.geometry,_u),e}var n=e(),i=new Ta.Mesh({material:new Ta.Material({shader:this._linesShader}),castShadow:!1,ignorePicking:!0,$ignorePicking:!0,geometry:new ro({useNativeLine:!1})});this.rootNode.add(n),this.rootNode.add(i),n.material.define("both","VERTEX_COLOR"),n.material.define("fragment","DOUBLE_SIDED"),this._polygonMesh=n,this._linesMesh=i,this.rootNode.add(this._groundMesh)},_getShader:function(t){var e=this._shadersMap[t];return e||(e=this._shadersMap.lambert),e.__shading=t,e},_prepareMesh:function(t,e,n,i,r){for(var a=0,o=0,s=0,l=0,u=i;u<r;u++){var c=this._getRegionPolygonInfo(u),h=this._getRegionLinesInfo(u,t,this._linesMesh.geometry);a+=c.vertexCount,o+=c.triangleCount,s+=h.vertexCount,l+=h.triangleCount}var d=this._polygonMesh,f=d.geometry;["position","normal","texcoord0","color"].forEach((function(t){f.attributes[t].init(a)})),f.indices=a>65535?new Uint32Array(3*o):new Uint16Array(3*o),d.material.shader!==e&&d.material.attachShader(e,!0),Ta.setMaterialFromModel(e.__shading,d.material,t,n),s>0&&(this._linesMesh.geometry.resetOffset(),this._linesMesh.geometry.setVertexCount(s),this._linesMesh.geometry.setTriangleCount(l)),this._dataIndexOfVertex=new Uint32Array(a),this._vertexRangeOfDataIndex=new Uint32Array(2*(r-i))},_updateRegionMesh:function(t,e,n,i){for(var r=t.getData(),a=0,o=0,s=!1,l=this._polygonMesh,u=this._linesMesh,c=n;c<i;c++){var h=t.getRegionModel(c),d=h.getModel("itemStyle"),f=Pr.firstNotNull(wu(r,c),d.get("color"),"#fff"),p=Pr.firstNotNull(Ou(r,c),d.get("opacity"),1),g=Ta.parseColor(f),m=Ta.parseColor(d.get("borderColor"));g[3]*=p,m[3]*=p;var v=g[3]<.99;l.material.set("color",[1,1,1,1]),s=s||v;for(var y=Pr.firstNotNull(h.get("height",!0),t.get("regionHeight")),_=this._updatePolygonGeometry(t,l.geometry,c,y,a,o,g),b=a;b<_.vertexOffset;b++)this._dataIndexOfVertex[b]=c;this._vertexRangeOfDataIndex[2*(c-n)]=a,this._vertexRangeOfDataIndex[2*(c-n)+1]=_.vertexOffset,a=_.vertexOffset,o=_.triangleOffset;var x=d.get("borderWidth"),w=x>0;w&&(x*=e.getDevicePixelRatio(),this._updateLinesGeometry(u.geometry,t,c,y,x,t.coordinateSystem.transform)),u.invisible=!w,u.material.set({color:m})}l=this._polygonMesh;l.material.transparent=s,l.material.depthMask=!s,l.geometry.updateBoundingBox(),l.frontFace=this.extrudeY?Ta.Mesh.CCW:Ta.Mesh.CW,l.material.get("normalMap")&&l.geometry.generateTangents(),l.seriesIndex=t.seriesIndex,l.on("mousemove",this._onmousemove,this),l.on("mouseout",this._onmouseout,this)},_updateDebugWireframe:function(t){var e=t.getModel("debug.wireframe");if(e.get("show")){var n=Ta.parseColor(e.get("lineStyle.color")||"rgba(0,0,0,0.5)"),i=Pr.firstNotNull(e.get("lineStyle.width"),1),r=this._polygonMesh;r.geometry.generateBarycentric(),r.material.define("both","WIREFRAME_TRIANGLE"),r.material.set("wireframeLineColor",n),r.material.set("wireframeLineWidth",i)}},_onmousemove:function(t){var e=this._dataIndexOfVertex[t.triangle[0]];null==e&&(e=-1),e!==this._lastHoverDataIndex&&(this.downplay(this._lastHoverDataIndex),this.highlight(e),this._labelsBuilder.updateLabels([e])),this._lastHoverDataIndex=e,this._polygonMesh.dataIndex=e},_onmouseout:function(t){t.target&&(this.downplay(this._lastHoverDataIndex),this._lastHoverDataIndex=-1,this._polygonMesh.dataIndex=-1),this._labelsBuilder.updateLabels([])},_updateGroundPlane:function(t,e,n){var i=t.getModel("groundPlane",t);if(this._groundMesh.invisible=!i.get("show",!0),!this._groundMesh.invisible){var r=t.get("shading"),a=this._groundMaterials[r];a||(a=this._groundMaterials.lambert),Ta.setMaterialFromModel(r,a,i,n),a.get("normalMap")&&this._groundMesh.geometry.generateTangents(),this._groundMesh.material=a,this._groundMesh.material.set("color",Ta.parseColor(i.get("color"))),this._groundMesh.scale.set(e.size[0],e.size[2],1)}},_triangulation:function(t,e,n){this._triangulationResults=[];for(var i=[1/0,1/0,1/0],r=[-1/0,-1/0,-1/0],a=t.coordinateSystem,o=e;o<n;o++){for(var s=[],l=t.getRegionPolygonCoords(o),u=0;u<l.length;u++){var c=l[u].exterior,h=l[u].interiors,d=[],f=[];if(!(c.length<3)){for(var p=0,g=0;g<c.length;g++){var m=c[g];d[p++]=m[0],d[p++]=m[1]}for(g=0;g<h.length;g++)if(!(h[g].length<3)){for(var v=d.length/2,y=0;y<h[g].length;y++){m=h[g][y];d.push(m[0]),d.push(m[1])}f.push(v)}var _=Pl(d,f),b=new Float64Array(d.length/2*3),x=[],w=[1/0,1/0,1/0],O=[-1/0,-1/0,-1/0],S=0;for(g=0;g<d.length;)Cu.set(x,d[g++],0,d[g++]),a&&a.transform&&Cu.transformMat4(x,x,a.transform),Cu.min(w,w,x),Cu.max(O,O,x),b[S++]=x[0],b[S++]=x[1],b[S++]=x[2];Cu.min(i,i,w),Cu.max(r,r,O),s.push({points:b,indices:_,min:w,max:O})}}this._triangulationResults.push(s)}this._geoBoundingBox=[i,r]},_getRegionPolygonInfo:function(t){for(var e=this._triangulationResults[t-this._startIndex],n=0,i=0,r=0;r<e.length;r++)n+=e[r].points.length/3,i+=e[r].indices.length/3;var a=2*n+4*n,o=2*i+2*n;return{vertexCount:a,triangleCount:o}},_updatePolygonGeometry:function(t,e,n,i,r,a,o){var s=t.get("projectUVOnGround"),l=e.attributes.position,u=e.attributes.normal,c=e.attributes.texcoord0,h=e.attributes.color,d=this._triangulationResults[n-this._startIndex],f=h.value&&o,p=e.indices,g=this.extrudeY?1:2,m=this.extrudeY?2:1,v=[this.rootNode.worldTransform.x.len(),this.rootNode.worldTransform.y.len(),this.rootNode.worldTransform.z.len()],y=Cu.mul([],this._geoBoundingBox[0],v),_=Cu.mul([],this._geoBoundingBox[1],v),b=Math.max(_[0]-y[0],_[2]-y[2]);function x(t,e,n){for(var i=t.points,a=i.length,s=[],u=[],d=0;d<a;d+=3)s[0]=i[d],s[g]=e,s[m]=i[d+2],u[0]=(i[d]*v[0]-y[0])/b,u[1]=(i[d+2]*v[m]-y[2])/b,l.set(r,s),f&&h.set(r,o),c.set(r++,u)}function w(t,e,n){var i=r;x(t,e,n);for(var o=t.indices.length,s=0;s<o;s++)p[3*a+s]=t.indices[s]+i;a+=t.indices.length/3}for(var O=this.extrudeY?[0,1,0]:[0,0,1],S=Cu.negate([],O),T=0;T<d.length;T++){var M=r,A=d[T];w(A,0,0),w(A,i,0);for(var C=A.points.length/3,I=0;I<C;I++)u.set(M+I,S),u.set(M+I+C,O);var D=[0,3,1,1,3,2],L=[[],[],[],[]],E=[],j=[],P=[],N=[],R=0;for(I=0;I<C;I++){for(var k=(I+1)%C,B=(A.points[3*k]-A.points[3*I])*v[0],z=(A.points[3*k+2]-A.points[3*I+2])*v[m],V=Math.sqrt(B*B+z*z),F=0;F<4;F++){var G=0===F||3===F,H=3*(G?I:k);L[F][0]=A.points[H],L[F][g]=F>1?i:0,L[F][m]=A.points[H+2],l.set(r+F,L[F]),s?(N[0]=(A.points[H]*v[0]-y[0])/b,N[1]=(A.points[H+2]*v[m]-y[m])/b):(N[0]=(G?R:R+V)/b,N[1]=(L[F][g]*v[g]-y[g])/b),c.set(r+F,N)}Cu.sub(E,L[1],L[0]),Cu.sub(j,L[3],L[0]),Cu.cross(P,E,j),Cu.normalize(P,P);for(F=0;F<4;F++)u.set(r+F,P),f&&h.set(r+F,o);for(F=0;F<6;F++)p[3*a+F]=D[F]+r;r+=4,a+=2,R+=V}}return e.dirty(),{vertexOffset:r,triangleOffset:a}},_getRegionLinesInfo:function(t,e,n){var i=0,r=0,a=e.getRegionModel(t),o=a.getModel("itemStyle"),s=o.get("borderWidth");if(s>0){var l=e.getRegionPolygonCoords(t);l.forEach((function(t){var e=t.exterior,a=t.interiors;i+=n.getPolylineVertexCount(e),r+=n.getPolylineTriangleCount(e);for(var o=0;o<a.length;o++)i+=n.getPolylineVertexCount(a[o]),r+=n.getPolylineTriangleCount(a[o])}),this)}return{vertexCount:i,triangleCount:r}},_updateLinesGeometry:function(t,e,n,i,r,a){function o(t){for(var e=new Float64Array(3*t.length),n=0,r=[],o=0;o<t.length;o++)r[0]=t[o][0],r[1]=i+.1,r[2]=t[o][1],a&&Cu.transformMat4(r,r,a),e[n++]=r[0],e[n++]=r[1],e[n++]=r[2];return e}var s=[1,1,1,1],l=e.getRegionPolygonCoords(n);l.forEach((function(e){var n=e.exterior,i=e.interiors;t.addPolyline(o(n),s,r);for(var a=0;a<i.length;a++)t.addPolyline(o(i[a]),s,r)}))},highlight:function(t){var e=this._data;if(e){var n=e.getItemModel(t),i=n.getModel(["emphasis","itemStyle"]),r=i.get("color"),o=Pr.firstNotNull(i.get("opacity"),Ou(e,t),1);if(null==r){var s=wu(e,t);r=a["h"].lift(s,-.4)}null==o&&(o=Ou(e,t));var l=Ta.parseColor(r);l[3]*=o,this._setColorOfDataIndex(e,t,l)}},downplay:function(t){var e=this._data;if(e){var n=e.getItemModel(t),i=Pr.firstNotNull(wu(e,t),n.get(["itemStyle","color"]),"#fff"),r=Pr.firstNotNull(Ou(e,t),n.get(["itemStyle","opacity"]),1),a=Ta.parseColor(i);a[3]*=r,this._setColorOfDataIndex(e,t,a)}},dispose:function(){this._labelsBuilder.dispose()},_setColorOfDataIndex:function(t,e,n){if(!(e<this._startIndex&&e>this._endIndex)){e-=this._startIndex;for(var i=this._vertexRangeOfDataIndex[2*e];i<this._vertexRangeOfDataIndex[2*e+1];i++)this._polygonMesh.geometry.attributes.color.set(i,n);this._polygonMesh.geometry.dirty(),this._api.getZr().refresh()}}};var Du=Iu,Lu=a["d"].extend({type:"geo3D",__ecgl__:!0,init:function(t,e){this._geo3DBuilder=new Du(e),this.groupGL=new Ta.Node,this._lightRoot=new Ta.Node,this._sceneHelper=new uo(this._lightRoot),this._sceneHelper.initLight(this._lightRoot),this._control=new Qa({zr:e.getZr()}),this._control.init()},render:function(t,e,n){this.groupGL.add(this._geo3DBuilder.rootNode);var i=t.coordinateSystem;if(i&&i.viewGL){i.viewGL.add(this._lightRoot),t.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL);var r=this._control;r.setViewGL(i.viewGL);var a=t.getModel("viewControl");r.setFromViewControlModel(a,0),this._sceneHelper.setScene(i.viewGL.scene),this._sceneHelper.updateLight(t),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling")),this._geo3DBuilder.update(t,e,n,0,t.getData().count());var o=i.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse((function(t){t.material&&t.material[o]("fragment","SRGB_DECODE")})),r.off("update"),r.on("update",(function(){n.dispatchAction({type:"geo3DChangeCamera",alpha:r.getAlpha(),beta:r.getBeta(),distance:r.getDistance(),center:r.getCenter(),from:this.uid,geo3DId:t.id})})),r.update()}},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n)},dispose:function(){this._control.dispose(),this._geo3DBuilder.dispose()}}),Eu=n("1792"),ju={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function Pu(t,e){if("world"===t){var n=ju[e.name];if(n){var i=[n[0],n[1]];e.setCenter(i)}}}var Nu=to.vec3,Ru=to.mat4,ku=[Eu["a"],Pu];function Bu(t,e,n,i,r){this.name=t,this.map=e,this.regionHeight=0,this.regions=[],this._nameCoordMap={},this.loadGeoJson(n,i,r),this.transform=Ru.identity(new Float64Array(16)),this.invTransform=Ru.identity(new Float64Array(16)),this.extrudeY=!0,this.altitudeAxis}Bu.prototype={constructor:Bu,type:"geo3D",dimensions:["lng","lat","alt"],containPoint:function(){},loadGeoJson:function(t,e,n){var i=a["q"]||a["r"];try{this.regions=t?i(t):[]}catch(c){throw"Invalid geoJson format\n"+c}e=e||{},n=n||{};for(var r=this.regions,o={},s=0;s<r.length;s++){var l=r[s].name;l=n[l]||l,r[s].name=l,o[l]=r[s],this.addGeoCoord(l,r[s].getCenter());var u=e[l];u&&r[s].transformTo(u.left,u.top,u.width,u.height)}this._regionsMap=o,this._geoRect=null,ku.forEach((function(t){t(this)}),this)},getGeoBoundingRect:function(){if(this._geoRect)return this._geoRect;for(var t,e=this.regions,n=0;n<e.length;n++){var i=e[n].getBoundingRect();t=t||i.clone(),t.union(i)}return this._geoRect=t||new a["l"].BoundingRect(0,0,0,0)},addGeoCoord:function(t,e){this._nameCoordMap[t]=e},getRegion:function(t){return this._regionsMap[t]},getRegionByCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return e[n]},setSize:function(t,e,n){this.size=[t,e,n];var i=this.getGeoBoundingRect(),r=t/i.width,a=-n/i.height,o=-t/2-i.x*r,s=n/2-i.y*a,l=this.extrudeY?[o,0,s]:[o,s,0],u=this.extrudeY?[r,1,a]:[r,a,1],c=this.transform;Ru.identity(c),Ru.translate(c,c,l),Ru.scale(c,c,u),Ru.invert(this.invTransform,c)},dataToPoint:function(t,e){e=e||[];var n=this.extrudeY?1:2,i=this.extrudeY?2:1,r=t[2];return isNaN(r)&&(r=0),e[0]=t[0],e[i]=t[1],this.altitudeAxis?e[n]=this.altitudeAxis.dataToCoord(r):e[n]=0,e[n]+=this.regionHeight,Nu.transformMat4(e,e,this.transform),e},pointToData:function(t,e){}};var zu=Bu;function Vu(t,e){var n=t.getBoxLayoutParams(),i=Object(Bo["g"])(n,{width:e.getWidth(),height:e.getHeight()});i.y=e.getHeight()-i.y-i.height,this.viewGL.setViewport(i.x,i.y,i.width,i.height,e.getDevicePixelRatio());var r=this.getGeoBoundingRect(),a=r.width/r.height*(t.get("aspectScale")||.75),o=t.get("boxWidth"),s=t.get("boxDepth"),l=t.get("boxHeight");null==l&&(l=5),isNaN(o)&&isNaN(s)&&(o=100),isNaN(s)?s=o/a:isNaN(o)&&(o=s/a),this.setSize(o,l,s),this.regionHeight=t.get("regionHeight"),this.altitudeAxis&&this.altitudeAxis.setExtent(0,Math.max(l-this.regionHeight,0))}function Fu(t,e){var n=[1/0,-1/0];if(t.eachSeries((function(t){if(t.coordinateSystem===this&&"series.map3D"!==t.type){var e=t.getData(),i=t.coordDimToDataDim("alt"),r=i&&i[0];if(r){var a=e.getDataExtent(r,!0);n[0]=Math.min(n[0],a[0]),n[1]=Math.max(n[1],a[1])}}}),this),n&&isFinite(n[1]-n[0])){var i=a["m"].createScale(n,{type:"value",min:"dataMin",max:"dataMax"});this.altitudeAxis=new a["a"]("altitude",i),this.resize(this.model,e)}}var Gu=0,Hu={dimensions:zu.prototype.dimensions,create:function(t,e){var n=[];if(!a["k"])throw new Error("geo3D component depends on geo component");function i(t,i){var r=Hu.createGeo3D(t);t.__viewGL=t.__viewGL||new dl,r.viewGL=t.__viewGL,t.coordinateSystem=r,r.model=t,n.push(r),r.resize=Vu,r.resize(t,e),r.update=Fu}return t.eachComponent("geo3D",(function(t,e){i(t,e)})),t.eachSeriesByType("map3D",(function(t,e){var n=t.get("coordinateSystem");null==n&&(n="geo3D"),"geo3D"===n&&i(t,e)})),t.eachSeries((function(e){if("geo3D"===e.get("coordinateSystem")){if("series.map3D"===e.type)return;var n=e.getReferringComponents("geo3D").models[0];if(n||(n=t.getComponent("geo3D")),!n)throw new Error('geo "'+Pr.firstNotNull(e.get("geo3DIndex"),e.get("geo3DId"),0)+'" not found');e.coordinateSystem=n.coordinateSystem}})),n},createGeo3D:function(t){var e,n=t.get("map");return"string"===typeof n?(e=n,n=a["k"](n)):n&&n.features&&(n={geoJson:n}),null==e&&(e="GEO_ANONYMOUS_"+Gu++),new zu(e+Gu++,e,n&&n.geoJson,n&&n.specialAreas,t.get("nameMap"))}},Uu=Hu;function Wu(t){t.registerComponentModel(jl),t.registerComponentView(Lu),t.registerAction({type:"geo3DChangeCamera",event:"geo3dcamerachanged",update:"series:updateCamera"},(function(t,e){e.eachComponent({mainType:"geo3D",query:t},(function(e){e.setView(t)}))})),t.registerCoordinateSystem("geo3D",Uu)}function Xu(t,e){t.id=t.id||t.name||e+""}Object(a["v"])(Wu);var Zu=a["c"].extend({type:"globe",layoutMode:"box",coordinateSystem:null,init:function(){Zu.superApply(this,"init",arguments),a["w"].each(this.option.layers,(function(t,e){a["w"].merge(t,this.defaultLayerOption),Xu(t,e)}),this)},mergeOption:function(t){var e=this.option.layers;function n(t){return a["w"].reduce(t,(function(t,e,n){return Xu(e,n),t[e.id]=e,t}),{})}if(this.option.layers=null,Zu.superApply(this,"mergeOption",arguments),e&&e.length){var i=n(t.layers),r=n(e);for(var o in i)r[o]?a["w"].merge(r[o],i[o],!0):e.push(t.layers[o]);this.option.layers=e}a["w"].each(this.option.layers,(function(t){a["w"].merge(t,this.defaultLayerOption)}),this)},optionUpdated:function(){this.updateDisplacementHash()},defaultLayerOption:{show:!0,type:"overlay"},defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",baseColor:"#fff",baseTexture:"",heightTexture:"",displacementTexture:"",displacementScale:0,displacementQuality:"medium",globeRadius:100,globeOuterRadius:150,shading:"lambert",light:{main:{time:""}},atmosphere:{show:!1,offset:5,color:"#ffffff",glowPower:6,innerGlowPower:2},viewControl:{autoRotate:!0,panSensitivity:0,targetCoord:null},layers:[]},setDisplacementData:function(t,e,n){this.displacementData=t,this.displacementWidth=e,this.displacementHeight=n},getDisplacementTexture:function(){return this.get("displacementTexture")||this.get("heightTexture")},getDisplacemenScale:function(){var t=this.getDisplacementTexture(),e=this.get("displacementScale");return t&&"none"!==t||(e=0),e},hasDisplacement:function(){return this.getDisplacemenScale()>0},_displacementChanged:!0,_displacementScale:0,updateDisplacementHash:function(){var t=this.getDisplacementTexture(),e=this.getDisplacemenScale();this._displacementChanged=this._displacementTexture!==t||this._displacementScale!==e,this._displacementTexture=t,this._displacementScale=e},isDisplacementChanged:function(){return this._displacementChanged}});a["w"].merge(Zu.prototype,Fa),a["w"].merge(Zu.prototype,Ga),a["w"].merge(Zu.prototype,Ha),a["w"].merge(Zu.prototype,Dl);var qu=Zu,Yu=Math.PI,Ku=Math.sin,Qu=Math.cos,Ju=Math.tan,$u=Math.asin,tc=Math.atan2,ec=Yu/180,nc=864e5,ic=2440588,rc=2451545;function ac(t){return t.valueOf()/nc-.5+ic}function oc(t){return ac(t)-rc}var sc=23.4397*ec;function lc(t,e){return tc(Ku(t)*Qu(sc)-Ju(e)*Ku(sc),Qu(t))}function uc(t,e){return $u(Ku(e)*Qu(sc)+Qu(e)*Ku(sc)*Ku(t))}function cc(t,e,n){return tc(Ku(t),Qu(t)*Ku(e)-Ju(n)*Qu(e))}function hc(t,e,n){return $u(Ku(e)*Ku(n)+Qu(e)*Qu(n)*Qu(t))}function dc(t,e){return ec*(280.16+360.9856235*t)-e}function fc(t){return ec*(357.5291+.98560028*t)}function pc(t){var e=ec*(1.9148*Ku(t)+.02*Ku(2*t)+3e-4*Ku(3*t)),n=102.9372*ec;return t+e+n+Yu}function gc(t){var e=fc(t),n=pc(e);return{dec:uc(n,0),ra:lc(n,0)}}var mc={getPosition:function(t,e,n){var i=ec*-n,r=ec*e,a=oc(t),o=gc(a),s=dc(a,i)-o.ra;return{azimuth:cc(s,r,o.dec),altitude:hc(s,r,o.dec)}}},vc=mc,yc="@export ecgl.atmosphere.vertex\nattribute vec3 position: POSITION;\nattribute vec3 normal : NORMAL;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform mat4 normalMatrix : WORLDINVERSETRANSPOSE;\n\nvarying vec3 v_Normal;\n\nvoid main() {\n v_Normal = normalize((normalMatrix * vec4(normal, 0.0)).xyz);\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n@end\n\n\n@export ecgl.atmosphere.fragment\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform float glowPower;\nuniform vec3 glowColor;\n\nvarying vec3 v_Normal;\n\nvoid main() {\n float intensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor = vec4(glowColor, intensity * intensity);\n}\n@end";Ta.Shader["import"](la),Ta.Shader["import"](yc);var _c=a["d"].extend({type:"globe",__ecgl__:!0,_displacementScale:0,init:function(t,e){this.groupGL=new Ta.Node,this._sphereGeometry=new Ta.SphereGeometry({widthSegments:200,heightSegments:100,dynamic:!0}),this._overlayGeometry=new Ta.SphereGeometry({widthSegments:80,heightSegments:40}),this._planeGeometry=new Ta.PlaneGeometry,this._earthMesh=new Ta.Mesh({renderNormal:!0}),this._atmosphereMesh=new Ta.Mesh,this._atmosphereGeometry=new Ta.SphereGeometry({widthSegments:80,heightSegments:40}),this._atmosphereMaterial=new Ta.Material({shader:new Ta.Shader(Ta.Shader.source("ecgl.atmosphere.vertex"),Ta.Shader.source("ecgl.atmosphere.fragment")),transparent:!0}),this._atmosphereMesh.geometry=this._atmosphereGeometry,this._atmosphereMesh.material=this._atmosphereMaterial,this._atmosphereMesh.frontFace=Ta.Mesh.CW,this._lightRoot=new Ta.Node,this._sceneHelper=new uo,this._sceneHelper.initLight(this._lightRoot),this.groupGL.add(this._atmosphereMesh),this.groupGL.add(this._earthMesh),this._control=new Qa({zr:e.getZr()}),this._control.init(),this._layerMeshes={}},render:function(t,e,n){var i=t.coordinateSystem,r=t.get("shading");i.viewGL.add(this._lightRoot),t.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL),this._sceneHelper.setScene(i.viewGL.scene),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling"));var a=this._earthMesh;a.geometry=this._sphereGeometry;var o="ecgl."+r;a.material&&a.material.shader.name===o||(a.material=Ta.createMaterial(o)),Ta.setMaterialFromModel(r,a.material,t,n),["roughnessMap","metalnessMap","detailMap","normalMap"].forEach((function(t){var e=a.material.get(t);e&&(e.flipY=!1)})),a.material.set("color",Ta.parseColor(t.get("baseColor")));var s=.99*i.radius;if(a.scale.set(s,s,s),t.get("atmosphere.show")){a.material.define("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!1,this._atmosphereMaterial.setUniforms({glowPower:t.get("atmosphere.glowPower")||6,glowColor:t.get("atmosphere.color")||"#ffffff"}),a.material.setUniforms({glowPower:t.get("atmosphere.innerGlowPower")||2,glowColor:t.get("atmosphere.color")||"#ffffff"});var l=t.get("atmosphere.offset")||5;this._atmosphereMesh.scale.set(s+l,s+l,s+l)}else a.material.undefine("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!0;var u=a.material.setTextureImage("diffuseMap",t.get("baseTexture"),n,{flipY:!1,anisotropic:8});u&&u.surface&&u.surface.attachToMesh(a);var c=a.material.setTextureImage("bumpMap",t.get("heightTexture"),n,{flipY:!1,anisotropic:8});c&&c.surface&&c.surface.attachToMesh(a),a.material[t.get("postEffect.enable")?"define":"undefine"]("fragment","SRGB_DECODE"),this._updateLight(t,n),this._displaceVertices(t,n),this._updateViewControl(t,n),this._updateLayers(t,n)},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n)},_updateLayers:function(t,e){var n=t.coordinateSystem,i=t.get("layers"),r=n.radius,o=[],s=[],l=[],u=[];a["w"].each(i,(function(t){var i=new a["f"](t),c=i.get("type"),h=Ta.loadTexture(i.get("texture"),e,{flipY:!1,anisotropic:8});if(h.surface&&h.surface.attachToMesh(this._earthMesh),"blend"===c){var d=i.get("blendTo"),f=Pr.firstNotNull(i.get("intensity"),1);"emission"===d?(l.push(h),u.push(f)):(o.push(h),s.push(f))}else{var p=i.get("id"),g=this._layerMeshes[p];g||(g=this._layerMeshes[p]=new Ta.Mesh({geometry:this._overlayGeometry,castShadow:!1,ignorePicking:!0}));var m=i.get("shading");"lambert"===m?(g.material=g.__lambertMaterial||new Ta.Material({autoUpdateTextureStatus:!1,shader:Ta.createShader("ecgl.lambert"),transparent:!0,depthMask:!1}),g.__lambertMaterial=g.material):(g.material=g.__colorMaterial||new Ta.Material({autoUpdateTextureStatus:!1,shader:Ta.createShader("ecgl.color"),transparent:!0,depthMask:!1}),g.__colorMaterial=g.material),g.material.enableTexture("diffuseMap");var v=i.get("distance"),y=r+(null==v?n.radius/100:v);g.scale.set(y,y,y),r=y;var _=this._blankTexture||(this._blankTexture=Ta.createBlankTexture("rgba(255, 255, 255, 0)"));g.material.set("diffuseMap",_),Ta.loadTexture(i.get("texture"),e,{flipY:!1,anisotropic:8},(function(t){t.surface&&t.surface.attachToMesh(g),g.material.set("diffuseMap",t),e.getZr().refresh()})),i.get("show")?this.groupGL.add(g):this.groupGL.remove(g)}}),this);var c=this._earthMesh.material;c.define("fragment","LAYER_DIFFUSEMAP_COUNT",o.length),c.define("fragment","LAYER_EMISSIVEMAP_COUNT",l.length),c.set("layerDiffuseMap",o),c.set("layerDiffuseIntensity",s),c.set("layerEmissiveMap",l),c.set("layerEmissionIntensity",u);var h=t.getModel("debug.wireframe");if(h.get("show")){c.define("both","WIREFRAME_TRIANGLE");var d=Ta.parseColor(h.get("lineStyle.color")||"rgba(0,0,0,0.5)"),f=Pr.firstNotNull(h.get("lineStyle.width"),1);c.set("wireframeLineWidth",f),c.set("wireframeLineColor",d)}else c.undefine("both","WIREFRAME_TRIANGLE")},_updateViewControl:function(t,e){var n=t.coordinateSystem,i=t.getModel("viewControl"),r=(n.viewGL.camera,this);function a(){return{type:"globeChangeCamera",alpha:o.getAlpha(),beta:o.getBeta(),distance:o.getDistance()-n.radius,center:o.getCenter(),from:r.uid,globeId:t.id}}var o=this._control;o.setViewGL(n.viewGL);var s,l,u=i.get("targetCoord");null!=u&&(l=u[0]+90,s=u[1]),o.setFromViewControlModel(i,{baseDistance:n.radius,alpha:s,beta:l}),o.off("update"),o.on("update",(function(){e.dispatchAction(a())}))},_displaceVertices:function(t,e){var n=t.get("displacementQuality"),i=t.get("debug.wireframe.show"),r=t.coordinateSystem;if(t.isDisplacementChanged()||n!==this._displacementQuality||i!==this._showDebugWireframe){this._displacementQuality=n,this._showDebugWireframe=i;var a=this._sphereGeometry,o={low:100,medium:200,high:400,ultra:800}[n]||200,s=o/2;(a.widthSegments!==o||i)&&(a.widthSegments=o,a.heightSegments=s,a.build()),this._doDisplaceVertices(a,r),i&&a.generateBarycentric()}},_doDisplaceVertices:function(t,e){var n=t.attributes.position.value,i=t.attributes.texcoord0.value,r=t.__originalPosition;r&&r.length===n.length||(r=new Float32Array(n.length),r.set(n),t.__originalPosition=r);for(var a=e.displacementWidth,o=e.displacementHeight,s=e.displacementData,l=0;l<t.vertexCount;l++){var u=3*l,c=2*l,h=r[u+1],d=r[u+2],f=r[u+3],p=i[c++],g=i[c++],m=Math.round(p*(a-1)),v=Math.round(g*(o-1)),y=v*a+m,_=s?s[y]:0;n[u+1]=h+h*_,n[u+2]=d+d*_,n[u+3]=f+f*_}t.generateVertexNormals(),t.dirty(),t.updateBoundingBox()},_updateLight:function(t,e){var n=this._earthMesh;this._sceneHelper.updateLight(t);var i=this._sceneHelper.mainLight,r=t.get("light.main.time")||new Date,o=vc.getPosition(a["p"].parseDate(r),0,0),s=Math.cos(o.altitude);i.position.y=-s*Math.cos(o.azimuth),i.position.x=Math.sin(o.altitude),i.position.z=s*Math.sin(o.azimuth),i.lookAt(n.getWorldPosition())},dispose:function(t,e){this.groupGL.removeAll(),this._control.dispose()}}),bc=to.vec3;function xc(t){this.radius=t,this.viewGL=null,this.altitudeAxis,this.displacementData=null,this.displacementWidth,this.displacementHeight}xc.prototype={constructor:xc,dimensions:["lng","lat","alt"],type:"globe",containPoint:function(){},setDisplacementData:function(t,e,n){this.displacementData=t,this.displacementWidth=e,this.displacementHeight=n},_getDisplacementScale:function(t,e){var n=(t+180)/360*(this.displacementWidth-1),i=(90-e)/180*(this.displacementHeight-1),r=Math.round(n)+Math.round(i)*this.displacementWidth;return this.displacementData[r]},dataToPoint:function(t,e){var n=t[0],i=t[1],r=t[2]||0,a=this.radius;this.displacementData&&(a*=1+this._getDisplacementScale(n,i)),this.altitudeAxis&&(a+=this.altitudeAxis.dataToCoord(r)),n=n*Math.PI/180,i=i*Math.PI/180;var o=Math.cos(i)*a;return e=e||[],e[0]=-o*Math.cos(n+Math.PI),e[1]=Math.sin(i)*a,e[2]=o*Math.sin(n+Math.PI),e},pointToData:function(t,e){var n=t[0],i=t[1],r=t[2],a=bc.len(t);n/=a,i/=a,r/=a;var o=Math.asin(i),s=Math.atan2(r,-n);s<0&&(s=2*Math.PI+s);var l=180*o/Math.PI,u=180*s/Math.PI-180;return e=e||[],e[0]=u,e[1]=l,e[2]=a-this.radius,this.altitudeAxis&&(e[2]=this.altitudeAxis.coordToData(e[2])),e}};var wc=xc;function Oc(t,e){var n=document.createElement("canvas"),i=n.getContext("2d"),r=t.width,a=t.height;n.width=r,n.height=a,i.drawImage(t,0,0,r,a);for(var o=i.getImageData(0,0,r,a).data,s=new Float32Array(o.length/4),l=0;l<o.length/4;l++){var u=o[4*l];s[l]=u/255*e}return{data:s,width:r,height:a}}function Sc(t,e){var n=t.getBoxLayoutParams(),i=Object(Bo["g"])(n,{width:e.getWidth(),height:e.getHeight()});i.y=e.getHeight()-i.y-i.height,this.viewGL.setViewport(i.x,i.y,i.width,i.height,e.getDevicePixelRatio()),this.radius=t.get("globeRadius");var r=t.get("globeOuterRadius");this.altitudeAxis&&this.altitudeAxis.setExtent(0,r-this.radius)}function Tc(t,e){var n=[1/0,-1/0];if(t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData(),i=t.coordDimToDataDim("alt"),r=i&&i[0];if(r){var a=e.getDataExtent(r,!0);n[0]=Math.min(n[0],a[0]),n[1]=Math.max(n[1],a[1])}}}),this),n&&isFinite(n[1]-n[0])){var i=a["m"].createScale(n,{type:"value",min:"dataMin",max:"dataMax"});this.altitudeAxis=new a["a"]("altitude",i),this.resize(this.model,e)}}var Mc={dimensions:wc.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("globe",(function(t){t.__viewGL=t.__viewGL||new dl;var i=new wc;i.viewGL=t.__viewGL,t.coordinateSystem=i,i.model=t,n.push(i),i.resize=Sc,i.resize(t,e),i.update=Tc})),t.eachSeries((function(e){if("globe"===e.get("coordinateSystem")){var n=e.getReferringComponents("globe").models[0];if(n||(n=t.getComponent("globe")),!n)throw new Error('globe "'+Pr.firstNotNull(e.get("globe3DIndex"),e.get("globe3DId"),0)+'" not found');var i=n.coordinateSystem;e.coordinateSystem=i}})),t.eachComponent("globe",(function(t,n){var i=t.coordinateSystem,r=t.getDisplacementTexture(),a=t.getDisplacemenScale();if(t.isDisplacementChanged()){if(t.hasDisplacement()){var o=!0;Ta.loadTexture(r,e,(function(n){var i=n.image,r=Oc(i,a);t.setDisplacementData(r.data,r.width,r.height),o||e.dispatchAction({type:"globeUpdateDisplacment"})})),o=!1}else i.setDisplacementData(null,0,0);i.setDisplacementData(t.displacementData,t.displacementWidth,t.displacementHeight)}})),n}},Ac=Mc;function Cc(t){t.registerComponentModel(qu),t.registerComponentView(_c),t.registerCoordinateSystem("globe",Ac),t.registerAction({type:"globeChangeCamera",event:"globecamerachanged",update:"series:updateCamera"},(function(t,e){e.eachComponent({mainType:"globe",query:t},(function(e){e.setView(t)}))})),t.registerAction({type:"globeUpdateDisplacment",event:"globedisplacementupdated",update:"update"},(function(t,e){}))}Object(a["v"])(Cc);var Ic=["zoom","center","pitch","bearing"],Dc=a["c"].extend({type:"mapbox3D",layoutMode:"box",coordinateSystem:null,defaultOption:{zlevel:-10,style:"mapbox://styles/mapbox/light-v9",center:[0,0],zoom:0,pitch:0,bearing:0,light:{main:{alpha:20,beta:30}},altitudeScale:1,boxHeight:"auto"},getMapboxCameraOption:function(){var t=this;return Ic.reduce((function(e,n){return e[n]=t.get(n),e}),{})},setMapboxCameraOption:function(t){null!=t&&Ic.forEach((function(e){null!=t[e]&&(this.option[e]=t[e])}),this)},getMapbox:function(){return this._mapbox},setMapbox:function(t){this._mapbox=t}});a["w"].merge(Dc.prototype,Ga),a["w"].merge(Dc.prototype,Ha);var Lc=Dc;function Ec(t,e){if(this.id=t,this.zr=e,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute;left:0;right:0;top:0;bottom:0;",!mapboxgl)throw new Error("Mapbox GL library must be included. See https://www.mapbox.com/mapbox-gl-js/api/");this._mapbox=new mapboxgl.Map({container:this.dom}),this._initEvents()}Ec.prototype.setUnpainted=function(){},Ec.prototype.resize=function(){this._mapbox.resize()},Ec.prototype.getMapbox=function(){return this._mapbox},Ec.prototype.clear=function(){},Ec.prototype.refresh=function(){this._mapbox.resize()};var jc=["mousedown","mouseup","click","dblclick","mousemove","mousewheel","wheel","touchstart","touchend","touchmove","touchcancel"];Ec.prototype._initEvents=function(){var t=this._mapbox.getCanvasContainer();this._handlers=this._handlers||{contextmenu:function(t){return t.preventDefault(),!1}},jc.forEach((function(e){this._handlers[e]=function(e){var n={};for(var i in e)n[i]=e[i];n.bubbles=!1;var r=new e.constructor(e.type,n);t.dispatchEvent(r)},this.zr.dom.addEventListener(e,this._handlers[e])}),this),this.zr.dom.addEventListener("contextmenu",this._handlers.contextmenu)},Ec.prototype.dispose=function(){jc.forEach((function(t){this.zr.dom.removeEventListener(t,this._handlers[t])}),this)};var Pc=Ec,Nc="\n@export ecgl.displayShadow.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n@import ecgl.common.attributes\n\nvarying vec3 v_WorldPosition;\n\nvarying vec3 v_Normal;\n\nvoid main()\n{\n @import ecgl.common.uv.main\n v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);\n\n v_WorldPosition = (world * vec4(position, 1.0)).xyz;\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n\n@end\n\n\n@export ecgl.displayShadow.fragment\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform float roughness: 0.2;\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n@import ecgl.common.ssaoMap.header\n\n@import clay.plugin.compute_shadow_map\n\nvoid main()\n{\n float shadow = 1.0;\n\n @import ecgl.common.ssaoMap.main\n\n#if defined(DIRECTIONAL_LIGHT_COUNT) && defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n for (int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) {\n shadow = min(shadow, shadowContribsDir[i] * 0.5 + 0.5);\n }\n#endif\n\n shadow *= 0.5 + ao * 0.5;\n shadow = clamp(shadow, 0.0, 1.0);\n\n gl_FragColor = vec4(vec3(0.0), 1.0 - shadow);\n}\n\n@end";Ta.Shader.import(Nc);var Rc=a["d"].extend({type:"mapbox3D",__ecgl__:!0,init:function(t,e){var n=e.getZr();this._zrLayer=new Pc("mapbox3D",n),n.painter.insertLayer(-1e3,this._zrLayer),this._lightRoot=new Ta.Node,this._sceneHelper=new uo(this._lightRoot),this._sceneHelper.initLight(this._lightRoot);var i=this._zrLayer.getMapbox(),r=this._dispatchInteractAction.bind(this,e,i);["zoom","rotate","drag","pitch","rotate","move"].forEach((function(t){i.on(t,r)})),this._groundMesh=new Ta.Mesh({geometry:new Ta.PlaneGeometry,material:new Ta.Material({shader:new Ta.Shader({vertex:Ta.Shader.source("ecgl.displayShadow.vertex"),fragment:Ta.Shader.source("ecgl.displayShadow.fragment")}),depthMask:!1}),renderOrder:-100,culling:!1,castShadow:!1,$ignorePicking:!0,renderNormal:!0})},render:function(t,e,n){var i=this._zrLayer.getMapbox(),r=t.get("style"),a=JSON.stringify(r);a!==this._oldStyleStr&&r&&i.setStyle(r),this._oldStyleStr=a,i.setCenter(t.get("center")),i.setZoom(t.get("zoom")),i.setPitch(t.get("pitch")),i.setBearing(t.get("bearing")),t.setMapbox(i);var o=t.coordinateSystem;o.viewGL.scene.add(this._lightRoot),o.viewGL.add(this._groundMesh),this._updateGroundMesh(),this._sceneHelper.setScene(o.viewGL.scene),this._sceneHelper.updateLight(t),o.viewGL.setPostEffect(t.getModel("postEffect"),n),o.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling")),this._mapbox3DModel=t},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n),t.coordinateSystem.viewGL.scene.traverse((function(t){t.material&&(t.material.define("fragment","NORMAL_UP_AXIS",2),t.material.define("fragment","NORMAL_FRONT_AXIS",1))}))},updateCamera:function(t,e,n,i){t.coordinateSystem.setCameraOption(i),this._updateGroundMesh(),n.getZr().refresh()},_dispatchInteractAction:function(t,e,n){t.dispatchAction({type:"mapbox3DChangeCamera",pitch:e.getPitch(),zoom:e.getZoom(),center:e.getCenter().toArray(),bearing:e.getBearing(),mapbox3DId:this._mapbox3DModel&&this._mapbox3DModel.id})},_updateGroundMesh:function(){if(this._mapbox3DModel){var t=this._mapbox3DModel.coordinateSystem,e=t.dataToPoint(t.center);this._groundMesh.position.set(e[0],e[1],-.001);var n=new Ta.Plane(new Ta.Vector3(0,0,1),0),i=t.viewGL.camera.castRay(new Ta.Vector2(-1,-1)),r=t.viewGL.camera.castRay(new Ta.Vector2(1,1)),a=i.intersectPlane(n),o=r.intersectPlane(n),s=a.dist(o)/t.viewGL.rootNode.scale.x;this._groundMesh.scale.set(s,s,1)}},dispose:function(t,e){this._zrLayer&&this._zrLayer.dispose(),e.getZr().painter.delLayer(-1e3)}}),kc=to.mat4,Bc=512,zc=.6435011087932844,Vc=Math.PI,Fc=.1;function Gc(){this.width=0,this.height=0,this.altitudeScale=1,this.boxHeight="auto",this.altitudeExtent,this.bearing=0,this.pitch=0,this.center=[0,0],this._origin,this.zoom=0,this._initialZoom,this.maxPitch=60,this.zoomOffset=0}Gc.prototype={constructor:Gc,dimensions:["lng","lat","alt"],containPoint:function(){},setCameraOption:function(t){this.bearing=t.bearing,this.pitch=t.pitch,this.center=t.center,this.zoom=t.zoom,this._origin||(this._origin=this.projectOnTileWithScale(this.center,Bc)),null==this._initialZoom&&(this._initialZoom=this.zoom),this.updateTransform()},updateTransform:function(){if(this.height){var t=.5/Math.tan(zc/2)*this.height*Fc,e=Math.max(Math.min(this.pitch,this.maxPitch),0)/180*Math.PI,n=zc/2,i=Math.PI/2+e,r=Math.sin(n)*t/Math.sin(Math.PI-i-n),a=Math.cos(Math.PI/2-e)*r+t,o=1.1*a;this.pitch>50&&(o=1e3);var s=[];kc.perspective(s,zc,this.width/this.height,1,o),this.viewGL.camera.projectionMatrix.setArray(s),this.viewGL.camera.decomposeProjectionMatrix();s=kc.identity([]);var l=this.dataToPoint(this.center);kc.scale(s,s,[1,-1,1]),kc.translate(s,s,[0,0,-t]),kc.rotateX(s,s,e),kc.rotateZ(s,s,-this.bearing/180*Math.PI),kc.translate(s,s,[-l[0]*this.getScale()*Fc,-l[1]*this.getScale()*Fc,0]),this.viewGL.camera.viewMatrix.array=s;var u=[];kc.invert(u,s),this.viewGL.camera.worldTransform.array=u,this.viewGL.camera.decomposeWorldTransform();var c,h=Bc*this.getScale();if(this.altitudeExtent&&!isNaN(this.boxHeight)){var d=this.altitudeExtent[1]-this.altitudeExtent[0];c=this.boxHeight/d*this.getScale()/Math.pow(2,this._initialZoom-this.zoomOffset)}else c=h/(2*Math.PI*6378e3*Math.abs(Math.cos(this.center[1]*(Math.PI/180))))*this.altitudeScale*Fc;this.viewGL.rootNode.scale.set(this.getScale()*Fc,this.getScale()*Fc,c)}},getScale:function(){return Math.pow(2,this.zoom-this.zoomOffset)},projectOnTile:function(t,e){return this.projectOnTileWithScale(t,this.getScale()*Bc,e)},projectOnTileWithScale:function(t,e,n){var i=t[0],r=t[1],a=i*Vc/180,o=r*Vc/180,s=e*(a+Vc)/(2*Vc),l=e*(Vc-Math.log(Math.tan(Vc/4+.5*o)))/(2*Vc);return n=n||[],n[0]=s,n[1]=l,n},unprojectFromTile:function(t,e){return this.unprojectOnTileWithScale(t,this.getScale()*Bc,e)},unprojectOnTileWithScale:function(t,e,n){var i=t[0],r=t[1],a=i/e*(2*Vc)-Vc,o=2*(Math.atan(Math.exp(Vc-r/e*(2*Vc)))-Vc/4);return n=n||[],n[0]=180*a/Vc,n[1]=180*o/Vc,n},dataToPoint:function(t,e){return e=this.projectOnTileWithScale(t,Bc,e),e[0]-=this._origin[0],e[1]-=this._origin[1],e[2]=isNaN(t[2])?0:t[2],isNaN(t[2])||(e[2]=t[2],this.altitudeExtent&&(e[2]-=this.altitudeExtent[0])),e}};var Hc=Gc;function Uc(){Hc.apply(this,arguments)}Uc.prototype=new Hc,Uc.prototype.constructor=Uc,Uc.prototype.type="mapbox3D";var Wc=Uc,Xc=function(t,e,n){function i(t,e){var n=e.getWidth(),i=e.getHeight(),r=e.getDevicePixelRatio();this.viewGL.setViewport(0,0,n,i,r),this.width=n,this.height=i,this.altitudeScale=t.get("altitudeScale"),this.boxHeight=t.get("boxHeight")}function r(t,e){if("auto"!==this.model.get("boxHeight")){var n=[1/0,-1/0];t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData(),i=t.coordDimToDataDim("alt")[0];if(i){var r=e.getDataExtent(i,!0);n[0]=Math.min(n[0],r[0]),n[1]=Math.max(n[1],r[1])}}}),this),n&&isFinite(n[1]-n[0])&&(this.altitudeExtent=n)}}return{dimensions:e.prototype.dimensions,create:function(a,o){var s=[];return a.eachComponent(t,(function(t){var n=t.__viewGL;n||(n=t.__viewGL=new dl,n.setRootNode(new Ta.Node));var a=new e;a.viewGL=t.__viewGL,a.resize=i,a.resize(t,o),s.push(a),t.coordinateSystem=a,a.model=t,a.update=r})),a.eachSeries((function(e){if(e.get("coordinateSystem")===t){var n=e.getReferringComponents(t).models[0];if(n||(n=a.getComponent(t)),!n)throw new Error(t+' "'+Pr.firstNotNull(e.get(t+"Index"),e.get(t+"Id"),0)+'" not found');e.coordinateSystem=n.coordinateSystem}})),n&&n(s,a,o),s}}},Zc=Xc("mapbox3D",Wc,(function(t){t.forEach((function(t){t.setCameraOption(t.model.getMapboxCameraOption())}))})),qc=Zc;function Yc(t){t.registerComponentModel(Lc),t.registerComponentView(Rc),t.registerCoordinateSystem("mapbox3D",qc),t.registerAction({type:"mapbox3DChangeCamera",event:"mapbox3dcamerachanged",update:"mapbox3D:updateCamera"},(function(t,e){e.eachComponent({mainType:"mapbox3D",query:t},(function(e){e.setMapboxCameraOption(t)}))}))}Object(a["v"])(Yc);var Kc=["zoom","center","pitch","bearing"],Qc=a["c"].extend({type:"maptalks3D",layoutMode:"box",coordinateSystem:null,defaultOption:{zlevel:-10,urlTemplate:"http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png",attribution:'© <a href="http://osm.org">OpenStreetMap</a> contributors, © <a href="https://carto.com/">CARTO</a>',center:[0,0],zoom:0,pitch:0,bearing:0,light:{main:{alpha:20,beta:30}},altitudeScale:1,boxHeight:"auto"},getMaptalksCameraOption:function(){var t=this;return Kc.reduce((function(e,n){return e[n]=t.get(n),e}),{})},setMaptalksCameraOption:function(t){null!=t&&Kc.forEach((function(e){null!=t[e]&&(this.option[e]=t[e])}),this)},getMaptalks:function(){return this._maptalks},setMaptalks:function(t){this._maptalks=t}});a["w"].merge(Qc.prototype,Ga),a["w"].merge(Qc.prototype,Ha);var Jc=Qc;function $c(t,e,n,i){if(this.id=t,this.zr=e,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute;left:0;right:0;top:0;bottom:0;",!maptalks)throw new Error("Maptalks library must be included. See https://maptalks.org");this._maptalks=new maptalks.Map(this.dom,{center:n,zoom:i,doubleClickZoom:!1,fog:!1}),this._initEvents()}$c.prototype.setUnpainted=function(){},$c.prototype.resize=function(){this._maptalks.checkSize()},$c.prototype.getMaptalks=function(){return this._maptalks},$c.prototype.clear=function(){},$c.prototype.refresh=function(){this._maptalks.checkSize()};var th=["mousedown","mouseup","click","dblclick","mousemove","mousewheel","DOMMouseScroll","touchstart","touchend","touchmove","touchcancel"];$c.prototype._initEvents=function(){var t=this.dom;this._handlers=this._handlers||{contextmenu:function(t){return t.preventDefault(),!1}},th.forEach((function(e){this._handlers[e]=function(n){var i={};for(var r in n)i[r]=n[r];i.bubbles=!1;var a=new n.constructor(n.type,i);"mousewheel"===e||"DOMMouseScroll"===e?t.dispatchEvent(a):t.firstElementChild.dispatchEvent(a)},this.zr.dom.addEventListener(e,this._handlers[e])}),this),this.zr.dom.addEventListener("contextmenu",this._handlers.contextmenu)},$c.prototype.dispose=function(){th.forEach((function(t){this.zr.dom.removeEventListener(t,this._handlers[t])}),this),this._maptalks.remove()};var eh=$c;Ta.Shader.import(Nc);var nh=a["d"].extend({type:"maptalks3D",__ecgl__:!0,init:function(t,e){this._groundMesh=new Ta.Mesh({geometry:new Ta.PlaneGeometry,material:new Ta.Material({shader:new Ta.Shader({vertex:Ta.Shader.source("ecgl.displayShadow.vertex"),fragment:Ta.Shader.source("ecgl.displayShadow.fragment")}),depthMask:!1}),renderOrder:-100,culling:!1,castShadow:!1,$ignorePicking:!0,renderNormal:!0})},_initMaptalksLayer:function(t,e){var n=e.getZr();this._zrLayer=new eh("maptalks3D",n,t.get("center"),t.get("zoom")),n.painter.insertLayer(-1e3,this._zrLayer),this._lightRoot=new Ta.Node,this._sceneHelper=new uo(this._lightRoot),this._sceneHelper.initLight(this._lightRoot);var i=this._zrLayer.getMaptalks(),r=this._dispatchInteractAction.bind(this,e,i);["zoomend","zooming","zoomstart","dragrotating","pitch","pitchend","movestart","moving","moveend","resize","touchstart","touchmove","touchend","animating"].forEach((function(t){i.on(t,r)}))},render:function(t,e,n){this._zrLayer||this._initMaptalksLayer(t,n);var i=this._zrLayer.getMaptalks(),r=t.get("urlTemplate"),a=i.getBaseLayer();r!==this._oldUrlTemplate&&(a?a.setOptions({urlTemplate:r,attribution:t.get("attribution")}):(a=new maptalks.TileLayer("maptalks-echarts-gl-baselayer",{urlTemplate:r,subdomains:["a","b","c"],attribution:t.get("attribution")}),i.setBaseLayer(a))),this._oldUrlTemplate=r,i.setCenter(t.get("center")),i.setZoom(t.get("zoom"),{animation:!1}),i.setPitch(t.get("pitch")),i.setBearing(t.get("bearing")),t.setMaptalks(i);var o=t.coordinateSystem;o.viewGL.scene.add(this._lightRoot),o.viewGL.add(this._groundMesh),this._updateGroundMesh(),this._sceneHelper.setScene(o.viewGL.scene),this._sceneHelper.updateLight(t),o.viewGL.setPostEffect(t.getModel("postEffect"),n),o.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling")),this._maptalks3DModel=t},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n),t.coordinateSystem.viewGL.scene.traverse((function(t){t.material&&(t.material.define("fragment","NORMAL_UP_AXIS",2),t.material.define("fragment","NORMAL_FRONT_AXIS",1))}))},updateCamera:function(t,e,n,i){t.coordinateSystem.setCameraOption(i),this._updateGroundMesh(),n.getZr().refresh()},_dispatchInteractAction:function(t,e,n){t.dispatchAction({type:"maptalks3DChangeCamera",pitch:e.getPitch(),zoom:rh(e.getResolution())+1,center:e.getCenter().toArray(),bearing:e.getBearing(),maptalks3DId:this._maptalks3DModel&&this._maptalks3DModel.id})},_updateGroundMesh:function(){if(this._maptalks3DModel){var t=this._maptalks3DModel.coordinateSystem,e=t.dataToPoint(t.center);this._groundMesh.position.set(e[0],e[1],-.001);var n=new Ta.Plane(new Ta.Vector3(0,0,1),0),i=t.viewGL.camera.castRay(new Ta.Vector2(-1,-1)),r=t.viewGL.camera.castRay(new Ta.Vector2(1,1)),a=i.intersectPlane(n),o=r.intersectPlane(n),s=a.dist(o)/t.viewGL.rootNode.scale.x;this._groundMesh.scale.set(s,s,1)}},dispose:function(t,e){this._zrLayer&&this._zrLayer.dispose(),e.getZr().painter.delLayer(-1e3)}});const ih=12756274*Math.PI/(256*Math.pow(2,20));function rh(t){return 19-Math.log(t/ih)/Math.LN2}function ah(){Hc.apply(this,arguments),this.maxPitch=85,this.zoomOffset=1}ah.prototype=new Hc,ah.prototype.constructor=ah,ah.prototype.type="maptalks3D";var oh=ah,sh=Xc("maptalks3D",oh,(function(t){t.forEach((function(t){t.setCameraOption(t.model.getMaptalksCameraOption())}))})),lh=sh;function uh(t){t.registerComponentModel(Jc),t.registerComponentView(nh),t.registerCoordinateSystem("maptalks3D",lh),t.registerAction({type:"maptalks3DChangeCamera",event:"maptalks3dcamerachanged",update:"maptalks3D:updateCamera"},(function(t,e){e.eachComponent({mainType:"maptalks3D",query:t},(function(e){e.setMaptalksCameraOption(t)}))}))}Object(a["v"])(uh);var ch=to.vec3,hh=a["m"].dataStack.isDimensionStacked;function dh(t){var e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function fh(t,e){var n=t.getData(),i=t.get("barSize");if(null==i){var r,o,s=e.size,l=e.getAxis("x"),u=e.getAxis("y");r="category"===l.type?.7*l.getBandWidth():.6*Math.round(s[0]/Math.sqrt(n.count())),o="category"===u.type?.7*u.getBandWidth():.6*Math.round(s[1]/Math.sqrt(n.count())),i=[r,o]}else a["w"].isArray(i)||(i=[i,i]);var c=e.getAxis("z").scale.getExtent(),h=dh(c),d=["x","y","z"].map((function(e){return t.coordDimToDataDim(e)[0]})),f=hh(n,d[2]),p=f?n.getCalculationInfo("stackResultDimension"):d[2];n.each(d,(function(t,r,a,o){var s=n.get(p,o),l=f?s-a:h?0:c[0],u=e.dataToPoint([t,r,l]),d=e.dataToPoint([t,r,s]),g=ch.dist(u,d),m=[0,d[1]<u[1]?-1:1,0];0===Math.abs(g)&&(g=.1);var v=[i[0],g,i[1]];n.setItemLayout(o,[u,m,v])})),n.setLayout("orient",[1,0,0])}var ph=fh,gh=function(t,e,n){for(var i=t.getDataExtent(e),r=t.getDataExtent(n),a=i[1]-i[0]||i[0],o=r[1]-r[0]||r[0],s=50,l=new Uint8Array(s*s),u=0;u<t.count();u++){var c=t.get(e,u),h=t.get(n,u),d=Math.floor((c-i[0])/a*(s-1)),f=Math.floor((h-r[0])/o*(s-1)),p=f*s+d;l[p]=l[p]||1}var g=0;for(u=0;u<l.length;u++)l[u]&&g++;return g/l.length},mh=to.vec3,vh=a["m"].dataStack.isDimensionStacked;function yh(t,e){var n=t.getData(),i=t.get("minHeight")||0,r=t.get("barSize"),o=["lng","lat","alt"].map((function(e){return t.coordDimToDataDim(e)[0]}));if(null==r){var s=e.radius*Math.PI,l=gh(n,o[0],o[1]);r=[s/Math.sqrt(n.count()/l),s/Math.sqrt(n.count()/l)]}else a["w"].isArray(r)||(r=[r,r]);var u=xh(n,o);n.each(o,(function(t,a,o,s){var l=n.get(u.dimension,s),c=u.isStacked?l-o:e.altitudeAxis.scale.getExtent()[0],h=Math.max(e.altitudeAxis.dataToCoord(o),i),d=e.dataToPoint([t,a,c]),f=e.dataToPoint([t,a,l]),p=mh.sub([],f,d);mh.normalize(p,p);var g=[r[0],h,r[1]];n.setItemLayout(s,[d,p,g])})),n.setLayout("orient",ye.UP.array)}function _h(t,e){var n=t.getData(),i=t.get("barSize"),r=t.get("minHeight")||0,o=["lng","lat","alt"].map((function(e){return t.coordDimToDataDim(e)[0]}));if(null==i){var s=Math.min(e.size[0],e.size[2]),l=gh(n,o[0],o[1]);i=[s/Math.sqrt(n.count()/l),s/Math.sqrt(n.count()/l)]}else a["w"].isArray(i)||(i=[i,i]);var u=[0,1,0],c=xh(n,o);n.each(o,(function(t,a,o,s){var l=n.get(c.dimension,s),h=c.isStacked?l-o:e.altitudeAxis.scale.getExtent()[0],d=Math.max(e.altitudeAxis.dataToCoord(o),r),f=e.dataToPoint([t,a,h]),p=[i[0],d,i[1]];n.setItemLayout(s,[f,u,p])})),n.setLayout("orient",[1,0,0])}function bh(t,e){var n=t.getData(),i=t.coordDimToDataDim("lng")[0],r=t.coordDimToDataDim("lat")[0],o=t.coordDimToDataDim("alt")[0],s=t.get("barSize"),l=t.get("minHeight")||0;if(null==s){var u=n.getDataExtent(i),c=n.getDataExtent(r),h=e.dataToPoint([u[0],c[0]]),d=e.dataToPoint([u[1],c[1]]),f=Math.min(Math.abs(h[0]-d[0]),Math.abs(h[1]-d[1]))||1,p=gh(n,i,r);s=[f/Math.sqrt(n.count()/p),f/Math.sqrt(n.count()/p)]}else a["w"].isArray(s)||(s=[s,s]),s[0]/=e.getScale()/16,s[1]/=e.getScale()/16;var g=[0,0,1],m=[i,r,o],v=xh(n,m);n.each(m,(function(t,i,r,a){var o=n.get(v.dimension,a),u=v.isStacked?o-r:0,c=e.dataToPoint([t,i,u]),h=e.dataToPoint([t,i,o]),d=Math.max(h[2]-c[2],l),f=[s[0],d,s[1]];n.setItemLayout(a,[c,g,f])})),n.setLayout("orient",[1,0,0])}function xh(t,e){var n=vh(t,e[2]);return{dimension:n?t.getCalculationInfo("stackResultDimension"):e[2],isStacked:n}}function wh(t){t.registerLayout((function(t,e){t.eachSeriesByType("bar3D",(function(t){var e=t.coordinateSystem,n=e&&e.type;"globe"===n?yh(t,e):"cartesian3D"===n?ph(t,e):"geo3D"===n?_h(t,e):("mapbox3D"===n||"maptalks3D"===n)&&bh(t,e)}))}))}var Oh={getFormattedLabel:function(t,e,n,i,r){n=n||"normal";var o=t.getData(i),s=o.getItemModel(e),l=t.getDataParams(e,i);null!=r&&l.value instanceof Array&&(l.value=l.value[r]);var u,c=s.get("normal"===n?["label","formatter"]:["emphasis","label","formatter"]);return null==c&&(c=s.get(["label","formatter"])),"function"===typeof c?(l.status=n,u=c(l)):"string"===typeof c&&(u=a["i"].formatTpl(c,l)),u},normalizeToArray:function(t){return t instanceof Array?t:null==t?[]:[t]}},Sh=Oh;function Th(t,e){var n=[];return a["w"].each(t.dimensions,(function(i){var r=t.getDimensionInfo(i),a=r.otherDims,o=a[e];null!=o&&!1!==o&&(n[o]=r.name)})),n}var Mh=function(t,e,n){function i(t){var i=!0,o=[],s=Th(r,"tooltip");function l(t,e){var s=r.getDimensionInfo(e);if(s&&!1!==s.otherDims.tooltip){var l=s.type,u=(i?"- "+(s.tooltipName||s.name)+": ":"")+("ordinal"===l?t+"":"time"===l?n?"":a["i"].formatTime("yyyy/MM/dd hh:mm:ss",t):a["i"].addCommas(t));u&&o.push(a["i"].encodeHTML(u))}}return s.length?a["w"].each(s,(function(t){l(r.get(t,e),t)})):a["w"].each(t,l),(i?"<br/>":"")+o.join(i?"<br/>":", ")}var r=t.getData(),o=t.getRawValue(e),s=a["w"].isArray(o)?i(o):a["i"].encodeHTML(a["i"].addCommas(o)),l=r.getName(e),u=wu(r,e);a["w"].isObject(u)&&u.colorStops&&(u=(u.colorStops[0]||{}).color),u=u||"transparent";var c=a["i"].getTooltipMarker(u),h=t.name;return"\0-"===h&&(h=""),h=h?a["i"].encodeHTML(h)+(n?": ":"<br/>"):"",n?c+h+s:h+c+(l?a["i"].encodeHTML(l)+": "+s:s)},Ah=function(t,e,n){n=n||t.getSource();var i=e||a["j"](t.get("coordinateSystem"))||["x","y","z"],r=a["m"].createDimensions(n,{dimensionsDefine:n.dimensionsDefine||t.get("dimensions"),encodeDefine:n.encodeDefine||t.get("encode"),coordDimensions:i.map((function(e){var n=t.getReferringComponents(e+"Axis3D").models[0];return{type:n&&"category"===n.get("type")?"ordinal":"float",name:e}}))});"cartesian3D"===t.get("coordinateSystem")&&r.forEach((function(e){if(i.indexOf(e.coordDim)>=0){var n=t.getReferringComponents(e.coordDim+"Axis3D").models[0];n&&"category"===n.get("type")&&(e.ordinalMeta=n.getOrdinalMeta())}}));var o=a["m"].dataStack.enableDataStack(t,r,{byIndex:!0,stackedCoordDimension:"z"}),s=new a["e"](r,t);return s.setCalculationInfo(o),s.initData(n),s},Ch=a["g"].extend({type:"series.bar3D",dependencies:["globe"],visualStyleAccessPathvisu:"itemStyle",getInitialData:function(t,e){return Ah(this)},getFormattedLabel:function(t,e,n,i){var r=Sh.getFormattedLabel(this,t,e,n,i);return null==r&&(r=this.getData().get("z",t)),r},formatTooltip:function(t){return Mh(this,t)},defaultOption:{coordinateSystem:"cartesian3D",globeIndex:0,grid3DIndex:0,zlevel:-10,bevelSize:0,bevelSmoothness:2,onGridPlane:"xy",shading:"color",minHeight:0,itemStyle:{opacity:1},label:{show:!1,distance:2,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},emphasis:{label:{show:!0}},animationDurationUpdate:500}});a["w"].merge(Ch.prototype,Dl);var Ih=Ch,Dh=to.vec3,Lh=to.mat3,Eh=bn.extend((function(){return{attributes:{position:new bn.Attribute("position","float",3,"POSITION"),normal:new bn.Attribute("normal","float",3,"NORMAL"),color:new bn.Attribute("color","float",4,"COLOR"),prevPosition:new bn.Attribute("prevPosition","float",3),prevNormal:new bn.Attribute("prevNormal","float",3)},dynamic:!0,enableNormal:!1,bevelSize:1,bevelSegments:0,_dataIndices:null,_vertexOffset:0,_triangleOffset:0}}),{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0},setBarCount:function(t){var e=this.enableNormal,n=this.getBarVertexCount()*t,i=this.getBarTriangleCount()*t;this.vertexCount!==n&&(this.attributes.position.init(n),e?this.attributes.normal.init(n):this.attributes.normal.value=null,this.attributes.color.init(n)),this.triangleCount!==i&&(this.indices=n>65535?new Uint32Array(3*i):new Uint16Array(3*i),this._dataIndices=new Uint32Array(n))},getBarVertexCount:function(){var t=this.bevelSize>0?this.bevelSegments:0;return t>0?this._getBevelBarVertexCount(t):this.enableNormal?24:8},getBarTriangleCount:function(){var t=this.bevelSize>0?this.bevelSegments:0;return t>0?this._getBevelBarTriangleCount(t):12},_getBevelBarVertexCount:function(t){return 4*(t+1)*(t+1)*2},_getBevelBarTriangleCount:function(t){var e=4*t+3,n=2*t+1;return(e+1)*n*2+4},setColor:function(t,e){for(var n=this.getBarVertexCount(),i=n*t,r=n*(t+1),a=i;a<r;a++)this.attributes.color.set(a,e);this.dirtyAttribute("color")},getDataIndexOfVertex:function(t){return this._dataIndices?this._dataIndices[t]:null},addBar:function(){for(var t=Dh.create,e=Dh.scaleAndAdd,n=t(),i=t(),r=t(),a=t(),o=t(),s=t(),l=t(),u=[],c=[],h=0;h<8;h++)u[h]=t();var d=[[0,1,5,4],[2,3,7,6],[4,5,6,7],[3,2,1,0],[0,4,7,3],[1,2,6,5]],f=[0,1,2,0,2,3],p=[];for(h=0;h<d.length;h++)for(var g=d[h],m=0;m<2;m++){for(var v=[],y=0;y<3;y++)v.push(g[f[3*m+y]]);p.push(v)}return function(t,h,g,m,v,y){var _=this._vertexOffset;if(this.bevelSize>0&&this.bevelSegments>0)this._addBevelBar(t,h,g,m,this.bevelSize,this.bevelSegments,v);else{Dh.copy(r,h),Dh.normalize(r,r),Dh.cross(a,g,r),Dh.normalize(a,a),Dh.cross(i,r,a),Dh.normalize(a,a),Dh.negate(o,i),Dh.negate(s,r),Dh.negate(l,a),e(u[0],t,i,m[0]/2),e(u[0],u[0],a,m[2]/2),e(u[1],t,i,m[0]/2),e(u[1],u[1],l,m[2]/2),e(u[2],t,o,m[0]/2),e(u[2],u[2],l,m[2]/2),e(u[3],t,o,m[0]/2),e(u[3],u[3],a,m[2]/2),e(n,t,r,m[1]),e(u[4],n,i,m[0]/2),e(u[4],u[4],a,m[2]/2),e(u[5],n,i,m[0]/2),e(u[5],u[5],l,m[2]/2),e(u[6],n,o,m[0]/2),e(u[6],u[6],l,m[2]/2),e(u[7],n,o,m[0]/2),e(u[7],u[7],a,m[2]/2);var b=this.attributes;if(this.enableNormal){c[0]=i,c[1]=o,c[2]=r,c[3]=s,c[4]=a,c[5]=l;for(var x=this._vertexOffset,w=0;w<d.length;w++){for(var O=3*this._triangleOffset,S=0;S<6;S++)this.indices[O++]=x+f[S];x+=4,this._triangleOffset+=2}for(w=0;w<d.length;w++){var T=c[w];for(S=0;S<4;S++){var M=d[w][S];b.position.set(this._vertexOffset,u[M]),b.normal.set(this._vertexOffset,T),b.color.set(this._vertexOffset++,v)}}}else{for(w=0;w<p.length;w++){for(O=3*this._triangleOffset,S=0;S<3;S++)this.indices[O+S]=p[w][S]+this._vertexOffset;this._triangleOffset++}for(w=0;w<u.length;w++)b.position.set(this._vertexOffset,u[w]),b.color.set(this._vertexOffset++,v)}}var A=this._vertexOffset;for(w=_;w<A;w++)this._dataIndices[w]=y}}(),_addBevelBar:function(){var t=Dh.create(),e=Dh.create(),n=Dh.create(),i=Lh.create(),r=[],a=[1,-1,-1,1],o=[1,1,-1,-1],s=[2,0];return function(l,u,c,h,d,f,p){Dh.copy(e,u),Dh.normalize(e,e),Dh.cross(n,c,e),Dh.normalize(n,n),Dh.cross(t,e,n),Dh.normalize(n,n),i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=e[0],i[4]=e[1],i[5]=e[2],i[6]=n[0],i[7]=n[1],i[8]=n[2],d=Math.min(h[0],h[2])/2*d;for(var g=0;g<3;g++)r[g]=Math.max(h[g]-2*d,0);var m=(h[0]-r[0])/2,v=(h[1]-r[1])/2,y=(h[2]-r[2])/2,_=[],b=[],x=this._vertexOffset,w=[];for(g=0;g<2;g++){w[g]=w[g]=[];for(var O=0;O<=f;O++)for(var S=0;S<4;S++){(0===O&&0===g||1===g&&O===f)&&w[g].push(x);for(var T=0;T<=f;T++){var M=T/f*Math.PI/2+Math.PI/2*S,A=O/f*Math.PI/2+Math.PI/2*g;b[0]=m*Math.cos(M)*Math.sin(A),b[1]=v*Math.cos(A),b[2]=y*Math.sin(M)*Math.sin(A),_[0]=b[0]+a[S]*r[0]/2,_[1]=b[1]+v+s[g]*r[1]/2,_[2]=b[2]+o[S]*r[2]/2,Math.abs(m-v)<1e-6&&Math.abs(v-y)<1e-6||(b[0]/=m*m,b[1]/=v*v,b[2]/=y*y),Dh.normalize(b,b),Dh.transformMat3(_,_,i),Dh.transformMat3(b,b,i),Dh.add(_,_,l),this.attributes.position.set(x,_),this.enableNormal&&this.attributes.normal.set(x,b),this.attributes.color.set(x,p),x++}}}var C=4*f+3,I=2*f+1,D=C+1;for(S=0;S<I;S++)for(g=0;g<=C;g++){var L=S*D+g+this._vertexOffset,E=S*D+(g+1)%D+this._vertexOffset,j=(S+1)*D+(g+1)%D+this._vertexOffset,P=(S+1)*D+g+this._vertexOffset;this.setTriangleIndices(this._triangleOffset++,[j,L,E]),this.setTriangleIndices(this._triangleOffset++,[j,P,L])}this.setTriangleIndices(this._triangleOffset++,[w[0][0],w[0][2],w[0][1]]),this.setTriangleIndices(this._triangleOffset++,[w[0][0],w[0][3],w[0][2]]),this.setTriangleIndices(this._triangleOffset++,[w[1][0],w[1][1],w[1][2]]),this.setTriangleIndices(this._triangleOffset++,[w[1][0],w[1][2],w[1][3]]),this._vertexOffset=x}}()});a["w"].defaults(Eh.prototype,Ja),a["w"].defaults(Eh.prototype,_u);var jh=Eh,Ph=to.vec3,Nh=a["b"].extend({type:"bar3D",__ecgl__:!0,init:function(t,e){this.groupGL=new Ta.Node,this._api=e,this._labelsBuilder=new Au(256,256,e);var n=this;this._labelsBuilder.getLabelPosition=function(t,e,i){if(n._data){var r=n._data.getItemLayout(t),a=r[0],o=r[1],s=r[2][1];return Ph.scaleAndAdd([],a,o,i+s)}return[0,0]},this._labelsBuilder.getMesh().renderOrder=100},render:function(t,e,n){var i=this._prevBarMesh;this._prevBarMesh=this._barMesh,this._barMesh=i,this._barMesh||(this._barMesh=new Ta.Mesh({geometry:new jh,shadowDepthMaterial:new Ta.Material({shader:new Ta.Shader(Ta.Shader.source("ecgl.sm.depth.vertex"),Ta.Shader.source("ecgl.sm.depth.fragment"))}),culling:"cartesian3D"===t.coordinateSystem.type,renderOrder:10,renderNormal:!0})),this.groupGL.remove(this._prevBarMesh),this.groupGL.add(this._barMesh),this.groupGL.add(this._labelsBuilder.getMesh());var r=t.coordinateSystem;if(this._doRender(t,n),r&&r.viewGL){r.viewGL.add(this.groupGL);var a=r.viewGL.isLinearSpace()?"define":"undefine";this._barMesh.material[a]("fragment","SRGB_DECODE")}this._data=t.getData(),this._labelsBuilder.updateData(this._data),this._labelsBuilder.updateLabels(),this._updateAnimation(t)},_updateAnimation:function(t){Ta.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevBarMesh,this._barMesh,t)},_doRender:function(t,e){var n=t.getData(),i=t.get("shading"),r="color"!==i,a=this,o=this._barMesh,s="ecgl."+i;o.material&&o.material.shader.name===s||(o.material=Ta.createMaterial(s,["VERTEX_COLOR"])),Ta.setMaterialFromModel(i,o.material,t,e),o.geometry.enableNormal=r,o.geometry.resetOffset();var l=t.get("bevelSize"),u=t.get("bevelSmoothness");o.geometry.bevelSegments=u,o.geometry.bevelSize=l;var c=[],h=new Float32Array(4*n.count()),d=0,f=0,p=!1;n.each((function(t){if(n.hasValue(t)){var e=wu(n,t),i=Ou(n,t);null==i&&(i=1),Ta.parseColor(e,c),c[3]*=i,h[d++]=c[0],h[d++]=c[1],h[d++]=c[2],h[d++]=c[3],c[3]>0&&(f++,c[3]<.99&&(p=!0))}})),o.geometry.setBarCount(f);var g=n.getLayout("orient"),m=this._barIndexOfData=new Int32Array(n.count());f=0;n.each((function(t){if(n.hasValue(t)){var e=n.getItemLayout(t),i=e[0],r=e[1],o=e[2],s=4*t;c[0]=h[s++],c[1]=h[s++],c[2]=h[s++],c[3]=h[s++],c[3]>0&&(a._barMesh.geometry.addBar(i,r,g,o,c,t),m[t]=f++)}else m[t]=-1})),o.geometry.dirty(),o.geometry.updateBoundingBox();var v=o.material;v.transparent=p,v.depthMask=!p,o.geometry.sortTriangles=p,this._initHandler(t,e)},_initHandler:function(t,e){var n=t.getData(),i=this._barMesh,r="cartesian3D"===t.coordinateSystem.type;i.seriesIndex=t.seriesIndex;var a=-1;i.off("mousemove"),i.off("mouseout"),i.on("mousemove",(function(t){var o=i.geometry.getDataIndexOfVertex(t.triangle[0]);o!==a&&(this._downplay(a),this._highlight(o),this._labelsBuilder.updateLabels([o]),r&&e.dispatchAction({type:"grid3DShowAxisPointer",value:[n.get("x",o),n.get("y",o),n.get("z",o,!0)]})),a=o,i.dataIndex=o}),this),i.on("mouseout",(function(t){this._downplay(a),this._labelsBuilder.updateLabels(),a=-1,i.dataIndex=-1,r&&e.dispatchAction({type:"grid3DHideAxisPointer"})}),this)},_highlight:function(t){var e=this._data;if(e){var n=this._barIndexOfData[t];if(!(n<0)){var i=e.getItemModel(t),r=i.getModel("emphasis.itemStyle"),o=r.get("color"),s=r.get("opacity");if(null==o){var l=wu(e,t);o=a["h"].lift(l,-.4)}null==s&&(s=Ou(e,t));var u=Ta.parseColor(o);u[3]*=s,this._barMesh.geometry.setColor(n,u),this._api.getZr().refresh()}}},_downplay:function(t){var e=this._data;if(e){var n=this._barIndexOfData[t];if(!(n<0)){var i=wu(e,t),r=Ou(e,t),a=Ta.parseColor(i);a[3]*=r,this._barMesh.geometry.setColor(n,a),this._api.getZr().refresh()}}},highlight:function(t,e,n,i){this._toggleStatus("highlight",t,e,n,i)},downplay:function(t,e,n,i){this._toggleStatus("downplay",t,e,n,i)},_toggleStatus:function(t,e,n,i,r){var o=e.getData(),s=Pr.queryDataIndex(o,r),l=this;null!=s?a["w"].each(Sh.normalizeToArray(s),(function(e){"highlight"===t?this._highlight(e):this._downplay(e)}),this):o.each((function(e){"highlight"===t?l._highlight(e):l._downplay(e)}))},remove:function(){this.groupGL.removeAll()},dispose:function(){this._labelsBuilder.dispose(),this.groupGL.removeAll()}});function Rh(t){t.registerChartView(Nh),t.registerSeriesModel(Ih),wh(t),t.registerProcessor((function(t,e){t.eachSeriesByType("bar3d",(function(t){var e=t.getData();e.filterSelf((function(t){return e.hasValue(t)}))}))}))}Object(a["v"])(Rh);var kh=a["g"].extend({type:"series.line3D",dependencies:["grid3D"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",getInitialData:function(t,e){return Ah(this)},formatTooltip:function(t){return Mh(this,t)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,lineStyle:{width:2},animationDurationUpdate:500}}),Bh=kh,zh=n("9680"),Vh=to.vec3;Ta.Shader.import(Io);var Fh=a["b"].extend({type:"line3D",__ecgl__:!0,init:function(t,e){this.groupGL=new Ta.Node,this._api=e},render:function(t,e,n){var i=this._prevLine3DMesh;this._prevLine3DMesh=this._line3DMesh,this._line3DMesh=i,this._line3DMesh||(this._line3DMesh=new Ta.Mesh({geometry:new ro({useNativeLine:!1,sortTriangles:!0}),material:new Ta.Material({shader:Ta.createShader("ecgl.meshLines3D")}),renderOrder:10}),this._line3DMesh.geometry.pick=this._pick.bind(this)),this.groupGL.remove(this._prevLine3DMesh),this.groupGL.add(this._line3DMesh);var r=t.coordinateSystem;if(r&&r.viewGL){r.viewGL.add(this.groupGL);var a=r.viewGL.isLinearSpace()?"define":"undefine";this._line3DMesh.material[a]("fragment","SRGB_DECODE")}this._doRender(t,n),this._data=t.getData(),this._camera=r.viewGL.camera,this.updateCamera(),this._updateAnimation(t)},updateCamera:function(){this._updateNDCPosition()},_doRender:function(t,e){var n=t.getData(),i=this._line3DMesh;i.geometry.resetOffset();var r=n.getLayout("points"),a=[],o=new Float32Array(r.length/3*4),s=0,l=!1;n.each((function(t){var e=wu(n,t),i=Ou(n,t);null==i&&(i=1),Ta.parseColor(e,a),a[3]*=i,o[s++]=a[0],o[s++]=a[1],o[s++]=a[2],o[s++]=a[3],a[3]<.99&&(l=!0)})),i.geometry.setVertexCount(i.geometry.getPolylineVertexCount(r)),i.geometry.setTriangleCount(i.geometry.getPolylineTriangleCount(r)),i.geometry.addPolyline(r,o,Pr.firstNotNull(t.get("lineStyle.width"),1)),i.geometry.dirty(),i.geometry.updateBoundingBox();var u=i.material;u.transparent=l,u.depthMask=!l;var c=t.getModel("debug.wireframe");c.get("show")?(i.geometry.createAttribute("barycentric","float",3),i.geometry.generateBarycentric(),i.material.set("both","WIREFRAME_TRIANGLE"),i.material.set("wireframeLineColor",Ta.parseColor(c.get("lineStyle.color")||"rgba(0,0,0,0.5)")),i.material.set("wireframeLineWidth",Pr.firstNotNull(c.get("lineStyle.width"),1))):i.material.set("both","WIREFRAME_TRIANGLE"),this._points=r,this._initHandler(t,e)},_updateAnimation:function(t){Ta.updateVertexAnimation([["prevPosition","position"],["prevPositionPrev","positionPrev"],["prevPositionNext","positionNext"]],this._prevLine3DMesh,this._line3DMesh,t)},_initHandler:function(t,e){var n=t.getData(),i=t.coordinateSystem,r=this._line3DMesh,a=-1;r.seriesIndex=t.seriesIndex,r.off("mousemove"),r.off("mouseout"),r.on("mousemove",(function(t){var o=i.pointToData(t.point.array),s=n.indicesOfNearest("x",o[0])[0];s!==a&&(e.dispatchAction({type:"grid3DShowAxisPointer",value:[n.get("x",s),n.get("y",s),n.get("z",s)]}),r.dataIndex=s),a=s}),this),r.on("mouseout",(function(t){a=-1,r.dataIndex=-1,e.dispatchAction({type:"grid3DHideAxisPointer"})}),this)},_updateNDCPosition:function(){var t=new Le,e=this._camera;Le.multiply(t,e.projectionMatrix,e.viewMatrix);var n=this._positionNDC,i=this._points,r=i.length/3;n&&n.length/2===r||(n=this._positionNDC=new Float32Array(2*r));for(var a=[],o=0;o<r;o++){var s=3*o,l=2*o;a[0]=i[s],a[1]=i[s+1],a[2]=i[s+2],a[3]=1,Vh.transformMat4(a,a,t.array),n[l]=a[0]/a[3],n[l+1]=a[1]/a[3]}},_pick:function(t,e,n,i,r,a){var o=this._positionNDC,s=this._data.hostModel,l=s.get("lineStyle.width"),u=-1,c=n.viewport.width,h=n.viewport.height,d=.5*c,f=.5*h;t=(t+1)*d,e=(e+1)*f;for(var p=1;p<o.length/2;p++){var g=(o[2*(p-1)]+1)*d,m=(o[2*(p-1)+1]+1)*f,v=(o[2*p]+1)*d,y=(o[2*p+1]+1)*f;if(zh["a"](g,m,v,y,l,t,e)){var _=(g-t)*(g-t)+(m-e)*(m-e),b=(v-t)*(v-t)+(y-e)*(y-e);u=_<b?p-1:p}}if(u>=0){var x=3*u,w=new ye(this._points[x],this._points[x+1],this._points[x+2]);a.push({dataIndex:u,point:w,pointWorld:w.clone(),target:this._line3DMesh,distance:this._camera.getWorldPosition().dist(w)})}},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});function Gh(t){t.registerChartView(Fh),t.registerSeriesModel(Bh),t.registerLayout((function(t,e){t.eachSeriesByType("line3D",(function(t){var e=t.getData(),n=t.coordinateSystem;if(n){if("cartesian3D"!==n.type)return void 0;var i=new Float32Array(3*e.count()),r=[],a=[],o=n.dimensions,s=o.map((function(e){return t.coordDimToDataDim(e)[0]}));n&&e.each(s,(function(t,e,o,s){r[0]=t,r[1]=e,r[2]=o,n.dataToPoint(r,a),i[3*s]=a[0],i[3*s+1]=a[1],i[3*s+2]=a[2]})),e.setLayout("points",i)}}))}))}Object(a["v"])(Gh);var Hh=a["g"].extend({type:"series.scatter3D",dependencies:["globe","grid3D","geo3D"],visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,getInitialData:function(t,e){return Ah(this)},getFormattedLabel:function(t,e,n,i){var r=Sh.getFormattedLabel(this,t,e,n,i);if(null==r){var a=this.getData(),o=a.dimensions[a.dimensions.length-1];r=a.get(o,t)}return r},formatTooltip:function(t){return Mh(this,t)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,progressive:1e5,progressiveThreshold:1e5,grid3DIndex:0,globeIndex:0,symbol:"circle",symbolSize:10,blendMode:"source-over",label:{show:!1,position:"right",distance:5,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},itemStyle:{opacity:.8},emphasis:{label:{show:!0}},animationDurationUpdate:500}});function Uh(t,e,n){e=e||document.createElement("canvas");e.width=t,e.height=t;var i=e.getContext("2d");return n&&n(i),e}function Wh(t,e,n,i){a["w"].isArray(e)||(e=[e,e]);var r=Zh.getMarginByStyle(n,i),o=e[0]+r.left+r.right,s=e[1]+r.top+r.bottom,l=a["m"].createSymbol(t,0,0,e[0],e[1]),u=Math.max(o,s);l.x=r.left,l.y=r.top,o>s?l.y+=(u-s)/2:l.x+=(u-o)/2;var c=l.getBoundingRect();return l.x-=c.x,l.y-=c.y,l.setStyle(n),l.update(),l.__size=u,l}function Xh(t,e,n){var i=e.width,r=e.height,a=t.canvas.width,o=t.canvas.height,s=i/a,l=r/o;function u(t){return t<128?1:-1}function c(t,a){var o=1/0;t=Math.floor(t*s),a=Math.floor(a*l);for(var c=a*i+t,h=e.data[4*c],d=u(h),f=Math.max(a-n,0);f<Math.min(a+n,r);f++)for(var p=Math.max(t-n,0);p<Math.min(t+n,i);p++){c=f*i+p;var g=e.data[4*c],m=u(g),v=p-t,y=f-a;if(d!==m){var _=v*v+y*y;_<o&&(o=_)}}return d*Math.sqrt(o)}for(var h=t.createImageData(a,o),d=0;d<o;d++)for(var f=0;f<a;f++){var p=c(f,d),g=p/n*.5+.5,m=4*(d*a+f);h.data[m++]=255*(1-g),h.data[m++]=255*(1-g),h.data[m++]=255*(1-g),h.data[m++]=255}return h}var Zh={getMarginByStyle:function(t){var e=t.minMargin||0,n=0;t.stroke&&"none"!==t.stroke&&(n=null==t.lineWidth?1:t.lineWidth);var i=t.shadowBlur||0,r=t.shadowOffsetX||0,a=t.shadowOffsetY||0,o={};return o.left=Math.max(n/2,-r+i,e),o.right=Math.max(n/2,r+i,e),o.top=Math.max(n/2,-a+i,e),o.bottom=Math.max(n/2,a+i,e),o},createSymbolSprite:function(t,e,n,i){var r=Wh(t,e,n),o=Zh.getMarginByStyle(n);return{image:Uh(r.__size,i,(function(t){a["o"](t,r)})),margin:o}},createSDFFromCanvas:function(t,e,n,i){return Uh(e,i,(function(e){var i=t.getContext("2d"),r=i.getImageData(0,0,t.width,t.height);e.putImageData(Xh(e,r,n),0,0)}))},createSimpleSprite:function(t,e){return Uh(t,e,(function(e){var n=t/2;e.beginPath(),e.arc(n,n,60,0,2*Math.PI,!1),e.closePath();var i=e.createRadialGradient(n,n,0,n,n,n);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)"),e.fillStyle=i,e.fill()}))}},qh=Zh,Yh=to.vec3,Kh={needsSortVertices:function(){return this.sortVertices},needsSortVerticesProgressively:function(){return this.needsSortVertices()&&this.vertexCount>=2e4},doSortVertices:function(t,e){var n=this.indices,i=Yh.create();if(!n){n=this.indices=this.vertexCount>65535?new Uint32Array(this.vertexCount):new Uint16Array(this.vertexCount);for(var r=0;r<n.length;r++)n[r]=r}if(0===e){var a,o=this.attributes.position,s=(t=t.array,0);this._zList&&this._zList.length===this.vertexCount||(this._zList=new Float32Array(this.vertexCount));for(r=0;r<this.vertexCount;r++){o.get(r,i);var l=Yh.sqrDist(i,t);isNaN(l)&&(l=1e7,s++),0===r?(a=l,l=0):l-=a,this._zList[r]=l}this._noneCount=s}if(this.vertexCount<2e4)0===e&&this._simpleSort(this._noneCount/this.vertexCount>.05);else for(r=0;r<3;r++)this._progressiveQuickSort(3*e+r);this.dirtyIndices()},_simpleSort:function(t){var e=this._zList,n=this.indices;function i(t,n){return e[n]-e[t]}t?Array.prototype.sort.call(n,i):pu.sort(n,i,0,n.length-1)},_progressiveQuickSort:function(t){var e=this._zList,n=this.indices;this._quickSort=this._quickSort||new pu,this._quickSort.step(n,(function(t,n){return e[n]-e[t]}),t)}},Qh="@export ecgl.sdfSprite.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform float elapsedTime : 0;\n\nattribute vec3 position : POSITION;\n\n#ifdef VERTEX_SIZE\nattribute float size;\n#else\nuniform float u_Size;\n#endif\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_FillColor: COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute float prevSize;\nuniform float percent : 1.0;\n#endif\n\n\n#ifdef POSITIONTEXTURE_ENABLED\nuniform sampler2D positionTexture;\n#endif\n\nvarying float v_Size;\n\nvoid main()\n{\n\n#ifdef POSITIONTEXTURE_ENABLED\n gl_Position = worldViewProjection * vec4(texture2D(positionTexture, position.xy).xy, -10.0, 1.0);\n#else\n\n #ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n #else\n vec3 pos = position;\n #endif\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n#endif\n\n#ifdef VERTEX_SIZE\n#ifdef VERTEX_ANIMATION\n v_Size = mix(prevSize, size, percent);\n#else\n v_Size = size;\n#endif\n#else\n v_Size = u_Size;\n#endif\n\n#ifdef VERTEX_COLOR\n v_Color = a_FillColor;\n #endif\n\n gl_PointSize = v_Size;\n}\n\n@end\n\n@export ecgl.sdfSprite.fragment\n\nuniform vec4 color: [1, 1, 1, 1];\nuniform vec4 strokeColor: [1, 1, 1, 1];\nuniform float smoothing: 0.07;\n\nuniform float lineWidth: 0.0;\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\nvarying float v_Size;\n\nuniform sampler2D sprite;\n\n@import clay.util.srgb\n\nvoid main()\n{\n gl_FragColor = color;\n\n vec4 _strokeColor = strokeColor;\n\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n #endif\n\n#ifdef SPRITE_ENABLED\n float d = texture2D(sprite, gl_PointCoord).r;\n gl_FragColor.a *= smoothstep(0.5 - smoothing, 0.5 + smoothing, d);\n\n if (lineWidth > 0.0) {\n float sLineWidth = lineWidth / 2.0;\n\n float outlineMaxValue0 = 0.5 + sLineWidth;\n float outlineMaxValue1 = 0.5 + sLineWidth + smoothing;\n float outlineMinValue0 = 0.5 - sLineWidth - smoothing;\n float outlineMinValue1 = 0.5 - sLineWidth;\n\n if (d <= outlineMaxValue1 && d >= outlineMinValue0) {\n float a = _strokeColor.a;\n if (d <= outlineMinValue1) {\n a = a * smoothstep(outlineMinValue0, outlineMinValue1, d);\n }\n else {\n a = a * smoothstep(outlineMaxValue1, outlineMaxValue0, d);\n }\n gl_FragColor.rgb = mix(gl_FragColor.rgb * gl_FragColor.a, _strokeColor.rgb, a);\n gl_FragColor.a = gl_FragColor.a * (1.0 - a) + a;\n }\n }\n#endif\n\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(gl_FragColor);\n#endif\n}\n@end",Jh=to.vec4;Ta.Shader.import(Qh);var $h=Ta.Mesh.extend((function(){var t=new Ta.Geometry({dynamic:!0,attributes:{color:new Ta.Geometry.Attribute("color","float",4,"COLOR"),position:new Ta.Geometry.Attribute("position","float",3,"POSITION"),size:new Ta.Geometry.Attribute("size","float",1),prevPosition:new Ta.Geometry.Attribute("prevPosition","float",3),prevSize:new Ta.Geometry.Attribute("prevSize","float",1)}});Object.assign(t,Kh);var e=new Ta.Material({shader:Ta.createShader("ecgl.sdfSprite"),transparent:!0,depthMask:!1});e.enableTexture("sprite"),e.define("both","VERTEX_COLOR"),e.define("both","VERTEX_SIZE");var n=new Ta.Texture2D({image:document.createElement("canvas"),flipY:!1});return e.set("sprite",n),t.pick=this._pick.bind(this),{geometry:t,material:e,mode:Ta.Mesh.POINTS,sizeScale:1}}),{_pick:function(t,e,n,i,r,a){var o=this._positionNDC;if(o)for(var s=n.viewport,l=2/s.width,u=2/s.height,c=this.geometry.vertexCount-1;c>=0;c--){var h;h=this.geometry.indices?this.geometry.indices[c]:c;var d=o[2*h],f=o[2*h+1],p=this.geometry.attributes.size.get(h)/this.sizeScale,g=p/2;if(t>d-g*l&&t<d+g*l&&e>f-g*u&&e<f+g*u){var m=new Ta.Vector3,v=new Ta.Vector3;this.geometry.attributes.position.get(h,m.array),Ta.Vector3.transformMat4(v,m,this.worldTransform),a.push({vertexIndex:h,point:m,pointWorld:v,target:this,distance:v.distance(i.getWorldPosition())})}}},updateNDCPosition:function(t,e,n){var i=this._positionNDC,r=this.geometry;i&&i.length/2===r.vertexCount||(i=this._positionNDC=new Float32Array(2*r.vertexCount));for(var a=Jh.create(),o=0;o<r.vertexCount;o++)r.attributes.position.get(o,a),a[3]=1,Jh.transformMat4(a,a,t.array),Jh.scale(a,a,1/a[3]),i[2*o]=a[0],i[2*o+1]=a[1]}}),td=$h,ed=20,nd=-10;function id(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}function rd(t,e){this.rootNode=new Ta.Node,this.is2D=t,this._labelsBuilder=new Au(256,256,e),this._labelsBuilder.getMesh().renderOrder=100,this.rootNode.add(this._labelsBuilder.getMesh()),this._api=e,this._spriteImageCanvas=document.createElement("canvas"),this._startDataIndex=0,this._endDataIndex=0,this._sizeScale=1}rd.prototype={constructor:rd,highlightOnMouseover:!0,update:function(t,e,n,i,r){var a=this._prevMesh;this._prevMesh=this._mesh,this._mesh=a;var o=t.getData();if(null==i&&(i=0),null==r&&(r=o.count()),this._startDataIndex=i,this._endDataIndex=r-1,!this._mesh){var s=this._prevMesh&&this._prevMesh.material;this._mesh=new td({renderOrder:10,frustumCulling:!1}),s&&(this._mesh.material=s)}s=this._mesh.material;var l=this._mesh.geometry,u=l.attributes;this.rootNode.remove(this._prevMesh),this.rootNode.add(this._mesh),this._setPositionTextureToMesh(this._mesh,this._positionTexture);var c=this._getSymbolInfo(t,i,r),h=n.getDevicePixelRatio(),d=t.getModel("itemStyle").getItemStyle(),f=t.get("large"),p=1;c.maxSize>2?(p=this._updateSymbolSprite(t,d,c,h),s.enableTexture("sprite")):s.disableTexture("sprite"),u.position.init(r-i);var g=[];if(f){s.undefine("VERTEX_SIZE"),s.undefine("VERTEX_COLOR");var m=bu(o),v=xu(o);Ta.parseColor(m,g),g[3]*=v,s.set({color:g,u_Size:c.maxSize*this._sizeScale})}else s.set({color:[1,1,1,1]}),s.define("VERTEX_SIZE"),s.define("VERTEX_COLOR"),u.size.init(r-i),u.color.init(r-i),this._originalOpacity=new Float32Array(r-i);for(var y=o.getLayout("points"),_=u.position.value,b=0;b<r-i;b++){var x=3*b,w=2*b;if(this.is2D?(_[x]=y[w],_[x+1]=y[w+1],_[x+2]=nd):(_[x]=y[x],_[x+1]=y[x+1],_[x+2]=y[x+2]),!f){m=wu(o,b),v=Ou(o,b);Ta.parseColor(m,g),g[3]*=v,u.color.set(b,g),g[3]<.99&&!0;var O=o.getItemVisual(b,"symbolSize");O=O instanceof Array?Math.max(O[0],O[1]):O,isNaN(O)&&(O=0),u.size.value[b]=O*p*this._sizeScale,this._originalOpacity[b]=g[3]}}this._mesh.sizeScale=p,l.updateBoundingBox(),l.dirty(),this._updateMaterial(t,d);var S=t.coordinateSystem;if(S&&S.viewGL){var T=S.viewGL.isLinearSpace()?"define":"undefine";s[T]("fragment","SRGB_DECODE")}f||this._updateLabelBuilder(t,i,r),this._updateHandler(t,e,n),this._updateAnimation(t),this._api=n},getPointsMesh:function(){return this._mesh},updateLabels:function(t){this._labelsBuilder.updateLabels(t)},hideLabels:function(){this.rootNode.remove(this._labelsBuilder.getMesh())},showLabels:function(){this.rootNode.add(this._labelsBuilder.getMesh())},dispose:function(){this._labelsBuilder.dispose()},_updateSymbolSprite:function(t,e,n,i){n.maxSize=Math.min(2*n.maxSize,200);var r=[];return n.aspect>1?(r[0]=n.maxSize,r[1]=n.maxSize/n.aspect):(r[1]=n.maxSize,r[0]=n.maxSize*n.aspect),r[0]=r[0]||1,r[1]=r[1]||1,this._symbolType===n.type&&id(this._symbolSize,r)&&this._lineWidth===e.lineWidth||(qh.createSymbolSprite(n.type,r,{fill:"#fff",lineWidth:e.lineWidth,stroke:"transparent",shadowColor:"transparent",minMargin:Math.min(r[0]/2,10)},this._spriteImageCanvas),qh.createSDFFromCanvas(this._spriteImageCanvas,Math.min(this._spriteImageCanvas.width,32),ed,this._mesh.material.get("sprite").image),this._symbolType=n.type,this._symbolSize=r,this._lineWidth=e.lineWidth),this._spriteImageCanvas.width/n.maxSize*i},_updateMaterial:function(t,e){var n="lighter"===t.get("blendMode")?Ta.additiveBlend:null,i=this._mesh.material;i.blend=n,i.set("lineWidth",e.lineWidth/ed);var r=Ta.parseColor(e.stroke);i.set("strokeColor",r),i.transparent=!0,i.depthMask=!1,i.depthTest=!this.is2D,i.sortVertices=!this.is2D},_updateLabelBuilder:function(t,e,n){var i=t.getData(),r=this._mesh.geometry,a=r.attributes.position.value,o=(e=this._startDataIndex,this._mesh.sizeScale);this._labelsBuilder.updateData(i,e,n),this._labelsBuilder.getLabelPosition=function(t,n,i){var r=3*(t-e);return[a[r],a[r+1],a[r+2]]},this._labelsBuilder.getLabelDistance=function(t,n,i){var a=r.attributes.size.get(t-e)/o;return a/2+i},this._labelsBuilder.updateLabels()},_updateAnimation:function(t){Ta.updateVertexAnimation([["prevPosition","position"],["prevSize","size"]],this._prevMesh,this._mesh,t)},_updateHandler:function(t,e,n){var i,r=t.getData(),a=this._mesh,o=this,s=-1,l=t.coordinateSystem&&"cartesian3D"===t.coordinateSystem.type;l&&(i=t.coordinateSystem.model),a.seriesIndex=t.seriesIndex,a.off("mousemove"),a.off("mouseout"),a.on("mousemove",(function(e){var u=e.vertexIndex+o._startDataIndex;u!==s&&(this.highlightOnMouseover&&(this.downplay(r,s),this.highlight(r,u),this._labelsBuilder.updateLabels([u])),l&&n.dispatchAction({type:"grid3DShowAxisPointer",value:[r.get(t.coordDimToDataDim("x")[0],u),r.get(t.coordDimToDataDim("y")[0],u),r.get(t.coordDimToDataDim("z")[0],u)],grid3DIndex:i.componentIndex})),a.dataIndex=u,s=u}),this),a.on("mouseout",(function(t){var e=t.vertexIndex+o._startDataIndex;this.highlightOnMouseover&&(this.downplay(r,e),this._labelsBuilder.updateLabels()),s=-1,a.dataIndex=-1,l&&n.dispatchAction({type:"grid3DHideAxisPointer",grid3DIndex:i.componentIndex})}),this)},updateLayout:function(t,e,n){var i=t.getData();if(this._mesh){var r=this._mesh.geometry.attributes.position.value,a=i.getLayout("points");if(this.is2D)for(var o=0;o<a.length/2;o++){var s=3*o,l=2*o;r[s]=a[l],r[s+1]=a[l+1],r[s+2]=nd}else for(o=0;o<a.length;o++)r[o]=a[o];this._mesh.geometry.dirty(),n.getZr().refresh()}},updateView:function(t){if(this._mesh){var e=new Le;Le.mul(e,t.viewMatrix,this._mesh.worldTransform),Le.mul(e,t.projectionMatrix,e),this._mesh.updateNDCPosition(e,this.is2D,this._api)}},highlight:function(t,e){if(!(e>this._endDataIndex||e<this._startDataIndex)){var n=t.getItemModel(e),i=n.getModel("emphasis.itemStyle"),r=i.get("color"),o=i.get("opacity");if(null==r){var s=wu(t,e);r=a["h"].lift(s,-.4)}null==o&&(o=Ou(t,e));var l=Ta.parseColor(r);l[3]*=o,this._mesh.geometry.attributes.color.set(e-this._startDataIndex,l),this._mesh.geometry.dirtyAttribute("color"),this._api.getZr().refresh()}},downplay:function(t,e){if(!(e>this._endDataIndex||e<this._startDataIndex)){var n=wu(t,e),i=Ou(t,e),r=Ta.parseColor(n);r[3]*=i,this._mesh.geometry.attributes.color.set(e-this._startDataIndex,r),this._mesh.geometry.dirtyAttribute("color"),this._api.getZr().refresh()}},fadeOutAll:function(t){if(this._originalOpacity){for(var e=this._mesh.geometry,n=0;n<e.vertexCount;n++){var i=this._originalOpacity[n]*t;e.attributes.color.value[4*n+3]=i}e.dirtyAttribute("color"),this._api.getZr().refresh()}},fadeInAll:function(){this.fadeOutAll(1)},setPositionTexture:function(t){this._mesh&&this._setPositionTextureToMesh(this._mesh,t),this._positionTexture=t},removePositionTexture:function(){this._positionTexture=null,this._mesh&&this._setPositionTextureToMesh(this._mesh,null)},setSizeScale:function(t){if(t!==this._sizeScale){if(this._mesh){var e=this._mesh.material.get("u_Size");this._mesh.material.set("u_Size",e/this._sizeScale*t);var n=this._mesh.geometry.attributes;if(n.size.value)for(var i=0;i<n.size.value.length;i++)n.size.value[i]=n.size.value[i]/this._sizeScale*t}this._sizeScale=t}},_setPositionTextureToMesh:function(t,e){e&&t.material.set("positionTexture",e),t.material[e?"enableTexture":"disableTexture"]("positionTexture")},_getSymbolInfo:function(t,e,n){if(t.get("large")){var i=Pr.firstNotNull(t.get("symbolSize"),1);return i instanceof Array?(s=Math.max(i[0],i[1]),r=i[0]/i[1]):(s=i,r=1),{maxSize:i,type:t.get("symbol"),aspect:r}}for(var r,a=t.getData(),o=a.getItemVisual(0,"symbol")||"circle",s=0,l=e;l<n;l++){i=a.getItemVisual(l,"symbolSize");var u,c=a.getItemVisual(l,"symbol");if(i instanceof Array)u=i[0]/i[1],s=Math.max(Math.max(i[0],i[1]),s);else{if(isNaN(i))continue;u=1,s=Math.max(i,s)}0,o=c,r=u}return{maxSize:s,type:o,aspect:r}}};var ad=rd,od=a["b"].extend({type:"scatter3D",hasSymbolVisual:!0,__ecgl__:!0,init:function(t,e){this.groupGL=new Ta.Node,this._pointsBuilderList=[],this._currentStep=0},render:function(t,e,n){if(this.groupGL.removeAll(),t.getData().count()){var i=t.coordinateSystem;if(i&&i.viewGL){i.viewGL.add(this.groupGL),this._camera=i.viewGL.camera;var r=this._pointsBuilderList[0];r||(r=this._pointsBuilderList[0]=new ad(!1,n)),this._pointsBuilderList.length=1,this.groupGL.add(r.rootNode),r.update(t,e,n),r.updateView(i.viewGL.camera)}else 0}},incrementalPrepareRender:function(t,e,n){var i=t.coordinateSystem;i&&i.viewGL&&(i.viewGL.add(this.groupGL),this._camera=i.viewGL.camera),this.groupGL.removeAll(),this._currentStep=0},incrementalRender:function(t,e,n,i){if(!(t.end<=t.start)){var r=this._pointsBuilderList[this._currentStep];r||(r=new ad(!1,i),this._pointsBuilderList[this._currentStep]=r),this.groupGL.add(r.rootNode),r.update(e,n,i,t.start,t.end),r.updateView(e.coordinateSystem.viewGL.camera),this._currentStep++}},updateCamera:function(){this._pointsBuilderList.forEach((function(t){t.updateView(this._camera)}),this)},highlight:function(t,e,n,i){this._toggleStatus("highlight",t,e,n,i)},downplay:function(t,e,n,i){this._toggleStatus("downplay",t,e,n,i)},_toggleStatus:function(t,e,n,i,r){var o=e.getData(),s=Pr.queryDataIndex(o,r),l="highlight"===t;null!=s?a["w"].each(Sh.normalizeToArray(s),(function(t){for(var e=0;e<this._pointsBuilderList.length;e++){var n=this._pointsBuilderList[e];l?n.highlight(o,t):n.downplay(o,t)}}),this):o.each((function(t){for(var e=0;e<this._pointsBuilderList.length;e++){var n=this._pointsBuilderList[e];l?n.highlight(o,t):n.downplay(o,t)}}))},dispose:function(){this._pointsBuilderList.forEach((function(t){t.dispose()})),this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function sd(t){t.registerChartView(od),t.registerSeriesModel(Hh),t.registerLayout({seriesType:"scatter3D",reset:function(t){var e=t.coordinateSystem;if(e){var n=e.dimensions;if(n.length<3)return void 0;var i=n.map((function(e){return t.coordDimToDataDim(e)[0]})),r=[],a=[];return{progress:function(t,n){for(var o=new Float32Array(3*(t.end-t.start)),s=t.start;s<t.end;s++){var l=3*(s-t.start);r[0]=n.get(i[0],s),r[1]=n.get(i[1],s),r[2]=n.get(i[2],s),e.dataToPoint(r,a),o[l]=a[0],o[l+1]=a[1],o[l+2]=a[2]}n.setLayout("points",o)}}}}})}Object(a["v"])(sd);var ld=to.vec3,ud=to.vec2,cd=ld.normalize,hd=ld.cross,dd=ld.sub,fd=ld.add,pd=ld.create,gd=pd(),md=pd(),vd=pd(),yd=pd(),_d=[],bd=[];function xd(t,e){ud.copy(_d,t[0]),ud.copy(bd,t[1]);var n=[],i=n[0]=pd(),r=n[1]=pd(),a=n[2]=pd(),o=n[3]=pd();e.dataToPoint(_d,i),e.dataToPoint(bd,o),cd(gd,i),dd(md,o,i),cd(md,md),hd(vd,md,gd),cd(vd,vd),hd(md,gd,vd),fd(r,gd,md),cd(r,r),cd(gd,o),dd(md,i,o),cd(md,md),hd(vd,md,gd),cd(vd,vd),hd(md,gd,vd),fd(a,gd,md),cd(a,a),fd(yd,i,o),cd(yd,yd);var s=ld.dot(i,yd),l=ld.dot(yd,r),u=(Math.max(ld.len(i),ld.len(o))-s)/l*2;return ld.scaleAndAdd(r,i,r,u),ld.scaleAndAdd(a,o,a,u),n}function wd(t,e,n){var i=[],r=i[0]=ld.create(),a=i[1]=ld.create(),o=i[2]=ld.create(),s=i[3]=ld.create();e.dataToPoint(t[0],r),e.dataToPoint(t[1],s);var l=ld.dist(r,s);return ld.lerp(a,r,s,.3),ld.lerp(o,r,s,.3),ld.scaleAndAdd(a,a,n,Math.min(.1*l,10)),ld.scaleAndAdd(o,o,n,Math.min(.1*l,10)),i}function Od(t,e){for(var n=new Float32Array(3*t.length),i=0,r=[],a=0;a<t.length;a++)e.dataToPoint(t[a],r),n[i++]=r[0],n[i++]=r[1],n[i++]=r[2];return n}function Sd(t){var e=[];return t.each((function(n){var i=t.getItemModel(n),r=i.option instanceof Array?i.option:i.getShallow("coords",!0);e.push(r)})),{coordsList:e}}function Td(t,e){var n=t.getData(),i=t.get("polyline");n.setLayout("lineType",i?"polyline":"cubicBezier");var r=Sd(n);n.each((function(t){var a=r.coordsList[t],o=i?Od:xd;n.setItemLayout(t,o(a,e))}))}function Md(t,e,n){var i=t.getData(),r=t.get("polyline"),a=Sd(i);i.setLayout("lineType",r?"polyline":"cubicBezier"),i.each((function(t){var o=a.coordsList[t],s=r?Od(o,e):wd(o,e,n);i.setItemLayout(t,s)}))}function Ad(t,e){t.eachSeriesByType("lines3D",(function(t){var e=t.coordinateSystem;"globe"===e.type?Td(t,e):"geo3D"===e.type?Md(t,e,[0,1,0]):"mapbox3D"!==e.type&&"maptalks3D"!==e.type||Md(t,e,[0,0,1])}))}var Cd=a["g"].extend({type:"series.lines3D",dependencies:["globe"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",getInitialData:function(t,e){var n=new a["e"](["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var a=t.value;return null!=a?a instanceof Array?a[r]:a:void 0})),n},defaultOption:{coordinateSystem:"globe",globeIndex:0,geo3DIndex:0,zlevel:-10,polyline:!1,effect:{show:!1,period:4,trailWidth:4,trailLength:.2,spotIntensity:6},silent:!0,blendMode:"source-over",lineStyle:{width:1,opacity:.5}}}),Id="@export ecgl.trail2.vertex\nattribute vec3 position: POSITION;\nattribute vec3 positionPrev;\nattribute vec3 positionNext;\nattribute float offset;\nattribute float dist;\nattribute float distAll;\nattribute float start;\n\nattribute vec4 a_Color : COLOR;\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\nuniform float near : NEAR;\n\nuniform float speed : 0;\nuniform float trailLength: 0.3;\nuniform float time;\nuniform float period: 1000;\n\nuniform float spotSize: 1;\n\nvarying vec4 v_Color;\nvarying float v_Percent;\nvarying float v_SpotPercent;\n\n@import ecgl.common.wireframe.vertexHeader\n\n@import ecgl.lines3D.clipNear\n\nvoid main()\n{\n @import ecgl.lines3D.expandLine\n\n gl_Position = currProj;\n\n v_Color = a_Color;\n\n @import ecgl.common.wireframe.vertexMain\n\n#ifdef CONSTANT_SPEED\n float t = mod((speed * time + start) / distAll, 1. + trailLength) - trailLength;\n#else\n float t = mod((time + start) / period, 1. + trailLength) - trailLength;\n#endif\n\n float trailLen = distAll * trailLength;\n\n v_Percent = (dist - t * distAll) / trailLen;\n\n v_SpotPercent = spotSize / distAll;\n\n }\n@end\n\n\n@export ecgl.trail2.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform float spotIntensity: 5;\n\nvarying vec4 v_Color;\nvarying float v_Percent;\nvarying float v_SpotPercent;\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n if (v_Percent > 1.0 || v_Percent < 0.0) {\n discard;\n }\n\n float fade = v_Percent;\n\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n\n @import ecgl.common.wireframe.fragmentMain\n\n if (v_Percent > (1.0 - v_SpotPercent)) {\n gl_FragColor.rgb *= spotIntensity;\n }\n\n gl_FragColor.a *= fade;\n}\n\n@end",Dd=to.vec3;function Ld(t){return t>0?1:-1}Ta.Shader.import(Id);var Ed=Ta.Mesh.extend((function(){var t=new Ta.Material({shader:new Ta.Shader(Ta.Shader.source("ecgl.trail2.vertex"),Ta.Shader.source("ecgl.trail2.fragment")),transparent:!0,depthMask:!1}),e=new ro({dynamic:!0});return e.createAttribute("dist","float",1),e.createAttribute("distAll","float",1),e.createAttribute("start","float",1),{geometry:e,material:t,culling:!1,$ignorePicking:!0}}),{updateData:function(t,e,n){var i=t.hostModel,r=this.geometry,a=i.getModel("effect"),o=a.get("trailWidth")*e.getDevicePixelRatio(),s=a.get("trailLength"),l=i.get("effect.constantSpeed"),u=1e3*i.get("effect.period"),c=null!=l;c?this.material.set("speed",l/1e3):this.material.set("period",u),this.material[c?"define":"undefine"]("vertex","CONSTANT_SPEED");var h=i.get("polyline");r.trailLength=s,this.material.set("trailLength",s),r.resetOffset(),["position","positionPrev","positionNext"].forEach((function(t){r.attributes[t].value=n.attributes[t].value}));var d=["dist","distAll","start","offset","color"];d.forEach((function(t){r.attributes[t].init(r.vertexCount)})),r.indices=n.indices;var f=[],p=a.get("trailColor"),g=a.get("trailOpacity"),m=null!=p,v=null!=g;this.updateWorldTransform();var y=this.worldTransform.x.len(),_=this.worldTransform.y.len(),b=this.worldTransform.z.len(),x=0,w=0;t.each((function(e){var i=t.getItemLayout(e),a=v?g:Ou(t,e),s=wu(t,e);null==a&&(a=1),f=Ta.parseColor(m?p:s,f),f[3]*=a;for(var l=h?n.getPolylineVertexCount(i):n.getCubicCurveVertexCount(i[0],i[1],i[2],i[3]),d=0,O=[],S=[],T=x;T<x+l;T++)r.attributes.position.get(T,O),O[0]*=y,O[1]*=_,O[2]*=b,T>x&&(d+=Dd.dist(O,S)),r.attributes.dist.set(T,d),Dd.copy(S,O);w=Math.max(w,d);var M=Math.random()*(c?d:u);for(T=x;T<x+l;T++)r.attributes.distAll.set(T,d),r.attributes.start.set(T,M),r.attributes.offset.set(T,Ld(n.attributes.offset.get(T))*o/2),r.attributes.color.set(T,f);x+=l})),this.material.set("spotSize",.1*w*s),this.material.set("spotIntensity",a.get("spotIntensity")),r.dirty()},setAnimationTime:function(t){this.material.set("time",t)}});function jd(t){return null!=t.radius?t.radius:null!=t.size?Math.max(t.size[0],t.size[1],t.size[2]):100}Ta.Shader.import(Io);var Pd=a["b"].extend({type:"lines3D",__ecgl__:!0,init:function(t,e){this.groupGL=new Ta.Node,this._meshLinesMaterial=new Ta.Material({shader:Ta.createShader("ecgl.meshLines3D"),transparent:!0,depthMask:!1}),this._linesMesh=new Ta.Mesh({geometry:new ro,material:this._meshLinesMaterial,$ignorePicking:!0}),this._trailMesh=new Ed},render:function(t,e,n){this.groupGL.add(this._linesMesh);var i=t.coordinateSystem,r=t.getData();if(i&&i.viewGL){var a=i.viewGL;a.add(this.groupGL),this._updateLines(t,e,n);var o=i.viewGL.isLinearSpace()?"define":"undefine";this._linesMesh.material[o]("fragment","SRGB_DECODE"),this._trailMesh.material[o]("fragment","SRGB_DECODE")}var s=this._trailMesh;if(s.stopAnimation(),t.get("effect.show")){this.groupGL.add(s),s.updateData(r,n,this._linesMesh.geometry),s.__time=s.__time||0;var l=36e5;this._curveEffectsAnimator=s.animate("",{loop:!0}).when(l,{__time:l}).during((function(){s.setAnimationTime(s.__time)})).start()}else this.groupGL.remove(s),this._curveEffectsAnimator=null;this._linesMesh.material.blend=this._trailMesh.material.blend="lighter"===t.get("blendMode")?Ta.additiveBlend:null},pauseEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.pause()},resumeEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.resume()},toggleEffect:function(){var t=this._curveEffectsAnimator;t&&(t.isPaused()?t.resume():t.pause())},_updateLines:function(t,e,n){var i=t.getData(),r=t.coordinateSystem,a=this._linesMesh.geometry,o=t.get("polyline");a.expandLine=!0;var s=jd(r);a.segmentScale=s/20;var l="lineStyle.width".split("."),u=n.getDevicePixelRatio(),c=0;i.each((function(t){var e=i.getItemModel(t),n=e.get(l);null==n&&(n=1),i.setItemVisual(t,"lineWidth",n),c=Math.max(n,c)})),a.useNativeLine=!1;var h=0,d=0;i.each((function(t){var e=i.getItemLayout(t);o?(h+=a.getPolylineVertexCount(e),d+=a.getPolylineTriangleCount(e)):(h+=a.getCubicCurveVertexCount(e[0],e[1],e[2],e[3]),d+=a.getCubicCurveTriangleCount(e[0],e[1],e[2],e[3]))})),a.setVertexCount(h),a.setTriangleCount(d),a.resetOffset();var f=[];i.each((function(t){var e=i.getItemLayout(t),n=wu(i,t),r=Ou(i,t),s=i.getItemVisual(t,"lineWidth")*u;null==r&&(r=1),f=Ta.parseColor(n,f),f[3]*=r,o?a.addPolyline(e,f,s):a.addCubicCurve(e[0],e[1],e[2],e[3],f,s)})),a.dirty()},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});function Nd(t){t.registerChartView(Pd),t.registerSeriesModel(Cd),t.registerLayout(Ad),t.registerAction({type:"lines3DPauseEffect",event:"lines3deffectpaused",update:"series.lines3D:pauseEffect"},(function(){})),t.registerAction({type:"lines3DResumeEffect",event:"lines3deffectresumed",update:"series.lines3D:resumeEffect"},(function(){})),t.registerAction({type:"lines3DToggleEffect",event:"lines3deffectchanged",update:"series.lines3D:toggleEffect"},(function(){}))}function Rd(t,e){for(var n=[],i=0;i<e.length;i++)n.push(t.dataToPoint(e[i]));return n}Object(a["v"])(Nd);var kd=a["g"].extend({type:"series.polygons3D",getRegionModel:function(t){return this.getData().getItemModel(t)},getRegionPolygonCoords:function(t){var e=this.coordinateSystem,n=this.getData().getItemModel(t),i=n.option instanceof Array?n.option:n.getShallow("coords");n.get("multiPolygon")||(i=[i]);for(var r=[],a=0;a<i.length;a++){for(var o=[],s=1;s<i[a].length;s++)o.push(Rd(e,i[a][s]));r.push({exterior:Rd(e,i[a][0]),interiors:o})}return r},getInitialData:function(t){var e=new a["e"](["value"],this);return e.hasItemOption=!1,e.initData(t.data,[],(function(t,n,i,r){if(t instanceof Array)return NaN;e.hasItemOption=!0;var a=t.value;return null!=a?a instanceof Array?a[r]:a:void 0})),e},defaultOption:{show:!0,data:null,multiPolygon:!1,progressiveThreshold:1e3,progressive:1e3,zlevel:-10,label:{show:!1,distance:2,textStyle:{fontSize:20,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:4}},itemStyle:{color:"#fff",borderWidth:0,borderColor:"#333"},emphasis:{itemStyle:{color:"#639fc0"},label:{show:!0}}}});a["w"].merge(kd.prototype,Dl);var Bd=kd,zd=a["b"].extend({type:"polygons3D",__ecgl__:!0,init:function(t,e){this.groupGL=new Ta.Node,this._geo3DBuilderList=[],this._currentStep=0},render:function(t,e,n){this.groupGL.removeAll();var i=t.coordinateSystem;i&&i.viewGL&&i.viewGL.add(this.groupGL);var r=this._geo3DBuilderList[0];r||(r=new Du(n),r.extrudeY="mapbox3D"!==i.type&&"maptalks3D"!==i.type,this._geo3DBuilderList[0]=r),this._updateShaderDefines(i,r),r.update(t,e,n),this._geo3DBuilderList.length=1,this.groupGL.add(r.rootNode)},incrementalPrepareRender:function(t,e,n){this.groupGL.removeAll();var i=t.coordinateSystem;i&&i.viewGL&&i.viewGL.add(this.groupGL),this._currentStep=0},incrementalRender:function(t,e,n,i){var r=this._geo3DBuilderList[this._currentStep],a=e.coordinateSystem;r||(r=new Du(i),r.extrudeY="mapbox3D"!==a.type&&"maptalks3D"!==a.type,this._geo3DBuilderList[this._currentStep]=r),r.update(e,n,i,t.start,t.end),this.groupGL.add(r.rootNode),this._updateShaderDefines(a,r),this._currentStep++},_updateShaderDefines:function(t,e){var n=t.viewGL.isLinearSpace()?"define":"undefine";e.rootNode.traverse((function(e){e.material&&(e.material[n]("fragment","SRGB_DECODE"),"mapbox3D"!==t.type&&"maptalks3D"!==t.type||(e.material.define("fragment","NORMAL_UP_AXIS",2),e.material.define("fragment","NORMAL_FRONT_AXIS",1)))}))},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll(),this._geo3DBuilderList.forEach((function(t){t.dispose()}))}});function Vd(t){t.registerChartView(zd),t.registerSeriesModel(Bd)}Object(a["v"])(Vd);var Fd=a["g"].extend({type:"series.surface",dependencies:["globe","grid3D","geo3D"],visualStyleAccessPath:"itemStyle",formatTooltip:function(t){return Mh(this,t)},getInitialData:function(t,e){var n=t.data;function i(t){return!(isNaN(t.min)||isNaN(t.max)||isNaN(t.step))}function r(t){var e=a["p"].getPrecisionSafe;return Math.max(e(t.min),e(t.max),e(t.step))+1}if(!n)if(t.parametric){var o=t.parametricEquation||{},s=o.u||{},l=o.v||{};["u","v"].forEach((function(t){i(o[t])})),["x","y","z"].forEach((function(t){o[t]}));var u=Math.floor((s.max+s.step-s.min)/s.step),c=Math.floor((l.max+l.step-l.min)/l.step);n=new Float32Array(u*c*5);var h=r(s),d=r(l);for(S=0,T=0;T<c;T++)for(M=0;M<u;M++){var f=M*s.step+s.min,p=T*l.step+l.min,g=a["p"].round(Math.min(f,s.max),h),m=a["p"].round(Math.min(p,l.max),d);A=o.x(g,m),C=o.y(g,m),L=o.z(g,m);n[S++]=A,n[S++]=C,n[S++]=L,n[S++]=g,n[S++]=m}}else{var v=t.equation||{},y=v.x||{},_=v.y||{};if(["x","y"].forEach((function(t){i(v[t])})),"function"!==typeof v.z)return void 0;var b=Math.floor((y.max+y.step-y.min)/y.step),x=Math.floor((_.max+_.step-_.min)/_.step);n=new Float32Array(b*x*3);for(var w=r(y),O=r(_),S=0,T=0;T<x;T++)for(var M=0;M<b;M++){var A=M*y.step+y.min,C=T*_.step+_.min,I=a["p"].round(Math.min(A,y.max),w),D=a["p"].round(Math.min(C,_.max),O),L=v.z(I,D);n[S++]=I,n[S++]=D,n[S++]=L}}var E=["x","y","z"];t.parametric&&E.push("u","v");var j=Ah(this,E,n);return j},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,shading:"lambert",parametric:!1,wireframe:{show:!0,lineStyle:{color:"rgba(0,0,0,0.5)",width:1}},equation:{x:{min:-1,max:1,step:.1},y:{min:-1,max:1,step:.1},z:null},parametricEquation:{u:{min:-1,max:1,step:.1},v:{min:-1,max:1,step:.1},x:null,y:null,z:null},dataShape:null,itemStyle:{},animationDurationUpdate:500}});a["w"].merge(Fd.prototype,Dl);var Gd=Fd,Hd=to.vec3;function Ud(t){return isNaN(t[0])||isNaN(t[1])||isNaN(t[2])}var Wd=a["b"].extend({type:"surface",__ecgl__:!0,init:function(t,e){this.groupGL=new Ta.Node},render:function(t,e,n){var i=this._prevSurfaceMesh;this._prevSurfaceMesh=this._surfaceMesh,this._surfaceMesh=i,this._surfaceMesh||(this._surfaceMesh=this._createSurfaceMesh()),this.groupGL.remove(this._prevSurfaceMesh),this.groupGL.add(this._surfaceMesh);var r=t.coordinateSystem,a=t.get("shading"),o=t.getData(),s="ecgl."+a;if(this._surfaceMesh.material&&this._surfaceMesh.material.shader.name===s||(this._surfaceMesh.material=Ta.createMaterial(s,["VERTEX_COLOR","DOUBLE_SIDED"])),Ta.setMaterialFromModel(a,this._surfaceMesh.material,t,n),r&&r.viewGL){r.viewGL.add(this.groupGL);var l=r.viewGL.isLinearSpace()?"define":"undefine";this._surfaceMesh.material[l]("fragment","SRGB_DECODE")}var u=t.get("parametric"),c=t.get("dataShape");c||(c=this._getDataShape(o,u));var h=t.getModel("wireframe"),d=h.get("lineStyle.width"),f=h.get("show")&&d>0;this._updateSurfaceMesh(this._surfaceMesh,t,c,f);var p=this._surfaceMesh.material;f?(p.define("WIREFRAME_QUAD"),p.set("wireframeLineWidth",d),p.set("wireframeLineColor",Ta.parseColor(h.get("lineStyle.color")))):p.undefine("WIREFRAME_QUAD"),this._initHandler(t,n),this._updateAnimation(t)},_updateAnimation:function(t){Ta.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevSurfaceMesh,this._surfaceMesh,t)},_createSurfaceMesh:function(){var t=new Ta.Mesh({geometry:new Ta.Geometry({dynamic:!0,sortTriangles:!0}),shadowDepthMaterial:new Ta.Material({shader:new Ta.Shader(Ta.Shader.source("ecgl.sm.depth.vertex"),Ta.Shader.source("ecgl.sm.depth.fragment"))}),culling:!1,renderOrder:10,renderNormal:!0});return t.geometry.createAttribute("barycentric","float",4),t.geometry.createAttribute("prevPosition","float",3),t.geometry.createAttribute("prevNormal","float",3),Object.assign(t.geometry,_u),t},_initHandler:function(t,e){var n=t.getData(),i=this._surfaceMesh,r=t.coordinateSystem;function a(t,e){for(var n=1/0,r=-1,a=[],o=0;o<t.length;o++){i.geometry.attributes.position.get(t[o],a);var s=Hd.dist(e.array,a);s<n&&(n=s,r=t[o])}return r}i.seriesIndex=t.seriesIndex;var o=-1;i.off("mousemove"),i.off("mouseout"),i.on("mousemove",(function(t){var s=a(t.triangle,t.point);if(s>=0){var l=[];i.geometry.attributes.position.get(s,l);for(var u=r.pointToData(l),c=1/0,h=-1,d=[],f=0;f<n.count();f++){d[0]=n.get("x",f),d[1]=n.get("y",f),d[2]=n.get("z",f);var p=Hd.squaredDistance(d,u);p<c&&(h=f,c=p)}h!==o&&e.dispatchAction({type:"grid3DShowAxisPointer",value:u}),o=h,i.dataIndex=h}else i.dataIndex=-1}),this),i.on("mouseout",(function(t){o=-1,i.dataIndex=-1,e.dispatchAction({type:"grid3DHideAxisPointer"})}),this)},_updateSurfaceMesh:function(t,e,n,i){var r=t.geometry,a=e.getData(),o=a.getLayout("points"),s=0;a.each((function(t){a.hasValue(t)||s++}));var l=s||i,u=r.attributes.position,c=r.attributes.normal,h=r.attributes.texcoord0,d=r.attributes.barycentric,f=r.attributes.color,p=n[0],g=n[1],m=e.get("shading"),v="color"!==m;if(l){var y=(p-1)*(g-1)*4;u.init(y),i&&d.init(y)}else u.value=new Float32Array(o);f.init(r.vertexCount),h.init(r.vertexCount);var _=[0,3,1,1,3,2],b=[[1,1,0,0],[0,1,0,1],[1,0,0,1],[1,0,1,0]],x=r.indices=new(r.vertexCount>65535?Uint32Array:Uint16Array)((p-1)*(g-1)*6),w=function(t,e,n){n[1]=t*g+e,n[0]=t*g+e+1,n[3]=(t+1)*g+e+1,n[2]=(t+1)*g+e},O=!1;if(l){var S=[],T=[],M=0;v?c.init(r.vertexCount):c.value=null;for(var A=[[],[],[]],C=[],I=[],D=Hd.create(),L=function(t,e,n){var i=3*e;return n[0]=t[i],n[1]=t[i+1],n[2]=t[i+2],n},E=new Float32Array(o.length),j=new Float32Array(o.length/3*4),P=0;P<a.count();P++)if(a.hasValue(P)){var N=Ta.parseColor(wu(a,P)),R=Ou(a,P);null!=R&&(N[3]*=R),N[3]<.99&&(O=!0);for(var k=0;k<4;k++)j[4*P+k]=N[k]}var B=[1e7,1e7,1e7];for(P=0;P<p-1;P++)for(var z=0;z<g-1;z++){var V=P*(g-1)+z,F=4*V;w(P,z,S);var G=!1;for(k=0;k<4;k++)L(o,S[k],T),Ud(T)&&(G=!0);for(k=0;k<4;k++)G?u.set(F+k,B):(L(o,S[k],T),u.set(F+k,T)),i&&d.set(F+k,b[k]);for(k=0;k<6;k++)x[M++]=_[k]+F;if(v&&!G)for(k=0;k<2;k++){for(var H=3*k,U=0;U<3;U++){var W=S[_[H]+U];L(o,W,A[U])}Hd.sub(C,A[0],A[1]),Hd.sub(I,A[1],A[2]),Hd.cross(D,C,I);for(U=0;U<3;U++){var X=3*S[_[H]+U];E[X]=E[X]+D[0],E[X+1]=E[X+1]+D[1],E[X+2]=E[X+2]+D[2]}}}if(v)for(P=0;P<E.length/3;P++)L(E,P,D),Hd.normalize(D,D),E[3*P]=D[0],E[3*P+1]=D[1],E[3*P+2]=D[2];N=[];var Z=[];for(P=0;P<p-1;P++)for(z=0;z<g-1;z++){V=P*(g-1)+z,F=4*V;w(P,z,S);for(k=0;k<4;k++){for(U=0;U<4;U++)N[U]=j[4*S[k]+U];f.set(F+k,N),v&&(L(E,S[k],D),c.set(F+k,D));W=S[k];Z[0]=W%g/(g-1),Z[1]=Math.floor(W/g)/(p-1),h.set(F+k,Z)}V++}}else{for(Z=[],P=0;P<a.count();P++){Z[0]=P%g/(g-1),Z[1]=Math.floor(P/g)/(p-1);N=Ta.parseColor(wu(a,P)),R=Ou(a,P);null!=R&&(N[3]*=R),N[3]<.99&&(O=!0),f.set(P,N),h.set(P,Z)}S=[];var q=0;for(P=0;P<p-1;P++)for(z=0;z<g-1;z++){w(P,z,S);for(k=0;k<6;k++)x[q++]=S[_[k]]}v?r.generateVertexNormals():c.value=null}t.material.get("normalMap")&&r.generateTangents(),r.updateBoundingBox(),r.dirty(),t.material.transparent=O,t.material.depthMask=!O},_getDataShape:function(t,e){for(var n=-1/0,i=0,r=0,a=!1,o=e?"u":"x",s=t.count(),l=0;l<s;l++){var u=t.get(o,l);u<n&&(r,r=0,i++),n=u,r++}if(i&&1!==r||(a=!0),!a)return[i+1,r];var c=Math.floor(Math.sqrt(s));while(c>0){if(Math.floor(s/c)===s/c)return[c,s/c];c--}return c=Math.floor(Math.sqrt(s)),[c,c]},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function Xd(t){t.registerChartView(Wd),t.registerSeriesModel(Gd),t.registerLayout((function(t,e){t.eachSeriesByType("surface",(function(t){var e=t.coordinateSystem;e&&e.type;var n=t.getData(),i=new Float32Array(3*n.count()),r=[NaN,NaN,NaN];if(e&&"cartesian3D"===e.type){var a=e.dimensions,o=a.map((function(e){return t.coordDimToDataDim(e)[0]}));n.each(o,(function(t,a,o,s){var l;l=n.hasValue(s)?e.dataToPoint([t,a,o]):r,i[3*s]=l[0],i[3*s+1]=l[1],i[3*s+2]=l[2]}))}n.setLayout("points",i)}))}))}function Zd(t,e){for(var n=[],i=0;i<e.length;i++)n.push(t.dataToPoint(e[i]));return n}Object(a["v"])(Xd);var qd=a["g"].extend({type:"series.map3D",layoutMode:"box",coordinateSystem:null,visualStyleAccessPath:"itemStyle",optionUpdated:function(t){t=t||{};var e=this.get("coordinateSystem");null!=e&&"geo3D"!==e&&(this.get("groundPlane.show")&&(this.option.groundPlane.show=!1),this._geo=null)},getInitialData:function(t){t.data=this.getFilledRegions(t.data,t.map);var e=a["m"].createDimensions(t.data,{coordDimensions:["value"]}),n=new a["e"](e,this);n.initData(t.data);var i={};return n.each((function(t){var e=n.getName(t),r=n.getItemModel(t);i[e]=r})),this._regionModelMap=i,n},formatTooltip:function(t){return Mh(this,t)},getRegionModel:function(t){var e=this.getData().getName(t);return this._regionModelMap[e]||new a["f"](null,this)},getRegionPolygonCoords:function(t){var e=this.coordinateSystem,n=this.getData().getName(t);if(e.transform){var i=e.getRegion(n);return i?i.geometries:[]}this._geo||(this._geo=Uu.createGeo3D(this));i=this._geo.getRegion(n);for(var r=[],a=0;a<i.geometries.length;a++){var o=i.geometries[a],s=[],l=Zd(e,o.exterior);if(s&&s.length)for(var u=0;u<o.interiors.length;u++)s.push(Zd(e,s[u]));r.push({interiors:s,exterior:l})}return r},getFormattedLabel:function(t,e){var n=Sh.getFormattedLabel(this,t,e);return null==n&&(n=this.getData().getName(t)),n},defaultOption:{coordinateSystem:"geo3D",data:null}});a["w"].merge(qd.prototype,Ll),a["w"].merge(qd.prototype,Fa),a["w"].merge(qd.prototype,Ga),a["w"].merge(qd.prototype,Ha),a["w"].merge(qd.prototype,Dl);var Yd=qd,Kd=a["b"].extend({type:"map3D",__ecgl__:!0,init:function(t,e){this._geo3DBuilder=new Du(e),this.groupGL=new Ta.Node},render:function(t,e,n){var i=t.coordinateSystem;if(i&&i.viewGL){if(this.groupGL.add(this._geo3DBuilder.rootNode),i.viewGL.add(this.groupGL),"geo3D"===i.type){i,this._sceneHelper||(this._sceneHelper=new uo,this._sceneHelper.initLight(this.groupGL)),this._sceneHelper.setScene(i.viewGL.scene),this._sceneHelper.updateLight(t),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling"));var r=this._control;r||(r=this._control=new Qa({zr:n.getZr()}),this._control.init());var a=t.getModel("viewControl");r.setViewGL(i.viewGL),r.setFromViewControlModel(a,0),r.off("update"),r.on("update",(function(){n.dispatchAction({type:"map3DChangeCamera",alpha:r.getAlpha(),beta:r.getBeta(),distance:r.getDistance(),from:this.uid,map3DId:t.id})})),this._geo3DBuilder.extrudeY=!0}else this._control&&(this._control.dispose(),this._control=null),this._sceneHelper&&(this._sceneHelper.dispose(),this._sceneHelper=null),t.getData().getLayout("geo3D"),this._geo3DBuilder.extrudeY=!1;this._geo3DBuilder.update(t,e,n,0,t.getData().count());var o=i.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse((function(t){t.material&&t.material[o]("fragment","SRGB_DECODE")}))}},afterRender:function(t,e,n,i){var r=i.renderer,a=t.coordinateSystem;a&&"geo3D"===a.type&&(this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n))},dispose:function(){this.groupGL.removeAll(),this._control.dispose(),this._geo3DBuilder.dispose()}});function Qd(t){Wu(t),t.registerChartView(Kd),t.registerSeriesModel(Yd),t.registerAction({type:"map3DChangeCamera",event:"map3dcamerachanged",update:"series:updateCamera"},(function(t,e){e.eachComponent({mainType:"series",subType:"map3D",query:t},(function(e){e.setView(t)}))}))}Object(a["v"])(Qd);var Jd=a["g"].extend({type:"series.scatterGL",dependencies:["grid","polar","geo","singleAxis"],visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,getInitialData:function(){return a["m"].createList(this)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,progressive:1e5,progressiveThreshold:1e5,large:!1,symbol:"circle",symbolSize:10,zoomScale:0,blendMode:"source-over",itemStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}}),$d=n("1687"),tf=n("401b");function ef(t){this.viewGL=t}ef.prototype.reset=function(t,e){this._updateCamera(e.getWidth(),e.getHeight(),e.getDevicePixelRatio()),this._viewTransform=$d["c"](),this.updateTransform(t,e)},ef.prototype.updateTransform=function(t,e){var n=t.coordinateSystem;n.getRoamTransform&&($d["e"](this._viewTransform,n.getRoamTransform()),this._setCameraTransform(this._viewTransform),e.getZr().refresh())},ef.prototype.dataToPoint=function(t,e,n){n=t.dataToPoint(e,null,n);var i=this._viewTransform;i&&tf["b"](n,n,i)},ef.prototype.removeTransformInPoint=function(t){return this._viewTransform&&tf["b"](t,t,this._viewTransform),t},ef.prototype.getZoom=function(){if(this._viewTransform){var t=this._viewTransform;return 1/Math.max(Math.sqrt(t[0]*t[0]+t[1]*t[1]),Math.sqrt(t[2]*t[2]+t[3]*t[3]))}return 1},ef.prototype._setCameraTransform=function(t){var e=this.viewGL.camera;e.position.set(t[4],t[5],0),e.scale.set(Math.sqrt(t[0]*t[0]+t[1]*t[1]),Math.sqrt(t[2]*t[2]+t[3]*t[3]),1)},ef.prototype._updateCamera=function(t,e,n){this.viewGL.setViewport(0,0,t,e,n);var i=this.viewGL.camera;i.left=i.top=0,i.bottom=e,i.right=t,i.near=0,i.far=100};var nf=ef,rf=a["b"].extend({type:"scatterGL",__ecgl__:!0,init:function(t,e){this.groupGL=new Ta.Node,this.viewGL=new dl("orthographic"),this.viewGL.add(this.groupGL),this._pointsBuilderList=[],this._currentStep=0,this._sizeScale=1,this._glViewHelper=new nf(this.viewGL)},render:function(t,e,n){if(this.groupGL.removeAll(),this._glViewHelper.reset(t,n),t.getData().count()){var i=this._pointsBuilderList[0];i||(i=this._pointsBuilderList[0]=new ad(!0,n)),this._pointsBuilderList.length=1,this.groupGL.add(i.rootNode),this._removeTransformInPoints(t.getData().getLayout("points")),i.update(t,e,n),this.viewGL.setPostEffect(t.getModel("postEffect"),n)}},incrementalPrepareRender:function(t,e,n){this.groupGL.removeAll(),this._glViewHelper.reset(t,n),this._currentStep=0,this.viewGL.setPostEffect(t.getModel("postEffect"),n)},incrementalRender:function(t,e,n,i){if(!(t.end<=t.start)){var r=this._pointsBuilderList[this._currentStep];r||(r=new ad(!0,i),this._pointsBuilderList[this._currentStep]=r),this.groupGL.add(r.rootNode),this._removeTransformInPoints(e.getData().getLayout("points")),r.setSizeScale(this._sizeScale),r.update(e,n,i,t.start,t.end),i.getZr().refresh(),this._currentStep++}},updateTransform:function(t,e,n){if(t.coordinateSystem.getRoamTransform){this._glViewHelper.updateTransform(t,n);var i=this._glViewHelper.getZoom(),r=Math.max((t.get("zoomScale")||0)*(i-1)+1,0);this._sizeScale=r,this._pointsBuilderList.forEach((function(t){t.setSizeScale(r)}))}},_removeTransformInPoints:function(t){if(t)for(var e=[],n=0;n<t.length;n+=2)e[0]=t[n],e[1]=t[n+1],this._glViewHelper.removeTransformInPoint(e),t[n]=e[0],t[n+1]=e[1]},dispose:function(){this.groupGL.removeAll(),this._pointsBuilderList.forEach((function(t){t.dispose()}))},remove:function(){this.groupGL.removeAll()}});function af(t){t.registerChartView(rf),t.registerSeriesModel(Jd),t.registerLayout({seriesType:"scatterGL",reset:function(t){var e,n=t.coordinateSystem,i=t.getData();if(n){var r=n.dimensions.map((function(t){return i.mapDimension(t)})).slice(0,2),a=[];1===r.length?e=function(t){for(var e=new Float32Array(2*(t.end-t.start)),a=t.start;a<t.end;a++){var o=2*(a-t.start),s=i.get(r[0],a),l=n.dataToPoint(s);e[o]=l[0],e[o+1]=l[1]}i.setLayout("points",e)}:2===r.length&&(e=function(t){for(var e=new Float32Array(2*(t.end-t.start)),o=t.start;o<t.end;o++){var s=2*(o-t.start),l=i.get(r[0],o),u=i.get(r[1],o);a[0]=l,a[1]=u,a=n.dataToPoint(a),e[s]=a[0],e[s+1]=a[1]}i.setLayout("points",e)})}return{progress:e}}})}Object(a["v"])(af);var of=n("7368"),sf=n("6a2f"),lf=sf["a"],uf=function(t,e,n,i,r){for(var o=new of["a"](i),s=0;s<t.length;s++)o.addNode(Pr.firstNotNull(t[s].id,t[s].name,s),s);var l,u=[],c=[],h=0;for(s=0;s<e.length;s++){var d=e[s],f=d.source,p=d.target;o.addEdge(f,p,h)&&(c.push(d),u.push(Pr.firstNotNull(d.id,f+" > "+p)),h++)}var g=a["m"].createDimensions(t,{coordDimensions:["value"]});l=new a["e"](g,n),l.initData(t);var m=new a["e"](["value"],n);return m.initData(c,u),r&&r(l,m),lf({mainData:l,struct:o,structAttr:"graph",datas:{node:l,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o},cf=a["g"].extend({type:"series.graphGL",visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,init:function(t){cf.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this._updateCategoriesData()},mergeOption:function(t){cf.superApply(this,"mergeOption",arguments),this._updateCategoriesData()},getFormattedLabel:function(t,e,n,i){var r=Sh.getFormattedLabel(this,t,e,n,i);if(null==r){var a=this.getData(),o=a.dimensions[a.dimensions.length-1];r=a.get(o,t)}return r},getInitialData:function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n)return uf(i,n,this,!0,a).data;function a(t,n){t.wrapMethod("getItemModel",(function(t){const e=r._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t}));const i=e.getModel([]).getModel;function a(t,e){const n=i.call(this,t,e);return n.resolveParentPath=o,n}function o(t){if(t&&("label"===t[0]||"label"===t[1])){const e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}n.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=o,t.getModel=a,t}))}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),s=i.getName(o.node1.dataIndex),l=i.getName(o.node2.dataIndex),u=[];return null!=s&&u.push(s),null!=l&&u.push(l),u=a["i"].encodeHTML(u.join(" > ")),r.value&&(u+=" : "+a["i"].encodeHTML(r.value)),u}return cf.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=(this.option.categories||[]).map((function(t){return null!=t.value?t:Object.assign({value:0},t)})),e=new a["e"](["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t,!0)}))},setView:function(t){null!=t.zoom&&(this.option.zoom=t.zoom),null!=t.offset&&(this.option.offset=t.offset)},setNodePosition:function(t){for(var e=0;e<t.length/2;e++){var n=t[2*e],i=t[2*e+1],r=this.getData().getRawDataItem(e);r.x=n,r.y=i}},isAnimationEnabled:function(){return cf.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:10,z:2,legendHoverLink:!0,layout:"forceAtlas2",forceAtlas2:{initLayout:null,GPU:!0,steps:1,maxSteps:1e3,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,edgeWeightInfluence:1,edgeWeight:[1,4],nodeWeight:[1,4],preventOverlap:!1,gravityCenter:null},focusNodeAdjacency:!0,focusNodeAdjacencyOn:"mouseover",left:"center",top:"center",symbol:"circle",symbolSize:5,roam:!1,center:null,zoom:1,label:{show:!1,formatter:"{b}",position:"right",distance:5,textStyle:{fontSize:14}},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}},animation:!1}}),hf=cf,df=to.vec2,ff=[[0,0],[1,1]],pf=bn.extend((function(){return{segmentScale:4,dynamic:!0,useNativeLine:!0,attributes:{position:new bn.Attribute("position","float",2,"POSITION"),normal:new bn.Attribute("normal","float",2),offset:new bn.Attribute("offset","float",1),color:new bn.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(t){var e=this.attributes;this.vertexCount!==t&&(e.position.init(t),e.color.init(t),this.useNativeLine||(e.offset.init(t),e.normal.init(t)),t>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(t){this.triangleCount!==t&&(this.indices=0===t?null:this.vertexCount>65535?new Uint32Array(3*t):new Uint16Array(3*t))},_getCubicCurveApproxStep:function(t,e,n,i){var r=df.dist(t,e)+df.dist(n,e)+df.dist(i,n),a=1/(r+1)*this.segmentScale;return a},getCubicCurveVertexCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),a=Math.ceil(1/r);return this.useNativeLine?2*a:2*a+2},getCubicCurveTriangleCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),a=Math.ceil(1/r);return this.useNativeLine?0:2*a},getLineVertexCount:function(){return this.getPolylineVertexCount(ff)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(ff)},getPolylineVertexCount:function(t){var e;if("number"===typeof t)e=t;else{var n="number"!==typeof t[0];e=n?t.length:t.length/2}return this.useNativeLine?2*(e-1):2*(e-1)+2},getPolylineTriangleCount:function(t){var e;if("number"===typeof t)e=t;else{var n="number"!==typeof t[0];e=n?t.length:t.length/2}return this.useNativeLine?0:2*(e-1)},addCubicCurve:function(t,e,n,i,r,a){null==a&&(a=1);var o=t[0],s=t[1],l=e[0],u=e[1],c=n[0],h=n[1],d=i[0],f=i[1],p=this._getCubicCurveApproxStep(t,e,n,i),g=p*p,m=g*p,v=3*p,y=3*g,_=6*g,b=6*m,x=o-2*l+c,w=s-2*u+h,O=3*(l-c)-o+d,S=3*(u-h)-s+f,T=o,M=s,A=(l-o)*v+x*y+O*m,C=(u-s)*v+w*y+S*m,I=x*_+O*b,D=w*_+S*b,L=O*b,E=S*b,j=0,P=0,N=Math.ceil(1/p),R=new Float32Array(3*(N+1)),k=(R=[],0);for(P=0;P<N+1;P++)R[k++]=T,R[k++]=M,T+=A,M+=C,A+=I,C+=D,I+=L,D+=E,j+=p,j>1&&(T=A>0?Math.min(T,d):Math.max(T,d),M=C>0?Math.min(M,f):Math.max(M,f));this.addPolyline(R,r,a)},addLine:function(t,e,n,i){this.addPolyline([t,e],n,i)},addPolyline:function(){var t=df.create(),e=df.create(),n=df.create(),i=df.create(),r=[],a=[],o=[];return function(s,l,u,c,h){if(s.length){var d="number"!==typeof s[0];if(null==h&&(h=d?s.length:s.length/2),!(h<2)){null==c&&(c=0),null==u&&(u=1),this._itemVertexOffsets.push(this._vertexOffset);for(var f,p=d?"number"!==typeof l[0]:l.length/4===h,g=this.attributes.position,m=this.attributes.color,v=this.attributes.offset,y=this.attributes.normal,_=this.indices,b=this._vertexOffset,x=0;x<h;x++){if(d)r=s[x+c],f=p?l[x+c]:l;else{var w=2*x+c;if(r=r||[],r[0]=s[w],r[1]=s[w+1],p){var O=4*x+c;f=f||[],f[0]=l[O],f[1]=l[O+1],f[2]=l[O+2],f[3]=l[O+3]}else f=l}if(this.useNativeLine)x>1&&(g.copy(b,b-1),m.copy(b,b-1),b++);else{var S;if(x<h-1){if(d)df.copy(a,s[x+1]);else{w=2*(x+1)+c;a=a||[],a[0]=s[w],a[1]=s[w+1]}if(x>0){df.sub(t,r,o),df.sub(e,a,r),df.normalize(t,t),df.normalize(e,e),df.add(i,t,e),df.normalize(i,i);var T=u/2*Math.min(1/df.dot(t,i),2);n[0]=-i[1],n[1]=i[0],S=T}else df.sub(t,a,r),df.normalize(t,t),n[0]=-t[1],n[1]=t[0],S=u/2}else df.sub(t,r,o),df.normalize(t,t),n[0]=-t[1],n[1]=t[0],S=u/2;y.set(b,n),y.set(b+1,n),v.set(b,S),v.set(b+1,-S),df.copy(o,r),g.set(b,r),g.set(b+1,r),m.set(b,f),m.set(b+1,f),b+=2}if(this.useNativeLine)m.set(b,f),g.set(b,r),b++;else if(x>0){var M=3*this._faceOffset;_=this.indices;_[M]=b-4,_[M+1]=b-3,_[M+2]=b-2,_[M+3]=b-3,_[M+4]=b-1,_[M+5]=b-2,this._faceOffset+=2}}this._vertexOffset=b}}}}(),setItemColor:function(t,e){for(var n=this._itemVertexOffsets[t],i=t<this._itemVertexOffsets.length-1?this._itemVertexOffsets[t+1]:this._vertexOffset,r=n;r<i;r++)this.attributes.color.set(r,e);this.dirty("color")}});a["w"].defaults(pf.prototype,Ja);var gf=pf,mf="@export ecgl.forceAtlas2.updateNodeRepulsion\n\n#define NODE_COUNT 0\n\nuniform sampler2D positionTex;\n\nuniform vec2 textureSize;\nuniform float gravity;\nuniform float scaling;\nuniform vec2 gravityCenter;\n\nuniform bool strongGravityMode;\nuniform bool preventOverlap;\n\nvarying vec2 v_Texcoord;\n\nvoid main() {\n\n vec4 n0 = texture2D(positionTex, v_Texcoord);\n\n vec2 force = vec2(0.0);\n for (int i = 0; i < NODE_COUNT; i++) {\n vec2 uv = vec2(\n mod(float(i), textureSize.x) / (textureSize.x - 1.0),\n floor(float(i) / textureSize.x) / (textureSize.y - 1.0)\n );\n vec4 n1 = texture2D(positionTex, uv);\n\n vec2 dir = n0.xy - n1.xy;\n float d2 = dot(dir, dir);\n\n if (d2 > 0.0) {\n float factor = 0.0;\n if (preventOverlap) {\n float d = sqrt(d2);\n d = d - n0.w - n1.w;\n if (d > 0.0) {\n factor = scaling * n0.z * n1.z / (d * d);\n }\n else if (d < 0.0) {\n factor = scaling * 100.0 * n0.z * n1.z;\n }\n }\n else {\n factor = scaling * n0.z * n1.z / d2;\n }\n force += dir * factor;\n }\n }\n\n vec2 dir = gravityCenter - n0.xy;\n float d = 1.0;\n if (!strongGravityMode) {\n d = length(dir);\n }\n\n force += dir * n0.z * gravity / (d + 1.0);\n\n gl_FragColor = vec4(force, 0.0, 1.0);\n}\n@end\n\n@export ecgl.forceAtlas2.updateEdgeAttraction.vertex\n\nattribute vec2 node1;\nattribute vec2 node2;\nattribute float weight;\n\nuniform sampler2D positionTex;\nuniform float edgeWeightInfluence;\nuniform bool preventOverlap;\nuniform bool linLogMode;\n\nuniform vec2 windowSize: WINDOW_SIZE;\n\nvarying vec2 v_Force;\n\nvoid main() {\n\n vec4 n0 = texture2D(positionTex, node1);\n vec4 n1 = texture2D(positionTex, node2);\n\n vec2 dir = n1.xy - n0.xy;\n float d = length(dir);\n float w;\n if (edgeWeightInfluence == 0.0) {\n w = 1.0;\n }\n else if (edgeWeightInfluence == 1.0) {\n w = weight;\n }\n else {\n w = pow(weight, edgeWeightInfluence);\n }\n vec2 offset = vec2(1.0 / windowSize.x, 1.0 / windowSize.y);\n vec2 scale = vec2((windowSize.x - 1.0) / windowSize.x, (windowSize.y - 1.0) / windowSize.y);\n vec2 pos = node1 * scale * 2.0 - 1.0;\n gl_Position = vec4(pos + offset, 0.0, 1.0);\n gl_PointSize = 1.0;\n\n float factor;\n if (preventOverlap) {\n d = d - n1.w - n0.w;\n }\n if (d <= 0.0) {\n v_Force = vec2(0.0);\n return;\n }\n\n if (linLogMode) {\n factor = w * log(d) / d;\n }\n else {\n factor = w;\n }\n v_Force = dir * factor;\n}\n@end\n\n@export ecgl.forceAtlas2.updateEdgeAttraction.fragment\n\nvarying vec2 v_Force;\n\nvoid main() {\n gl_FragColor = vec4(v_Force, 0.0, 0.0);\n}\n@end\n\n@export ecgl.forceAtlas2.calcWeightedSum.vertex\n\nattribute vec2 node;\n\nvarying vec2 v_NodeUv;\n\nvoid main() {\n\n v_NodeUv = node;\n gl_Position = vec4(0.0, 0.0, 0.0, 1.0);\n gl_PointSize = 1.0;\n}\n@end\n\n@export ecgl.forceAtlas2.calcWeightedSum.fragment\n\nvarying vec2 v_NodeUv;\n\nuniform sampler2D positionTex;\nuniform sampler2D forceTex;\nuniform sampler2D forcePrevTex;\n\nvoid main() {\n vec2 force = texture2D(forceTex, v_NodeUv).rg;\n vec2 forcePrev = texture2D(forcePrevTex, v_NodeUv).rg;\n\n float mass = texture2D(positionTex, v_NodeUv).z;\n float swing = length(force - forcePrev) * mass;\n float traction = length(force + forcePrev) * 0.5 * mass;\n\n gl_FragColor = vec4(swing, traction, 0.0, 0.0);\n}\n@end\n\n@export ecgl.forceAtlas2.calcGlobalSpeed\n\nuniform sampler2D globalSpeedPrevTex;\nuniform sampler2D weightedSumTex;\nuniform float jitterTolerence;\n\nvoid main() {\n vec2 weightedSum = texture2D(weightedSumTex, vec2(0.5)).xy;\n float prevGlobalSpeed = texture2D(globalSpeedPrevTex, vec2(0.5)).x;\n float globalSpeed = jitterTolerence * jitterTolerence\n * weightedSum.y / weightedSum.x;\n if (prevGlobalSpeed > 0.0) {\n globalSpeed = min(globalSpeed / prevGlobalSpeed, 1.5) * prevGlobalSpeed;\n }\n gl_FragColor = vec4(globalSpeed, 0.0, 0.0, 1.0);\n}\n@end\n\n@export ecgl.forceAtlas2.updatePosition\n\nuniform sampler2D forceTex;\nuniform sampler2D forcePrevTex;\nuniform sampler2D positionTex;\nuniform sampler2D globalSpeedTex;\n\nvarying vec2 v_Texcoord;\n\nvoid main() {\n vec2 force = texture2D(forceTex, v_Texcoord).xy;\n vec2 forcePrev = texture2D(forcePrevTex, v_Texcoord).xy;\n vec4 node = texture2D(positionTex, v_Texcoord);\n\n float globalSpeed = texture2D(globalSpeedTex, vec2(0.5)).r;\n float swing = length(force - forcePrev);\n float speed = 0.1 * globalSpeed / (0.1 + globalSpeed * sqrt(swing));\n\n float df = length(force);\n if (df > 0.0) {\n speed = min(df * speed, 10.0) / df;\n\n gl_FragColor = vec4(node.xy + speed * force, node.zw);\n }\n else {\n gl_FragColor = node;\n }\n}\n@end\n\n@export ecgl.forceAtlas2.edges.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec2 node;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\nuniform sampler2D positionTex;\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(\n texture2D(positionTex, node).xy, -10.0, 1.0\n );\n v_Color = a_Color;\n}\n@end\n\n@export ecgl.forceAtlas2.edges.fragment\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nvarying vec4 v_Color;\nvoid main() {\n gl_FragColor = color * v_Color;\n}\n@end";Ta.Shader.import(mf);var vf={repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null};function yf(t){var e={type:Ta.Texture.FLOAT,minFilter:Ta.Texture.NEAREST,magFilter:Ta.Texture.NEAREST};this._positionSourceTex=new Ta.Texture2D(e),this._positionSourceTex.flipY=!1,this._positionTex=new Ta.Texture2D(e),this._positionPrevTex=new Ta.Texture2D(e),this._forceTex=new Ta.Texture2D(e),this._forcePrevTex=new Ta.Texture2D(e),this._weightedSumTex=new Ta.Texture2D(e),this._weightedSumTex.width=this._weightedSumTex.height=1,this._globalSpeedTex=new Ta.Texture2D(e),this._globalSpeedPrevTex=new Ta.Texture2D(e),this._globalSpeedTex.width=this._globalSpeedTex.height=1,this._globalSpeedPrevTex.width=this._globalSpeedPrevTex.height=1,this._nodeRepulsionPass=new vr({fragment:Ta.Shader.source("ecgl.forceAtlas2.updateNodeRepulsion")}),this._positionPass=new vr({fragment:Ta.Shader.source("ecgl.forceAtlas2.updatePosition")}),this._globalSpeedPass=new vr({fragment:Ta.Shader.source("ecgl.forceAtlas2.calcGlobalSpeed")}),this._copyPass=new vr({fragment:Ta.Shader.source("clay.compositor.output")});var n=function(t){t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE)};this._edgeForceMesh=new Ta.Mesh({geometry:new Ta.Geometry({attributes:{node1:new Ta.Geometry.Attribute("node1","float",2),node2:new Ta.Geometry.Attribute("node2","float",2),weight:new Ta.Geometry.Attribute("weight","float",1)},dynamic:!0,mainAttribute:"node1"}),material:new Ta.Material({transparent:!0,shader:Ta.createShader("ecgl.forceAtlas2.updateEdgeAttraction"),blend:n,depthMask:!1,depthText:!1}),mode:Ta.Mesh.POINTS}),this._weightedSumMesh=new Ta.Mesh({geometry:new Ta.Geometry({attributes:{node:new Ta.Geometry.Attribute("node","float",2)},dynamic:!0,mainAttribute:"node"}),material:new Ta.Material({transparent:!0,shader:Ta.createShader("ecgl.forceAtlas2.calcWeightedSum"),blend:n,depthMask:!1,depthText:!1}),mode:Ta.Mesh.POINTS}),this._framebuffer=new pi({depthBuffer:!1}),this._dummyCamera=new Ta.OrthographicCamera({left:-1,right:1,top:1,bottom:-1,near:0,far:100}),this._globalSpeed=0}yf.prototype.updateOption=function(t){for(var e in vf)this[e]=vf[e];var n=this._nodes.length;if(this.jitterTolerence=n>5e4?10:n>5e3?1:.1,this.scaling=n>100?2:10,t)for(var e in vf)null!=t[e]&&(this[e]=t[e]);if(this.repulsionByDegree)for(var i=this._positionSourceTex.pixels,r=0;r<this._nodes.length;r++)i[4*r+2]=(this._nodes[r].degree||0)+1},yf.prototype._updateGravityCenter=function(t){var e=this._nodes,n=this._edges;if(this.gravityCenter)this._gravityCenter=this.gravityCenter;else{for(var i=[1/0,1/0],r=[-1/0,-1/0],a=0;a<e.length;a++)i[0]=Math.min(e[a].x,i[0]),i[1]=Math.min(e[a].y,i[1]),r[0]=Math.max(e[a].x,r[0]),r[1]=Math.max(e[a].y,r[1]);this._gravityCenter=[.5*(i[0]+r[0]),.5*(i[1]+r[1])]}for(a=0;a<n.length;a++){var o=n[a].node1,s=n[a].node2;e[o].degree=(e[o].degree||0)+1,e[s].degree=(e[s].degree||0)+1}},yf.prototype.initData=function(t,e){this._nodes=t,this._edges=e,this._updateGravityCenter();var n=Math.ceil(Math.sqrt(t.length)),i=n,r=new Float32Array(n*i*4);this._resize(n,i);for(var a=0,o=0;o<t.length;o++){var s=t[o];r[a++]=s.x||0,r[a++]=s.y||0,r[a++]=s.mass||1,r[a++]=s.size||1}this._positionSourceTex.pixels=r;var l=this._edgeForceMesh.geometry,u=e.length;l.attributes.node1.init(2*u),l.attributes.node2.init(2*u),l.attributes.weight.init(2*u);var c=[];for(o=0;o<e.length;o++){var h=l.attributes,d=e[o].weight;null==d&&(d=1),h.node1.set(o,this.getNodeUV(e[o].node1,c)),h.node2.set(o,this.getNodeUV(e[o].node2,c)),h.weight.set(o,d),h.node1.set(o+u,this.getNodeUV(e[o].node2,c)),h.node2.set(o+u,this.getNodeUV(e[o].node1,c)),h.weight.set(o+u,d)}var f=this._weightedSumMesh.geometry;f.attributes.node.init(t.length);for(o=0;o<t.length;o++)f.attributes.node.set(o,this.getNodeUV(o,c));l.dirty(),f.dirty(),this._nodeRepulsionPass.material.define("fragment","NODE_COUNT",t.length),this._nodeRepulsionPass.material.setUniform("textureSize",[n,i]),this._inited=!1,this._frame=0},yf.prototype.getNodes=function(){return this._nodes},yf.prototype.getEdges=function(){return this._edges},yf.prototype.step=function(t){this._inited||(this._initFromSource(t),this._inited=!0),this._frame++,this._framebuffer.attach(this._forceTex),this._framebuffer.bind(t);var e=this._nodeRepulsionPass;e.setUniform("strongGravityMode",this.strongGravityMode),e.setUniform("gravity",this.gravity),e.setUniform("gravityCenter",this._gravityCenter),e.setUniform("scaling",this.scaling),e.setUniform("preventOverlap",this.preventOverlap),e.setUniform("positionTex",this._positionPrevTex),e.render(t);var n=this._edgeForceMesh;n.material.set("linLogMode",this.linLogMode),n.material.set("edgeWeightInfluence",this.edgeWeightInfluence),n.material.set("preventOverlap",this.preventOverlap),n.material.set("positionTex",this._positionPrevTex),t.gl.enable(t.gl.BLEND),t.renderPass([n],this._dummyCamera),this._framebuffer.attach(this._weightedSumTex),t.gl.clearColor(0,0,0,0),t.gl.clear(t.gl.COLOR_BUFFER_BIT),t.gl.enable(t.gl.BLEND);var i=this._weightedSumMesh;i.material.set("positionTex",this._positionPrevTex),i.material.set("forceTex",this._forceTex),i.material.set("forcePrevTex",this._forcePrevTex),t.renderPass([i],this._dummyCamera),this._framebuffer.attach(this._globalSpeedTex);var r=this._globalSpeedPass;r.setUniform("globalSpeedPrevTex",this._globalSpeedPrevTex),r.setUniform("weightedSumTex",this._weightedSumTex),r.setUniform("jitterTolerence",this.jitterTolerence),t.gl.disable(t.gl.BLEND),r.render(t);var a=this._positionPass;this._framebuffer.attach(this._positionTex),a.setUniform("globalSpeedTex",this._globalSpeedTex),a.setUniform("positionTex",this._positionPrevTex),a.setUniform("forceTex",this._forceTex),a.setUniform("forcePrevTex",this._forcePrevTex),a.render(t),this._framebuffer.unbind(t),this._swapTexture()},yf.prototype.update=function(t,e,n){null==e&&(e=1),e=Math.max(e,1);for(var i=0;i<e;i++)this.step(t);n&&n()},yf.prototype.getNodePositionTexture=function(){return this._inited?this._positionPrevTex:this._positionSourceTex},yf.prototype.getNodeUV=function(t,e){e=e||[];var n=this._positionTex.width,i=this._positionTex.height;return e[0]=t%n/(n-1),e[1]=Math.floor(t/n)/(i-1)||0,e},yf.prototype.getNodePosition=function(t,e){var n=this._positionArr,i=this._positionTex.width,r=this._positionTex.height,a=i*r;n&&n.length===4*a||(n=this._positionArr=new Float32Array(4*a)),this._framebuffer.bind(t),this._framebuffer.attach(this._positionPrevTex),t.gl.readPixels(0,0,i,r,t.gl.RGBA,t.gl.FLOAT,n),this._framebuffer.unbind(t),e||(e=new Float32Array(2*this._nodes.length));for(var o=0;o<this._nodes.length;o++)e[2*o]=n[4*o],e[2*o+1]=n[4*o+1];return e},yf.prototype.getTextureData=function(t,e){var n=this["_"+e+"Tex"],i=n.width,r=n.height;this._framebuffer.bind(t),this._framebuffer.attach(n);var a=new Float32Array(i*r*4);return t.gl.readPixels(0,0,i,r,t.gl.RGBA,t.gl.FLOAT,a),this._framebuffer.unbind(t),a},yf.prototype.getTextureSize=function(){return{width:this._positionTex.width,height:this._positionTex.height}},yf.prototype.isFinished=function(t){return this._frame>t},yf.prototype._swapTexture=function(){var t=this._positionPrevTex;this._positionPrevTex=this._positionTex,this._positionTex=t;t=this._forcePrevTex;this._forcePrevTex=this._forceTex,this._forceTex=t;t=this._globalSpeedPrevTex;this._globalSpeedPrevTex=this._globalSpeedTex,this._globalSpeedTex=t},yf.prototype._initFromSource=function(t){this._framebuffer.attach(this._positionPrevTex),this._framebuffer.bind(t),this._copyPass.setUniform("texture",this._positionSourceTex),this._copyPass.render(t),t.gl.clearColor(0,0,0,0),this._framebuffer.attach(this._forcePrevTex),t.gl.clear(t.gl.COLOR_BUFFER_BIT),this._framebuffer.attach(this._globalSpeedPrevTex),t.gl.clear(t.gl.COLOR_BUFFER_BIT),this._framebuffer.unbind(t)},yf.prototype._resize=function(t,e){["_positionSourceTex","_positionTex","_positionPrevTex","_forceTex","_forcePrevTex"].forEach((function(n){this[n].width=t,this[n].height=e,this[n].dirty()}),this)},yf.prototype.dispose=function(t){this._framebuffer.dispose(t),this._copyPass.dispose(t),this._nodeRepulsionPass.dispose(t),this._positionPass.dispose(t),this._globalSpeedPass.dispose(t),this._edgeForceMesh.geometry.dispose(t),this._weightedSumMesh.geometry.dispose(t),this._positionSourceTex.dispose(t),this._positionTex.dispose(t),this._positionPrevTex.dispose(t),this._forceTex.dispose(t),this._forcePrevTex.dispose(t),this._weightedSumTex.dispose(t),this._globalSpeedTex.dispose(t),this._globalSpeedPrevTex.dispose(t)};var _f=yf;function bf(){var t={create:function(){return new Float32Array(2)},dist:function(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)},len:function(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)},scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},sub:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},normalize:function(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},set:function(t,e,n){return t[0]=e,t[1]=n,t}};function e(){this.subRegions=[],this.nSubRegions=0,this.node=null,this.mass=0,this.centerOfMass=null,this.bbox=new Float32Array(4),this.size=0}var n=e.prototype;function i(){this.position=new Float32Array(2),this.force=t.create(),this.forcePrev=t.create(),this.mass=1,this.inDegree=0,this.outDegree=0}function r(t,e){this.source=t,this.target=e,this.weight=1}function a(){this.autoSettings=!0,this.barnesHutOptimize=!0,this.barnesHutTheta=1.5,this.repulsionByDegree=!0,this.linLogMode=!1,this.strongGravityMode=!1,this.gravity=1,this.scaling=1,this.edgeWeightInfluence=1,this.jitterTolerence=.1,this.preventOverlap=!1,this.dissuadeHubs=!1,this.rootRegion=new e,this.rootRegion.centerOfMass=t.create(),this.nodes=[],this.edges=[],this.bbox=new Float32Array(4),this.gravityCenter=null,this._massArr=null,this._swingingArr=null,this._sizeArr=null,this._globalSpeed=0}n.beforeUpdate=function(){for(var t=0;t<this.nSubRegions;t++)this.subRegions[t].beforeUpdate();this.mass=0,this.centerOfMass&&(this.centerOfMass[0]=0,this.centerOfMass[1]=0),this.nSubRegions=0,this.node=null},n.afterUpdate=function(){this.subRegions.length=this.nSubRegions;for(var t=0;t<this.nSubRegions;t++)this.subRegions[t].afterUpdate()},n.addNode=function(t){if(0===this.nSubRegions){if(null==this.node)return void(this.node=t);this._addNodeToSubRegion(this.node),this.node=null}this._addNodeToSubRegion(t),this._updateCenterOfMass(t)},n.findSubRegion=function(t,e){for(var n=0;n<this.nSubRegions;n++){var i=this.subRegions[n];if(i.contain(t,e))return i}},n.contain=function(t,e){return this.bbox[0]<=t&&this.bbox[2]>=t&&this.bbox[1]<=e&&this.bbox[3]>=e},n.setBBox=function(t,e,n,i){this.bbox[0]=t,this.bbox[1]=e,this.bbox[2]=n,this.bbox[3]=i,this.size=(n-t+i-e)/2},n._newSubRegion=function(){var t=this.subRegions[this.nSubRegions];return t||(t=new e,this.subRegions[this.nSubRegions]=t),this.nSubRegions++,t},n._addNodeToSubRegion=function(t){var e=this.findSubRegion(t.position[0],t.position[1]),n=this.bbox;if(!e){var i=(n[0]+n[2])/2,r=(n[1]+n[3])/2,a=(n[2]-n[0])/2,o=(n[3]-n[1])/2,s=t.position[0]>=i?1:0,l=t.position[1]>=r?1:0;e=this._newSubRegion();e.setBBox(s*a+n[0],l*o+n[1],(s+1)*a+n[0],(l+1)*o+n[1])}e.addNode(t)},n._updateCenterOfMass=function(t){null==this.centerOfMass&&(this.centerOfMass=new Float32Array(2));var e=this.centerOfMass[0]*this.mass,n=this.centerOfMass[1]*this.mass;e+=t.position[0]*t.mass,n+=t.position[1]*t.mass,this.mass+=t.mass,this.centerOfMass[0]=e/this.mass,this.centerOfMass[1]=n/this.mass};var o=a.prototype;o.initNodes=function(t,e,n){var r=e.length;this.nodes.length=0;for(var a="undefined"!=typeof n,o=0;o<r;o++){var s=new i;s.position[0]=t[2*o],s.position[1]=t[2*o+1],s.mass=e[o],a&&(s.size=n[o]),this.nodes.push(s)}this._massArr=e,this._swingingArr=new Float32Array(r),a&&(this._sizeArr=n)},o.initEdges=function(t,e){var n=t.length/2;this.edges.length=0;for(var i=0;i<n;i++){var a=t[2*i],o=t[2*i+1],s=this.nodes[a],l=this.nodes[o];if(!s||!l)return void console.error("Node not exists, try initNodes before initEdges");s.outDegree++,l.inDegree++;var u=new r(s,l);e&&(u.weight=e[i]),this.edges.push(u)}},o.updateSettings=function(){if(this.repulsionByDegree)for(var t=0;t<this.nodes.length;t++){var e=this.nodes[t];e.mass=e.inDegree+e.outDegree+1}else for(t=0;t<this.nodes.length;t++){e=this.nodes[t];e.mass=this._massArr[t]}},o.update=function(){var e=this.nodes.length;if(this.updateSettings(),this.updateBBox(),this.barnesHutOptimize){this.rootRegion.setBBox(this.bbox[0],this.bbox[1],this.bbox[2],this.bbox[3]),this.rootRegion.beforeUpdate();for(var n=0;n<e;n++)this.rootRegion.addNode(this.nodes[n]);this.rootRegion.afterUpdate()}for(n=0;n<e;n++){var i=this.nodes[n];t.copy(i.forcePrev,i.force),t.set(i.force,0,0)}for(n=0;n<e;n++){var r=this.nodes[n];if(this.barnesHutOptimize)this.applyRegionToNodeRepulsion(this.rootRegion,r);else for(var a=n+1;a<e;a++){var o=this.nodes[a];this.applyNodeToNodeRepulsion(r,o,!1)}this.gravity>0&&(this.strongGravityMode?this.applyNodeStrongGravity(r):this.applyNodeGravity(r))}for(n=0;n<this.edges.length;n++)this.applyEdgeAttraction(this.edges[n]);var s=0,l=0,u=t.create();for(n=0;n<e;n++){i=this.nodes[n];var c=t.dist(i.force,i.forcePrev);s+=c*i.mass,t.add(u,i.force,i.forcePrev);var h=.5*t.len(u);l+=h*i.mass,this._swingingArr[n]=c}var d=this.jitterTolerence*this.jitterTolerence*l/s;this._globalSpeed>0&&(d=Math.min(d/this._globalSpeed,1.5)*this._globalSpeed),this._globalSpeed=d;for(n=0;n<e;n++){i=this.nodes[n],c=this._swingingArr[n];var f=.1*d/(1+d*Math.sqrt(c)),p=t.len(i.force);p>0&&(f=Math.min(p*f,10)/p,t.scaleAndAdd(i.position,i.position,i.force,f))}},o.applyRegionToNodeRepulsion=function(){var e=t.create();return function(n,i){if(n.node)this.applyNodeToNodeRepulsion(n.node,i,!0);else{t.sub(e,i.position,n.centerOfMass);var r=e[0]*e[0]+e[1]*e[1];if(r>this.barnesHutTheta*n.size*n.size){var a=this.scaling*i.mass*n.mass/r;t.scaleAndAdd(i.force,i.force,e,a)}else for(var o=0;o<n.nSubRegions;o++)this.applyRegionToNodeRepulsion(n.subRegions[o],i)}}}(),o.applyNodeToNodeRepulsion=function(){var e=t.create();return function(n,i,r){if(n!=i){t.sub(e,n.position,i.position);var a=e[0]*e[0]+e[1]*e[1];if(0!==a){var o;if(this.preventOverlap){var s=Math.sqrt(a);if(s=s-n.size-i.size,s>0)o=this.scaling*n.mass*i.mass/(s*s);else{if(!(s<0))return;o=100*this.scaling*n.mass*i.mass}}else o=this.scaling*n.mass*i.mass/a;t.scaleAndAdd(n.force,n.force,e,o),t.scaleAndAdd(i.force,i.force,e,-o)}}}}(),o.applyEdgeAttraction=function(){var e=t.create();return function(n){var i=n.source,r=n.target;t.sub(e,i.position,r.position);var a,o,s=t.len(e);a=0===this.edgeWeightInfluence?1:1===this.edgeWeightInfluence?n.weight:Math.pow(n.weight,this.edgeWeightInfluence),this.preventOverlap&&(s=s-i.size-r.size,s<=0)||(o=this.linLogMode?-a*Math.log(s+1)/(s+1):-a,t.scaleAndAdd(i.force,i.force,e,o),t.scaleAndAdd(r.force,r.force,e,-o))}}(),o.applyNodeGravity=function(){var e=t.create();return function(n){t.sub(e,this.gravityCenter,n.position);var i=t.len(e);t.scaleAndAdd(n.force,n.force,e,this.gravity*n.mass/(i+1))}}(),o.applyNodeStrongGravity=function(){var e=t.create();return function(n){t.sub(e,this.gravityCenter,n.position),t.scaleAndAdd(n.force,n.force,e,this.gravity*n.mass)}}(),o.updateBBox=function(){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,r=0;r<this.nodes.length;r++){var a=this.nodes[r].position;t=Math.min(t,a[0]),e=Math.min(e,a[1]),n=Math.max(n,a[0]),i=Math.max(i,a[1])}this.bbox[0]=t,this.bbox[1]=e,this.bbox[2]=n,this.bbox[3]=i},o.getGlobalSpeed=function(){return this._globalSpeed};var s=null;self.onmessage=function(t){switch(t.data.cmd){case"init":s=new a,s.initNodes(t.data.nodesPosition,t.data.nodesMass,t.data.nodesSize),s.initEdges(t.data.edges,t.data.edgesWeight);break;case"updateConfig":if(s)for(var e in t.data.config)s[e]=t.data.config[e];break;case"update":var n=t.data.steps;if(s){for(var i=0;i<n;i++)s.update();var r=s.nodes.length,o=new Float32Array(2*r);for(i=0;i<r;i++){var l=s.nodes[i];o[2*i]=l.position[0],o[2*i+1]=l.position[1]}self.postMessage({buffer:o.buffer,globalSpeed:s.getGlobalSpeed()},[o.buffer])}else{var u=new Float32Array;self.postMessage({buffer:u.buffer,globalSpeed:s.getGlobalSpeed()},[u.buffer])}break}}}var xf=bf,wf=xf.toString();wf=wf.slice(wf.indexOf("{")+1,wf.lastIndexOf("}"));var Of={barnesHutOptimize:!0,barnesHutTheta:1.5,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null},Sf=function(t){for(var e in Of)this[e]=Of[e];if(t)for(var e in t)this[e]=t[e];this._nodes=[],this._edges=[],this._disposed=!1,this._positionTex=new sn({type:Qe.FLOAT,flipY:!1,minFilter:Qe.NEAREST,magFilter:Qe.NEAREST})};Sf.prototype.initData=function(t,e){var n=new Blob([wf]),i=window.URL.createObjectURL(n);this._worker=new Worker(i),this._worker.onmessage=this._$onupdate.bind(this),this._nodes=t,this._edges=e,this._frame=0;for(var r=t.length,a=e.length,o=new Float32Array(2*r),s=new Float32Array(r),l=new Float32Array(r),u=new Float32Array(2*a),c=new Float32Array(a),h=0;h<t.length;h++){var d=t[h];o[2*h]=d.x,o[2*h+1]=d.y,s[h]=null==d.mass?1:d.mass,l[h]=null==d.size?1:d.size}for(h=0;h<e.length;h++){var f=e[h],p=f.node1,g=f.node2;u[2*h]=p,u[2*h+1]=g,c[h]=null==f.weight?1:f.weight}var m=Math.ceil(Math.sqrt(t.length)),v=m,y=new Float32Array(m*v*4),_=this._positionTex;_.width=m,_.height=v,_.pixels=y,this._worker.postMessage({cmd:"init",nodesPosition:o,nodesMass:s,nodesSize:l,edges:u,edgesWeight:c}),this._globalSpeed=1/0},Sf.prototype.updateOption=function(t){var e={};for(var n in Of)e[n]=Of[n];var i=this._nodes,r=this._edges,a=i.length;if(e.jitterTolerence=a>5e4?10:a>5e3?1:.1,e.scaling=a>100?2:10,e.barnesHutOptimize=a>1e3,t)for(var n in Of)null!=t[n]&&(e[n]=t[n]);if(!e.gravityCenter){for(var o=[1/0,1/0],s=[-1/0,-1/0],l=0;l<i.length;l++)o[0]=Math.min(i[l].x,o[0]),o[1]=Math.min(i[l].y,o[1]),s[0]=Math.max(i[l].x,s[0]),s[1]=Math.max(i[l].y,s[1]);e.gravityCenter=[.5*(o[0]+s[0]),.5*(o[1]+s[1])]}for(l=0;l<r.length;l++){var u=r[l].node1,c=r[l].node2;i[u].degree=(i[u].degree||0)+1,i[c].degree=(i[c].degree||0)+1}this._worker&&this._worker.postMessage({cmd:"updateConfig",config:e})},Sf.prototype.update=function(t,e,n){null==e&&(e=1),e=Math.max(e,1),this._frame+=e,this._onupdate=n,this._worker&&this._worker.postMessage({cmd:"update",steps:Math.round(e)})},Sf.prototype._$onupdate=function(t){if(!this._disposed){var e=new Float32Array(t.data.buffer);this._globalSpeed=t.data.globalSpeed,this._positionArr=e,this._updateTexture(e),this._onupdate&&this._onupdate()}},Sf.prototype.getNodePositionTexture=function(){return this._positionTex},Sf.prototype.getNodeUV=function(t,e){e=e||[];var n=this._positionTex.width,i=this._positionTex.height;return e[0]=t%n/(n-1),e[1]=Math.floor(t/n)/(i-1),e},Sf.prototype.getNodes=function(){return this._nodes},Sf.prototype.getEdges=function(){return this._edges},Sf.prototype.isFinished=function(t){return this._frame>t},Sf.prototype.getNodePosition=function(t,e){if(e||(e=new Float32Array(2*this._nodes.length)),this._positionArr)for(var n=0;n<this._positionArr.length;n++)e[n]=this._positionArr[n];return e},Sf.prototype._updateTexture=function(t){for(var e=this._positionTex.pixels,n=0,i=0;i<t.length;)e[n++]=t[i++],e[n++]=t[i++],e[n++]=1,e[n++]=1;this._positionTex.dirty()},Sf.prototype.dispose=function(t){this._disposed=!0,this._worker=null};var Tf=Sf,Mf=O.extend((function(){return{zr:null,viewGL:null,minZoom:.2,maxZoom:5,_needsUpdate:!1,_dx:0,_dy:0,_zoom:1}}),(function(){this._mouseDownHandler=this._mouseDownHandler.bind(this),this._mouseWheelHandler=this._mouseWheelHandler.bind(this),this._mouseMoveHandler=this._mouseMoveHandler.bind(this),this._mouseUpHandler=this._mouseUpHandler.bind(this),this._update=this._update.bind(this)}),{init:function(){var t=this.zr;t.on("mousedown",this._mouseDownHandler),t.on("mousewheel",this._mouseWheelHandler),t.on("globalout",this._mouseUpHandler),t.animation.on("frame",this._update)},setTarget:function(t){this._target=t},setZoom:function(t){this._zoom=Math.max(Math.min(t,this.maxZoom),this.minZoom),this._needsUpdate=!0},setOffset:function(t){this._dx=t[0],this._dy=t[1],this._needsUpdate=!0},getZoom:function(){return this._zoom},getOffset:function(){return[this._dx,this._dy]},_update:function(){if(this._target&&this._needsUpdate){var t=this._target,e=this._zoom;t.position.x=this._dx,t.position.y=this._dy,t.scale.set(e,e,e),this.zr.refresh(),this._needsUpdate=!1,this.trigger("update")}},_mouseDownHandler:function(t){if(!t.target){var e=t.offsetX,n=t.offsetY;if(!this.viewGL||this.viewGL.containPoint(e,n)){this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler);var i=this._convertPos(e,n);this._x=i.x,this._y=i.y}}},_convertPos:function(t,e){var n=this.viewGL.camera,i=this.viewGL.viewport;return{x:(t-i.x)/i.width*(n.right-n.left)+n.left,y:(e-i.y)/i.height*(n.bottom-n.top)+n.top}},_mouseMoveHandler:function(t){var e=this._convertPos(t.offsetX,t.offsetY);this._dx+=e.x-this._x,this._dy+=e.y-this._y,this._x=e.x,this._y=e.y,this._needsUpdate=!0},_mouseUpHandler:function(t){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_mouseWheelHandler:function(t){t=t.event;var e=t.wheelDelta||-t.detail;if(0!==e){var n=t.offsetX,i=t.offsetY;if(!this.viewGL||this.viewGL.containPoint(n,i)){var r=e>0?1.1:.9,a=Math.max(Math.min(this._zoom*r,this.maxZoom),this.minZoom);r=a/this._zoom;var o=this._convertPos(n,i),s=(o.x-this._dx)*(r-1),l=(o.y-this._dy)*(r-1);this._dx-=s,this._dy-=l,this._zoom=a,this._needsUpdate=!0}}},dispose:function(){var t=this.zr;t.off("mousedown",this._mouseDownHandler),t.off("mousemove",this._mouseMoveHandler),t.off("mouseup",this._mouseUpHandler),t.off("mousewheel",this._mouseWheelHandler),t.off("globalout",this._mouseUpHandler),t.animation.off("frame",this._update)}}),Af=Mf,Cf="@export ecgl.lines2D.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec2 position: POSITION;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\n#ifdef POSITIONTEXTURE_ENABLED\nuniform sampler2D positionTexture;\n#endif\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);\n\n v_Color = a_Color;\n}\n\n@end\n\n@export ecgl.lines2D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\nvoid main()\n{\n gl_FragColor = color * v_Color;\n}\n@end\n\n\n@export ecgl.meshLines2D.vertex\n\nattribute vec2 position: POSITION;\nattribute vec2 normal;\nattribute float offset;\nattribute vec4 a_Color : COLOR;\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\n\nvarying vec4 v_Color;\nvarying float v_Miter;\n\nvoid main()\n{\n vec4 p2 = worldViewProjection * vec4(position + normal, -10.0, 1.0);\n gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);\n\n p2.xy /= p2.w;\n gl_Position.xy /= gl_Position.w;\n\n vec2 N = normalize(p2.xy - gl_Position.xy);\n gl_Position.xy += N * offset / viewport.zw * 2.0;\n\n gl_Position.xy *= gl_Position.w;\n\n v_Color = a_Color;\n}\n@end\n\n\n@export ecgl.meshLines2D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\nvarying float v_Miter;\n\nvoid main()\n{\n gl_FragColor = color * v_Color;\n}\n\n@end",If=to.vec2;Ta.Shader.import(Cf);var Df=1,Lf=a["b"].extend({type:"graphGL",__ecgl__:!0,init:function(t,e){this.groupGL=new Ta.Node,this.viewGL=new dl("orthographic"),this.viewGL.camera.left=this.viewGL.camera.right=0,this.viewGL.add(this.groupGL),this._pointsBuilder=new ad(!0,e),this._forceEdgesMesh=new Ta.Mesh({material:new Ta.Material({shader:Ta.createShader("ecgl.forceAtlas2.edges"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new Ta.Geometry({attributes:{node:new Ta.Geometry.Attribute("node","float",2),color:new Ta.Geometry.Attribute("color","float",4,"COLOR")},dynamic:!0,mainAttribute:"node"}),renderOrder:-1,mode:Ta.Mesh.LINES}),this._edgesMesh=new Ta.Mesh({material:new Ta.Material({shader:Ta.createShader("ecgl.meshLines2D"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new gf({useNativeLine:!1,dynamic:!0}),renderOrder:-1,culling:!1}),this._layoutId=0,this._control=new Af({zr:e.getZr(),viewGL:this.viewGL}),this._control.setTarget(this.groupGL),this._control.init(),this._clickHandler=this._clickHandler.bind(this)},render:function(t,e,n){this.groupGL.add(this._pointsBuilder.rootNode),this._model=t,this._api=n,this._initLayout(t,e,n),this._pointsBuilder.update(t,e,n),this._forceLayoutInstance instanceof _f||this.groupGL.remove(this._forceEdgesMesh),this._updateCamera(t,n),this._control.off("update"),this._control.on("update",(function(){n.dispatchAction({type:"graphGLRoam",seriesId:t.id,zoom:this._control.getZoom(),offset:this._control.getOffset()}),this._pointsBuilder.updateView(this.viewGL.camera)}),this),this._control.setZoom(Pr.firstNotNull(t.get("zoom"),1)),this._control.setOffset(t.get("offset")||[0,0]);var i=this._pointsBuilder.getPointsMesh();if(i.off("mousemove",this._mousemoveHandler),i.off("mouseout",this._mouseOutHandler,this),n.getZr().off("click",this._clickHandler),this._pointsBuilder.highlightOnMouseover=!0,t.get("focusNodeAdjacency")){var r=t.get("focusNodeAdjacencyOn");"click"===r?n.getZr().on("click",this._clickHandler):"mouseover"===r&&(i.on("mousemove",this._mousemoveHandler,this),i.on("mouseout",this._mouseOutHandler,this),this._pointsBuilder.highlightOnMouseover=!1)}this._lastMouseOverDataIndex=-1},_clickHandler:function(t){if(!this._layouting){var e=this._pointsBuilder.getPointsMesh().dataIndex;e>=0?this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:e}):this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id})}},_mousemoveHandler:function(t){if(!this._layouting){var e=this._pointsBuilder.getPointsMesh().dataIndex;e>=0?e!==this._lastMouseOverDataIndex&&this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:e}):this._mouseOutHandler(t),this._lastMouseOverDataIndex=e}},_mouseOutHandler:function(t){this._layouting||(this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id}),this._lastMouseOverDataIndex=-1)},_updateForceEdgesGeometry:function(t,e){var n=this._forceEdgesMesh.geometry,i=e.getEdgeData(),r=0,a=this._forceLayoutInstance,o=2*i.count();n.attributes.node.init(o),n.attributes.color.init(o),i.each((function(e){var o=t[e];n.attributes.node.set(r,a.getNodeUV(o.node1)),n.attributes.node.set(r+1,a.getNodeUV(o.node2));var s=wu(i,o.dataIndex),l=Ta.parseColor(s);l[3]*=Pr.firstNotNull(Ou(i,o.dataIndex),1),n.attributes.color.set(r,l),n.attributes.color.set(r+1,l),r+=2})),n.dirty()},_updateMeshLinesGeometry:function(){var t=this._model.getEdgeData(),e=this._edgesMesh.geometry,n=(t=this._model.getEdgeData(),this._model.getData().getLayout("points"));e.resetOffset(),e.setVertexCount(t.count()*e.getLineVertexCount()),e.setTriangleCount(t.count()*e.getLineTriangleCount());var i=[],r=[],a=["lineStyle","width"];this._originalEdgeColors=new Float32Array(4*t.count()),this._edgeIndicesMap=new Float32Array(t.count()),t.each((function(o){var s=t.graph.getEdgeByIndex(o),l=2*s.node1.dataIndex,u=2*s.node2.dataIndex;i[0]=n[l],i[1]=n[l+1],r[0]=n[u],r[1]=n[u+1];var c=wu(t,s.dataIndex),h=Ta.parseColor(c);h[3]*=Pr.firstNotNull(Ou(t,s.dataIndex),1);var d=t.getItemModel(s.dataIndex),f=Pr.firstNotNull(d.get(a),1)*this._api.getDevicePixelRatio();e.addLine(i,r,h,f);for(var p=0;p<4;p++)this._originalEdgeColors[4*s.dataIndex+p]=h[p];this._edgeIndicesMap[s.dataIndex]=o}),this),e.dirty()},_updateForceNodesGeometry:function(t){for(var e=this._pointsBuilder.getPointsMesh(),n=[],i=0;i<t.count();i++)this._forceLayoutInstance.getNodeUV(i,n),e.geometry.attributes.position.set(i,n);e.geometry.dirty("position")},_initLayout:function(t,e,n){var i=t.get("layout"),r=t.getGraph(),o=t.getBoxLayoutParams(),s=Object(Bo["g"])(o,{width:n.getWidth(),height:n.getHeight()});"force"===i&&(i="forceAtlas2"),this.stopLayout(t,e,n,{beforeLayout:!0});var l=t.getData(),u=t.getData();if("forceAtlas2"===i){var c=t.getModel("forceAtlas2"),h=this._forceLayoutInstance,d=[],f=[],p=l.getDataExtent("value"),g=u.getDataExtent("value"),m=Pr.firstNotNull(c.get("edgeWeight"),1),v=Pr.firstNotNull(c.get("nodeWeight"),1);"number"===typeof m&&(m=[m,m]),"number"===typeof v&&(v=[v,v]);var y=0,_={},b=new Float32Array(2*l.count());if(r.eachNode((function(t){var e,n,i=t.dataIndex,r=l.get("value",i);if(l.hasItemOption){var o=l.getItemModel(i);e=o.get("x"),n=o.get("y")}null==e&&(e=s.x+Math.random()*s.width,n=s.y+Math.random()*s.height),b[2*y]=e,b[2*y+1]=n,_[t.id]=y++;var u=a["p"].linearMap(r,p,v);isNaN(u)&&(u=isNaN(v[0])?1:v[0]),d.push({x:e,y:n,mass:u,size:l.getItemVisual(i,"symbolSize")})})),l.setLayout("points",b),r.eachEdge((function(t){var e=t.dataIndex,n=l.get("value",e),i=a["p"].linearMap(n,g,m);isNaN(i)&&(i=isNaN(m[0])?1:m[0]),f.push({node1:_[t.node1.id],node2:_[t.node2.id],weight:i,dataIndex:e})})),!h){var x=c.get("GPU");this._forceLayoutInstance&&((!x||this._forceLayoutInstance instanceof _f)&&(x||this._forceLayoutInstance instanceof Tf)||(this._forceLayoutInstanceToDispose=this._forceLayoutInstance)),h=this._forceLayoutInstance=x?new _f:new Tf}h.initData(d,f),h.updateOption(c.option),this._updateForceEdgesGeometry(h.getEdges(),t),this._updatePositionTexture(),n.dispatchAction({type:"graphGLStartLayout",from:this.uid})}else{b=new Float32Array(2*l.count()),y=0;r.eachNode((function(t){var e,n,i=t.dataIndex;if(l.hasItemOption){var r=l.getItemModel(i);e=r.get("x"),n=r.get("y")}b[y++]=e,b[y++]=n})),l.setLayout("points",b),this._updateAfterLayout(t,e,n)}},_updatePositionTexture:function(){var t=this._forceLayoutInstance.getNodePositionTexture();this._pointsBuilder.setPositionTexture(t),this._forceEdgesMesh.material.set("positionTex",t)},startLayout:function(t,e,n,i){if(!i||null==i.from||i.from===this.uid){var r=this.viewGL,a=(n=this._api,this._forceLayoutInstance),o=this._model.getData(),s=this._model.getModel("forceAtlas2");if(a&&(this.groupGL.remove(this._edgesMesh),this.groupGL.add(this._forceEdgesMesh),this._forceLayoutInstance)){this._updateForceNodesGeometry(t.getData()),this._pointsBuilder.hideLabels();var l=this,u=this._layoutId=Df++,c=s.getShallow("maxSteps"),h=s.getShallow("steps"),d=0,f=Math.max(2*h,20),p=function(e){if(e===l._layoutId)return a.isFinished(c)?(n.dispatchAction({type:"graphGLStopLayout",from:l.uid}),void n.dispatchAction({type:"graphGLFinishLayout",points:o.getLayout("points"),from:l.uid})):void a.update(r.layer.renderer,h,(function(){l._updatePositionTexture(),d+=h,d>=f&&(l._syncNodePosition(t),d=0),n.getZr().refresh(),Object(Ma["a"])((function(){p(e)}))}))};Object(Ma["a"])((function(){l._forceLayoutInstanceToDispose&&(l._forceLayoutInstanceToDispose.dispose(r.layer.renderer),l._forceLayoutInstanceToDispose=null),p(u)})),this._layouting=!0}}},stopLayout:function(t,e,n,i){i&&null!=i.from&&i.from!==this.uid||(this._layoutId=0,this.groupGL.remove(this._forceEdgesMesh),this.groupGL.add(this._edgesMesh),this._forceLayoutInstance&&this.viewGL.layer&&(i&&i.beforeLayout||(this._syncNodePosition(t),this._updateAfterLayout(t,e,n)),this._api.getZr().refresh(),this._layouting=!1))},_syncNodePosition:function(t){var e=this._forceLayoutInstance.getNodePosition(this.viewGL.layer.renderer);t.getData().setLayout("points",e),t.setNodePosition(e)},_updateAfterLayout:function(t,e,n){this._updateMeshLinesGeometry(),this._pointsBuilder.removePositionTexture(),this._pointsBuilder.updateLayout(t,e,n),this._pointsBuilder.updateView(this.viewGL.camera),this._pointsBuilder.updateLabels(),this._pointsBuilder.showLabels()},focusNodeAdjacency:function(t,e,n,i){var r=this._model.getData();this._downplayAll();var a=i.dataIndex,o=r.graph,s=[],l=o.getNodeByIndex(a);s.push(l),l.edges.forEach((function(t){t.dataIndex<0||(t.node1!==l&&s.push(t.node1),t.node2!==l&&s.push(t.node2))}),this),this._pointsBuilder.fadeOutAll(.05),this._fadeOutEdgesAll(.05),s.forEach((function(t){this._pointsBuilder.highlight(r,t.dataIndex)}),this),this._pointsBuilder.updateLabels(s.map((function(t){return t.dataIndex})));var u=[];l.edges.forEach((function(t){t.dataIndex>=0&&(this._highlightEdge(t.dataIndex),u.push(t))}),this),this._focusNodes=s,this._focusEdges=u},unfocusNodeAdjacency:function(t,e,n,i){this._downplayAll(),this._pointsBuilder.fadeInAll(),this._fadeInEdgesAll(),this._pointsBuilder.updateLabels()},_highlightEdge:function(t){var e=this._model.getEdgeData().getItemModel(t),n=Ta.parseColor(e.get("emphasis.lineStyle.color")||e.get("lineStyle.color")),i=Pr.firstNotNull(e.get("emphasis.lineStyle.opacity"),e.get("lineStyle.opacity"),1);n[3]*=i,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[t],n)},_downplayAll:function(){this._focusNodes&&this._focusNodes.forEach((function(t){this._pointsBuilder.downplay(this._model.getData(),t.dataIndex)}),this),this._focusEdges&&this._focusEdges.forEach((function(t){this._downplayEdge(t.dataIndex)}),this)},_downplayEdge:function(t){var e=this._getColor(t,[]);this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[t],e)},_setEdgeFade:function(){var t=[];return function(e,n){this._getColor(e,t),t[3]*=n,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],t)}}(),_getColor:function(t,e){for(var n=0;n<4;n++)e[n]=this._originalEdgeColors[4*t+n];return e},_fadeOutEdgesAll:function(t){var e=this._model.getData().graph;e.eachEdge((function(e){this._setEdgeFade(e.dataIndex,t)}),this)},_fadeInEdgesAll:function(){this._fadeOutEdgesAll(1)},_updateCamera:function(t,e){this.viewGL.setViewport(0,0,e.getWidth(),e.getHeight(),e.getDevicePixelRatio());for(var n=this.viewGL.camera,i=t.getData(),r=i.getLayout("points"),a=If.create(1/0,1/0),o=If.create(-1/0,-1/0),s=[],l=0;l<r.length;)s[0]=r[l++],s[1]=r[l++],If.min(a,a,s),If.max(o,o,s);var u=(o[1]+a[1])/2,c=(o[0]+a[0])/2;if(!(c>n.left&&c<n.right&&u<n.bottom&&u>n.top)){var h=Math.max(o[0]-a[0],10),d=h/e.getWidth()*e.getHeight();h*=1.4,d*=1.4,a[0]-=.2*h,n.left=a[0],n.top=u-d/2,n.bottom=u+d/2,n.right=h+a[0],n.near=0,n.far=100}},dispose:function(){var t=this.viewGL.layer.renderer;this._forceLayoutInstance&&this._forceLayoutInstance.dispose(t),this.groupGL.removeAll(),this._layoutId=-1,this._pointsBuilder.dispose()},remove:function(){this.groupGL.removeAll(),this._control.dispose()}});function Ef(t){return t instanceof Array||(t=[t,t]),t}function jf(t){function e(){}t.registerChartView(Lf),t.registerSeriesModel(hf),t.registerVisual((function(t){const e={};t.eachSeriesByType("graphGL",(function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each((function(i){var a=n.getName(i);r["ec-"+a]=i;var o=n.getItemModel(i),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(a,e)),n.setItemVisual(i,"style",s);var l=["symbol","symbolSize","symbolKeepAspect"];for(let t=0;t<l.length;t++){var u=o.getShallow(l[t],!0);null!=u&&n.setItemVisual(i,l[t],u)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t);let o=e.getShallow("category");if(null!=o){"string"===typeof o&&(o=r["ec-"+o]);var s=n.getItemVisual(o,"style"),l=i.ensureUniqueItemVisual(t,"style");a["w"].extend(l,s);var u=["symbol","symbolSize","symbolKeepAspect"];for(let e=0;e<u.length;e++)i.setItemVisual(t,u[e],n.getItemVisual(o,u[e]))}}))}))})),t.registerVisual((function(t){t.eachSeriesByType("graphGL",(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=Ef(t.get("edgeSymbol")),r=Ef(t.get("edgeSymbolSize"));n.setVisual("drawType","stroke"),n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var i=n.getItemModel(t),r=e.getEdgeByIndex(t),o=Ef(i.getShallow("symbol",!0)),s=Ef(i.getShallow("symbolSize",!0)),l=i.getModel("lineStyle").getLineStyle(),u=n.ensureUniqueItemVisual(t,"style");switch(a["w"].extend(u,l),u.stroke){case"source":var c=r.node1.getVisual("style");u.stroke=c&&c.fill;break;case"target":c=r.node2.getVisual("style");u.stroke=c&&c.fill;break}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),s[0]&&r.setVisual("fromSymbolSize",s[0]),s[1]&&r.setVisual("toSymbolSize",s[1])}))}))})),t.registerAction({type:"graphGLRoam",event:"graphglroam",update:"series.graphGL:roam"},(function(t,e){e.eachComponent({mainType:"series",query:t},(function(e){e.setView(t)}))})),t.registerAction({type:"graphGLStartLayout",event:"graphgllayoutstarted",update:"series.graphGL:startLayout"},e),t.registerAction({type:"graphGLStopLayout",event:"graphgllayoutstopped",update:"series.graphGL:stopLayout"},e),t.registerAction({type:"graphGLFocusNodeAdjacency",event:"graphGLFocusNodeAdjacency",update:"series.graphGL:focusNodeAdjacency"},e),t.registerAction({type:"graphGLUnfocusNodeAdjacency",event:"graphGLUnfocusNodeAdjacency",update:"series.graphGL:unfocusNodeAdjacency"},e)}Object(a["v"])(jf);var Pf=a["g"].extend({type:"series.flowGL",dependencies:["geo","grid","bmap"],visualStyleAccessPath:"itemStyle",getInitialData:function(t,e){var n=this.get("coordinateSystem"),i="geo"===n?["lng","lat"]:a["j"](n)||["x","y"];i.push("vx","vy");var r=a["m"].createDimensions(this.getSource(),{coordDimensions:i,encodeDefine:this.get("encode"),dimensionsDefine:this.get("dimensions")}),o=new a["e"](r,this);return o.initData(this.getSource()),o},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,supersampling:1,particleType:"point",particleDensity:128,particleSize:1,particleSpeed:1,particleTrail:2,colorTexture:null,gridWidth:"auto",gridHeight:"auto",itemStyle:{color:"#fff",opacity:.8}}}),Nf=bn.extend((function(){return{dynamic:!0,attributes:{position:new bn.Attribute("position","float",3,"POSITION")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setLineCount:function(t){var e=this.attributes,n=4*t,i=2*t;this.vertexCount!==n&&e.position.init(n),this.triangleCount!==i&&(this.indices=0===i?null:this.vertexCount>65535?new Uint32Array(3*i):new Uint16Array(3*i))},addLine:function(t){var e=this._vertexOffset;this.attributes.position.set(e,[t[0],t[1],1]),this.attributes.position.set(e+1,[t[0],t[1],-1]),this.attributes.position.set(e+2,[t[0],t[1],2]),this.attributes.position.set(e+3,[t[0],t[1],-2]),this.setTriangleIndices(this._faceOffset++,[e,e+1,e+2]),this.setTriangleIndices(this._faceOffset++,[e+1,e+2,e+3]),this._vertexOffset+=4}}),Rf=Nf,kf="@export ecgl.vfParticle.particle.fragment\n\nuniform sampler2D particleTexture;\nuniform sampler2D spawnTexture;\nuniform sampler2D velocityTexture;\n\nuniform float deltaTime;\nuniform float elapsedTime;\n\nuniform float speedScaling : 1.0;\n\nuniform vec2 textureSize;\nuniform vec4 region : [0, 0, 1, 1];\nuniform float firstFrameTime;\n\nvarying vec2 v_Texcoord;\n\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, v_Texcoord);\n bool spawn = false;\n if (p.w <= 0.0) {\n p = texture2D(spawnTexture, fract(v_Texcoord + elapsedTime / 10.0));\n p.w -= firstFrameTime;\n spawn = true;\n }\n vec2 v = texture2D(velocityTexture, fract(p.xy * region.zw + region.xy)).xy;\n v = (v - 0.5) * 2.0;\n p.z = length(v);\n p.xy += v * deltaTime / 10.0 * speedScaling;\n p.w -= deltaTime;\n\n if (spawn || p.xy != fract(p.xy)) {\n p.z = 0.0;\n }\n p.xy = fract(p.xy);\n\n gl_FragColor = p;\n}\n@end\n\n@export ecgl.vfParticle.renderPoints.vertex\n\n#define PI 3.1415926\n\nattribute vec2 texcoord : TEXCOORD_0;\n\nuniform sampler2D particleTexture;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nuniform float size : 1.0;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, texcoord);\n\n if (p.w > 0.0 && p.z > 1e-5) {\n gl_Position = worldViewProjection * vec4(p.xy * 2.0 - 1.0, 0.0, 1.0);\n }\n else {\n gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);\n }\n\n v_Mag = p.z;\n v_Uv = p.xy;\n\n gl_PointSize = size;\n}\n\n@end\n\n@export ecgl.vfParticle.renderPoints.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform sampler2D gradientTexture;\nuniform sampler2D colorTexture;\nuniform sampler2D spriteTexture;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n gl_FragColor = color;\n#ifdef SPRITETEXTURE_ENABLED\n gl_FragColor *= texture2D(spriteTexture, gl_PointCoord);\n if (color.a == 0.0) {\n discard;\n }\n#endif\n#ifdef GRADIENTTEXTURE_ENABLED\n gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));\n#endif\n#ifdef COLORTEXTURE_ENABLED\n gl_FragColor *= texture2D(colorTexture, v_Uv);\n#endif\n}\n\n@end\n\n@export ecgl.vfParticle.renderLines.vertex\n\n#define PI 3.1415926\n\nattribute vec3 position : POSITION;\n\nuniform sampler2D particleTexture;\nuniform sampler2D prevParticleTexture;\n\nuniform float size : 1.0;\nuniform vec4 vp: VIEWPORT;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\n@import clay.util.rand\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, position.xy);\n vec4 p2 = texture2D(prevParticleTexture, position.xy);\n\n p.xy = p.xy * 2.0 - 1.0;\n p2.xy = p2.xy * 2.0 - 1.0;\n\n if (p.w > 0.0 && p.z > 1e-5) {\n vec2 dir = normalize(p.xy - p2.xy);\n vec2 norm = vec2(dir.y / vp.z, -dir.x / vp.w) * sign(position.z) * size;\n if (abs(position.z) == 2.0) {\n gl_Position = vec4(p.xy + norm, 0.0, 1.0);\n v_Uv = p.xy;\n v_Mag = p.z;\n }\n else {\n gl_Position = vec4(p2.xy + norm, 0.0, 1.0);\n v_Mag = p2.z;\n v_Uv = p2.xy;\n }\n gl_Position = worldViewProjection * gl_Position;\n }\n else {\n gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);\n }\n}\n\n@end\n\n@export ecgl.vfParticle.renderLines.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform sampler2D gradientTexture;\nuniform sampler2D colorTexture;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n gl_FragColor = color;\n #ifdef GRADIENTTEXTURE_ENABLED\n gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));\n#endif\n#ifdef COLORTEXTURE_ENABLED\n gl_FragColor *= texture2D(colorTexture, v_Uv);\n#endif\n}\n\n@end\n";function Bf(t){var e=document.createElement("canvas");e.width=e.height=t;var n=e.getContext("2d");return n.fillStyle="#fff",n.arc(t/2,t/2,t/2,0,2*Math.PI),n.fill(),e}Xt["import"](kf);var zf=function(){this.motionBlurFactor=.99,this.vectorFieldTexture=new sn({type:Qe.FLOAT,flipY:!1}),this.particleLife=[5,20],this._particleType="point",this._particleSize=1,this.particleColor=[1,1,1,1],this.particleSpeedScaling=1,this._thisFrameTexture=null,this._particlePass=null,this._spawnTexture=null,this._particleTexture0=null,this._particleTexture1=null,this._particlePointsMesh=null,this._surfaceFrameBuffer=null,this._elapsedTime=0,this._scene=null,this._camera=null,this._lastFrameTexture=null,this._supersampling=1,this._downsampleTextures=[],this._width=512,this._height=512,this.init()};zf.prototype={constructor:zf,init:function(){var t={type:Qe.FLOAT,minFilter:Qe.NEAREST,magFilter:Qe.NEAREST,useMipmap:!1};this._spawnTexture=new sn(t),this._particleTexture0=new sn(t),this._particleTexture1=new sn(t),this._frameBuffer=new pi({depthBuffer:!1}),this._particlePass=new vr({fragment:Xt.source("ecgl.vfParticle.particle.fragment")}),this._particlePass.setUniform("velocityTexture",this.vectorFieldTexture),this._particlePass.setUniform("spawnTexture",this._spawnTexture),this._downsamplePass=new vr({fragment:Xt.source("clay.compositor.downsample")});var e=new $e({renderOrder:10,material:new nt({shader:new Xt(Xt.source("ecgl.vfParticle.renderPoints.vertex"),Xt.source("ecgl.vfParticle.renderPoints.fragment"))}),mode:$e.POINTS,geometry:new bn({dynamic:!0,mainAttribute:"texcoord0"})}),n=new $e({renderOrder:10,material:new nt({shader:new Xt(Xt.source("ecgl.vfParticle.renderLines.vertex"),Xt.source("ecgl.vfParticle.renderLines.fragment"))}),geometry:new Rf,culling:!1}),i=new $e({material:new nt({shader:new Xt(Xt.source("ecgl.color.vertex"),Xt.source("ecgl.color.fragment"))}),geometry:new _i});i.material.enableTexture("diffuseMap"),this._particlePointsMesh=e,this._particleLinesMesh=n,this._lastFrameFullQuadMesh=i,this._camera=new hr,this._thisFrameTexture=new sn,this._lastFrameTexture=new sn},setParticleDensity:function(t,e){for(var n=t*e,i=new Float32Array(4*n),r=0,a=this.particleLife,o=0;o<t;o++)for(var s=0;s<e;s++,r++){i[4*r]=Math.random(),i[4*r+1]=Math.random(),i[4*r+2]=Math.random();var l=(a[1]-a[0])*Math.random()+a[0];i[4*r+3]=l}"line"===this._particleType?this._setLineGeometry(t,e):this._setPointsGeometry(t,e),this._spawnTexture.width=t,this._spawnTexture.height=e,this._spawnTexture.pixels=i,this._particleTexture0.width=this._particleTexture1.width=t,this._particleTexture0.height=this._particleTexture1.height=e,this._particlePass.setUniform("textureSize",[t,e])},_setPointsGeometry:function(t,e){var n=t*e,i=this._particlePointsMesh.geometry,r=i.attributes;r.texcoord0.init(n);for(var a=0,o=0;o<t;o++)for(var s=0;s<e;s++,a++)r.texcoord0.value[2*a]=o/t,r.texcoord0.value[2*a+1]=s/e;i.dirty()},_setLineGeometry:function(t,e){var n=t*e,i=this._getParticleMesh().geometry;i.setLineCount(n),i.resetOffset();for(var r=0;r<t;r++)for(var a=0;a<e;a++)i.addLine([r/t,a/e]);i.dirty()},_getParticleMesh:function(){return"line"===this._particleType?this._particleLinesMesh:this._particlePointsMesh},update:function(t,e,n,i){var r=this._getParticleMesh(),a=this._frameBuffer,o=this._particlePass;i&&this._updateDownsampleTextures(t,e),r.material.set("size",this._particleSize*this._supersampling),r.material.set("color",this.particleColor),o.setUniform("speedScaling",this.particleSpeedScaling),a.attach(this._particleTexture1),o.setUniform("firstFrameTime",i?(this.particleLife[1]+this.particleLife[0])/2:0),o.setUniform("particleTexture",this._particleTexture0),o.setUniform("deltaTime",n),o.setUniform("elapsedTime",this._elapsedTime),o.render(t,a),r.material.set("particleTexture",this._particleTexture1),r.material.set("prevParticleTexture",this._particleTexture0),a.attach(this._thisFrameTexture),a.bind(t),t.gl.clear(t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT);var s=this._lastFrameFullQuadMesh;s.material.set("diffuseMap",this._lastFrameTexture),s.material.set("color",[1,1,1,this.motionBlurFactor]),this._camera.update(!0),t.renderPass([s,r],this._camera),a.unbind(t),this._downsample(t),this._swapTexture(),this._elapsedTime+=n},_downsample:function(t){var e=this._downsampleTextures;if(0!==e.length){var n=0,i=this._thisFrameTexture,r=e[n];while(r)this._frameBuffer.attach(r),this._downsamplePass.setUniform("texture",i),this._downsamplePass.setUniform("textureSize",[i.width,i.height]),this._downsamplePass.render(t,this._frameBuffer),i=r,r=e[++n]}},getSurfaceTexture:function(){var t=this._downsampleTextures;return t.length>0?t[t.length-1]:this._lastFrameTexture},setRegion:function(t){this._particlePass.setUniform("region",t)},resize:function(t,e){this._lastFrameTexture.width=t*this._supersampling,this._lastFrameTexture.height=e*this._supersampling,this._thisFrameTexture.width=t*this._supersampling,this._thisFrameTexture.height=e*this._supersampling,this._width=t,this._height=e},setParticleSize:function(t){var e=this._getParticleMesh();if(t<=2)return e.material.disableTexture("spriteTexture"),void(e.material.transparent=!1);this._spriteTexture||(this._spriteTexture=new sn),this._spriteTexture.image&&this._spriteTexture.image.width===t||(this._spriteTexture.image=Bf(t),this._spriteTexture.dirty()),e.material.transparent=!0,e.material.enableTexture("spriteTexture"),e.material.set("spriteTexture",this._spriteTexture),this._particleSize=t},setGradientTexture:function(t){var e=this._getParticleMesh().material;e[t?"enableTexture":"disableTexture"]("gradientTexture"),e.setUniform("gradientTexture",t)},setColorTextureImage:function(t,e){var n=this._getParticleMesh().material;n.setTextureImage("colorTexture",t,e,{flipY:!0})},setParticleType:function(t){this._particleType=t},clearFrame:function(t){var e=this._frameBuffer;e.attach(this._lastFrameTexture),e.bind(t),t.gl.clear(t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT),e.unbind(t)},setSupersampling:function(t){this._supersampling=t,this.resize(this._width,this._height)},_updateDownsampleTextures:function(t,e){for(var n=this._downsampleTextures,i=Math.max(Math.floor(Math.log(this._supersampling/e.getDevicePixelRatio())/Math.log(2)),0),r=2,a=this._width*this._supersampling,o=this._height*this._supersampling,s=0;s<i;s++)n[s]=n[s]||new sn,n[s].width=a/r,n[s].height=o/r,r*=2;for(;s<n.length;s++)n[s].dispose(t);n.length=i},_swapTexture:function(){var t=this._particleTexture0;this._particleTexture0=this._particleTexture1,this._particleTexture1=t;t=this._thisFrameTexture;this._thisFrameTexture=this._lastFrameTexture,this._lastFrameTexture=t},dispose:function(t){t.disposeFrameBuffer(this._frameBuffer),t.disposeTexture(this.vectorFieldTexture),t.disposeTexture(this._spawnTexture),t.disposeTexture(this._particleTexture0),t.disposeTexture(this._particleTexture1),t.disposeTexture(this._thisFrameTexture),t.disposeTexture(this._lastFrameTexture),t.disposeGeometry(this._particleLinesMesh.geometry),t.disposeGeometry(this._particlePointsMesh.geometry),t.disposeGeometry(this._lastFrameFullQuadMesh.geometry),this._spriteTexture&&t.disposeTexture(this._spriteTexture),this._particlePass.dispose(t),this._downsamplePass.dispose(t),this._downsampleTextures.forEach((function(e){e.dispose(t)}))}};var Vf=zf,Ff=a["b"].extend({type:"flowGL",__ecgl__:!0,init:function(t,e){this.viewGL=new dl("orthographic"),this.groupGL=new Ta.Node,this.viewGL.add(this.groupGL),this._particleSurface=new Vf;var n=new Ta.Mesh({geometry:new Ta.PlaneGeometry,material:new Ta.Material({shader:new Ta.Shader({vertex:Ta.Shader.source("ecgl.color.vertex"),fragment:Ta.Shader.source("ecgl.color.fragment")}),transparent:!0})});n.material.enableTexture("diffuseMap"),this.groupGL.add(n),this._planeMesh=n},render:function(t,e,n){var i=this._particleSurface;i.setParticleType(t.get("particleType")),i.setSupersampling(t.get("supersampling")),this._updateData(t,n),this._updateCamera(n.getWidth(),n.getHeight(),n.getDevicePixelRatio());var r=Pr.firstNotNull(t.get("particleDensity"),128);i.setParticleDensity(r,r);var a=this._planeMesh,o=+new Date,s=this,l=!0;a.__percent=0,a.stopAnimation(),a.animate("",{loop:!0}).when(1e5,{__percent:1}).during((function(){var t=+new Date,e=Math.min(t-o,20);o+=e,s._renderer&&(i.update(s._renderer,n,e/1e3,l),a.material.set("diffuseMap",i.getSurfaceTexture())),l=!1})).start();var u=t.getModel("itemStyle"),c=Ta.parseColor(u.get("color"));c[3]*=Pr.firstNotNull(u.get("opacity"),1),a.material.set("color",c),i.setColorTextureImage(t.get("colorTexture"),n),i.setParticleSize(t.get("particleSize")),i.particleSpeedScaling=t.get("particleSpeed"),i.motionBlurFactor=1-Math.pow(.1,t.get("particleTrail"))},updateTransform:function(t,e,n){this._updateData(t,n)},afterRender:function(t,e,n,i){var r=i.renderer;this._renderer=r},_updateData:function(t,e){var n=t.coordinateSystem,i=n.dimensions.map((function(e){return t.coordDimToDataDim(e)[0]})),r=t.getData(),a=r.getDataExtent(i[0]),o=r.getDataExtent(i[1]),s=t.get("gridWidth"),l=t.get("gridHeight");if(null==s||"auto"===s){var u=(a[1]-a[0])/(o[1]-o[0]);s=Math.round(Math.sqrt(u*r.count()))}null!=l&&"auto"!==l||(l=Math.ceil(r.count()/s));var c=this._particleSurface.vectorFieldTexture,h=c.pixels;if(h&&h.length===l*s*4)for(var d=0;d<h.length;d++)h[d]=0;else h=c.pixels=new Float32Array(s*l*4);var f=0,p=1/0,g=new Float32Array(2*r.count()),m=0,v=[[1/0,1/0],[-1/0,-1/0]];r.each([i[0],i[1],"vx","vy"],(function(t,e,i,r){var a=n.dataToPoint([t,e]);g[m++]=a[0],g[m++]=a[1],v[0][0]=Math.min(a[0],v[0][0]),v[0][1]=Math.min(a[1],v[0][1]),v[1][0]=Math.max(a[0],v[1][0]),v[1][1]=Math.max(a[1],v[1][1]);var o=Math.sqrt(i*i+r*r);f=Math.max(f,o),p=Math.min(p,o)})),r.each(["vx","vy"],(function(t,e,n){var i=Math.round((g[2*n]-v[0][0])/(v[1][0]-v[0][0])*(s-1)),r=l-1-Math.round((g[2*n+1]-v[0][1])/(v[1][1]-v[0][1])*(l-1)),a=4*(r*s+i);h[a]=t/f*.5+.5,h[a+1]=e/f*.5+.5,h[a+3]=1})),c.width=s,c.height=l,"bmap"===t.get("coordinateSystem")&&this._fillEmptyPixels(c),c.dirty(),this._updatePlanePosition(v[0],v[1],t,e),this._updateGradientTexture(r.getVisual("visualMeta"),[p,f])},_fillEmptyPixels:function(t){var e=t.pixels,n=t.width,i=t.height;function r(t,r,a){t=Math.max(Math.min(t,n-1),0),r=Math.max(Math.min(r,i-1),0);var o=4*(r*(n-1)+t);return 0!==e[o+3]&&(a[0]=e[o],a[1]=e[o+1],!0)}function a(t,e,n){n[0]=t[0]+e[0],n[1]=t[1]+e[1]}for(var o=[],s=[],l=[],u=[],c=[],h=0,d=0;d<i;d++)for(var f=0;f<n;f++){var p=4*(d*(n-1)+f);0===e[p+3]&&(h=o[0]=o[1]=0,r(f-1,d,s)&&(h++,a(s,o,o)),r(f+1,d,l)&&(h++,a(l,o,o)),r(f,d-1,u)&&(h++,a(u,o,o)),r(f,d+1,c)&&(h++,a(c,o,o)),o[0]/=h,o[1]/=h,e[p]=o[0],e[p+1]=o[1]),e[p+3]=1}},_updateGradientTexture:function(t,e){if(t&&t.length){this._gradientTexture=this._gradientTexture||new Ta.Texture2D({image:document.createElement("canvas")});var n=this._gradientTexture,i=n.image;i.width=200,i.height=1;var r=i.getContext("2d"),a=r.createLinearGradient(0,.5,i.width,.5);t[0].stops.forEach((function(t){var n;e[1]===e[0]?n=0:(n=t.value/e[1],n=Math.min(Math.max(n,0),1)),a.addColorStop(n,t.color)})),r.fillStyle=a,r.fillRect(0,0,i.width,i.height),n.dirty(),this._particleSurface.setGradientTexture(this._gradientTexture)}else this._particleSurface.setGradientTexture(null)},_updatePlanePosition:function(t,e,n,i){var r=this._limitInViewportAndFullFill(t,e,n,i);t=r.leftTop,e=r.rightBottom,this._particleSurface.setRegion(r.region),this._planeMesh.position.set((t[0]+e[0])/2,i.getHeight()-(t[1]+e[1])/2,0);var a=e[0]-t[0],o=e[1]-t[1];this._planeMesh.scale.set(a/2,o/2,1),this._particleSurface.resize(Math.max(Math.min(a,2048),1),Math.max(Math.min(o,2048),1)),this._renderer&&this._particleSurface.clearFrame(this._renderer)},_limitInViewportAndFullFill:function(t,e,n,i){var r=[Math.max(t[0],0),Math.max(t[1],0)],a=[Math.min(e[0],i.getWidth()),Math.min(e[1],i.getHeight())];if("bmap"===n.get("coordinateSystem")){var o=n.getData().getDataExtent(n.coordDimToDataDim("lng")[0]),s=Math.floor(o[1]-o[0])>=359;s&&(r[0]>0&&(r[0]=0),a[0]<i.getWidth()&&(a[0]=i.getWidth()))}var l=e[0]-t[0],u=e[1]-t[1],c=a[0]-r[0],h=a[1]-r[1],d=[(r[0]-t[0])/l,1-h/u-(r[1]-t[1])/u,c/l,h/u];return{leftTop:r,rightBottom:a,region:d}},_updateCamera:function(t,e,n){this.viewGL.setViewport(0,0,t,e,n);var i=this.viewGL.camera;i.left=i.bottom=0,i.top=e,i.right=t,i.near=0,i.far=100,i.position.z=10},remove:function(){this._planeMesh.stopAnimation(),this.groupGL.removeAll()},dispose:function(){this._renderer&&this._particleSurface.dispose(this._renderer),this.groupGL.removeAll()}});function Gf(t){t.registerChartView(Ff),t.registerSeriesModel(Pf)}Object(a["v"])(Gf);var Hf=n("6d8b"),Uf=a["g"].extend({type:"series.linesGL",dependencies:["grid","geo"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",streamEnabled:!0,init:function(t){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),Uf.superApply(this,"init",arguments)},mergeOption:function(t){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),Uf.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(Hf["e"])(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(Hf["e"])(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var a=this._getCoordsFromItemModel(t);for(r=0;r<a.length;r++)e[r]=e[r]||[],e[r][0]=a[r][0],e[r][1]=a[r][1];return a.length},_processFlatCoordsArray:function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"===typeof t[0]){for(var n=t.length,i=new Uint32Array(n),r=new Float64Array(n),a=0,o=0,s=0,l=0;l<n;){s++;var u=t[l++];i[o++]=a+e,i[o++]=u;for(var c=0;c<u;c++){var h=t[l++],d=t[l++];r[a++]=h,r[a++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,o),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,e){var n=new a["e"](["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var a=t.value;return null!=a?a instanceof Array?a[r]:a:void 0})),n},defaultOption:{coordinateSystem:"geo",zlevel:10,progressive:1e4,progressiveThreshold:5e4,blendMode:"source-over",lineStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}}),Wf=Uf,Xf=a["b"].extend({type:"linesGL",__ecgl__:!0,init:function(t,e){this.groupGL=new Ta.Node,this.viewGL=new dl("orthographic"),this.viewGL.add(this.groupGL),this._glViewHelper=new nf(this.viewGL),this._nativeLinesShader=Ta.createShader("ecgl.lines3D"),this._meshLinesShader=Ta.createShader("ecgl.meshLines3D"),this._linesMeshes=[],this._currentStep=0},render:function(t,e,n){this.groupGL.removeAll(),this._glViewHelper.reset(t,n);var i=this._linesMeshes[0];i||(i=this._linesMeshes[0]=this._createLinesMesh(t)),this._linesMeshes.length=1,this.groupGL.add(i),this._updateLinesMesh(t,i,0,t.getData().count()),this.viewGL.setPostEffect(t.getModel("postEffect"),n)},incrementalPrepareRender:function(t,e,n){this.groupGL.removeAll(),this._glViewHelper.reset(t,n),this._currentStep=0,this.viewGL.setPostEffect(t.getModel("postEffect"),n)},incrementalRender:function(t,e,n,i){var r=this._linesMeshes[this._currentStep];r||(r=this._createLinesMesh(e),this._linesMeshes[this._currentStep]=r),this._updateLinesMesh(e,r,t.start,t.end),this.groupGL.add(r),i.getZr().refresh(),this._currentStep++},updateTransform:function(t,e,n){t.coordinateSystem.getRoamTransform&&this._glViewHelper.updateTransform(t,n)},_createLinesMesh:function(t){var e=new Ta.Mesh({$ignorePicking:!0,material:new Ta.Material({shader:Ta.createShader("ecgl.lines3D"),transparent:!0,depthMask:!1,depthTest:!1}),geometry:new gf({segmentScale:10,useNativeLine:!0,dynamic:!1}),mode:Ta.Mesh.LINES,culling:!1});return e},_updateLinesMesh:function(t,e,n,i){var r=t.getData();e.material.blend="lighter"===t.get("blendMode")?Ta.additiveBlend:null;var a=t.get("lineStyle.curveness")||0,o=t.get("polyline"),s=e.geometry,l=t.coordinateSystem,u=Pr.firstNotNull(t.get("lineStyle.width"),1);u>1?(e.material.shader!==this._meshLinesShader&&e.material.attachShader(this._meshLinesShader),e.mode=Ta.Mesh.TRIANGLES):(e.material.shader!==this._nativeLinesShader&&e.material.attachShader(this._nativeLinesShader),e.mode=Ta.Mesh.LINES),n=n||0,i=i||r.count(),s.resetOffset();var c=0,h=0,d=[],f=[],p=[],g=[],m=[],v=.3,y=.7;function _(){f[0]=d[0]*y+g[0]*v-(d[1]-g[1])*a,f[1]=d[1]*y+g[1]*v-(g[0]-d[0])*a,p[0]=d[0]*v+g[0]*y-(d[1]-g[1])*a,p[1]=d[1]*v+g[1]*y-(g[0]-d[0])*a}if(o||0!==a)for(var b=n;b<i;b++)if(o){var x=t.getLineCoordsCount(b);c+=s.getPolylineVertexCount(x),h+=s.getPolylineTriangleCount(x)}else t.getLineCoords(b,m),this._glViewHelper.dataToPoint(l,m[0],d),this._glViewHelper.dataToPoint(l,m[1],g),_(),c+=s.getCubicCurveVertexCount(d,f,p,g),h+=s.getCubicCurveTriangleCount(d,f,p,g);else{var w=i-n;c+=w*s.getLineVertexCount(),h+=w*s.getLineVertexCount()}s.setVertexCount(c),s.setTriangleCount(h);var O=n,S=[];for(b=n;b<i;b++){Ta.parseColor(wu(r,O),S);var T=Pr.firstNotNull(Ou(r,O),1);S[3]*=T;x=t.getLineCoords(b,m);for(var M=0;M<x;M++)this._glViewHelper.dataToPoint(l,m[M],m[M]);o?s.addPolyline(m,S,u,0,x):0!==a?(d=m[0],g=m[1],_(),s.addCubicCurve(d,f,p,g,S,u)):s.addPolyline(m,S,u,0,2),O++}},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function Zf(t){t.registerChartView(Xf),t.registerSeriesModel(Wf)}Object(a["v"])(Zf);const qf=["id"];var Yf={__name:"pieEcharts",props:{echartsId:{type:String,default:"lineId"},color:{type:String,default:"lineId"},data:{type:Array,default:[]}},setup(t){const e=t;Object(i["watch"])(()=>e.data,t=>{Object(i["nextTick"])(()=>{n(t)})},{immediate:!0,deep:!0});const n=t=>{let e=t.map(t=>{let e={value:t.value,name:t.label};return t.color&&(e.itemStyle={color:new r["a"].LinearGradient(0,0,0,1,[{offset:0,color:t.color[0]},{offset:1,color:t.color[1]}])}),e});a(e)},a=t=>{var n=r["b"](document.getElementById(e.echartsId));const i={backgroundColor:"transparent",tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)",backgroundColor:"rgba(0,0,0,0.7)",borderColor:"#0C2E5A",textStyle:{color:"#fff"}},legend:{top:"middle",right:"5%",orient:"vertical",itemGap:20,textStyle:{color:e.color,fontSize:14},itemWidth:15,itemHeight:15,icon:"roundRect",formatter:function(t){const e=i.series[0].data,n=e.find(e=>e.label===t);return n?`${t} ${n.value} ${(n.value/50*100).toFixed(0)}%`:t}},series:[{name:"情报反馈统计",type:"pie",radius:["40%","75%"],center:["30%","50%"],startAngle:90,zlevel:10,itemStyle:{},selectedMode:"single",selectedOffset:30,animation:!0,animationType:"scale",animationEasing:"elasticOut",label:{show:!1},labelLine:{show:!1},data:t,zlevel:10,emphasis:{scale:!0,scaleSize:10,itemStyle:{shadowBlur:30,shadowColor:"rgba(0,0,0,0.6)"}}}]};i&&n.setOption(i),window.addEventListener("resize",()=>{n.resize()})};return(e,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{style:{height:"100%",width:"100%"},id:t.echartsId},null,8,qf))}},Kf=(n("5cfa"),n("6b0d")),Qf=n.n(Kf);const Jf=Qf()(Yf,[["__scopeId","data-v-75b106ee"]]);e["a"]=Jf},e86a:function(t,e,n){"use strict";n.d(e,"f",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return h})),n.d(e,"e",(function(){return d})),n.d(e,"g",(function(){return f})),n.d(e,"c",(function(){return p}));var i=n("9850"),r=n("d51b"),a=n("726e"),o={};function s(t,e){e=e||a["a"];var n=o[e];n||(n=o[e]=new r["a"](500));var i=n.get(t);return null==i&&(i=a["d"].measureText(t,e).width,n.put(t,i)),i}function l(t,e,n,r){var a=s(t,e),o=d(e),l=c(0,a,n),u=h(0,o,r),f=new i["a"](l,u,a,o);return f}function u(t,e,n,r){var a=((t||"")+"").split("\n"),o=a.length;if(1===o)return l(a[0],e,n,r);for(var s=new i["a"](0,0,0,0),u=0;u<a.length;u++){var c=l(a[u],e,n,r);0===u?s.copy(c):s.union(c)}return s}function c(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function h(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function d(t){return s("国",t)}function f(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function p(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=f(i[0],n.width),u+=f(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+o,u+=s,h="middle";break;case"top":l+=o/2,u-=r,c="center",h="bottom";break;case"bottom":l+=o/2,u+=a+r,c="center";break;case"inside":l+=o/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=o-r,u+=s,c="right",h="middle";break;case"insideTop":l+=o/2,u+=r,c="center";break;case"insideBottom":l+=o/2,u+=a-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=o-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=a-r,h="bottom";break;case"insideBottomRight":l+=o-r,u+=a-r,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}},e887:function(t,e,n){"use strict";var i=n("6d8b"),r=n("2dc5"),a=n("8918"),o=n("625e"),s=n("e0d3"),l=n("7d6c"),u=n("9fbc"),c=n("cccd"),h=n("2306"),d=s["o"](),f=Object(c["a"])(),p=function(){function t(){this.group=new r["a"],this.uid=a["c"]("viewChart"),this.renderTask=Object(u["a"])({plan:v,reset:y}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){0},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&m(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&m(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){Object(h["traverseElements"])(this.group,t)},t.markUpdateMethod=function(t,e){d(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function g(t,e,n){t&&Object(l["y"])(t)&&("emphasis"===e?l["r"]:l["C"])(t,n)}function m(t,e,n){var r=s["u"](t,e),a=e&&null!=e.highlightKey?Object(l["v"])(e.highlightKey):null;null!=r?Object(i["k"])(s["r"](r),(function(e){g(t.getItemGraphicEl(e),n,a)})):t.eachItemGraphicEl((function(t){g(t,n,a)}))}function v(t){return f(t.model)}function y(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=r&&d(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](e,n,i,r),_[l]}o["b"](p,["dispose"]),o["c"](p);var _={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};e["a"]=p},e88d:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAWCAYAAAC/kK73AAAAAXNSR0IArs4c6QAACT5JREFUWEetl3tQXNUdx7/n7t7H3t2FBZYsyyMLSQmBGIwPMLRCAqYx0bTyRzWjTu30MZN06tTWto7TcZRO/2raMam1taW106hjJ5PYan3EZ6rkUQ1QISp5KoRAWBbYhd27e9/3ds4hQUisWKdn9s7dPefccz+/928JAGzZsvVOD+9ZXZBfgGQqdb3sk6Zlv//9O++4DaZtQMvpUHUN2UwW2azmKopCDEN3VVUjdN40TVfTdGiaSpRMdi3HkQKB52GYJnyS76SiKO+UlYUe6ezsNOn76JCk9047jrGUEM6IRkPVQ0NV8Ytrn+VO6KbNN9/2F0GIfGNivB1XVb+MW4LvYM/UUpxPm3BdB3ABEEI/9MuFc+nkwuGyKQKOXAfHXon1nj+hxjbxB84HF87BLTe2HVJ1jWQzCghHtpdES0KJxITd29v321xOy6qqFj906NVHATiLwTOKe5s3/GAgr3AnYVCMcrHnPnHdsiy4s/Rs2LYFuA48Hi+8PA/Hvshzcc8lSiDY5iHq7v379+uLAbAnf9647odHwpGHqUq9ogB/YQgiz4MDQWpiErqqzZ0jBvzwBf2QeJ4JmBgdg2PbbN2yTMihEERZguDlYag5jA4NQhREiD4ZPMnAcV2YThDE64Xkk8DNmhFTiQT8vsDDL72050eLQc/Z/aYtW+9xHHcXIQSFFaW4YlMbfIKAklA+Dux5FufODM65R+yaKxG7uh55sg/hQAD7fvNHKGmFWcqybKzasA7v/vMVlJaVYvPWO7B7xyPgvTxzs4YqAQLPoeu4gvqbNuKLm9pQnJcHuC4euOubkLzBM3kBrNq7d6+xGDwTl4G77i7qKj6fCNt2YBgGJElizzuOy357PBy7DMOEKIrgeS903YBpWiDEgWU60A0VddVR6IaJoZEZcJyH7aPjoTvWwesheGD3Aay+aQPqmptQXRJha491/AxT55KIRApv2f3nx/4xH7ylpaWiq6vr3Py5BeDUbN/ddhfOnBnCK6+/ha1f+wrKy6MYHY1j3zMv4LrrrkF5WQn27H0eNTXLsXHDOvz9uf1snRAXpmkzt7m97QrEkxm82nMajm1BEASm8S+tqYapanj7+FlUN61F6aoaFAUCCEo+PP/UE3ANDo6hdT77t6e3zYesra1t53n++LFjx05enF8A7vV4sHlTG4oKQzja3Ye62mrQNLckEsbR7n6sbbyKBdo7R3tx+swgbvnqJvT3D+CDgZMMrDgcQioZR0lREc7H40imM5DEfIiCjfHxcZiWxeKevqc0WgrdFkEu5ALTNEAt7vV6TUGUkm2t1ye8Hs+ILPtOJBLx86dOnepT1UzXRTf6GNxxd9FDA36Z+Sr1d8dxYNs2eBqoBCywqBsJvBeqqkMUBQaSy2ns7nEz+PCjQei6zrILPauqcjk0w8C5kbOwLRvRaBQ0+4iiD5w3b06xlqnDtk3wgghJ8s/FlOu4EAQvQgX5bmRJOCEH5Iff6+sRGPjuJ5/e5uG433++JPixUd988wCOHDnMoDmOY9fGjTcim1Px9r8OU21icnKSKaK5uQXr199wWV0YGh7BkSM9c1mKZTqPB4auQRAlFBeHkZkZe3lO467r7loskhdbT8+MI5dNM2tReHrneQmOY8MwdHAcYdoWBBGCIEEOFH+sccuE41hMKGoN0zTZfsJ52J5iZwpRn4OxvJVQZuJvXJZVFsK5zF1yShqmocMr8JD9+czPLx207kwnR2BaBlzHZs/xvABe8DEX0DWNgVFwBifJyMuPsmOokDYDpy4KZLMzULPp2fpA6IcKwIHnRcRiVSCc9QaprKyUCsPRX8qB/LsvrZiGlkMiPsxyNH2ZZZpwXGBJpAKiL3BZgVWVKWSVDCtErEgQglBBEUIBGcPn49C13IV5IFZeDkW9RHxChR+HrqvgBYG5Gk3DtJh7vbOaLy0thU+WXyTLli27nRDydEG4bMEplmlgYnwE0WgJCgrDcF2OtRCZdAojIyMoWlLGzD03XKBl9VI833X0guZob8OhfX0T6ipL8etnXoVtztYVj8eDe7feiF/99WXWYDAhAUxPp5illi9fDl6QZ5sPl2akMRYbNEbC4TAV6Hekqqrq65ZtPxGJVs5nQDqVgMB7ULF0GfLyChGJFGFiMoVUchLxsWFklBwKwtEFXc31dTG81f/BXAtAi0/L6hV469gZ6LrCMhK1HCtsLi1WJstA9PL5fEin06iurobgy0dFeTkCsg+Dw6OwjCxOHH/ftiyLI7NDIbFY7FuEkMcLi8vhzskPTI6PoKpyKfyBCFbVLcPQ0EeIxSpx/OQwtNwETp46jSXR2EIrGQZMPUMrOIPzenlYjod2gjC1NAs4qm0KOT09PedOdJ76eWVlJQLBPAQCYRSH/ZiamkKkpIwVRDWXevLs2bMTAERCyDSRZfk5BxBNfWF7sH379qtTqWTxTNrElfU1rBXQdRPv9p+EKJhO09om94UXXnRd13XoS03T1FOpZMLv91cARKAZwbbtXEZRxqgbBIPBUsdxcoQQSxTFSEVFBQNXFIUJQuPh/vvvx4MPdUCSCnD1VTVs7vzYJM4Nj0DTZh557bXX7rmoqf+aukdHR7/T2dl5c1/f++0gIkIFQcxMK3AdFaqq/HTfvn2dwWCQto0s4git+QAaGhpOrFmzpmZmZgaDg4Ovd3d3f5nONzY2HtR1PQFgNBAI3LZz584f01agt7eXa21t7VdVVVyxYoW/vb39Qc7jW0+LEFVWMjkDD6fbqVSypaur68ii4JTl1ltv5cbHx34RzC/4vpfjedu2nGw28/j4+PjdAwMDn9jBNTQ0HG9qalqZSqVw4sSJN7q7uzdcAO/SNO0jACOCIGzt6empnu9nHR0d3o6ODquurq4kGo3ukeVAC40RXVfT2azyvYMHDz41f/9nKpb19fXlsiyvNE1zsLe398PLkvi8CQre2trKwPv6+ubAGxoaugzD6LNte0ySpG/39PR84VPOIY2NjfUAihKJxL+HhoZmA2Le+EzgnwZ66dq11147sHnz5lrqKocPHz7Q29t7Q3Nzc9RxnDdzudxPHMdJ+v3+pziOazt06BC1wOca/1fw2tralqKiop333XefSVPcjh07+Gw2e5fjOHFRFIv6+/tPUcra2toYIUQfGBj4n/4gz5fwP8dBTbJl22GWAAAAAElFTkSuQmCC"},ec6f:function(t,e,n){"use strict";n.d(e,"e",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return h})),n.d(e,"d",(function(){return d})),n.d(e,"f",(function(){return v}));var i=n("6d8b"),r=n("07fd"),a=n("e0d3"),o=n("0f99"),s=function(){function t(t){this.data=t.data||(t.sourceFormat===r["d"]?{}:[]),this.sourceFormat=t.sourceFormat||r["h"],this.seriesLayoutBy=t.seriesLayoutBy||r["a"],this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&Object(o["b"])(this,n)===o["a"].Must&&(i.type="ordinal")}}return t}();function l(t){return t instanceof s}function u(t,e,n){n=n||d(t);var r=e.seriesLayoutBy,a=f(t,n,r,e.sourceHeader,e.dimensions),o=new s({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Object(i["d"])(e)});return o}function c(t){return new s({data:t,sourceFormat:Object(i["E"])(t)?r["g"]:r["f"]})}function h(t){return new s({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Object(i["d"])(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function d(t){var e=r["h"];if(Object(i["E"])(t))e=r["g"];else if(Object(i["t"])(t)){0===t.length&&(e=r["c"]);for(var n=0,a=t.length;n<a;n++){var o=t[n];if(null!=o){if(Object(i["t"])(o)){e=r["c"];break}if(Object(i["A"])(o)){e=r["e"];break}}}}else if(Object(i["A"])(t))for(var s in t)if(Object(i["q"])(t,s)&&Object(i["u"])(t[s])){e=r["d"];break}return e}function f(t,e,n,o,s){var l,u;if(!t)return{dimensionsDefine:g(s),startIndex:u,dimensionsDetectedCount:l};if(e===r["c"]){var c=t;"auto"===o||null==o?m((function(t){null!=t&&"-"!==t&&(Object(i["C"])(t)?null==u&&(u=1):u=0)}),n,c,10):u=Object(i["z"])(o)?o:o?1:0,s||1!==u||(s=[],m((function(t,e){s[e]=null!=t?t+"":""}),n,c,1/0)),l=s?s.length:n===r["b"]?c.length:c[0]?c[0].length:null}else if(e===r["e"])s||(s=p(t));else if(e===r["d"])s||(s=[],Object(i["k"])(t,(function(t,e){s.push(e)})));else if(e===r["f"]){var h=Object(a["h"])(t[0]);l=Object(i["t"])(h)&&h.length||1}else r["g"];return{startIndex:u,dimensionsDefine:g(s),dimensionsDetectedCount:l}}function p(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e){var r=[];return Object(i["k"])(e,(function(t,e){r.push(e)})),r}}function g(t){if(t){var e=Object(i["f"])();return Object(i["H"])(t,(function(t,n){t=Object(i["A"])(t)?t:{name:t};var r={name:t.name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var a=e.get(r.name);return a?r.name+="-"+a.count++:e.set(r.name,{count:1}),r}))}}function m(t,e,n,i){if(e===r["b"])for(var a=0;a<n.length&&a<i;a++)t(n[a]?n[a][0]:null,a);else{var o=n[0]||[];for(a=0;a<o.length&&a<i;a++)t(o[a],a)}}function v(t){var e=t.sourceFormat;return e===r["e"]||e===r["d"]}},eda2:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"k",(function(){return s})),n.d(e,"j",(function(){return l})),n.d(e,"d",(function(){return h})),n.d(e,"i",(function(){return d})),n.d(e,"f",(function(){return g})),n.d(e,"g",(function(){return m})),n.d(e,"h",(function(){return v})),n.d(e,"e",(function(){return y})),n.d(e,"b",(function(){return _})),n.d(e,"c",(function(){return b})),n.d(e,"l",(function(){return x}));var i=n("6d8b"),r=n("3842"),a=n("f876");function o(t){if(!Object(r["j"])(t))return i["C"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function s(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var l=i["M"],u=/([&<>"'])/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(t){return null==t?"":(t+"").replace(u,(function(t,e){return c[e]}))}function d(t,e,n){var s="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function l(t){return t&&i["T"](t)?t:"-"}function u(t){return!(null==t||isNaN(t)||!isFinite(t))}var c="time"===e,h=t instanceof Date;if(c||h){var d=c?Object(r["o"])(t):t;if(!isNaN(+d))return Object(a["h"])(d,s,n);if(h)return"-"}if("ordinal"===e)return i["D"](t)?l(t):i["z"](t)&&u(t)?t+"":"-";var f=Object(r["n"])(t);return u(f)?o(f):i["D"](t)?l(t):"boolean"===typeof t?t+"":"-"}var f=["a","b","c","d","e","f","g"],p=function(t,e){return"{"+t+(null==e?"":e)+"}"};function g(t,e,n){i["t"](e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],o=0;o<a.length;o++){var s=f[o];t=t.replace(p(s),p(s,0))}for(var l=0;l<r;l++)for(var u=0;u<a.length;u++){var c=e[l][a[u]];t=t.replace(p(f[u],l),n?h(c):c)}return t}function m(t,e,n){return i["k"](e,(function(e,i){t=t.replace("{"+i+"}",n?h(e):e)})),t}function v(t,e){var n=i["C"](t)?{color:t,extraCssText:e}:t||{},r=n.color,a=n.type;e=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if("html"===o)return"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+h(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+h(r)+";"+(e||"")+'"></span>';var s=n.markerId||"markerX";return{renderMode:o,content:"{"+s+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function y(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=Object(r["o"])(e),o=n?"getUTC":"get",s=i[o+"FullYear"](),l=i[o+"Month"]()+1,u=i[o+"Date"](),c=i[o+"Hours"](),h=i[o+"Minutes"](),d=i[o+"Seconds"](),f=i[o+"Milliseconds"]();return t=t.replace("MM",Object(a["y"])(l,2)).replace("M",l).replace("yyyy",s).replace("yy",Object(a["y"])(s%100+"",2)).replace("dd",Object(a["y"])(u,2)).replace("d",u).replace("hh",Object(a["y"])(c,2)).replace("h",c).replace("mm",Object(a["y"])(h,2)).replace("m",h).replace("ss",Object(a["y"])(d,2)).replace("s",d).replace("SSS",Object(a["y"])(f,3)),t}function _(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function b(t,e){return e=e||"transparent",i["C"](t)?t:i["A"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function x(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}},edae:function(t,e,n){"use strict";n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u})),n.d(e,"c",(function(){return c}));var i="[ECharts] ",r={},a="undefined"!==typeof console&&console.warn&&console.log;function o(t,e,n){if(a){if(n){if(r[e])return;r[e]=!0}console[t](i+e)}}function s(t,e){o("warn",t,e)}function l(t,e){o("error",t,e)}function u(t){0}function c(t){throw new Error(t)}},ee1a:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return l}));var i=n("6d8b"),r=n("80b9");function a(t,e,n){n=n||{};var r,a,s,l=n.byIndex,u=n.stackedCoordDimension;o(e)?r=e:(a=e.schema,r=a.dimensions,s=e.store);var c,h,d,f,p=!(!t||!t.get("stack"));if(Object(i["k"])(r,(function(t,e){Object(i["C"])(t)&&(r[e]=t={name:t}),p&&!t.isExtraCoord&&(l||c||!t.ordinalMeta||(c=t),h||"ordinal"===t.type||"time"===t.type||u&&u!==t.coordDim||(h=t))})),!h||l||c||(l=!0),h){d="__\0ecstackresult_"+t.id,f="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var g=h.coordDim,m=h.type,v=0;Object(i["k"])(r,(function(t){t.coordDim===g&&v++}));var y={name:d,coordDim:g,coordDimIndex:v,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},_={name:f,coordDim:f,coordDimIndex:v+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(f,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),a.appendCalculationDimension(y),a.appendCalculationDimension(_)):(r.push(y),r.push(_))}return{stackedDimension:h&&h.name,stackedByDimension:c&&c.name,isStackedByIndex:l,stackedOverDimension:f,stackResultDimension:d}}function o(t){return!Object(r["d"])(t.schema)}function s(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function l(t,e){return s(t,e)?t.getCalculationInfo("stackResultDimension"):e}},ee29:function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var i=n("e0d3"),r=n("9850"),a=n("deab"),o=n("861c"),s=n("3842"),l=n("8582"),u=n("89b6"),c=n("6d8b"),h=n("2355"),d=n("7837");function f(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function p(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:f(i&&i.shape.points)}}var g=["align","verticalAlign","width","height","fontSize"],m=new l["c"],v=Object(i["o"])(),y=Object(i["o"])();function _(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var b=["x","y","rotation"],x=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();r["a"].applyTransform(c,c,u),u?m.setLocalTransform(u):(m.x=m.y=m.rotation=m.originX=m.originY=0,m.scaleX=m.scaleY=1);var h,d=i.__hostTarget;if(d){h=d.getBoundingRect().plain();var f=d.getComputedTransform();r["a"].applyTransform(h,h,f)}var p=h&&d.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:m.x,y:m.y,scaleX:m.scaleX,scaleY:m.scaleY,rotation:m.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(Object(c["w"])(i)||Object(c["F"])(i).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var r=t.getTextContent(),a=Object(o["a"])(t);r&&!r.disableLabelLayout&&e._addLabel(a.dataIndex,a.dataType,n,r,i)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(t,e){return function(){Object(u["e"])(t,e)}}for(var r=0;r<this._labelList.length;r++){var a=this._labelList[r],o=a.label,l=o.__hostTarget,h=a.defaultAttr,d=void 0;d=Object(c["w"])(a.layoutOption)?a.layoutOption(p(a,l)):a.layoutOption,d=d||{},a.computedLayoutOption=d;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=d.x||null!=d.y?null:h.attachedPos,rotation:null!=d.rotate?d.rotate*f:h.attachedRot,offset:[d.dx||0,d.dy||0]});var m=!1;if(null!=d.x?(o.x=Object(s["p"])(d.x,e),o.setStyle("x",0),m=!0):(o.x=h.x,o.setStyle("x",h.style.x)),null!=d.y?(o.y=Object(s["p"])(d.y,n),o.setStyle("y",0),m=!0):(o.y=h.y,o.setStyle("y",h.style.y)),d.labelLinePoints){var y=l.getTextGuideLine();y&&(y.setShape({points:d.labelLinePoints}),m=!1)}var _=v(o);_.needsUpdateLabelLine=m,o.rotation=null!=d.rotate?d.rotate*f:h.rotation,o.scaleX=h.scaleX,o.scaleY=h.scaleY;for(var b=0;b<g.length;b++){var x=g[b];o.setStyle(x,null!=d[x]?d[x]:h.style[x])}if(d.draggable){if(o.draggable=!0,o.cursor="move",l){var w=a.seriesModel;if(null!=a.dataIndex){var O=a.seriesModel.getData(a.dataType);w=O.getItemModel(a.dataIndex)}o.on("drag",i(l,w.getModel("labelLine")))}}else o.off("drag"),o.cursor=h.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=Object(h["b"])(this._labelList),r=Object(c["n"])(i,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),a=Object(c["n"])(i,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));Object(h["c"])(r,0,e),Object(h["d"])(a,0,n);var o=Object(c["n"])(i,(function(t){return t.layoutOption.hideOverlap}));Object(h["a"])(o)},t.prototype.processLabelsOverall=function(){var t=this;Object(c["k"])(this._chartViewList,(function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var a=!i,o=e.getTextContent();!a&&o&&(a=v(o).needsUpdateLabelLine),a&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=Object(o["a"])(t),r=i.dataIndex;if(n&&null!=r){var a=e.getData(i.dataType),s=a.getItemModel(r),l={},c=a.getItemVisual(r,"style"),h=a.getVisual("drawType");l.stroke=c[h];var d=s.getModel("labelLine");Object(u["d"])(t,Object(u["a"])(s),l),Object(u["e"])(t,d)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Object(a["d"])(t))){var r=v(n),s=r.oldLayout,l=Object(o["a"])(t),u=l.dataIndex,h={x:n.x,y:n.y,rotation:n.rotation},f=e.getData(l.dataType);if(s){n.attr(s);var p=t.prevStates;p&&(Object(c["r"])(p,"select")>=0&&n.attr(r.oldLayoutSelect),Object(c["r"])(p,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),Object(a["h"])(n,h,e,u)}else if(n.attr(h),!Object(d["f"])(n).valueAnimation){var g=Object(c["P"])(n.style.opacity,1);n.style.opacity=0,Object(a["c"])(n,{style:{opacity:g}},e,u)}if(r.oldLayout=h,n.states.select){var m=r.oldLayoutSelect={};_(m,h,b),_(m,n.states.select,b)}if(n.states.emphasis){var x=r.oldLayoutEmphasis={};_(x,h,b),_(x,n.states.emphasis,b)}Object(d["a"])(n,u,f,e,e)}if(i&&!i.ignore&&!i.invisible){r=y(i),s=r.oldLayout;var w={points:i.shape.points};s?(i.attr({shape:s}),Object(a["h"])(i,{shape:w},e)):(i.setShape(w),i.style.strokePercent=0,Object(a["c"])(i,{style:{strokePercent:1}},e)),r.oldLayout=w}},t}(),w=x,O=Object(i["o"])();function S(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=O(e).labelManager;i||(i=O(e).labelManager=new w),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=O(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}},ef59:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return g})),n.d(e,"d",(function(){return m})),n.d(e,"c",(function(){return v}));var i=n("4319"),r=n("22d1"),a={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},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:". "}}}},o={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:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},s=n("6d8b"),l="ZH",u="EN",c=u,h={},d={},f=r["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(l)>-1?l:c}():c;function p(t,e){t=t.toUpperCase(),d[t]=new i["a"](e),h[t]=e}function g(t){if(Object(s["C"])(t)){var e=h[t.toUpperCase()]||{};return t===l||t===u?Object(s["d"])(e):Object(s["I"])(Object(s["d"])(e),Object(s["d"])(h[c]),!1)}return Object(s["I"])(Object(s["d"])(t),Object(s["d"])(h[c]),!1)}function m(t){return d[t]}function v(){return d[c]}p(u,a),p(l,o)},f279:function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return g})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return v}));var i=n("7fae"),r=n("9850"),a=n("401b"),o=n("0655"),s=n("1687"),l=n("6d8b"),u=[];function c(t,e){for(var n=0;n<t.length;n++)a["b"](t[n],t[n],e)}function h(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(a["l"](e,e,o),a["k"](n,n,o))}}function d(t){for(var e=0,n=0,i=0,r=t.length,a=t[r-1][0],o=t[r-1][1],s=0;s<r;s++){var l=t[s][0],u=t[s][1],c=a*u-l*o;e+=c,n+=(a+l)*c,i+=(o+u)*c,a=l,o=u}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}var f=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),p=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),g=function(){function t(t){this.type="linestring",this.points=t}return t}(),m=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return Object(i["a"])(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],a=r.exterior,o=a&&a.length;o>n&&(t=r,n=o)}if(t)return d(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],a=this.geometries;return Object(l["k"])(a,(function(e){"polygon"===e.type?h(e.exterior,n,i,t):Object(l["k"])(e.points,(function(e){h(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new r["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i<r;i++){var a=n[i];if("polygon"===a.type){var s=a.exterior,l=a.interiors;if(o["a"](s,t[0],t[1])){for(var u=0;u<(l?l.length:0);u++)if(o["a"](l[u],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,i){var a=this.getBoundingRect(),o=a.width/a.height;n?i||(i=n/o):n=o*i;for(var s=new r["a"](t,e,n,i),u=a.calculateTransform(s),h=this.geometries,d=0;d<h.length;d++){var f=h[d];"polygon"===f.type?(c(f.exterior,u),Object(l["k"])(f.interiors,(function(t){c(t,u)}))):Object(l["k"])(f.points,(function(t){c(t,u)}))}a=this._rect,a.copy(s),this._center=[a.x+a.width/2,a.y+a.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(f),v=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return Object(i["a"])(e,t),e.prototype.calcCenter=function(){var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=s["d"](u),r=t;while(r&&!r.isGeoSVGGraphicRoot)s["f"](i,r.getLocalTransform(),i),r=r.parent;return s["e"](i,i),a["b"](n,n,i),n},e}(f)},f3bb:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n("6d8b"),r=n("e0d3");function a(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}Object(i["k"])([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,a){e=Object(i["m"])({},e),a.dispatchAction(Object(i["m"])(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function o(t,e,n,a,o){var s=t+e;n.isSilent(s)||a.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,a=t.option.selectedMap,l=o.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===e){var c=t.getData(),h=Object(r["u"])(c,o.fromActionPayload);n.trigger(s,{type:s,seriesId:t.id,name:Object(i["t"])(h)?c.getName(h[0]):c.getName(h),selected:Object(i["C"])(a)?a:Object(i["m"])({},a)})}}))}function s(t,e,n){t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(o("map","selectchanged",e,i,t),o("pie","selectchanged",e,i,t)):"select"===t.fromAction?(o("map","selected",e,i,t),o("pie","selected",e,i,t)):"unselect"===t.fromAction&&(o("map","unselected",e,i,t),o("pie","unselected",e,i,t))}))}},f5c8:function(t,e,n){"use strict";n("9a7f")},f658:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("6d8b"),r="undefined"!==typeof Float32Array,a=r?Float32Array:Array;function o(t){return Object(i["t"])(t)?r?new Float32Array(t):t:new a(t)}},f6d8:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("6d8b"),r=n("217c"),a=n("2b17"),o=n("e0d3");function s(t){var e,n,s,u,c=t.series,h=t.dataIndex,d=t.multipleSeries,f=c.getData(),p=f.mapDimensionsAll("defaultedTooltip"),g=p.length,m=c.getRawValue(h),v=Object(i["t"])(m),y=Object(r["e"])(c,h);if(g>1||v&&!g){var _=l(m,c,h,p,y);e=_.inlineValues,n=_.inlineValueTypes,s=_.blocks,u=_.inlineValues[0]}else if(g){var b=f.getDimensionInfo(p[0]);u=e=Object(a["e"])(f,h,p[0]),n=b.type}else u=e=v?m[0]:m;var x=Object(o["n"])(c),w=x&&c.name||"",O=f.getName(h),S=d?w:O;return Object(r["c"])("section",{header:w,noHeader:d||!x,sortParam:u,blocks:[Object(r["c"])("nameValue",{markerType:"item",markerColor:y,name:S,noName:!Object(i["T"])(S),value:e,valueType:n})].concat(s||[])})}function l(t,e,n,o,s){var l=e.getData(),u=Object(i["N"])(t,(function(t,e,n){var i=l.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),c=[],h=[],d=[];function f(t,e){var n=l.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(u?d.push(Object(r["c"])("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:t,valueType:n.type})):(c.push(t),h.push(n.type)))}return o.length?Object(i["k"])(o,(function(t){f(Object(a["e"])(l,n,t),t)})):Object(i["k"])(t,f),{inlineValues:c,inlineValueTypes:h,blocks:d}}},f72b:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return h}));var i=n("6d8b"),r=n("ec6f"),a=n("07fd"),o=n("0f99"),s=n("04f7"),l=n("d0ce"),u=n("2b17"),c=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,o=this._getUpstreamSourceManagers(),s=!!o.length;if(d(n)){var l=n,u=void 0,c=void 0,h=void 0;if(s){var f=o[0];f.prepareSource(),h=f.getSource(),u=h.data,c=h.sourceFormat,e=[f._getVersionSign()]}else u=l.get("data",!0),c=Object(i["E"])(u)?a["g"]:a["f"],e=[];var p=this._getSourceMetaRawOption()||{},g=h&&h.metaRawOption||{},m=Object(i["P"])(p.seriesLayoutBy,g.seriesLayoutBy)||null,v=Object(i["P"])(p.sourceHeader,g.sourceHeader),y=Object(i["P"])(p.dimensions,g.dimensions),_=m!==g.seriesLayoutBy||!!v!==!!g.sourceHeader||y;t=_?[Object(r["b"])(u,{seriesLayoutBy:m,sourceHeader:v,dimensions:y},c)]:[]}else{var b=n;if(s){var x=this._applyTransform(o);t=x.sourceList,e=x.upstreamSignList}else{var w=b.get("source",!0);t=[Object(r["b"])(w,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,a=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(null!=o){var l="";1!==t.length&&f(l)}var u=[],c=[];return Object(i["k"])(t,(function(t){t.prepareSource();var e=t.getSource(o||0),n="";null==o||e||f(n),u.push(e),c.push(t._getVersionSign())})),a?e=Object(s["a"])(a,u,{datasetIndex:n.componentIndex}):null!=o&&(e=[Object(r["a"])(u[0])]),{sourceList:e,upstreamSignList:c}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=0,r=this._storeList,a=r[i];a||(a=r[i]={});var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];d(this._sourceHost)&&s?o=s._innerGetDataStore(t,e,n):(o=new l["b"],o.initData(new u["a"](e,t.length),t)),a[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(d(t)){var e=Object(o["f"])(t);return e?[e.getSourceManager()]:[]}return Object(i["H"])(Object(o["e"])(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(d(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function h(t){var e=t.option.transform;e&&Object(i["R"])(t.option.transform)}function d(t){return"series"===t.mainType}function f(t){throw new Error(t)}},f876:function(t,e,n){"use strict";n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"e",(function(){return h})),n.d(e,"i",(function(){return p})),n.d(e,"B",(function(){return m})),n.d(e,"y",(function(){return v})),n.d(e,"m",(function(){return y})),n.d(e,"q",(function(){return _})),n.d(e,"l",(function(){return b})),n.d(e,"h",(function(){return x})),n.d(e,"r",(function(){return w})),n.d(e,"n",(function(){return S})),n.d(e,"j",(function(){return T})),n.d(e,"w",(function(){return M})),n.d(e,"f",(function(){return A})),n.d(e,"o",(function(){return C})),n.d(e,"u",(function(){return I})),n.d(e,"z",(function(){return D})),n.d(e,"s",(function(){return L})),n.d(e,"k",(function(){return E})),n.d(e,"x",(function(){return j})),n.d(e,"g",(function(){return P})),n.d(e,"p",(function(){return N})),n.d(e,"v",(function(){return R})),n.d(e,"A",(function(){return k})),n.d(e,"t",(function(){return B}));var i=n("6d8b"),r=n("3842"),a=n("ef59"),o=n("4319"),s=1e3,l=60*s,u=60*l,c=24*u,h=365*c,d={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}"},f="{yyyy}-{MM}-{dd}",p={year:"{yyyy}",month:"{yyyy}-{MM}",day:f,hour:f+" "+d.hour,minute:f+" "+d.minute,second:f+" "+d.second,millisecond:d.none},g=["year","month","day","hour","minute","second","millisecond"],m=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function v(t,e){return t+="","0000".substr(0,e-t.length)+t}function y(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function _(t){return t===y(t)}function b(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function x(t,e,n,i){var s=r["o"](t),l=s[T(n)](),u=s[M(n)]()+1,c=Math.floor((u-1)/3)+1,h=s[A(n)](),d=s["get"+(n?"UTC":"")+"Day"](),f=s[C(n)](),p=(f-1)%12+1,g=s[I(n)](),m=s[D(n)](),y=s[L(n)](),_=i instanceof o["a"]?i:Object(a["d"])(i||a["a"])||Object(a["c"])(),b=_.getModel("time"),x=b.get("month"),w=b.get("monthAbbr"),O=b.get("dayOfWeek"),S=b.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,l%100+"").replace(/{Q}/g,c+"").replace(/{MMMM}/g,x[u-1]).replace(/{MMM}/g,w[u-1]).replace(/{MM}/g,v(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,v(h,2)).replace(/{d}/g,h+"").replace(/{eeee}/g,O[d]).replace(/{ee}/g,S[d]).replace(/{e}/g,d+"").replace(/{HH}/g,v(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,v(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,v(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,v(m,2)).replace(/{s}/g,m+"").replace(/{SSS}/g,v(y,3)).replace(/{S}/g,y+"")}function w(t,e,n,r,a){var o=null;if(i["C"](n))o=n;else if(i["w"](n))o=n(t.value,e,{level:t.level});else{var s=i["m"]({},d);if(t.level>0)for(var l=0;l<g.length;++l)s[g[l]]="{primary|"+s[g[l]]+"}";var u=n?!1===n.inherit?n:i["i"](n,s):s,c=O(t.value,a);if(u[c])o=u[c];else if(u.inherit){var h=m.indexOf(c);for(l=h-1;l>=0;--l)if(u[c]){o=u[c];break}o=o||s.none}if(i["t"](o)){var f=null==t.level?0:t.level>=0?t.level:o.length+t.level;f=Math.min(f,o.length-1),o=o[f]}}return x(new Date(t.value),o,a,r)}function O(t,e){var n=r["o"](t),i=n[M(e)]()+1,a=n[A(e)](),o=n[C(e)](),s=n[I(e)](),l=n[D(e)](),u=n[L(e)](),c=0===u,h=c&&0===l,d=h&&0===s,f=d&&0===o,p=f&&1===a,g=p&&1===i;return g?"year":p?"month":f?"day":d?"hour":h?"minute":c?"second":"millisecond"}function S(t,e,n){var a=i["z"](t)?r["o"](t):t;switch(e=e||O(t,n),e){case"year":return a[T(n)]();case"half-year":return a[M(n)]()>=6?1:0;case"quarter":return Math.floor((a[M(n)]()+1)/4);case"month":return a[M(n)]();case"day":return a[A(n)]();case"half-day":return a[C(n)]()/24;case"hour":return a[C(n)]();case"minute":return a[I(n)]();case"second":return a[D(n)]();case"millisecond":return a[L(n)]()}}function T(t){return t?"getUTCFullYear":"getFullYear"}function M(t){return t?"getUTCMonth":"getMonth"}function A(t){return t?"getUTCDate":"getDate"}function C(t){return t?"getUTCHours":"getHours"}function I(t){return t?"getUTCMinutes":"getMinutes"}function D(t){return t?"getUTCSeconds":"getSeconds"}function L(t){return t?"getUTCMilliseconds":"getMilliseconds"}function E(t){return t?"setUTCFullYear":"setFullYear"}function j(t){return t?"setUTCMonth":"setMonth"}function P(t){return t?"setUTCDate":"setDate"}function N(t){return t?"setUTCHours":"setHours"}function R(t){return t?"setUTCMinutes":"setMinutes"}function k(t){return t?"setUTCSeconds":"setSeconds"}function B(t){return t?"setUTCMilliseconds":"setMilliseconds"}},f934:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return h})),n.d(e,"e",(function(){return d})),n.d(e,"g",(function(){return f})),n.d(e,"i",(function(){return p})),n.d(e,"j",(function(){return g})),n.d(e,"d",(function(){return m})),n.d(e,"h",(function(){return v})),n.d(e,"f",(function(){return y})),n.d(e,"c",(function(){return _}));var i=n("6d8b"),r=n("9850"),a=n("3842"),o=n("eda2"),s=i["k"],l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(t,e,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),f=e.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===t){var g=d.width+(p?-p.x+d.x:0);c=a+g,c>i||l.newline?(a=0,c=g,o+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(p?-p.y+d.y:0);h=o+m,h>r||l.newline?(a+=s+n,o=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===t?a=c+n:o=h+n)}))}var h=c;i["h"](c,"vertical"),i["h"](c,"horizontal");function d(t,e,n){var i=e.width,r=e.height,s=Object(a["p"])(t.left,i),l=Object(a["p"])(t.top,r),u=Object(a["p"])(t.right,i),c=Object(a["p"])(t.bottom,r);return(isNaN(s)||isNaN(parseFloat(t.left)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.right)))&&(u=i),(isNaN(l)||isNaN(parseFloat(t.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.bottom)))&&(c=r),n=o["j"](n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function f(t,e,n){n=o["j"](n||0);var i=e.width,s=e.height,l=Object(a["p"])(t.left,i),u=Object(a["p"])(t.top,s),c=Object(a["p"])(t.right,i),h=Object(a["p"])(t.bottom,s),d=Object(a["p"])(t.width,i),f=Object(a["p"])(t.height,s),p=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(d)&&(d=i-c-g-l),isNaN(f)&&(f=s-h-p-u),null!=m&&(isNaN(d)&&isNaN(f)&&(m>i/s?d=.8*i:f=.8*s),isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=i-c-d-g),isNaN(u)&&(u=s-h-f-p),t.left||t.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g;break}switch(t.top||t.bottom){case"middle":case"center":u=s/2-f/2-n[0];break;case"bottom":u=s-f-p;break}l=l||0,u=u||0,isNaN(d)&&(d=i-g-l-(c||0)),isNaN(f)&&(f=s-p-u-(h||0));var v=new r["a"](l+n[3],u+n[0],d,f);return v.margin=n,v}function p(t,e,n,a,o,s){var l,u=!o||!o.hv||o.hv[0],c=!o||!o.hv||o.hv[1],h=o&&o.boundingMode||"all";if(s=s||t,s.x=t.x,s.y=t.y,!u&&!c)return!1;if("raw"===h)l="group"===t.type?new r["a"](0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var d=t.getLocalTransform();l=l.clone(),l.applyTransform(d)}var p=f(i["i"]({width:l.width,height:l.height},e),n,a),g=u?p.x-l.x:0,m=c?p.y-l.y:0;return"raw"===h?(s.x=g,s.y=m):(s.x+=g,s.y+=m),s===t&&t.markRedraw(),!0}function g(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]}function m(t){var e=t.layoutMode||t.constructor.layoutMode;return i["A"](e)?e:e?{type:e}:null}function v(t,e,n){var r=n&&n.ignoreSize;!i["t"](r)&&(r=[r,r]);var a=l(u[0],0),o=l(u[1],1);function l(n,i){var a={},o=0,l={},u=0,d=2;if(s(n,(function(e){l[e]=t[e]})),s(n,(function(t){c(e,t)&&(a[t]=l[t]=e[t]),h(a,t)&&o++,h(l,t)&&u++})),r[i])return h(e,n[1])?l[n[2]]=null:h(e,n[2])&&(l[n[1]]=null),l;if(u!==d&&o){if(o>=d)return a;for(var f=0;f<n.length;f++){var p=n[f];if(!c(a,p)&&c(t,p)){a[p]=t[p];break}}return a}return l}function c(t,e){return t.hasOwnProperty(e)}function h(t,e){return null!=t[e]&&"auto"!==t[e]}function d(t,e,n){s(t,(function(t){e[t]=n[t]}))}d(u[0],t,a),d(u[1],t,o)}function y(t){return _({},t)}function _(t,e){return e&&t&&s(l,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}},f95e:function(t,e,n){"use strict";n.d(e,"a",(function(){return T}));var i=n("2cf4"),r=n("6d8b"),a=n("21a10"),o=n("6fd3"),s=n("3437"),l=n("5210"),u=n("9850"),c=n("4bc4"),h=n("726e");function d(t,e,n){var i=h["d"].createCanvas(),r=e.getWidth(),a=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=a*n,i}var f=function(t){function e(e,n,a){var o,s=t.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,a=a||i["e"],"string"===typeof e?o=d(e,n,a):r["A"](e)&&(o=e,e=o.id),s.id=e,s.dom=o;var l=o.style;return l&&(r["j"](o),o.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),s.painter=n,s.dpr=a,s}return Object(a["a"])(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=d("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,a=[],o=this.maxRepaintRectCount,s=!1,l=new u["a"](0,0,0,0);function h(t){if(t.isFinite()&&!t.isZero())if(0===a.length){var e=new u["a"](0,0,0,0);e.copy(t),a.push(e)}else{for(var n=!1,i=1/0,r=0,c=0;c<a.length;++c){var h=a[c];if(h.intersect(t)){var d=new u["a"](0,0,0,0);d.copy(h),d.union(t),a[c]=d,n=!0;break}if(s){l.copy(t),l.union(h);var f=t.width*t.height,p=h.width*h.height,g=l.width*l.height,m=g-f-p;m<i&&(i=m,r=c)}}if(s&&(a[r].union(t),n=!0),!n){e=new u["a"](0,0,0,0);e.copy(t),a.push(e)}s||(s=a.length>=o)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var f=t[d];if(f){var p=f.shouldBePainted(n,i,!0,!0),g=f.__isRendered&&(f.__dirty&c["a"]||!p)?f.getPrevPaintRect():null;g&&h(g);var m=p&&(f.__dirty&c["a"]||!f.__isRendered)?f.getPaintRect():null;m&&h(m)}}for(d=this.__prevStartIndex;d<this.__prevEndIndex;++d){f=e[d],p=f.shouldBePainted(n,i,!0,!0);if(f&&(!p||!f.__zr)&&f.__isRendered){g=f.getPrevPaintRect();g&&h(g)}}do{r=!1;for(d=0;d<a.length;)if(a[d].isZero())a.splice(d,1);else{for(var v=d+1;v<a.length;)a[d].intersect(a[v])?(r=!0,a[d].union(a[v]),a.splice(v,1)):v++;d++}}while(r);return this._paintRects=a,a},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,a&&(a.width=t*n,a.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,a=this.ctx,o=i.width,u=i.height;e=e||this.clearColor;var c=this.motionBlur&&!t,h=this.lastFrameAlpha,d=this.dpr,f=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/d,u/d));var p=this.domBack;function g(t,n,i,o){if(a.clearRect(t,n,i,o),e&&"transparent"!==e){var u=void 0;r["x"](e)?(u=e.__canvasGradient||Object(s["a"])(a,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=u):r["y"](e)&&(u=Object(l["c"])(a,e,{dirty:function(){f.setUnpainted(),f.__painter.refresh()}})),a.save(),a.fillStyle=u||e,a.fillRect(t,n,i,o),a.restore()}c&&(a.save(),a.globalAlpha=h,a.drawImage(p,t,n,i,o),a.restore())}!n||c?g(0,0,o,u):n.length&&r["k"](n,(function(t){g(t.x*d,t.y*d,t.width*d,t.height*d)}))},e}(o["a"]),p=f,g=n("98b7"),m=n("22d1"),v=1e5,y=314159,_=.01,b=.001;function x(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function w(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var O=function(){function t(t,e,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=r["m"]({},n||{}),this.dpr=n.devicePixelRatio||i["e"],this._singleCanvas=o,this.root=t;var l=t.style;l&&(r["j"](t),t.innerHTML=""),this.storage=e;var u=this._zlevelList;this._prevDisplayList=[];var c=this._layers;if(o){var h=t,d=h.width,f=h.height;null!=n.width&&(d=n.width),null!=n.height&&(f=n.height),this.dpr=n.devicePixelRatio||1,h.width=d*this.dpr,h.height=f*this.dpr,this._width=d,this._height=f;var g=new p(h,this,this.dpr);g.__builtin__=!0,g.initContext(),c[y]=g,g.zlevel=y,u.push(y),this._domRoot=t}else{this._width=Object(s["b"])(t,0,n),this._height=Object(s["b"])(t,1,n);var m=this._domRoot=w(this._width,this._height);t.appendChild(m)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var a=i[r],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=0===r?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<e;a++){var o=t[a];o.__inHover&&(n||(n=this._hoverlayer=this.getLayer(v)),i||(i=n.ctx,i.save()),Object(l["a"])(i,o,r,a===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(v)},t.prototype.paintOne=function(t,e){Object(l["b"])(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),a=r.finished,o=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),a)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;Object(g["a"])((function(){s._paintList(t,e,n,i)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(y).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var c=!0,h=!1,d=function(r){var s,l=a[r],u=l.ctx,d=o&&l.createRepaintRects(t,e,f._width,f._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),v=l.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,d);else if(p===l.__startIndex){var y=t[p];y.incremental&&y.notClear&&!n||l.clear(!1,v,d)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=p;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(h=!0),i._doPaintEl(r,l,o,e,n,s===l.__endIndex-1),g){var a=Date.now()-m;if(a>15)break}}n.prevElClipPaths&&u.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var b=f.dpr,x=0;x<d.length;++x){var w=d[x];u.save(),u.beginPath(),u.rect(w.x*b,w.y*b,w.width*b,w.height*b),u.clip(),_(w),u.restore()}else u.save(),_(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)},f=this,p=0;p<a.length;p++)d(p);return m["a"].wxa&&r["k"](this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:c,needsRefreshHover:h}},t.prototype._doPaintEl=function(t,e,n,i,r,a){var o=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(Object(l["a"])(o,t,r,a),t.setPrevPaintRect(s))}else Object(l["a"])(o,t,r,a)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=y);var n=this._layers[t];return n||(n=new p("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?r["I"](n,this._layerConfig[t],!0):this._layerConfig[t-_]&&r["I"](n,this._layerConfig[t-_],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,a=this._domRoot,o=null,s=-1;if(!n[t]&&x(e)){if(r>0&&t>i[0]){for(s=0;s<r-1;s++)if(i[s]<t&&i[s+1]>t)break;o=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?a.insertBefore(e.dom,l.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],a=this._layers[r];a.__builtin__&&t.call(e,a,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],a=this._layers[r];a.__builtin__||t.call(e,a,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){s&&(s.__endIndex!==t&&(s.__dirty=!0),s.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a,o,s=null,l=0;for(o=0;o<t.length;o++){i=t[o];var u=i.zlevel,h=void 0;a!==u&&(a=u,l=0),i.incremental?(h=this.getLayer(u+b,this._needsManuallyCompositing),h.incremental=!0,l=1):h=this.getLayer(u+(l>0?_:0),this._needsManuallyCompositing),h.__builtin__||r["G"]("ZLevel "+u+" has been used by unkown layer "+h.id),h!==s&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.incremental?h.__drawIndex=-1:h.__drawIndex=o,e(o),s=h),i.__dirty&c["a"]&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,r["k"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?r["I"](n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+_){var o=this._layers[a];r["I"](o,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(r["r"](n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=Object(s["b"])(r,0,i),e=Object(s["b"])(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var a in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(y).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[y].dom;var e=new p("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),s=0,u=o.length;s<u;s++){var c=o[s];Object(l["a"])(n,c,a,s===u-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),S=O;function T(t){t.registerPainter("canvas",S)}},fadd:function(t,e,n){"use strict";function i(t,e,n){var i;while(t){if(e(t)&&(i=t,n))break;t=t.__hostTarget||t.parent}return i}n.d(e,"a",(function(){return i}))}}]); |