diff --git a/lib/index.js b/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..6da99555496b44795c56a9fd957e7d1883abd258 --- /dev/null +++ b/lib/index.js @@ -0,0 +1,112 @@ +(function(Ma,No){typeof exports=="object"&&typeof module!="undefined"?module.exports=No(require("vue-demi"),require("vue")):typeof define=="function"&&define.amd?define(["vue-demi","vue"],No):(Ma=typeof globalThis!="undefined"?globalThis:Ma||self,Ma["vue-office-pptx"]=No(Ma.VueDemi,Ma.Vue))})(this,function(Ma,No){"use strict";var fg=function(r,e){return fg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},fg(r,e)};function Nu(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");fg(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var It=function(){return It=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1] + + (c) 2009-2016 Stuart Knightley + Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. + + JSZip uses the library pako released under the MIT license : + https://github.com/nodeca/pako/blob/main/LICENSE + */(function(r,e){(function(t){r.exports=t()})(function(){return function t(n,a,i){function o(u,c){if(!a[u]){if(!n[u]){var f=typeof ih=="function"&&ih;if(!c&&f)return f(u,!0);if(s)return s(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var v=a[u]={exports:{}};n[u][0].call(v.exports,function(p){var y=n[u][1][p];return o(y||p)},v,v.exports,t,n,a,i)}return a[u].exports}for(var s=typeof ih=="function"&&ih,l=0;l>2,v=(3&u)<<4|c>>4,p=1>6:64,y=2>4,c=(15&d)<<4|(v=s.indexOf(l.charAt(y++)))>>2,f=(3&v)<<6|(p=s.indexOf(l.charAt(y++))),h[_++]=u,v!==64&&(h[_++]=c),p!==64&&(h[_++]=f);return h}},{"./support":30,"./utils":32}],2:[function(t,n,a){var i=t("./external"),o=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),l=t("./stream/DataLengthProbe");function u(c,f,d,v,p){this.compressedSize=c,this.uncompressedSize=f,this.crc32=d,this.compression=v,this.compressedContent=p}u.prototype={getContentWorker:function(){var c=new o(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),f=this;return c.on("end",function(){if(this.streamInfo.data_length!==f.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),c},getCompressedWorker:function(){return new o(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(c,f,d){return c.pipe(new s).pipe(new l("uncompressedSize")).pipe(f.compressWorker(d)).pipe(new l("compressedSize")).withStreamInfo("compression",f)},n.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,n,a){var i=t("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},a.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,n,a){var i=t("./utils"),o=function(){for(var s,l=[],u=0;u<256;u++){s=u;for(var c=0;c<8;c++)s=1&s?3988292384^s>>>1:s>>>1;l[u]=s}return l}();n.exports=function(s,l){return s!==void 0&&s.length?i.getTypeOf(s)!=="string"?function(u,c,f,d){var v=o,p=d+f;u^=-1;for(var y=d;y>>8^v[255&(u^c[y])];return-1^u}(0|l,s,s.length,0):function(u,c,f,d){var v=o,p=d+f;u^=-1;for(var y=d;y>>8^v[255&(u^c.charCodeAt(y))];return-1^u}(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(t,n,a){a.base64=!1,a.binary=!1,a.dir=!1,a.createFolders=!0,a.date=null,a.compression=null,a.compressionOptions=null,a.comment=null,a.unixPermissions=null,a.dosPermissions=null},{}],6:[function(t,n,a){var i=null;i=typeof Promise!="undefined"?Promise:t("lie"),n.exports={Promise:i}},{lie:37}],7:[function(t,n,a){var i=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",o=t("pako"),s=t("./utils"),l=t("./stream/GenericWorker"),u=i?"uint8array":"array";function c(f,d){l.call(this,"FlateWorker/"+f),this._pako=null,this._pakoAction=f,this._pakoOptions=d,this.meta={}}a.magic="\b\0",s.inherits(c,l),c.prototype.processChunk=function(f){this.meta=f.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(u,f.data),!1)},c.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var f=this;this._pako.onData=function(d){f.push({data:d,meta:f.meta})}},a.compressWorker=function(f){return new c("Deflate",f)},a.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,n,a){function i(v,p){var y,_="";for(y=0;y>>=8;return _}function o(v,p,y,_,g,h){var w,b,S=v.file,A=v.compression,T=h!==u.utf8encode,D=s.transformTo("string",h(S.name)),L=s.transformTo("string",u.utf8encode(S.name)),I=S.comment,P=s.transformTo("string",h(I)),E=s.transformTo("string",u.utf8encode(I)),R=L.length!==S.name.length,M=E.length!==I.length,B="",F="",W="",j=S.dir,H=S.date,K={crc32:0,compressedSize:0,uncompressedSize:0};p&&!y||(K.crc32=v.crc32,K.compressedSize=v.compressedSize,K.uncompressedSize=v.uncompressedSize);var U=0;p&&(U|=8),T||!R&&!M||(U|=2048);var $=0,ut=0;j&&($|=16),g==="UNIX"?(ut=798,$|=function(it,Nt){var Kt=it;return it||(Kt=Nt?16893:33204),(65535&Kt)<<16}(S.unixPermissions,j)):(ut=20,$|=function(it){return 63&(it||0)}(S.dosPermissions)),w=H.getUTCHours(),w<<=6,w|=H.getUTCMinutes(),w<<=5,w|=H.getUTCSeconds()/2,b=H.getUTCFullYear()-1980,b<<=4,b|=H.getUTCMonth()+1,b<<=5,b|=H.getUTCDate(),R&&(F=i(1,1)+i(c(D),4)+L,B+="up"+i(F.length,2)+F),M&&(W=i(1,1)+i(c(P),4)+E,B+="uc"+i(W.length,2)+W);var ot="";return ot+=` +\0`,ot+=i(U,2),ot+=A.magic,ot+=i(w,2),ot+=i(b,2),ot+=i(K.crc32,4),ot+=i(K.compressedSize,4),ot+=i(K.uncompressedSize,4),ot+=i(D.length,2),ot+=i(B.length,2),{fileRecord:f.LOCAL_FILE_HEADER+ot+D+B,dirRecord:f.CENTRAL_FILE_HEADER+i(ut,2)+ot+i(P.length,2)+"\0\0\0\0"+i($,4)+i(_,4)+D+B+P}}var s=t("../utils"),l=t("../stream/GenericWorker"),u=t("../utf8"),c=t("../crc32"),f=t("../signature");function d(v,p,y,_){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=y,this.encodeFileName=_,this.streamFiles=v,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(d,l),d.prototype.push=function(v){var p=v.meta.percent||0,y=this.entriesCount,_=this._sources.length;this.accumulate?this.contentBuffer.push(v):(this.bytesWritten+=v.data.length,l.prototype.push.call(this,{data:v.data,meta:{currentFile:this.currentFile,percent:y?(p+100*(y-_-1))/y:100}}))},d.prototype.openedSource=function(v){this.currentSourceOffset=this.bytesWritten,this.currentFile=v.file.name;var p=this.streamFiles&&!v.file.dir;if(p){var y=o(v,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:y.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(v){this.accumulate=!1;var p=this.streamFiles&&!v.file.dir,y=o(v,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(y.dirRecord),p)this.push({data:function(_){return f.DATA_DESCRIPTOR+i(_.crc32,4)+i(_.compressedSize,4)+i(_.uncompressedSize,4)}(v),meta:{percent:100}});else for(this.push({data:y.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var v=this.bytesWritten,p=0;p=this.index;l--)u=(u<<8)+this.byteAt(l);return this.index+=s,u},readString:function(s){return i.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},n.exports=o},{"../utils":32}],19:[function(t,n,a){var i=t("./Uint8ArrayReader");function o(s){i.call(this,s)}t("../utils").inherits(o,i),o.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,n,a){var i=t("./DataReader");function o(s){i.call(this,s)}t("../utils").inherits(o,i),o.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},o.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},o.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},o.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=o},{"../utils":32,"./DataReader":18}],21:[function(t,n,a){var i=t("./ArrayReader");function o(s){i.call(this,s)}t("../utils").inherits(o,i),o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(t,n,a){var i=t("../utils"),o=t("../support"),s=t("./ArrayReader"),l=t("./StringReader"),u=t("./NodeBufferReader"),c=t("./Uint8ArrayReader");n.exports=function(f){var d=i.getTypeOf(f);return i.checkSupport(d),d!=="string"||o.uint8array?d==="nodebuffer"?new u(f):o.uint8array?new c(i.transformTo("uint8array",f)):new s(i.transformTo("array",f)):new l(f)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,n,a){a.LOCAL_FILE_HEADER="PK",a.CENTRAL_FILE_HEADER="PK",a.CENTRAL_DIRECTORY_END="PK",a.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",a.ZIP64_CENTRAL_DIRECTORY_END="PK",a.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,n,a){var i=t("./GenericWorker"),o=t("../utils");function s(l){i.call(this,"ConvertWorker to "+l),this.destType=l}o.inherits(s,i),s.prototype.processChunk=function(l){this.push({data:o.transformTo(this.destType,l.data),meta:l.meta})},n.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,n,a){var i=t("./GenericWorker"),o=t("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,i),s.prototype.processChunk=function(l){this.streamInfo.crc32=o(l.data,this.streamInfo.crc32||0),this.push(l)},n.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,n,a){var i=t("../utils"),o=t("./GenericWorker");function s(l){o.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}i.inherits(s,o),s.prototype.processChunk=function(l){if(l){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+l.data.length}o.prototype.processChunk.call(this,l)},n.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,n,a){var i=t("../utils"),o=t("./GenericWorker");function s(l){o.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(c){u.dataIsReady=!0,u.data=c,u.max=c&&c.length||0,u.type=i.getTypeOf(c),u.isPaused||u._tickAndRepeat()},function(c){u.error(c)})}i.inherits(s,o),s.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,u);break;case"uint8array":l=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":l=this.data.slice(this.index,u)}return this.index=u,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,n,a){function i(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,s){return this._listeners[o].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,s){if(this._listeners[o])for(var l=0;l "+o:o}},n.exports=i},{}],29:[function(t,n,a){var i=t("../utils"),o=t("./ConvertWorker"),s=t("./GenericWorker"),l=t("../base64"),u=t("../support"),c=t("../external"),f=null;if(u.nodestream)try{f=t("../nodejs/NodejsStreamOutputAdapter")}catch(p){}function d(p,y){return new c.Promise(function(_,g){var h=[],w=p._internalType,b=p._outputType,S=p._mimeType;p.on("data",function(A,T){h.push(A),y&&y(T)}).on("error",function(A){h=[],g(A)}).on("end",function(){try{var A=function(T,D,L){switch(T){case"blob":return i.newBlob(i.transformTo("arraybuffer",D),L);case"base64":return l.encode(D);default:return i.transformTo(T,D)}}(b,function(T,D){var L,I=0,P=null,E=0;for(L=0;L>>6:(_<65536?y[w++]=224|_>>>12:(y[w++]=240|_>>>18,y[w++]=128|_>>>12&63),y[w++]=128|_>>>6&63),y[w++]=128|63&_);return y}(v)},a.utf8decode=function(v){return o.nodebuffer?i.transformTo("nodebuffer",v).toString("utf-8"):function(p){var y,_,g,h,w=p.length,b=new Array(2*w);for(y=_=0;y>10&1023,b[_++]=56320|1023&g)}return b.length!==_&&(b.subarray?b=b.subarray(0,_):b.length=_),i.applyFromCharCode(b)}(v=i.transformTo(o.uint8array?"uint8array":"array",v))},i.inherits(f,l),f.prototype.processChunk=function(v){var p=i.transformTo(o.uint8array?"uint8array":"array",v.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var y=p;(p=new Uint8Array(y.length+this.leftOver.length)).set(this.leftOver,0),p.set(y,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var _=function(h,w){var b;for((w=w||h.length)>h.length&&(w=h.length),b=w-1;0<=b&&(192&h[b])==128;)b--;return b<0||b===0?w:b+u[h[b]]>w?b:w}(p),g=p;_!==p.length&&(o.uint8array?(g=p.subarray(0,_),this.leftOver=p.subarray(_,p.length)):(g=p.slice(0,_),this.leftOver=p.slice(_,p.length))),this.push({data:a.utf8decode(g),meta:v.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=f,i.inherits(d,l),d.prototype.processChunk=function(v){this.push({data:a.utf8encode(v.data),meta:v.meta})},a.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,n,a){var i=t("./support"),o=t("./base64"),s=t("./nodejsUtils"),l=t("./external");function u(y){return y}function c(y,_){for(var g=0;g>8;this.dir=!!(16&this.externalFileAttributes),v==0&&(this.dosPermissions=63&this.externalFileAttributes),v==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var v=i(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=v.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=v.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=v.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=v.readInt(4))}},readExtraFields:function(v){var p,y,_,g=v.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});v.index+4>>6:(v<65536?d[_++]=224|v>>>12:(d[_++]=240|v>>>18,d[_++]=128|v>>>12&63),d[_++]=128|v>>>6&63),d[_++]=128|63&v);return d},a.buf2binstring=function(f){return c(f,f.length)},a.binstring2buf=function(f){for(var d=new i.Buf8(f.length),v=0,p=d.length;v>10&1023,h[p++]=56320|1023&y)}return c(h,p)},a.utf8border=function(f,d){var v;for((d=d||f.length)>f.length&&(d=f.length),v=d-1;0<=v&&(192&f[v])==128;)v--;return v<0||v===0?d:v+l[f[v]]>d?v:d}},{"./common":41}],43:[function(t,n,a){n.exports=function(i,o,s,l){for(var u=65535&i|0,c=i>>>16&65535|0,f=0;s!==0;){for(s-=f=2e3>>1:o>>>1;s[l]=o}return s}();n.exports=function(o,s,l,u){var c=i,f=u+l;o^=-1;for(var d=u;d>>8^c[255&(o^s[d])];return-1^o}},{}],46:[function(t,n,a){var i,o=t("../utils/common"),s=t("./trees"),l=t("./adler32"),u=t("./crc32"),c=t("./messages"),f=0,d=4,v=0,p=-2,y=-1,_=4,g=2,h=8,w=9,b=286,S=30,A=19,T=2*b+1,D=15,L=3,I=258,P=I+L+1,E=42,R=113,M=1,B=2,F=3,W=4;function j(O,st){return O.msg=c[st],st}function H(O){return(O<<1)-(4O.avail_out&&(nt=O.avail_out),nt!==0&&(o.arraySet(O.output,st.pending_buf,st.pending_out,nt,O.next_out),O.next_out+=nt,st.pending_out+=nt,O.total_out+=nt,O.avail_out-=nt,st.pending-=nt,st.pending===0&&(st.pending_out=0))}function $(O,st){s._tr_flush_block(O,0<=O.block_start?O.block_start:-1,O.strstart-O.block_start,st),O.block_start=O.strstart,U(O.strm)}function ut(O,st){O.pending_buf[O.pending++]=st}function ot(O,st){O.pending_buf[O.pending++]=st>>>8&255,O.pending_buf[O.pending++]=255&st}function it(O,st){var nt,X,Z=O.max_chain_length,tt=O.strstart,pt=O.prev_length,vt=O.nice_match,at=O.strstart>O.w_size-P?O.strstart-(O.w_size-P):0,Tt=O.window,Bt=O.w_mask,Dt=O.prev,Xt=O.strstart+I,Ce=Tt[tt+pt-1],ce=Tt[tt+pt];O.prev_length>=O.good_match&&(Z>>=2),vt>O.lookahead&&(vt=O.lookahead);do if(Tt[(nt=st)+pt]===ce&&Tt[nt+pt-1]===Ce&&Tt[nt]===Tt[tt]&&Tt[++nt]===Tt[tt+1]){tt+=2,nt++;do;while(Tt[++tt]===Tt[++nt]&&Tt[++tt]===Tt[++nt]&&Tt[++tt]===Tt[++nt]&&Tt[++tt]===Tt[++nt]&&Tt[++tt]===Tt[++nt]&&Tt[++tt]===Tt[++nt]&&Tt[++tt]===Tt[++nt]&&Tt[++tt]===Tt[++nt]&&ttat&&--Z!=0);return pt<=O.lookahead?pt:O.lookahead}function Nt(O){var st,nt,X,Z,tt,pt,vt,at,Tt,Bt,Dt=O.w_size;do{if(Z=O.window_size-O.lookahead-O.strstart,O.strstart>=Dt+(Dt-P)){for(o.arraySet(O.window,O.window,Dt,Dt,0),O.match_start-=Dt,O.strstart-=Dt,O.block_start-=Dt,st=nt=O.hash_size;X=O.head[--st],O.head[st]=Dt<=X?X-Dt:0,--nt;);for(st=nt=Dt;X=O.prev[--st],O.prev[st]=Dt<=X?X-Dt:0,--nt;);Z+=Dt}if(O.strm.avail_in===0)break;if(pt=O.strm,vt=O.window,at=O.strstart+O.lookahead,Tt=Z,Bt=void 0,Bt=pt.avail_in,Tt=L)for(tt=O.strstart-O.insert,O.ins_h=O.window[tt],O.ins_h=(O.ins_h<=L&&(O.ins_h=(O.ins_h<=L)if(X=s._tr_tally(O,O.strstart-O.match_start,O.match_length-L),O.lookahead-=O.match_length,O.match_length<=O.max_lazy_match&&O.lookahead>=L){for(O.match_length--;O.strstart++,O.ins_h=(O.ins_h<=L&&(O.ins_h=(O.ins_h<=L&&O.match_length<=O.prev_length){for(Z=O.strstart+O.lookahead-L,X=s._tr_tally(O,O.strstart-1-O.prev_match,O.prev_length-L),O.lookahead-=O.prev_length-1,O.prev_length-=2;++O.strstart<=Z&&(O.ins_h=(O.ins_h<O.pending_buf_size-5&&(nt=O.pending_buf_size-5);;){if(O.lookahead<=1){if(Nt(O),O.lookahead===0&&st===f)return M;if(O.lookahead===0)break}O.strstart+=O.lookahead,O.lookahead=0;var X=O.block_start+nt;if((O.strstart===0||O.strstart>=X)&&(O.lookahead=O.strstart-X,O.strstart=X,$(O,!1),O.strm.avail_out===0)||O.strstart-O.block_start>=O.w_size-P&&($(O,!1),O.strm.avail_out===0))return M}return O.insert=0,st===d?($(O,!0),O.strm.avail_out===0?F:W):(O.strstart>O.block_start&&($(O,!1),O.strm.avail_out),M)}),new wt(4,4,8,4,Kt),new wt(4,5,16,8,Kt),new wt(4,6,32,32,Kt),new wt(4,4,16,16,xt),new wt(8,16,32,32,xt),new wt(8,16,128,128,xt),new wt(8,32,128,256,xt),new wt(32,128,258,1024,xt),new wt(32,258,258,4096,xt)],a.deflateInit=function(O,st){return se(O,st,h,15,8,0)},a.deflateInit2=se,a.deflateReset=Pt,a.deflateResetKeep=bt,a.deflateSetHeader=function(O,st){return O&&O.state?O.state.wrap!==2?p:(O.state.gzhead=st,v):p},a.deflate=function(O,st){var nt,X,Z,tt;if(!O||!O.state||5>8&255),ut(X,X.gzhead.time>>16&255),ut(X,X.gzhead.time>>24&255),ut(X,X.level===9?2:2<=X.strategy||X.level<2?4:0),ut(X,255&X.gzhead.os),X.gzhead.extra&&X.gzhead.extra.length&&(ut(X,255&X.gzhead.extra.length),ut(X,X.gzhead.extra.length>>8&255)),X.gzhead.hcrc&&(O.adler=u(O.adler,X.pending_buf,X.pending,0)),X.gzindex=0,X.status=69):(ut(X,0),ut(X,0),ut(X,0),ut(X,0),ut(X,0),ut(X,X.level===9?2:2<=X.strategy||X.level<2?4:0),ut(X,3),X.status=R);else{var pt=h+(X.w_bits-8<<4)<<8;pt|=(2<=X.strategy||X.level<2?0:X.level<6?1:X.level===6?2:3)<<6,X.strstart!==0&&(pt|=32),pt+=31-pt%31,X.status=R,ot(X,pt),X.strstart!==0&&(ot(X,O.adler>>>16),ot(X,65535&O.adler)),O.adler=1}if(X.status===69)if(X.gzhead.extra){for(Z=X.pending;X.gzindex<(65535&X.gzhead.extra.length)&&(X.pending!==X.pending_buf_size||(X.gzhead.hcrc&&X.pending>Z&&(O.adler=u(O.adler,X.pending_buf,X.pending-Z,Z)),U(O),Z=X.pending,X.pending!==X.pending_buf_size));)ut(X,255&X.gzhead.extra[X.gzindex]),X.gzindex++;X.gzhead.hcrc&&X.pending>Z&&(O.adler=u(O.adler,X.pending_buf,X.pending-Z,Z)),X.gzindex===X.gzhead.extra.length&&(X.gzindex=0,X.status=73)}else X.status=73;if(X.status===73)if(X.gzhead.name){Z=X.pending;do{if(X.pending===X.pending_buf_size&&(X.gzhead.hcrc&&X.pending>Z&&(O.adler=u(O.adler,X.pending_buf,X.pending-Z,Z)),U(O),Z=X.pending,X.pending===X.pending_buf_size)){tt=1;break}tt=X.gzindexZ&&(O.adler=u(O.adler,X.pending_buf,X.pending-Z,Z)),tt===0&&(X.gzindex=0,X.status=91)}else X.status=91;if(X.status===91)if(X.gzhead.comment){Z=X.pending;do{if(X.pending===X.pending_buf_size&&(X.gzhead.hcrc&&X.pending>Z&&(O.adler=u(O.adler,X.pending_buf,X.pending-Z,Z)),U(O),Z=X.pending,X.pending===X.pending_buf_size)){tt=1;break}tt=X.gzindexZ&&(O.adler=u(O.adler,X.pending_buf,X.pending-Z,Z)),tt===0&&(X.status=103)}else X.status=103;if(X.status===103&&(X.gzhead.hcrc?(X.pending+2>X.pending_buf_size&&U(O),X.pending+2<=X.pending_buf_size&&(ut(X,255&O.adler),ut(X,O.adler>>8&255),O.adler=0,X.status=R)):X.status=R),X.pending!==0){if(U(O),O.avail_out===0)return X.last_flush=-1,v}else if(O.avail_in===0&&H(st)<=H(nt)&&st!==d)return j(O,-5);if(X.status===666&&O.avail_in!==0)return j(O,-5);if(O.avail_in!==0||X.lookahead!==0||st!==f&&X.status!==666){var vt=X.strategy===2?function(at,Tt){for(var Bt;;){if(at.lookahead===0&&(Nt(at),at.lookahead===0)){if(Tt===f)return M;break}if(at.match_length=0,Bt=s._tr_tally(at,0,at.window[at.strstart]),at.lookahead--,at.strstart++,Bt&&($(at,!1),at.strm.avail_out===0))return M}return at.insert=0,Tt===d?($(at,!0),at.strm.avail_out===0?F:W):at.last_lit&&($(at,!1),at.strm.avail_out===0)?M:B}(X,st):X.strategy===3?function(at,Tt){for(var Bt,Dt,Xt,Ce,ce=at.window;;){if(at.lookahead<=I){if(Nt(at),at.lookahead<=I&&Tt===f)return M;if(at.lookahead===0)break}if(at.match_length=0,at.lookahead>=L&&0at.lookahead&&(at.match_length=at.lookahead)}if(at.match_length>=L?(Bt=s._tr_tally(at,1,at.match_length-L),at.lookahead-=at.match_length,at.strstart+=at.match_length,at.match_length=0):(Bt=s._tr_tally(at,0,at.window[at.strstart]),at.lookahead--,at.strstart++),Bt&&($(at,!1),at.strm.avail_out===0))return M}return at.insert=0,Tt===d?($(at,!0),at.strm.avail_out===0?F:W):at.last_lit&&($(at,!1),at.strm.avail_out===0)?M:B}(X,st):i[X.level].func(X,st);if(vt!==F&&vt!==W||(X.status=666),vt===M||vt===F)return O.avail_out===0&&(X.last_flush=-1),v;if(vt===B&&(st===1?s._tr_align(X):st!==5&&(s._tr_stored_block(X,0,0,!1),st===3&&(K(X.head),X.lookahead===0&&(X.strstart=0,X.block_start=0,X.insert=0))),U(O),O.avail_out===0))return X.last_flush=-1,v}return st!==d?v:X.wrap<=0?1:(X.wrap===2?(ut(X,255&O.adler),ut(X,O.adler>>8&255),ut(X,O.adler>>16&255),ut(X,O.adler>>24&255),ut(X,255&O.total_in),ut(X,O.total_in>>8&255),ut(X,O.total_in>>16&255),ut(X,O.total_in>>24&255)):(ot(X,O.adler>>>16),ot(X,65535&O.adler)),U(O),0=nt.w_size&&(tt===0&&(K(nt.head),nt.strstart=0,nt.block_start=0,nt.insert=0),Tt=new o.Buf8(nt.w_size),o.arraySet(Tt,st,Bt-nt.w_size,nt.w_size,0),st=Tt,Bt=nt.w_size),pt=O.avail_in,vt=O.next_in,at=O.input,O.avail_in=Bt,O.next_in=0,O.input=st,Nt(nt);nt.lookahead>=L;){for(X=nt.strstart,Z=nt.lookahead-(L-1);nt.ins_h=(nt.ins_h<>>=L=D>>>24,w-=L,(L=D>>>16&255)===0)B[c++]=65535&D;else{if(!(16&L)){if(!(64&L)){D=b[(65535&D)+(h&(1<>>=L,w-=L),w<15&&(h+=M[l++]<>>=L=D>>>24,w-=L,!(16&(L=D>>>16&255))){if(!(64&L)){D=S[(65535&D)+(h&(1<>>=L,w-=L,(L=c-f)>3,h&=(1<<(w-=I<<3))-1,i.next_in=l,i.next_out=c,i.avail_in=l>>24&255)+(E>>>8&65280)+((65280&E)<<8)+((255&E)<<24)}function h(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function w(E){var R;return E&&E.state?(R=E.state,E.total_in=E.total_out=R.total=0,E.msg="",R.wrap&&(E.adler=1&R.wrap),R.mode=p,R.last=0,R.havedict=0,R.dmax=32768,R.head=null,R.hold=0,R.bits=0,R.lencode=R.lendyn=new i.Buf32(y),R.distcode=R.distdyn=new i.Buf32(_),R.sane=1,R.back=-1,d):v}function b(E){var R;return E&&E.state?((R=E.state).wsize=0,R.whave=0,R.wnext=0,w(E)):v}function S(E,R){var M,B;return E&&E.state?(B=E.state,R<0?(M=0,R=-R):(M=1+(R>>4),R<48&&(R&=15)),R&&(R<8||15=W.wsize?(i.arraySet(W.window,R,M-W.wsize,W.wsize,0),W.wnext=0,W.whave=W.wsize):(B<(F=W.wsize-W.wnext)&&(F=B),i.arraySet(W.window,R,M-B,F,W.wnext),(B-=F)?(i.arraySet(W.window,R,M-B,B,0),W.wnext=B,W.whave=W.wsize):(W.wnext+=F,W.wnext===W.wsize&&(W.wnext=0),W.whave>>8&255,M.check=s(M.check,tt,2,0),$=U=0,M.mode=2;break}if(M.flags=0,M.head&&(M.head.done=!1),!(1&M.wrap)||(((255&U)<<8)+(U>>8))%31){E.msg="incorrect header check",M.mode=30;break}if((15&U)!=8){E.msg="unknown compression method",M.mode=30;break}if($-=4,O=8+(15&(U>>>=4)),M.wbits===0)M.wbits=O;else if(O>M.wbits){E.msg="invalid window size",M.mode=30;break}M.dmax=1<>8&1),512&M.flags&&(tt[0]=255&U,tt[1]=U>>>8&255,M.check=s(M.check,tt,2,0)),$=U=0,M.mode=3;case 3:for(;$<32;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}M.head&&(M.head.time=U),512&M.flags&&(tt[0]=255&U,tt[1]=U>>>8&255,tt[2]=U>>>16&255,tt[3]=U>>>24&255,M.check=s(M.check,tt,4,0)),$=U=0,M.mode=4;case 4:for(;$<16;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}M.head&&(M.head.xflags=255&U,M.head.os=U>>8),512&M.flags&&(tt[0]=255&U,tt[1]=U>>>8&255,M.check=s(M.check,tt,2,0)),$=U=0,M.mode=5;case 5:if(1024&M.flags){for(;$<16;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}M.length=U,M.head&&(M.head.extra_len=U),512&M.flags&&(tt[0]=255&U,tt[1]=U>>>8&255,M.check=s(M.check,tt,2,0)),$=U=0}else M.head&&(M.head.extra=null);M.mode=6;case 6:if(1024&M.flags&&(H<(it=M.length)&&(it=H),it&&(M.head&&(O=M.head.extra_len-M.length,M.head.extra||(M.head.extra=new Array(M.head.extra_len)),i.arraySet(M.head.extra,B,W,it,O)),512&M.flags&&(M.check=s(M.check,B,it,W)),H-=it,W+=it,M.length-=it),M.length))break t;M.length=0,M.mode=7;case 7:if(2048&M.flags){if(H===0)break t;for(it=0;O=B[W+it++],M.head&&O&&M.length<65536&&(M.head.name+=String.fromCharCode(O)),O&&it>9&1,M.head.done=!0),E.adler=M.check=0,M.mode=12;break;case 10:for(;$<32;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}E.adler=M.check=g(U),$=U=0,M.mode=11;case 11:if(M.havedict===0)return E.next_out=j,E.avail_out=K,E.next_in=W,E.avail_in=H,M.hold=U,M.bits=$,2;E.adler=M.check=1,M.mode=12;case 12:if(R===5||R===6)break t;case 13:if(M.last){U>>>=7&$,$-=7&$,M.mode=27;break}for(;$<3;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}switch(M.last=1&U,$-=1,3&(U>>>=1)){case 0:M.mode=14;break;case 1:if(I(M),M.mode=20,R!==6)break;U>>>=2,$-=2;break t;case 2:M.mode=17;break;case 3:E.msg="invalid block type",M.mode=30}U>>>=2,$-=2;break;case 14:for(U>>>=7&$,$-=7&$;$<32;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}if((65535&U)!=(U>>>16^65535)){E.msg="invalid stored block lengths",M.mode=30;break}if(M.length=65535&U,$=U=0,M.mode=15,R===6)break t;case 15:M.mode=16;case 16:if(it=M.length){if(H>>=5,$-=5,M.ndist=1+(31&U),U>>>=5,$-=5,M.ncode=4+(15&U),U>>>=4,$-=4,286>>=3,$-=3}for(;M.have<19;)M.lens[pt[M.have++]]=0;if(M.lencode=M.lendyn,M.lenbits=7,nt={bits:M.lenbits},st=u(0,M.lens,0,19,M.lencode,0,M.work,nt),M.lenbits=nt.bits,st){E.msg="invalid code lengths set",M.mode=30;break}M.have=0,M.mode=19;case 19:for(;M.have>>16&255,Ot=65535&Z,!((xt=Z>>>24)<=$);){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}if(Ot<16)U>>>=xt,$-=xt,M.lens[M.have++]=Ot;else{if(Ot===16){for(X=xt+2;$>>=xt,$-=xt,M.have===0){E.msg="invalid bit length repeat",M.mode=30;break}O=M.lens[M.have-1],it=3+(3&U),U>>>=2,$-=2}else if(Ot===17){for(X=xt+3;$>>=xt)),U>>>=3,$-=3}else{for(X=xt+7;$>>=xt)),U>>>=7,$-=7}if(M.have+it>M.nlen+M.ndist){E.msg="invalid bit length repeat",M.mode=30;break}for(;it--;)M.lens[M.have++]=O}}if(M.mode===30)break;if(M.lens[256]===0){E.msg="invalid code -- missing end-of-block",M.mode=30;break}if(M.lenbits=9,nt={bits:M.lenbits},st=u(c,M.lens,0,M.nlen,M.lencode,0,M.work,nt),M.lenbits=nt.bits,st){E.msg="invalid literal/lengths set",M.mode=30;break}if(M.distbits=6,M.distcode=M.distdyn,nt={bits:M.distbits},st=u(f,M.lens,M.nlen,M.ndist,M.distcode,0,M.work,nt),M.distbits=nt.bits,st){E.msg="invalid distances set",M.mode=30;break}if(M.mode=20,R===6)break t;case 20:M.mode=21;case 21:if(6<=H&&258<=K){E.next_out=j,E.avail_out=K,E.next_in=W,E.avail_in=H,M.hold=U,M.bits=$,l(E,ot),j=E.next_out,F=E.output,K=E.avail_out,W=E.next_in,B=E.input,H=E.avail_in,U=M.hold,$=M.bits,M.mode===12&&(M.back=-1);break}for(M.back=0;wt=(Z=M.lencode[U&(1<>>16&255,Ot=65535&Z,!((xt=Z>>>24)<=$);){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}if(wt&&!(240&wt)){for(bt=xt,Pt=wt,se=Ot;wt=(Z=M.lencode[se+((U&(1<>bt)])>>>16&255,Ot=65535&Z,!(bt+(xt=Z>>>24)<=$);){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}U>>>=bt,$-=bt,M.back+=bt}if(U>>>=xt,$-=xt,M.back+=xt,M.length=Ot,wt===0){M.mode=26;break}if(32&wt){M.back=-1,M.mode=12;break}if(64&wt){E.msg="invalid literal/length code",M.mode=30;break}M.extra=15&wt,M.mode=22;case 22:if(M.extra){for(X=M.extra;$>>=M.extra,$-=M.extra,M.back+=M.extra}M.was=M.length,M.mode=23;case 23:for(;wt=(Z=M.distcode[U&(1<>>16&255,Ot=65535&Z,!((xt=Z>>>24)<=$);){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}if(!(240&wt)){for(bt=xt,Pt=wt,se=Ot;wt=(Z=M.distcode[se+((U&(1<>bt)])>>>16&255,Ot=65535&Z,!(bt+(xt=Z>>>24)<=$);){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}U>>>=bt,$-=bt,M.back+=bt}if(U>>>=xt,$-=xt,M.back+=xt,64&wt){E.msg="invalid distance code",M.mode=30;break}M.offset=Ot,M.extra=15&wt,M.mode=24;case 24:if(M.extra){for(X=M.extra;$>>=M.extra,$-=M.extra,M.back+=M.extra}if(M.offset>M.dmax){E.msg="invalid distance too far back",M.mode=30;break}M.mode=25;case 25:if(K===0)break t;if(it=ot-K,M.offset>it){if((it=M.offset-it)>M.whave&&M.sane){E.msg="invalid distance too far back",M.mode=30;break}Nt=it>M.wnext?(it-=M.wnext,M.wsize-it):M.wnext-it,it>M.length&&(it=M.length),Kt=M.window}else Kt=F,Nt=j-M.offset,it=M.length;for(KT?(L=Nt[Kt+_[R]],$[ut+_[R]]):(L=96,0),h=1<>j)+(w-=h)]=D<<24|L<<16|I|0,w!==0;);for(h=1<>=1;if(h!==0?(U&=h-1,U+=h):U=0,R++,--ot[E]==0){if(E===B)break;E=f[d+_[R]]}if(F>>7)]}function ut(Z,tt){Z.pending_buf[Z.pending++]=255&tt,Z.pending_buf[Z.pending++]=tt>>>8&255}function ot(Z,tt,pt){Z.bi_valid>g-pt?(Z.bi_buf|=tt<>g-Z.bi_valid,Z.bi_valid+=pt-g):(Z.bi_buf|=tt<>>=1,pt<<=1,0<--tt;);return pt>>>1}function Kt(Z,tt,pt){var vt,at,Tt=new Array(_+1),Bt=0;for(vt=1;vt<=_;vt++)Tt[vt]=Bt=Bt+pt[vt-1]<<1;for(at=0;at<=tt;at++){var Dt=Z[2*at+1];Dt!==0&&(Z[2*at]=Nt(Tt[Dt]++,Dt))}}function xt(Z){var tt;for(tt=0;tt>1;1<=pt;pt--)bt(Z,Tt,pt);for(at=Xt;pt=Z.heap[1],Z.heap[1]=Z.heap[Z.heap_len--],bt(Z,Tt,1),vt=Z.heap[1],Z.heap[--Z.heap_max]=pt,Z.heap[--Z.heap_max]=vt,Tt[2*at]=Tt[2*pt]+Tt[2*vt],Z.depth[at]=(Z.depth[pt]>=Z.depth[vt]?Z.depth[pt]:Z.depth[vt])+1,Tt[2*pt+1]=Tt[2*vt+1]=at,Z.heap[1]=at++,bt(Z,Tt,1),2<=Z.heap_len;);Z.heap[--Z.heap_max]=Z.heap[1],function(ce,vr){var Tn,Cr,Cn,Fe,ta,Aa,Rr=vr.dyn_tree,ei=vr.max_code,Ks=vr.stat_desc.static_tree,xe=vr.stat_desc.has_stree,lr=vr.stat_desc.extra_bits,Hf=vr.stat_desc.extra_base,To=vr.stat_desc.max_length,wu=0;for(Fe=0;Fe<=_;Fe++)ce.bl_count[Fe]=0;for(Rr[2*ce.heap[ce.heap_max]+1]=0,Tn=ce.heap_max+1;Tn>=7;at>>=1)if(1&Ce&&Dt.dyn_ltree[2*Xt]!==0)return o;if(Dt.dyn_ltree[18]!==0||Dt.dyn_ltree[20]!==0||Dt.dyn_ltree[26]!==0)return s;for(Xt=32;Xt>>3,(Tt=Z.static_len+3+7>>>3)<=at&&(at=Tt)):at=Tt=pt+5,pt+4<=at&&tt!==-1?X(Z,tt,pt,vt):Z.strategy===4||Tt===at?(ot(Z,2+(vt?1:0),3),Pt(Z,P,E)):(ot(Z,4+(vt?1:0),3),function(Dt,Xt,Ce,ce){var vr;for(ot(Dt,Xt-257,5),ot(Dt,Ce-1,5),ot(Dt,ce-4,4),vr=0;vr>>8&255,Z.pending_buf[Z.d_buf+2*Z.last_lit+1]=255&tt,Z.pending_buf[Z.l_buf+Z.last_lit]=255&pt,Z.last_lit++,tt===0?Z.dyn_ltree[2*pt]++:(Z.matches++,tt--,Z.dyn_ltree[2*(M[pt]+f+1)]++,Z.dyn_dtree[2*$(tt)]++),Z.last_lit===Z.lit_bufsize-1},a._tr_align=function(Z){ot(Z,2,3),it(Z,w,P),function(tt){tt.bi_valid===16?(ut(tt,tt.bi_buf),tt.bi_buf=0,tt.bi_valid=0):8<=tt.bi_valid&&(tt.pending_buf[tt.pending++]=255&tt.bi_buf,tt.bi_buf>>=8,tt.bi_valid-=8)}(Z)}},{"../utils/common":41}],53:[function(t,n,a){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,n,a){(function(i){(function(o,s){if(!o.setImmediate){var l,u,c,f,d=1,v={},p=!1,y=o.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(o);_=_&&_.setTimeout?_:o,l={}.toString.call(o.process)==="[object process]"?function(b){process.nextTick(function(){h(b)})}:function(){if(o.postMessage&&!o.importScripts){var b=!0,S=o.onmessage;return o.onmessage=function(){b=!1},o.postMessage("","*"),o.onmessage=S,b}}()?(f="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),function(b){o.postMessage(f+b,"*")}):o.MessageChannel?((c=new MessageChannel).port1.onmessage=function(b){h(b.data)},function(b){c.port2.postMessage(b)}):y&&"onreadystatechange"in y.createElement("script")?(u=y.documentElement,function(b){var S=y.createElement("script");S.onreadystatechange=function(){h(b),S.onreadystatechange=null,u.removeChild(S),S=null},u.appendChild(S)}):function(b){setTimeout(h,0,b)},_.setImmediate=function(b){typeof b!="function"&&(b=new Function(""+b));for(var S=new Array(arguments.length-1),A=0;A + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */oh.exports,function(r,e){(function(){var t,n="4.17.21",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,d=2,v=4,p=1,y=2,_=1,g=2,h=4,w=8,b=16,S=32,A=64,T=128,D=256,L=512,I=30,P="...",E=800,R=16,M=1,B=2,F=3,W=1/0,j=9007199254740991,H=17976931348623157e292,K=NaN,U=4294967295,$=U-1,ut=U>>>1,ot=[["ary",T],["bind",_],["bindKey",g],["curry",w],["curryRight",b],["flip",L],["partial",S],["partialRight",A],["rearg",D]],it="[object Arguments]",Nt="[object Array]",Kt="[object AsyncFunction]",xt="[object Boolean]",wt="[object Date]",Ot="[object DOMException]",bt="[object Error]",Pt="[object Function]",se="[object GeneratorFunction]",O="[object Map]",st="[object Number]",nt="[object Null]",X="[object Object]",Z="[object Promise]",tt="[object Proxy]",pt="[object RegExp]",vt="[object Set]",at="[object String]",Tt="[object Symbol]",Bt="[object Undefined]",Dt="[object WeakMap]",Xt="[object WeakSet]",Ce="[object ArrayBuffer]",ce="[object DataView]",vr="[object Float32Array]",Tn="[object Float64Array]",Cr="[object Int8Array]",Cn="[object Int16Array]",Fe="[object Int32Array]",ta="[object Uint8Array]",Aa="[object Uint8ClampedArray]",Rr="[object Uint16Array]",ei="[object Uint32Array]",Ks=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,lr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hf=/&(?:amp|lt|gt|quot|#39);/g,To=/[&<>"']/g,wu=RegExp(Hf.source),sJ=RegExp(To.source),lJ=/<%-([\s\S]+?)%>/g,uJ=/<%([\s\S]+?)%>/g,uN=/<%=([\s\S]+?)%>/g,cJ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fJ=/^\w*$/,hJ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hw=/[\\^$.*+?()[\]{}|]/g,vJ=RegExp(Hw.source),Uw=/^\s+/,dJ=/\s/,pJ=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gJ=/\{\n\/\* \[wrapped with (.+)\] \*/,yJ=/,? & /,mJ=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,_J=/[()=,{}\[\]\/\s]/,wJ=/\\(\\)?/g,bJ=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cN=/\w*$/,xJ=/^[-+]0x[0-9a-f]+$/i,SJ=/^0b[01]+$/i,AJ=/^\[object .+?Constructor\]$/,TJ=/^0o[0-7]+$/i,CJ=/^(?:0|[1-9]\d*)$/,DJ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sp=/($^)/,LJ=/['\n\r\u2028\u2029\\]/g,Ap="\\ud800-\\udfff",MJ="\\u0300-\\u036f",IJ="\\ufe20-\\ufe2f",EJ="\\u20d0-\\u20ff",fN=MJ+IJ+EJ,hN="\\u2700-\\u27bf",vN="a-z\\xdf-\\xf6\\xf8-\\xff",PJ="\\xac\\xb1\\xd7\\xf7",kJ="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",RJ="\\u2000-\\u206f",NJ=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dN="A-Z\\xc0-\\xd6\\xd8-\\xde",pN="\\ufe0e\\ufe0f",gN=PJ+kJ+RJ+NJ,Zw="['’]",OJ="["+Ap+"]",yN="["+gN+"]",Tp="["+fN+"]",mN="\\d+",BJ="["+hN+"]",_N="["+vN+"]",wN="[^"+Ap+gN+mN+hN+vN+dN+"]",Yw="\\ud83c[\\udffb-\\udfff]",zJ="(?:"+Tp+"|"+Yw+")",bN="[^"+Ap+"]",Xw="(?:\\ud83c[\\udde6-\\uddff]){2}",jw="[\\ud800-\\udbff][\\udc00-\\udfff]",bu="["+dN+"]",xN="\\u200d",SN="(?:"+_N+"|"+wN+")",VJ="(?:"+bu+"|"+wN+")",AN="(?:"+Zw+"(?:d|ll|m|re|s|t|ve))?",TN="(?:"+Zw+"(?:D|LL|M|RE|S|T|VE))?",CN=zJ+"?",DN="["+pN+"]?",FJ="(?:"+xN+"(?:"+[bN,Xw,jw].join("|")+")"+DN+CN+")*",GJ="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",WJ="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",LN=DN+CN+FJ,HJ="(?:"+[BJ,Xw,jw].join("|")+")"+LN,UJ="(?:"+[bN+Tp+"?",Tp,Xw,jw,OJ].join("|")+")",ZJ=RegExp(Zw,"g"),YJ=RegExp(Tp,"g"),$w=RegExp(Yw+"(?="+Yw+")|"+UJ+LN,"g"),XJ=RegExp([bu+"?"+_N+"+"+AN+"(?="+[yN,bu,"$"].join("|")+")",VJ+"+"+TN+"(?="+[yN,bu+SN,"$"].join("|")+")",bu+"?"+SN+"+"+AN,bu+"+"+TN,WJ,GJ,mN,HJ].join("|"),"g"),jJ=RegExp("["+xN+Ap+fN+pN+"]"),$J=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qJ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],KJ=-1,je={};je[vr]=je[Tn]=je[Cr]=je[Cn]=je[Fe]=je[ta]=je[Aa]=je[Rr]=je[ei]=!0,je[it]=je[Nt]=je[Ce]=je[xt]=je[ce]=je[wt]=je[bt]=je[Pt]=je[O]=je[st]=je[X]=je[pt]=je[vt]=je[at]=je[Dt]=!1;var Ze={};Ze[it]=Ze[Nt]=Ze[Ce]=Ze[ce]=Ze[xt]=Ze[wt]=Ze[vr]=Ze[Tn]=Ze[Cr]=Ze[Cn]=Ze[Fe]=Ze[O]=Ze[st]=Ze[X]=Ze[pt]=Ze[vt]=Ze[at]=Ze[Tt]=Ze[ta]=Ze[Aa]=Ze[Rr]=Ze[ei]=!0,Ze[bt]=Ze[Pt]=Ze[Dt]=!1;var QJ={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},JJ={"&":"&","<":"<",">":">",'"':""","'":"'"},ttt={"&":"&","<":"<",">":">",""":'"',"'":"'"},ett={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rtt=parseFloat,ntt=parseInt,MN=typeof ii=="object"&&ii&&ii.Object===Object&&ii,att=typeof self=="object"&&self&&self.Object===Object&&self,Nr=MN||att||Function("return this")(),qw=e&&!e.nodeType&&e,Qs=qw&&!0&&r&&!r.nodeType&&r,IN=Qs&&Qs.exports===qw,Kw=IN&&MN.process,ea=function(){try{var et=Qs&&Qs.require&&Qs.require("util").types;return et||Kw&&Kw.binding&&Kw.binding("util")}catch(dt){}}(),EN=ea&&ea.isArrayBuffer,PN=ea&&ea.isDate,kN=ea&&ea.isMap,RN=ea&&ea.isRegExp,NN=ea&&ea.isSet,ON=ea&&ea.isTypedArray;function Dn(et,dt,ct){switch(ct.length){case 0:return et.call(dt);case 1:return et.call(dt,ct[0]);case 2:return et.call(dt,ct[0],ct[1]);case 3:return et.call(dt,ct[0],ct[1],ct[2])}return et.apply(dt,ct)}function itt(et,dt,ct,Gt){for(var fe=-1,Re=et==null?0:et.length;++fe-1}function Qw(et,dt,ct){for(var Gt=-1,fe=et==null?0:et.length;++Gt-1;);return ct}function UN(et,dt){for(var ct=et.length;ct--&&xu(dt,et[ct],0)>-1;);return ct}function dtt(et,dt){for(var ct=et.length,Gt=0;ct--;)et[ct]===dt&&++Gt;return Gt}var ptt=rb(QJ),gtt=rb(JJ);function ytt(et){return"\\"+ett[et]}function mtt(et,dt){return et==null?t:et[dt]}function Su(et){return jJ.test(et)}function _tt(et){return $J.test(et)}function wtt(et){for(var dt,ct=[];!(dt=et.next()).done;)ct.push(dt.value);return ct}function ob(et){var dt=-1,ct=Array(et.size);return et.forEach(function(Gt,fe){ct[++dt]=[fe,Gt]}),ct}function ZN(et,dt){return function(ct){return et(dt(ct))}}function Lo(et,dt){for(var ct=-1,Gt=et.length,fe=0,Re=[];++ct-1}function set(m,x){var C=this.__data__,k=Hp(C,m);return k<0?(++this.size,C.push([m,x])):C[k][1]=x,this}Pi.prototype.clear=net,Pi.prototype.delete=aet,Pi.prototype.get=iet,Pi.prototype.has=oet,Pi.prototype.set=set;function ki(m){var x=-1,C=m==null?0:m.length;for(this.clear();++x=x?m:x)),m}function ia(m,x,C,k,z,G){var q,Q=x&f,rt=x&d,yt=x&v;if(C&&(q=z?C(m,k,z,G):C(m)),q!==t)return q;if(!Qe(m))return m;var _t=he(m);if(_t){if(q=hrt(m),!Q)return dn(m,q)}else{var St=Zr(m),kt=St==Pt||St==se;if(Ro(m))return DO(m,Q);if(St==X||St==it||kt&&!z){if(q=rt||kt?{}:YO(m),!Q)return rt?ert(m,Aet(q,m)):trt(m,nO(q,m))}else{if(!Ze[St])return z?m:{};q=vrt(m,St,Q)}}G||(G=new Ca);var Yt=G.get(m);if(Yt)return Yt;G.set(m,q),b5(m)?m.forEach(function(ne){q.add(ia(ne,x,C,ne,m,G))}):_5(m)&&m.forEach(function(ne,Se){q.set(Se,ia(ne,x,C,Se,m,G))});var re=yt?rt?Pb:Eb:rt?gn:Dr,me=_t?t:re(m);return ra(me||m,function(ne,Se){me&&(Se=ne,ne=m[Se]),qf(q,Se,ia(ne,x,C,Se,m,G))}),q}function Tet(m){var x=Dr(m);return function(C){return aO(C,m,x)}}function aO(m,x,C){var k=C.length;if(m==null)return!k;for(m=He(m);k--;){var z=C[k],G=x[z],q=m[z];if(q===t&&!(z in m)||!G(q))return!1}return!0}function iO(m,x,C){if(typeof m!="function")throw new na(o);return nh(function(){m.apply(t,C)},x)}function Kf(m,x,C,k){var z=-1,G=Cp,q=!0,Q=m.length,rt=[],yt=x.length;if(!Q)return rt;C&&(x=$e(x,Ln(C))),k?(G=Qw,q=!1):x.length>=a&&(G=Uf,q=!1,x=new el(x));t:for(;++zz?0:z+C),k=k===t||k>z?z:ge(k),k<0&&(k+=z),k=C>k?0:S5(k);C0&&C(Q)?x>1?Or(Q,x-1,C,k,z):Do(z,Q):k||(z[z.length]=Q)}return z}var vb=kO(),lO=kO(!0);function ri(m,x){return m&&vb(m,x,Dr)}function db(m,x){return m&&lO(m,x,Dr)}function Zp(m,x){return Co(x,function(C){return zi(m[C])})}function nl(m,x){x=Po(x,m);for(var C=0,k=x.length;m!=null&&Cx}function Let(m,x){return m!=null&&Ge.call(m,x)}function Met(m,x){return m!=null&&x in He(m)}function Iet(m,x,C){return m>=Ur(x,C)&&m=120&&_t.length>=120)?new el(q&&_t):t}_t=m[0];var St=-1,kt=Q[0];t:for(;++St-1;)Q!==m&&Op.call(Q,rt,1),Op.call(m,rt,1);return m}function _O(m,x){for(var C=m?x.length:0,k=C-1;C--;){var z=x[C];if(C==k||z!==G){var G=z;Bi(z)?Op.call(m,z,1):Ab(m,z)}}return m}function bb(m,x){return m+Vp(JN()*(x-m+1))}function Het(m,x,C,k){for(var z=-1,G=Sr(zp((x-m)/(C||1)),0),q=ct(G);G--;)q[k?G:++z]=m,m+=C;return q}function xb(m,x){var C="";if(!m||x<1||x>j)return C;do x%2&&(C+=m),x=Vp(x/2),x&&(m+=m);while(x);return C}function we(m,x){return Vb($O(m,x,yn),m+"")}function Uet(m){return rO(Ru(m))}function Zet(m,x){var C=Ru(m);return rg(C,rl(x,0,C.length))}function th(m,x,C,k){if(!Qe(m))return m;x=Po(x,m);for(var z=-1,G=x.length,q=G-1,Q=m;Q!=null&&++zz?0:z+x),C=C>z?z:C,C<0&&(C+=z),z=x>C?0:C-x>>>0,x>>>=0;for(var G=ct(z);++k>>1,q=m[G];q!==null&&!In(q)&&(C?q<=x:q=a){var yt=x?null:irt(m);if(yt)return Lp(yt);q=!1,z=Uf,rt=new el}else rt=x?[]:Q;t:for(;++k=k?m:oa(m,x,C)}var CO=Ntt||function(m){return Nr.clearTimeout(m)};function DO(m,x){if(x)return m.slice();var C=m.length,k=jN?jN(C):new m.constructor(C);return m.copy(k),k}function Lb(m){var x=new m.constructor(m.byteLength);return new Rp(x).set(new Rp(m)),x}function qet(m,x){var C=x?Lb(m.buffer):m.buffer;return new m.constructor(C,m.byteOffset,m.byteLength)}function Ket(m){var x=new m.constructor(m.source,cN.exec(m));return x.lastIndex=m.lastIndex,x}function Qet(m){return $f?He($f.call(m)):{}}function LO(m,x){var C=x?Lb(m.buffer):m.buffer;return new m.constructor(C,m.byteOffset,m.length)}function MO(m,x){if(m!==x){var C=m!==t,k=m===null,z=m===m,G=In(m),q=x!==t,Q=x===null,rt=x===x,yt=In(x);if(!Q&&!yt&&!G&&m>x||G&&q&&rt&&!Q&&!yt||k&&q&&rt||!C&&rt||!z)return 1;if(!k&&!G&&!yt&&m=Q)return rt;var yt=C[k];return rt*(yt=="desc"?-1:1)}}return m.index-x.index}function IO(m,x,C,k){for(var z=-1,G=m.length,q=C.length,Q=-1,rt=x.length,yt=Sr(G-q,0),_t=ct(rt+yt),St=!k;++Q1?C[z-1]:t,q=z>2?C[2]:t;for(G=m.length>3&&typeof G=="function"?(z--,G):t,q&&sn(C[0],C[1],q)&&(G=z<3?t:G,z=1),x=He(x);++k-1?z[G?x[q]:q]:t}}function OO(m){return Oi(function(x){var C=x.length,k=C,z=aa.prototype.thru;for(m&&x.reverse();k--;){var G=x[k];if(typeof G!="function")throw new na(o);if(z&&!q&&tg(G)=="wrapper")var q=new aa([],!0)}for(k=q?k:C;++k1&&Ee.reverse(),_t&&rtQ))return!1;var yt=G.get(m),_t=G.get(x);if(yt&&_t)return yt==x&&_t==m;var St=-1,kt=!0,Yt=C&y?new el:t;for(G.set(m,x),G.set(x,m);++St1?"& ":"")+x[k],x=x.join(C>2?", ":" "),m.replace(pJ,`{ +/* [wrapped with `+x+`] */ +`)}function prt(m){return he(m)||ol(m)||!!(KN&&m&&m[KN])}function Bi(m,x){var C=typeof m;return x=x==null?j:x,!!x&&(C=="number"||C!="symbol"&&CJ.test(m))&&m>-1&&m%1==0&&m0){if(++x>=E)return arguments[0]}else x=0;return m.apply(t,arguments)}}function rg(m,x){var C=-1,k=m.length,z=k-1;for(x=x===t?k:x;++C1?m[x-1]:t;return C=typeof C=="function"?(m.pop(),C):t,s5(m,C)});function l5(m){var x=V(m);return x.__chain__=!0,x}function Cnt(m,x){return x(m),m}function ng(m,x){return x(m)}var Dnt=Oi(function(m){var x=m.length,C=x?m[0]:0,k=this.__wrapped__,z=function(G){return hb(G,m)};return x>1||this.__actions__.length||!(k instanceof De)||!Bi(C)?this.thru(z):(k=k.slice(C,+C+(x?1:0)),k.__actions__.push({func:ng,args:[z],thisArg:t}),new aa(k,this.__chain__).thru(function(G){return x&&!G.length&&G.push(t),G}))});function Lnt(){return l5(this)}function Mnt(){return new aa(this.value(),this.__chain__)}function Int(){this.__values__===t&&(this.__values__=x5(this.value()));var m=this.__index__>=this.__values__.length,x=m?t:this.__values__[this.__index__++];return{done:m,value:x}}function Ent(){return this}function Pnt(m){for(var x,C=this;C instanceof Wp;){var k=e5(C);k.__index__=0,k.__values__=t,x?z.__wrapped__=k:x=k;var z=k;C=C.__wrapped__}return z.__wrapped__=m,x}function knt(){var m=this.__wrapped__;if(m instanceof De){var x=m;return this.__actions__.length&&(x=new De(this)),x=x.reverse(),x.__actions__.push({func:ng,args:[Fb],thisArg:t}),new aa(x,this.__chain__)}return this.thru(Fb)}function Rnt(){return AO(this.__wrapped__,this.__actions__)}var Nnt=$p(function(m,x,C){Ge.call(m,C)?++m[C]:Ri(m,C,1)});function Ont(m,x,C){var k=he(m)?BN:Cet;return C&&sn(m,x,C)&&(x=t),k(m,ee(x,3))}function Bnt(m,x){var C=he(m)?Co:sO;return C(m,ee(x,3))}var znt=NO(r5),Vnt=NO(n5);function Fnt(m,x){return Or(ag(m,x),1)}function Gnt(m,x){return Or(ag(m,x),W)}function Wnt(m,x,C){return C=C===t?1:ge(C),Or(ag(m,x),C)}function u5(m,x){var C=he(m)?ra:Io;return C(m,ee(x,3))}function c5(m,x){var C=he(m)?ott:oO;return C(m,ee(x,3))}var Hnt=$p(function(m,x,C){Ge.call(m,C)?m[C].push(x):Ri(m,C,[x])});function Unt(m,x,C,k){m=pn(m)?m:Ru(m),C=C&&!k?ge(C):0;var z=m.length;return C<0&&(C=Sr(z+C,0)),ug(m)?C<=z&&m.indexOf(x,C)>-1:!!z&&xu(m,x,C)>-1}var Znt=we(function(m,x,C){var k=-1,z=typeof x=="function",G=pn(m)?ct(m.length):[];return Io(m,function(q){G[++k]=z?Dn(x,q,C):Qf(q,x,C)}),G}),Ynt=$p(function(m,x,C){Ri(m,C,x)});function ag(m,x){var C=he(m)?$e:vO;return C(m,ee(x,3))}function Xnt(m,x,C,k){return m==null?[]:(he(x)||(x=x==null?[]:[x]),C=k?t:C,he(C)||(C=C==null?[]:[C]),yO(m,x,C))}var jnt=$p(function(m,x,C){m[C?0:1].push(x)},function(){return[[],[]]});function $nt(m,x,C){var k=he(m)?Jw:GN,z=arguments.length<3;return k(m,ee(x,4),C,z,Io)}function qnt(m,x,C){var k=he(m)?stt:GN,z=arguments.length<3;return k(m,ee(x,4),C,z,oO)}function Knt(m,x){var C=he(m)?Co:sO;return C(m,sg(ee(x,3)))}function Qnt(m){var x=he(m)?rO:Uet;return x(m)}function Jnt(m,x,C){(C?sn(m,x,C):x===t)?x=1:x=ge(x);var k=he(m)?bet:Zet;return k(m,x)}function tat(m){var x=he(m)?xet:Xet;return x(m)}function eat(m){if(m==null)return 0;if(pn(m))return ug(m)?Au(m):m.length;var x=Zr(m);return x==O||x==vt?m.size:mb(m).length}function rat(m,x,C){var k=he(m)?tb:jet;return C&&sn(m,x,C)&&(x=t),k(m,ee(x,3))}var nat=we(function(m,x){if(m==null)return[];var C=x.length;return C>1&&sn(m,x[0],x[1])?x=[]:C>2&&sn(x[0],x[1],x[2])&&(x=[x[0]]),yO(m,Or(x,1),[])}),ig=Ott||function(){return Nr.Date.now()};function aat(m,x){if(typeof x!="function")throw new na(o);return m=ge(m),function(){if(--m<1)return x.apply(this,arguments)}}function f5(m,x,C){return x=C?t:x,x=m&&x==null?m.length:x,Ni(m,T,t,t,t,t,x)}function h5(m,x){var C;if(typeof x!="function")throw new na(o);return m=ge(m),function(){return--m>0&&(C=x.apply(this,arguments)),m<=1&&(x=t),C}}var Wb=we(function(m,x,C){var k=_;if(C.length){var z=Lo(C,Pu(Wb));k|=S}return Ni(m,k,x,C,z)}),v5=we(function(m,x,C){var k=_|g;if(C.length){var z=Lo(C,Pu(v5));k|=S}return Ni(x,k,m,C,z)});function d5(m,x,C){x=C?t:x;var k=Ni(m,w,t,t,t,t,t,x);return k.placeholder=d5.placeholder,k}function p5(m,x,C){x=C?t:x;var k=Ni(m,b,t,t,t,t,t,x);return k.placeholder=p5.placeholder,k}function g5(m,x,C){var k,z,G,q,Q,rt,yt=0,_t=!1,St=!1,kt=!0;if(typeof m!="function")throw new na(o);x=la(x)||0,Qe(C)&&(_t=!!C.leading,St="maxWait"in C,G=St?Sr(la(C.maxWait)||0,x):G,kt="trailing"in C?!!C.trailing:kt);function Yt(cr){var La=k,Fi=z;return k=z=t,yt=cr,q=m.apply(Fi,La),q}function re(cr){return yt=cr,Q=nh(Se,x),_t?Yt(cr):q}function me(cr){var La=cr-rt,Fi=cr-yt,N5=x-La;return St?Ur(N5,G-Fi):N5}function ne(cr){var La=cr-rt,Fi=cr-yt;return rt===t||La>=x||La<0||St&&Fi>=G}function Se(){var cr=ig();if(ne(cr))return Ee(cr);Q=nh(Se,me(cr))}function Ee(cr){return Q=t,kt&&k?Yt(cr):(k=z=t,q)}function En(){Q!==t&&CO(Q),yt=0,k=rt=z=Q=t}function ln(){return Q===t?q:Ee(ig())}function Pn(){var cr=ig(),La=ne(cr);if(k=arguments,z=this,rt=cr,La){if(Q===t)return re(rt);if(St)return CO(Q),Q=nh(Se,x),Yt(rt)}return Q===t&&(Q=nh(Se,x)),q}return Pn.cancel=En,Pn.flush=ln,Pn}var iat=we(function(m,x){return iO(m,1,x)}),oat=we(function(m,x,C){return iO(m,la(x)||0,C)});function sat(m){return Ni(m,L)}function og(m,x){if(typeof m!="function"||x!=null&&typeof x!="function")throw new na(o);var C=function(){var k=arguments,z=x?x.apply(this,k):k[0],G=C.cache;if(G.has(z))return G.get(z);var q=m.apply(this,k);return C.cache=G.set(z,q)||G,q};return C.cache=new(og.Cache||ki),C}og.Cache=ki;function sg(m){if(typeof m!="function")throw new na(o);return function(){var x=arguments;switch(x.length){case 0:return!m.call(this);case 1:return!m.call(this,x[0]);case 2:return!m.call(this,x[0],x[1]);case 3:return!m.call(this,x[0],x[1],x[2])}return!m.apply(this,x)}}function lat(m){return h5(2,m)}var uat=$et(function(m,x){x=x.length==1&&he(x[0])?$e(x[0],Ln(ee())):$e(Or(x,1),Ln(ee()));var C=x.length;return we(function(k){for(var z=-1,G=Ur(k.length,C);++z=x}),ol=cO(function(){return arguments}())?cO:function(m){return er(m)&&Ge.call(m,"callee")&&!qN.call(m,"callee")},he=ct.isArray,Aat=EN?Ln(EN):Pet;function pn(m){return m!=null&&lg(m.length)&&!zi(m)}function ur(m){return er(m)&&pn(m)}function Tat(m){return m===!0||m===!1||er(m)&&on(m)==xt}var Ro=ztt||tx,Cat=PN?Ln(PN):ket;function Dat(m){return er(m)&&m.nodeType===1&&!ah(m)}function Lat(m){if(m==null)return!0;if(pn(m)&&(he(m)||typeof m=="string"||typeof m.splice=="function"||Ro(m)||ku(m)||ol(m)))return!m.length;var x=Zr(m);if(x==O||x==vt)return!m.size;if(rh(m))return!mb(m).length;for(var C in m)if(Ge.call(m,C))return!1;return!0}function Mat(m,x){return Jf(m,x)}function Iat(m,x,C){C=typeof C=="function"?C:t;var k=C?C(m,x):t;return k===t?Jf(m,x,t,C):!!k}function Ub(m){if(!er(m))return!1;var x=on(m);return x==bt||x==Ot||typeof m.message=="string"&&typeof m.name=="string"&&!ah(m)}function Eat(m){return typeof m=="number"&&QN(m)}function zi(m){if(!Qe(m))return!1;var x=on(m);return x==Pt||x==se||x==Kt||x==tt}function m5(m){return typeof m=="number"&&m==ge(m)}function lg(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=j}function Qe(m){var x=typeof m;return m!=null&&(x=="object"||x=="function")}function er(m){return m!=null&&typeof m=="object"}var _5=kN?Ln(kN):Net;function Pat(m,x){return m===x||yb(m,x,Rb(x))}function kat(m,x,C){return C=typeof C=="function"?C:t,yb(m,x,Rb(x),C)}function Rat(m){return w5(m)&&m!=+m}function Nat(m){if(mrt(m))throw new fe(i);return fO(m)}function Oat(m){return m===null}function Bat(m){return m==null}function w5(m){return typeof m=="number"||er(m)&&on(m)==st}function ah(m){if(!er(m)||on(m)!=X)return!1;var x=Np(m);if(x===null)return!0;var C=Ge.call(x,"constructor")&&x.constructor;return typeof C=="function"&&C instanceof C&&Ep.call(C)==Ptt}var Zb=RN?Ln(RN):Oet;function zat(m){return m5(m)&&m>=-9007199254740991&&m<=j}var b5=NN?Ln(NN):Bet;function ug(m){return typeof m=="string"||!he(m)&&er(m)&&on(m)==at}function In(m){return typeof m=="symbol"||er(m)&&on(m)==Tt}var ku=ON?Ln(ON):zet;function Vat(m){return m===t}function Fat(m){return er(m)&&Zr(m)==Dt}function Gat(m){return er(m)&&on(m)==Xt}var Wat=Jp(_b),Hat=Jp(function(m,x){return m<=x});function x5(m){if(!m)return[];if(pn(m))return ug(m)?Ta(m):dn(m);if(Zf&&m[Zf])return wtt(m[Zf]());var x=Zr(m),C=x==O?ob:x==vt?Lp:Ru;return C(m)}function Vi(m){if(!m)return m===0?m:0;if(m=la(m),m===W||m===-1/0){var x=m<0?-1:1;return x*H}return m===m?m:0}function ge(m){var x=Vi(m),C=x%1;return x===x?C?x-C:x:0}function S5(m){return m?rl(ge(m),0,U):0}function la(m){if(typeof m=="number")return m;if(In(m))return K;if(Qe(m)){var x=typeof m.valueOf=="function"?m.valueOf():m;m=Qe(x)?x+"":x}if(typeof m!="string")return m===0?m:+m;m=WN(m);var C=SJ.test(m);return C||TJ.test(m)?ntt(m.slice(2),C?2:8):xJ.test(m)?K:+m}function A5(m){return ni(m,gn(m))}function Uat(m){return m?rl(ge(m),-9007199254740991,j):m===0?m:0}function Oe(m){return m==null?"":Mn(m)}var Zat=Iu(function(m,x){if(rh(x)||pn(x)){ni(x,Dr(x),m);return}for(var C in x)Ge.call(x,C)&&qf(m,C,x[C])}),T5=Iu(function(m,x){ni(x,gn(x),m)}),cg=Iu(function(m,x,C,k){ni(x,gn(x),m,k)}),Yat=Iu(function(m,x,C,k){ni(x,Dr(x),m,k)}),Xat=Oi(hb);function jat(m,x){var C=Mu(m);return x==null?C:nO(C,x)}var $at=we(function(m,x){m=He(m);var C=-1,k=x.length,z=k>2?x[2]:t;for(z&&sn(x[0],x[1],z)&&(k=1);++C1),G}),ni(m,Pb(m),C),k&&(C=ia(C,f|d|v,ort));for(var z=x.length;z--;)Ab(C,x[z]);return C});function vit(m,x){return D5(m,sg(ee(x)))}var dit=Oi(function(m,x){return m==null?{}:Get(m,x)});function D5(m,x){if(m==null)return{};var C=$e(Pb(m),function(k){return[k]});return x=ee(x),mO(m,C,function(k,z){return x(k,z[0])})}function pit(m,x,C){x=Po(x,m);var k=-1,z=x.length;for(z||(z=1,m=t);++kx){var k=m;m=x,x=k}if(C||m%1||x%1){var z=JN();return Ur(m+z*(x-m+rtt("1e-"+((z+"").length-1))),x)}return bb(m,x)}var Cit=Eu(function(m,x,C){return x=x.toLowerCase(),m+(C?I5(x):x)});function I5(m){return jb(Oe(m).toLowerCase())}function E5(m){return m=Oe(m),m&&m.replace(DJ,ptt).replace(YJ,"")}function Dit(m,x,C){m=Oe(m),x=Mn(x);var k=m.length;C=C===t?k:rl(ge(C),0,k);var z=C;return C-=x.length,C>=0&&m.slice(C,z)==x}function Lit(m){return m=Oe(m),m&&sJ.test(m)?m.replace(To,gtt):m}function Mit(m){return m=Oe(m),m&&vJ.test(m)?m.replace(Hw,"\\$&"):m}var Iit=Eu(function(m,x,C){return m+(C?"-":"")+x.toLowerCase()}),Eit=Eu(function(m,x,C){return m+(C?" ":"")+x.toLowerCase()}),Pit=RO("toLowerCase");function kit(m,x,C){m=Oe(m),x=ge(x);var k=x?Au(m):0;if(!x||k>=x)return m;var z=(x-k)/2;return Qp(Vp(z),C)+m+Qp(zp(z),C)}function Rit(m,x,C){m=Oe(m),x=ge(x);var k=x?Au(m):0;return x&&k>>0,C?(m=Oe(m),m&&(typeof x=="string"||x!=null&&!Zb(x))&&(x=Mn(x),!x&&Su(m))?ko(Ta(m),0,C):m.split(x,C)):[]}var Git=Eu(function(m,x,C){return m+(C?" ":"")+jb(x)});function Wit(m,x,C){return m=Oe(m),C=C==null?0:rl(ge(C),0,m.length),x=Mn(x),m.slice(C,C+x.length)==x}function Hit(m,x,C){var k=V.templateSettings;C&&sn(m,x,C)&&(x=t),m=Oe(m),x=cg({},x,k,GO);var z=cg({},x.imports,k.imports,GO),G=Dr(z),q=ib(z,G),Q,rt,yt=0,_t=x.interpolate||Sp,St="__p += '",kt=sb((x.escape||Sp).source+"|"+_t.source+"|"+(_t===uN?bJ:Sp).source+"|"+(x.evaluate||Sp).source+"|$","g"),Yt="//# sourceURL="+(Ge.call(x,"sourceURL")?(x.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++KJ+"]")+` +`;m.replace(kt,function(ne,Se,Ee,En,ln,Pn){return Ee||(Ee=En),St+=m.slice(yt,Pn).replace(LJ,ytt),Se&&(Q=!0,St+=`' + +__e(`+Se+`) + +'`),ln&&(rt=!0,St+=`'; +`+ln+`; +__p += '`),Ee&&(St+=`' + +((__t = (`+Ee+`)) == null ? '' : __t) + +'`),yt=Pn+ne.length,ne}),St+=`'; +`;var re=Ge.call(x,"variable")&&x.variable;if(!re)St=`with (obj) { +`+St+` +} +`;else if(_J.test(re))throw new fe(s);St=(rt?St.replace(Ks,""):St).replace(xe,"$1").replace(lr,"$1;"),St="function("+(re||"obj")+`) { +`+(re?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(rt?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+St+`return __p +}`;var me=k5(function(){return Re(G,Yt+"return "+St).apply(t,q)});if(me.source=St,Ub(me))throw me;return me}function Uit(m){return Oe(m).toLowerCase()}function Zit(m){return Oe(m).toUpperCase()}function Yit(m,x,C){if(m=Oe(m),m&&(C||x===t))return WN(m);if(!m||!(x=Mn(x)))return m;var k=Ta(m),z=Ta(x),G=HN(k,z),q=UN(k,z)+1;return ko(k,G,q).join("")}function Xit(m,x,C){if(m=Oe(m),m&&(C||x===t))return m.slice(0,YN(m)+1);if(!m||!(x=Mn(x)))return m;var k=Ta(m),z=UN(k,Ta(x))+1;return ko(k,0,z).join("")}function jit(m,x,C){if(m=Oe(m),m&&(C||x===t))return m.replace(Uw,"");if(!m||!(x=Mn(x)))return m;var k=Ta(m),z=HN(k,Ta(x));return ko(k,z).join("")}function $it(m,x){var C=I,k=P;if(Qe(x)){var z="separator"in x?x.separator:z;C="length"in x?ge(x.length):C,k="omission"in x?Mn(x.omission):k}m=Oe(m);var G=m.length;if(Su(m)){var q=Ta(m);G=q.length}if(C>=G)return m;var Q=C-Au(k);if(Q<1)return k;var rt=q?ko(q,0,Q).join(""):m.slice(0,Q);if(z===t)return rt+k;if(q&&(Q+=rt.length-Q),Zb(z)){if(m.slice(Q).search(z)){var yt,_t=rt;for(z.global||(z=sb(z.source,Oe(cN.exec(z))+"g")),z.lastIndex=0;yt=z.exec(_t);)var St=yt.index;rt=rt.slice(0,St===t?Q:St)}}else if(m.indexOf(Mn(z),Q)!=Q){var kt=rt.lastIndexOf(z);kt>-1&&(rt=rt.slice(0,kt))}return rt+k}function qit(m){return m=Oe(m),m&&wu.test(m)?m.replace(Hf,Att):m}var Kit=Eu(function(m,x,C){return m+(C?" ":"")+x.toUpperCase()}),jb=RO("toUpperCase");function P5(m,x,C){return m=Oe(m),x=C?t:x,x===t?_tt(m)?Dtt(m):ctt(m):m.match(x)||[]}var k5=we(function(m,x){try{return Dn(m,t,x)}catch(C){return Ub(C)?C:new fe(C)}}),Qit=Oi(function(m,x){return ra(x,function(C){C=ai(C),Ri(m,C,Wb(m[C],m))}),m});function Jit(m){var x=m==null?0:m.length,C=ee();return m=x?$e(m,function(k){if(typeof k[1]!="function")throw new na(o);return[C(k[0]),k[1]]}):[],we(function(k){for(var z=-1;++zj)return[];var C=U,k=Ur(m,U);x=ee(x),m-=U;for(var z=ab(k,x);++C0||x<0)?new De(C):(m<0?C=C.takeRight(-m):m&&(C=C.drop(m)),x!==t&&(x=ge(x),C=x<0?C.dropRight(-x):C.take(x-m)),C)},De.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},De.prototype.toArray=function(){return this.take(U)},ri(De.prototype,function(m,x){var C=/^(?:filter|find|map|reject)|While$/.test(x),k=/^(?:head|last)$/.test(x),z=V[k?"take"+(x=="last"?"Right":""):x],G=k||/^find/.test(x);z&&(V.prototype[x]=function(){var q=this.__wrapped__,Q=k?[1]:arguments,rt=q instanceof De,yt=Q[0],_t=rt||he(q),St=function(Se){var Ee=z.apply(V,Do([Se],Q));return k&&kt?Ee[0]:Ee};_t&&C&&typeof yt=="function"&&yt.length!=1&&(rt=_t=!1);var kt=this.__chain__,Yt=!!this.__actions__.length,re=G&&!kt,me=rt&&!Yt;if(!G&&_t){q=me?q:new De(this);var ne=m.apply(q,Q);return ne.__actions__.push({func:ng,args:[St],thisArg:t}),new aa(ne,kt)}return re&&me?m.apply(this,Q):(ne=this.thru(St),re?k?ne.value()[0]:ne.value():ne)})}),ra(["pop","push","shift","sort","splice","unshift"],function(m){var x=Mp[m],C=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",k=/^(?:pop|shift)$/.test(m);V.prototype[m]=function(){var z=arguments;if(k&&!this.__chain__){var G=this.value();return x.apply(he(G)?G:[],z)}return this[C](function(q){return x.apply(he(q)?q:[],z)})}}),ri(De.prototype,function(m,x){var C=V[x];if(C){var k=C.name+"";Ge.call(Lu,k)||(Lu[k]=[]),Lu[k].push({name:x,func:C})}}),Lu[qp(t,g).name]=[{name:"wrapper",func:t}],De.prototype.clone=$tt,De.prototype.reverse=qtt,De.prototype.value=Ktt,V.prototype.at=Dnt,V.prototype.chain=Lnt,V.prototype.commit=Mnt,V.prototype.next=Int,V.prototype.plant=Pnt,V.prototype.reverse=knt,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=Rnt,V.prototype.first=V.prototype.head,Zf&&(V.prototype[Zf]=Ent),V},Tu=Ltt();Qs?((Qs.exports=Tu)._=Tu,qw._=Tu):Nr._=Tu}).call(ii)}(oh,oh.exports);for(var Y=oh.exports,Lr=[],hg=0;hg<256;++hg)Lr.push((hg+256).toString(16).slice(1));function V5(r,e=0){return(Lr[r[e+0]]+Lr[r[e+1]]+Lr[r[e+2]]+Lr[r[e+3]]+"-"+Lr[r[e+4]]+Lr[r[e+5]]+"-"+Lr[r[e+6]]+Lr[r[e+7]]+"-"+Lr[r[e+8]]+Lr[r[e+9]]+"-"+Lr[r[e+10]]+Lr[r[e+11]]+Lr[r[e+12]]+Lr[r[e+13]]+Lr[r[e+14]]+Lr[r[e+15]]).toLowerCase()}var sh,F5=new Uint8Array(16);function G5(){if(!sh&&(sh=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!sh))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return sh(F5)}var W5=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const rx={randomUUID:W5};function H5(r,e,t){if(rx.randomUUID&&!r)return rx.randomUUID();r=r||{};var n=r.random||(r.rng||G5)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,V5(n)}/*! ***************************************************************************** + 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 vg=function(r,e){return vg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},vg(r,e)};function J(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");vg(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var U5=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Z5=function(){function r(){this.browser=new U5,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window!="undefined"}return r}(),ie=new Z5;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ie.wxa=!0,ie.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?ie.worker=!0:!ie.hasGlobalWindow||"Deno"in window?(ie.node=!0,ie.svgSupported=!0):Y5(navigator.userAgent,ie);function Y5(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document!="undefined";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var dg=12,nx="sans-serif",Gi=dg+"px "+nx,X5=20,j5=100,$5="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function q5(r){var e={};if(typeof JSON=="undefined")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function gB(r,e,t){for(var n=t?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),f=2*u,d=c.left,v=c.top;o.push(d,v),l=l&&i&&d===i[f]&&v===i[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=t?dx(s,o):dx(o,s))}function gx(r){return r.nodeName.toUpperCase()==="CANVAS"}var yB=/([&<>"'])/g,mB={"&":"&","<":"<",">":">",'"':""","'":"'"};function jr(r){return r==null?"":(r+"").replace(yB,function(e,t){return mB[t]})}var _B=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Cg=[],wB=ie.browser.firefox&&+ie.browser.version.split(".")[0]<39;function Dg(r,e,t,n){return t=t||{},n?yx(r,e,t):wB&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):yx(r,e,t),t}function yx(r,e,t){if(ie.domSupported&&r.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(gx(r)){var i=r.getBoundingClientRect();t.zrX=n-i.left,t.zrY=a-i.top;return}else if(Tg(Cg,r,n,a)){t.zrX=Cg[0],t.zrY=Cg[1];return}}t.zrX=t.zrY=0}function Lg(r){return r||window.event}function Nn(r,e,t){if(e=Lg(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Dg(r,o,e,t)}else{Dg(r,e,e,t);var i=bB(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&_B.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function bB(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var a=Math.abs(n!==0?n:t),i=n>0?-1:n<0?1:t>0?-1:1;return 3*a*i}function Mg(r,e,t,n){r.addEventListener(e,t,n)}function xB(r,e,t,n){r.removeEventListener(e,t,n)}var si=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function mx(r){return r.which===2||r.which===3}var SB=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&n&&n.length>1){var i=_x(n)/_x(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=AB(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function mn(){return[1,0,0,1,0,0]}function yh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Eg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function li(r,e,t){var n=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Ea(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Go(r,e,t,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),f=Math.cos(t);return r[0]=a*f+s*c,r[1]=-a*c+s*f,r[2]=i*f+l*c,r[3]=-i*c+f*l,r[4]=f*(o-n[0])+c*(u-n[1])+n[0],r[5]=f*(u-n[1])-c*(o-n[0])+n[1],r}function Pg(r,e,t){var n=t[0],a=t[1];return r[0]=e[0]*n,r[1]=e[1]*a,r[2]=e[2]*n,r[3]=e[3]*a,r[4]=e[4]*n,r[5]=e[5]*a,r}function cl(r,e){var t=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-t*s)*l,r):null}function TB(r){var e=mn();return Eg(e,r),e}var Qt=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,a){e.x=t.x+n.x*a,e.y=t.y+n.y*a},r.lerp=function(e,t,n,a){var i=1-a;e.x=i*t.x+a*n.x,e.y=i*t.y+a*n.y},r}(),mh=Math.min,_h=Math.max,Wo=new Qt,Ho=new Qt,Uo=new Qt,Zo=new Qt,Vu=new Qt,Fu=new Qt,Jt=function(){function r(e,t,n,a){n<0&&(e=e+n,n=-n),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=n,this.height=a}return r.prototype.union=function(e){var t=mh(e.x,this.x),n=mh(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=_h(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=_h(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,a=e.height/t.height,i=mn();return Ea(i,i,[-t.x,-t.y]),Pg(i,i,[n,a]),Ea(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,d=!(ip&&(p=w,y<_?Qt.set(Fu,-y,0):Qt.set(Fu,_,0)):wp&&(p=b,g=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Wo.x=Uo.x=t.x,Wo.y=Zo.y=t.y,Ho.x=Zo.x=t.x+t.width,Ho.y=Uo.y=t.y+t.height,Wo.transform(n),Zo.transform(n),Ho.transform(n),Uo.transform(n),e.x=mh(Wo.x,Ho.x,Uo.x,Zo.x),e.y=mh(Wo.y,Ho.y,Uo.y,Zo.y);var l=_h(Wo.x,Ho.x,Uo.x,Zo.x),u=_h(Wo.y,Ho.y,Uo.y,Zo.y);e.width=l-e.x,e.height=u-e.y},r}(),bx="silent";function CB(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:DB}}function DB(){si(this.event)}var LB=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Rn),Gu=function(){function r(e,t){this.x=e,this.y=t}return r}(),MB=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],kg=new Jt(0,0,0,0),xx=function(r){J(e,r);function e(t,n,a,i,o){var s=r.call(this)||this;return s._hovered=new Gu(0,0),s.storage=t,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new LB,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new hB(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(N(MB,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,a=t.zrY,i=Ax(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Gu(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Gu(0,0)},e.prototype.dispatch=function(t,n){var a=this[t];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+n,s=CB(n,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,a){var i=this.storage.getDisplayList(),o=new Gu(t,n);if(Sx(i,o,t,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Jt(t-u,n-u,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(kg.copy(d.getBoundingRect()),d.transform&&kg.applyTransform(d.transform),kg.intersect(c)&&s.push(d))}if(s.length)for(var v=4,p=Math.PI/12,y=Math.PI*2,_=0;_4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function IB(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?bx:!0}return!1}function Sx(r,e,t,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=IB(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==bx)){e.target=o;break}}}function Ax(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var Tx=32,Wu=7;function EB(r){for(var e=0;r>=Tx;)e|=r&1,r>>=1;return r+e}function Cx(r,e,t,n){var a=e+1;if(a===t)return 1;if(n(r[a++],r[e])<0){for(;a=0;)a++;return a-e}function PB(r,e,t){for(t--;e>>1,a(i,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Rg(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])>0){for(s=n-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(r,e[t+c])>0?o=c+1:l=c}return l}function Ng(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(r,e[t+c])<0?l=c:o=c+1}return l}function kB(r,e){var t=Wu,n,a,i=0,o=[];n=[],a=[];function s(v,p){n[i]=v,a[i]=p,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]a[v+1])break;c(v)}}function u(){for(;i>1;){var v=i-2;v>0&&a[v-1]=Wu||T>=Wu);if(D)break;S<0&&(S=0),S+=2}if(t=S,t<1&&(t=1),p===1){for(g=0;g<_;g++)r[b+g]=r[w+g];r[b+_]=o[h]}else{if(p===0)throw new Error;for(g=0;g=0;g--)r[A+g]=r[S+g];r[b]=o[w];return}for(var T=t;;){var D=0,L=0,I=!1;do if(e(o[w],r[h])<0){if(r[b--]=r[h--],D++,L=0,--p===0){I=!0;break}}else if(r[b--]=o[w--],L++,D=0,--_===1){I=!0;break}while((D|L)=0;g--)r[A+g]=r[S+g];if(p===0){I=!0;break}}if(r[b--]=o[w--],--_===1){I=!0;break}if(L=_-Rg(r[h],o,0,_,_-1,e),L!==0){for(b-=L,w-=L,_-=L,A=b+1,S=w+1,g=0;g=Wu||L>=Wu);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),_===1){for(b-=p,h-=p,A=b+1,S=h+1,g=p-1;g>=0;g--)r[A+g]=r[S+g];r[b]=o[w]}else{if(_===0)throw new Error;for(S=b-(_-1),g=0;g<_;g++)r[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function wh(r,e,t,n){t||(t=0),n||(n=r.length);var a=n-t;if(!(a<2)){var i=0;if(as&&(l=s),Dx(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Pa=1,bh=2,Hu=4,Lx=!1;function Og(){Lx||(Lx=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Mx(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var RB=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Mx}return r.prototype.traverse=function(e,t){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(Og(),c.z=0),isNaN(c.z2)&&(Og(),c.z2=0),isNaN(c.zlevel)&&(Og(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,t,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),xh;xh=ie.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Uu={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Uu.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Uu.bounceIn(r*2)*.5:Uu.bounceOut(r*2-1)*.5+.5}},Sh=Math.pow,Yi=Math.sqrt,Ix=1e-8,Ex=1e-4,Px=Yi(3),Ah=1/3,ka=zo(),On=zo(),fl=zo();function Xi(r){return r>-1e-8&&rIx||r<-1e-8}function gr(r,e,t,n,a){var i=1-a;return i*i*(i*r+3*a*e)+a*a*(a*n+3*i*t)}function Rx(r,e,t,n,a){var i=1-a;return 3*(((e-r)*i+2*(t-e)*a)*i+(n-t)*a*a)}function Th(r,e,t,n,a,i){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,v=0;if(Xi(c)&&Xi(f))if(Xi(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[v++]=p)}else{var y=f*f-4*c*d;if(Xi(y)){var _=f/c,p=-s/o+_,g=-_/2;p>=0&&p<=1&&(i[v++]=p),g>=0&&g<=1&&(i[v++]=g)}else if(y>0){var h=Yi(y),w=c*s+1.5*o*(-f+h),b=c*s+1.5*o*(-f-h);w<0?w=-Sh(-w,Ah):w=Sh(w,Ah),b<0?b=-Sh(-b,Ah):b=Sh(b,Ah);var p=(-s-(w+b))/(3*o);p>=0&&p<=1&&(i[v++]=p)}else{var S=(2*c*s-3*o*f)/(2*Yi(c*c*c)),A=Math.acos(S)/3,T=Yi(c),D=Math.cos(A),p=(-s-2*T*D)/(3*o),g=(-s+T*(D+Px*Math.sin(A)))/(3*o),L=(-s+T*(D-Px*Math.sin(A)))/(3*o);p>=0&&p<=1&&(i[v++]=p),g>=0&&g<=1&&(i[v++]=g),L>=0&&L<=1&&(i[v++]=L)}}return v}function Nx(r,e,t,n,a){var i=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(Xi(o)){if(kx(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Xi(c))a[0]=-i/(2*o);else if(c>0){var f=Yi(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function ji(r,e,t,n,a,i){var o=(e-r)*a+r,s=(t-e)*a+e,l=(n-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=n}function Ox(r,e,t,n,a,i,o,s,l,u,c){var f,d=.005,v=1/0,p,y,_,g;ka[0]=l,ka[1]=u;for(var h=0;h<1;h+=.05)On[0]=gr(r,t,a,o,h),On[1]=gr(e,n,i,s,h),_=Fo(ka,On),_=0&&_=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Xi(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Yi(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function Bx(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function Zu(r,e,t,n,a){var i=(e-r)*n+r,o=(t-e)*n+e,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function zx(r,e,t,n,a,i,o,s,l){var u,c=.005,f=1/0;ka[0]=o,ka[1]=s;for(var d=0;d<1;d+=.05){On[0]=Ar(r,t,a,d),On[1]=Ar(e,n,i,d);var v=Fo(ka,On);v=0&&v=1?1:Th(0,n,i,1,l,s)&&gr(0,a,o,1,s[0])}}}var VB=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Je,this.ondestroy=e.ondestroy||Je,this.onrestart=e.onrestart||Je,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Rt(e)?e:Uu[e]||zg(e)},r}(),Vx=function(){function r(e){this.value=e}return r}(),FB=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Vx(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),Yu=function(){function r(e){this._list=new FB,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,a=this._map,i=null;if(a[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Vx(t),s.key=e,n.insertEntry(s),a[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Fx={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 fa(r){return r=Math.round(r),r<0?0:r>255?255:r}function GB(r){return r=Math.round(r),r<0?0:r>360?360:r}function Xu(r){return r<0?0:r>1?1:r}function Vg(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?fa(parseFloat(e)/100*255):fa(parseInt(e,10))}function Yo(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Xu(parseFloat(e)/100):Xu(parseFloat(e))}function Fg(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function $i(r,e,t){return r+(e-r)*t}function Bn(r,e,t,n,a){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r}function Gg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Gx=new Yu(20),Ch=null;function hl(r,e){Ch&&Gg(Ch,e),Ch=Gx.put(r,Ch||e.slice())}function _n(r,e){if(r){e=e||[];var t=Gx.get(r);if(t)return Gg(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Fx)return Gg(e,Fx[n]),hl(r,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Bn(e,0,0,0,1);return}return Bn(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),hl(r,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Bn(e,0,0,0,1);return}return Bn(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),hl(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Bn(e,+u[0],+u[1],+u[2],1):Bn(e,0,0,0,1);c=Yo(u.pop());case"rgb":if(u.length>=3)return Bn(e,Vg(u[0]),Vg(u[1]),Vg(u[2]),u.length===3?c:Yo(u[3])),hl(r,e),e;Bn(e,0,0,0,1);return;case"hsla":if(u.length!==4){Bn(e,0,0,0,1);return}return u[3]=Yo(u[3]),Wg(u,e),hl(r,e),e;case"hsl":if(u.length!==3){Bn(e,0,0,0,1);return}return Wg(u,e),hl(r,e),e;default:return}}Bn(e,0,0,0,1)}}function Wg(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=Yo(r[1]),a=Yo(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],Bn(e,fa(Fg(o,i,t+1/3)*255),fa(Fg(o,i,t)*255),fa(Fg(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function WB(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a=Math.min(e,t,n),i=Math.max(e,t,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,f=((i-t)/6+o/2)/o,d=((i-n)/6+o/2)/o;e===i?l=d-f:t===i?l=1/3+c-d:n===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function Hg(r,e){var t=_n(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return ui(t,t.length===4?"rgba":"rgb")}}function Ug(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],l=n-a;return t[0]=fa($i(o[0],s[0],l)),t[1]=fa($i(o[1],s[1],l)),t[2]=fa($i(o[2],s[2],l)),t[3]=Xu($i(o[3],s[3],l)),t}}function HB(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=_n(e[a]),s=_n(e[i]),l=n-a,u=ui([fa($i(o[0],s[0],l)),fa($i(o[1],s[1],l)),fa($i(o[2],s[2],l)),Xu($i(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function ju(r,e,t,n){var a=_n(r);if(r)return a=WB(a),e!=null&&(a[0]=GB(e)),t!=null&&(a[1]=Yo(t)),n!=null&&(a[2]=Yo(n)),ui(Wg(a),"rgba")}function Dh(r,e){var t=_n(r);if(t&&e!=null)return t[3]=Xu(e),ui(t,"rgba")}function ui(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Lh(r,e){var t=_n(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Wx=new Yu(100);function Zg(r){if(Ct(r)){var e=Wx.get(r);return e||(e=Hg(r,-.1),Wx.put(r,e)),e}else if(fh(r)){var t=lt({},r);return t.colorStops=ht(r.colorStops,function(n){return{offset:n.offset,color:Hg(n.color,-.1)}}),t}return r}var Mh=Math.round;function $u(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=_n(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e==null?1:e}}var UB=1e-4;function qi(r){return r-1e-4}function Ih(r){return Mh(r*1e3)/1e3}function Yg(r){return Mh(r*1e4)/1e4}function ZB(r){return"matrix("+Ih(r[0])+","+Ih(r[1])+","+Ih(r[2])+","+Ih(r[3])+","+Yg(r[4])+","+Yg(r[5])+")"}var YB={left:"start",right:"end",center:"middle",middle:"middle"};function XB(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function jB(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function $B(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Hx(r){return r&&!!r.image}function qB(r){return r&&!!r.svgElement}function Xg(r){return Hx(r)||qB(r)}function Ux(r){return r.type==="linear"}function Zx(r){return r.type==="radial"}function Yx(r){return r&&(r.type==="linear"||r.type==="radial")}function Eh(r){return"url(#"+r+")"}function Xx(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function jx(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*dh,a=Ut(r.scaleX,1),i=Ut(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Mh(o*dh)+"deg, "+Mh(s*dh)+"deg)"),l.join(" ")}var KB=function(){return ie.hasGlobalWindow&&Rt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return process.env.NODE_ENV!=="production"&&ua("Base64 isn't natively supported in the current environment."),null}}(),jg=Array.prototype.slice;function ci(r,e,t){return(e-r)*t+r}function $g(r,e,t,n){for(var a=e.length,i=0;in?e:r,i=Math.min(t,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)n.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=Kx,l=t;if(Br(t)){var u=e3(t);s=u,(u===1&&!ye(t[0])||u===2&&!ye(t[0][0]))&&(o=!0)}else if(ye(t)&&!Bo(t))s=Rh;else if(Ct(t))if(!isNaN(+t))s=Rh;else{var c=_n(t);c&&(l=c,s=Ku)}else if(fh(t)){var f=lt({},l);f.colorStops=ht(t.colorStops,function(v){return{offset:v.offset,color:_n(v.color)}}),Ux(t)?s=qg:Zx(t)&&(s=Kg),l=f}i===0?this.valType=s:(s!==this.valType||s===Kx)&&(o=!0),this.discrete=this.discrete||o;var d={time:e,value:l,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=Rt(n)?n:Uu[n]||zg(n)),a.push(d),d},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(y,_){return y.time-_.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=Oh(a),u=Qx(a),c=0;c=0&&!(o[c].percent<=t);c--);c=d(c,s-2)}else{for(c=f;ct);c++);c=d(c-1,s-2)}p=o[c+1],v=o[c]}if(v&&p){this._lastFr=c,this._lastFrP=t;var _=p.percent-v.percent,g=_===0?1:d((t-v.percent)/_,1);p.easingFunc&&(g=p.easingFunc(g));var h=n?this._additiveValue:u?Qu:e[l];if((Oh(i)||u)&&!h&&(h=this._additiveValue=[]),this.discrete)e[l]=g<1?v.rawValue:p.rawValue;else if(Oh(i))i===Nh?$g(h,v[a],p[a],g):QB(h,v[a],p[a],g);else if(Qx(i)){var w=v[a],b=p[a],S=i===qg;e[l]={type:S?"linear":"radial",x:ci(w.x,b.x,g),y:ci(w.y,b.y,g),colorStops:ht(w.colorStops,function(T,D){var L=b.colorStops[D];return{offset:ci(T.offset,L.offset,g),color:kh($g([],T.color,L.color,g))}}),global:b.global},S?(e[l].x2=ci(w.x2,b.x2,g),e[l].y2=ci(w.y2,b.y2,g)):e[l].r=ci(w.r,b.r,g)}else if(u)$g(h,v[a],p[a],g),n||(e[l]=kh(h));else{var A=ci(v[a],p[a],g);n?this._additiveValue=A:e[l]=A}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,a=this._additiveValue;t===Rh?e[n]=e[n]+a:t===Ku?(_n(e[n],Qu),Ph(Qu,Qu,a,1),e[n]=kh(Qu)):t===Nh?Ph(e[n],e[n],a,1):t===qx&&$x(e[n],e[n],a,1)},r}(),Qg=function(){function r(e,t,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){ua("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,ue(t),n)},r.prototype.whenWithKeys=function(e,t,n,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,qu(u),a),this._trackKeys.push(s)}l.addKeyframe(e,qu(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function vl(){return new Date().getTime()}var n3=function(r){J(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return 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 n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,a=t.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=vl()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(xh(n),!t._paused&&t.update())}xh(n)},e.prototype.start=function(){this._running||(this._time=vl(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=vl(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=vl()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var a=new Qg(t,n.loop);return this.addAnimator(a),a},e}(Rn),a3=300,Jg=ie.domSupported,ty=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ht(r,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:r,touch:e,pointer:n}}(),Jx={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},tS=!1;function ey(r){var e=r.pointerType;return e==="pen"||e==="touch"}function i3(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function ry(r){r&&(r.zrByTouch=!0)}function o3(r,e){return Nn(r.dom,new s3(r,e),!0)}function eS(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var s3=function(){function r(e,t){this.stopPropagation=Je,this.stopImmediatePropagation=Je,this.preventDefault=Je,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),ha={mousedown:function(r){r=Nn(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Nn(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Nn(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Nn(this.dom,r);var e=r.toElement||r.relatedTarget;eS(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){tS=!0,r=Nn(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){tS||(r=Nn(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Nn(this.dom,r),ry(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),ha.mousemove.call(this,r),ha.mousedown.call(this,r)},touchmove:function(r){r=Nn(this.dom,r),ry(r),this.handler.processGesture(r,"change"),ha.mousemove.call(this,r)},touchend:function(r){r=Nn(this.dom,r),ry(r),this.handler.processGesture(r,"end"),ha.mouseup.call(this,r),+new Date-+this.__lastTouchMomenth3||r<-5e-5}var jo=[],dl=[],ly=mn(),uy=Math.abs,fi=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Xo(this.rotation)||Xo(this.x)||Xo(this.y)||Xo(this.scaleX-1)||Xo(this.scaleY-1)||Xo(this.skewX)||Xo(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(aS(n),this.invTransform=null);return}n=n||mn(),t?this.getLocalTransform(n):aS(n),e&&(t?li(n,e,n):Eg(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(jo);var n=jo[0]<0?-1:1,a=jo[1]<0?-1:1,i=((jo[0]-n)*t+n)/jo[0]||0,o=((jo[1]-a)*t+a)/jo[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||mn(),cl(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||mn(),li(dl,e.invTransform,t),t=dl);var n=this.originX,a=this.originY;(n||a)&&(ly[4]=n,ly[5]=a,li(dl,t,ly),dl[4]-=n,dl[5]-=a,t=dl),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],a=this.invTransform;return a&&Mr(n,n,a),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],a=this.transform;return a&&Mr(n,n,a),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&uy(e[0]-1)>1e-10&&uy(e[3]-1)>1e-10?Math.sqrt(uy(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){iS(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,d=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||l){var p=n+s,y=a+l;t[4]=-p*i-d*y*o,t[5]=-y*o-v*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=v*i,t[2]=d*o,u&&Go(t,t,u),t[4]+=n+c,t[5]+=a+f,t},r.initDefaultProps=function(){var e=r.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}(),r}(),Ra=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function iS(r,e){for(var t=0;t=0?parseFloat(r)/100*e:parseFloat(r):r}function Fh(r,e,t){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",f="top";if(n instanceof Array)l+=va(n[0],t.width),u+=va(n[1],t.height),c=null,f=null;else switch(n){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+o,u+=s,f="middle";break;case"top":l+=o/2,u-=a,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=o-a,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=f,r}var cy="__zr_normal__",fy=Ra.concat(["ignore"]),v3=Ia(Ra,function(r,e){return r[e]=!0,r},{ignore:!1}),gl={},d3=new Jt(0,0,0,0),Gh=function(){function r(e){this.id=sx(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),n.position!=null){var c=d3;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(gl,n,c):Fh(gl,n,c),i.x=gl.x,i.y=gl.y,o=gl.align,s=gl.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,v=void 0;f==="center"?(d=c.width*.5,v=c.height*.5):(d=va(f[0],c.width),v=va(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+v+(a?0:c.y)}}n.rotation!=null&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var y=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,h=void 0,w=void 0;y&&this.canBeInsideText()?(g=n.insideFill,h=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(h==null||h==="auto")&&(h=this.getInsideTextStroke(g),w=!0)):(g=n.outsideFill,h=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(h==null||h==="auto")&&(h=this.getOutsideStroke(g),w=!0)),g=g||"#000",(g!==_.fill||h!==_.stroke||w!==_.autoStroke||o!==_.align||s!==_.verticalAlign)&&(l=!0,_.fill=g,_.stroke=h,_.autoStroke=w,_.align=o,_.verticalAlign=s,t.setDefaultTextStyle(_)),t.__dirty|=Pa,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?sy:oy},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&_n(t);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,ui(n,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},lt(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(zt(e))for(var n=e,a=ue(n),i=0;i0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(cy,!1,e)},r.prototype.useState=function(e,t,n,a){var i=e===cy,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(te(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){ua("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(e,t,n,c),d&&d.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var y=this._textContent,_=this._textGuide;y&&y.useStates(e,t,d),_&&_.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var a=this.currentStates.slice(),i=te(a,e),o=te(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:n&&!o&&a.push(t),this.useStates(a)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,a=n.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,y){t.during(y)});for(var d=0;d0||a.force&&!o.length){var D=void 0,L=void 0,I=void 0;if(s){L={},d&&(D={});for(var b=0;b=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var a=te(this._children,t);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(t,n){var a=this._children,i=a[n];if(t&&t!==this&&t.parent!==this&&t!==i){a[n]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,a=this._children,i=te(a,t);return i<0?this:(a.splice(i,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function At(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Ct(r)?C3(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function qe(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),fS),r=(+r).toFixed(e),t?r:+r}function zn(r){return r.sort(function(e,t){return e-t}),r}function Na(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return py(r)}function py(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function hS(r,e){var t=Math.log,n=Math.LN10,a=Math.floor(t(r[1]-r[0])/n),i=Math.round(t(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function D3(r,e){var t=Ia(r,function(v,p){return v+(isNaN(p)?0:p)},0);if(t===0)return[];for(var n=Math.pow(10,e),a=ht(r,function(v){return(isNaN(v)?0:v)/t*n*100}),i=n*100,o=ht(a,function(v){return Math.floor(v)}),s=Ia(o,function(v,p){return v+p},0),l=ht(a,function(v,p){return v-o[p]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return ht(o,function(v){return v/n})}function L3(r,e){var t=Math.max(Na(r),Na(e)),n=r+e;return t>fS?n:qe(n,t)}var vS=9007199254740991;function dS(r){var e=Math.PI*2;return(r%e+e)%e}function rc(r){return r>-1e-4&&r=10&&e++,e}function pS(r,e){var t=Wh(r),n=Math.pow(10,t),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,t>=-20?+r.toFixed(t<0?-t:0):r}function gy(r,e){var t=(r.length-1)*e+1,n=Math.floor(t),a=+r[n-1],i=t-n;return i?a+i*(r[n]-a):a}function gS(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,n=0;n=0||i&&te(i,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var nz=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],az=Qo(nz),iz=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return az(this,e,t)},r}(),xy=new Yu(50);function oz(r){if(typeof r=="string"){var e=xy.get(r);return e&&e.image}else return r}function Sy(r,e,t,n,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=xy.get(r),o={hostEl:t,cb:n,cbPayload:a};return i?(e=i.image,!Zh(e)&&i.pending.push(o)):(e=Wi.loadImage(r,kS,kS),e.__zrImageSrc=r,xy.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function kS(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=wn(t,e);return u>s&&(t="",u=0),s=r-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=r,a}function NS(r,e,t){var n=t.containerWidth,a=t.font,i=t.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=wn(e,a);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?lz(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=wn(e,a)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function lz(r,e,t,n){for(var a=0,i=0,o=r.length;ip&&u){var y=Math.floor(p/s);c=c||d.length>y,d=d.slice(0,y)}if(r&&i&&f!=null)for(var _=RS(f,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g={},h=0;hs&&Ty(t,r.substring(s,u),e,o),Ty(t,l[2],e,o,l[1]),s=Ay.lastIndex}sa){var R=t.lines.length;A>0?(w.tokens=w.tokens.slice(0,A),g(w,S,b),t.lines=t.lines.slice(0,h+1)):t.lines=t.lines.slice(0,h),t.isTruncated=t.isTruncated||t.lines.length0&&p+n.accumWidth>n.width&&(c=e.split(` +`),u=!0),n.accumWidth=p}else{var y=BS(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=y.accumWidth+v,f=y.linesWidths,c=y.lines}}else c=e.split(` +`);for(var _=0;_=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var dz=Ia(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function pz(r){return vz(r)?!!dz[r]:!0}function BS(r,e,t,n,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;ft:a+c+v>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=v,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=v)):p?(i.push(l),o.push(u),l=d,u=v):(i.push(d),o.push(v));continue}c+=v,p?(l+=d,u+=v):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var Cy="__zr_style_"+Math.round(Math.random()*10),Jo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Yh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Jo[Cy]=!0;var zS=["z","z2","invisible"],gz=["invisible"],Vn=function(r){J(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=ue(t),a=0;a1e-4){s[0]=r-t,s[1]=e-n,l[0]=r+t,l[1]=e+n;return}if(Xh[0]=Iy(a)*t+r,Xh[1]=My(a)*n+e,jh[0]=Iy(i)*t+r,jh[1]=My(i)*n+e,u(s,Xh,jh),c(l,Xh,jh),a=a%ts,a<0&&(a=a+ts),i=i%ts,i<0&&(i=i+ts),a>i&&!o?i+=ts:aa&&($h[0]=Iy(v)*t+r,$h[1]=My(v)*n+e,u(s,$h,s),c(l,$h,l))}var Ne={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},es=[],rs=[],za=[],Ki=[],Va=[],Fa=[],Ey=Math.min,Py=Math.max,ns=Math.cos,as=Math.sin,vi=Math.abs,ky=Math.PI,Qi=ky*2,Ry=typeof Float32Array!="undefined",oc=[];function Ny(r){var e=Math.round(r/ky*1e8)/1e8;return e%2*ky}function Oy(r,e){var t=Ny(r[0]);t<0&&(t+=Qi);var n=t-r[0],a=r[1];a+=n,!e&&a-t>=Qi?a=t+Qi:e&&t-a>=Qi?a=t-Qi:!e&&t>a?a=t+(Qi-Ny(t-a)):e&&t0&&(this._ux=vi(n/zh/e)||0,this._uy=vi(n/zh/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ne.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var n=vi(e-this._xi),a=vi(t-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Ne.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){return this._drawPendingPt(),this.addData(Ne.C,e,t,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,a){return this._drawPendingPt(),this.addData(Ne.Q,e,t,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(e,t,n,a,i,o){this._drawPendingPt(),oc[0]=a,oc[1]=i,Oy(oc,o),a=oc[0],i=oc[1];var s=i-a;return this.addData(Ne.A,e,t,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,a,i,o),this._xi=ns(i)*n+e,this._yi=as(i)*n+t,this},r.prototype.arcTo=function(e,t,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,a,i),this},r.prototype.rect=function(e,t,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,a),this.addData(Ne.R,e,t,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ne.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Ry&&(this.data=new Float32Array(t));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){za[0]=za[1]=Va[0]=Va[1]=Number.MAX_VALUE,Ki[0]=Ki[1]=Fa[0]=Fa[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,a=0,i=0,o;for(o=0;on||vi(w)>a||d===t-1)&&(y=Math.sqrt(h*h+w*w),i=_,o=g);break}case Ne.C:{var b=e[d++],S=e[d++],_=e[d++],g=e[d++],A=e[d++],T=e[d++];y=NB(i,o,b,S,_,g,A,T,10),i=A,o=T;break}case Ne.Q:{var b=e[d++],S=e[d++],_=e[d++],g=e[d++];y=BB(i,o,b,S,_,g,10),i=_,o=g;break}case Ne.A:var D=e[d++],L=e[d++],I=e[d++],P=e[d++],E=e[d++],R=e[d++],M=R+E;d+=1,p&&(s=ns(E)*I+D,l=as(E)*P+L),y=Py(I,P)*Ey(Qi,Math.abs(R)),i=ns(M)*I+D,o=as(M)*P+L;break;case Ne.R:{s=i=e[d++],l=o=e[d++];var B=e[d++],F=e[d++];y=B*2+F*2;break}case Ne.Z:{var h=s-i,w=l-o;y=Math.sqrt(h*h+w*w),i=s,o=l;break}}y>=0&&(u[f++]=y,c+=y)}return this._pathLen=c,c},r.prototype.rebuildPath=function(e,t){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,v=t<1,p,y,_=0,g=0,h,w=0,b,S;if(!(v&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,y=this._pathLen,h=t*y,!h)))t:for(var A=0;A0&&(e.lineTo(b,S),w=0),T){case Ne.M:s=u=n[A++],l=c=n[A++],e.moveTo(u,c);break;case Ne.L:{f=n[A++],d=n[A++];var L=vi(f-u),I=vi(d-c);if(L>a||I>i){if(v){var P=p[g++];if(_+P>h){var E=(h-_)/P;e.lineTo(u*(1-E)+f*E,c*(1-E)+d*E);break t}_+=P}e.lineTo(f,d),u=f,c=d,w=0}else{var R=L*L+I*I;R>w&&(b=f,S=d,w=R)}break}case Ne.C:{var M=n[A++],B=n[A++],F=n[A++],W=n[A++],j=n[A++],H=n[A++];if(v){var P=p[g++];if(_+P>h){var E=(h-_)/P;ji(u,M,F,j,E,es),ji(c,B,W,H,E,rs),e.bezierCurveTo(es[1],rs[1],es[2],rs[2],es[3],rs[3]);break t}_+=P}e.bezierCurveTo(M,B,F,W,j,H),u=j,c=H;break}case Ne.Q:{var M=n[A++],B=n[A++],F=n[A++],W=n[A++];if(v){var P=p[g++];if(_+P>h){var E=(h-_)/P;Zu(u,M,F,E,es),Zu(c,B,W,E,rs),e.quadraticCurveTo(es[1],rs[1],es[2],rs[2]);break t}_+=P}e.quadraticCurveTo(M,B,F,W),u=F,c=W;break}case Ne.A:var K=n[A++],U=n[A++],$=n[A++],ut=n[A++],ot=n[A++],it=n[A++],Nt=n[A++],Kt=!n[A++],xt=$>ut?$:ut,wt=vi($-ut)>.001,Ot=ot+it,bt=!1;if(v){var P=p[g++];_+P>h&&(Ot=ot+it*(h-_)/P,bt=!0),_+=P}if(wt&&e.ellipse?e.ellipse(K,U,$,ut,Nt,ot,Ot,Kt):e.arc(K,U,xt,ot,Ot,Kt),bt)break t;D&&(s=ns(ot)*$+K,l=as(ot)*ut+U),u=ns(Ot)*$+K,c=as(Ot)*ut+U;break;case Ne.R:s=u=n[A],l=c=n[A+1],f=n[A++],d=n[A++];var Pt=n[A++],se=n[A++];if(v){var P=p[g++];if(_+P>h){var O=h-_;e.moveTo(f,d),e.lineTo(f+Ey(O,Pt),d),O-=Pt,O>0&&e.lineTo(f+Pt,d+Ey(O,se)),O-=se,O>0&&e.lineTo(f+Py(Pt-O,0),d+se),O-=Pt,O>0&&e.lineTo(f,d+Py(se-O,0));break t}_+=P}e.rect(f,d,Pt,se);break;case Ne.Z:if(v){var P=p[g++];if(_+P>h){var E=(h-_)/P;e.lineTo(u*(1-E)+s*E,c*(1-E)+l*E);break t}_+=P}e.closePath(),u=s,c=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=Ne,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function Ji(r,e,t,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>e+s&&o>n+s||or+s&&i>t+s||ie+f&&c>n+f&&c>i+f&&c>s+f||cr+f&&u>t+f&&u>a+f&&u>o+f||ue+u&&l>n+u&&l>i+u||lr+u&&s>t+u&&s>a+u||st||c+ua&&(a+=sc);var d=Math.atan2(l,s);return d<0&&(d+=sc),d>=n&&d<=a||d+sc>=n&&d+sc<=a}function di(r,e,t,n,a,i){if(i>e&&i>n||ia?s:0}var to=Ga.CMD,is=Math.PI*2,Sz=1e-4;function Az(r,e){return Math.abs(r-e)e&&u>n&&u>i&&u>s||u1&&Tz(),v=gr(e,n,i,s,Fn[0]),d>1&&(p=gr(e,n,i,s,Fn[1]))),d===2?_e&&s>n&&s>i||s=0&&u<=1){for(var c=0,f=Ar(e,n,i,u),d=0;dt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);qr[0]=-l,qr[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=is-1e-4){n=0,a=is;var c=i?1:-1;return o>=qr[0]+r&&o<=qr[1]+r?c:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=is,a+=is);for(var d=0,v=0;v<2;v++){var p=qr[v];if(p+r>o){var y=Math.atan2(s,p),c=i?1:-1;y<0&&(y=is+y),(y>=n&&y<=a||y+is>=n&&y+is<=a)&&(y>Math.PI/2&&y1&&(t||(s+=di(l,u,c,f,n,a))),_&&(l=i[p],u=i[p+1],c=l,f=u),y){case to.M:c=i[p++],f=i[p++],l=c,u=f;break;case to.L:if(t){if(Ji(l,u,i[p],i[p+1],e,n,a))return!0}else s+=di(l,u,i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case to.C:if(t){if(bz(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,n,a))return!0}else s+=Cz(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case to.Q:if(t){if(WS(l,u,i[p++],i[p++],i[p],i[p+1],e,n,a))return!0}else s+=Dz(l,u,i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case to.A:var g=i[p++],h=i[p++],w=i[p++],b=i[p++],S=i[p++],A=i[p++];p+=1;var T=!!(1-i[p++]);d=Math.cos(S)*w+g,v=Math.sin(S)*b+h,_?(c=d,f=v):s+=di(l,u,d,v,n,a);var D=(n-g)*b/w+g;if(t){if(xz(g,h,b,S,S+A,T,e,D,a))return!0}else s+=Lz(g,h,b,S,S+A,T,D,a);l=Math.cos(S+A)*w+g,u=Math.sin(S+A)*b+h;break;case to.R:c=l=i[p++],f=u=i[p++];var L=i[p++],I=i[p++];if(d=c+L,v=f+I,t){if(Ji(c,f,d,f,e,n,a)||Ji(d,f,d,v,e,n,a)||Ji(d,v,c,v,e,n,a)||Ji(c,v,c,f,e,n,a))return!0}else s+=di(d,f,d,v,n,a),s+=di(c,v,c,f,n,a);break;case to.Z:if(t){if(Ji(l,u,c,f,e,n,a))return!0}else s+=di(l,u,c,f,n,a);l=c,u=f;break}}return!t&&!Az(u,f)&&(s+=di(l,u,c,f,n,a)||0),s!==0}function Mz(r,e,t){return US(r,0,!1,e,t)}function Iz(r,e,t,n){return US(r,e,!0,t,n)}var Kh=Ft({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Jo),Ez={style:Ft({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Yh.style)},By=Ra.concat(["invisible","culling","z","z2","zlevel","parent"]),oe=function(r){J(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s.5?oy:n>.2?f3:sy}else if(t)return sy}return oy},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if(Ct(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Lh(t,0)0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Hu)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c==null?4:c)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect(),o=this.style;if(t=a[0],n=a[1],i.contain(t,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Iz(s,l/u,t,n)))return!0}if(this.hasFill())return Mz(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Hu,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){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=n:lt(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Hu)},e.prototype.createStyle=function(t){return vh(Kh,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=lt({},this.shape))},e.prototype._applyStateObj=function(t,n,a,i,o,s){r.prototype._applyStateObj.call(this,t,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=lt({},a.shape),lt(u,n.shape)):(u=lt({},i?this.shape:a.shape),lt(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=lt({},this.shape);for(var c={},f=ue(u),d=0;d0},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(t){return vh(Pz,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var n=t.text;n!=null?n+="":n="";var a=Ju(n,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Vn);_l.prototype.type="tspan";var kz=Ft({x:0,y:0},Jo),Rz={style:Ft({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Yh.style)};function Nz(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Tr=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return vh(kz,t)},e.prototype._getSize=function(t){var n=this.style,a=n[t];if(a!=null)return a;var i=Nz(n.image)?n.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=n[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Rz},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Jt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Vn);Tr.prototype.type="image";function Oz(r,e){var t=e.x,n=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),r.moveTo(t+s,n),r.lineTo(t+a-l,n),l!==0&&r.arc(t+a-l,n+l,l,-Math.PI/2,0),r.lineTo(t+a,n+i-u),u!==0&&r.arc(t+a-u,n+i-u,u,0,Math.PI/2),r.lineTo(t+c,n+i),c!==0&&r.arc(t+c,n+i-c,c,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5)}var wl=Math.round;function ZS(r,e,t){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(wl(n*2)===wl(a*2)&&(r.x1=r.x2=os(n,s,!0)),wl(i*2)===wl(o*2)&&(r.y1=r.y2=os(i,s,!0))),r}}function YS(r,e,t){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=os(n,s,!0),r.y=os(a,s,!0),r.width=Math.max(os(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(os(a+o,s,!1)-r.y,o===0?0:1)),r}}function os(r,e,t){if(!e)return r;var n=wl(r*2);return(n+wl(e))%2===0?n/2:(n+(t?1:-1))/2}var Bz=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),zz={},de=function(r){J(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Bz},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var l=YS(zz,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?Oz(t,n):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(oe);de.prototype.type="rect";var XS={fill:"#000"},jS=2,Vz={style:Ft({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},Yh.style)},pe=function(r){J(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=XS,n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,E=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,M=0;M=0&&(M=A[R],M.align==="right");)this._placeToken(M,t,D,g,E,"right",w),L-=M.width,E-=M.width,R--;for(P+=(i-(P-_)-(h-E)-L)/2;I<=R;)M=A[I],this._placeToken(M,t,D,g,P+M.width/2,"center",w),P+=M.width,I++;g+=D}},e.prototype._placeToken=function(t,n,a,i,o,s,l){var u=n.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,f=i+a/2;c==="top"?f=i+t.height/2:c==="bottom"&&(f=i+a-t.height/2);var d=!t.isLineHolder&&zy(u);d&&this._renderBackground(u,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,f-t.height/2,t.width,t.height);var v=!!u.backgroundColor,p=t.textPadding;p&&(o=r2(o,s,p),f-=t.height/2-p[0]-t.innerHeight/2);var y=this._getOrCreateChild(_l),_=y.createStyle();y.useStyle(_);var g=this._defaultStyle,h=!1,w=0,b=e2("fill"in u?u.fill:"fill"in n?n.fill:(h=!0,g.fill)),S=t2("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!g.autoStroke||h)?(w=jS,g.stroke):null),A=u.textShadowBlur>0||n.textShadowBlur>0;_.text=t.text,_.x=o,_.y=f,A&&(_.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,_.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",_.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,_.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),_.textAlign=s,_.textBaseline="middle",_.font=t.font||Gi,_.opacity=kn(u.opacity,n.opacity,1),KS(_,u),S&&(_.lineWidth=kn(u.lineWidth,n.lineWidth,w),_.lineDash=Ut(u.lineDash,n.lineDash),_.lineDashOffset=n.lineDashOffset||0,_.stroke=S),b&&(_.fill=b);var T=t.contentWidth,D=t.contentHeight;y.setBoundingRect(new Jt(tc(_.x,T,_.textAlign),pl(_.y,D,_.textBaseline),T,D))},e.prototype._renderBackground=function(t,n,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,f=l&&l.image,d=l&&!f,v=t.borderRadius,p=this,y,_;if(d||t.lineHeight||u&&c){y=this._getOrCreateChild(de),y.useStyle(y.createStyle()),y.style.fill=null;var g=y.shape;g.x=a,g.y=i,g.width=o,g.height=s,g.r=v,y.dirtyShape()}if(d){var h=y.style;h.fill=l||null,h.fillOpacity=Ut(t.fillOpacity,1)}else if(f){_=this._getOrCreateChild(Tr),_.onload=function(){p.dirtyStyle()};var w=_.style;w.image=l.image,w.x=a,w.y=i,w.width=o,w.height=s}if(u&&c){var h=y.style;h.lineWidth=u,h.stroke=c,h.strokeOpacity=Ut(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2)}var b=(y||_).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=kn(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return QS(t)&&(n=[t.fontStyle,t.fontWeight,qS(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&ca(n)||t.textFont||t.font},e}(Vn),Fz={left:!0,right:1,center:1},Gz={top:1,bottom:1,middle:1},$S=["fontStyle","fontWeight","fontSize","fontFamily"];function qS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?dg+"px":r+"px"}function KS(r,e){for(var t=0;t<$S.length;t++){var n=$S[t],a=e[n];a!=null&&(r[n]=a)}}function QS(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function Wz(r){return JS(r),N(r.rich,JS),r}function JS(r){if(r){r.font=pe.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||Fz[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||Gz[t]?t:"top";var n=r.padding;n&&(r.padding=_g(r.padding))}}function t2(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function e2(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function r2(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function n2(r){var e=r.text;return e!=null&&(e+=""),e}function zy(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Zt=ve(),Vy=function(r,e,t,n){if(n){var a=Zt(n);a.dataIndex=t,a.dataType=e,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=Zt(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},a2=1,i2={},o2=ve(),Fy=ve(),Gy=0,lc=1,Qh=2,Kr=["emphasis","blur","select"],uc=["normal","emphasis","blur","select"],bl=10,Hz=9,ss="highlight",Jh="downplay",cc="select",tv="unselect",fc="toggleSelect";function xl(r){return r!=null&&r!=="none"}function ev(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function s2(r){ev(r,"emphasis",Qh)}function l2(r){r.hoverState===Qh&&ev(r,"normal",Gy)}function Wy(r){ev(r,"blur",lc)}function u2(r){r.hoverState===lc&&ev(r,"normal",Gy)}function Uz(r){r.selected=!0}function Zz(r){r.selected=!1}function c2(r,e,t){e(r,t)}function pi(r,e,t){c2(r,e,t),r.isGroup&&r.traverse(function(n){c2(n,e,t)})}function rv(r,e){switch(e){case"emphasis":r.hoverState=Qh;break;case"normal":r.hoverState=Gy;break;case"blur":r.hoverState=lc;break;case"select":r.selected=!0}}function Yz(r,e,t,n){for(var a=r.style,i={},o=0;o=0,i=!1;if(r instanceof oe){var o=o2(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(xl(s)||xl(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=lt({},n),u=lt({},u),u.fill=s):!xl(u.fill)&&xl(s)?(i=!0,n=lt({},n),u=lt({},u),u.fill=Zg(s)):!xl(u.stroke)&&xl(l)&&(i||(n=lt({},n),u=lt({},u)),u.stroke=Zg(l)),n.style=u}}if(n&&n.z2==null){i||(n=lt({},n));var c=r.z2EmphasisLift;n.z2=r.z2+(c!=null?c:bl)}return n}function jz(r,e,t){if(t&&t.z2==null){t=lt({},t);var n=r.z2SelectLift;t.z2=r.z2+(n!=null?n:Hz)}return t}function $z(r,e,t){var n=te(r.currentStates,e)>=0,a=r.style.opacity,i=n?null:Yz(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=lt({},t),o=lt({opacity:n?a:i.opacity*.1},o),t.style=o),t}function Hy(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return Xz(this,r,e,t);if(r==="blur")return $z(this,r,t);if(r==="select")return jz(this,r,t)}return t}function ls(r){r.stateProxy=Hy;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Hy),t&&(t.stateProxy=Hy)}function f2(r,e){!g2(r,e)&&!r.__highByOuter&&pi(r,s2)}function h2(r,e){!g2(r,e)&&!r.__highByOuter&&pi(r,l2)}function gi(r,e){r.__highByOuter|=1<<(e||0),pi(r,s2)}function yi(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&pi(r,l2)}function v2(r){pi(r,Wy)}function Uy(r){pi(r,u2)}function d2(r){pi(r,Uz)}function p2(r){pi(r,Zz)}function g2(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function y2(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(a,i){var o=Fy(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){u2(u)}),s&&t.push(i)),o.isBlured=!1}),N(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function Zy(r,e,t,n){var a=n.getModel();t=t||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function us(r,e,t){cs(r,!0),pi(r,ls),jy(r,e,t)}function eV(r){cs(r,!1)}function Xe(r,e,t,n){n?eV(r):us(r,e,t)}function jy(r,e,t){var n=Zt(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var _2=["emphasis","blur","select"],rV={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Er(r,e,t,n){t=t||"itemStyle";for(var a=0;a<_2.length;a++){var i=_2[a],o=e.getModel([i,t]),s=r.ensureState(i);s.style=n?n(o):o[rV[t]]()}}function cs(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function eo(r){return!!(r&&r.__highDownDispatcher)}function nV(r,e,t){var n=Zt(r);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=t}function aV(r){var e=i2[r];return e==null&&a2<=32&&(e=i2[r]=a2++),e}function $y(r){var e=r.type;return e===cc||e===tv||e===fc}function w2(r){var e=r.type;return e===ss||e===Jh}function iV(r){var e=o2(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var Sl=Ga.CMD,oV=[[],[],[]],b2=Math.sqrt,sV=Math.atan2;function x2(r,e){if(e){var t=r.data,n=r.len(),a,i,o,s,l,u,c=Sl.M,f=Sl.C,d=Sl.L,v=Sl.R,p=Sl.A,y=Sl.Q;for(o=0,s=0;o1&&(o*=qy(p),s*=qy(p));var y=(a===i?-1:1)*qy((o*o*(s*s)-o*o*(v*v)-s*s*(d*d))/(o*o*(v*v)+s*s*(d*d)))||0,_=y*o*v/s,g=y*-s*d/o,h=(r+t)/2+av(f)*_-nv(f)*g,w=(e+n)/2+nv(f)*_+av(f)*g,b=A2([1,0],[(d-_)/o,(v-g)/s]),S=[(d-_)/o,(v-g)/s],A=[(-1*d-_)/o,(-1*v-g)/s],T=A2(S,A);if(Ky(S,A)<=-1&&(T=hc),Ky(S,A)>=1&&(T=0),T<0){var D=Math.round(T/hc*1e6)/1e6;T=hc*2+D%2*hc}c.addData(u,h,w,o,s,b,T,f,i)}var lV=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,uV=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function cV(r){var e=new Ga;if(!r)return e;var t=0,n=0,a=t,i=n,o,s=Ga.CMD,l=r.match(lV);if(!l)return e;for(var u=0;uM*M+B*B&&(D=I,L=P),{cx:D,cy:L,x0:-c,y0:-f,x1:D*(a/S-1),y1:L*(a/S-1)}}function yV(r){var e;if(ft(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function mV(r,e){var t,n=dc(e.r,0),a=dc(e.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,d=!!e.clockwise,v=E2(u-l),p=v>Jy&&v%Jy;if(p>pa&&(v=p),!(n>pa))r.moveTo(c,f);else if(v>Jy-pa)r.moveTo(c+n*Al(l),f+n*fs(l)),r.arc(c,f,n,l,u,!d),a>pa&&(r.moveTo(c+a*Al(u),f+a*fs(u)),r.arc(c,f,a,u,l,d));else{var y=void 0,_=void 0,g=void 0,h=void 0,w=void 0,b=void 0,S=void 0,A=void 0,T=void 0,D=void 0,L=void 0,I=void 0,P=void 0,E=void 0,R=void 0,M=void 0,B=n*Al(l),F=n*fs(l),W=a*Al(u),j=a*fs(u),H=v>pa;if(H){var K=e.cornerRadius;K&&(t=yV(K),y=t[0],_=t[1],g=t[2],h=t[3]);var U=E2(n-a)/2;if(w=Wa(U,g),b=Wa(U,h),S=Wa(U,y),A=Wa(U,_),L=T=dc(w,b),I=D=dc(S,A),(T>pa||D>pa)&&(P=n*Al(u),E=n*fs(u),R=a*Al(l),M=a*fs(l),vpa){var wt=Wa(g,L),Ot=Wa(h,L),bt=ov(R,M,B,F,n,wt,d),Pt=ov(P,E,W,j,n,Ot,d);r.moveTo(c+bt.cx+bt.x0,f+bt.cy+bt.y0),L0&&r.arc(c+bt.cx,f+bt.cy,wt,zr(bt.y0,bt.x0),zr(bt.y1,bt.x1),!d),r.arc(c,f,n,zr(bt.cy+bt.y1,bt.cx+bt.x1),zr(Pt.cy+Pt.y1,Pt.cx+Pt.x1),!d),Ot>0&&r.arc(c+Pt.cx,f+Pt.cy,Ot,zr(Pt.y1,Pt.x1),zr(Pt.y0,Pt.x0),!d))}else r.moveTo(c+B,f+F),r.arc(c,f,n,l,u,!d);if(!(a>pa)||!H)r.lineTo(c+W,f+j);else if(I>pa){var wt=Wa(y,I),Ot=Wa(_,I),bt=ov(W,j,P,E,a,-Ot,d),Pt=ov(B,F,R,M,a,-wt,d);r.lineTo(c+bt.cx+bt.x0,f+bt.cy+bt.y0),I0&&r.arc(c+bt.cx,f+bt.cy,Ot,zr(bt.y0,bt.x0),zr(bt.y1,bt.x1),!d),r.arc(c,f,a,zr(bt.cy+bt.y1,bt.cx+bt.x1),zr(Pt.cy+Pt.y1,Pt.cx+Pt.x1),d),wt>0&&r.arc(c+Pt.cx,f+Pt.cy,wt,zr(Pt.y1,Pt.x1),zr(Pt.y0,Pt.x0),!d))}else r.lineTo(c+W,f+j),r.arc(c,f,a,u,l,d)}r.closePath()}}}var _V=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Qr=function(r){J(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new _V},e.prototype.buildPath=function(t,n){mV(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(oe);Qr.prototype.type="sector";var wV=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),pc=function(r){J(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new wV},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.PI*2;t.moveTo(a+n.r,i),t.arc(a,i,n.r,0,o,!1),t.moveTo(a+n.r0,i),t.arc(a,i,n.r0,0,o,!0)},e}(oe);pc.prototype.type="ring";function bV(r,e,t,n){var a=[],i=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,v=r.length;d=2){if(n){var i=bV(a,n,t,e.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;svs[1]){if(s=!1,i)return s;var c=Math.abs(vs[0]-hs[1]),f=Math.abs(hs[0]-vs[1]);Math.min(c,f)>a.len()&&(c0){var f=c.duration,d=c.delay,v=c.easing,p={duration:f,delay:d||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function _e(r,e,t,n,a,i){em("update",r,e,t,n,a,i)}function We(r,e,t,n,a,i){em("enter",r,e,t,n,a,i)}function Cl(r){if(!r.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function G2(r){return!r.isGroup}function NV(r){return r.shape!=null}function _c(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){G2(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return NV(o)&&(s.shape=lt({},o.shape)),s}var i=n(r);e.traverse(function(o){if(G2(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),_e(o,l,t,Zt(o).dataIndex)}}})}function W2(r,e){return ht(r,function(t){var n=t[0];n=fv(n,e.x),n=hv(n,e.x+e.width);var a=t[1];return a=fv(a,e.y),a=hv(a,e.y+e.height),[n,a]})}function OV(r,e){var t=fv(r.x,e.x),n=hv(r.x+r.width,e.x+e.width),a=fv(r.y,e.y),i=hv(r.y+r.height,e.y+e.height);if(n>=t&&i>=a)return{x:t,y:a,width:n-t,height:i-a}}function wc(r,e,t){var n=lt({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),Ft(a,t),new Tr(n)):vv(r.replace("path://",""),n,t,"center")}function bc(r,e,t,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var _=am(v,p,c,f)/d;return!(_<0||_>1)}function am(r,e,t,n){return r*n-t*e}function BV(r){return r<=1e-6&&r>=-1e-6}function ps(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,a=Ct(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&N(ue(l),function(c){Mt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Zt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:Ft({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function U2(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function no(r,e){if(r)if(ft(r))for(var t=0;t=0&&s.push(l)}),s}}function ao(r,e){return qt(qt({},r,!0),e,!0)}const $V={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},qV={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var mv="ZH",um="EN",Il=um,_v={},cm={},tA=ie.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Il).toUpperCase();return r.indexOf(mv)>-1?mv:Il}():Il;function eA(r,e){r=r.toUpperCase(),cm[r]=new Me(e),_v[r]=e}function KV(r){if(Ct(r)){var e=_v[r.toUpperCase()]||{};return r===mv||r===um?Wt(e):qt(Wt(e),Wt(_v[Il]),!1)}else return qt(Wt(r),Wt(_v[Il]),!1)}function fm(r){return cm[r]}function QV(){return cm[Il]}eA(um,$V),eA(mv,qV);var hm=1e3,vm=hm*60,xc=vm*60,Wn=xc*24,rA=Wn*365,Sc={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}"},wv="{yyyy}-{MM}-{dd}",nA={year:"{yyyy}",month:"{yyyy}-{MM}",day:wv,hour:wv+" "+Sc.hour,minute:wv+" "+Sc.minute,second:wv+" "+Sc.second,millisecond:Sc.none},dm=["year","month","day","hour","minute","second","millisecond"],aA=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function io(r,e){return r+="","0000".substr(0,e-r.length)+r}function El(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function JV(r){return r===El(r)}function tF(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function bv(r,e,t,n){var a=Oa(r),i=a[pm(t)](),o=a[Pl(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[xv(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[Ac(t)](),f=(c-1)%12+1,d=a[Sv(t)](),v=a[Av(t)](),p=a[Tv(t)](),y=c>=12?"pm":"am",_=y.toUpperCase(),g=n instanceof Me?n:fm(n||tA)||QV(),h=g.getModel("time"),w=h.get("month"),b=h.get("monthAbbr"),S=h.get("dayOfWeek"),A=h.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,y+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,io(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,w[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,io(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,io(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,A[u]).replace(/{e}/g,u+"").replace(/{HH}/g,io(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,io(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,io(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,io(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,io(p,3)).replace(/{S}/g,p+"")}function eF(r,e,t,n,a){var i=null;if(Ct(t))i=t;else if(Rt(t))i=t(r.value,e,{level:r.level});else{var o=lt({},Sc);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(ft(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return bv(new Date(r.value),i,a,n)}function iA(r,e){var t=Oa(r),n=t[Pl(e)]()+1,a=t[xv(e)](),i=t[Ac(e)](),o=t[Sv(e)](),s=t[Av(e)](),l=t[Tv(e)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,v=d&&a===1,p=v&&n===1;return p?"year":v?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function oA(r,e,t){var n=ye(r)?Oa(r):r;switch(e=e||iA(r,t),e){case"year":return n[pm(t)]();case"half-year":return n[Pl(t)]()>=6?1:0;case"quarter":return Math.floor((n[Pl(t)]()+1)/4);case"month":return n[Pl(t)]();case"day":return n[xv(t)]();case"half-day":return n[Ac(t)]()/24;case"hour":return n[Ac(t)]();case"minute":return n[Sv(t)]();case"second":return n[Av(t)]();case"millisecond":return n[Tv(t)]()}}function pm(r){return r?"getUTCFullYear":"getFullYear"}function Pl(r){return r?"getUTCMonth":"getMonth"}function xv(r){return r?"getUTCDate":"getDate"}function Ac(r){return r?"getUTCHours":"getHours"}function Sv(r){return r?"getUTCMinutes":"getMinutes"}function Av(r){return r?"getUTCSeconds":"getSeconds"}function Tv(r){return r?"getUTCMilliseconds":"getMilliseconds"}function rF(r){return r?"setUTCFullYear":"setFullYear"}function sA(r){return r?"setUTCMonth":"setMonth"}function lA(r){return r?"setUTCDate":"setDate"}function uA(r){return r?"setUTCHours":"setHours"}function cA(r){return r?"setUTCMinutes":"setMinutes"}function fA(r){return r?"setUTCSeconds":"setSeconds"}function hA(r){return r?"setUTCMilliseconds":"setMilliseconds"}function vA(r){if(!yy(r))return Ct(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function dA(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var kl=_g;function gm(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&ca(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Oa(r):r;if(isNaN(+l)){if(s)return"-"}else return bv(l,n,t)}if(e==="ordinal")return ch(r)?a(r):ye(r)&&i(r)?r+"":"-";var u=hi(r);return i(u)?vA(u):ch(r)?a(r):typeof r=="boolean"?r+"":"-"}var pA=["a","b","c","d","e","f","g"],ym=function(r,e){return"{"+r+(e==null?"":e)+"}"};function gA(r,e,t){ft(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function ys(r,e){return e=e||"transparent",Ct(r)?r:zt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Cv(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Dv=N,yA=["left","right","top","bottom","width","height"],ms=[["width","left","right"],["height","top","bottom"]];function mm(r,e,t,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect(),v,p;if(r==="horizontal"){var y=c.width+(d?-d.x+c.x:0);v=i+y,v>n||l.newline?(i=0,v=y,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var _=c.height+(d?-d.y+c.y:0);p=o+_,p>a||l.newline?(i+=s+t,o=0,p=_,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+t:o=p+t)})}var _s=mm;jt(mm,"vertical"),jt(mm,"horizontal");function iF(r,e,t){var n=e.width,a=e.height,i=At(r.left,n),o=At(r.top,a),s=At(r.right,n),l=At(r.bottom,a);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=a),t=kl(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(r,e,t){t=kl(t||0);var n=e.width,a=e.height,i=At(r.left,n),o=At(r.top,a),s=At(r.right,n),l=At(r.bottom,a),u=At(r.width,n),c=At(r.height,a),f=t[2]+t[0],d=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-d-i),isNaN(c)&&(c=a-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=n-s-u-d),isNaN(o)&&(o=a-l-c-f),r.left||r.right){case"center":i=n/2-u/2-t[3];break;case"right":i=n-u-d;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=n-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var p=new Jt(i+t[3],o+t[0],u,c);return p.margin=t,p}function Lv(r,e,t,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Jt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=hr(Ft({width:u.width,height:u.height},e),t,n),d=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=d,i.y=v):(i.x+=d,i.y+=v),i===r&&r.markRedraw(),!0}function oF(r,e){return r[ms[e][0]]!=null||r[ms[e][1]]!=null&&r[ms[e][2]]!=null}function Tc(r){var e=r.layoutMode||r.constructor.layoutMode;return zt(e)?e:e?{type:e}:null}function oo(r,e,t){var n=t&&t.ignoreSize;!ft(n)&&(n=[n,n]);var a=o(ms[0],0),i=o(ms[1],1);u(ms[0],r,a),u(ms[1],r,i);function o(c,f){var d={},v=0,p={},y=0,_=2;if(Dv(c,function(w){p[w]=r[w]}),Dv(c,function(w){s(e,w)&&(d[w]=p[w]=e[w]),l(d,w)&&v++,l(p,w)&&y++}),n[f])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(y===_||!v)return p;if(v>=_)return d;for(var g=0;g=0;l--)s=qt(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var a=t+"Index",i=t+"Id";return ic(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},n)},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}(Me);PS(le,Me),Uh(le),XV(le),jV(le,lF);function lF(r){var e=[];return N(le.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=ht(e,function(t){return Ba(t).main}),r!=="dataset"&&te(e,"dataset")<=0&&e.unshift("dataset"),e}var _A="";typeof navigator!="undefined"&&(_A=navigator.platform||"");var Nl="rgba(0, 0, 0, 0.2)";const uF={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Nl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Nl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Nl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Nl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Nl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Nl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:_A.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var _m=Et(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Hn="original",Vr="arrayRows",Un="objectRows",Ha="keyedColumns",_i="typedArray",wA="unknown",Ua="column",Ol="row",kr={Must:1,Might:2,Not:3},bA=ve();function cF(r){bA(r).datasetMap=Et()}function xA(r,e,t){var n={},a=bm(e);if(!a||!r)return n;var i=[],o=[],s=e.ecModel,l=bA(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,f;r=r.slice(),N(r,function(y,_){var g=zt(y)?y:r[_]={name:y};g.type==="ordinal"&&c==null&&(c=_,f=p(g)),n[g.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});N(r,function(y,_){var g=y.name,h=p(y);if(c==null){var w=d.valueWayDim;v(n[g],w,h),v(o,w,h),d.valueWayDim+=h}else if(c===_)v(n[g],0,h),v(i,0,h);else{var w=d.categoryWayDim;v(n[g],w,h),v(o,w,h),d.categoryWayDim+=h}});function v(y,_,g){for(var h=0;he)return r[n];return r[t-1]}function CA(r,e,t,n,a,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?t:pF(n,o);if(c=c||t,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function gF(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Mv,Cc,DA,Tm="\0_ec_inner",LA=1,yF={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},mF={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Iv={};function _F(r){N(r,function(e,t){if(!le.hasClass(t)){var n=yF[t];n&&!Iv[n]&&(Ir("Component "+t+` is used but not imported. +import { `+n+` } from 'echarts/components'; +echarts.use([`+n+"]);"),Iv[n]=!0)}})}var Cm=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Me(i),this._locale=new Me(o),this._optionManager=s},e.prototype.setOption=function(t,n,a){process.env.NODE_ENV!=="production"&&(Vt(t!=null,"option is null/undefined"),Vt(t[Tm]!==LA,"please use chart.getOption()"));var i=EA(n);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,n){return this._resetOption(t,EA(n))},e.prototype._resetOption=function(t,n){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");process.env.NODE_ENV!=="production"&&_F(o),!this.option||t==="recreate"?DA(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&N(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Et(),u=n&&n.replaceMergeMainTypeMap;cF(this),N(t,function(f,d){f!=null&&(le.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?Wt(f):qt(a[d],f,!0))}),u&&u.each(function(f,d){le.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),le.topologicalTravel(s,le.getAllClassMainTypes(),c,this);function c(f){var d=vF(this,f,Pe(t[f])),v=i.get(f),p=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",y=TS(v,d,p);W3(y,f,le),a[f]=null,i.set(f,null),o.set(f,0);var _=[],g=[],h=0,w,b;N(y,function(S,A){var T=S.existing,D=S.newOption;if(!D)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var L=f==="series",I=le.getClass(f,S.keyInfo.subType,!L);if(!I){if(process.env.NODE_ENV!=="production"){var P=S.keyInfo.subType,E=mF[P];Iv[P]||(Iv[P]=!0,Ir(E?"Series "+P+` is used but not imported. +import { `+E+` } from 'echarts/charts'; +echarts.use([`+E+"]);":"Unknown series "+P))}return}if(f==="tooltip"){if(w){process.env.NODE_ENV!=="production"&&(b||(Ye("Currently only one tooltip component is allowed."),b=!0));return}w=!0}if(T&&T.constructor===I)T.name=S.keyInfo.name,T.mergeOption(D,this),T.optionUpdated(D,!1);else{var R=lt({componentIndex:A},S.keyInfo);T=new I(D,this,this,R),lt(T,R),S.brandNew&&(T.__requireNewView=!0),T.init(D,this,this),T.optionUpdated(null,!0)}}T?(_.push(T.option),g.push(T),h++):(_.push(void 0),g.push(void 0))},this),a[f]=_,i.set(f,g),o.set(f,h),f==="series"&&Mv(this)}this._seriesIndices||Mv(this)},e.prototype.getOption=function(){var t=Wt(this.option);return N(t,function(n,a){if(le.hasClass(a)){for(var i=Pe(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ml(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[Tm],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,n){var a=this._componentsMap.get(t);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function LF(r,e){return r.join(",")===e.join(",")}var Zn=N,Dc=zt,kA=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Lm(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=kA.length;t=0;_--){var g=r[_];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,v)),p>=0){var h=g.data.getByRawIndex(g.stackResultDimension,p);if(l==="all"||l==="positive"&&h>0||l==="negative"&&h<0||l==="samesign"&&d>=0&&h>0||l==="samesign"&&d<=0&&h<0){d=L3(d,h),y=h;break}}}return n[0]=d,n[1]=y,n})})}var Ev=function(){function r(e){this.data=e.data||(e.sourceFormat===Ha?{}:[]),this.sourceFormat=e.sourceFormat||wA,this.seriesLayoutBy=e.seriesLayoutBy||Ua,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;ny&&(y=w)}v[0]=p,v[1]=y}},a=function(){return this._data?this._data.length/this._dimSize:0};UA=(e={},e[Vr+"_"+Ua]={pure:!0,appendData:i},e[Vr+"_"+Ol]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Un]={pure:!0,appendData:i},e[Ha]={pure:!0,appendData:function(o){var s=this._data;N(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[Hn]={appendData:i},e[_i]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&Vt(Yr(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(y=o.interpolatedValue[_])}return y!=null?y+"":""})}},r.prototype.getRawValue=function(e,t){return zl(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r}();function QA(r){var e,t;return zt(r)?r.type?t=r:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+$r(r)):e=r,{text:e,frag:t}}function Ic(r){return new ZF(r)}var ZF=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(h){return!(h>=1)&&(h=1),h}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(t?(process.env.NODE_ENV!=="production"&&Vt(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!=="production"&&Vt(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||v=this._outputDueEnd),this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,n,a,i){JA.reset(t,n,a,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:JA.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),ft(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex1&&n>0?s:o}};return i;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},XF=function(){function r(e,t){if(!ye(t)){var n="";process.env.NODE_ENV!=="production"&&(n='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),Te(n)}this._opFn=eT[e],this._rvalFloat=hi(t)}return r.prototype.evaluate=function(e){return ye(e)?this._opFn(e,this._rvalFloat):this._opFn(hi(e),this._rvalFloat)},r}(),rT=function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=ye(e)?e:hi(e),a=ye(t)?t:hi(t),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Ct(e),l=Ct(t);s&&(n=l?e:0),l&&(a=s?t:0)}return na?-this._resultLT:0},r}(),jF=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=hi(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(t=hi(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function $F(r,e){return r==="eq"||r==="ne"?new jF(r==="eq",e):Mt(eT,r)?new XF(r,e):null}var qF=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return so(e,t)},r}();function KF(r,e){var t=new qF,n=r.data,a=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Ua&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Te(o));var s=[],l={},u=r.dimensionsDefine;if(u)N(u,function(y,_){var g=y.name,h={index:_,name:g,displayName:y.displayName};if(s.push(h),g!=null){var w="";Mt(l,g)&&(process.env.NODE_ENV!=="production"&&(w='dimension name "'+g+'" duplicated.'),Te(w)),l[g]=h}});else for(var c=0;c65535?i4:o4}function Fl(){return[1/0,-1/0]}function s4(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function sT(r,e,t,n,a){var i=oT[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u_[1]&&(_[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ht(o,function(h){return h.property}),c=0;cg[1]&&(g[1]=_)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,n){var a=this._chunks,i=a[e],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=p,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i=f&&h<=d||isNaN(h))&&(l[u++]=y),y++}p=!0}else if(i===2){for(var _=v[a[0]],w=v[a[1]],b=e[a[1]][0],S=e[a[1]][1],g=0;g=f&&h<=d||isNaN(h))&&(A>=b&&A<=S||isNaN(A))&&(l[u++]=y),y++}p=!0}}if(!p)if(i===1)for(var g=0;g=f&&h<=d||isNaN(h))&&(l[u++]=T)}else for(var g=0;ge[I][1])&&(D=!1)}D&&(l[u++]=t.getRawIndex(g))}return ug[1]&&(g[1]=_)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,f,d,v=new(Vl(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var p=1;pc&&(c=f,d=b)}P>0&&Ps&&(y=s-c);for(var _=0;_p&&(p=h,v=c+_)}var w=this.getRawIndex(f),b=this.getRawIndex(v);fc-p&&(l=c-p,s.length=l);for(var y=0;yf[1]&&(f[1]=g),d[v++]=h}return i._count=v,i._indices=d,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,n,a,i){return so(t[i],this._dimensions[i])}Om={arrayRows:e,objectRows:function(t,n,a,i){return so(t[n],this._dimensions[i])},keyedColumns:e,original:function(t,n,a,i){var o=t&&(t.value==null?t:t.value);return so(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,n,a,i){return t[i]}}}(),r}(),lT=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,a,i;if(Ec(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Yr(s)?_i:Hn,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},v=Ut(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=Ut(f.sourceHeader,d.sourceHeader),y=Ut(f.dimensions,d.dimensions),_=v!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||y;a=_?[Em(s,{seriesLayoutBy:v,sourceHeader:p,dimensions:y},l)]:[]}else{var g=e;if(n){var h=this._applyTransform(t);a=h.sourceList,i=h.upstreamSignList}else{var w=g.get("source",!0);a=[Em(w,this._getSourceMetaRawOption(),null)],i=[]}}process.env.NODE_ENV!=="production"&&Vt(a&&i),this._setLocalSource(a,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&Vt(a!=null||n!=null),a!=null){var i="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(i="When using `fromTransformResult`, there should be only one upstream dataset"),cT(i))}var o,s=[],l=[];return N(e,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&(process.env.NODE_ENV!=="production"&&(f="Can not retrieve result by `fromTransformResult`: "+a),cT(f)),s.push(c),l.push(u._getVersionSign())}),n?o=n4(n,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[zF(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return N(r.blocks,function(a){var i=dT(a);i>=e&&(e=i+ +(n&&(!i||zm(a)&&!a.noHeader)))}),e}return 0}function f4(r,e,t,n){var a=e.noHeader,i=v4(dT(e)),o=[],s=e.blocks||[];Vt(!s||ft(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Mt(u,l)){var c=new rT(u[l],null);s.sort(function(y,_){return c.evaluate(y.sortParam,_.sortParam)})}else l==="seriesDesc"&&s.reverse()}N(s,function(y,_){var g=e.valueFormatter,h=vT(y)(g?lt(lt({},r),{valueFormatter:g}):r,y,_>0?i.html:0,n);h!=null&&o.push(h)});var f=r.renderMode==="richText"?o.join(i.richText):Vm(n,o.join(""),a?t:i.html);if(a)return f;var d=gm(e.header,"ordinal",r.useUTC),v=hT(n,r.renderMode).nameStyle,p=fT(n);return r.renderMode==="richText"?gT(r,d,v)+i.richText+f:Vm(n,'
'+jr(d)+"
"+f,t)}function h4(r,e,t,n){var a=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,c=e.valueFormatter||r.valueFormatter||function(b){return b=ft(b)?b:[b],ht(b,function(S,A){return gm(S,ft(v)?v[A]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),d=i?"":gm(l,"ordinal",u),v=e.valueType,p=o?[]:c(e.value,e.dataIndex),y=!s||!i,_=!s&&i,g=hT(n,a),h=g.nameStyle,w=g.valueStyle;return a==="richText"?(s?"":f)+(i?"":gT(r,d,h))+(o?"":g4(r,p,y,_,w)):Vm(n,(s?"":f)+(i?"":d4(d,!s,h))+(o?"":p4(p,y,_,w)),t)}}function pT(r,e,t,n,a,i){if(r){var o=vT(r),s={useUTC:a,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function v4(r){return{html:u4[r],richText:c4[r]}}function Vm(r,e,t){var n='
',a="margin: "+t+"px 0 0",i=fT(r);return'
'+e+n+"
"}function d4(r,e,t){var n=e?"margin-left:2px":"";return''+jr(r)+""}function p4(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=ft(r)?r:[r],''+ht(r,function(o){return jr(o)}).join("  ")+""}function gT(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function g4(r,e,t,n,a){var i=[a],o=n?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(ft(e)?e.join(" "):e,i)}function yT(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return ys(n)}function mT(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var Fm=function(){function r(){this.richTextStyles={},this._nextStyleNameId=yS()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var a=n==="richText"?this._generateStyleName():null,i=aF({color:t,type:e,renderMode:n,markerId:a});return Ct(i)?i:(process.env.NODE_ENV!=="production"&&Vt(a),this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};ft(t)?N(t,function(i){return lt(n,i)}):lt(n,t);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},r}();function _T(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=ft(s),u=yT(e,t),c,f,d,v;if(o>1||l&&!o){var p=y4(s,e,t,i,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,v=p.inlineValues[0]}else if(o){var y=a.getDimensionInfo(i[0]);v=c=zl(a,t,i[0]),f=y.type}else v=c=l?s[0]:s;var _=my(e),g=_&&e.name||"",h=a.getName(t),w=n?g:h;return _r("section",{header:g,noHeader:n||!_,sortParam:v,blocks:[_r("nameValue",{markerType:"item",markerColor:u,name:w,noName:!ca(w),value:c,valueType:f,dataIndex:t})].concat(d||[])})}function y4(r,e,t,n,a){var i=e.getData(),o=Ia(r,function(f,d,v){var p=i.getDimensionInfo(v);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?N(n,function(f){c(zl(i,t,f),f)}):N(r,c);function c(f,d){var v=i.getDimensionInfo(d);!v||v.otherDims.tooltip===!1||(o?u.push(_r("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var lo=ve();function Rv(r,e){return r.getName(e)||r.getId(e)}var Nv="__universalTransitionEnabled",ze=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Ic({count:_4,reset:w4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=lo(this).sourceManager=new lT(this);i.prepareSource();var o=this.getInitialData(t,a);bT(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&Vt(o,"getInitialData returned invalid data."),lo(this).dataBeforeProcessed=o,wT(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=Tc(this),i=a?Rl(t):{},o=this.subType;le.hasClass(o)&&(o+="Series"),qt(t,n.getTheme().get(this.subType)),qt(t,this.getDefaultOption()),$o(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&oo(t,i,a)},e.prototype.mergeOption=function(t,n){t=qt(this.option,t,!0),this.fillDataTextStyle(t.data);var a=Tc(this);a&&oo(this.option,t,a);var i=lo(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,n);bT(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,lo(this).dataBeforeProcessed=o,wT(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Yr(t))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,a){var i=this.ecModel,o=Sm.prototype.getColorFromPalette.call(this,t,n,a);return o||(o=i.getColorFromPalette(t,n,a)),o},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,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Rv(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Nv])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){zt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,n)}},e.registerClass=function(t){return le.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}(le);rr(ze,Pv),rr(ze,Sm),PS(ze,le);function wT(r){var e=r.name;my(r)||(r.name=m4(r)||e)}function m4(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return N(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function _4(r){return r.model.getRawData().count()}function w4(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),b4}function b4(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function bT(r,e){N(zu(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,jt(x4,e))})}function x4(r,e){var t=Gm(r);return t&&t.setOutputEnd((e||this).count()),e}function Gm(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var Ue=function(){function r(){this.group=new Ht,this.uid=Ml("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){},r.prototype.updateLayout=function(e,t,n,a){},r.prototype.updateVisual=function(e,t,n,a){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();by(Ue),Uh(Ue);function Gl(){var r=ve();return function(e){var t=r(e),n=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var xT=ve(),S4=Gl(),ke=function(){function r(){this.group=new Ht,this.uid=Ml("viewChart"),this.renderTask=Ic({plan:A4,reset:T4}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},r.prototype.highlight=function(e,t,n,a){var i=e.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&Ir("Unknown dataType "+a.dataType);return}AT(i,a,"emphasis")},r.prototype.downplay=function(e,t,n,a){var i=e.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&Ir("Unknown dataType "+a.dataType);return}AT(i,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateLayout=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateVisual=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.eachRendered=function(e){no(this.group,e)},r.markUpdateMethod=function(e,t){xT(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function ST(r,e,t){r&&eo(r)&&(e==="emphasis"?gi:yi)(r,t)}function AT(r,e,t){var n=qo(r,e),a=e&&e.highlightKey!=null?aV(e.highlightKey):null;n!=null?N(Pe(n),function(i){ST(r.getItemGraphicEl(i),t,a)}):r.eachItemGraphicEl(function(i){ST(i,t,a)})}by(ke,["dispose"]),Uh(ke);function A4(r){return S4(r.model)}function T4(r){var e=r.model,t=r.ecModel,n=r.api,a=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=a&&xT(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,a),C4[l]}var C4={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Ov="\0__throttleOriginMethod",TT="\0__throttleRate",CT="\0__throttleType";function Wm(r,e,t){var n,a=0,i=0,o=null,s,l,u,c;e=e||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var d=function(){for(var v=[],p=0;p=0?f():o=setTimeout(f,-s),a=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(v){c=v},d}function Wl(r,e,t,n){var a=r[e];if(a){var i=a[Ov]||a,o=a[CT],s=a[TT];if(s!==t||o!==n){if(t==null||!n)return r[e]=i;a=r[e]=Wm(i,t,n==="debounce"),a[Ov]=i,a[CT]=n,a[TT]=t}return a}}function Pc(r,e){var t=r[e];t&&t[Ov]&&(t.clear&&t.clear(),r[e]=t[Ov])}var DT=ve(),LT={itemStyle:Qo(J2,!0),lineStyle:Qo(Q2,!0)},D4={lineStyle:"stroke",itemStyle:"fill"};function MT(r,e){var t=r.visualStyleMapper||LT[e];return t||(console.warn("Unknown style type '"+e+"'."),LT.itemStyle)}function IT(r,e){var t=r.visualDrawType||D4[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var L4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=MT(r,n),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=IT(r,n),u=o[l],c=Rt(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=d,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Rt(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Rt(o.stroke)?d:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,p){var y=r.getDataParams(p),_=lt({},o);_[l]=c(y),v.setItemVisual(p,"style",_)}}}},kc=new Me,M4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=MT(r,n),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){kc.option=l[n];var u=a(kc),c=o.ensureUniqueItemVisual(s,"style");lt(c,u),kc.option.decal&&(o.setItemVisual(s,"decal",kc.option.decal),kc.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},I4={performRawSeries:!0,overallReset:function(r){var e=Et();r.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),DT(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var n=t.getRawData(),a={},i=t.getData(),o=DT(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=IT(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",p=n.count();d[l]=t.getColorFromPalette(v,o,p)}})}})}},Bv=Math.PI;function E4(r,e){e=e||{},Ft(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 t=new Ht,n=new de({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var a=new pe({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new de({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new sv({shape:{startAngle:-Bv/2,endAngle:-Bv/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Bv*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Bv*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var ET=function(){function r(e,t,n,a){this._stageTaskMap=Et(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!t&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Et();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;N(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),Vt(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,n),a.overallReset&&this._createOverallStageTask(a,i,t,n)},this)},r.prototype.prepareView=function(e,t,n,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,a){a=a||{};var i=!1,o=this;N(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var v,p=d.agentStubMap;p.each(function(_){s(a,_)&&(_.dirty(),v=!0)}),v&&d.dirty(),o.updatePayload(d,n);var y=o.getPerformArgs(d,a.block);p.each(function(_){_.perform(y)}),d.perform(y)&&(i=!0)}else f&&f.each(function(_,g){s(a,_)&&_.dirty();var h=o.getPerformArgs(_,a.block);h.skip=!l.performRawSeries&&t.isSeriesFiltered(_.context.model),o.updatePayload(_,n),_.perform(h)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Et(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var d=f.uid,v=s.set(d,o&&o.get(d)||Ic({plan:O4,reset:B4,count:V4}));v.context={model:f,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(e,t,n,a){var i=this,o=t.overallTask=t.overallTask||Ic({reset:P4});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Et(),u=e.seriesType,c=e.getTargetSeries,f=!0,d=!1,v="";process.env.NODE_ENV!=="production"&&(v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),Vt(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,p):c?c(n,a).each(p):(f=!1,N(n.getSeries(),p));function p(y){var _=y.uid,g=l.set(_,s&&s.get(_)||(d=!0,Ic({reset:k4,onDirty:N4})));g.context={model:y,overallProgress:f},g.agent=o,g.__block=f,i._pipe(y,g)}d&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return Rt(e)&&(e={overallReset:e,seriesType:F4(e)}),e.uid=Ml("stageHandler"),t&&(e.visualType=t),e},r}();function P4(r){r.overallReset(r.ecModel,r.api,r.payload)}function k4(r){return r.overallProgress&&R4}function R4(){this.agent.dirty(),this.getDownstream().dirty()}function N4(){this.agent&&this.agent.dirty()}function O4(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function B4(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Pe(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?ht(e,function(t,n){return PT(n)}):z4}var z4=PT(0);function PT(r){return function(e,t){var n=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var i=e.start;i0&&v===u.length-d.length){var p=u.slice(0,v);p!=="data"&&(t.mainType=p,t[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:a}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(f,d,v,p){return f[v]==null||d[p||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Hm=["symbol","symbolSize","symbolRotate","symbolOffset"],VT=Hm.concat(["symbolKeepAspect"]),H4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o=0&&Ts(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Zm(r,e,t){for(var n=e.type==="radial"?aG(r,e,t):nG(r,e,t),a=e.colorStops,i=0;i0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:ye(r)?[r]:ft(r)?r:null}function Ym(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&oG(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=ht(t,function(i){return i/a}),n/=a)}return[t,n]}var sG=new Ga(!0);function Wv(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function WT(r){return typeof r=="string"&&r!=="none"}function Hv(r){var e=r.fill;return e!=null&&e!=="none"}function HT(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function UT(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Xm(r,e,t){var n=Sy(e.image,e.__image,t);if(Zh(n)){var a=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*dh),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function lG(r,e,t,n){var a,i=Wv(t),o=Hv(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||sG,f=e.__dirty;if(!n){var d=t.fill,v=t.stroke,p=o&&!!d.colorStops,y=i&&!!v.colorStops,_=o&&!!d.image,g=i&&!!v.image,h=void 0,w=void 0,b=void 0,S=void 0,A=void 0;(p||y)&&(A=e.getBoundingRect()),p&&(h=f?Zm(r,d,A):e.__canvasFillGradient,e.__canvasFillGradient=h),y&&(w=f?Zm(r,v,A):e.__canvasStrokeGradient,e.__canvasStrokeGradient=w),_&&(b=f||!e.__canvasFillPattern?Xm(r,d,e):e.__canvasFillPattern,e.__canvasFillPattern=b),g&&(S=f||!e.__canvasStrokePattern?Xm(r,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),p?r.fillStyle=h:_&&(b?r.fillStyle=b:o=!1),y?r.strokeStyle=w:g&&(S?r.strokeStyle=S:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var D,L;r.setLineDash&&t.lineDash&&(a=Ym(e),D=a[0],L=a[1]);var I=!0;(u||f&Hu)&&(c.setDPR(r.dpr),l?c.setContext(null):(c.setContext(r),I=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(r,l?s:1),D&&(r.setLineDash(D),r.lineDashOffset=L),n||(t.strokeFirst?(i&&UT(r,t),o&&HT(r,t)):(o&&HT(r,t),i&&UT(r,t))),D&&r.setLineDash([])}function uG(r,e,t){var n=e.__image=Sy(t.image,e.__image,e,e.onload);if(!(!n||!Zh(n))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;r.drawImage(n,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,f=o-u,d=s-c;r.drawImage(n,u,c,f,d,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function cG(r,e,t){var n,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||Gi,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=Ym(e),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(Wv(t)&&r.strokeText(a,t.x,t.y),Hv(t)&&r.fillText(a,t.x,t.y)):(Hv(t)&&r.fillText(a,t.x,t.y),Wv(t)&&r.strokeText(a,t.x,t.y)),i&&r.setLineDash([])}}var ZT=["shadowBlur","shadowOffsetX","shadowOffsetY"],YT=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function XT(r,e,t,n,a){var i=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){hn(r,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?Jo.opacity:o}(n||e.blend!==t.blend)&&(i||(hn(r,a),i=!0),r.globalCompositeOperation=e.blend||Jo.blend);for(var s=0;so.maxTileWidth&&F("maxTileWidth"),B>o.maxTileHeight&&F("maxTileHeight")}return{width:Math.max(1,Math.min(P,o.maxTileWidth)),height:Math.max(1,Math.min(B,o.maxTileHeight))}}function I(){D&&(D.clearRect(0,0,S.width,S.height),o.backgroundColor&&(D.fillStyle=o.backgroundColor,D.fillRect(0,0,S.width,S.height)));for(var P=0,E=0;E0&&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,n,a){if(this[Wr]){process.env.NODE_ENV!=="production"&&Ir("`setOption` should not be called during main process.");return}if(this._disposed){xn(this.id);return}var i,o,s;if(zt(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Wr]=!0,!this._model||n){var l=new AF(this._api),u=this._theme,c=this._model=new Cm;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},i0);var f={seriesTransition:s,optionChanged:!0};if(a)this[vn]={silent:i,updateParams:f},this[Wr]=!1,this.getZr().wakeUp();else{try{Xl(this),uo.update.call(this,null,f)}catch(d){throw this[vn]=null,this[Wr]=!1,d}this._ssr||this._zr.flush(),this[vn]=null,this[Wr]=!1,Bc.call(this,i),zc.call(this,i)}},e.prototype.setTheme=function(){da("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||ie.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return process.env.NODE_ENV!=="production"&&ar("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ie.svgSupported){var t=this._zr,n=t.storage.getDisplayList();return N(n,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){xn(this.id);return}t=t||{};var n=t.excludeComponents,a=this._model,i=[],o=this;N(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return N(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){xn(this.id);return}var n=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(AC[a]){var l=s,u=s,c=-s,f=-s,d=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();N(Fc,function(w,b){if(w.group===a){var S=n?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(Wt(t)),A=w.getDom().getBoundingClientRect();l=i(A.left,l),u=i(A.top,u),c=o(A.right,c),f=o(A.bottom,f),d.push({dom:S,left:A.left,top:A.top})}}),l*=v,u*=v,c*=v,f*=v;var p=c-l,y=f-u,_=Wi.createCanvas(),g=cS(_,{renderer:n?"svg":"canvas"});if(g.resize({width:p,height:y}),n){var h="";return N(d,function(w){var b=w.left-l,S=w.top-u;h+=''+w.dom+""}),g.painter.getSvgRoot().innerHTML=h,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new de({shape:{x:0,y:0,width:p,height:y},style:{fill:t.connectedBackgroundColor}})),N(d,function(w){var b=new Tr({style:{x:w.left*v-l,y:w.top*v-u,image:w.dom}});g.add(b)}),g.refreshImmediately(),_.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n){return Jm(this,"convertToPixel",t,n)},e.prototype.convertFromPixel=function(t,n){return Jm(this,"convertFromPixel",t,n)},e.prototype.containPixel=function(t,n){if(this._disposed){xn(this.id);return}var a=this._model,i,o=ac(a,t);return N(o,function(s,l){l.indexOf("Models")>=0&&N(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?i=i||f.containPoint(n,u):process.env.NODE_ENV!=="production"&&Ye(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Ye(l+": containPoint is not supported")},this)},this),!!i},e.prototype.getVisual=function(t,n){var a=this._model,i=ac(a,t,{defaultMainType:"series"}),o=i.seriesModel;process.env.NODE_ENV!=="production"&&(o||Ye("There is no specified series model"));var s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Um(s,l,n):Nc(s,n)},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;N(NG,function(n){var a=function(i){var o=t.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&Ss(s,function(p){var y=Zt(p);if(y&&y.dataIndex!=null){var _=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return l=_&&_.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return l=lt({},y.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),v=d&&t[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(d&&v)&&Ye("model or view can not be found by params"),l.event=i,l.type=n,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:v},t.trigger(n,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(n,a,t)}),N(Vc,function(n,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),N(["selectchanged"],function(n){t._messageCenter.on(n,function(a){this.trigger(n,a)},t)}),Z4(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){xn(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){xn(this.id);return}this._disposed=!0;var t=this.getDom();t&&MS(this.getDom(),s0,"");var n=this,a=n._api,i=n._model;N(n._componentsViews,function(o){o.dispose(i,a)}),N(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Fc[n.id]},e.prototype.resize=function(t){if(this[Wr]){process.env.NODE_ENV!=="production"&&Ir("`resize` should not be called during main process.");return}if(this._disposed){xn(this.id);return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=t&&t.silent;this[vn]&&(i==null&&(i=this[vn].silent),a=!0,this[vn]=null),this[Wr]=!0;try{a&&Xl(this),uo.update.call(this,{type:"resize",animation:lt({duration:0},t&&t.animation)})}catch(o){throw this[Wr]=!1,o}this[Wr]=!1,Bc.call(this,i),zc.call(this,i)}},e.prototype.showLoading=function(t,n){if(this._disposed){xn(this.id);return}if(zt(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!o0[t]){process.env.NODE_ENV!=="production"&&Ye("Loading effects "+t+" not exists.");return}var a=o0[t](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)},e.prototype.hideLoading=function(){if(this._disposed){xn(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=lt({},t);return n.type=Vc[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){xn(this.id);return}if(zt(n)||(n={silent:!!n}),!!jv[t.type]&&this._model){if(this[Wr]){this._pendingActions.push(t);return}var a=n.silent;e0.call(this,t,a);var i=n.flush;i?this._zr.flush():i!==!1&&ie.browser.weChat&&this._throttledZrFlush(),Bc.call(this,a),zc.call(this,a)}},e.prototype.updateLabelLayout=function(){_a.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){xn(this.id);return}var n=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&Vt(t.data&&i),i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Xl=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Qm(f,!0),Qm(f,!1),d.plan()},Qm=function(f,d){for(var v=f._model,p=f._scheduler,y=d?f._componentsViews:f._chartsViews,_=d?f._componentsMap:f._chartsMap,g=f._zr,h=f._api,w=0;wd.get("hoverLayerThreshold")&&!ie.node&&!ie.worker&&d.eachSeries(function(_){if(!_.preventUsingHoverLayer){var g=f._chartsMap[_.__viewId];g.__alive&&g.eachRendered(function(h){h.states.emphasis&&(h.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var v=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=v)})}function s(f,d){if(!f.preventAutoZ){var v=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(y){return l(y,v,p,-1/0),!0})}}function l(f,d,v,p){var y=f.getTextContent(),_=f.getTextGuideLine(),g=f.isGroup;if(g)for(var h=f.childrenRef(),w=0;w0?{duration:y,delay:v.get("delay"),easing:v.get("easing")}:null;d.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Cl(g))return;if(g instanceof oe&&iV(g),g.__dirty){var h=g.prevStates;h&&g.useStates(h)}if(p){g.stateTransition=_;var w=g.getTextContent(),b=g.getTextGuideLine();w&&(w.stateTransition=_),b&&(b.stateTransition=_)}g.__dirty&&a(g)}})}_C=function(f){return new(function(d){J(v,d);function v(){return d!==null&&d.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(p){for(;p;){var y=p.__ecComponentInfo;if(y!=null)return f._model.getComponent(y.mainType,y.index);p=p.parent}},v.prototype.enterEmphasis=function(p,y){gi(p,y),Xn(f)},v.prototype.leaveEmphasis=function(p,y){yi(p,y),Xn(f)},v.prototype.enterBlur=function(p){v2(p),Xn(f)},v.prototype.leaveBlur=function(p){Uy(p),Xn(f)},v.prototype.enterSelect=function(p){d2(p),Xn(f)},v.prototype.leaveSelect=function(p){p2(p),Xn(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},v.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},v}(PA))(f)},wC=function(f){function d(v,p){for(var y=0;y=0)){LC.push(t);var i=ET.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,r.push(i)}}function MC(r,e){o0[r]=e}function HG(r,e,t){var n=wG("registerMap");n&&n(r,e,t)}var UG=r4;Ds($m,L4),Ds(Zv,M4),Ds(Zv,I4),Ds($m,H4),Ds(Zv,U4),Ds(lC,mG),CC(VA),DC(SG,OF),MC("default",E4),Za({type:ss,event:ss,update:ss},Je),Za({type:Jh,event:Jh,update:Jh},Je),Za({type:cc,event:cc,update:cc},Je),Za({type:tv,event:tv,update:tv},Je),Za({type:fc,event:fc,update:fc},Je),TC("light",G4),TC("dark",zT);var IC=[],ZG={registerPreprocessor:CC,registerProcessor:DC,registerPostInit:VG,registerPostUpdate:FG,registerUpdateLifecycle:l0,registerAction:Za,registerCoordinateSystem:GG,registerLayout:WG,registerVisual:Ds,registerTransform:UG,registerLoading:MC,registerMap:HG,registerImpl:_G,PRIORITY:PG,ComponentModel:le,ComponentView:Ue,SeriesModel:ze,ChartView:ke,registerComponentModel:function(r){le.registerClass(r)},registerComponentView:function(r){Ue.registerClass(r)},registerSeriesModel:function(r){ze.registerClass(r)},registerChartView:function(r){ke.registerClass(r)},registerSubTypeDefaulter:function(r,e){le.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){x3(r,e)}};function ae(r){if(ft(r)){N(r,function(e){ae(e)});return}te(IC,r)>=0||(IC.push(r),Rt(r)&&(r={install:r}),r.install(ZG))}function Gc(r){return r==null?0:r.length||1}function EC(r){return r}var bi=function(){function r(e,t,n,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||EC,this._newKeyGetter=a||EC,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var Wc=zt,co=ht,KG=typeof Int32Array=="undefined"?Array:Int32Array,QG="e\0\0",BC=-1,JG=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],t6=["_approximateExtent"],zC,Qv,Hc,jl,f0,Uc,h0,en=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;kC(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=0),a&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=Et();N(o,function(_){y.set(i[_].storeDimIndex,_)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var a=this._schema.getSourceDimension(t);if(a)return a.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(ye(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Unknown dimension "+e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var a=this,i;if(e instanceof Bm&&(i=e),!i){var o=this.dimensions,s=Im(e)||Br(e)?new YA(e,o.length):e;i=new Bm;var l=co(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=XG(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=a;s=t)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Hn;if(l&&!a.pure)for(var u=[],c=e;c0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),ft(i)?i=i.slice():Wc(i)&&(i=lt({},i)),a[t]=i),i},r.prototype.setItemVisual=function(e,t,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Wc(t)?lt(a,t):a[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Wc(e)?lt(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?lt(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Vy(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){N(this._graphicEls,function(n,a){n&&e&&e.call(t,n,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:co(this.dimensions,this._getDimInfo,this),this.hostModel)),f0(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];Rt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return t.apply(this,[a].concat(mg(arguments)))})},r.internalField=function(){zC=function(e){var t=e._invertedIndicesMap;N(t,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=t[a]=new KG(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),r}();function Zc(r,e){Im(r)||(r=Pm(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],a=Et(),i=[],o=r6(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&OC(o),l=n===r.dimensionsDefine,u=l?NC(r):RC(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(r,o));for(var f=Et(c),d=new aT(o),v=0;v0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function r6(r,e,t,n){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return N(e,function(i){var o;zt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function n6(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var a6=function(){function r(e){this.coordSysDims=[],this.axisMap=Et(),this.categoryAxisMap=Et(),this.coordSysName=e}return r}();function i6(r){var e=r.get("coordinateSystem"),t=new a6(e),n=o6[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var o6={cartesian2d:function(r,e,t,n){var a=r.getReferringComponents("xAxis",ir).models[0],i=r.getReferringComponents("yAxis",ir).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+nr(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+nr(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),$l(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),$l(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var a=r.getReferringComponents("singleAxis",ir).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],t.set("single",a),$l(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var a=r.getReferringComponents("polar",ir).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!i)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),$l(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),$l(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();N(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),$l(u)&&(n.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function $l(r){return r.get("type")==="category"}function s6(r,e,t){t=t||{};var n=t.byIndex,a=t.stackedCoordDimension,i,o,s;l6(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,c,f,d;if(N(i,function(h,w){Ct(h)&&(i[w]=h={name:h}),l&&!h.isExtraCoord&&(!n&&!u&&h.ordinalMeta&&(u=h),!c&&h.type!=="ordinal"&&h.type!=="time"&&(!a||a===h.coordDim)&&(c=h))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+r.id,d="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,p=c.type,y=0;N(i,function(h){h.coordDim===v&&y++});var _={name:f,coordDim:v,coordDimIndex:y,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:d,coordDim:d,coordDimIndex:y+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(_.storeDimIndex=s.ensureCalculationDimension(d,p),g.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(_),o.appendCalculationDimension(g)):(i.push(_),i.push(g))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function l6(r){return!kC(r.schema)}function fo(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function VC(r,e){return fo(r,e)?r.getCalculationInfo("stackResultDimension"):e}function u6(r,e){var t=r.get("coordinateSystem"),n=Bl.get(t),a;return e&&e.coordSysDims&&(a=ht(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=qv(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function c6(r,e,t){var n,a;return t&&N(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function xi(r,e,t){t=t||{};var n=e.getSourceManager(),a,i=!1;r?(i=!0,a=Pm(r)):(a=n.getSource(),i=a.sourceFormat===Hn);var o=i6(e),s=u6(e,o),l=t.useEncodeDefaulter,u=Rt(l)?l:l?jt(xA,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Zc(a,c),d=c6(f.dimensions,t.createInvertedIndices,o),v=i?null:n.getSharedDataStore(f),p=s6(e,{schema:f,store:v}),y=new en(f,e);y.setCalculationInfo(p);var _=d!=null&&f6(a)?function(g,h,w,b){return b===d?w:this.defaultDimValueGetter(g,h,w,b)}:null;return y.hasItemOption=!1,y.initData(i?a:v,null,_),y}function f6(r){if(r.sourceFormat===Hn){var e=h6(r.data||[]);return!ft(yl(e))}}function h6(r){for(var e=0;et[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();Uh(Ya);var v6=0,v0=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++v6}return r.createByAxisModel=function(e){var t=e.option,n=t.data,a=n&&ht(n,d6);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Ct(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Et(this.categories))},r}();function d6(r){return zt(r)&&r.value!=null?r.value:r+""}function p6(r){var e=Math.pow(10,Wh(Math.abs(r))),t=Math.abs(r/e);return t===0||t===1||t===2||t===3||t===5}function d0(r){return r.type==="interval"||r.type==="log"}function g6(r,e,t,n){var a={},i=r[1]-r[0],o=a.interval=pS(i/e);t!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=FC(o),l=a.niceTickExtent=[qe(Math.ceil(r[0]/o)*o,s),qe(Math.floor(r[1]/o)*o,s)];return y6(l,r),a}function p0(r){var e=Math.pow(10,Wh(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,qe(t*e)}function FC(r){return Na(r)+2}function GC(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function y6(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),GC(r,0,e),GC(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Jv(r,e){return r>=e[0]&&r<=e[1]}function td(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function ed(r,e){return r*(e[1]-e[0])+e[0]}var rd=function(r){J(e,r);function e(t){var n=r.call(this,t)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new v0({})),ft(a)&&(a=new v0({categories:ht(a,function(i){return zt(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(t){return t==null?NaN:Ct(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Jv(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),td(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(ed(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],n=this._extent,a=n[0];a<=n[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Ya);Ya.registerClass(rd);var Ls=qe,Si=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Jv(t,this._extent)},e.prototype.normalize=function(t){return td(t,this._extent)},e.prototype.scale=function(t){return ed(t,this._extent)},e.prototype.setExtent=function(t,n){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(n)||(a[1]=parseFloat(n))},e.prototype.unionExtent=function(t){var n=this._extent;t[0]n[1]&&(n[1]=t[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=FC(t)},e.prototype.getTicks=function(t){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:Ls(c+n,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}t[n]=i}}return t}function ZC(r){var e=w6(r),t=[];return N(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var p=At(n.get("barWidth"),s),y=At(n.get("barMaxWidth"),s),_=At(n.get("barMinWidth")||(qC(n)?.5:1),s),g=n.get("barGap"),h=n.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:y,barMinWidth:_,barGap:g,barCategoryGap:h,axisKey:y0(i),stackId:HC(n)})}),YC(t)}function YC(r){var e={};N(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var v=n.barGap;v!=null&&(s.gap=v);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return N(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=ue(i).length;s=Math.max(35-l*4,15)+"%"}var u=At(s,o),c=At(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,v=(f-u)/(d+(d-1)*c);v=Math.max(v,0),N(i,function(g){var h=g.maxWidth,w=g.minWidth;if(g.width){var b=g.width;h&&(b=Math.min(b,h)),w&&(b=Math.max(b,w)),g.width=b,f-=b+c*b,d--}else{var b=v;h&&hb&&(b=w),b!==v&&(g.width=b,f-=b+c*b,d--)}}),v=(f-u)/(d+(d-1)*c),v=Math.max(v,0);var p=0,y;N(i,function(g,h){g.width||(g.width=v),y=g,p+=g.width*(1+c)}),y&&(p-=y.width*c);var _=-p/2;N(i,function(g,h){t[a][h]=t[a][h]||{bandWidth:o,offset:_,width:g.width},_+=g.width*(1+c)})}),t}function b6(r,e,t){if(r&&e){var n=r[y0(e)];return n}}function XC(r,e){var t=UC(r,e),n=ZC(t);N(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=HC(a),u=n[y0(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function jC(r){return{seriesType:r,plan:Gl(),reset:function(e){if($C(e)){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),f=fo(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),v=x6(a,i),p=qC(e),y=e.get("barMinHeight")||0,_=c&&t.getDimensionIndex(c),g=t.getLayout("size"),h=t.getLayout("offset");return{progress:function(w,b){for(var S=w.count,A=p&&Xa(S*3),T=p&&l&&Xa(S*3),D=p&&Xa(S),L=n.master.getRect(),I=d?L.width:L.height,P,E=b.getStore(),R=0;(P=w.next())!=null;){var M=E.get(f?_:o,P),B=E.get(s,P),F=v,W=void 0;f&&(W=+M-E.get(o,P));var j=void 0,H=void 0,K=void 0,U=void 0;if(d){var $=n.dataToPoint([M,B]);if(f){var ut=n.dataToPoint([W,B]);F=ut[0]}j=F,H=$[1]+h,K=$[0]-F,U=g,Math.abs(K)0?t:1:t))}var S6=function(r,e,t,n){for(;t>>1;r[a][1]a&&(this._approxInterval=a);var s=nd.length,l=Math.min(S6(nd,this._approxInterval,0,s),s-1);this._interval=nd[l][1],this._minLevelUnit=nd[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return ye(t)?t:+Oa(t)},e.prototype.contain=function(t){return Jv(this.parse(t),this._extent)},e.prototype.normalize=function(t){return td(this.parse(t),this._extent)},e.prototype.scale=function(t){return ed(t,this._extent)},e.type="time",e}(Si),nd=[["second",hm],["minute",vm],["hour",xc],["quarter-day",xc*6],["half-day",xc*12],["day",Wn*1.2],["half-week",Wn*3.5],["week",Wn*7],["month",Wn*31],["quarter",Wn*95],["half-year",rA/2],["year",rA]];function A6(r,e,t,n){var a=Oa(e),i=Oa(t),o=function(p){return oA(a,p,n)===oA(i,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},v=function(){return d()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return v()}}function T6(r,e){return r/=Wn,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function C6(r){var e=30*Wn;return r/=e,r>6?6:r>3?3:r>2?2:1}function D6(r){return r/=xc,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function KC(r,e){return r/=e?vm:hm,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function L6(r){return pS(r)}function M6(r,e,t){var n=new Date(r);switch(El(e)){case"year":case"month":n[sA(t)](0);case"day":n[lA(t)](1);case"hour":n[uA(t)](0);case"minute":n[cA(t)](0);case"second":n[fA(t)](0),n[hA(t)](0)}return n.getTime()}function I6(r,e,t,n){var a=1e4,i=aA,o=0;function s(I,P,E,R,M,B,F){for(var W=new Date(P),j=P,H=W[R]();j1&&B===0&&E.unshift({value:E[0].value-j})}}for(var B=0;B=n[0]&&h<=n[1]&&f++)}var w=(n[1]-n[0])/e;if(f>w*1.5&&d>w/1.5||(u.push(_),f>w||r===i[v]))break}c=[]}}}process.env.NODE_ENV!=="production"&&o>=a&&Ye("Exceed safe limit.");for(var b=Ae(ht(u,function(I){return Ae(I,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(I){return I.length>0}),S=[],A=b.length-1,v=0;v0;)i*=10;var s=[qe(k6(n[0]/i)*i),qe(P6(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Yc.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=wa(t)/wa(this.base),Jv(t,this._extent)},e.prototype.normalize=function(t){return t=wa(t)/wa(this.base),td(t,this._extent)},e.prototype.scale=function(t){return t=ed(t,this._extent),ad(this.base,t)},e.type="log",e}(Ya),JC=_0.prototype;JC.getMinorTicks=Yc.getMinorTicks,JC.getLabel=Yc.getLabel;function id(r,e){return E6(r,Na(e))}Ya.registerClass(_0);var R6=function(){function r(e,t,n){this._prepareParams(e,t,n)}return r.prototype._prepareParams=function(e,t,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,v=this._determinedMax;return d!=null&&(s=d,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(e,t){process.env.NODE_ENV!=="production"&&Vt(!this.frozen),this[O6[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var n=N6[e];process.env.NODE_ENV!=="production"&&Vt(!this.frozen&&this[n]==null),this[n]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),N6={min:"_determinedMin",max:"_determinedMax"},O6={min:"_dataMin",max:"_dataMax"};function tD(r,e,t){var n=r.rawExtentInfo;return n||(n=new R6(r,e,t),r.rawExtentInfo=n,n)}function od(r,e){return e==null?null:Bo(e)?NaN:r.parse(e)}function eD(r,e){var t=r.type,n=tD(r,e,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&t==="time"){var s=UC("bar",o),l=!1;if(N(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=ZC(s),c=B6(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function B6(r,e,t,n){var a=t.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=b6(n,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;N(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;N(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-r,f=1-(s+l)/i,d=c/f-c;return e+=d*(l/u),r-=d*(s/u),{min:r,max:e}}function ql(r,e){var t=e,n=eD(r,t),a=n.extent,i=t.get("splitNumber");r instanceof _0&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function sd(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new rd({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new m0({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ya.getClass(e)||Si)}}function z6(r){var e=r.scale.getExtent(),t=e[0],n=e[1];return!(t>0&&n>0||t<0&&n<0)}function Kl(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(e):Ct(e)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i!=null?i:"");return o}}(e):Rt(e)?function(n){return function(a,i){return t!=null&&(i=a.value-t),n(w0(r,a),i,a.level!=null?{level:a.level}:null)}}(e):function(n){return r.scale.getLabel(n)}}function w0(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function V6(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var n,a,i=t.getExtent();t instanceof rd?a=t.count():(n=t.getTicks(),a=n.length);var o=r.getLabelModel(),s=Kl(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cr[1]&&(r[1]=a[1])})}var Xc=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),W6=1e-8;function nD(r,e){return Math.abs(r-e)a&&(n=o,a=l)}if(n)return U6(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return N(o,function(s){s.type==="polygon"?aD(s.exterior,a,i,t):N(s.points,function(l){aD(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Jt(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(t[0],t[1]))return!1;t:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/t,l/t])}return n}function X6(r,e){return r=Y6(r),ht(Ae(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new oD(o[0],o.slice(1)));break;case"MultiPolygon":N(a.coordinates,function(l){l[0]&&i.push(new oD(l[0],l.slice(1)))});break;case"LineString":i.push(new sD([a.coordinates]));break;case"MultiLineString":i.push(new sD(a.coordinates))}var s=new lD(n[e||"name"],i,n.cp);return s.properties=n,s})}var jc=ve();function cD(r,e){var t=ht(e,function(n){return r.scale.parse(n)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function j6(r){var e=r.getLabelModel().get("customValues");if(e){var t=Kl(r),n=r.scale.getExtent(),a=cD(r,e),i=Ae(a,function(o){return o>=n[0]&&o<=n[1]});return{labels:ht(i,function(o){var s={value:o};return{formattedLabel:t(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?q6(r):Q6(r)}function $6(r,e){var t=r.getTickModel().get("customValues");if(t){var n=r.scale.getExtent(),a=cD(r,t);return{ticks:Ae(a,function(i){return i>=n[0]&&i<=n[1]})}}return r.type==="category"?K6(r,e):{ticks:ht(r.scale.getTicks(),function(i){return i.value})}}function q6(r){var e=r.getLabelModel(),t=fD(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function fD(r,e){var t=hD(r,"labels"),n=b0(e),a=vD(t,n);if(a)return a;var i,o;return Rt(n)?i=gD(r,n):(o=n==="auto"?J6(r):n,i=pD(r,o)),dD(t,n,{labels:i,labelCategoryInterval:o})}function K6(r,e){var t=hD(r,"ticks"),n=b0(e),a=vD(t,n);if(a)return a;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),Rt(n))i=gD(r,n,!0);else if(n==="auto"){var s=fD(r,r.getLabelModel());o=s.labelCategoryInterval,i=ht(s.labels,function(l){return l.tickValue})}else o=n,i=pD(r,o,!0);return dD(t,n,{ticks:i,tickCategoryInterval:o})}function Q6(r){var e=r.scale.getTicks(),t=Kl(r);return{labels:ht(e,function(n,a){return{level:n.level,formattedLabel:t(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function hD(r,e){return jc(r)[e]||(jc(r)[e]=[])}function vD(r,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,v=0;l<=i[1];l+=s){var p=0,y=0,_=Ju(t({value:l}),e.font,"center","top");p=_.width*1.3,y=_.height*1.3,d=Math.max(d,p,7),v=Math.max(v,y,7)}var g=d/c,h=v/f;isNaN(g)&&(g=1/0),isNaN(h)&&(h=1/0);var w=Math.max(0,Math.floor(Math.min(g,h))),b=jc(r.model),S=r.getExtent(),A=b.lastAutoInterval,T=b.lastTickCount;return A!=null&&T!=null&&Math.abs(A-w)<=1&&Math.abs(T-o)<=1&&A>w&&b.axisExtent0===S[0]&&b.axisExtent1===S[1]?w=A:(b.lastTickCount=o,b.lastAutoInterval=w,b.axisExtent0=S[0],b.axisExtent1=S[1]),w}function e8(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function pD(r,e,t){var n=Kl(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=rD(r),d=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;d&&u!==i[0]&&y(i[0]);for(var p=u;p<=i[1];p+=l)y(p);v&&p-l!==i[1]&&y(i[1]);function y(_){var g={value:_};s.push(t?_:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:_})}return s}function gD(r,e,t){var n=r.scale,a=Kl(r),i=[];return N(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var yD=[0,1],ba=function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=n&&e<=a},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return hS(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(n=n.slice(),mD(n,a.count())),Le(e,yD,n,t)},r.prototype.coordToData=function(e,t){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),mD(n,a.count()));var i=Le(e,n,yD,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=$6(this,t),a=n.ticks,i=ht(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return r8(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),a=ht(n,function(i){return ht(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return j6(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return t8(this)},r}();function mD(r,e){var t=r[1]-r[0],n=e,a=t/n/2;r[0]+=a,r[1]-=a}function r8(r,e,t,n){var a=e.length;if(!r.onBand||t||!a)return;var i=r.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1],tickValue:e[0].tickValue};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;N(e,function(v){v.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s,tickValue:c[1]+1},e.push(o)}var f=i[0]>i[1];d(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&d(i[0],e[0].coord)&&e.unshift({coord:i[0]}),d(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&d(o.coord,i[1])&&e.push({coord:i[1]});function d(v,p){return v=qe(v),p=qe(p),f?v>p:va&&(a+=$c);var v=Math.atan2(s,o);if(v<0&&(v+=$c),v>=n&&v<=a||v+$c>=n&&v+$c<=a)return l[0]=c,l[1]=f,u-t;var p=t*Math.cos(n)+r,y=t*Math.sin(n)+e,_=t*Math.cos(a)+r,g=t*Math.sin(a)+e,h=(p-o)*(p-o)+(y-s)*(y-s),w=(_-o)*(_-o)+(g-s)*(g-s);return h0){e=e/180*Math.PI,Sa.fromArray(r[0]),Ve.fromArray(r[1]),tr.fromArray(r[2]),Qt.sub(ja,Sa,Ve),Qt.sub($a,tr,Ve);var t=ja.len(),n=$a.len();if(!(t<.001||n<.001)){ja.scale(1/t),$a.scale(1/n);var a=ja.dot($a),i=Math.cos(e);if(i1&&Qt.copy(rn,tr),rn.toArray(r[1])}}}}function l8(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Sa.fromArray(r[0]),Ve.fromArray(r[1]),tr.fromArray(r[2]),Qt.sub(ja,Ve,Sa),Qt.sub($a,tr,Ve);var n=ja.len(),a=$a.len();if(!(n<.001||a<.001)){ja.scale(1/n),$a.scale(1/a);var i=ja.dot(e),o=Math.cos(t);if(i=l)Qt.copy(rn,tr);else{rn.scaleAndAdd($a,s/Math.tan(Math.PI/2-c));var f=tr.x!==Ve.x?(rn.x-Ve.x)/(tr.x-Ve.x):(rn.y-Ve.y)/(tr.y-Ve.y);if(isNaN(f))return;f<0?Qt.copy(rn,Ve):f>1&&Qt.copy(rn,tr)}rn.toArray(r[1])}}}}function A0(r,e,t,n){var a=t==="normal",i=a?r:r.ensureState(t);i.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function u8(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var a=Hi(n[0],n[1]),i=Hi(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*t,s=gh([],n[1],n[0],o/a),l=gh([],n[1],n[2],o/i),u=gh([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0){w(L*D,0,o);var I=L+A;I<0&&b(-I*D,1)}else b(-A*D,1)}}function w(A,T,D){A!==0&&(u=!0);for(var L=T;L0)for(var I=0;I0;I--){var M=D[I-1]*R;w(-M,I,o)}}}function S(A){var T=A<0?-1:1;A=Math.abs(A);for(var D=Math.ceil(A/(o-1)),L=0;L0?w(D,0,L+1):w(-D,o-L-1,o),A-=D,A<=0)return}return u}function c8(r,e,t,n){return SD(r,"x","width",e,t)}function AD(r,e,t,n){return SD(r,"y","height",e,t)}function TD(r){var e=[];r.sort(function(y,_){return _.priority-y.priority});var t=new Jt(0,0,0,0);function n(y){if(!y.ignore){var _=y.ensureState("emphasis");_.ignore==null&&(_.ignore=!1)}y.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),te(d,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),_e(n,u,t,l)}else if(n.attr(u),!Ll(n).valueAnimation){var f=Ut(n.style.opacity,1);n.style.opacity=0,We(n,{style:{opacity:f}},t,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};fd(v,u,hd),fd(v,n.states.select,hd)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};fd(p,u,hd),fd(p,n.states.emphasis,hd)}K2(n,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=v8(a),o=i.oldLayout,y={points:a.shape.points};o?(a.attr({shape:o}),_e(a,{shape:y},t)):(a.setShape(y),a.style.strokePercent=0,We(a,{style:{strokePercent:1}},t)),i.oldLayout=y}},r}(),L0=ve();function p8(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var a=L0(t).labelManager;a||(a=L0(t).labelManager=new d8),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var a=L0(t).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var M0=Math.sin,I0=Math.cos,DD=Math.PI,Es=Math.PI*2,g8=180/DD,LD=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){this._add("C",e,t,n,a,i,o)},r.prototype.quadraticCurveTo=function(e,t,n,a){this._add("Q",e,t,n,a)},r.prototype.arc=function(e,t,n,a,i,o){this.ellipse(e,t,n,n,0,a,i,o)},r.prototype.ellipse=function(e,t,n,a,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=qi(f-Es)||(c?u>=Es:-u>=Es),v=u>0?u%Es:u%Es+Es,p=!1;d?p=!0:qi(f)?p=!1:p=v>=DD==!!c;var y=e+n*I0(o),_=t+a*M0(o);this._start&&this._add("M",y,_);var g=Math.round(i*g8);if(d){var h=1/this._p,w=(c?1:-1)*(Es-h);this._add("A",n,a,g,1,+c,e+n*I0(o+w),t+a*M0(o+w)),h>.01&&this._add("A",n,a,g,0,+c,y,_)}else{var b=e+n*I0(s),S=t+a*M0(s);this._add("A",n,a,g,+p,+c,b,S)}},r.prototype.rect=function(e,t,n,a){this._add("M",e,t),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,n,a,i,o,s,l,u){for(var c=[],f=this._p,d=1;d"}function T8(r){return""}function k0(r,e){e=e||{};var t=e.newline?` +`:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return A8(o,s)+(o!=="style"?jr(l):l||"")+(i?""+t+ht(i,function(u){return n(u)}).join(t)+t:"")+T8(o)}return n(r)}function C8(r,e,t){t=t||{};var n=t.newline?` +`:"",a=" {"+n,i=n+"}",o=ht(ue(r),function(l){return l+a+ht(ue(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+i}).join(n),s=ht(ue(e),function(l){return"@keyframes "+l+a+ht(ue(e[l]),function(u){return u+a+ht(ue(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":[""].join(n)}function R0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function kD(r,e,t,n){return wr("svg","root",{width:r,height:e,xmlns:MD,"xmlns:xlink":ID,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+e:!1},t)}var D8=0;function RD(){return D8++}var ND={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"},Ps="transform-origin";function L8(r,e,t){var n=lt({},r.shape);lt(n,e),r.buildPath(t,n);var a=new LD;return a.reset(Xx(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function M8(r,e){var t=e.originX,n=e.originY;(t||n)&&(r[Ps]=t+"px "+n+"px")}var I8={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function OD(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function E8(r,e,t){var n=r.shape.paths,a={},i,o;if(N(n,function(l){var u=R0(t.zrId);u.animation=!0,vd(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=ue(c),v=d.length;if(v){o=d[v-1];var p=c[o];for(var y in p){var _=p[y];a[y]=a[y]||{d:""},a[y].d+=_.d||""}for(var g in f){var h=f[g].animation;h.indexOf(o)>=0&&(i=h)}}}),!!i){e.d=!1;var s=OD(a,t);return i.replace(o,s)}}function BD(r){return Ct(r)?ND[r]?"cubic-bezier("+ND[r]+")":zg(r)?r:"":""}function vd(r,e,t,n){var a=r.animators,i=a.length,o=[];if(r instanceof tm){var s=E8(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var Kt=OD(T,t);return Kt+" "+h[0]+" both"}}for(var _ in l){var s=y(l[_]);s&&o.push(s)}if(o.length){var g=t.zrId+"-cls-"+RD();t.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function P8(r,e,t){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};zD(n,e,t)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=Zg(l))}var u=a.lineWidth;if(u){var c=!a.strokeNoScale&&r.transform?r.transform[0]:1;u=u/c}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),zD(n,e,t)}}function zD(r,e,t,n){var a=JSON.stringify(r),i=t.cssStyleCache[a];i||(i=t.zrId+"-cls-"+RD(),t.cssStyleCache[a]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var qc=Math.round;function VD(r){return r&&Ct(r.src)}function FD(r){return r&&Rt(r.toDataURL)}function N0(r,e,t,n){b8(function(a,i){var o=a==="fill"||a==="stroke";o&&Yx(i)?YD(e,r,a,n):o&&Xg(i)?XD(t,r,a,n):r[a]=i,o&&n.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),V8(t,r,n)}function O0(r,e){var t=S3(e);t&&(t.each(function(n,a){n!=null&&(r[(ED+a).toLowerCase()]=n+"")}),e.isSilent()&&(r[ED+"silent"]="true"))}function GD(r){return qi(r[0]-1)&&qi(r[1])&&qi(r[2])&&qi(r[3]-1)}function k8(r){return qi(r[4])&&qi(r[5])}function B0(r,e,t){if(e&&!(k8(e)&&GD(e))){var n=1e4;r.transform=GD(e)?"translate("+qc(e[4]*n)/n+" "+qc(e[5]*n)/n+")":ZB(e)}}function WD(r,e,t){for(var n=r.points,a=[],i=0;ii?(p=t[l+1]==null?null:t[l+1].elm,tL(r,p,t,a,l)):dd(r,e,n,i))}function Ql(r,e){var t=e.elm=r.elm,n=r.children,a=e.children;r!==e&&(F0(r,e),V0(e.text)?qa(n)&&qa(a)?n!==a&&U8(t,n,a):qa(a)?(qa(r.text)&&z0(t,""),tL(t,null,a,0,a.length-1)):qa(n)?dd(t,n,0,n.length-1):qa(r.text)&&z0(t,""):r.text!==e.text&&(qa(n)&&dd(t,n,0,n.length-1),z0(t,e.text)))}function Z8(r,e){if(Kc(r,e))Ql(r,e);else{var t=r.elm,n=KD(t);Qc(e),n!==null&&(ks(n,e.elm,QD(t)),dd(n,[r],0,0))}return e}var Y8=0,X8=function(){function r(e,t,n){if(this.type="svg",this.refreshHover=eL("refreshHover"),this.configLayer=eL("configLayer"),this.storage=t,this._opts=n=lt({},n),this.root=e,this._id="zr"+Y8++,this._oldVNode=kD(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=PD("svg");F0(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Z8(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return ZD(e,R0(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=R0(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=j8(n,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=wr("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=ht(ue(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(wr("defs","defs",{},u)),e.animation){var c=C8(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=wr("style","stl",{},[],c);o.push(f)}}return kD(n,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},k0(this.renderToVNode({animation:Ut(e.cssAnimation,!0),emphasis:Ut(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ut(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,n){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[y]===l[y]);y--);for(var _=p-1;_>y;_--)o--,s=i[o-1];for(var g=y+1;g=s)}}for(var f=this.__startIndex;f15)break}}M.prevElClipPaths&&g.restore()};if(h)if(h.length===0)D=_.__endIndex;else for(var I=v.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=n[a[l]]}if(a.splice(l+1,0,e),n[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)},r.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,a=0;a0?pd:0),this._needsManuallyCompositing),c.__builtin__||ua("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Pa&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,N(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?qt(n[e],t,!0):n[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},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}(ze);function Jl(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var a=zl(r,e,t[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(e[i])}return n.join(" ")}var Jc=function(r){J(e,r);function e(t,n,a,i){var o=r.call(this)||this;return o.updateData(t,n,a,i),o}return e.prototype._createSymbol=function(t,n,a,i,o){this.removeAll();var s=sr(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=rW,this._symbolType=t,this.add(s)},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(){gi(this.childAt(0))},e.prototype.downplay=function(){yi(this.childAt(0))},e.prototype.setZ=function(t,n){var a=this.childAt(0);a.zlevel=t,a.z=n},e.prototype.setDraggable=function(t,n){var a=this.childAt(0);a.draggable=t,a.cursor=!n&&t?"move":a.cursor},e.prototype.updateData=function(t,n,a,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(v):_e(d,v,s,n),ga(d)}if(this._updateCommon(t,n,l,a,i),u){var d=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,We(d,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,f,d,v,p,y,_,g;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,v=i.blurScope,y=i.labelStatesModels,_=i.hoverScale,g=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var h=i&&i.itemModel?i.itemModel:t.getItemModel(n),w=h.getModel("emphasis");u=w.getModel("itemStyle").getItemStyle(),f=h.getModel(["select","itemStyle"]).getItemStyle(),c=h.getModel(["blur","itemStyle"]).getItemStyle(),d=w.get("focus"),v=w.get("blurScope"),p=w.get("disabled"),y=mr(h),_=w.getShallow("scale"),g=h.getShallow("cursor")}var b=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var S=As(t.getItemVisual(n,"symbolOffset"),a);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var A=t.getItemVisual(n,"style"),T=A.fill;if(s instanceof Tr){var D=s.style;s.useStyle(lt({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},A))}else s.__isEmptyBrush?s.useStyle(lt({},A)):s.useStyle(A),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var L=t.getItemVisual(n,"liftZ"),I=this._z2;L!=null?I==null&&(this._z2=s.z2,s.z2+=L):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Pr(s,y,{labelFetcher:l,labelDataIndex:n,defaultText:E,inheritColor:T,defaultOpacity:A.opacity});function E(B){return P?t.getName(B):Jl(t,B)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var M=_==null||_===!0?Math.max(1.1,3/this._sizeY):isFinite(_)&&_>0?+_:1;R.scaleX=this._sizeX*M,R.scaleY=this._sizeY*M,this.setSymbolScale(1),Xe(this,d,v,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,a){var i=this.childAt(0),o=Zt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&ro(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ro(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return Ul(t.getItemVisual(n,"symbolSize"))},e}(Ht);function rW(r,e){this.parent.drift(r,e)}function W0(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function iL(r){return r!=null&&!zt(r)&&(r={isIgnore:r}),r||{}}function oL(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:mr(e),cursorStyle:e.get("cursor")}}var tf=function(){function r(e){this.group=new Ht,this._SymbolCtor=e||Jc}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=iL(t);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=oL(e),u={disableAnimation:s},c=t.getSymbolPoint||function(f){return e.getItemLayout(f)};i||n.removeAll(),e.diff(i).add(function(f){var d=c(f);if(W0(e,d,f,t)){var v=new o(e,f,l,u);v.setPosition(d),e.setItemGraphicEl(f,v),n.add(v)}}).update(function(f,d){var v=i.getItemGraphicEl(d),p=c(f);if(!W0(e,p,f,t)){n.remove(v);return}var y=e.getItemVisual(f,"symbol")||"circle",_=v&&v.getSymbolType&&v.getSymbolType();if(!v||_&&_!==y)n.remove(v),v=new o(e,f,l,u),v.setPosition(p);else{v.updateData(e,f,l,u);var g={x:p[0],y:p[1]};s?v.attr(g):_e(v,g,a)}n.add(v),e.setItemGraphicEl(f,v)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=oL(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=iL(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=n[0]:n[1]<0&&(t=n[1]),t}function lL(r,e,t,n){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function aW(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,a){t.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function iW(r,e,t,n,a,i,o,s){for(var l=aW(r,e),u=[],c=[],f=[],d=[],v=[],p=[],y=[],_=sL(a,e,o),g=r.getLayout("points")||[],h=e.getLayout("points")||[],w=0;w=a||y<0)break;if(Ns(g,h)){if(l){y+=i;continue}break}if(y===t)r[i>0?"moveTo":"lineTo"](g,h),f=g,d=h;else{var w=g-u,b=h-c;if(w*w+b*b<.5){y+=i;continue}if(o>0){for(var S=y+i,A=e[S*2],T=e[S*2+1];A===g&&T===h&&_=n||Ns(A,T))v=g,p=h;else{I=A-u,P=T-c;var M=g-u,B=A-g,F=h-c,W=T-h,j=void 0,H=void 0;if(s==="x"){j=Math.abs(M),H=Math.abs(B);var K=I>0?1:-1;v=g-K*j*o,p=h,E=g+K*H*o,R=h}else if(s==="y"){j=Math.abs(F),H=Math.abs(W);var U=P>0?1:-1;v=g,p=h-U*j*o,E=g,R=h+U*H*o}else j=Math.sqrt(M*M+F*F),H=Math.sqrt(B*B+W*W),L=H/(H+j),v=g-I*o*(1-L),p=h-P*o*(1-L),E=g+I*o*L,R=h+P*o*L,E=ho(E,vo(A,g)),R=ho(R,vo(T,h)),E=vo(E,ho(A,g)),R=vo(R,ho(T,h)),I=E-g,P=R-h,v=g-I*j/H,p=h-P*j/H,v=ho(v,vo(u,g)),p=ho(p,vo(c,h)),v=vo(v,ho(u,g)),p=vo(p,ho(c,h)),I=g-v,P=h-p,E=g+I*H/j,R=h+P*H/j}r.bezierCurveTo(f,d,v,p,g,h),f=E,d=R}else r.lineTo(g,h)}u=g,c=h,y+=i}return _}var uL=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),oW=function(r){J(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new uL},e.prototype.buildPath=function(t,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Ns(a[o*2-2],a[o*2-1]);o--);for(;i=0){var b=u?(p-l)*w+l:(v-s)*w+s;return u?[t,b]:[b,t]}s=v,l=p;break;case o.C:v=i[f++],p=i[f++],y=i[f++],_=i[f++],g=i[f++],h=i[f++];var S=u?Th(s,v,y,g,t,c):Th(l,p,_,h,t,c);if(S>0)for(var A=0;A=0){var b=u?gr(l,p,_,h,T):gr(s,v,y,g,T);return u?[t,b]:[b,t]}}s=g,l=h;break}}},e}(oe),sW=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(uL),cL=function(r){J(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new sW},e.prototype.buildPath=function(t,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Ns(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function cW(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(!i){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(a),u=ht(i.stops,function(w){return{coord:l.toGlobalCoord(l.dataToCoord(w.value)),color:w.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=uW(u,a==="x"?t.getWidth():t.getHeight()),v=d.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,y=d[0].coord-p,_=d[v-1].coord+p,g=_-y;if(g<.001)return"transparent";N(d,function(w){w.offset=(w.coord-y)/g}),d.push({offset:v?d[v-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:v?d[0].offset:.5,color:f[0]||"transparent"});var h=new yc(0,0,0,0,d,!0);return h[a]=y,h[a+"2"]=_,h}}function fW(r,e,t){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&hW(i,e))){var o=e.mapDimension(i.dim),s={};return N(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function hW(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function vW(r,e){return isNaN(r)||isNaN(e)}function dW(r){for(var e=r.length/2;e>0&&vW(r[e*2-2],r[e*2-1]);e--);return e-1}function yL(r,e){return[r[e*2],r[e*2+1]]}function pW(r,e,t){for(var n=r.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function mL(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var H=p.getState("emphasis").style;H.lineWidth=+p.style.lineWidth+1}Zt(p).seriesIndex=t.seriesIndex,Xe(p,F,W,j);var K=gL(t.get("smooth")),U=t.get("smoothMonotone");if(p.setShape({smooth:K,smoothMonotone:U,connectNulls:T}),y){var $=s.getCalculationInfo("stackedOnSeries"),ut=0;y.useStyle(Ft(u.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),$&&(ut=gL($.get("smooth"))),y.setShape({smooth:K,stackedOnSmooth:ut,smoothMonotone:U,connectNulls:T}),Er(y,t,"areaStyle"),Zt(y).seriesIndex=t.seriesIndex,Xe(y,F,W,j)}var ot=this._changePolyState;s.eachItemGraphicEl(function(it){it&&(it.onHoverStateChange=ot)}),this._polyline.onHoverStateChange=ot,this._data=s,this._coordSys=i,this._stackedOnPoints=S,this._points=c,this._step=I,this._valueOrigin=w,t.get("triggerLineEvent")&&(this.packEventData(t,p),y&&this.packEventData(t,y))},e.prototype.packEventData=function(t,n){Zt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,a,i){var o=t.getData(),s=qo(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=t.get("zlevel")||0,v=t.get("z")||0;u=new Jc(o,s),u.x=c,u.y=f,u.setZ(d,v);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=v,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ke.prototype.highlight.call(this,t,n,a,i)},e.prototype.downplay=function(t,n,a,i){var o=t.getData(),s=qo(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ke.prototype.downplay.call(this,t,n,a,i)},e.prototype._changePolyState=function(t){var n=this._polygon;rv(this._polyline,t),n&&rv(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new oW({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new cL({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");Rt(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Rt(f)?f(null):f;t.eachItemGraphicEl(function(v,p){var y=v;if(y){var _=[v.x,v.y],g=void 0,h=void 0,w=void 0;if(a)if(o){var b=a,S=n.pointToCoord(_);i?(g=b.startAngle,h=b.endAngle,w=-S[1]/180*Math.PI):(g=b.r0,h=b.r,w=S[0])}else{var A=a;i?(g=A.x,h=A.x+A.width,w=v.x):(g=A.y+A.height,h=A.y,w=v.y)}var T=h===g?0:(w-g)/(h-g);l&&(T=1-T);var D=Rt(f)?f(p):c*T+d,L=y.getSymbolPath(),I=L.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:D}),L.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,a){var i=t.getModel("endLabel");if(mL(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new pe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=dW(l);c>=0&&(Pr(s,mr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(f,d,v){return v!=null?aL(o,v):Jl(o,f)},enableTextSetter:!0},gW(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,v=d.get("connectNulls"),p=s.get("precision"),y=s.get("distance")||0,_=l.getBaseAxis(),g=_.isHorizontal(),h=_.inverse,w=n.shape,b=h?g?w.x:w.y+w.height:g?w.x+w.width:w.y,S=(g?y:0)*(h?-1:1),A=(g?0:-y)*(h?-1:1),T=g?"x":"y",D=pW(f,b,T),L=D.range,I=L[1]-L[0],P=void 0;if(I>=1){if(I>1&&!v){var E=yL(f,L[0]);u.attr({x:E[0]+S,y:E[1]+A}),o&&(P=d.getRawValue(L[0]))}else{var E=c.getPointOn(b,T);E&&u.attr({x:E[0]+S,y:E[1]+A});var R=d.getRawValue(L[0]),M=d.getRawValue(L[1]);o&&(P=IS(a,p,R,M,D.t))}i.lastFrameIndex=L[0]}else{var B=t===1||i.lastFrameIndex>0?L[0]:0,E=yL(f,B);o&&(P=d.getRawValue(B)),u.attr({x:E[0]+S,y:E[1]+A})}if(o){var F=Ll(u);typeof F.setLabelText=="function"&&F.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=t.hostModel,d=iW(this._data,t,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=d.current,p=d.stackedOnCurrent,y=d.next,_=d.stackedOnNext;if(o&&(p=po(d.stackedOnCurrent,d.current,a,o,l),v=po(d.current,null,a,o,l),_=po(d.stackedOnNext,d.next,a,o,l),y=po(d.next,null,a,o,l)),pL(v,y)>3e3||c&&pL(p,_)>3e3){u.stopAnimation(),u.setShape({points:y}),c&&(c.stopAnimation(),c.setShape({points:y,stackedOnPoints:_}));return}u.shape.__points=d.current,u.shape.points=v;var g={shape:{points:y}};d.current!==v&&(g.shape.__points=d.next),u.stopAnimation(),_e(u,g,f),c&&(c.setShape({points:v,stackedOnPoints:p}),c.stopAnimation(),_e(c,{shape:{stackedOnPoints:_}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var h=[],w=d.status,b=0;be&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/d);if(isFinite(v)&&v>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/v));var p=void 0;Ct(i)?p=mW[i]:Rt(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/v,p,_W))}}}}}function wW(r){r.registerChartView(yW),r.registerSeriesModel(eW),r.registerLayout(rf("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,_L("line"))}var nf=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return xi(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)N(i.getAxes(),function(d,v){if(d.type==="category"&&n!=null){var p=d.getTicksCoords(),y=d.getTickModel().get("alignWithLabel"),_=o[v],g=n[v]==="x1"||n[v]==="y1";if(g&&!y&&(_+=1),p.length<2)return;if(p.length===2){s[v]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var h=void 0,w=void 0,b=1,S=0;S_){w=(A+h)/2;break}S===1&&(b=T-p[0].tickValue)}w==null&&(h?h&&(w=p[p.length-1].coord):w=p[0].coord),s[v]=d.toGlobalCoord(w)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}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}(ze);ze.registerClass(nf);var bW=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return xi(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,a){return a.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ao(nf.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}(nf),xW=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),gd=function(r){J(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new xW},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,v=Math.PI*2,p=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,a,i){if(this._isOrderChangedWithinSameData(t,n,a)){var o=this._dataSort(t,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,a){var i=n.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){mc(i,t,Zt(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(ke),wL={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,i=r.y+r.height,o=Z0(e.x,r.x),s=Y0(e.x+e.width,a),l=Z0(e.y,r.y),u=Y0(e.y+e.height,i),c=sa?s:o,e.y=f&&l>i?u:l,e.width=c?0:s-o,e.height=f?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var a=Y0(e.r,r.r),i=Z0(e.r0,r.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},bL={cartesian2d:function(r,e,t,n,a,i,o,s,l){var u=new de({shape:lt({},n),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(r,e,t,n,a,i,o,s,l){var u=!a&&l?gd:Qr,c=new u({shape:n,z2:1});c.name="item";var f=TL(a);if(c.calculateTextPosition=SW(f,{isRoundCap:u===gd}),i){var d=c.shape,v=a?"r":"endAngle",p={};d[v]=a?n.r0:n.startAngle,p[v]=n[v],(s?_e:We)(c,{shape:p},i)}return c}};function DW(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&t&&(n.type!=="category"&&Ye("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&Ye("`realtimeSort` will not work because this bar series is not on cartesian2d.")),t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function xL(r,e,t,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?_e:We)(t,{shape:l},e,a,null);var c=e?r.baseAxis.model:null;(o?_e:We)(t,{shape:u},c,a)}function SL(r,e){for(var t=0;t0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function IW(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function TL(r){return function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}}(r)}function CL(r,e,t,n,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=Bs(n.getModel("itemStyle"),c,!0);lt(c,f),r.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var d=n.getShallow("cursor");d&&r.attr("cursor",d);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=mr(n);Pr(r,p,{labelFetcher:i,labelDataIndex:t,defaultText:Jl(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var y=r.getTextContent();if(s&&y){var _=n.get(["label","position"]);r.textConfig.inside=_==="middle"?!0:null,AW(r,_==="outside"?v:_,TL(o),n.get(["label","rotate"]))}q2(y,p,i.getRawValue(t),function(h){return aL(e,h)});var g=n.getModel(["emphasis"]);Xe(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),Er(r,n),IW(a)&&(r.style.fill="none",r.style.stroke="none",N(r.states,function(h){h.style&&(h.style.fill=h.style.stroke="none")}))}function EW(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var PW=function(){function r(){}return r}(),DL=function(r){J(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new PW},e.prototype.buildPath=function(t,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function kW(r,e,t){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function IL(r,e,t){if(Os(t,"cartesian2d")){var n=e,a=t.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function RW(r,e,t){var n=r.type==="polar"?Qr:de;return new n({shape:IL(e,t,r),silent:!0,z2:0})}function NW(r){r.registerChartView(CW),r.registerSeriesModel(bW),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,jt(XC,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,jC("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,_L("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var EL=Math.PI*2,wd=Math.PI/180;function PL(r,e){return hr(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function kL(r,e){var t=PL(r,e),n=r.get("center"),a=r.get("radius");ft(a)||(a=[0,a]);var i=At(t.width,e.getWidth()),o=At(t.height,e.getHeight()),s=Math.min(i,o),l=At(a[0],s/2),u=At(a[1],s/2),c,f,d=r.coordinateSystem;if(d){var v=d.dataToPoint(n);c=v[0]||0,f=v[1]||0}else ft(n)||(n=[n,n]),c=At(n[0],i)+t.x,f=At(n[1],o)+t.y;return{cx:c,cy:f,r0:l,r:u}}function OW(r,e,t){e.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=PL(n,t),s=kL(n,t),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*wd,v=n.get("endAngle"),p=n.get("padAngle")*wd;v=v==="auto"?d-EL:-v*wd;var y=n.get("minAngle")*wd,_=y+p,g=0;a.each(i,function(W){!isNaN(W)&&g++});var h=a.getSum(i),w=Math.PI/(h||g)*2,b=n.get("clockwise"),S=n.get("roseType"),A=n.get("stillShowZeroSum"),T=a.getDataExtent(i);T[0]=0;var D=b?1:-1,L=[d,v],I=D*p/2;Oy(L,!b),d=L[0],v=L[1];var P=RL(n);P.startAngle=d,P.endAngle=v,P.clockwise=b;var E=Math.abs(v-d),R=E,M=0,B=d;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(W,j){var H;if(isNaN(W)){a.setItemLayout(j,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:l,cy:u,r0:f,r:S?NaN:c});return}S!=="area"?H=h===0&&A?w:W*w:H=E/g,H<_?(H=_,R-=_):M+=W;var K=B+D*H,U=0,$=0;p>H?(U=B+D*H/2,$=U):(U=B+I,$=K-I),a.setItemLayout(j,{angle:H,startAngle:U,endAngle:$,clockwise:b,cx:l,cy:u,r0:f,r:S?Le(W,T,[f,c]):c}),B=K}),Rt?g:_,S=Math.abs(w.label.y-t);if(S>=b.maxY){var A=w.label.x-e-w.len2*a,T=n+w.len,D=Math.abs(A)r.unconstrainedWidth?null:v:null;n.setStyle("width",p)}var y=n.getBoundingRect();i.width=y.width;var _=(n.style.margin||0)+2.1;i.height=y.height+_,i.y-=(i.height-f)/2}}}function X0(r){return r.position==="center"}function VW(r){var e=r.getData(),t=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*BW,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function v(A){A.ignore=!0}function p(A){if(!A.ignore)return!0;for(var T in A.states)if(A.states[T].ignore===!1)return!0;return!1}e.each(function(A){var T=e.getItemGraphicEl(A),D=T.shape,L=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(A),E=P.getModel("label"),R=E.get("position")||P.get(["emphasis","label","position"]),M=E.get("distanceToLabelLine"),B=E.get("alignTo"),F=At(E.get("edgeDistance"),u),W=E.get("bleedMargin"),j=P.getModel("labelLine"),H=j.get("length");H=At(H,u);var K=j.get("length2");if(K=At(K,u),Math.abs(D.endAngle-D.startAngle)0?"right":"left":$>0?"left":"right"}var st=Math.PI,nt=0,X=E.get("rotate");if(ye(X))nt=X*(st/180);else if(R==="center")nt=0;else if(X==="radial"||X===!0){var Z=$<0?-U+st:-U;nt=Z}else if(X==="tangential"&&R!=="outside"&&R!=="outer"){var tt=Math.atan2($,ut);tt<0&&(tt=st*2+tt);var pt=ut>0;pt&&(tt=st+tt),nt=tt-st}if(i=!!nt,L.x=ot,L.y=it,L.rotation=nt,L.setStyle({verticalAlign:"middle"}),xt){L.setStyle({align:Kt});var Tt=L.states.select;Tt&&(Tt.x+=L.x,Tt.y+=L.y)}else{var vt=L.getBoundingRect().clone();vt.applyTransform(L.getComputedTransform());var at=(L.style.margin||0)+2.1;vt.y-=at/2,vt.height+=at,t.push({label:L,labelLine:I,position:R,len:H,len2:K,minTurnAngle:j.get("minTurnAngle"),maxSurfaceAngle:j.get("maxSurfaceAngle"),surfaceNormal:new Qt($,ut),linePoints:Nt,textAlign:Kt,labelDistance:M,labelAlignTo:B,edgeDistance:F,bleedMargin:W,rect:vt,unconstrainedWidth:vt.width,labelStyleWidth:L.style.width})}T.setTextConfig({inside:xt})}}),!i&&r.get("avoidLabelOverlap")&&zW(t,n,a,l,u,d,c,f);for(var y=0;y0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},e.type="pie",e}(ke);function tu(r,e,t){e=ft(e)&&{coordDimensions:e}||lt({encodeDefine:r.getEncode()},e);var n=r.getSource(),a=Zc(n,e).dimensions,i=new en(a,r);return i.initData(n,t),i}var of=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r}(),WW=ve(),HW=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new of(Lt(this.getData,this),Lt(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return tu(this,{coordDimensions:["value"],encodeDefaulter:jt(wm,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),a=WW(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=D3(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){$o(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(ze);function UW(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(ye(o)&&!isNaN(o)&&o<0)})}}}function ZW(r){r.registerChartView(GW),r.registerSeriesModel(HW),GT("pie",r.registerAction),r.registerLayout(jt(OW,"pie")),r.registerProcessor(af("pie")),r.registerProcessor(UW("pie"))}var YW=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return xi(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,n,a){return a.point(n.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}(ze),BL=4,XW=function(){function r(){}return r}(),jW=function(r){J(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new XW},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,f=i[c]-s/2,d=i[c+1]-l/2;if(t>=f&&n>=d&&t<=f+s&&n<=d+l)return u}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d=0&&(u.dataIndex=f+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),qW=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._symbolDraw.incrementalUpdate(t,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=rf("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var n=t.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new $W:new tf,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(ke),KW=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return 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}(le),j0=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ir).models[0]},e.type="cartesian2dAxis",e}(le);rr(j0,Xc);var zL={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},QW=qt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},zL),$0=qt({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}}},zL),JW=qt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$0),tH=Ft({logBase:10},$0);const VL={category:QW,value:$0,time:JW,log:tH};var eH={value:1,category:1,time:1,log:1};function eu(r,e,t,n){N(eH,function(a,i){var o=qt(qt({},VL[i],!0),n,!0),s=function(l){J(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Tc(this),v=d?Rl(c):{},p=f.getTheme();qt(c,p.get(i+"Axis")),qt(c,this.getDefaultOption()),c.type=FL(c),d&&oo(c,v,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=v0.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",FL)}function FL(r){return r.type||(r.data?"category":"value")}var rH=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return ht(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ae(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),q0=["x","y"];function GL(r){return r.type==="interval"||r.type==="time"}var nH=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=q0,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!GL(t)||!GL(n))){var a=t.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,v=o[1]-i[0]*f,p=this._transform=[c,0,0,f,d,v];this._invTransform=cl([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&a.contain(a.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,n){var a=this.dataToPoint(t),i=this.dataToPoint(n),o=this.getArea(),s=new Jt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Mr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},e.prototype.clampData=function(t,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n){var a=[];if(this._invTransform)return Mr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),n),a[1]=o.coordToData(o.toLocalCoord(t[1]),n),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(n[0],n[1])-i+t,l=Math.max(a[0],a[1])-o+t;return new Jt(i,o,s,l)},e}(rH),aH=function(r){J(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(ba);function K0(r,e,t){t=t||{};var n=r.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,p=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var y=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(y,p[1]),p[0])}i.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var _={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=_[s],i.labelOffset=o?p[d[s]]-p[d.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),nr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-g:g,i.z2=1,i}function WL(r){return r.get("coordinateSystem")==="cartesian2d"}function HL(r){var e={xAxisModel:null,yAxisModel:null};return N(e,function(t,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,ir).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error(a+' "'+kn(r.get(a+"Index"),r.get(a+"Id"),0)+'" not found');e[n]=i}),e}var Q0=Math.log;function UL(r,e,t){var n=Si.prototype,a=n.getTicks.call(t),i=n.getTicks.call(t,!0),o=a.length-1,s=n.getInterval.call(t),l=eD(r,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var d=Q0(r.base);u=[Q0(u[0])/d,Q0(u[1])/d]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=n.getExtent.call(r);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var p=n.getInterval.call(r),y=u[0],_=u[1];if(c&&f)p=(_-y)/o;else if(c)for(_=u[0]+p*o;_u[0]&&isFinite(y)&&isFinite(u[0]);)p=p0(p),y=u[1]-p*o;else{var g=r.getTicks().length-1;g>o&&(p=p0(p));var h=p*o;_=Math.ceil(u[1]/p)*p,y=qe(_-h),y<0&&u[0]>=0?(y=0,_=qe(h)):_>0&&u[1]<=0&&(_=0,y=-qe(h))}var w=(a[0].value-i[0].value)/s,b=(a[o].value-i[o].value)/s;if(n.setExtent.call(r,y+p*w,_+p*b),n.setInterval.call(r,p),(w||b)&&n.setNiceExtent.call(r,y+p,_-p),process.env.NODE_ENV!=="production"){var S=n.getTicks.call(r);S[1]&&(!p6(p)||py(S[1].value)>py(p))&&Ye("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var iH=function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=q0,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=ue(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],v=o[d],p=v.model,y=v.scale;d0(y)&&p.get("alignTicks")&&p.get("interval")==null?c.push(v):(ql(y,p),d0(y)&&(s=v))}c.length&&(s||(s=c.pop(),ql(s.scale,s.model)),N(c,function(_){UL(_.scale,_.model,s.scale)}))}}a(n.x),a(n.y);var i={};N(n.x,function(o){ZL(n,"y",o,i)}),N(n.y,function(o){ZL(n,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var a=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(N(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=V6(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),N(this._coordsList,function(u){u.calcAffineTransform()});function l(){N(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),oH(u,c?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}zt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):rc(a-go)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),XL={axisLine:function(r,e,t,n){var a=e.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Mr(s,s,o),Mr(l,l,o));var c=lt({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new yr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Dl(f.shape,f.style.lineWidth),f.anid="line",t.add(f);var d=e.get(["axisLine","symbol"]);if(d!=null){var v=e.get(["axisLine","symbolSize"]);Ct(d)&&(d=[d,d]),(Ct(v)||ye(v))&&(v=[v,v]);var p=As(e.get(["axisLine","symbolOffset"])||0,v),y=v[0],_=v[1];N([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,h){if(d[h]!=="none"&&d[h]!=null){var w=sr(d[h],-y/2,-_/2,y,_,c.stroke,!0),b=g.r+g.offset,S=u?l:s;w.attr({rotation:g.rotate,x:S[0]+b*Math.cos(r.rotation),y:S[1]-b*Math.sin(r.rotation),silent:!0,z2:11}),t.add(w)}})}}},axisTickLabel:function(r,e,t,n){var a=uH(t,n,e,r),i=fH(t,n,e,r);if(lH(e,i,a),cH(t,n,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=xD(ht(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));TD(o)}},axisName:function(r,e,t,n){var a=nr(r.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,$L(i)?r.labelOffset+o*l:0],d,v=e.get("nameRotate");v!=null&&(v=v*go/180);var p;$L(i)?d=an.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(d=sH(r.rotation,i,v||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var y=s.getFont(),_=e.get("nameTruncate",!0)||{},g=_.ellipsis,h=nr(r.nameTruncateMaxWidth,_.maxWidth,p),w=new pe({x:f[0],y:f[1],rotation:d.rotation,silent:an.isLabelSilent(e),style:Be(s,{text:a,font:y,overflow:"truncate",width:h,ellipsis:g,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(ps({el:w,componentModel:e,itemName:a}),w.__fullText=a,w.anid="name",e.get("triggerEvent")){var b=an.makeAxisEventDataBase(e);b.targetType="axisName",b.name=a,Zt(w).eventData=b}n.add(w),w.updateTransform(),t.add(w),w.decomposeTransform()}}};function sH(r,e,t,n){var a=dS(t-r),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return rc(a-go/2)?(o=l?"bottom":"top",i="center"):rc(a-go*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",ago/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function lH(r,e,t){if(!rD(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],f=t[t.length-1],d=t[t.length-2];n===!1?(jn(i),jn(u)):jL(i,o)&&(n?(jn(o),jn(c)):(jn(i),jn(u))),a===!1?(jn(s),jn(f)):jL(l,s)&&(a?(jn(l),jn(d)):(jn(s),jn(f)))}}function jn(r){r&&(r.ignore=!0)}function jL(r,e){var t=r&&r.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!t||!n)){var a=yh([]);return Go(a,a,-r.rotation),t.applyTransform(li([],a,r.getLocalTransform())),n.applyTransform(li([],a,e.getLocalTransform())),t.intersect(n)}}function $L(r){return r==="middle"||r==="center"}function qL(r,e,t,n,a){for(var i=[],o=[],s=[],l=0;l=0||r===e}function yH(r){var e=e_(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=r_(t);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var y=l;p.color!=null&&(y=Ft({color:p.color},l));var _=qt(Wt(p),{boundaryGap:t,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:y,triggerEvent:d},!1);if(Ct(c)){var g=_.name;_.name=c.replace("{value}",g!=null?g:"")}else Rt(c)&&(_.name=c(_.name,_));var h=new Me(_,null,this.ecModel);return rr(h,Xc.prototype),h.mainType="radar",h.componentIndex=this.componentIndex,h},this);this._indicatorModels=v},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:qt({lineStyle:{color:"#bbb"}},lf.axisLine),axisLabel:bd(lf.axisLabel,!1),axisTick:bd(lf.axisTick,!1),splitLine:bd(lf.splitLine,!0),splitArea:bd(lf.splitArea,!0),indicator:[]},e}(le),IH=["axisLine","axisTickLabel","axisName"],EH=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes(),i=ht(a,function(o){var s=o.model.get("showName")?o.name:"",l=new an(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});N(i,function(o){N(IH,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),v=u.get("color"),p=ft(d)?d:[d],y=ft(v)?v:[v],_=[],g=[];function h(B,F,W){var j=W%F.length;return B[j]=B[j]||[],j}if(i==="circle")for(var w=a[0].getTicksCoords(),b=n.cx,S=n.cy,A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;o_(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(i),d=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);o_(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!oM(this._zr,"globalPan")){var n=t.pinchScale>1?1.1:1/1.1;o_(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Rn);function o_(r,e,t,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(si(n.event),sM(r,e,t,n,a))}function sM(r,e,t,n,a){a.isAvailableBehavior=Lt(xd,null,t,n),r.trigger(e,a)}function xd(r,e,t){var n=t[r];return!r||n&&(!Ct(n)||e.event[n+"Key"])}function s_(r,e,t){var n=r.target;n.x+=e,n.y+=t,n.dirty()}function l_(r,e,t,n){var a=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(n-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var zH={axisPointer:1,tooltip:1,brush:1};function Sd(r,e,t){var n=e.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==t&&!zH.hasOwnProperty(n.mainType)&&a&&a.model!==t}function lM(r){if(Ct(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var u_,Ad={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"},uM=ue(Ad),Td={"alignment-baseline":"textBaseline","stop-color":"stopColor"},cM=ue(Td),VH=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var n=lM(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Illegal svg");this._defsUsePending=[];var a=new Ht;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Sn(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;WH(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Cd(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=mM(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=a;a=new Ht,a.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new de({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},r.prototype._parseNode=function(e,t,n,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=u_[s];if(c&&Mt(u_,s)){l=c.call(this,e,t);var f=e.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var v=fM[s];if(v&&Mt(fM,s)){var p=v.call(this,e),y=e.getAttribute("id");y&&(this._defs[y]=p)}}if(l&&l.isGroup)for(var _=e.firstChild;_;)_.nodeType===1?this._parseNode(_,l,n,u,i,o):_.nodeType===3&&o&&this._parseText(_,l),_=_.nextSibling},r.prototype._parseText=function(e,t){var n=new _l({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});$n(t,n),Sn(e,n,this._defsUsePending,!1,!1),FH(n,t);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},r.internalField=function(){u_={g:function(e,t){var n=new Ht;return $n(t,n),Sn(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new de;return $n(t,n),Sn(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new mi;return $n(t,n),Sn(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new yr;return $n(t,n),Sn(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new iv;return $n(t,n),Sn(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute("points"),a;n&&(a=dM(n));var i=new Jr({shape:{points:a||[]},silent:!0});return $n(t,i),Sn(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute("points"),a;n&&(a=dM(n));var i=new tn({shape:{points:a||[]},silent:!0});return $n(t,i),Sn(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Tr;return $n(t,n),Sn(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Ht;return $n(t,s),Sn(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),a=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Ht;return $n(t,s),Sn(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",a=M2(n);return $n(t,a),Sn(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),fM={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new yc(e,t,n,a);return hM(r,i),vM(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new N2(e,t,n);return hM(r,a),vM(r,a),a}};function hM(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function vM(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var n=t.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};yM(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function $n(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Ft(e.__inheritedStyle,r.__inheritedStyle))}function dM(r){for(var e=Cd(r),t=[],n=0;n0;i-=2){var o=n[i],s=n[i-1],l=Cd(o);switch(a=a||mn(),s){case"translate":Ea(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Pg(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Go(a,a,-parseFloat(l[0])*c_,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*c_);li(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*c_);li(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var gM=/([^\s:;]+)\s*:\s*([^:;]+)/g;function yM(r,e,t){var n=r.getAttribute("style");if(n){gM.lastIndex=0;for(var a;(a=gM.exec(n))!=null;){var i=a[1],o=Mt(Ad,i)?Ad[i]:null;o&&(e[o]=a[2]);var s=Mt(Td,i)?Td[i]:null;s&&(t[s]=a[2])}}}function YH(r,e,t){for(var n=0;n0,_={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(_):l.resourceType==="geoSVG"&&this._buildSVG(_),this._updateController(e,t,n),this._updateMapSelectHandler(e,u,n,a)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Et(),n=Et(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(v,p){return p&&(v=p(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function f(v){for(var p=[],y=!u&&l&&l.project,_=0;_=0)&&(d=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Pr(e,mr(n),{labelFetcher:d,labelDataIndex:f,defaultText:t},v);var p=e.getTextContent();if(p&&(wM(p).ignore=p.ignore,e.textConfig&&o)){var y=e.getBoundingRect().clone();e.textConfig.layoutRect=y,e.textConfig.position=[(o[0]-y.x)/y.width*100+"%",(o[1]-y.y)/y.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function TM(r,e,t,n,a,i){r.data?r.data.setItemGraphicEl(i,e):Zt(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:n&&n.option||{}}}function CM(r,e,t,n,a){r.data||ps({el:e,componentModel:a,itemName:t,itemTooltipOption:n.get("tooltip")})}function DM(r,e,t,n,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return Xe(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&nV(e,a,t),o}function LM(r,e,t){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),N(r,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},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}(ze);function hU(r,e){var t={};return N(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(b.width=w,b.height=w/_):(b.height=w,b.width=w*_),b.y=h[1]-b.height/2,b.x=h[0]-b.width/2;else{var S=r.getBoxLayoutParams();S.aspect=_,b=hr(S,{width:p,height:y})}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function gU(r,e){N(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var yU=function(){function r(){this.dimensions=EM}return r.prototype.create=function(e,t){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new v_(l+s,l,lt({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=kM,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),N(i,function(o,s){var l=ht(o,function(c){return c.get("nameMap")}),u=new v_(s,s,lt({nameMap:yg(l)},a(o[0])));u.zoomLimit=nr.apply(null,ht(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=kM,u.resize(o[0],t),N(o,function(c){c.coordinateSystem=u,gU(u,c)})}),n},r.prototype.getFilledRegions=function(e,t,n,a){for(var i=(e||[]).slice(),o=Et(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function SU(r,e){var t=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(t.length){CU(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=DU(r,a,r.parentNode.hierNode.defaultAncestor||n[0],e)}function AU(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function BM(r){return arguments.length?r:IU}function hf(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function TU(r,e){return hr(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function CU(r){for(var e=r.children,t=e.length,n=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function DU(r,e,t,n){if(e){for(var a=r,i=r,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=p_(s),i=g_(i),s&&i;){a=p_(a),o=g_(o),a.hierNode.ancestor=r;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+n(s,i);d>0&&(MU(LU(s,r,t),r,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!p_(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!g_(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=r)}return t}function p_(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function g_(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function LU(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function MU(r,e,t){var n=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=n}function IU(r,e){return r.parentNode===e.parentNode?1:2}var EU=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),PU=function(r){J(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new EU},e.prototype.buildPath=function(t,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=At(n.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*d,t.moveTo(o[0],o[1]),t.lineTo(v[0],v[1]),t.moveTo(s[0],s[1]),v[c]=s[c],t.lineTo(v[0],v[1]),v[c]=l[c],t.lineTo(v[0],v[1]),t.lineTo(l[0],l[1]);for(var p=1;ph.x,S||(b=b-Math.PI));var T=S?"left":"right",D=s.getModel("label"),L=D.get("rotate"),I=L*(Math.PI/180),P=_.getTextContent();P&&(_.setTextConfig({position:D.get("position")||T,rotation:L==null?-b:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),R=E==="relative"?zu(o.getAncestorsIndices(),o.getDescendantIndices()):E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():null;R&&(Zt(t).focus=R),RU(a,o,c,t,p,v,y,n),t.__edge&&(t.onHoverStateChange=function(M){if(M!=="blur"){var B=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);B&&B.hoverState===lc||rv(t.__edge,M)}})}function RU(r,e,t,n,a,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),c=r.get("layout"),f=r.getOrient(),d=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),y=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(y||(y=n.__edge=new gc({shape:y_(c,f,d,a,a)})),_e(y,{shape:y_(c,f,d,i,o)},r));else if(u==="polyline"){if(c==="orthogonal"){if(e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var _=e.children,g=[],h=0;h<_.length;h++){var w=_[h].getLayout();g.push([w.x,w.y])}y||(y=n.__edge=new PU({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:v}})),_e(y,{shape:{parentPoint:[o.x,o.y],childPoints:g}},r)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}y&&!(u==="polyline"&&!e.isExpand)&&(y.useStyle(Ft({strokeNoScale:!0,fill:null},p)),Er(y,l,"lineStyle"),ls(y),s.add(y))}function FM(r,e,t,n,a){var i=e.tree.root,o=GM(i,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),v=n.get("edgeShape"),p=n.get("layout"),y=n.get("orient"),_=n.get(["lineStyle","curveness"]);d&&(v==="curve"?ro(d,{shape:y_(p,y,_,l,l),style:{opacity:0}},n,{cb:function(){t.remove(d)},removeOpt:a}):v==="polyline"&&n.get("layout")==="orthogonal"&&ro(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){t.remove(d)},removeOpt:a}))}}function GM(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,n;n=t.getLayout(),n==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:n}}function WM(r,e,t,n,a){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=GM(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};ro(t,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){FM(u,r,n,a,l)}),FM(i,r,n,a,l)}function y_(r,e,t,n,a){var i,o,s,l,u,c,f,d;if(r==="radial"){u=n.rawX,f=n.rawY,c=a.rawX,d=a.rawY;var v=hf(u,f),p=hf(u,f+(d-f)*t),y=hf(c,d+(f-d)*t),_=hf(c,d);return{x1:v.x||0,y1:v.y||0,x2:_.x||0,y2:_.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:y.x||0,cpy2:y.y||0}}else u=n.x,f=n.y,c=a.x,d=a.y,(e==="LR"||e==="RL")&&(i=u+(c-u)*t,o=f,s=c+(u-c)*t,l=d),(e==="TB"||e==="BT")&&(i=u,o=f+(d-f)*t,s=c,l=d+(f-d)*t);return{x1:u,y1:f,x2:c,y2:d,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var qn=ve();function HM(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,UM(e,t,r),N(t,function(n){N(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,jt(NU,r))})}),e.wrapMethod("cloneShallow",jt(BU,r)),N(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,jt(OU,r))}),Vt(t[e.dataType]===e)}function NU(r,e){if(FU(this)){var t=lt({},qn(this).datas);t[this.dataType]=e,UM(e,t,r)}else m_(e,this.dataType,qn(this).mainData,r);return e}function OU(r,e){return r.struct&&r.struct.update(),e}function BU(r,e){return N(qn(e).datas,function(t,n){t!==e&&m_(t.cloneShallow(),n,e,r)}),e}function zU(r){var e=qn(this).mainData;return r==null||e==null?e:qn(e).datas[r]}function VU(){var r=qn(this).mainData;return r==null?[{data:r}]:ht(ue(qn(r).datas),function(e){return{type:e,data:qn(r).datas[e]}})}function FU(r){return qn(r).mainData===r}function UM(r,e,t){qn(r).datas={},N(e,function(n,a){m_(n,a,r,t)})}function m_(r,e,t,n){qn(t).datas[e]=r,qn(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=zU,r.getLinkedDataAll=VU}var GU=function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,n){Rt(e)&&(n=t,t=e,e=null),e=e||{},Ct(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(n,this));for(var s=0;!o&&st&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,a=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var n=t.getData().tree.root,a=r.targetNode;if(Ct(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function ZM(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function w_(r,e){var t=ZM(r);return te(t,e)>=0}function Ld(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var HU=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var n={name:t.name,children:t.data},a=t.leaves||{},i=new Me(a,this,this.ecModel),o=__.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,v){var p=o.getNodeByDataIndex(v);return p&&p.children.length&&p.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(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,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return _r("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Ld(a,this),n.collapsed=!a.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}(ze);function UU(r,e,t){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function ZU(r,e){r.eachSeriesByType("tree",function(t){YU(t,e)})}function YU(r,e){var t=TU(r,e);r.layoutInfo=t;var n=r.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=BM(function(w,b){return(w.parentNode===b.parentNode?1:2)/w.depth})):(a=t.width,i=t.height,o=BM());var s=r.getData().tree.root,l=s.children[0];if(l){xU(s),UU(l,SU,o),s.hierNode.modifier=-l.hierNode.prelim,df(l,AU);var u=l,c=l,f=l;df(l,function(w){var b=w.getLayout().x;bc.getLayout().x&&(c=w),w.depth>f.depth&&(f=w)});var d=u===c?1:o(u,c)/2,v=d-u.getLayout().x,p=0,y=0,_=0,g=0;if(n==="radial")p=a/(c.getLayout().x+d+v),y=i/(f.depth-1||1),df(l,function(w){_=(w.getLayout().x+v)*p,g=(w.depth-1)*y;var b=hf(_,g);w.setLayout({x:b.x,y:b.y,rawX:_,rawY:g},!0)});else{var h=r.getOrient();h==="RL"||h==="LR"?(y=i/(c.getLayout().x+d+v),p=a/(f.depth-1||1),df(l,function(w){g=(w.getLayout().x+v)*y,_=h==="LR"?(w.depth-1)*p:a-(w.depth-1)*p,w.setLayout({x:_,y:g},!0)})):(h==="TB"||h==="BT")&&(p=a/(c.getLayout().x+d+v),y=i/(f.depth-1||1),df(l,function(w){_=(w.getLayout().x+v)*p,g=h==="TB"?(w.depth-1)*y:i-(w.depth-1)*y,w.setLayout({x:_,y:g},!0)}))}}}function XU(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),n=t.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");lt(s,o)})})}function jU(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=d_(i,e,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function $U(r){r.registerChartView(kU),r.registerSeriesModel(HU),r.registerLayout(ZU),r.registerVisual(XU),jU(r)}var YM=["treemapZoomToNode","treemapRender","treemapMove"];function qU(r){for(var e=0;e1;)i=i.parentNode;var o=Am(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var KU=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};jM(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Me({itemStyle:o},this,n);i=t.levels=QU(i,n);var l=ht(i||[],function(f){return new Me(f,s,n)},this),u=__.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,v){var p=u.getNodeByDataIndex(v),y=p?l[p.depth]:null;return d.parentModel=y||s,d})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return _r("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Ld(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},lt(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=Et(),this._idIndexMapCount=0);var a=n.get(t);return a==null&&n.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){XM(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:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(ze);function jM(r){var e=0;N(r.children,function(n){jM(n);var a=n.value;ft(a)&&(a=a[0]),e+=a});var t=r.value;ft(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),ft(r.value)?r.value[0]=t:r.value=t}function QU(r,e){var t=Pe(e.get("color")),n=Pe(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,i;N(r,function(s){var l=new Me(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!i&&n&&(o.decal=n.slice()),r}}var JU=8,$M=8,b_=5,t7=function(){function r(e){this.group=new Ht,e.add(this.group)}return r.prototype.render=function(e,t,n,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(e,f,s,l,u,c,a),Lv(o,f.pos,f.box)}},r.prototype._prepare=function(e,t,n){for(var a=e;a;a=a.parentNode){var i=fr(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+JU*2,t.emptyItemWidth);t.totalWidth+=s+$M,t.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(e,t,n,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=iF(t.pos,t.box),d=t.totalWidth,v=t.renderList,p=a.getModel("itemStyle").getItemStyle(),y=v.length-1;y>=0;y--){var _=v[y],g=_.node,h=_.width,w=_.text;d>f.width&&(d-=h-u,h=u,w=null);var b=new Jr({shape:{points:e7(l,0,h,c,y===v.length-1,y===0)},style:Ft(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new pe({style:Be(i,{text:w})}),textConfig:{position:"inside"},z2:bl*1e4,onclick:jt(s,g)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=Be(o,{text:w}),b.ensureState("emphasis").style=p,Xe(b,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(b),r7(b,e,g),l+=h+$M}},r.prototype.remove=function(){this.group.removeAll()},r}();function e7(r,e,t,n,a,i){var o=[[a?r:r-b_,e],[r+t,e],[r+t,e+n],[a?r:r-b_,e+n]];return!i&&o.splice(2,0,[r+t+b_,e+n/2]),!a&&o.push([r,e+n/2]),o}function r7(r,e,t){Zt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Ld(t,e)}}var n7=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;aKM||Math.abs(t.dy)>KM)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var n=t.originX,a=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Jt(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=i,u){var d=u.min||0,v=u.max||1/0;f=Math.max(Math.min(v,f),d)}var p=f/c.zoom;c.zoom=f;var y=this.seriesModel.layoutInfo;n-=y.x,a-=y.y;var _=mn();Ea(_,_,[-n,-a]),Pg(_,_,[p,p]),Ea(_,_,[n,a]),l.applyTransform(_),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var n=this;t.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Cv(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new t7(this.group))).render(t,n,a.node,function(o){i._state!=="animating"&&(w_(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=pf(),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,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(ke);function pf(){return{nodeGroup:[],background:[],content:[]}}function u7(r,e,t,n,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=r.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,p=c.height,y=c.borderWidth,_=c.invisible,g=o.getRawIndex(),h=s&&s.getRawIndex(),w=o.viewChildren,b=c.upperHeight,S=w&&w.length,A=d.getModel("itemStyle"),T=d.getModel(["emphasis","itemStyle"]),D=d.getModel(["blur","itemStyle"]),L=d.getModel(["select","itemStyle"]),I=A.get("borderRadius")||0,P=it("nodeGroup",x_);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),Md(P).nodeWidth=v,Md(P).nodeHeight=p,c.isAboveViewRoot)return P;var E=it("background",qM,u,o7);E&&K(P,E,S&&c.upperLabelHeight);var R=d.getModel("emphasis"),M=R.get("focus"),B=R.get("blurScope"),F=R.get("disabled"),W=M==="ancestor"?o.getAncestorsIndices():M==="descendant"?o.getDescendantIndices():M;if(S)eo(P)&&cs(P,!1),E&&(cs(E,!F),f.setItemGraphicEl(o.dataIndex,E),jy(E,W,B));else{var j=it("content",qM,u,s7);j&&U(P,j),E.disableMorphing=!0,E&&eo(E)&&cs(E,!1),cs(P,!F),f.setItemGraphicEl(o.dataIndex,P);var H=d.getShallow("cursor");H&&j.attr("cursor",H),jy(P,W,B)}return P;function K(xt,wt,Ot){var bt=Zt(wt);if(bt.dataIndex=o.dataIndex,bt.seriesIndex=r.seriesIndex,wt.setShape({x:0,y:0,width:v,height:p,r:I}),_)$(wt);else{wt.invisible=!1;var Pt=o.getVisual("style"),se=Pt.stroke,O=tI(A);O.fill=se;var st=Gs(T);st.fill=T.get("borderColor");var nt=Gs(D);nt.fill=D.get("borderColor");var X=Gs(L);if(X.fill=L.get("borderColor"),Ot){var Z=v-2*y;ut(wt,se,Pt.opacity,{x:y,y:0,width:Z,height:b})}else wt.removeTextContent();wt.setStyle(O),wt.ensureState("emphasis").style=st,wt.ensureState("blur").style=nt,wt.ensureState("select").style=X,ls(wt)}xt.add(wt)}function U(xt,wt){var Ot=Zt(wt);Ot.dataIndex=o.dataIndex,Ot.seriesIndex=r.seriesIndex;var bt=Math.max(v-2*y,0),Pt=Math.max(p-2*y,0);if(wt.culling=!0,wt.setShape({x:y,y,width:bt,height:Pt,r:I}),_)$(wt);else{wt.invisible=!1;var se=o.getVisual("style"),O=se.fill,st=tI(A);st.fill=O,st.decal=se.decal;var nt=Gs(T),X=Gs(D),Z=Gs(L);ut(wt,O,se.opacity,null),wt.setStyle(st),wt.ensureState("emphasis").style=nt,wt.ensureState("blur").style=X,wt.ensureState("select").style=Z,ls(wt)}xt.add(wt)}function $(xt){!xt.invisible&&i.push(xt)}function ut(xt,wt,Ot,bt){var Pt=d.getModel(bt?JM:QM),se=fr(d.get("name"),null),O=Pt.getShallow("show");Pr(xt,mr(d,bt?JM:QM),{defaultText:O?se:null,inheritColor:wt,defaultOpacity:Ot,labelFetcher:r,labelDataIndex:o.dataIndex});var st=xt.getTextContent();if(st){var nt=st.style,X=_g(nt.padding||0);bt&&(xt.setTextConfig({layoutRect:bt}),st.disableLabelLayout=!0),st.beforeUpdate=function(){var tt=Math.max((bt?bt.width:xt.shape.width)-X[1]-X[3],0),pt=Math.max((bt?bt.height:xt.shape.height)-X[0]-X[2],0);(nt.width!==tt||nt.height!==pt)&&st.setStyle({width:tt,height:pt})},nt.truncateMinChar=2,nt.lineOverflow="truncate",ot(nt,bt,c);var Z=st.getState("emphasis");ot(Z?Z.style:null,bt,c)}}function ot(xt,wt,Ot){var bt=xt?xt.text:null;if(!wt&&Ot.isLeafRoot&&bt!=null){var Pt=r.get("drillDownIcon",!0);xt.text=Pt?Pt+" "+bt:bt}}function it(xt,wt,Ot,bt){var Pt=h!=null&&t[xt][h],se=a[xt];return Pt?(t[xt][h]=null,Nt(se,Pt)):_||(Pt=new wt,Pt instanceof Vn&&(Pt.z2=c7(Ot,bt)),Kt(se,Pt)),e[xt][g]=Pt}function Nt(xt,wt){var Ot=xt[g]={};wt instanceof x_?(Ot.oldX=wt.x,Ot.oldY=wt.y):Ot.oldShape=lt({},wt.shape)}function Kt(xt,wt){var Ot=xt[g]={},bt=o.parentNode,Pt=wt instanceof Ht;if(bt&&(!n||n.direction==="drillDown")){var se=0,O=0,st=a.background[bt.getRawIndex()];!n&&st&&st.oldShape&&(se=st.oldShape.width,O=st.oldShape.height),Pt?(Ot.oldX=0,Ot.oldY=O):Ot.oldShape={x:se,y:O,width:0,height:0}}Ot.fadein=!Pt}}function c7(r,e){return r*i7+e}var gf=N,f7=zt,Id=-1,br=function(){function r(e){var t=e.mappingMethod,n=e.type,a=this.option=Wt(e);this.type=n,this.mappingMethod=t,this._normalizeData=d7[t];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(S_(a),h7(a)):t==="category"?a.categories?v7(a):S_(a,!0):(Vt(t!=="linear"||a.dataExtent),S_(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return Lt(this._normalizeData,this)},r.listVisualTypes=function(){return ue(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){zt(e)?N(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var a,i=ft(e)?[]:zt(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},n;return e&&gf(r.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(ft(e))e=e.slice();else if(f7(e)){var t=[];gf(e,function(n,a){t.push(a)}),e=t}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,n){for(var a,i=1/0,o=0,s=t.length;o=0;i--)n[i]==null&&(delete t[e[i]],e.pop())}function S_(r,e){var t=r.visual,n=[];zt(t)?gf(t,function(i){n.push(i)}):t!=null&&n.push(t);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),rI(r,n)}function Ed(r){return{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("color",r(t("color"),a))},_normalizedToVisual:A_([0,1])}}function eI(r){var e=this.option.visual;return e[Math.round(Le(r,[0,1],[0,e.length-1],!0))]||{}}function yf(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function mf(r){var e=this.option.visual;return e[this.option.loop&&r!==Id?r%e.length:r]}function Ws(){return this.option.visual[0]}function A_(r){return{linear:function(e){return Le(e,r,this.option.visual,!0)},category:mf,piecewise:function(e,t){var n=T_.call(this,t);return n==null&&(n=Le(e,r,this.option.visual,!0)),n},fixed:Ws}}function T_(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=br.findPieceIndex(r,t),a=t[n];if(a&&a.visual)return a.visual[this.type]}}function rI(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=ht(e,function(t){var n=_n(t);return!n&&process.env.NODE_ENV!=="production"&&Ye("'"+t+"' is an illegal color, fallback to '#000000'",!0),n||[0,0,0,1]})),e}var d7={linear:function(r){return Le(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=br.findPieceIndex(r,e,!0);if(t!=null)return Le(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e==null?Id:e},fixed:Je};function Pd(r,e,t){return r?e<=t:e=t.length||y===t[y.depth]){var g=w7(a,l,y,_,p,n);aI(y,g,t,n)}})}}}function y7(r,e,t){var n=lt({},e),a=t.designatedVisualItemStyle;return N(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function iI(r){var e=C_(r,"color");if(e){var t=C_(r,"colorAlpha"),n=C_(r,"colorSaturation");return n&&(e=ju(e,null,null,n)),t&&(e=Dh(e,t)),e}}function m7(r,e){return e!=null?ju(e,null,null,r):null}function C_(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function _7(r,e,t,n,a,i){if(!(!i||!i.length)){var o=D_(e,"color")||a.color!=null&&a.color!=="none"&&(D_(e,"colorAlpha")||D_(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new br(f);return nI(d).drColorMappingBy=c,d}}}function D_(r,e){var t=r.get(e);return ft(t)&&t.length?{name:e,range:t}:null}function w7(r,e,t,n,a,i){var o=lt({},e);if(a){var s=a.type,l=s==="color"&&nI(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var _f=Math.max,kd=Math.min,oI=nr,L_=N,sI=["itemStyle","borderWidth"],b7=["itemStyle","gapWidth"],x7=["upperLabel","show"],S7=["upperLabel","height"];const A7={seriesType:"treemap",reset:function(r,e,t,n){var a=t.getWidth(),i=t.getHeight(),o=r.option,s=hr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=At(oI(s.width,l[0]),a),c=At(oI(s.height,l[1]),i),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],v=vf(n,d,r),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,y=r.getViewRoot(),_=ZM(y);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?I7(r,v,y,u,c):p?[p.width,p.height]:[u,c],h=o.sort;h&&h!=="asc"&&h!=="desc"&&(h="desc");var w={squareRatio:o.squareRatio,sort:h,leafDepth:o.leafDepth};y.hostTree.clearLayouts();var b={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};y.setLayout(b),lI(y,w,!1,0),b=y.getLayout(),L_(_,function(A,T){var D=(_[T+1]||y).getValue();A.setLayout(lt({dataExtent:[D,D],borderWidth:0,upperHeight:0},b))})}var S=r.getData().tree.root;S.setLayout(E7(s,p,v),!0),r.setLayoutInfo(s),cI(S,new Jt(-s.x,-s.y,a,i),_,y,0)}};function lI(r,e,t,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(sI),u=s.get(b7)/2,c=fI(s),f=Math.max(l,c),d=l-u,v=f-u;r.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=_f(a-2*d,0),i=_f(i-d-v,0);var p=a*i,y=T7(r,s,p,e,t,n);if(y.length){var _={x:d,y:v,width:a,height:i},g=kd(a,i),h=1/0,w=[];w.area=0;for(var b=0,S=y.length;b=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function M7(r,e,t){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;in&&(n=o));var l=r.area*r.area,u=e*e*t;return l?_f(u*n/l,l/(u*a)):1/0}function uI(r,e,t,n,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?r.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var f=0,d=r.length;fvS&&(u=vS),i=s}un&&(n=e);var i=n%2?n+2:n+3;a=[];for(var o=0;o0&&(S[0]=-S[0],S[1]=-S[1]);var T=b[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var D=-Math.atan2(b[1],b[0]);f[0].8?"left":d[0]<-.8?"right":"center",y=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*g+c[0],i.y=-d[1]*h+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",y=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*T+c[0],i.y=c[1]+L,p=b[0]<0?"right":"left",i.originX=-g*T,i.originY=-L;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=A[0],i.y=A[1]+L,p="center",i.originY=-L;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*T+f[0],i.y=f[1]+L,p=b[0]>=0?"right":"left",i.originX=g*T,i.originY=-L;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||y,align:i.__align||p})}},e}(Ht),F_=function(){function r(e){this.group=new Ht,this._LineCtor=e||V_}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=xI(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=xI(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(s){!s.isGroup&&!$7(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function xI(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:mr(e)}}function SI(r){return isNaN(r[0])||isNaN(r[1])}function G_(r){return r&&!SI(r[0])&&!SI(r[1])}var W_=[],H_=[],U_=[],au=Ar,Z_=Fo,AI=Math.abs;function TI(r,e,t){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){W_[0]=au(n[0],a[0],i[0],c),W_[1]=au(n[1],a[1],i[1],c);var f=AI(Z_(W_,e)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function Y_(r,e){var t=[],n=Zu,a=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[oi(u[0]),oi(u[1])],u[2]&&u.__original.push(oi(u[2])));var d=u.__original;if(u[2]!=null){if(Xr(a[0],d[0]),Xr(a[1],d[2]),Xr(a[2],d[1]),c&&c!=="none"){var v=xf(s.node1),p=TI(a,d[0],v*e);n(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],n(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(f&&f!=="none"){var v=xf(s.node2),p=TI(a,d[1],v*e);n(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],n(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Xr(u[0],a[0]),Xr(u[1],a[2]),Xr(u[2],a[1])}else{if(Xr(i[0],d[0]),Xr(i[1],d[1]),Vo(o,i[1],i[0]),ll(o,o),c&&c!=="none"){var v=xf(s.node1);wg(i[0],i[0],o,v*e)}if(f&&f!=="none"){var v=xf(s.node2);wg(i[1],i[1],o,-v*e)}Xr(u[0],i[0]),Xr(u[1],i[1])}})}function CI(r){return r.type==="view"}var q7=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){var a=new tf,i=new F_,o=this.group;this._controller=new uf(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,n,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(CI(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):_e(u,c,t)}Y_(t.getGraph(),bf(t));var f=t.getData();s.updateData(f);var d=t.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(t,n,a),clearTimeout(this._layoutTimeout);var v=t.forceLayout,p=t.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,p);var y=t.get("layout");f.graph.eachNode(function(w){var b=w.dataIndex,S=w.getGraphicEl(),A=w.getModel();if(S){S.off("drag").off("dragend");var T=A.get("draggable");T&&S.on("drag",function(L){switch(y){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,p),v.setFixed(b),f.setItemLayout(b,[S.x,S.y]);break;case"circular":f.setItemLayout(b,[S.x,S.y]),w.setLayout({fixed:!0},!0),R_(t,"symbolSize",w,[L.offsetX,L.offsetY]),i.updateLayout(t);break;case"none":default:f.setItemLayout(b,[S.x,S.y]),P_(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){v&&v.setUnfixed(b)}),S.setDraggable(T,!!A.get("cursor"));var D=A.get(["emphasis","focus"]);D==="adjacency"&&(Zt(S).focus=w.getAdjacentDataIndices())}}),f.graph.eachEdge(function(w){var b=w.getGraphicEl(),S=w.getModel().get(["emphasis","focus"]);b&&S==="adjacency"&&(Zt(b).focus={edge:[w.dataIndex],node:[w.node1.dataIndex,w.node2.dataIndex]})});var _=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),g=f.getLayout("cx"),h=f.getLayout("cy");f.graph.eachNode(function(w){gI(w,_,g,h)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,n){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Sd(u,a,t)}),!CI(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){s_(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){l_(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),Y_(t.getGraph(),bf(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,n=t.getData(),a=bf(t);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){Y_(t.getGraph(),bf(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(ke);function iu(r){return"_EC_"+r}var K7=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var n=this._nodesMap;if(n[iu(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var a=new Hs(e,t);return a.hostGraph=this,this.nodes.push(a),n[iu(e)]=a,a},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[iu(e)]},r.prototype.addEdge=function(e,t,n){var a=this._nodesMap,i=this._edgesMap;if(ye(e)&&(e=this.nodes[e]),ye(t)&&(t=this.nodes[t]),e instanceof Hs||(e=a[iu(e)]),t instanceof Hs||(t=a[iu(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new DI(e,t,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Hs&&(e=e.id),t instanceof Hs&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var n=this.nodes,a=n.length,i=0;i=0&&e.call(t,n[i],i)},r.prototype.eachEdge=function(e,t){for(var n=this.edges,a=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},r.prototype.breadthFirstTraverse=function(e,t,n,a){if(t instanceof Hs||(t=this._nodesMap[iu(t)]),!!t){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[r][e].setItemVisual(this.dataIndex,t,n)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,n){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,n)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}rr(Hs,LI("hostGraph","data")),rr(DI,LI("hostGraph","edgeData"));function MI(r,e,t,n,a){for(var i=new K7(n),o=0;o "+d)),u++)}var v=t.get("coordinateSystem"),p;if(v==="cartesian2d"||v==="polar")p=xi(r,t);else{var y=Bl.get(v),_=y?y.dimensions||[]:[];te(_,"value")<0&&_.concat(["value"]);var g=Zc(r,{coordDimensions:_,encodeDefine:t.getEncode()}).dimensions;p=new en(g,t),p.initData(r)}var h=new en(["value"],t);return h.initData(l,s),a&&a(p,h),HM({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:h},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Q7=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new of(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),$o(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;{z7(this);var s=MI(i,a,this,!0,l);return N(s.edges,function(u){V7(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var y=o._categoriesModels,_=p.getShallow("category"),g=y[_];return g&&(g.parentModel=p.parentModel,p.parentModel=g),p});var f=Me.prototype.getModel;function d(p,y){var _=f.call(this,p,y);return _.resolveParentPath=v,_}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=v,p.getModel=d,p});function v(p){if(p&&(p[0]==="label"||p[1]==="label")){var y=p.slice();return p[0]==="label"?y[0]="edgeLabel":p[1]==="label"&&(y[1]="edgeLabel"),y}return p}}},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,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),_r("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=_T({series:this,dataIndex:t,multipleSeries:n});return f},e.prototype._updateCategoriesData=function(){var t=ht(this.option.categories||[],function(a){return a.value!=null?a:lt({value:0},a)}),n=new en(["value"],this);n.initData(t),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&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}(ze),J7={type:"graphRoam",event:"graphRoam",update:"none"};function t9(r){r.registerChartView(q7),r.registerSeriesModel(Q7),r.registerProcessor(k7),r.registerVisual(R7),r.registerVisual(N7),r.registerLayout(F7),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,W7),r.registerLayout(U7),r.registerCoordinateSystem("graphView",{dimensions:ff.dimensions,create:Y7}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Je),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Je),r.registerAction(J7,function(e,t,n){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=d_(i,e,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var e9=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),r9=function(r){J(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new e9},e.prototype.buildPath=function(t,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),c=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(n.x+a(l)*s,n.y+i(l)*s),t.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),t.lineTo(n.x-a(l)*s,n.y-i(l)*s),t.lineTo(u,c)},e}(oe);function n9(r,e){var t=r.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=At(t[0],e.getWidth()),s=At(t[1],e.getHeight()),l=At(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Od(r,e){var t=r==null?"":r+"";return e&&(Ct(e)?t=e.replace("{value}",t):Rt(e)&&(t=e(r))),t}var a9=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=n9(t,a);this._renderMain(t,n,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,f=t.getModel("axisLine"),d=f.get("roundCap"),v=d?gd:Qr,p=f.get("show"),y=f.getModel("lineStyle"),_=y.get("width"),g=[u,c];Oy(g,!l),u=g[0],c=g[1];for(var h=c-u,w=u,b=[],S=0;p&&S=L&&(I===0?0:i[I-1][0])Math.PI/2&&(ot+=Math.PI)):ut==="tangential"?ot=-D-Math.PI/2:ye(ut)&&(ot=ut*Math.PI/180),ot===0?f.add(new pe({style:Be(w,{text:H,x:U,y:$,verticalAlign:B<-.8?"top":B>.8?"bottom":"middle",align:M<-.4?"left":M>.4?"right":"center"},{inheritColor:K}),silent:!0})):f.add(new pe({style:Be(w,{text:H,x:U,y:$,verticalAlign:"middle",align:"center"},{inheritColor:K}),silent:!0,originX:U,originY:$,rotation:ot}))}if(h.get("show")&&F!==b){var W=h.get("distance");W=W?W+c:c;for(var it=0;it<=S;it++){M=Math.cos(D),B=Math.sin(D);var Nt=new yr({shape:{x1:M*(p-W)+d,y1:B*(p-W)+v,x2:M*(p-T-W)+d,y2:B*(p-T-W)+v},silent:!0,style:E});E.stroke==="auto"&&Nt.setStyle({stroke:i((F+it/S)/b)}),f.add(Nt),D+=I}D-=I}else D+=L}},e.prototype._renderPointer=function(t,n,a,i,o,s,l,u,c){var f=this.group,d=this._data,v=this._progressEls,p=[],y=t.get(["pointer","show"]),_=t.getModel("progress"),g=_.get("show"),h=t.getData(),w=h.mapDimension("value"),b=+t.get("min"),S=+t.get("max"),A=[b,S],T=[s,l];function D(I,P){var E=h.getItemModel(I),R=E.getModel("pointer"),M=At(R.get("width"),o.r),B=At(R.get("length"),o.r),F=t.get(["pointer","icon"]),W=R.get("offsetCenter"),j=At(W[0],o.r),H=At(W[1],o.r),K=R.get("keepAspect"),U;return F?U=sr(F,j-M/2,H-B,M,B,null,K):U=new r9({shape:{angle:-Math.PI/2,width:M,r:B,x:j,y:H}}),U.rotation=-(P+Math.PI/2),U.x=o.cx,U.y=o.cy,U}function L(I,P){var E=_.get("roundCap"),R=E?gd:Qr,M=_.get("overlap"),B=M?_.get("width"):c/h.count(),F=M?o.r-B:o.r-(I+1)*B,W=M?o.r:o.r-I*B,j=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:F,r:W}});return M&&(j.z2=Le(h.get(w,I),[b,S],[100,0],!0)),j}(g||y)&&(h.diff(d).add(function(I){var P=h.get(w,I);if(y){var E=D(I,s);We(E,{rotation:-((isNaN(+P)?T[0]:Le(P,A,T,!0))+Math.PI/2)},t),f.add(E),h.setItemGraphicEl(I,E)}if(g){var R=L(I,s),M=_.get("clip");We(R,{shape:{endAngle:Le(P,A,T,M)}},t),f.add(R),Vy(t.seriesIndex,h.dataType,I,R),p[I]=R}}).update(function(I,P){var E=h.get(w,I);if(y){var R=d.getItemGraphicEl(P),M=R?R.rotation:s,B=D(I,M);B.rotation=M,_e(B,{rotation:-((isNaN(+E)?T[0]:Le(E,A,T,!0))+Math.PI/2)},t),f.add(B),h.setItemGraphicEl(I,B)}if(g){var F=v[P],W=F?F.shape.endAngle:s,j=L(I,W),H=_.get("clip");_e(j,{shape:{endAngle:Le(E,A,T,H)}},t),f.add(j),Vy(t.seriesIndex,h.dataType,I,j),p[I]=j}}).execute(),h.each(function(I){var P=h.getItemModel(I),E=P.getModel("emphasis"),R=E.get("focus"),M=E.get("blurScope"),B=E.get("disabled");if(y){var F=h.getItemGraphicEl(I),W=h.getItemVisual(I,"style"),j=W.fill;if(F instanceof Tr){var H=F.style;F.useStyle(lt({image:H.image,x:H.x,y:H.y,width:H.width,height:H.height},W))}else F.useStyle(W),F.type!=="pointer"&&F.setColor(j);F.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),F.style.fill==="auto"&&F.setStyle("fill",i(Le(h.get(w,I),A,[0,1],!0))),F.z2EmphasisLift=0,Er(F,P),Xe(F,R,M,B)}if(g){var K=p[I];K.useStyle(h.getItemVisual(I,"style")),K.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),K.z2EmphasisLift=0,Er(K,P),Xe(K,R,M,B)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,n){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=sr(s,n.cx-o/2+At(l[0],n.r),n.cy-o/2+At(l[1],n.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,n,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),f=+t.get("max"),d=new Ht,v=[],p=[],y=t.isAnimationEnabled(),_=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){v[g]=new pe({silent:!0}),p[g]=new pe({silent:!0})}).update(function(g,h){v[g]=s._titleEls[h],p[g]=s._detailEls[h]}).execute(),l.each(function(g){var h=l.getItemModel(g),w=l.get(u,g),b=new Ht,S=i(Le(w,[c,f],[0,1],!0)),A=h.getModel("title");if(A.get("show")){var T=A.get("offsetCenter"),D=o.cx+At(T[0],o.r),L=o.cy+At(T[1],o.r),I=v[g];I.attr({z2:_?0:2,style:Be(A,{x:D,y:L,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:S})}),b.add(I)}var P=h.getModel("detail");if(P.get("show")){var E=P.get("offsetCenter"),R=o.cx+At(E[0],o.r),M=o.cy+At(E[1],o.r),B=At(P.get("width"),o.r),F=At(P.get("height"),o.r),W=t.get(["progress","show"])?l.getItemVisual(g,"style").fill:S,I=p[g],j=P.get("formatter");I.attr({z2:_?0:2,style:Be(P,{x:R,y:M,text:Od(w,j),width:isNaN(B)?null:B,height:isNaN(F)?null:F,align:"center",verticalAlign:"middle"},{inheritColor:W})}),q2(I,{normal:P},w,function(K){return Od(K,j)}),y&&K2(I,g,l,t,{getFormattedLabel:function(K,U,$,ut,ot,it){return Od(it?it.interpolatedValue:w,j)}}),b.add(I)}d.add(b)}),this.group.add(d),this._titleEls=v,this._detailEls=p},e.type="gauge",e}(ke),i9=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,n){return tu(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(ze);function o9(r){r.registerChartView(a9),r.registerSeriesModel(i9)}var s9=["itemStyle","opacity"],l9=function(r){J(e,r);function e(t,n){var a=r.call(this)||this,i=a,o=new tn,s=new pe;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,n,!0),a}return e.prototype.updateData=function(t,n,a){var i=this,o=t.hostModel,s=t.getItemModel(n),l=t.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(s9);c=c==null?1:c,a||ga(i),i.useStyle(t.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,We(i,{style:{opacity:c}},o,n)):_e(i,{style:{opacity:c},shape:{points:l.points}},o,n),Er(i,s),this._updateLabel(t,n),Xe(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(n),u=t.getItemLayout(n),c=u.label,f=t.getItemVisual(n,"style"),d=f.fill;Pr(o,mr(l),{labelFetcher:t.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:t.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var v=c.linePoints;i.setShape({points:v}),a.textGuideLineConfig={anchor:v?new Qt(v[0][0],v[0][1]):null},_e(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),T0(a,C0(l),{stroke:d})},e}(Jr),u9=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new l9(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);mc(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(ke),c9=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new of(Lt(this.getData,this),Lt(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,n){return tu(this,{coordDimensions:["value"],encodeDefaulter:jt(wm,this)})},e.prototype._defaultLabelLine=function(t){$o(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var n=this.getData(),a=r.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},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}(ze);function f9(r,e){return hr(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function h9(r,e){for(var t=r.mapDimension("value"),n=r.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=r.count();o-1&&(o="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),t==="horizontal"&&["left","right"].indexOf(o)>-1&&(o="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),o==="left"?(y=(u[3][0]+u[0][0])/2,_=(u[3][1]+u[0][1])/2,g=y-w,d=g-5,f="right"):o==="right"?(y=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,g=y+w,d=g+5,f="left"):o==="top"?(y=(u[3][0]+u[0][0])/2,_=(u[3][1]+u[0][1])/2,h=_-w,v=h-5,f="center"):o==="bottom"?(y=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,h=_+w,v=h+5,f="center"):o==="rightTop"?(y=t==="horizontal"?u[3][0]:u[1][0],_=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(h=_-w,v=h-5,f="center"):(g=y+w,d=g+5,f="top")):o==="rightBottom"?(y=u[2][0],_=u[2][1],t==="horizontal"?(h=_+w,v=h+5,f="center"):(g=y+w,d=g+5,f="bottom")):o==="leftTop"?(y=u[0][0],_=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(h=_-w,v=h-5,f="center"):(g=y-w,d=g-5,f="right")):o==="leftBottom"?(y=t==="horizontal"?u[1][0]:u[3][0],_=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(h=_+w,v=h+5,f="center"):(g=y-w,d=g-5,f="right")):(y=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,t==="horizontal"?(h=_+w,v=h+5,f="center"):(g=y+w,d=g+5,f="left")),t==="horizontal"?(g=y,d=g):(h=_,v=h),p=[[y,_],[g,h]]}l.label={linePoints:p,x:d,y:v,verticalAlign:"middle",textAlign:f,inside:c}})}function d9(r,e){r.eachSeriesByType("funnel",function(t){var n=t.getData(),a=n.mapDimension("value"),i=t.get("sort"),o=f9(t,e),s=t.get("orient"),l=o.width,u=o.height,c=h9(n,i),f=o.x,d=o.y,v=s==="horizontal"?[At(t.get("minSize"),u),At(t.get("maxSize"),u)]:[At(t.get("minSize"),l),At(t.get("maxSize"),l)],p=n.getDataExtent(a),y=t.get("min"),_=t.get("max");y==null&&(y=Math.min(p[0],0)),_==null&&(_=p[1]);var g=t.get("funnelAlign"),h=t.get("gap"),w=s==="horizontal"?l:u,b=(w-h*(n.count()-1))/n.count(),S=function(M,B){if(s==="horizontal"){var F=n.get(a,M)||0,W=Le(F,[y,_],v,!0),j=void 0;switch(g){case"top":j=d;break;case"center":j=d+(u-W)/2;break;case"bottom":j=d+(u-W);break}return[[B,j],[B,j+W]]}var H=n.get(a,M)||0,K=Le(H,[y,_],v,!0),U;switch(g){case"left":U=f;break;case"center":U=f+(l-K)/2;break;case"right":U=f+l-K;break}return[[U,B],[U+K,B]]};i==="ascending"&&(b=-b,h=-h,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var A=0;AL9)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!j_(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=t.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function j_(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var E9=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var n=this.option;t&&qt(n,t,!0),this._initDimensions()},e.prototype.contains=function(t,n){var a=t.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){N(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){t.hasOwnProperty(n)&&(this.option[n]=t[n])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],a=Ae(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);N(a,function(i){t.push("dim"+i.get("dim")),n.push(i.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}(le),P9=function(r){J(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(ba);function Us(r,e,t,n,a,i){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=ou(a,[0,o])),i!=null&&(i=Math.max(i,a!=null?a:0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=ou(s,[0,o]),a=i=ou(s,[a,i]),n=0}e[0]=ou(e[0],t),e[1]=ou(e[1],t);var l=$_(e,n);e[n]+=r;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[n]=ou(e[n],c);var f;return f=$_(e,n),a!=null&&(f.sign!==l.sign||f.spani&&(e[1-n]=e[n]+f.sign*i),e}function $_(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function ou(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var q_=N,kI=Math.min,RI=Math.max,NI=Math.floor,k9=Math.ceil,OI=qe,R9=Math.PI,N9=function(){function r(e,t,n){this.type="parallel",this._axesMap=Et(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=e.dimensions,i=e.parallelAxisIndex;q_(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new P9(o,sd(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=n&&o<=n+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var a=n.getData();q_(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),ql(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=Bd(e.get("axisExpandWidth"),l),f=Bd(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=e.get("axisExpandWindow"),p;if(v)p=Bd(v[1]-v[0],l),v[1]=v[0]+p;else{p=Bd(c*(f-1),l);var y=e.get("axisExpandCenter")||NI(u/2);v=[c*y-p/2],v[1]=v[0]+p}var _=(s-p)/(u-f);_<3&&(_=0);var g=[NI(OI(v[0]/c,1))+1,k9(OI(v[1]/c,1))-1],h=_/c*v[0];return{layout:i,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:s,axisBase:t[n[1-o]],axisLength:t[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:_,axisExpandWindow:v,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:h}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),q_(n,function(o,s){var l=(a.axisExpandable?B9:O9)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:R9/2,vertical:0},f=[u[i].x+e.x,u[i].y+e.y],d=c[i],v=mn();Go(v,v,d),Ea(v,v,f),this._axesLayout[o]={position:f,rotation:d,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,n,a){n==null&&(n=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];N(o,function(_){s.push(e.mapDimension(_)),l.push(i.get(_).model)});for(var u=this.hasAxisBrushed(),c=n;ci*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?Us(l,a,o,"all"):u="none";else{var v=a[1]-a[0],p=o[1]*s/v;a=[RI(0,p-v/2)],a[1]=kI(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},r}();function Bd(r,e){return kI(RI(r,e[0]),e[1])}function O9(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function B9(r,e){var t=e.layoutLength,n=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return r=0;a--)zn(n[a])},e.prototype.getActiveState=function(t){var n=this.activeIntervals;if(!n.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=n.length;iW9}function UI(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function ZI(r,e,t,n){var a=new Ht;return a.add(new de({name:"main",style:a1(t),silent:!0,draggable:!0,cursor:"move",drift:jt(jI,r,e,a,["n","s","w","e"]),ondragend:jt(Ys,e,{isEnd:!0})})),N(n,function(i){a.add(new de({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:jt(jI,r,e,a,i),ondragend:jt(Ys,e,{isEnd:!0})}))}),a}function YI(r,e,t,n){var a=n.brushStyle.lineWidth||0,i=su(a,H9),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],f=t[1][1],d=c-i+a/2,v=f-i+a/2,p=c-o,y=f-s,_=p+a,g=y+a;Ti(r,e,"main",o,s,p,y),n.transformable&&(Ti(r,e,"w",l,u,i,g),Ti(r,e,"e",d,u,i,g),Ti(r,e,"n",l,u,_,i),Ti(r,e,"s",l,v,_,i),Ti(r,e,"nw",l,u,i,i),Ti(r,e,"ne",d,u,i,i),Ti(r,e,"sw",l,v,i,i),Ti(r,e,"se",d,v,i,i))}function n1(r,e){var t=e.__brushOption,n=t.transformable,a=e.childAt(0);a.useStyle(a1(t)),a.attr({silent:!n,cursor:n?"move":"default"}),N([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?i1(r,i[0]):$9(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?Z9[s]+"-resize":null})})}function Ti(r,e,t,n,a,i,o){var s=e.childOfName(t);s&&s.setShape(K9(o1(r,e,[[n,a],[n+i,a+o]])))}function a1(r){return Ft({strokeNoScale:!0},r.brushStyle)}function XI(r,e,t,n){var a=[Sf(r,t),Sf(e,n)],i=[su(r,t),su(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function j9(r){return ds(r.group)}function i1(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=pv(t[e],j9(r));return n[a]}function $9(r,e){var t=[i1(r,e[0]),i1(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function jI(r,e,t,n,a,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=$I(e,a,i);N(n,function(u){var c=U9[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(XI(s[0][0],s[1][0],s[0][1],s[1][1])),J_(e,t),Ys(e,{isEnd:!1})}function q9(r,e,t,n){var a=e.__brushOption.range,i=$I(r,t,n);N(a,function(o){o[0]+=i[0],o[1]+=i[1]}),J_(r,e),Ys(r,{isEnd:!1})}function $I(r,e,t){var n=r.group,a=n.transformCoordToLocal(e,t),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function o1(r,e,t){var n=HI(r,e);return n&&n!==Zs?n.clipPath(t,r._transform):Wt(t)}function K9(r){var e=Sf(r[0][0],r[1][0]),t=Sf(r[0][1],r[1][1]),n=su(r[0][0],r[1][0]),a=su(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:a-t}}function Q9(r,e,t){if(!(!r._brushType||tZ(r,e.offsetX,e.offsetY))){var n=r._zr,a=r._covers,i=e1(r,e,t);if(!r._dragging)for(var o=0;on.getWidth()||t<0||t>n.getHeight()}var zd={lineX:JI(0),lineY:JI(1),rect:{createCover:function(r,e){function t(n){return n}return ZI({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=UI(r);return XI(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){YI(r,e,t,n)},updateCommon:n1,contain:l1},polygon:{createCover:function(r,e){var t=new Ht;return t.add(new tn({name:"main",style:a1(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Jr({name:"main",draggable:!0,drift:jt(q9,r,e),ondragend:jt(Ys,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:o1(r,e,t)})},updateCommon:n1,contain:l1}};function JI(r){return{createCover:function(e,t){return ZI({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=UI(e),n=Sf(t[0][r],t[1][r]),a=su(t[0][r],t[1][r]);return[n,a]},updateCoverShape:function(e,t,n,a){var i,o=HI(e,t);if(o!==Zs&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),YI(e,t,l,a)},updateCommon:n1,contain:l1}}function tE(r){return r=u1(r),function(e){return W2(e,r)}}function eE(r,e){return r=u1(r),function(t){var n=e!=null?e:t,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function rE(r,e,t){var n=u1(r);return function(a,i){return n.contain(i[0],i[1])&&!Sd(a,e,t)}}function u1(r){return Jt.create(r)}var eZ=["axisLine","axisTickLabel","axisName"],rZ=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){r.prototype.init.apply(this,arguments),(this._brushController=new Q_(n.getZr())).on("brush",Lt(this._onBrush,this))},e.prototype.render=function(t,n,a,i){if(!nZ(t,n,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ht,this.group.add(this._axisGroup),!!t.get("show")){var s=iZ(t,n),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,f=t.axis.dim,d=l.getAxisLayout(f),v=lt({strokeContainThreshold:c},d),p=new an(t,v);N(eZ,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(v,u,t,s,c,a),_c(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Jt.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:tE(f),isTargetByCursor:rE(f,s,i),getLinearBrushOtherExtent:eE(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(aZ(a))},e.prototype._onBrush=function(t){var n=t.areas,a=this.axisModel,i=a.axis,o=ht(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Ue);function nZ(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function aZ(r){var e=r.axis;return ht(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function iZ(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var oZ={type:"axisAreaSelect",event:"axisAreaSelected"};function sZ(r){r.registerAction(oZ,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var lZ={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function nE(r){r.registerComponentView(M9),r.registerComponentModel(E9),r.registerCoordinateSystem("parallel",V9),r.registerPreprocessor(T9),r.registerComponentModel(K_),r.registerComponentView(rZ),eu(r,"parallel",K_,lZ),sZ(r)}function uZ(r){ae(nE),r.registerChartView(y9),r.registerSeriesModel(w9),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,A9)}var cZ=function(){function r(){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 r}(),fZ=function(r){J(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new cZ},e.prototype.buildPath=function(t,n){var a=n.extent;t.moveTo(n.x1,n.y1),t.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(t.lineTo(n.x2+a,n.y2),t.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(t.lineTo(n.x2,n.y2+a),t.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),t.closePath()},e.prototype.highlight=function(){gi(this)},e.prototype.downplay=function(){yi(this)},e}(oe),hZ=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,n,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,f=t.getData(),d=t.getData("edge"),v=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var y=new fZ,_=Zt(y);_.dataIndex=p.dataIndex,_.seriesIndex=t.seriesIndex,_.dataType="edge";var g=p.getModel(),h=g.getModel("lineStyle"),w=h.get("curveness"),b=p.node1.getLayout(),S=p.node1.getModel(),A=S.get("localX"),T=S.get("localY"),D=p.node2.getLayout(),L=p.node2.getModel(),I=L.get("localX"),P=L.get("localY"),E=p.getLayout(),R,M,B,F,W,j,H,K;y.shape.extent=Math.max(1,E.dy),y.shape.orient=v,v==="vertical"?(R=(A!=null?A*u:b.x)+E.sy,M=(T!=null?T*c:b.y)+b.dy,B=(I!=null?I*u:D.x)+E.ty,F=P!=null?P*c:D.y,W=R,j=M*(1-w)+F*w,H=B,K=M*w+F*(1-w)):(R=(A!=null?A*u:b.x)+b.dx,M=(T!=null?T*c:b.y)+E.sy,B=I!=null?I*u:D.x,F=(P!=null?P*c:D.y)+E.ty,W=R*(1-w)+B*w,j=M,H=R*w+B*(1-w),K=F),y.setShape({x1:R,y1:M,x2:B,y2:F,cpx1:W,cpy1:j,cpx2:H,cpy2:K}),y.useStyle(h.getItemStyle()),aE(y.style,v,p);var U=""+g.get("value"),$=mr(g,"edgeLabel");Pr(y,$,{labelFetcher:{getFormattedLabel:function(it,Nt,Kt,xt,wt,Ot){return t.getFormattedLabel(it,Nt,"edge",xt,kn(wt,$.normal&&$.normal.get("formatter"),U),Ot)}},labelDataIndex:p.dataIndex,defaultText:U}),y.setTextConfig({position:"inside"});var ut=g.getModel("emphasis");Er(y,g,"lineStyle",function(it){var Nt=it.getItemStyle();return aE(Nt,v,p),Nt}),s.add(y),d.setItemGraphicEl(p.dataIndex,y);var ot=ut.get("focus");Xe(y,ot==="adjacency"?p.getAdjacentDataIndices():ot==="trajectory"?p.getTrajectoryDataIndices():ot,ut.get("blurScope"),ut.get("disabled"))}),o.eachNode(function(p){var y=p.getLayout(),_=p.getModel(),g=_.get("localX"),h=_.get("localY"),w=_.getModel("emphasis"),b=_.get(["itemStyle","borderRadius"])||0,S=new de({shape:{x:g!=null?g*u:y.x,y:h!=null?h*c:y.y,width:y.dx,height:y.dy,r:b},style:_.getModel("itemStyle").getItemStyle(),z2:10});Pr(S,mr(_),{labelFetcher:{getFormattedLabel:function(T,D){return t.getFormattedLabel(T,D,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Er(S,_),s.add(S),f.setItemGraphicEl(p.dataIndex,S),Zt(S).dataType="node";var A=w.get("focus");Xe(S,A==="adjacency"?p.getAdjacentDataIndices():A==="trajectory"?p.getTrajectoryDataIndices():A,w.get("blurScope"),w.get("disabled"))}),f.eachItemGraphicEl(function(p,y){var _=f.getItemModel(y);_.get("draggable")&&(p.drift=function(g,h){i._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=h,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:f.getRawIndex(y),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(vZ(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(ke);function aE(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var n=t.node1.getVisual("color"),a=t.node2.getVisual("color");Ct(n)&&Ct(a)&&(r.fill=new yc(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function vZ(r,e,t){var n=new de({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return We(n,{shape:{width:r.width+20}},e,t),n}var dZ=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l=0)s[o[l].depth]=new Me(o[l],this,n);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");var u=MI(i,a,this,!0,c);return u.data;function c(f,d){f.wrapMethod("getItemModel",function(v,p){var y=v.parentModel,_=y.getData().getItemLayout(p);if(_){var g=_.depth,h=y.levelModels[g];h&&(v.parentModel=h)}return v}),d.wrapMethod("getItemModel",function(v,p){var y=v.parentModel,_=y.getGraph().getEdgeByIndex(p),g=_.node1.getLayout();if(g){var h=g.depth,w=y.levelModels[h];w&&(v.parentModel=w)}return v})}},e.prototype.setNodePosition=function(t,n){var a=this.option.data||this.option.nodes,i=a[t];i.localX=n[0],i.localY=n[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){function i(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return _r("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),f=c.getLayout().value,d=this.getDataParams(t,a).data.name;return _r("nameValue",{name:d!=null?d+"":null,value:f,noValue:i(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(ze);function pZ(r,e){r.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),i=gZ(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;mZ(u);var f=Ae(u,function(y){return y.getLayout().value===0}),d=f.length!==0?0:t.get("layoutIterations"),v=t.get("orient"),p=t.get("nodeAlign");yZ(u,c,n,a,o,s,d,v,p)})}function gZ(r,e){return hr(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function yZ(r,e,t,n,a,i,o,s,l){_Z(r,e,t,a,i,s,l),SZ(r,e,i,a,n,o,s),PZ(r,s)}function mZ(r){N(r,function(e){var t=mo(e.outEdges,Vd),n=mo(e.inEdges,Vd),a=e.getValue()||0,i=Math.max(t,n,a);e.setLayout({value:i},!0)})}function _Z(r,e,t,n,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d=0;g&&_.depth>v&&(v=_.depth),y.setLayout({depth:g?_.depth:f},!0),i==="vertical"?y.setLayout({dy:t},!0):y.setLayout({dx:t},!0);for(var h=0;hf-1?v:f-1;o&&o!=="left"&&wZ(r,o,i,T);var D=i==="vertical"?(a-t)/T:(n-t)/T;xZ(r,D,i)}function iE(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function wZ(r,e,t,n){if(e==="right"){for(var a=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,CZ(s,l,o),c1(s,a,t,n,o),EZ(s,l,o),c1(s,a,t,n,o)}function AZ(r,e){var t=[],n=e==="vertical"?"y":"x",a=wy(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),N(a.keys,function(i){t.push(a.buckets.get(i))}),t}function TZ(r,e,t,n,a,i){var o=1/0;N(r,function(s){var l=s.length,u=0;N(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(n-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+e;var p=a==="vertical"?n:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[d]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function CZ(r,e,t){N(r.slice().reverse(),function(n){N(n,function(a){if(a.outEdges.length){var i=mo(a.outEdges,DZ,t)/mo(a.outEdges,Vd);if(isNaN(i)){var o=a.outEdges.length;i=o?mo(a.outEdges,LZ,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-yo(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-yo(a,t))*e;a.setLayout({y:l},!0)}}})})}function DZ(r,e){return yo(r.node2,e)*r.getValue()}function LZ(r,e){return yo(r.node2,e)}function MZ(r,e){return yo(r.node1,e)*r.getValue()}function IZ(r,e){return yo(r.node1,e)}function yo(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Vd(r){return r.getValue()}function mo(r,e,t){for(var n=0,a=r.length,i=-1;++io&&(o=l)}),N(n,function(s){var l=new br({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&N(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function RZ(r){r.registerChartView(hZ),r.registerSeriesModel(dZ),r.registerLayout(pZ),r.registerVisual(kZ),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var oE=function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var n,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],v=[a,i],p=v[c].get("type"),y=v[1-c].get("type"),_=e.data;if(_&&l){var g=[];N(_,function(b,S){var A;ft(b)?(A=b.slice(),b.unshift(S)):ft(b.value)?(A=lt({},b),A.value=A.value.slice(),b.value.unshift(S)):A=b,g.push(A)}),e.data=g}var h=this.defaultValueDimensions,w=[{name:f,type:qv(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:qv(y),dimsDef:h.slice()}];return tu(this,{coordDimensions:w,dimensionsCount:h.length+1,encodeDefaulter:jt(xA,w,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),sE=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return 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}(ze);rr(sE,oE,!0);var NZ=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=lE(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var d=i.getItemLayout(u);f?(ga(f),uE(d,f,i,u)):f=lE(d,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},e.type="boxplot",e}(ke),OZ=function(){function r(){}return r}(),BZ=function(r){J(e,r);function e(t){var n=r.call(this,t)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new OZ},e.prototype.buildPath=function(t,n){var a=n.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();iy){var b=[g,w];n.push(b)}}}return{boxData:t,outliers:n}}var UZ={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Vr){var n="";process.env.NODE_ENV!=="production"&&(n=$r("source data is not applicable for this boxplot transform. Expect number[][].")),Te(n)}var a=HZ(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function ZZ(r){r.registerSeriesModel(sE),r.registerChartView(NZ),r.registerLayout(VZ),r.registerTransform(UZ)}var YZ=["itemStyle","borderColor"],XZ=["itemStyle","borderColor0"],jZ=["itemStyle","borderColorDoji"],$Z=["itemStyle","color"],qZ=["itemStyle","color0"];function f1(r,e){return e.get(r>0?$Z:qZ)}function h1(r,e){return e.get(r===0?jZ:r>0?YZ:XZ)}var KZ={seriesType:"candlestick",plan:Gl(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,l=o.getItemStyle();l.fill=f1(s,o),l.stroke=h1(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");lt(u,l)}}}}}},QZ=["color","borderColor"],JZ=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){no(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&cE(u,f))return;var d=v1(f,c,!0);We(d,{shape:{points:f.ends}},t,c),d1(d,n,c,o),i.add(d),n.setItemGraphicEl(c,d)}}).update(function(c,f){var d=a.getItemGraphicEl(f);if(!n.hasValue(c)){i.remove(d);return}var v=n.getItemLayout(c);if(s&&cE(u,v)){i.remove(d);return}d?(_e(d,{shape:{points:v.ends}},t,c),ga(d)):d=v1(v),d1(d,n,c,o),i.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),fE(t,this.group);var n=t.get("clip",!0)?ef(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=v1(s);d1(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,n){fE(n,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}(ke),tY=function(){function r(){}return r}(),eY=function(r){J(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new tY},e.prototype.buildPath=function(t,n){var a=n.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(oe);function v1(r,e,t){var n=r.ends;return new eY({shape:{points:t?rY(n,r):n},z2:100})}function cE(r,e){for(var t=!0,n=0;nS?P[i]:I[i],ends:M,brushRect:H(A,T,w)})}function W(U,$){var ut=[];return ut[a]=$,ut[i]=U,isNaN($)||isNaN(U)?[NaN,NaN]:e.dataToPoint(ut)}function j(U,$,ut){var ot=$.slice(),it=$.slice();ot[a]=dv(ot[a]+n/2,1,!1),it[a]=dv(it[a]-n/2,1,!0),ut?U.push(ot,it):U.push(it,ot)}function H(U,$,ut){var ot=W(U,ut),it=W($,ut);return ot[a]-=n/2,it[a]-=n/2,{x:ot[0],y:ot[1],width:n,height:it[1]-ot[1]}}function K(U){return U[a]=dv(U[a],1),U}}function p(y,_){for(var g=Xa(y.count*4),h=0,w,b=[],S=[],A,T=_.getStore(),D=!!r.get(["itemStyle","borderColorDoji"]);(A=y.next())!=null;){var L=T.get(s,A),I=T.get(u,A),P=T.get(c,A),E=T.get(f,A),R=T.get(d,A);if(isNaN(L)||isNaN(E)||isNaN(R)){g[h++]=NaN,h+=3;continue}g[h++]=vE(T,A,I,P,c,D),b[a]=L,b[i]=E,w=e.dataToPoint(b,null,S),g[h++]=w?w[0]:NaN,g[h++]=w?w[1]:NaN,b[i]=R,w=e.dataToPoint(b,null,S),g[h++]=w?w[1]:NaN}_.setLayout("largePoints",g)}}};function vE(r,e,t,n,a,i){var o;return t>n?o=-1:t0?r.get(a,e-1)<=n?1:-1:1,o}function oY(r,e){var t=r.getBaseAxis(),n,a=t.type==="category"?t.getBandWidth():(n=t.getExtent(),Math.abs(n[1]-n[0])/e.count()),i=At(Ut(r.get("barMaxWidth"),a),a),o=At(Ut(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?At(s,a):Math.max(Math.min(a/2,i),o)}function sY(r){r.registerChartView(JZ),r.registerSeriesModel(hE),r.registerPreprocessor(aY),r.registerVisual(KZ),r.registerLayout(iY)}function dE(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var lY=function(r){J(e,r);function e(t,n){var a=r.call(this)||this,i=new Jc(t,n),o=new Ht;return a.add(i),a.add(o),a.updateData(t,n),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var n=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;Rt(f)?d=f(a):d=f,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,n,a,i,o){if(n>0){t.__t=0;var s=this,l=t.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Hi(t.__p1,t.__cp1)+Hi(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,n){t.__p1=n[0],t.__p2=n[1],t.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(t,n,a){this.childAt(0).updateData(t,n,a),this._updateEffectSymbol(t,n)},e.prototype._updateSymbolPosition=function(t){var n=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Ar,c=Bg;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var f=t.__t<1?c(n[0],i[0],a[0],o):c(a[0],i[0],n[0],1-o),d=t.__t<1?c(n[1],i[1],a[1],o):c(a[1],i[1],n[1],1-o);t.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var c=(n-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];t.x=f[0]*(1-c)+c*d[0],t.y=f[1]*(1-c)+c*d[1];var v=t.__t<1?d[0]-f[0]:f[0]-d[0],p=t.__t<1?d[1]-f[1]:f[1]-d[1];t.rotation=-Math.atan2(p,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,t.ignore=!1}},e}(pE),vY=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),dY=function(r){J(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return 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 vY},e.prototype.buildPath=function(t,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var v=(u+f)/2-(c-d)*i,p=(c+d)/2-(f-u)*i;t.quadraticCurveTo(v,p,f,d)}else t.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var f=i[u++],d=i[u++],v=1;v0){var _=(f+p)/2-(d-y)*o,g=(d+y)/2-(p-f)*o;if(WS(f,d,_,g,p,y,s,t,n))return l}else if(Ji(f,d,p,y,s,t,n))return l;l++}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),yE={seriesType:"lines",plan:Gl(),reset:function(r){var e=r.coordinateSystem;if(!e){process.env.NODE_ENV!=="production"&&Ir("The lines series must have a coordinate system.");return}var t=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c?process.env.NODE_ENV!=="production"&&console.warn("SVG render mode doesn't support lines with trail effect"):u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=t.get("clip",!0)&&ef(t.coordinateSystem,!1,t);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._lineDraw.incrementalUpdate(t,n.getData()),this._finished=t.end===n.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,n,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=yE.reset(t,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return process.env.NODE_ENV!=="production"&&i&&l&&console.warn("Large lines not support effect"),(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new pY:new F_(o?i?hY:gE:i?pE:V_),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var n=t.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.type="lines",e}(ke),yY=typeof Uint32Array=="undefined"?Array:Uint32Array,mY=typeof Float64Array=="undefined"?Array:Float64Array;function mE(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),r.data=ht(e,function(t){var n=[t[0].coord,t[1].coord],a={coords:n};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),yg([a,t[0],t[1]])}))}var _Y=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],mE(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(mE(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var n=this._processFlatCoordsArray(t.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=zu(this._flatCoords,n.flatCoords),this._flatCoordsOffset=zu(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),t.data=new Float32Array(n.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var n=this.getData().getItemModel(t),a=n.option instanceof Array?n.option:n.getShallow("coords");if(process.env.NODE_ENV!=="production"&&!(a instanceof Array&&a.length>0&&a[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(a)+". Lines must have 2d coords array in data item.");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;oa&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,n){if(process.env.NODE_ENV!=="production"){var a=Bl.get(t.coordinateSystem);if(!a)throw new Error("Unknown coordinate system "+t.coordinateSystem)}var i=new en(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;i.hasItemOption=!0;var c=o.value;if(c!=null)return c instanceof Array?c[u]:c}),i},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),_r("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),n=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&n>0?n+"":""},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}(ze);function Fd(r){return r instanceof Array||(r=[r,r]),r}var wY={seriesType:"lines",reset:function(r){var e=Fd(r.get("symbol")),t=Fd(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",t&&t[0]),n.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=Fd(s.getShallow("symbol",!0)),u=Fd(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};function bY(r){r.registerChartView(gY),r.registerSeriesModel(_Y),r.registerLayout(yE),r.registerVisual(wY)}var xY=256,SY=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Wi.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),v=e.length;f.width=t,f.height=n;for(var p=0;p0){var E=o(w)?l:u;w>0&&(w=w*I+D),S[A++]=E[P],S[A++]=E[P+1],S[A++]=E[P+2],S[A++]=E[P+3]*w*256}else A+=4}return d.putImageData(b,0,0),f},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Wi.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var a=e.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,a=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r}();function AY(r,e,t){var n=r[1]-r[0];e=ht(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&n<=e[1]}}function _E(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var CY=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i;if(n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),process.env.NODE_ENV!=="production"&&!i)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):_E(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,a,i){var o=n.coordinateSystem;o&&(_E(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){no(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,n,a,i,o){var s=t.coordinateSystem,l=Os(s,"cartesian2d"),u,c,f,d;if(l){var v=s.getAxis("x"),p=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(v.type==="category"&&p.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(v.onBand&&p.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=v.getBandWidth()+.5,c=p.getBandWidth()+.5,f=v.scale.getExtent(),d=p.scale.getExtent()}for(var y=this.group,_=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),h=t.getModel(["blur","itemStyle"]).getItemStyle(),w=t.getModel(["select","itemStyle"]).getItemStyle(),b=t.get(["itemStyle","borderRadius"]),S=mr(t),A=t.getModel("emphasis"),T=A.get("focus"),D=A.get("blurScope"),L=A.get("disabled"),I=l?[_.mapDimension("x"),_.mapDimension("y"),_.mapDimension("value")]:[_.mapDimension("time"),_.mapDimension("value")],P=a;Pf[1]||Bd[1])continue;var F=s.dataToPoint([M,B]);E=new de({shape:{x:F[0]-u/2,y:F[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(_.get(I[1],P)))continue;E=new de({z2:1,shape:s.dataToRect([_.get(I[0],P)]).contentShape,style:R})}if(_.hasItemOption){var W=_.getItemModel(P),j=W.getModel("emphasis");g=j.getModel("itemStyle").getItemStyle(),h=W.getModel(["blur","itemStyle"]).getItemStyle(),w=W.getModel(["select","itemStyle"]).getItemStyle(),b=W.get(["itemStyle","borderRadius"]),T=j.get("focus"),D=j.get("blurScope"),L=j.get("disabled"),S=mr(W)}E.shape.r=b;var H=t.getRawValue(P),K="-";H&&H[2]!=null&&(K=H[2]+""),Pr(E,S,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:K}),E.ensureState("emphasis").style=g,E.ensureState("blur").style=h,E.ensureState("select").style=w,Xe(E,T,D,L),E.incremental=o,o&&(E.states.emphasis.hoverLayer=!0),y.add(E),_.setItemGraphicEl(P,E),this._progressiveEls&&this._progressiveEls.push(E)}},e.prototype._renderOnGeo=function(t,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new SY;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=t.getViewRect().clone(),f=t.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),v=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),y=Math.min(c.height+c.y,i.getHeight()),_=p-d,g=y-v,h=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],w=l.mapArray(h,function(T,D,L){var I=t.dataToPoint([T,D]);return I[0]-=d,I[1]-=v,I.push(L),I}),b=a.getExtent(),S=a.type==="visualMap.continuous"?TY(b,a.option.range):AY(b,a.getPieceList(),a.option.selected);u.update(w,_,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var A=new Tr({style:{width:_,height:g,x:d,y:v,image:u.canvas},silent:!0});this.group.add(A)},e.type="heatmap",e}(ke),DY=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return xi(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Bl.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},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}(ze);function LY(r){r.registerChartView(CY),r.registerSeriesModel(DY)}var MY=["itemStyle","borderWidth"],wE=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],y1=new mi,IY=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:wE[+c],categoryDim:wE[1-+c]};o.diff(s).add(function(p){if(o.hasValue(p)){var y=DE(o,p),_=bE(o,p,y,d),g=LE(o,d,_);o.setItemGraphicEl(p,g),i.add(g),EE(g,d,_)}}).update(function(p,y){var _=s.getItemGraphicEl(y);if(!o.hasValue(p)){i.remove(_);return}var g=DE(o,p),h=bE(o,p,g,d),w=IE(o,h);_&&w!==_.__pictorialShapeStr&&(i.remove(_),o.setItemGraphicEl(p,null),_=null),_?BY(_,d,h):_=LE(o,d,h,!0),o.setItemGraphicEl(p,_),_.__pictorialSymbolMeta=h,i.add(_),EE(_,d,h)}).remove(function(p){var y=s.getItemGraphicEl(p);y&&ME(s,p,y.__pictorialSymbolMeta.animationModel,y)}).execute();var v=t.get("clip",!0)?ef(t.coordinateSystem,!1,t):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,n){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){ME(i,Zt(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(ke);function bE(r,e,t,n){var a=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,f=t.isAnimationEnabled(),d={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?t:null,hoverScale:f&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};EY(t,i,a,n,d),PY(r,e,a,i,o,d.boundingLength,d.pxSign,c,n,d),kY(t,d.symbolScale,u,n,d);var v=d.symbolSize,p=As(t.get("symbolOffset"),v);return RY(t,v,a,i,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function EY(r,e,t,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(ft(o)){var f=[m1(s,o[0])-l,m1(s,o[1])-l];f[1]=0?1:-1:c>0?1:-1}function m1(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function PY(r,e,t,n,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(t[f.wh]),v=r.getItemVisual(e,"symbolSize"),p;ft(v)?p=v.slice():v==null?p=["100%","100%"]:p=[v,v],p[f.index]=At(p[f.index],d),p[c.index]=At(p[c.index],n?d:Math.abs(i)),u.symbolSize=p;var y=u.symbolScale=[p[0]/s,p[1]/s];y[c.index]*=(l.isHorizontal?-1:1)*o}function kY(r,e,t,n,a){var i=r.get(MY)||0;i&&(y1.attr({scaleX:e[0],scaleY:e[1],rotation:t}),y1.updateTransform(),i/=y1.getLineScale(),i*=e[n.valueDim.index]),a.valueLineWidth=i||0}function RY(r,e,t,n,a,i,o,s,l,u,c,f){var d=c.categoryDim,v=c.valueDim,p=f.pxSign,y=Math.max(e[v.index]+s,0),_=y;if(n){var g=Math.abs(l),h=nr(r.get("symbolMargin"),"15%")+"",w=!1;h.lastIndexOf("!")===h.length-1&&(w=!0,h=h.slice(0,h.length-1));var b=At(h,e[v.index]),S=Math.max(y+b*2,0),A=w?0:b*2,T=yy(n),D=T?n:PE((g+A)/S),L=g-D*y;b=L/2/(w?D:Math.max(D-1,1)),S=y+b*2,A=w?0:b*2,!T&&n!=="fixed"&&(D=u?PE((Math.abs(u)+A)/S):0),_=D*S-A,f.repeatTimes=D,f.symbolMargin=b}var I=p*(_/2),P=f.pathPosition=[];P[d.index]=t[d.wh]/2,P[v.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var E=f.bundlePosition=[];E[d.index]=t[d.xy],E[v.index]=t[v.xy];var R=f.barRectShape=lt({},t);R[v.wh]=p*Math.max(Math.abs(t[v.wh]),Math.abs(P[v.index]+I)),R[d.wh]=t[d.wh];var M=f.clipShape={};M[d.xy]=-t[d.xy],M[d.wh]=c.ecSize[d.wh],M[v.xy]=0,M[v.wh]=t[v.wh]}function xE(r){var e=r.symbolPatternSize,t=sr(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function SE(r,e,t,n){var a=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,f=i[e.valueDim.index]+o+t.symbolMargin*2;for(_1(r,function(y){y.__pictorialAnimationIndex=c,y.__pictorialRepeatTimes=u,c0:g<0)&&(h=u-1-y),_[l.index]=f*(h-u/2+.5)+s[l.index],{x:_[0],y:_[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function AE(r,e,t,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?lu(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(i=r.__pictorialMainPath=xE(t),a.add(i),lu(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,n))}function TE(r,e,t){var n=lt({},e.barRectShape),a=r.__pictorialBarRect;a?lu(a,null,{shape:n},e,t):(a=r.__pictorialBarRect=new de({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function CE(r,e,t,n){if(t.symbolClip){var a=r.__pictorialClipPath,i=lt({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)_e(a,{shape:i},s,l);else{i[o.wh]=0,a=new de({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],gs[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function DE(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=NY,t.isAnimationEnabled=OY,t}function NY(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function OY(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function LE(r,e,t,n){var a=new Ht,i=new Ht;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?SE(a,e,t):AE(a,e,t),TE(a,t,n),CE(a,e,t,n),a.__pictorialShapeStr=IE(r,t),a.__pictorialSymbolMeta=t,a}function BY(r,e,t){var n=t.animationModel,a=t.dataIndex,i=r.__pictorialBundle;_e(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,a),t.symbolRepeat?SE(r,e,t,!0):AE(r,e,t,!0),TE(r,t,!0),CE(r,e,t,!0)}function ME(r,e,t,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];_1(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),N(i,function(o){ro(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function IE(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function _1(r,e,t){N(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function lu(r,e,t,n,a,i){e&&r.attr(e),n.symbolClip&&!a?t&&r.attr(t):t&&gs[a?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,i)}function EE(r,e,t){var n=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),d=i.get("scale");_1(r,function(y){if(y instanceof Tr){var _=y.style;y.useStyle(lt({image:_.image,x:_.x,y:_.y,width:_.width,height:_.height},t.style))}else y.useStyle(t.style);var g=y.ensureState("emphasis");g.style=o,d&&(g.scaleX=y.scaleX*1.1,g.scaleY=y.scaleY*1.1),y.ensureState("blur").style=s,y.ensureState("select").style=l,u&&(y.cursor=u),y.z2=t.z2});var v=e.valueDim.posDesc[+(t.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,Pr(p,mr(a),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:Jl(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),Xe(r,c,f,i.get("disabled"))}function PE(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var zY=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=ao(nf.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(nf);function VY(r){r.registerChartView(IY),r.registerSeriesModel(zY),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,jt(XC,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,jC("pictorialBar"))}var FY=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(_){return _.name}var v=new bi(this._layersSeries||[],l,d,d),p=[];v.add(Lt(y,this,"add")).update(Lt(y,this,"update")).remove(Lt(y,this,"remove")).execute();function y(_,g,h){var w=o._layers;if(_==="remove"){s.remove(w[g]);return}for(var b=[],S=[],A,T=l[g].indices,D=0;Di&&(i=s),n.push(s)}for(var u=0;ui&&(i=f)}return{y0:a,max:i}}function ZY(r){r.registerChartView(FY),r.registerSeriesModel(WY),r.registerLayout(HY),r.registerProcessor(af("themeRiver"))}var YY=2,XY=4,RE=function(r){J(e,r);function e(t,n,a,i){var o=r.call(this)||this;o.z2=YY,o.textConfig={inside:!0},Zt(o).seriesIndex=n.seriesIndex;var s=new pe({z2:XY,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,n,a,i),o}return e.prototype.updateData=function(t,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;Zt(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=lt({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var v=n.getVisual("decal");v&&(d.decal=Yl(v,o));var p=Bs(l.getModel("itemStyle"),f,!0);lt(f,p),N(Kr,function(h){var w=s.ensureState(h),b=l.getModel([h,"itemStyle"]);w.style=b.getItemStyle();var S=Bs(b,f);S&&(w.shape=S)}),t?(s.setShape(f),s.shape.r=c.r0,We(s,{shape:{r:c.r}},a,n.dataIndex)):(_e(s,{shape:f},a),ga(s)),s.useStyle(d),this._updateLabel(a);var y=l.getShallow("cursor");y&&s.attr("cursor",y),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var _=u.get("focus"),g=_==="relative"?zu(n.getAncestorsIndices(),n.getDescendantIndices()):_==="ancestor"?n.getAncestorsIndices():_==="descendant"?n.getDescendantIndices():_;Xe(this,g,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),v=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,y=i.get("show")&&!(p!=null&&Math.abs(s)M&&!rc(F-M)&&F0?(o.virtualPiece?o.virtualPiece.updateData(!1,h,t,n,a):(o.virtualPiece=new RE(h,t,n,a),c.add(o.virtualPiece)),w.piece.off("click"),o.virtualPiece.on("click",function(b){o._rootToNode(w.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Cv(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:b1,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(ke),KY=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};OE(a);var i=this._levelModels=ht(t.levels||[],function(l){return new Me(l,this,n)},this),o=__.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=i[f.depth];return d&&(u.parentModel=d),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=Ld(a,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 n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){XM(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}(ze);function OE(r){var e=0;N(r.children,function(n){OE(n);var a=n.value;ft(a)&&(a=a[0]),e+=a});var t=r.value;ft(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),ft(r.value)?r.value[0]=t:r.value=t}var BE=Math.PI/180;function QY(r,e,t){e.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");ft(i)||(i=[0,i]),ft(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=At(a[0],o),c=At(a[1],s),f=At(i[0],l/2),d=At(i[1],l/2),v=-n.get("startAngle")*BE,p=n.get("minAngle")*BE,y=n.getData().tree.root,_=n.getViewRoot(),g=_.depth,h=n.get("sort");h!=null&&zE(_,h);var w=0;N(_.children,function(F){!isNaN(F.getValue())&&w++});var b=_.getValue(),S=Math.PI/(b||w)*2,A=_.depth>0,T=_.height-(A?-1:1),D=(d-f)/(T||1),L=n.get("clockwise"),I=n.get("stillShowZeroSum"),P=L?1:-1,E=function(F,W){if(F){var j=W;if(F!==y){var H=F.getValue(),K=b===0&&I?S:H*S;K1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&Ct(s)&&(s=Hg(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");lt(u,l)})})}function eX(r){r.registerChartView(qY),r.registerSeriesModel(KY),r.registerLayout(jt(QY,"sunburst")),r.registerProcessor(jt(af,"sunburst")),r.registerVisual(tX),$Y(r)}var VE={color:"fill",borderColor:"stroke"},rX={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ci=ve(),nX=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,n){return xi(null,this)},e.prototype.getDataParams=function(t,n,a){var i=r.prototype.getDataParams.call(this,t,n);return a&&(i.info=Ci(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(ze);function aX(r,e){return e=e||[0,0],ht(["x","y"],function(t,n){var a=this.getAxis(t),i=e[n],o=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function iX(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Lt(aX,r)}}}function oX(r,e){return e=e||[0,0],ht([0,1],function(t){var n=e[t],a=r[t]/2,i=[],o=[];return i[t]=n-a,o[t]=n+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function sX(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:Lt(oX,r)}}}function lX(r,e){var t=this.getAxis(),n=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(n-a)-t.dataToCoord(n+a))}function uX(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Lt(lX,r)}}}function cX(r,e){return e=e||[0,0],ht(["Radius","Angle"],function(t,n){var a="get"+t+"Axis",i=this[a](),o=e[n],s=r[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function fX(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Lt(cX,r)}}}function hX(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)}}}}var FE={};function GE(r,e,t,n){return r&&(r.legacy||r.legacy!==!1&&!t&&!n&&e!=="tspan"&&(e==="text"||Mt(r,"text")))}function WE(r,e,t){var n=r,a,i,o;if(e==="text")o=n;else{o={},Mt(n,"text")&&(o.text=n.text),Mt(n,"rich")&&(o.rich=n.rich),Mt(n,"textFill")&&(o.fill=n.textFill),Mt(n,"textStroke")&&(o.stroke=n.textStroke),Mt(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Mt(n,"fontSize")&&(o.fontSize=n.fontSize),Mt(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Mt(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=Mt(n,"textPosition");t?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),Mt(n,"textPosition")&&(a.position=n.textPosition),Mt(n,"textOffset")&&(a.offset=n.textOffset),Mt(n,"textRotation")&&(a.rotation=n.textRotation),Mt(n,"textDistance")&&(a.distance=n.textDistance)}return HE(o,r),N(o.rich,function(l){HE(l,l)}),{textConfig:a,textContent:i}}function HE(r,e){e&&(e.font=e.textFont||e.font,Mt(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Mt(e,"textAlign")&&(r.align=e.textAlign),Mt(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Mt(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Mt(e,"textWidth")&&(r.width=e.textWidth),Mt(e,"textHeight")&&(r.height=e.textHeight),Mt(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Mt(e,"textPadding")&&(r.padding=e.textPadding),Mt(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Mt(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Mt(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Mt(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Mt(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Mt(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Mt(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function UE(r,e,t){var n=r;n.textPosition=n.textPosition||t.position||"inside",t.offset!=null&&(n.textOffset=t.offset),t.rotation!=null&&(n.textRotation=t.rotation),t.distance!=null&&(n.textDistance=t.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||"#000";ZE(n,e);var o=n.textFill==null;return a?o&&(n.textFill=t.insideFill||"#fff",!n.textStroke&&t.insideStroke&&(n.textStroke=t.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||t.outsideFill||"#000"),!n.textStroke&&t.outsideStroke&&(n.textStroke=t.outsideStroke)),n.text=e.text,n.rich=e.rich,N(e.rich,function(s){ZE(s,s)}),n}function ZE(r,e){e&&(Mt(e,"fill")&&(r.textFill=e.fill),Mt(e,"stroke")&&(r.textStroke=e.fill),Mt(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Mt(e,"font")&&(r.font=e.font),Mt(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Mt(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Mt(e,"fontSize")&&(r.fontSize=e.fontSize),Mt(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Mt(e,"align")&&(r.textAlign=e.align),Mt(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Mt(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Mt(e,"width")&&(r.textWidth=e.width),Mt(e,"height")&&(r.textHeight=e.height),Mt(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Mt(e,"padding")&&(r.textPadding=e.padding),Mt(e,"borderColor")&&(r.textBorderColor=e.borderColor),Mt(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Mt(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Mt(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Mt(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Mt(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Mt(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Mt(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Mt(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Mt(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Mt(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}function YE(r,e){if(process.env.NODE_ENV!=="production"){var t=r+"^_^"+e;FE[t]||(console.warn('[ECharts] DEPRECATED: "'+r+'" has been deprecated. '+e),FE[t]=!0)}}var XE={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},jE=ue(XE),Gd=Ia(Ra,function(r,e){return r[e]=1,r},{}),$E=Ra.join(", "),Wd=["","style","shape","extra"],uu=ve();function x1(r,e,t,n,a){var i=r+"Animation",o=Tl(r,n,a)||{},s=uu(e).userDuring;return o.duration>0&&(o.during=s?Lt(yX,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),lt(o,t[i]),o}function Hd(r,e,t,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=t.isAnimationEnabled(),l=uu(r),u=e.style;l.userDuring=e.during;var c={},f={};if(_X(r,e,f),QE("shape",e,f),QE("extra",e,f),!i&&s&&(mX(r,e,c),KE("shape",r,e,c),KE("extra",r,e,c),wX(r,e,u,c)),f.style=u,vX(r,f,o),pX(r,e),s)if(i){var d={};N(Wd,function(p){var y=p?e[p]:e;y&&y.enterFrom&&(p&&(d[p]=d[p]||{}),lt(p?d[p]:d,y.enterFrom))});var v=x1("enter",r,e,t,a);v.duration>0&&r.animateFrom(d,v)}else dX(r,e,a||0,t,c);qE(r,e),u?r.dirty():r.markRedraw()}function qE(r,e){for(var t=uu(r).leaveToProps,n=0;n0&&r.animateFrom(a,i)}}function pX(r,e){Mt(e,"silent")&&(r.silent=e.silent),Mt(e,"ignore")&&(r.ignore=e.ignore),r instanceof Vn&&Mt(e,"invisible")&&(r.invisible=e.invisible),r instanceof oe&&Mt(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Ka={},gX={setTransform:function(r,e){return process.env.NODE_ENV!=="production"&&Vt(Mt(Gd,r),"Only "+$E+" available in `setTransform`."),Ka.el[r]=e,this},getTransform:function(r){return process.env.NODE_ENV!=="production"&&Vt(Mt(Gd,r),"Only "+$E+" available in `getTransform`."),Ka.el[r]},setShape:function(r,e){process.env.NODE_ENV!=="production"&&cu(r);var t=Ka.el,n=t.shape||(t.shape={});return n[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){process.env.NODE_ENV!=="production"&&cu(r);var e=Ka.el.shape;if(e)return e[r]},setStyle:function(r,e){process.env.NODE_ENV!=="production"&&cu(r);var t=Ka.el,n=t.style;return n&&(process.env.NODE_ENV!=="production"&&Bo(e)&&Ye("style."+r+" must not be assigned with NaN."),n[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){process.env.NODE_ENV!=="production"&&cu(r);var e=Ka.el.style;if(e)return e[r]},setExtra:function(r,e){process.env.NODE_ENV!=="production"&&cu(r);var t=Ka.el.extra||(Ka.el.extra={});return t[r]=e,this},getExtra:function(r){process.env.NODE_ENV!=="production"&&cu(r);var e=Ka.el.extra;if(e)return e[r]}};function cu(r){if(process.env.NODE_ENV!=="production"&&(r==="transition"||r==="enterFrom"||r==="leaveTo"))throw new Error('key must not be "'+r+'"')}function yX(){var r=this,e=r.el;if(e){var t=uu(e).userDuring,n=r.userDuring;if(t!==n){r.el=r.userDuring=null;return}Ka.el=e,n(gX)}}function KE(r,e,t,n){var a=t[r];if(a){var i=e[r],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=n[r]={}),Xs(l))lt(o,i);else for(var u=Pe(l),c=0;c=0){!o&&(o=n[r]={});for(var v=ue(i),c=0;c=0)){var d=r.getAnimationStyleProps(),v=d?d.style:null;if(v){!i&&(i=n.style={});for(var p=ue(t),u=0;u=1&&(u=!0),!!d){var v=ue(d);if(s||(v=Ae(v,function(_){return te(xX,_)<0})),!!v.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var p=0;p=0?e.getStore().get(W,B):void 0}var j=e.get(F.name,B),H=F&&F.ordinalMeta;return H?H.categories[j]:j}function A(M,B){process.env.NODE_ENV!=="production"&&YE("api.style","Please write literal style directly instead."),B==null&&(B=u);var F=e.getItemVisual(B,"style"),W=F&&F.fill,j=F&&F.opacity,H=h(B,_o).getItemStyle();W!=null&&(H.fill=W),j!=null&&(H.opacity=j);var K={inheritColor:Ct(W)?W:"#000"},U=w(B,_o),$=Be(U,null,K,!1,!0);$.text=U.getShallow("show")?Ut(r.getFormattedLabel(B,_o),Jl(e,B)):null;var ut=yv(U,K,!1);return L(M,H),H=UE(H,$,ut),M&&D(H,M),H.legacy=!0,H}function T(M,B){process.env.NODE_ENV!=="production"&&YE("api.styleEmphasis","Please write literal style directly instead."),B==null&&(B=u);var F=h(B,Di).getItemStyle(),W=w(B,Di),j=Be(W,null,null,!0,!0);j.text=W.getShallow("show")?kn(r.getFormattedLabel(B,Di),r.getFormattedLabel(B,_o),Jl(e,B)):null;var H=yv(W,null,!0);return L(M,F),F=UE(F,j,H),M&&D(F,M),F.legacy=!0,F}function D(M,B){for(var F in B)Mt(B,F)&&(M[F]=B[F])}function L(M,B){M&&(M.textFill&&(B.textFill=M.textFill),M.textPosition&&(B.textPosition=M.textPosition))}function I(M,B){if(B==null&&(B=u),Mt(VE,M)){var F=e.getItemVisual(B,"style");return F?F[VE[M]]:null}if(Mt(rX,M))return e.getItemVisual(B,M)}function P(M){if(i.type==="cartesian2d"){var B=i.getBaseAxis();return _6(Ft({axis:B},M))}}function E(){return t.getCurrentSeriesIndices()}function R(M){return om(M,t)}}function MX(r){var e={};return N(r.dimensions,function(t){var n=r.getDimensionInfo(t);if(!n.isExtraCoord){var a=n.coordDim,i=e[a]=e[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(t)}}),e}function I1(r,e,t,n,a,i,o){if(!n){i.remove(e);return}var s=E1(r,e,t,n,a,i);return s&&o.setItemGraphicEl(t,s),s&&Xe(s,n.focus,n.blurScope,n.emphasisDisabled),s}function E1(r,e,t,n,a,i){process.env.NODE_ENV!=="production"&&Vt(n,"should not have an null/undefined element setting");var o=-1,s=e;e&&iP(e,n,a)&&(o=te(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=L1(n),s&&TX(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Kn.normal.cfg=Kn.normal.conOpt=Kn.emphasis.cfg=Kn.emphasis.conOpt=Kn.blur.cfg=Kn.blur.conOpt=Kn.select.cfg=Kn.select.conOpt=null,Kn.isLegacy=!1,EX(u,t,n,a,l,Kn),IX(u,t,n,a,l),M1(r,u,t,n,Kn,a,l),Mt(n,"info")&&(Ci(u).info=n.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function iP(r,e,t){var n=Ci(r),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&OX(i)&&uP(i)!==n.customPathData||a==="image"&&Mt(o,"image")&&o.image!==n.customImagePath}function IX(r,e,t,n,a){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&iP(o,i,n)&&(o=null),o||(o=L1(i),process.env.NODE_ENV!=="production"&&Vt(Yd(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),r.setClipPath(o)),M1(null,o,e,i,null,n,a)}}function EX(r,e,t,n,a,i){if(!r.isGroup){oP(t,null,i),oP(t,Di,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=L1(o),r.setTextContent(c)),M1(null,c,e,o,null,n,a);for(var f=o&&o.style,d=0;d=c;v--){var p=e.childAt(v);kX(e,p,a)}}}function kX(r,e,t){e&&Ud(e,Ci(r).option,t)}function RX(r){new bi(r.oldChildren,r.newChildren,sP,sP,r).add(lP).update(lP).remove(NX).execute()}function sP(r,e){var t=r&&r.name;return t!=null?t:AX+e}function lP(r,e){var t=this.context,n=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;E1(t.api,a,t.dataIndex,n,t.seriesModel,t.group)}function NX(r){var e=this.context,t=e.oldChildren[r];t&&Ud(t,Ci(t).option,e.seriesModel)}function uP(r){return r&&(r.pathData||r.d)}function OX(r){return r&&(Mt(r,"pathData")||Mt(r,"d"))}function BX(r){r.registerChartView(CX),r.registerSeriesModel(nX)}var js=ve(),cP=Wt,k1=Lt,R1=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Ht,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var d=jt(fP,t,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,t)}dP(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=e_(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=js(e).pointerEl=new gs[i.type](cP(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=js(e).labelEl=new pe(cP(t.label));e.add(i),vP(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=js(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=js(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),vP(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=wc(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){si(u.event)},onmousedown:k1(this._onHandleDragMove,this,0,0),drift:k1(this._onHandleDragMove,this),ondragend:k1(this._onHandleDragEnd,this)}),n.add(a)),dP(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");ft(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Wl(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){fP(this._axisPointerModel,!t&&this._moveAnimation,this._handle,N1(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(N1(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(N1(a)),js(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Pc(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r}();function fP(r,e,t,n){hP(js(t).lastProp,n)||(js(t).lastProp=n,e?_e(t,n,r):(t.stopAnimation(),t.attr(n)))}function hP(r,e){if(zt(r)&&zt(e)){var t=!0;return N(e,function(n,a){t=t&&hP(r[a],n)}),!!t}else return r===e}function vP(r,e){r[e.get(["label","show"])?"show":"hide"]()}function N1(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function dP(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}function O1(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function pP(r,e,t,n,a){var i=t.get("value"),o=gP(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=kl(s.get("padding")||0),u=s.getFont(),c=Ju(o,u),f=a.position,d=c.width+l[1]+l[3],v=c.height+l[0]+l[2],p=a.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var y=a.verticalAlign;y==="bottom"&&(f[1]-=v),y==="middle"&&(f[1]-=v/2),zX(f,d,v,n);var _=s.get("backgroundColor");(!_||_==="auto")&&(_=e.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Be(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:_}),z2:10}}function zX(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function gP(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:w0(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};N(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Ct(o)?i=o.replace("{value}",i):Rt(o)&&(i=o(s))}return i}function B1(r,e,t){var n=mn();return Go(n,n,t.rotation),Ea(n,n,t.position),ma([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function yP(r,e,t,n,a,i){var o=an.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),pP(e,n,a,i,{position:B1(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function z1(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function mP(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function _P(r,e,t,n,a,i){return{cx:r,cy:e,r0:t,r:n,startAngle:a,endAngle:i,clockwise:!0}}var VX=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=wP(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=O1(i),v=FX[u](s,f,c);v.style=d,t.graphicKey=v.type,t.pointer=v}var p=K0(l.model,a);yP(n,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=K0(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=B1(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=wP(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[t.x,t.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,v=[d,d];v[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:v,tooltipOption:p[c]}},e}(R1);function wP(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var FX={line:function(r,e,t){var n=z1([e,t[0]],[e,t[1]],bP(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:mP([e-n/2,t[0]],[n,a],bP(r))}}};function bP(r){return r.dim==="x"?0:1}var GX=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(le),Li=ve(),WX=N;function xP(r,e,t){if(!ie.node){var n=e.getZr();Li(n).records||(Li(n).records={}),HX(n,e);var a=Li(n).records[r]||(Li(n).records[r]={});a.handler=t}}function HX(r,e){if(Li(r).initialized)return;Li(r).initialized=!0,t("click",jt(SP,"click")),t("mousemove",jt(SP,"mousemove")),t("globalout",ZX);function t(n,a){r.on(n,function(i){var o=YX(e);WX(Li(r).records,function(s){s&&a(s,i,o.dispatchAction)}),UX(o.pendings,e)})}}function UX(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function ZX(r,e,t){r.handler("leave",null,t)}function SP(r,e,t,n){e.handler(r,t,n)}function YX(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function V1(r,e){if(!ie.node){var t=e.getZr(),n=(Li(t).records||{})[r];n&&(Li(t).records[r]=null)}}var XX=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";xP("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,n){V1("axisPointer",n)},e.prototype.dispose=function(t,n){V1("axisPointer",n)},e.type="axisPointer",e}(Ue);function AP(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=qo(i,r);if(o==null||o<0||ft(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,v=f==="x"||f==="radius"?1:0,p=i.mapDimension(d),y=[];y[v]=i.get(p,o),y[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(y)||[]}else t=l.dataToPoint(i.getValues(ht(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var _=s.getBoundingRect().clone();_.applyTransform(s.transform),t=[_.x+_.width/2,_.y+_.height/2]}return{point:t,el:s}}var TP=ve();function jX(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||Lt(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){jd(a)&&(a=AP({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=jd(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||jd(a),d={},v={},p={list:[],map:{}},y={showPointer:jt(qX,v),showTooltip:jt(KX,p)};N(s.coordSysMap,function(g,h){var w=l||g.containPoint(a);N(s.coordSysAxesInfo[h],function(b,S){var A=b.axis,T=ej(u,b);if(!f&&w&&(!u||T)){var D=T&&T.value;D==null&&!l&&(D=A.pointToData(a)),D!=null&&CP(b,D,y,!1,d)}})});var _={};return N(c,function(g,h){var w=g.linkGroup;w&&!v[h]&&N(w.axesInfo,function(b,S){var A=v[S];if(b!==g&&A){var T=A.value;w.mapper&&(T=g.axis.scale.parse(w.mapper(T,DP(b),DP(g)))),_[g.key]=T}})}),N(_,function(g,h){CP(c[h],g,y,!0,d)}),QX(v,c,d),JX(p,a,r,o),tj(c,o,t),d}}function CP(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=$X(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&<(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function $X(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return N(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,t);d=v.dataIndices,f=v.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],r,t.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=r-f,y=Math.abs(p);y<=o&&((y=0&&s<0)&&(o=y,s=p,a=f,i.length=0),N(d,function(_){i.push({seriesIndex:l.seriesIndex,dataIndexInside:_,dataIndex:l.getData().getRawIndex(_)})}))}}),{payloadBatch:i,snapToValue:a}}function qX(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function KX(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=sf(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function QX(r,e,t){var n=t.axesInfo=[];N(e,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function JX(r,e,t,n){if(jd(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function tj(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=TP(n)[a]||{},o=TP(n)[a]={};N(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&N(f.seriesDataIndices,function(d){var v=d.seriesIndex+" | "+d.dataIndex;o[v]=d})});var s=[],l=[];N(i,function(u,c){!o[c]&&l.push(u)}),N(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function ej(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function DP(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function jd(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Tf(r){zs.registerAxisPointerClass("CartesianAxisPointer",VX),r.registerComponentModel(GX),r.registerComponentView(XX),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!ft(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=hH(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},jX)}function rj(r){ae(rM),ae(Tf)}var nj=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),d=i.get("type");if(d&&d!=="none"){var v=O1(i),p=ij[d](s,l,f,c);p.style=v,t.graphicKey=p.type,t.pointer=p}var y=i.get(["label","margin"]),_=aj(n,a,i,l,y);pP(t,a,i,o,_)},e}(R1);function aj(r,e,t,n,a){var i=e.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var d=mn();Go(d,d,s),Ea(d,d,[n.cx,n.cy]),u=ma([o,-a],d);var v=e.getModel("axisLabel").get("rotate")||0,p=an.innerTextLayout(s,v*Math.PI/180,-1);c=p.textAlign,f=p.textVerticalAlign}else{var y=l[1];u=n.coordToPoint([y+a,o]);var _=n.cx,g=n.cy;c=Math.abs(u[0]-_)/y<.3?"center":u[0]>_?"left":"right",f=Math.abs(u[1]-g)/y<.3?"middle":u[1]>g?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var ij={line:function(r,e,t,n){return r.dim==="angle"?{type:"Line",shape:z1(e.coordToPoint([n[0],t]),e.coordToPoint([n[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:_P(e.cx,e.cy,n[0],n[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:_P(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}},oj=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var n,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(le),F1=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ir).models[0]},e.type="polarAxis",e}(le);rr(F1,Xc);var sj=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(F1),lj=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(F1),G1=function(r){J(e,r);function e(t,n){return r.call(this,"radius",t,n)||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e}(ba);G1.prototype.dataToRadius=ba.prototype.dataToCoord,G1.prototype.radiusToData=ba.prototype.coordToData;var uj=ve(),W1=function(r){J(e,r);function e(t,n){return r.call(this,"angle",t,n||[0,360])||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,n=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=Ju(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var v=Math.max(0,Math.floor(d)),p=uj(t.model),y=p.lastAutoInterval,_=p.lastTickCount;return y!=null&&_!=null&&Math.abs(y-v)<=1&&Math.abs(_-o)<=1&&y>v?v=y:(p.lastTickCount=o,p.lastAutoInterval=v),v},e}(ba);W1.prototype.dataToAngle=ba.prototype.dataToCoord,W1.prototype.angleToData=ba.prototype.coordToData;var LP=["radius","angle"],cj=function(){function r(e){this.dimensions=LP,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new G1,this._angleAxis=new W1,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===e&&t.push(n),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+n*n);t/=l,n/=l;for(var u=Math.atan2(-n,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,a=Math.cos(n)*t+this.cx,i=-Math.sin(n)*t+this.cy;return[a,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var a=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,f=u*u+c*c,d=this.r,v=this.r0;return d!==v&&f-o<=d*d&&f+o>=v*v}}},r.prototype.convertToPixel=function(e,t,n){var a=MP(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=MP(t);return a===this?this.pointToData(n):null},r}();function MP(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function fj(r,e,t){var n=e.get("center"),a=t.getWidth(),i=t.getHeight();r.cx=At(n[0],a),r.cy=At(n[1],i);var o=r.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:ft(l)||(l=[0,l]);var u=[At(l[0],s),At(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function hj(r,e){var t=this,n=t.getAngleAxis(),a=t.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();N(ld(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),N(ld(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),ql(n.scale,n.model),ql(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function vj(r){return r.mainType==="angleAxis"}function IP(r,e){var t;if(r.type=e.get("type"),r.scale=sd(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),vj(e)){r.inverse=r.inverse!==e.get("clockwise");var n=e.get("startAngle"),a=(t=e.get("endAngle"))!==null&&t!==void 0?t:n+(r.inverse?-360:360);r.setExtent(n,a)}e.axis=r,r.model=e}var dj={dimensions:LP,create:function(r,e){var t=[];return r.eachComponent("polar",function(n,a){var i=new cj(a+"");i.update=hj;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");IP(o,l),IP(s,u),fj(i,n,e),t.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",ir).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error('Polar "'+nr(n.get("polarIndex"),n.get("polarId"),0)+'" not found');n.coordinateSystem=a.coordinateSystem}}),t}},pj=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function $d(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var n=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function qd(r){var e=r.getRadiusAxis();return e.inverse?0:1}function EP(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var gj=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=ht(a.getViewLabels(),function(c){c=Wt(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});EP(u),EP(s),N(pj,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&yj[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(zs),yj={axisLine:function(r,e,t,n,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=qd(t),f=c?0:1,d,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?d=new gs[v]({shape:{cx:t.cx,cy:t.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):d=new pc({shape:{cx:t.cx,cy:t.cy,r:i[c],r0:i[f]},style:o.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,r.add(d)},axisTick:function(r,e,t,n,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[qd(t)],u=ht(n,function(c){return new yr({shape:$d(t,[l,l+s],c.coord)})});r.add(Gn(u,{style:Ft(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[qd(t)],c=[],f=0;fg?"left":"right",b=Math.abs(_[1]-h)/y<.3?"middle":_[1]>h?"top":"bottom";if(s&&s[p]){var S=s[p];zt(S)&&S.textStyle&&(v=new Me(S.textStyle,l,l.ecModel))}var A=new pe({silent:an.isLabelSilent(e),style:Be(v,{x:_[0],y:_[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:w,verticalAlign:b})});if(r.add(A),c){var T=an.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=f.rawLabel,Zt(A).eventData=T}},this)},splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",B=L;S&&(n[c][R]||(n[c][R]={p:L,n:L}),B=n[c][R][M]);var F=void 0,W=void 0,j=void 0,H=void 0;if(p.dim==="radius"){var K=p.dataToCoord(E)-L,U=l.dataToCoord(R);Math.abs(K)=H})}}})}function Aj(r){var e={};N(r,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=kP(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;e[l]=f;var v=PP(n);d[v]||f.autoWidthCount++,d[v]=d[v]||{width:0,maxWidth:0};var p=At(n.get("barWidth"),c),y=At(n.get("barMaxWidth"),c),_=n.get("barGap"),g=n.get("barCategoryGap");p&&!d[v].width&&(p=Math.min(f.remainedWidth,p),d[v].width=p,f.remainedWidth-=p),y&&(d[v].maxWidth=y),_!=null&&(f.gap=_),g!=null&&(f.categoryGap=g)});var t={};return N(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=At(n.categoryGap,o),l=At(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),N(i,function(y,_){var g=y.maxWidth;g&&g=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},r.prototype.convertToPixel=function(e,t,n){var a=NP(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=NP(t);return a===this?this.pointToData(n):null},r}();function NP(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Nj(r,e){var t=[];return r.eachComponent("singleAxis",function(n,a){var i=new Rj(n,r,e);i.name="single_"+a,i.resize(n,e),n.coordinateSystem=i,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",ir).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),t}var Oj={create:Nj,dimensions:RP},OP=["x","y"],Bj=["width","height"],zj=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=U1(l,1-Qd(s)),c=l.dataToPoint(n)[0],f=i.get("type");if(f&&f!=="none"){var d=O1(i),v=Vj[f](s,c,u);v.style=d,t.graphicKey=v.type,t.pointer=v}var p=H1(a);yP(n,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=H1(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=B1(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.coordinateSystem,l=Qd(o),u=U1(s,l),c=[t.x,t.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=U1(s,1-l),d=(f[1]+f[0])/2,v=[d,d];return v[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e}(R1),Vj={line:function(r,e,t){var n=z1([e,t[0]],[e,t[1]],Qd(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=r.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:mP([e-n/2,t[0]],[n,a],Qd(r))}}};function Qd(r){return r.isHorizontal()?0:1}function U1(r,e){var t=r.getRect();return[t[OP[e]],t[OP[e]]+t[Bj[e]]]}var Fj=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Ue);function Gj(r){ae(Tf),zs.registerAxisPointerClass("SingleAxisPointer",zj),r.registerComponentView(Fj),r.registerComponentView(Ej),r.registerComponentModel(Kd),eu(r,"single",Kd,Kd.defaultOption),r.registerCoordinateSystem("single",Oj)}var Wj=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){var i=Rl(t);r.prototype.init.apply(this,arguments),BP(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),BP(this.option,t)},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}(le);function BP(r,e){var t=r.cellSize,n;ft(t)?n=t:n=r.cellSize=[t,t],n.length===1&&(n[1]=n[0]);var a=ht([0,1],function(i){return oF(e,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});oo(r,e,{type:"box",ignoreSize:a})}var Hj=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,n,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new de({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},e.prototype._renderLines=function(t,n,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){p(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(y){o._firstDayOfMonth.push(s.getDateInfo(y)),o._firstDayPoints.push(s.dataToRect([y],!1).tl);var _=o._getLinePointsOfOneWeek(t,y,a);o._tlpoints.push(_[0]),o._blpoints.push(_[_.length-1]),u&&o._drawSplitline(_,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,n,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},e.prototype._drawSplitline=function(t,n,a){var i=new tn({z2:20,shape:{points:t},style:n});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,n,a){for(var i=t.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,n){return Ct(t)&&t?nF(t,n):Rt(t)?t(n):n.nameMap},e.prototype._yearTextPositionControl=function(t,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,n,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=a==="horizontal"?0:1,v={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var y=o.get("formatter"),_={start:n.start.y,end:n.end.y,nameMap:p},g=this._formatterLabel(y,_),h=new pe({z2:30,style:Be(o,{text:g}),silent:o.get("silent")});h.attr(this._yearTextPositionControl(h,v[l],a,l,s)),i.add(h)}},e.prototype._monthTextPositionControl=function(t,n,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,n,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||Ct(s))&&(s&&(n=fm(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",y=o.get("silent"),_=0;_=a.start.time&&n.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var a=Math.floor(t[1].time/Z1)-Math.floor(t[0].time/Z1)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),f=n?-c+1:c-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:f,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,n){var a=this._getRangeInfo(n);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(a){var i=new r(a);n.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function zP(r){var e=r.calendarModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}function Zj(r){r.registerComponentModel(Wj),r.registerComponentView(Hj),r.registerCoordinateSystem("calendar",Uj)}function Yj(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function VP(r,e){var t;return N(e,function(n){r[n]!=null&&r[n]!=="auto"&&(t=!0)}),t}function Xj(r,e,t){var n=lt({},t),a=r[e],i=t.$action||"merge";if(i==="merge")if(a){if(process.env.NODE_ENV!=="production"){var o=t.type;Vt(!o||a.type===o,'Please set $action: "replace" to change `type`')}qt(a,n,!0),oo(a,n,{ignoreSize:!0}),mA(t,a),Jd(t,a),Jd(t,a,"shape"),Jd(t,a,"style"),Jd(t,a,"extra"),t.clipPath=a.clipPath}else r[e]=n;else i==="replace"?r[e]=n:i==="remove"&&a&&(r[e]=null)}var FP=["transition","enterFrom","leaveTo"],jj=FP.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Jd(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var n=t?FP:jj,a=0;a=0;c--){var f=a[c],d=fr(f.id,null),v=d!=null?o.get(d):null;if(v){var p=v.parent,g=Qn(p),h=p===i?{width:s,height:l}:{width:g.width,height:g.height},w={},b=Lv(v,f,h,null,{hv:f.hv,boundingMode:f.bounding},w);if(!Qn(v).isNew&&b){for(var S=f.transition,A={},T=0;T=0)?A[D]=L:v[D]=L}_e(v,A,t,0)}else v.attr(w)}}},e.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(a){tp(a,Qn(a).option,n,t._lastGraphicModel)}),this._elMap=Et()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Ue);function Y1(r){process.env.NODE_ENV!=="production"&&Vt(r,"graphic type MUST be set");var e=Mt(GP,r)?GP[r]:nm(r);process.env.NODE_ENV!=="production"&&Vt(e,"graphic type "+r+" can not be found");var t=new e({});return Qn(t).type=r,t}function WP(r,e,t,n){var a=Y1(t);return e.add(a),n.set(r,a),Qn(a).id=r,Qn(a).isNew=!0,a}function tp(r,e,t,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){tp(i,e,t,n)}),Ud(r,e,n),t.removeKey(Qn(r).id))}function HP(r,e,t,n){r.isGroup||N([["cursor",Vn.prototype.cursor],["zlevel",n||0],["z",t||0],["z2",0]],function(a){var i=a[0];Mt(e,i)?r[i]=Ut(e[i],a[1]):r[i]==null&&(r[i]=a[1])}),N(ue(e),function(a){if(a.indexOf("on")===0){var i=e[a];r[a]=Rt(i)?i:null}}),Mt(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function Qj(r){return r=lt({},r),N(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(yA),function(e){delete r[e]}),r}function Jj(r,e,t){var n=Zt(r).eventData;!r.silent&&!r.ignore&&!n&&(n=Zt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),n&&(n.info=t.info)}function t$(r){r.registerComponentModel(qj),r.registerComponentView(Kj),r.registerPreprocessor(function(e){var t=e.graphic;ft(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var UP=["x","y","radius","angle","single"],e$=["cartesian2d","polar","singleAxis"];function r$(r){var e=r.get("coordinateSystem");return te(e$,e)>=0}function bo(r){return process.env.NODE_ENV!=="production"&&Vt(r),r+"Axis"}function n$(r,e){var t=Et(),n=[],a=Et();r.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,v){var p=t.get(d);p&&p[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(t.get(f)||t.set(f,[]))[d]=!0})}return n}function ZP(r){var e=r.ecModel,t={infoList:[],infoMap:Et()};return r.eachTargetAxis(function(n,a){var i=e.getComponent(bo(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var X1=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),Cf=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,a){var i=YP(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var n=YP(t);qt(this.option,t,!0),qt(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;N([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=Et(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return N(UP,function(a){var i=this.getReferringComponents(bo(a),Y3);if(i.specified){n=!0;var o=new X1;N(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new X1;if(d.add(f.componentIndex),t.set(c,d),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",ir).models[0];v&&N(u,function(p){f.componentIndex!==p.componentIndex&&v===p.getReferringComponents("grid",ir).models[0]&&d.add(p.componentIndex)})}}}i&&N(UP,function(u){if(i){var c=a.findComponents({mainType:bo(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new X1;f.add(c[0].componentIndex),t.set(u,f),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,a=this.get("rangeMode");N([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,a){t==null&&(t=this.ecModel.getComponent(bo(n),a))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(a,i){N(a.indexList,function(o){t.call(n,i,o)})})},e.prototype.getAxisProxy=function(t,n){var a=this.getAxisModel(t,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){process.env.NODE_ENV!=="production"&&Vt(t&&n!=null);var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[n])return this.ecModel.getComponent(bo(t),n)},e.prototype.setRawRange=function(t){var n=this.option,a=this.settledOption;N([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(n[i[0]]=a[i[0]]=t[i[0]],n[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;N(["start","startValue","end","endValue"],function(a){n[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(w&&!b&&!S)return!0;w&&(_=!0),b&&(p=!0),S&&(y=!0)}return _&&p&&y})}else fu(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(y){return s(y)?y:NaN}));else{var p={};p[v]=o,u.selectRange(p)}});fu(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;fu(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Le(n[0]+o,n,[0,100],!0):i!=null&&(o=Le(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var a=hS(n,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function s$(r,e,t){var n=[1/0,-1/0];fu(t,function(o){G6(n,o.getData(),e)});var a=r.getAxisModel(),i=tD(a.axis.scale,a,n).calculate();return[i.min,i.max]}var l$={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(bo(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new o$(a,i,s,r),t.push(o.__dzAxisProxy))});var n=Et();return N(t,function(a){N(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).reset(t)}),t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function u$(r){r.registerAction("dataZoom",function(e,t){var n=n$(t,e);N(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var jP=!1;function $1(r){jP||(jP=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,l$),u$(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function c$(r){r.registerComponentModel(a$),r.registerComponentView(i$),$1(r)}var Jn=function(){function r(){}return r}(),$P={};function hu(r,e){$P[r]=e}function qP(r){return $P[r]}var f$=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;N(this.option.feature,function(n,a){var i=qP(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),qt(n,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}(le);function h$(r,e,t){var n=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(n,i,a);_s(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Lv(r,n,i,a)}function KP(r,e){var t=kl(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),r=new de({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var v$=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),f=[];N(u,function(p,y){f.push(y)}),new bi(this._featureNames||[],f).add(d).update(d).remove(jt(d,null)).execute(),this._featureNames=f;function d(p,y){var _=f[p],g=f[y],h=u[_],w=new Me(h,t,t.ecModel),b;if(i&&i.newTitle!=null&&i.featureName===_&&(h.title=i.newTitle),_&&!g){if(d$(_))b={onclick:w.option.onclick,featureName:_};else{var S=qP(_);if(!S)return;b=new S}c[_]=b}else if(b=c[g],!b)return;b.uid=Ml("toolbox-feature"),b.model=w,b.ecModel=n,b.api=a;var A=b instanceof Jn;if(!_&&g){A&&b.dispose&&b.dispose(n,a);return}if(!w.get("show")||A&&b.unusable){A&&b.remove&&b.remove(n,a);return}v(w,b,_),w.setIconStatus=function(T,D){var L=this.option,I=this.iconPaths;L.iconStatus=L.iconStatus||{},L.iconStatus[T]=D,I[T]&&(D==="emphasis"?gi:yi)(I[T])},b instanceof Jn&&b.render&&b.render(w,n,a,i)}function v(p,y,_){var g=p.getModel("iconStyle"),h=p.getModel(["emphasis","iconStyle"]),w=y instanceof Jn&&y.getIcons?y.getIcons():p.get("icon"),b=p.get("title")||{},S,A;Ct(w)?(S={},S[_]=w):S=w,Ct(b)?(A={},A[_]=b):A=b;var T=p.iconPaths={};N(S,function(D,L){var I=wc(D,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(g.getItemStyle());var P=I.ensureState("emphasis");P.style=h.getItemStyle();var E=new pe({style:{text:A[L],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null,font:om({fontStyle:h.get("textFontStyle"),fontFamily:h.get("textFontFamily"),fontSize:h.get("textFontSize"),fontWeight:h.get("textFontWeight")},n)},ignore:!0});I.setTextContent(E),ps({el:I,componentModel:t,itemName:L,formatterParamsExtra:{title:A[L]}}),I.__title=A[L],I.on("mouseover",function(){var R=h.getItemStyle(),M=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:h.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),I.setTextConfig({position:h.get("textPosition")||M}),E.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",L])!=="emphasis"&&a.leaveEmphasis(this),E.hide()}),(p.get(["iconStatus",L])==="emphasis"?gi:yi)(I),o.add(I),I.on("click",Lt(y.onclick,y,n,a,L)),T[L]=I})}h$(o,t,a),o.add(KP(o.getBoundingRect(),t)),l||o.eachChild(function(p){var y=p.__title,_=p.ensureState("emphasis"),g=_.textConfig||(_.textConfig={}),h=p.getTextContent(),w=h&&h.ensureState("emphasis");if(w&&!Rt(w)&&y){var b=w.style||(w.style={}),S=Ju(y,pe.makeFont(b)),A=p.x+o.x,T=p.y+o.y+s,D=!1;T+S.height>a.getHeight()&&(g.position="top",D=!0);var L=D?-5-S.height:s+10;A+S.width/2>a.getWidth()?(g.position=["100%",L],b.align="right"):A-S.width/2<0&&(g.position=[0,L],b.align="left")}})},e.prototype.updateView=function(t,n,a,i){N(this._features,function(o){o instanceof Jn&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.remove=function(t,n){N(this._features,function(a){a instanceof Jn&&a.remove&&a.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){N(this._features,function(a){a instanceof Jn&&a.dispose&&a.dispose(t,n)})},e.type="toolbox",e}(Ue);function d$(r){return r.indexOf("my")===0}var p$=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ie.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),v=d[0].indexOf("base64")>-1,p=o?decodeURIComponent(d[1]):d[1];v&&(p=window.atob(p));var y=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var _=p.length,g=new Uint8Array(_);_--;)g[_]=p.charCodeAt(_);var h=new Blob([g]);window.navigator.msSaveOrOpenBlob(h,y)}else{var w=document.createElement("iframe");document.body.appendChild(w);var b=w.contentWindow,S=b.document;S.open("image/svg+xml","replace"),S.write(p),S.close(),b.focus(),S.execCommand("SaveAs",!0,y),document.body.removeChild(w)}}else{var A=a.get("lang"),T='',D=window.open();D.document.write(T),D.document.title=i}},e.getDefaultOption=function(t){var n={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 n},e}(Jn),QP="__ec_magicType_stack__",g$=[["line","bar"],["stack"]],y$=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),a={};return N(t.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(t){var n={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 n},e.prototype.onclick=function(t,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(JP[a]){var s={series:[]},l=function(f){var d=f.subType,v=f.id,p=JP[a](d,v,f,i);p&&(Ft(p,f.option),s.series.push(p));var y=f.coordinateSystem;if(y&&y.type==="cartesian2d"&&(a==="line"||a==="bar")){var _=y.getAxesByScale("ordinal")[0];if(_){var g=_.dim,h=g+"Axis",w=f.getReferringComponents(h,ir).models[0],b=w.componentIndex;s[h]=s[h]||[];for(var S=0;S<=b;S++)s[h][b]=s[h][b]||{};s[h][b].boundaryGap=a==="bar"}}};N(g$,function(f){te(f,a)>=0&&N(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=qt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Jn),JP={line:function(r,e,t,n){if(r==="bar")return qt({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return qt({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var a=t.get("stack")===QP;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),qt({id:e,stack:a?"":QP},n.get(["option","stack"])||{},!0)}};Za({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var ep=new Array(60).join("-"),vu=" ";function m$(r){var e={},t=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function _$(r){var e=[];return N(r,function(t,n){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(ht(t.series,function(v){return v.name})),l=[a.model.getCategories()];N(t.series,function(v){var p=v.getRawData();l.push(v.getRawData().mapArray(p.mapDimension(o),function(y){return y}))});for(var u=[s.join(vu)],c=0;c=0)return!0}var q1=new RegExp("["+vu+"]+","g");function S$(r){for(var e=r.split(/\n+/g),t=rp(e.shift()).split(q1),n=[],a=ht(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function M$(r){var e=K1(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return tk(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function I$(r){ek(r).snapshots=null}function E$(r){return K1(r).length}function K1(r){var e=ek(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var P$=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){I$(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var n={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 n},e}(Jn);Za({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var k$=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Q1=function(){function r(e,t,n){var a=this;this._targetInfoList=[];var i=rk(t,e);N(R$,function(o,s){(!n||!n.include||te(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=tw[n.brushType](0,i,a);n.__rangeOffset={offset:ok[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){N(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&N(i.coordSyses,function(o){var s=tw[a.brushType](1,o,a.range,!0);n(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){N(e,function(n){var a=this.findTargetInfo(n,t);if(process.env.NODE_ENV!=="production"&&(Vt(!a||a===!0||n.coordRange,"coordRange must be specified when coord index specified."),Vt(!a||a!==!0||n.range,"range must be specified in global brush.")),n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=tw[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?ok[n.brushType](i.values,o.offset,N$(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return ht(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:tE(a),isTargetByCursor:rE(a,e,n.coordSysModel),getLinearBrushOtherExtent:eE(a)}})},r.prototype.controlSeries=function(e,t,n){var a=this.findTargetInfo(e,n);return a===!0||a&&te(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,a=rk(t,e),i=0;ir[1]&&r.reverse(),r}function rk(r,e){return ac(r,e,{includeMainTypes:k$})}var R$={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=Et(),o={},s={};!t&&!n&&!a||(N(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),N(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),N(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];N(u.getCartesians(),function(f,d){(te(t,f.getAxis("x").model)>=0||te(n,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:ak.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){N(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:ak.geo})})}},nk=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],ak={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(ds(r)),e}},tw={lineX:jt(ik,0),lineY:jt(ik,1),rect:function(r,e,t,n){var a=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),i=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[J1([a[0],i[0]]),J1([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=ht(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function ik(r,e,t,n){process.env.NODE_ENV!=="production"&&Vt(t.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var a=t.getAxis(["x","y"][r]),i=J1(ht([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var ok={lineX:jt(sk,0),lineY:jt(sk,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return ht(r,function(n,a){return[n[0]-t[0]*e[a][0],n[1]-t[1]*e[a][1]]})}};function sk(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function N$(r,e){var t=lk(r),n=lk(e),a=[t[0]/n[0],t[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function lk(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var ew=N,O$=G3("toolbox-dataZoom_"),B$=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){this._brushController||(this._brushController=new Q_(a.getZr()),this._brushController.on("brush",Lt(this._onBrush,this)).mount()),F$(t,n,this,i,a),V$(t,n)},e.prototype.onclick=function(t,n,a){z$[a].call(this)},e.prototype.remove=function(t,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Q1(rw(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),L$(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),v=d.model,p=l(u,v,i),y=p.findRepresentativeAxisProxy(v).getMinMaxSpan();(y.minValueSpan!=null||y.maxValueSpan!=null)&&(f=Us(0,f.slice(),d.scale.getExtent(),0,y.minValueSpan,y.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var p=v.getAxisModel(u,c.componentIndex);p&&(d=v)}),d}},e.prototype._dispatchZoomAction=function(t){var n=[];ew(t,function(a,i){n.push(Wt(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){var n={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 n},e}(Jn),z$={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(M$(this.ecModel))}};function rw(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function V$(r,e){r.setIconStatus("back",E$(e)>1?"emphasis":"normal")}function F$(r,e,t,n,a){var i=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new Q1(rw(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}hF("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),a=[],i=rw(n),o=ac(r,i);ew(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ew(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:O$+u+f};d[c]=f,a.push(d)}return a});function G$(r){r.registerComponentModel(f$),r.registerComponentView(v$),hu("saveAsImage",p$),hu("magicType",y$),hu("dataView",C$),hu("dataZoom",B$),hu("restore",P$),ae(c$)}var W$=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return 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}(le);function uk(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function ck(r){if(ie.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var p=e+" solid "+a+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'
'}function $$(r,e){var t="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+t,a="opacity"+n+",visibility"+n;return e||(n=" "+r+"s "+t,a+=ie.transformSupported?","+nw+n:",left"+n+",top"+n),Z$+":"+a}function vk(r,e,t){var n=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ie.transformSupported)return t?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=ie.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+nw+":"+o+";":[["top",0],["left",0],[fk,o]]}function q$(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var a=Ut(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+a+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),N(["decoration","align"],function(u){var c=r.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function K$(r,e,t){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=mT(r,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),e&&a&&n.push($$(a,t)),i&&n.push("background-color:"+i),N(["width","color","radius"],function(v){var p="border-"+v,y=dA(p),_=r.get(y);_!=null&&n.push(p+":"+_+(v==="color"?"":"px"))}),n.push(q$(c)),f!=null&&n.push("padding:"+kl(f).join("px ")+"px"),n.join(";")+";"}function dk(r,e,t,n,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&dB(r,o,t,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var Q$=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ie.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=t.appendTo,o=i&&(Ct(i)?document.querySelector(i):Oo(i)?i:Rt(i)&&i(e.getDom()));dk(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();Nn(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=U$(t,"position"),a=t.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=Y$+K$(e,!this._firstShow,this._longHide)+vk(i[0],i[1],!0)+("border-color:"+ys(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Ct(i)&&n.get("trigger")==="item"&&!uk(n)&&(s=j$(n,a,i)),Ct(e))o.innerHTML=e+s;else if(e){o.innerHTML="",ft(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,a,i){if(!(i.from===this.uid||ie.node||!a.getDom())){var o=yk(i,a);this._ticket="";var s=i.dataByCoordSys,l=iq(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=tq;c.x=i.x,c.y=i.y,c.update(),Zt(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,n,a,i))return;var f=AP(i,n),d=f.point[0],v=f.point[1];d!=null&&v!=null&&this._tryShow({offsetX:d,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(yk(i,a))},e.prototype._manuallyAxisShowTip=function(t,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Df([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,n){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){var s=Zt(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ss(a,function(c){if(Zt(c).dataIndex!=null)return l=c,!0;if(Zt(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var a=t.get("showDelay");n=Lt(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(t,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Df([n.tooltipOption],i),l=this._renderMode,u=[],c=_r("section",{blocks:[],noHeader:!0}),f=[],d=new Fm;N(t,function(h){N(h.dataByAxis,function(w){var b=a.getComponent(w.axisDim+"Axis",w.axisIndex),S=w.value;if(!(!b||S==null)){var A=gP(S,b.axis,a,w.seriesDataIndices,w.valueLabelOpt),T=_r("section",{header:A,noHeader:!ca(A),sortBlocks:!0,blocks:[]});c.blocks.push(T),N(w.seriesDataIndices,function(D){var L=a.getSeriesByIndex(D.seriesIndex),I=D.dataIndexInside,P=L.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=w.axisDim,P.axisIndex=w.axisIndex,P.axisType=w.axisType,P.axisId=w.axisId,P.axisValue=w0(b.axis,{value:S}),P.axisValueLabel=A,P.marker=d.makeTooltipMarker("item",ys(P.color),l);var E=QA(L.formatTooltip(I,!0,null)),R=E.frag;if(R){var M=Df([L],i).get("valueFormatter");T.blocks.push(M?lt({valueFormatter:M},R):R)}E.text&&f.push(E.text),u.push(P)}})}})}),c.blocks.reverse(),f.reverse();var v=n.position,p=s.get("order"),y=pT(c,d,l,p,a.get("useUTC"),s.get("textStyle"));y&&f.unshift(y);var _=l==="richText"?` + +`:"
",g=f.join(_);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,d)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=Zt(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),v=this._renderMode,p=t.positionDefault,y=Df([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),_=y.get("trigger");if(!(_!=null&&_!=="item")){var g=u.getDataParams(c,f),h=new Fm;g.marker=h.makeTooltipMarker("item",ys(g.color),v);var w=QA(u.formatTooltip(c,!1,f)),b=y.get("order"),S=y.get("valueFormatter"),A=w.frag,T=A?pT(S?lt({valueFormatter:S},A):A,h,v,b,i.get("useUTC"),y.get("textStyle")):w.text,D="item_"+u.name+"_"+c;this._showOrMove(y,function(){this._showTooltipContent(y,T,g,D,t.offsetX,t.offsetY,t.position,t.target,h)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=this._renderMode==="html",o=Zt(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Ct(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=Wt(l),l.content=jr(l.content));var f=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:l.content});var v=t.positionDefault,p=Df(f,this._tooltipModel,v?{position:v}:null),y=p.get("content"),_=Math.random()+"",g=new Fm;this._showOrMove(p,function(){var h=Wt(p.get("formatterParams")||{});this._showTooltipContent(p,y,h,_,t.offsetX,t.offsetY,t.position,n,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var f=this._tooltipContent;f.setEnterable(t.get("enterable"));var d=t.get("formatter");l=l||t.get("position");var v=n,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),y=p.color;if(d)if(Ct(d)){var _=t.ecModel.get("useUTC"),g=ft(a)?a[0]:a,h=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=d,h&&(v=bv(g.axisValue,v,_)),v=gA(v,a,!0)}else if(Rt(d)){var w=Lt(function(b,S){b===this._ticket&&(f.setContent(S,c,t,y,l),this._updatePosition(t,l,o,s,f,a,u))},this);this._ticket=i,v=d(a,i,w)}else v=d;f.setContent(v,c,t,y,l),f.show(t,y),this._updatePosition(t,l,o,s,f,a,u)}},e.prototype._getNearestPoint=function(t,n,a,i){if(a==="axis"||ft(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!ft(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||t.get("position");var f=o.getSize(),d=t.get("align"),v=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),Rt(n)&&(n=n([a,i],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),ft(n))a=At(n[0],u),i=At(n[1],c);else if(zt(n)){var y=n;y.width=f[0],y.height=f[1];var _=hr(y,{width:u,height:c});a=_.x,i=_.y,d=null,v=null}else if(Ct(n)&&l){var g=aq(n,p,f,t.get("borderWidth"));a=g[0],i=g[1]}else{var g=rq(a,i,o,u,c,d?null:20,v?null:20);a=g[0],i=g[1]}if(d&&(a-=mk(d)?f[0]/2:d==="right"?f[0]:0),v&&(i-=mk(v)?f[1]/2:v==="bottom"?f[1]:0),uk(t)){var g=nq(a,i,o,u,c);a=g[0],i=g[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&N(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&N(u,function(d,v){var p=f[v]||{},y=d.seriesDataIndices||[],_=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&y.length===_.length,o&&N(y,function(g,h){var w=_[h];o=o&&g.seriesIndex===w.seriesIndex&&g.dataIndex===w.dataIndex}),i&&N(d.seriesDataIndices,function(g){var h=g.seriesIndex,w=n[h],b=i[h];w&&b&&b.data!==w.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){ie.node||!n.getDom()||(Pc(this,"_updatePosition"),this._tooltipContent.dispose(),V1("itemTooltip",n))},e.type="tooltip",e}(Ue);function Df(r,e,t){var n=e.ecModel,a;t?(a=new Me(t,n,n),a=new Me(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Me&&(o=o.get("tooltip",!0)),Ct(o)&&(o={formatter:o}),o&&(a=new Me(o,a,n)))}return a}function yk(r,e){return r.dispatchAction||Lt(e.dispatchAction,e)}function rq(r,e,t,n,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function nq(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function aq(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,c=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function mk(r){return r==="center"||r==="middle"}function iq(r,e,t){var n=_y(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=ic(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Zt(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function oq(r){ae(Tf),r.registerComponentModel(W$),r.registerComponentView(eq),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Je),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Je)}var sq=["rect","polygon","keep","clear"];function lq(r,e){var t=Pe(r?r.brush:[]);if(t.length){var n=[];N(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=r&&r.toolbox;ft(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),uq(s),e&&!s.length&&s.push.apply(s,sq)}}function uq(r){var e={};N(r,function(t){e[t]=1}),r.length=0,N(e,function(t,n){r.push(n)})}var _k=N;function wk(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function aw(r,e,t){var n={};return _k(e,function(i){var o=n[i]=a();_k(r[i],function(s,l){if(br.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new br(u),l==="opacity"&&(u=Wt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new br(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function bk(r,e,t){var n;N(t,function(a){e.hasOwnProperty(a)&&wk(e[a])&&(n=!0)}),n&&N(t,function(a){e.hasOwnProperty(a)&&wk(e[a])?r[a]=Wt(e[a]):delete r[a]})}function cq(r,e,t,n,a,i){var o={};N(r,function(f){var d=br.prepareVisualTypes(e[f]);o[f]=d});var s;function l(f){return Um(t,s,f)}function u(f,d){FT(t,s,f,d)}t.each(c);function c(f,d){s=f;var v=t.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var p=n.call(a,f),y=e[p],_=o[p],g=0,h=_.length;ge[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&Dk(e)}};function Dk(r){return new Jt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var mq=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n,this.model,(this._brushController=new Q_(n.getZr())).on("brush",Lt(this._onBrush,this)).mount()},e.prototype.render=function(t,n,a,i){this.model=t,this._updateController(t,n,a,i)},e.prototype.updateTransform=function(t,n,a,i){Tk(n),this._updateController(t,n,a,i)},e.prototype.updateVisual=function(t,n,a,i){this.updateTransform(t,n,a,i)},e.prototype.updateView=function(t,n,a,i){this._updateController(t,n,a,i)},e.prototype._updateController=function(t,n,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Wt(a),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Wt(a),$from:n})},e.type="brush",e}(Ue),_q="#ddd",wq=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&bk(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:_q},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){process.env.NODE_ENV!=="production"&&(Vt(ft(t)),N(t,function(n){Vt(n.brushType,"Illegal areas")})),t&&(this.areas=ht(t,function(n){return Lk(this.option,n)},this))},e.prototype.setBrushOption=function(t){this.brushOption=Lk(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}(le);function Lk(r,e){return qt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Me(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var bq=["rect","polygon","lineX","lineY","keep","clear"],xq=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,N(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,n,a){this.render(t,n,a)},e.prototype.getIcons=function(){var t=this.model,n=t.get("icon",!0),a={};return N(t.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},e.prototype.onclick=function(t,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var n={show:!0,type:bq.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 n},e}(Jn);function Sq(r){r.registerComponentView(mq),r.registerComponentModel(wq),r.registerPreprocessor(lq),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,vq),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Je),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Je),hu("brush",xq)}var Aq=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(le),Tq=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ut(t.get("textBaseline"),t.get("textVerticalAlign")),c=new pe({style:Be(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=t.get("subtext"),v=new pe({style:Be(s,{text:d,fill:s.getTextColor(),y:f.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),y=t.get("sublink"),_=t.get("triggerEvent",!0);c.silent=!p&&!_,v.silent=!y&&!_,p&&c.on("click",function(){Cv(p,"_"+t.get("target"))}),y&&v.on("click",function(){Cv(y,"_"+t.get("subtarget"))}),Zt(c).eventData=Zt(v).eventData=_?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),d&&i.add(v);var g=i.getBoundingRect(),h=t.getBoxLayoutParams();h.width=g.width,h.height=g.height;var w=hr(h,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?w.x+=w.width:l==="center"&&(w.x+=w.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?w.y+=w.height:u==="middle"&&(w.y+=w.height/2),u=u||"top"),i.x=w.x,i.y=w.y,i.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),v.setStyle(b),g=i.getBoundingRect();var S=w.margin,A=t.getItemStyle(["color","opacity"]);A.fill=t.get("backgroundColor");var T=new de({shape:{x:g.x-S[3],y:g.y-S[0],width:g.width+S[1]+S[3],height:g.height+S[0]+S[2],r:t.get("borderRadius")},style:A,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(Ue);function Cq(r){r.registerComponentModel(Aq),r.registerComponentView(Tq)}var Mk=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var n=this._data.count();this.option.loop?t=(t%n+n)%n:(t>=n&&(t=n-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=this.option,n=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],N(n,function(u,c){var f=fr(yl(u),""),d;zt(u)?(d=Wt(u),d.value=c):d=c,o.push(d),i.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new en([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(le),Ik=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=ao(Mk.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}(Mk);rr(Ik,Pv.prototype);var Dq=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Ue),Lq=function(r){J(e,r);function e(t,n,a,i){var o=r.call(this,t,n,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(ba),sw=Math.PI,Ek=ve(),Mq=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.api=n},e.prototype.render=function(t,n,a){if(this.model=t,this.api=a,this.ecModel=n,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return _r("nameValue",{noName:!0,value:c})},N(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,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,n){var a=t.get(["label","position"]),i=t.get("orient"),o=Eq(t,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:sw/2},f=i==="vertical"?o.height:o.width,d=t.getModel("controlStyle"),v=d.get("show",!0),p=v?d.get("itemSize"):0,y=v?d.get("itemGap"):0,_=p+y,g=t.get(["label","rotate"])||0;g=g*sw/180;var h,w,b,S=d.get("position",!0),A=v&&d.get("showPlayBtn",!0),T=v&&d.get("showPrevBtn",!0),D=v&&d.get("showNextBtn",!0),L=0,I=f;S==="left"||S==="bottom"?(A&&(h=[0,0],L+=_),T&&(w=[L,0],L+=_),D&&(b=[I-p,0],I-=_)):(A&&(h=[I-p,0],I-=_),T&&(w=[0,0],L+=_),D&&(b=[I-p,0],I-=_));var P=[L,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:g,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:h,prevBtnPosition:w,nextBtnPosition:b,axisExtent:P,controlSize:p,controlGap:y}},e.prototype._position=function(t,n){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=mn(),l=o.x,u=o.y+o.height;Ea(s,s,[-l,-u]),Go(s,s,-sw/2),Ea(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=h(o),f=h(a.getBoundingRect()),d=h(i.getBoundingRect()),v=[a.x,a.y],p=[i.x,i.y];p[0]=v[0]=c[0][0];var y=t.labelPosOpt;if(y==null||Ct(y)){var _=y==="+"?0:1;w(v,f,c,1,_),w(p,d,c,1,1-_)}else{var _=y>=0?0:1;w(v,f,c,1,_),p[1]=v[1]+y}a.setPosition(v),i.setPosition(p),a.rotation=i.rotation=t.rotation,g(a),g(i);function g(b){b.originX=c[0][0]-b.x,b.originY=c[1][0]-b.y}function h(b){return[[b.x,b.x+b.width],[b.y,b.y+b.height]]}function w(b,S,A,T,D){b[T]+=A[T][D]-S[T][D]}},e.prototype._createAxis=function(t,n){var a=n.getData(),i=n.get("axisType"),o=Iq(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Lq("value",o,t.axisExtent,i);return l.model=n,l},e.prototype._createGroup=function(t){var n=this[t]=new Ht;return this.group.add(n),n},e.prototype._renderAxisLine=function(t,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new yr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:lt({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new yr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ft({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(t,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],N(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),y={x:c,y:0,onclick:Lt(o._changeTimeline,o,u.value)},_=Pk(f,d,n,y);_.ensureState("emphasis").style=v.getItemStyle(),_.ensureState("progress").style=p.getItemStyle(),us(_);var g=Zt(_);f.get("tooltip")?(g.dataIndex=u.value,g.dataModel=i):g.dataIndex=g.dataModel=null,o._tickSymbols.push(_)})},e.prototype._renderAxisLabel=function(t,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],N(u,function(c){var f=c.tickValue,d=l.getItemModel(f),v=d.getModel("label"),p=d.getModel(["emphasis","label"]),y=d.getModel(["progress","label"]),_=a.dataToCoord(c.tickValue),g=new pe({x:_,y:0,rotation:t.labelRotation-t.rotation,onclick:Lt(o._changeTimeline,o,f),silent:!1,style:Be(v,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});g.ensureState("emphasis").style=Be(p),g.ensureState("progress").style=Be(y),n.add(g),us(g),Ek(g).dataIndex=f,o._tickLabels.push(g)})}},e.prototype._renderControl=function(t,n,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);d(t.nextBtnPosition,"next",Lt(this._changeTimeline,this,f?"-":"+")),d(t.prevBtnPosition,"prev",Lt(this._changeTimeline,this,f?"+":"-")),d(t.playPosition,c?"stop":"play",Lt(this._handlePlayClick,this,!c),!0);function d(v,p,y,_){if(v){var g=va(Ut(i.get(["controlStyle",p+"BtnSize"]),o),o),h=[0,-g/2,g,g],w=Pq(i,p+"Icon",h,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:_?-s:0,rectHover:!0,style:l,onclick:y});w.ensureState("emphasis").style=u,n.add(w),us(w)}}},e.prototype._renderCurrentPointer=function(t,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Lt(u._handlePointerDrag,u),f.ondragend=Lt(u._handlePointerDragend,u),kk(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){kk(f,u._progressLine,s,a,i)}};this._currentPointer=Pk(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,n){var a=this._toAxisCoord(t)[0],i=this._axis,o=zn(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var cw={min:jt(ip,"min"),max:jt(ip,"max"),average:jt(ip,"average"),median:jt(ip,"median")};function Mf(r,e){if(e){var t=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!zq(e)&&!ft(e.coord)&&ft(a)){var i=Nk(e,t,n,r);if(e=Wt(e),e.type&&cw[e.type]&&i.baseAxis&&i.valueAxis){var o=te(a,i.baseAxis.dim),s=te(a,i.valueAxis.dim),l=cw[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!ft(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)cw[u[c]]&&(u[c]=fw(t,t.mapDimension(a[c]),u[c]));return e}}function Nk(r,e,t,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(Vq(n,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Vq(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function If(r,e){return r&&r.containData&&e.coord&&!uw(e)?r.containData(e.coord):!0}function Fq(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!uw(e)&&!uw(t)?r.containZone(e.coord,t.coord):!0}function Ok(r,e){return r?function(t,n,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return so(o,e[i])}:function(t,n,a,i){return so(t.value,e[i])}}function fw(r,e,t){if(t==="average"){var n=0,a=0;return r.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var hw=ve(),vw=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Et()},e.prototype.render=function(t,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){hw(s).keep=!1}),n.eachSeries(function(s){var l=Mi.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!hw(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){hw(t).keep=!0},e.prototype.toggleBlurSeries=function(t,n){var a=this;N(t,function(i){var o=Mi.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?v2(l):Uy(l))})}})},e.type="marker",e}(Ue);function Bk(r,e,t){var n=e.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),o,s=At(i.get("x"),t.getWidth()),l=At(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var u=r.get(n.dimensions[0],a),c=r.get(n.dimensions[1],a);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(a,o)})}var Gq=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Mi.getMarkerModelFromSeries(i,"markPoint");o&&(Bk(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new tf),f=Wq(o,t,n);n.setData(f),Bk(n.getData(),t,i),f.each(function(d){var v=f.getItemModel(d),p=v.getShallow("symbol"),y=v.getShallow("symbolSize"),_=v.getShallow("symbolRotate"),g=v.getShallow("symbolOffset"),h=v.getShallow("symbolKeepAspect");if(Rt(p)||Rt(y)||Rt(_)||Rt(g)){var w=n.getRawValue(d),b=n.getDataParams(d);Rt(p)&&(p=p(w,b)),Rt(y)&&(y=y(w,b)),Rt(_)&&(_=_(w,b)),Rt(g)&&(g=g(w,b))}var S=v.getModel("itemStyle").getItemStyle(),A=Nc(l,"color");S.fill||(S.fill=A),f.setItemVisual(d,{symbol:p,symbolSize:y,symbolRotate:_,symbolOffset:g,symbolKeepAspect:h,style:S})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(v){Zt(v).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||t.get("silent")},e.type="markPoint",e}(vw);function Wq(r,e,t){var n;r?n=ht(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return lt(lt({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new en(n,t),i=ht(t.get("data"),jt(Mf,e));r&&(i=Ae(i,jt(If,r)));var o=Ok(!!r,n);return a.initData(i,null,o),a}function Hq(r){r.registerComponentModel(Bq),r.registerComponentView(Gq),r.registerPreprocessor(function(e){lw(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var Uq=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},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}(Mi),op=ve(),Zq=function(r,e,t,n){var a=r.getData(),i;if(ft(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=nr(n.yAxis,n.xAxis);else{var u=Nk(n,a,e,r);s=u.valueAxis;var c=VC(a,u.valueDataDim);l=fw(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,v=Wt(n),p={coord:[]};v.type=null,v.coord=[],v.coord[d]=-1/0,p.coord[d]=1/0;var y=t.get("precision");y>=0&&ye(l)&&(l=+l.toFixed(Math.min(y,20))),v.coord[f]=p.coord[f]=l,i=[v,p,{type:o,valueIndex:n.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&ua("Invalid markLine data."),i=[]}var _=[Mf(r,i[0]),Mf(r,i[1]),lt({},i[2])];return _[2].type=_[2].type||null,qt(_[2],_[0]),qt(_[2],_[1]),_};function sp(r){return!isNaN(r)&&!isFinite(r)}function zk(r,e,t,n){var a=1-r,i=n.dimensions[r];return sp(e[a])&&sp(t[a])&&e[r]===t[r]&&n.getAxis(i).containData(e[r])}function Yq(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,n=e[1].coord;if(t&&n&&(zk(1,t,n,r)||zk(0,t,n,r)))return!0}return If(r,e[0])&&If(r,e[1])}function dw(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=At(o.get("x"),a.getWidth()),u=At(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,e));else{var c=i.dimensions,f=r.get(c[0],e),d=r.get(c[1],e);s=i.dataToPoint([f,d])}if(Os(i,"cartesian2d")){var v=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;sp(r.get(c[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):sp(r.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var Xq=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Mi.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=op(o).from,u=op(o).to;l.each(function(c){dw(l,c,!0,i,a),dw(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new F_);this.group.add(c.group);var f=jq(o,t,n),d=f.from,v=f.to,p=f.line;op(n).from=d,op(n).to=v,n.setData(p);var y=n.get("symbol"),_=n.get("symbolSize"),g=n.get("symbolRotate"),h=n.get("symbolOffset");ft(y)||(y=[y,y]),ft(_)||(_=[_,_]),ft(g)||(g=[g,g]),ft(h)||(h=[h,h]),f.from.each(function(b){w(d,b,!0),w(v,b,!1)}),p.each(function(b){var S=p.getItemModel(b).getModel("lineStyle").getLineStyle();p.setItemLayout(b,[d.getItemLayout(b),v.getItemLayout(b)]),S.stroke==null&&(S.stroke=d.getItemVisual(b,"style").fill),p.setItemVisual(b,{fromSymbolKeepAspect:d.getItemVisual(b,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(b,"symbolOffset"),fromSymbolRotate:d.getItemVisual(b,"symbolRotate"),fromSymbolSize:d.getItemVisual(b,"symbolSize"),fromSymbol:d.getItemVisual(b,"symbol"),toSymbolKeepAspect:v.getItemVisual(b,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(b,"symbolOffset"),toSymbolRotate:v.getItemVisual(b,"symbolRotate"),toSymbolSize:v.getItemVisual(b,"symbolSize"),toSymbol:v.getItemVisual(b,"symbol"),style:S})}),c.updateData(p),f.line.eachItemGraphicEl(function(b){Zt(b).dataModel=n,b.traverse(function(S){Zt(S).dataModel=n})});function w(b,S,A){var T=b.getItemModel(S);dw(b,S,A,t,i);var D=T.getModel("itemStyle").getItemStyle();D.fill==null&&(D.fill=Nc(l,"color")),b.setItemVisual(S,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ut(T.get("symbolOffset",!0),h[A?0:1]),symbolRotate:Ut(T.get("symbolRotate",!0),g[A?0:1]),symbolSize:Ut(T.get("symbolSize"),_[A?0:1]),symbol:Ut(T.get("symbol",!0),y[A?0:1]),style:D})}this.markKeep(c),c.group.silent=n.get("silent")||t.get("silent")},e.type="markLine",e}(vw);function jq(r,e,t){var n;r?n=ht(r&&r.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return lt(lt({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new en(n,t),i=new en(n,t),o=new en([],t),s=ht(t.get("data"),jt(Zq,e,r,t));r&&(s=Ae(s,jt(Yq,r)));var l=Ok(!!r,n);return a.initData(ht(s,function(u){return u[0]}),null,l),i.initData(ht(s,function(u){return u[1]}),null,l),o.initData(ht(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function $q(r){r.registerComponentModel(Uq),r.registerComponentView(Xq),r.registerPreprocessor(function(e){lw(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var qq=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},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}(Mi),lp=ve(),Kq=function(r,e,t,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=Mf(r,a),s=Mf(r,i),l=o.coord,u=s.coord;l[0]=nr(l[0],-1/0),l[1]=nr(l[1],-1/0),u[0]=nr(u[0],1/0),u[1]=nr(u[1],1/0);var c=yg([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function up(r){return!isNaN(r)&&!isFinite(r)}function Vk(r,e,t,n){var a=1-r;return up(e[a])&&up(t[a])}function Qq(r,e){var t=e.coord[0],n=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return Os(r,"cartesian2d")?t&&n&&(Vk(1,t,n)||Vk(0,t,n))?!0:Fq(r,a,i):If(r,a)||If(r,i)}function Fk(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=At(o.get(t[0]),a.getWidth()),u=At(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=r.getValues(["x0","y0"],e),f=r.getValues(["x1","y1"],e),d=i.clampData(c),v=i.clampData(f),p=[];t[0]==="x0"?p[0]=d[0]>v[0]?f[0]:c[0]:p[0]=d[0]>v[0]?c[0]:f[0],t[1]==="y0"?p[1]=d[1]>v[1]?f[1]:c[1]:p[1]=d[1]>v[1]?c[1]:f[1],s=n.getMarkerPosition(p,t,!0)}else{var y=r.get(t[0],e),_=r.get(t[1],e),g=[y,_];i.clampData&&i.clampData(g,g),s=i.dataToPoint(g,!0)}if(Os(i,"cartesian2d")){var h=i.getAxis("x"),w=i.getAxis("y"),y=r.get(t[0],e),_=r.get(t[1],e);up(y)?s[0]=h.toGlobalCoord(h.getExtent()[t[0]==="x0"?0:1]):up(_)&&(s[1]=w.toGlobalCoord(w.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var Gk=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Jq=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Mi.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=ht(Gk,function(f){return Fk(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Ht});this.group.add(c.group),this.markKeep(c);var f=tK(o,t,n);n.setData(f),f.each(function(d){var v=ht(Gk,function(D){return Fk(f,d,D,t,i)}),p=o.getAxis("x").scale,y=o.getAxis("y").scale,_=p.getExtent(),g=y.getExtent(),h=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],w=[y.parse(f.get("y0",d)),y.parse(f.get("y1",d))];zn(h),zn(w);var b=!(_[0]>h[1]||_[1]w[1]||g[1]=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(le),du=jt,gw=N,cp=Ht,Wk=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new cp),this.group.add(this._selectorGroup=new cp),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,a,l,s,u);var c=t.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=t.get("padding"),v=hr(c,f,d),p=this.layoutInner(t,o,v,i,l,u),y=hr(Ft({width:p.width,height:p.height},c),f,d);this.group.x=y.x-p.x,this.group.y=y.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=KP(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this.getContentGroup(),c=Et(),f=n.get("selectedMode"),d=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&d.push(v.id)}),gw(n.getData(),function(v,p){var y=v.get("name");if(!this.newlineDisabled&&(y===""||y===` +`)){var _=new cp;_.newline=!0,u.add(_);return}var g=a.getSeriesByName(y)[0];if(!c.get(y)){if(g){var h=g.getData(),w=h.getVisual("legendLineStyle")||{},b=h.getVisual("legendIcon"),S=h.getVisual("style"),A=this._createItem(g,y,p,v,n,t,w,S,b,f,i);A.on("click",du(Hk,y,null,i,d)).on("mouseover",du(yw,g.name,null,i,d)).on("mouseout",du(mw,g.name,null,i,d)),a.ssr&&A.eachChild(function(T){var D=Zt(T);D.seriesIndex=g.seriesIndex,D.dataIndex=p,D.ssrType="legend"}),c.set(y,!0)}else a.eachRawSeries(function(T){if(!c.get(y)&&T.legendVisualProvider){var D=T.legendVisualProvider;if(!D.containName(y))return;var L=D.indexOfName(y),I=D.getItemVisual(L,"style"),P=D.getItemVisual(L,"legendIcon"),E=_n(I.fill);E&&E[3]===0&&(E[3]=.2,I=lt(lt({},I),{fill:ui(E,"rgba")}));var R=this._createItem(T,y,p,v,n,t,{},I,P,f,i);R.on("click",du(Hk,null,y,i,d)).on("mouseover",du(yw,null,y,i,d)).on("mouseout",du(mw,null,y,i,d)),a.ssr&&R.eachChild(function(M){var B=Zt(M);B.seriesIndex=T.seriesIndex,B.dataIndex=p,B.ssrType="legend"}),c.set(y,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(y)||console.warn(y+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,i,s,l)},e.prototype._createSelector=function(t,n,a,i,o){var s=this.getSelectorGroup();gw(t,function(u){var c=u.type,f=new pe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(f);var d=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Pr(f,{normal:d,emphasis:v},{defaultText:u.title}),us(f)})},e.prototype._createItem=function(t,n,a,i,o,s,l,u,c,f,d){var v=t.visualDrawType,p=o.get("itemWidth"),y=o.get("itemHeight"),_=o.isSelected(n),g=i.get("symbolRotate"),h=i.get("symbolKeepAspect"),w=i.get("icon");c=w||c||"roundRect";var b=nK(c,i,l,u,v,_,d),S=new cp,A=i.getModel("textStyle");if(Rt(t.getLegendIcon)&&(!w||w==="inherit"))S.add(t.getLegendIcon({itemWidth:p,itemHeight:y,icon:c,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:h}));else{var T=w==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;S.add(aK({itemWidth:p,itemHeight:y,icon:c,iconRotate:T,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:h}))}var D=s==="left"?p+5:-5,L=s,I=o.get("formatter"),P=n;Ct(I)&&I?P=I.replace("{name}",n!=null?n:""):Rt(I)&&(P=I(n));var E=_?A.getTextColor():i.get("inactiveColor");S.add(new pe({style:Be(A,{text:P,x:D,y:y/2,fill:E,align:L,verticalAlign:"middle"},{inheritColor:E})}));var R=new de({shape:S.getBoundingRect(),style:{fill:"transparent"}}),M=i.getModel("tooltip");return M.get("show")&&ps({el:R,componentModel:o,itemName:n,itemTooltipOption:M.option}),S.add(R),S.eachChild(function(B){B.silent=!0}),R.silent=!f,this.getContentGroup().add(S),us(S),S.__legendDataIndex=a,S},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();_s(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){_s("horizontal",u,t.get("selectorItemGap",!0));var d=u.getBoundingRect(),v=[-d.x,-d.y],p=t.get("selectorButtonGap",!0),y=t.getOrient().index,_=y===0?"width":"height",g=y===0?"height":"width",h=y===0?"y":"x";s==="end"?v[y]+=c[_]+p:f[y]+=d[_]+p,v[1-y]+=c[g]/2-d[g]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var w={x:0,y:0};return w[_]=c[_]+p+d[_],w[g]=Math.max(c[g],d[g]),w[h]=Math.min(0,d[h]+v[1-y]),w}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Ue);function nK(r,e,t,n,a,i,o){function s(_,g){_.lineWidth==="auto"&&(_.lineWidth=g.lineWidth>0?2:0),gw(_,function(h,w){_[w]==="inherit"&&(_[w]=g[w])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Yl(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:t).opacity),s(u,n);var d=e.getModel("lineStyle"),v=d.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var p=e.get("inactiveBorderWidth"),y=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&y?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=d.get("inactiveColor"),v.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function aK(r){var e=r.icon||"roundRect",t=sr(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function Hk(r,e,t,n){mw(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r!=null?r:e}),yw(r,e,t,n)}function Uk(r){for(var e=r.getZr().storage.getDisplayList(),t,n=0,a=e.length;na[o],_=[-v.x,-v.y];n||(_[i]=c[u]);var g=[0,0],h=[-p.x,-p.y],w=Ut(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(y){var b=t.get("pageButtonPosition",!0);b==="end"?h[i]+=a[o]-p[o]:g[i]+=p[o]+w}h[1-i]+=v[s]/2-p[s]/2,c.setPosition(_),f.setPosition(g),d.setPosition(h);var S={x:0,y:0};if(S[o]=y?a[o]:v[o],S[s]=Math.max(v[s],p[s]),S[l]=Math.min(0,p[l]+h[1-i]),f.__rectSize=a[o],y){var A={x:0,y:0};A[o]=Math.max(a[o]-p[o]-w,0),A[s]=S[s],f.setClipPath(new de({shape:A})),f.__rectSize=A[o]}else d.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&_e(c,{x:T.contentPosition[0],y:T.contentPosition[1]},y?t:null),this._updatePageInfoView(t,T),S},e.prototype._pageGo=function(t,n,a){var i=this._getPageInfo(n)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var a=this._controllerGroup;N(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",d?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",Ct(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=_w[o],l=ww[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],d=c.length,v=d?1:0,p={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var y=b(f);p.contentPosition[o]=-y.s;for(var _=u+1,g=y,h=y,w=null;_<=d;++_)w=b(c[_]),(!w&&h.e>g.s+i||w&&!S(w,g.s))&&(h.i>g.i?g=h:g=w,g&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=g.i),++p.pageCount)),h=w;for(var _=u-1,g=y,h=y,w=null;_>=-1;--_)w=b(c[_]),(!w||!S(h,w.s))&&g.i=T&&A.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(n=s)}),n!=null?n:i},e.type="legend.scroll",e}(Wk);function uK(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function cK(r){ae(Yk),r.registerComponentModel(sK),r.registerComponentView(lK),uK(r)}function fK(r){ae(Yk),ae(cK)}var hK=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=ao(Cf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Cf),bw=ve();function vK(r,e,t){bw(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function dK(r,e){for(var t=bw(r).coordSysRecordMap,n=t.keys(),a=0;an[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function _K(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=bw(t),a=n.coordSysRecordMap||(n.coordSysRecordMap=Et());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=ZP(i);N(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,pK(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Et());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){$k(a,i);return}var c=mK(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Wl(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var wK=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,n,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),vK(a,t,{pan:Lt(xw.pan,this),zoom:Lt(xw.zoom,this),scrollMove:Lt(xw.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){dK(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(j1),xw={zoom:function(r,e,t,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=Sw[e](null,[n.originX,n.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Us(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:qk(function(r,e,t,n,a,i){var o=Sw[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:qk(function(r,e,t,n,a,i){var o=Sw[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function qk(r){return function(e,t,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,n,a);if(Us(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Sw={grid:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,n,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function Kk(r){$1(r),r.registerComponentModel(hK),r.registerComponentView(wK),_K(r)}var bK=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ao(Cf.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Cf),Pf=de,Qk=7,xK=1,Aw=30,SK=7,kf="horizontal",Jk="vertical",AK=5,TK=["line","bar","candlestick","scatter"],CK={easing:"cubicOut",duration:100,delay:0},DK=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,n){this.api=n,this._onBrush=Lt(this._onBrush,this),this._onBrushEnd=Lt(this._onBrushEnd,this)},e.prototype.render=function(t,n,a,i){if(r.prototype.render.apply(this,arguments),Wl(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Pc(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 n=this._displayables.sliderGroup=new Ht;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,a=t.get("brushSelect"),i=a?SK:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===kf?{right:s.width-o.x-o.width,top:s.height-Aw-Qk-i,width:o.width,height:Aw}:{right:Qk,top:o.y,width:Aw,height:o.height},u=Rl(t.option);N(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===Jk&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===kf&&!o?{scaleY:l?1:-1,scaleX:1}:a===kf&&o?{scaleY:l?1:-1,scaleX:-1}:a===Jk&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=n.x-u.x,t.y=n.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new Pf({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Pf({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Lt(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var v=[0,n[1]],p=[0,n[0]],y=[[n[0],0],[0,0]],_=[],g=p[1]/(o.count()-1),h=0,w=Math.round(o.count()/n[0]),b;o.each([l],function(L,I){if(w>0&&I%w){h+=g;return}var P=L==null||isNaN(L)||L==="",E=P?0:Le(L,f,v,!0);P&&!b&&I?(y.push([y[y.length-1][0],0]),_.push([_[_.length-1][0],0])):!P&&b&&(y.push([h,0]),_.push([h,0])),y.push([h,E]),_.push([h,E]),h+=g,b=P}),u=this._shadowPolygonPts=y,c=this._shadowPolylinePts=_}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var S=this.dataZoomModel;function A(L){var I=S.getModel(L?"selectedDataBackground":"dataBackground"),P=new Ht,E=new Jr({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new tn({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(E),P.add(R),P}for(var T=0;T<3;T++){var D=A(T===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();N(l,function(u){if(!a&&!(n!==!0&&te(TK,u.get("type"))<0)){var c=i.getComponent(bo(o),s).axis,f=LK(o),d,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(d=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Pf({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Pf({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:xK,fill:"rgba(0,0,0,0)"}})),N([0,1],function(w){var b=l.get("handleIcon");!Fv[b]&&b.indexOf("path://")<0&&b.indexOf("image://")<0&&(b="path://"+b,process.env.NODE_ENV!=="production"&&da("handleIcon now needs 'path://' prefix when using a path string"));var S=sr(b,-1,0,2,2,null,!0);S.attr({cursor:tR(this._orient),draggable:!0,drift:Lt(this._onDragMove,this,w),ondragend:Lt(this._onDragEnd,this),onmouseover:Lt(this._showDataInfo,this,!0),onmouseout:Lt(this._showDataInfo,this,!1),z2:5});var A=S.getBoundingRect(),T=l.get("handleSize");this._handleHeight=At(T,this._size[1]),this._handleWidth=A.width/A.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),us(S);var D=l.get("handleColor");D!=null&&(S.style.fill=D),o.add(a[w]=S);var L=l.getModel("textStyle"),I=l.get("handleLabel")||{},P=I.show||!1;t.add(i[w]=new pe({silent:!0,invisible:!P,style:Be(L,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:L.getTextColor(),font:L.getFont()}),z2:10}))},this);var v=d;if(f){var p=At(l.get("moveHandleSize"),s[1]),y=n.moveHandle=new de({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),_=p*.8,g=n.moveHandleIcon=sr(l.get("moveHandleIcon"),-_/2,-_/2,_,_,"#fff",!0);g.silent=!0,g.y=s[1]+p/2-.5,y.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var h=Math.min(s[1]/2,Math.max(p,10));v=n.moveZone=new de({invisible:!0,shape:{y:s[1]-h,height:p+h}}),v.on("mouseover",function(){u.enterEmphasis(y)}).on("mouseout",function(){u.leaveEmphasis(y)}),o.add(y),o.add(g),o.add(v)}v.attr({draggable:!0,cursor:tR(this._orient),drift:Lt(this._onDragMove,this,"all"),ondragstart:Lt(this._showDataInfo,this,!0),ondragend:Lt(this._onDragEnd,this),onmouseover:Lt(this._showDataInfo,this,!0),onmouseout:Lt(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Le(t[0],[0,100],n,!0),Le(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Us(n,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?Le(s.minSpan,l,o,!0):null,s.maxSpan!=null?Le(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=zn([Le(i[0],o,l,!0),Le(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var n=this._displayables,a=this._handleEnds,i=zn(a.slice()),o=this._size;N([0,1],function(v){var p=n.handles[v],y=this._handleHeight;p.attr({scaleX:y/2,scaleY:y/2,x:a[v]+(v?-1:1),y:o[1]/2-y/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cn[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,a=t.offsetY;this._brushStart=new Qt(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=zn([Le(a.x,o,s,!0),Le(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(si(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Pf({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?CK:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=ZP(this.dataZoomModel).infoList;if(!t&&n.length){var a=n[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(j1);function LK(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function tR(r){return r==="vertical"?"ns-resize":"ew-resize"}function eR(r){r.registerComponentModel(bK),r.registerComponentView(DK),$1(r)}function MK(r){ae(Kk),ae(eR)}var rR={get:function(r,e,t){var n=Wt((IK[r]||{})[e]);return t&&ft(n)?n[n.length-1]:n}},IK={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]}},nR=br.mapVisual,EK=br.eachVisual,PK=ft,aR=N,kK=zn,RK=Le,fp=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&bk(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=Lt(t,this),this.controllerVisuals=aw(this.option.controller,n,t),this.targetVisuals=aw(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=Pe(t),n},e.prototype.eachTargetSeries=function(t,n){N(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(n,i)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(a){a===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],ft(t)&&(t=t.slice(),u=!0);var c=n?t:u?[f(t[0]),f(t[1])]:f(t);if(Ct(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Rt(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=kK([t.min,t.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(t){var n=this.option.dimension;if(n!=null)return t.getDimensionIndex(n);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});qt(i,a),qt(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){PK(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:t.get("gradientColor")}}function u(f,d,v){var p=f[d],y=f[v];p&&!y&&(y=f[v]={},aR(p,function(_,g){if(br.isValidType(g)){var h=rR.get(g,"inactive",s);h!=null&&(y[g]=h,g==="color"&&!y.hasOwnProperty("opacity")&&!y.hasOwnProperty("colorAlpha")&&(y.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),y=this.getItemSymbol(),_=y||"roundRect";aR(this.stateList,function(g){var h=this.itemSize,w=f[g];w||(w=f[g]={color:s?p:[p]}),w.symbol==null&&(w.symbol=d&&Wt(d)||(s?_:[_])),w.symbolSize==null&&(w.symbolSize=v&&Wt(v)||(s?h[0]:[h[0],h[0]])),w.symbol=nR(w.symbol,function(A){return A==="none"?_:A});var b=w.symbolSize;if(b!=null){var S=-1/0;EK(b,function(A){A>S&&(S=A)}),w.symbolSize=nR(b,function(A){return RK(A,[0,S],[0,h[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(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}(le),iR=[20,140],NK=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=iR[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=iR[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):ft(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),N(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=zn((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]=a[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},e.prototype.getVisualMeta=function(t){var n=oR(this,"outOfRange",this.getExtent()),a=oR(this,"inRange",this.option.range.slice()),i=[];function o(v,p){i.push({value:v,color:t(v,p)})}for(var s=0,l=0,u=a.length,c=n.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),i},e.prototype._createBarPoints=function(t,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,a=this.visualMapModel.get("inverse");return new Ht(n==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent(),c=this._applyTransform("left",a.mainGroup);OK([0,1],function(f){var d=o[f];d.setStyle("fill",n.handlesColor[f]),d.y=t[f];var v=Qa(t[f],[0,l[1]],u,!0),p=this.getControllerVisual(v,"symbolSize");d.scaleX=d.scaleY=p/l[0],d.x=l[0]-p/2;var y=ma(a.handleLabelPoints[f],ds(d,this.group));if(this._orient==="horizontal"){var _=c==="left"||c==="top"?(l[0]-p)/2:(l[0]-p)/-2;y[1]+=_}s[f].setStyle({x:y[0],y:y[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",d),p=this.getControllerVisual(t,"symbolSize"),y=Qa(t,s,u,!0),_=l[0]-p/2,g={x:f.x,y:f.y};f.y=y,f.x=_;var h=ma(c.indicatorLabelPoint,ds(f,this.group)),w=c.indicatorLabel;w.attr("invisible",!1);var b=this._applyTransform("left",c.mainGroup),S=this._orient,A=S==="horizontal";w.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:A?b:"middle",align:A?"center":b});var T={x:_,y,style:{fill:v}},D={style:{x:h[0],y:h[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var L={duration:100,easing:"cubicInOut",additive:!0};f.x=g.x,f.y=g.y,f.animateTo(T,L),w.animateTo(D,L)}else f.attr(T),w.attr(D);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,v=[];(n||hR(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var p=U3(d,v);this._dispatchHighDown("downplay",hp(p[0],a)),this._dispatchHighDown("highlight",hp(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(Ss(t.target,function(l){var u=Zt(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function UK(r,e,t,n){for(var a=e.targetVisuals[n],i=br.prepareVisualTypes(a),o={color:Nc(r.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(GK,WK),N(HK,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(ZK))}function yR(r){r.registerComponentModel(NK),r.registerComponentView(VK),gR(r)}var YK=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],XK[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Wt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=ht(this._pieceList,function(l){return l=Wt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},a=br.listVisualTypes(),i=this.isCategory();N(t.pieces,function(s){N(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),N(n,function(s,l){var u=!1;N(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&N(this.stateList,function(c){(t[c]||(t[c]={}))[l]=rR.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,n){var a=this.option,i=this._pieceList,o=(n?a:t).selected||{};if(a.selected=o,N(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;N(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?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=Wt(t)},e.prototype.getValueState=function(t){var n=br.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=br.findPieceIndex(l,a);c===t&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var a=t.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var v=t(d,f);c[0]===-1/0?a[0]=v:c[1]===1/0?a[1]=v:n.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return N(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=ao(fp.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}(fp),XK={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];oo[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=br.retrieveVisuals(t),r.push(a)},this),mR(e,r),gS(r),N(r,function(t){var n=t.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function mR(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var jK=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=nr(n.get("showLabel",!0),!f),v=!n.get("selectedMode");f&&this._renderEndsText(t,f[0],u,d,l),N(c.viewPieceList,function(p){var y=p.piece,_=new Ht;_.onclick=Lt(this._onItemClick,this,y),this._enableHoverLink(_,p.indexInModelPieceList);var g=n.getRepresentValue(y);if(this._createItemSymbol(_,g,[0,0,u[0],u[1]],v),d){var h=this.visualMapModel.getValueState(g);_.add(new pe({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:y.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:h==="outOfRange"?.5:1},silent:v}))}t.add(_)},this),f&&this._renderEndsText(t,f[1],u,d,l),_s(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:hp(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return uR(t,this.api,t.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,n,a,i,o){if(n){var s=new Ht,l=this.visualMapModel.textStyleModel;s.add(new pe({style:Be(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=ht(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},e.prototype._createItemSymbol=function(t,n,a,i){var o=sr(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=Wt(a.selected),s=n.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,N(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(sR);function _R(r){r.registerComponentModel(YK),r.registerComponentView(jK),gR(r)}function $K(r){ae(yR),ae(_R)}var qK={label:{enabled:!0},decal:{show:!1}},wR=ve(),KK={};function QK(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var n=Wt(qK);qt(n.label,r.getLocaleModel().get("aria"),!1),qt(t.option,n,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var f=Et();r.eachSeries(function(d){if(!d.isColorBySeries()){var v=f.get(d.type);v||(v={},f.set(d.type,v)),wR(d).scope=v}}),r.eachRawSeries(function(d){if(r.isSeriesFiltered(d))return;if(Rt(d.enableAriaDecal)){d.enableAriaDecal();return}var v=d.getData();if(d.isColorBySeries()){var h=Am(d.ecModel,d.name,KK,r.getSeriesCount()),w=v.getVisual("decal");v.setVisual("decal",b(w,h))}else{var p=d.getRawData(),y={},_=wR(d).scope;v.each(function(S){var A=v.getRawIndex(S);y[A]=S});var g=p.count();p.each(function(S){var A=y[S],T=p.getName(S)||S+"",D=Am(d.ecModel,T,_,g),L=v.getItemVisual(A,"decal");v.setItemVisual(A,"decal",b(L,D))})}function b(S,A){var T=S?lt(lt({},A),S):A;return T.dirty=!0,T}})}}function i(){var u=e.getZr().dom;if(u){var c=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=Ft(f.option,c),!!f.get("enabled")){if(u.setAttribute("role","img"),f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,p=f.get(["series","maxCount"])||10,y=Math.min(d,p),_;if(!(d<1)){var g=s();if(g){var h=f.get(["general","withTitle"]);_=o(h,{title:g})}else _=f.get(["general","withoutTitle"]);var w=[],b=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);_+=o(b,{seriesCount:d}),r.eachSeries(function(D,L){if(L1?f.get(["series","multiple",E]):f.get(["series","single",E]),I=o(I,{seriesId:D.seriesIndex,seriesName:D.get("name"),seriesType:l(D.subType)});var R=D.getData();if(R.count()>v){var M=f.get(["data","partialData"]);I+=o(M,{displayCnt:v})}else I+=f.get(["data","allData"]);for(var B=f.get(["data","separator","middle"]),F=f.get(["data","separator","end"]),W=f.get(["data","excludeDimensionId"]),j=[],H=0;H":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},eQ=function(){function r(e){var t=this._condVal=Ct(e)?new RegExp(e):ux(e)?e:null;if(t==null){var n="";process.env.NODE_ENV!=="production"&&(n=$r("Illegal regexp",e,"in")),Te(n)}}return r.prototype.evaluate=function(e){var t=typeof e;return Ct(t)?this._condVal.test(e):ye(t)?this._condVal.test(e+""):!1},r}(),rQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),nQ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&n.push(a),a=[R,M]}function c(R,M,B,F){gu(R,B)&&gu(M,F)||a.push(R,M,B,F,B,F)}function f(R,M,B,F,W,j){var H=Math.abs(M-R),K=Math.tan(H/4)*4/3,U=MD:P2&&n.push(a),n}function Mw(r,e,t,n,a,i,o,s,l,u){if(gu(r,t)&&gu(e,n)&&gu(a,o)&&gu(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-r,v=s-e,p=Math.sqrt(d*d+v*v);d/=p,v/=p;var y=t-r,_=n-e,g=a-o,h=i-s,w=y*y+_*_,b=g*g+h*h;if(w=0&&D=0){l.push(o,s);return}var L=[],I=[];ji(r,t,a,o,.5,L),ji(e,n,i,s,.5,I),Mw(L[0],I[0],L[1],I[1],L[2],I[2],L[3],I[3],l,u),Mw(L[4],I[4],L[5],I[5],L[6],I[6],L[7],I[7],l,u)}function yQ(r,e){var t=Lw(r),n=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),f=AR([l,u],c?0:1,e),d=(c?s:u)/f.length,v=0;va,o=AR([n,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=r[s]/o.length,d=0;d1?null:new Qt(y*l+r,y*u+e)}function wQ(r,e,t){var n=new Qt;Qt.sub(n,t,e),n.normalize();var a=new Qt;Qt.sub(a,r,e);var i=a.dot(n);return i}function yu(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function bQ(r,e,t){for(var n=r.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),bQ(e,u,c)}function vp(r,e,t,n){if(t===1)n.push(e);else{var a=Math.floor(t/2),i=r(e);vp(r,i[0],a,n),vp(r,i[1],t-a,n)}return n}function xQ(r,e){for(var t=[],n=0;n0;u/=2){var c=0,f=0;(r&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function gp(r){var e=1/0,t=1/0,n=-1/0,a=-1/0,i=ht(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(f,t),n=Math.max(c,n),a=Math.max(f,a),[c,f]}),o=ht(i,function(s,l){return{cp:s,z:EQ(s[0],s[1],e,t,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function kR(r){return TQ(r.path,r.count)}function Ew(){return{fromIndividuals:[],toIndividuals:[],count:0}}function PQ(r,e,t){var n=[];function a(S){for(var A=0;A=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var RQ={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;RR(r)&&(u=r,c=e),RR(e)&&(u=e,c=r);function f(g,h,w,b,S){var A=g.many,T=g.one;if(A.length===1&&!S){var D=h?A[0]:T,L=h?T:A[0];if(dp(D))f({many:[D],one:L},!0,w,b,!0);else{var I=s?Ft({delay:s(w,b)},l):l;Iw(D,L,I),i(D,L,D,L,I)}}else for(var P=Ft({dividePath:RQ[t],individualDelay:s&&function(W,j,H,K){return s(W+w,b)}},l),E=h?PQ(A,T,P):kQ(T,A,P),R=E.fromIndividuals,M=E.toIndividuals,B=R.length,F=0;Fe.length,v=u?NR(c,u):NR(d?e:r,[d?r:e]),p=0,y=0;yOR){process.env.NODE_ENV!=="production"&&Ye("Universal transition is disabled on large data > 10k.");return}for(var i=n.getIndices(),o=0;o0&&A.group.traverse(function(D){D instanceof oe&&!D.animators.length&&D.animateFrom({style:{opacity:0}},T)})})}function WR(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function HR(r){return ft(r)?r.sort().join(","):r}function So(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function GQ(r,e){var t=Et(),n=Et(),a=Et();N(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],c=WR(o),f=HR(c);n.set(f,{dataGroupId:l,data:u}),ft(c)&&N(c,function(d){a.set(d,{key:f,dataGroupId:l,data:u})})});function i(o){t.get(o)&&Ye("Duplicated seriesKey in universalTransition "+o)}return N(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=WR(o),c=HR(u),f=n.get(c);if(f)process.env.NODE_ENV!=="production"&&i(c),t.set(c,{oldSeries:[{dataGroupId:f.dataGroupId,divide:So(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:So(l),data:l}]});else if(ft(u)){process.env.NODE_ENV!=="production"&&i(c);var d=[];N(u,function(y){var _=n.get(y);_.data&&d.push({dataGroupId:_.dataGroupId,divide:So(_.data),data:_.data})}),d.length&&t.set(c,{oldSeries:d,newSeries:[{dataGroupId:s,data:l,divide:So(l)}]})}else{var v=a.get(u);if(v){var p=t.get(v.key);p||(p={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:So(v.data)}],newSeries:[]},t.set(v.key,p)),p.newSeries.push({dataGroupId:s,data:l,divide:So(l)})}}}}),t}function UR(r,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:So(e.oldData[s]),groupIdDim:o.dimension})}),N(Pe(r.to),function(o){var s=UR(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:So(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&GR(a,i,n)}function HQ(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){N(Pe(n.seriesTransition),function(a){N(Pe(a.to),function(i){for(var o=n.updatedSeries,s=0;s/= `,c=0;return yp=1,ZR(function f(){for(var d=[];r[c];){if(r.charCodeAt(c)==e){if(r.charCodeAt(c+1)===a)return c=r.indexOf(">",c),d;if(r.charCodeAt(c+1)===i){if(r.charCodeAt(c+2)==n){for(;r.charCodeAt(c)!==t||r.charCodeAt(c-1)!=n||r.charCodeAt(c-2)!=n||c==-1;)c=r.indexOf(">",c+1);c===-1&&(c=r.length)}else for(c+=2;r.charCodeAt(c)!==t;c++);c++;continue}if(r.charCodeAt(c+1)===l){c=r.indexOf(">",c),c++;continue}for(var v=++c;u.indexOf(r[c])===-1;c++);for(var p=r.slice(v,c),y=!1,_={};r.charCodeAt(c)!==t;c++){var g=r.charCodeAt(c);if(g>64&&g<91||g>96&&g<123){for(v=c;u.indexOf(r[c])===-1;c++);for(var h=r.slice(v,c),w=r.charCodeAt(c);w!==o&&w!==s;)c++,w=r.charCodeAt(c);var b=r[c],S=++c;c=r.indexOf(b,S);var A=r.slice(S,c);y||(_={},y=!0),_[h]=A}}var T=[];r.charCodeAt(c-1)!==a&&(c++,T=f()),d.push({children:T,tagName:p,attrs:_})}else{var D=c;(c=r.indexOf("<",c)-1)===-2&&(c=r.length);var L=r.slice(D,c+1);L.length>0&&d.push(L)}c++}return d}())}function ZR(r){var e={};if(r===void 0)return{};if(r.length===1&&typeof r[0]=="string")return r[0];for(var t in r.forEach(function(n){if(e[n.tagName]||(e[n.tagName]=[]),typeof n=="object"){var a=ZR(n.children);typeof a=="object"&&(n.attrs&&(a.attrs=n.attrs),a.attrs===void 0?a.attrs={order:yp}:a.attrs.order=yp),yp++,e[n.tagName].push(a)}}),e)e[t].length==1&&(e[t]=e[t][0]);return e}function be(r){return r/12700}function mp(r){return r/100}function _p(r){return r/6e4}function Ao(r){return r/1e5}function Nw(r){var e=Math.ceil(r/26),t=(r%26||26)-1+65;return String.fromCharCode(t).repeat(e)}function Ke(r,e,t){var n={type:"solidFill"};if(r["a:srgbClr"])n.color="#"+r["a:srgbClr"].attrs.val;else if(r["a:schemeClr"]){var a=r["a:schemeClr"].attrs.val;t&&(a=t.getColorThemeName(a)),n.color=e.getColor(a)}else if(r["a:sysClr"])n.color="#"+r["a:sysClr"].attrs.lastClr;else if(r["a:prstClr"]){var i=Y.get(r["a:prstClr"],["attrs","val"]);n.color=function(d){var v,p=["white","AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"],y=["ffffff","f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"],_=p.indexOf(d);return _!=-1&&(v=y[_]),"#".concat(v||"000000")}(i)}var o=r["a:srgbClr"]||r["a:schemeClr"]||r["a:sysClr"],s=Y.get(o,["a:alpha","attrs","val"],1e5);n.alpha=s/1e5;var l=Y.get(o,["a:shade","attrs","val"]);l&&(n.shade=l/1e5);var u=Y.get(o,["a:lumMod","attrs","val"]);u&&(n.lumMod=u/1e5);var c=Y.get(o,["a:lumOff","attrs","val"]);c&&(n.lumOff=c/1e5);var f=Y.get(o,["a:tint","attrs","val"]);return f&&(n.tint=f/1e5),n}function Nf(r,e,t){var n,a={type:"blipFill"},i=Y.get(r,["a:blip","attrs","r:embed"]);if(i){var o=(n=t.rels[i])===null||n===void 0?void 0:n.target;o&&(a.base64=e.getMedia(o))}var s=Y.get(r,["a:blip","a:alphaModFix","attrs","amt"]);s&&(a.alpha=s/1e5);var l=Y.get(r,["a:stretch","a:fillRect","attrs"]);return l&&(a.fillRect={},l.b&&(a.fillRect.b=l.b/1e5),l.t&&(a.fillRect.t=l.t/1e5),l.r&&(a.fillRect.r=l.r/1e5),l.l&&(a.fillRect.l=l.l/1e5)),a}function Of(r,e,t){var n={type:"gradFill",tileRect:{},lin:{},gsList:[]};n.flip=r.attrs.flip,n.path=Y.get(r,["a:path","attrs","path"])||"linear",n.rotWithShape=r.attrs.rotWithShape==="1",Y.get(r,["a:lin","attrs","ang"])&&(n.lin.ang=_p(r["a:lin"].attrs.ang)),Y.get(r,["a:lin","attrs","scaled"])&&(n.lin.scaled=r["a:lin"].attrs.scaled==="1");var a=Y.get(r,["a:gsLst","a:gs"])||[];return n.gsList=a.map(function(i){return{color:Ke(i,e,t),pos:Ao(i.attrs.pos)}}),Y.get(r,["a:tileRect","attrs","l"])&&(n.tileRect.l=Ao(r["a:tileRect"].attrs.l)),Y.get(r,["a:tileRect","attrs","t"])&&(n.tileRect.t=Ao(r["a:tileRect"].attrs.t)),Y.get(r,["a:tileRect","attrs","r"])&&(n.tileRect.r=Ao(r["a:tileRect"].attrs.r)),Y.get(r,["a:tileRect","attrs","b"])&&(n.tileRect.b=Ao(r["a:tileRect"].attrs.b)),n}function Ow(r){return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function Bw(r){return r<.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055}function YR(r,e){var t=r[0],n=r[1],a=r[2],i=Ow(t/255)*e,o=Ow(n/255)*e,s=Ow(a/255)*e;return[Math.round(255*Bw(i)),Math.round(255*Bw(o)),Math.round(255*Bw(s))]}function zw(r,e,t){var n=r/255,a=e/255,i=t/255,o=Math.max(n,a,i),s=Math.min(n,a,i),l=o-s,u=0,c=(o+s)/2;return l===0?u=0:o===n?u=(a-i)/l%6:o===a?u=(i-n)/l+2:o===i&&(u=(n-a)/l+4),(u=Math.round(60*u))<0&&(u+=360),{h:u,s:l===0||c===0||c===1?0:l/(1-Math.abs(2*c-1)),l:c}}function Vw(r,e,t){var n,a,i,o=(1-Math.abs(2*t-1))*e,s=o*(1-Math.abs(r/60%2-1)),l=t-o/2;return r<60?(n=o,a=s,i=0):r<120?(n=s,a=o,i=0):r<180?(n=0,a=o,i=s):r<240?(n=0,a=s,i=o):r<300?(n=s,a=0,i=o):(n=o,a=0,i=s),[n=Math.round(255*(n+l)),a=Math.round(255*(a+l)),i=Math.round(255*(i+l))]}function Ie(r,e){if(!r||r.type==="none")return"";if(r.type==="solidFill"&&/^#[\da-fA-F]{3,6}$/.test(r.color)){var t=parseInt(r.color.substr(1,2),16),n=parseInt(r.color.substr(3,2),16),a=parseInt(r.color.substr(5,2),16);if(r.shade){var i=YR([t,n,a],r.shade);t=i[0],n=i[1],a=i[2]}if(r.lumMod){var o=function(c,f,d,v){var p=zw(c,f,d),y=p.h,_=p.l*v;return _>=1&&(_=1),Vw(y,p.s,_)}(t,n,a,r.lumMod);t=o[0],n=o[1],a=o[2]}if(r.lumOff&&(o=function(c,f,d,v){var p=zw(c,f,d),y=p.h,_=v+p.l;return _>1&&(_=1),Vw(y,p.s,_)}(t,n,a,r.lumOff),t=o[0],n=o[1],a=o[2]),r.tint||e!=null&&e.light){var s=function(c,f,d,v){var p=zw(c,f,d),y=p.h,_=p.l;return v>=1&&(v=1),Vw(y,p.s,_*v+(1-v))}(t,n,a,r.tint||(e==null?void 0:e.light));t=s[0],n=s[1],a=s[2]}if(e!=null&&e.dark){var l=YR([t,n,a],e==null?void 0:e.dark);t=l[0],n=l[1],a=l[2]}var u=r.alpha;return"rgba(".concat(t,",").concat(n,",").concat(a,",").concat(u,")")}}var Bf=function(){function r(e,t,n){this.uuid=H5(),this.offset={x:0,y:0},this.extend={w:0,h:0},this.rotate=0,this.order=0,this.flipV=!1,this.flipH=!1,this.source=e,this.ctx=t,this.group=n;var a=Y.get(e,["p:nvSpPr","p:nvPr"]);if(a){var i=Y.get(a,"p:ph");i&&i.attrs&&(this.idx=i.attrs.idx,this.type=i.attrs.type),Y.get(a,["attrs","userDrawn"])&&(this.userDrawn=Y.get(a,["attrs","userDrawn"])==="1")}if(this.order=Y.get(e,"attrs.order",0),this.source["p:spPr"])(o=this.getXfrm())&&(this.offset={x:Math.round(be(parseInt(o["a:off"].attrs.x))),y:Math.round(be(parseInt(o["a:off"].attrs.y)))},this.extend={w:Math.round(be(parseInt(o["a:ext"].attrs.cx))),h:Math.round(be(parseInt(o["a:ext"].attrs.cy||"0")))},this.rotate=_p(parseInt(Y.get(o,"attrs.rot",0))),this.flipV=Y.get(o,"attrs.flipV")==="1",this.flipH=Y.get(o,"attrs.flipH")==="1");else if(this.source["p:xfrm"]){var o=this.source["p:xfrm"];this.offset={x:Math.round(be(parseInt(o["a:off"].attrs.x))),y:Math.round(be(parseInt(o["a:off"].attrs.y)))},this.extend={w:Math.round(be(parseInt(o["a:ext"].attrs.cx))),h:Math.round(be(parseInt(o["a:ext"].attrs.cy)))}}if(n){var s=n.extend,l=n.chExtend,u=n.chOffset,c=l.w===0?0:s.w/l.w,f=l.h===0?0:s.h/l.h;this.extend.w=this.extend.w*c,this.extend.h=this.extend.h*f,this.offset.x=(this.offset.x-u.x)*c,this.offset.y=(this.offset.y-u.y)*f}}return Object.defineProperty(r.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),r.prototype.getColorThemeName=function(e){return this.ctx.getColorThemeName(e)},r.prototype.getXfrm=function(){var e=this.source["p:spPr"]["a:xfrm"];return e||(this.idx?e=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(e=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),e},r}(),UQ=function(){function r(e,t){this.props={},this.inheritProps={},this.source=e,this.node=t,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return r.prototype._getInheritBodyProps=function(){var e,t=this.node.ctx,n=this.node.type,a=this.node.idx;if(n||a)switch(t.slideType){case"slideMaster":break;case"slideLayout":(e=n?t.slideMaster.getNodeByType(n):t.slideMaster.getNodeByIdx(a))&&(this.inheritProps=Y.get(e,["textBody","props"])||{});break;case"slide":(e=n?t.slideLayout.slideMaster.getNodeByType(n):t.slideLayout.slideMaster.getNodeByIdx(a))&&Object.assign(this.inheritProps,Y.get(e,["textBody","props"])||{}),(e=n?t.slideLayout.getNodeByType(n):t.slideLayout.getNodeByIdx(a))&&Object.assign(this.inheritProps,Y.get(e,["textBody","props"])||{})}},r.prototype._parseBodyProps=function(){var e=this,t=Y.get(this.source,["a:bodyPr","attrs"])||{};Object.keys(t).forEach(function(o){switch(o){case"anchor":e.props.anchor=t[o];break;case"rtlCol":e.props.rtlCol=t[o]==="1";break;case"lIns":case"rIns":case"tIns":case"bIns":e.props[o]=be(parseInt(t[o]));break;case"order":break;default:e.props[o]=t[o]}});var n=Y.get(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(n){this.props.normAutofit={};var a=n.fontScale;a&&(this.props.normAutofit.fontScale=Ao(parseInt(a)));var i=n.lnSpcReduction;i&&(this.props.normAutofit.lnSpcReduction=Ao(parseInt(i)))}},r.prototype._parseLstStyle=function(){var e=this,t={},n=Y.get(this.source,"a:lstStyle")||{};Object.keys(n).forEach(function(a){if(a.startsWith("a:")&&a.endsWith("pPr")){var i=a.substr(2,a.length-5);t[i]={props:e._formatPPr(n[a])};var o=Y.get(n[a],["a:defRPr"]);t[i].defRPr=e._formatRPr(o)}}),this.lstStyle=t},r.prototype._parseText=function(){var e=this,t=Y.get(this.source,["a:p"])||[];Array.isArray(t)||(t=[t]),this.paragraphs=t.map(function(n){return e._parseParagraph(n)})},r.prototype._parseParagraph=function(e){var t=this,n={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},a=Y.get(e,["a:pPr"])||{};n.props=this._formatPPr(a);var i=Y.get(e,["a:endParaRPr"]);n.endParaRProps=this._formatRPr(i);var o=Y.get(e,["a:r"])||[];Array.isArray(o)||(o=[o]);var s=Y.get(e,["a:br"])||[];return Array.isArray(s)||(s=[s]),(o=o.concat(s.map(function(l){return It({isBr:!0},l)}))).sort(function(l,u){return Y.get(l,["attrs","order"])-Y.get(u,["attrs","order"])}),n.rows=o.map(function(l){return t._parseRow(l)}),n.inheritProps=this._getInheritPProps(n.props.level),n.inheritRProps=this._getInheritRProps(n.props.level),n},r.prototype._getInheritPProps=function(e){e===void 0&&(e="0");var t,n={},a=this.node.ctx,i=this.node.type,o=this.node.idx;switch(a.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,Y.get(a.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(n,Y.get(a,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,Y.get(a.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(n,Y.get(a.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{}),(i||o)&&(t=i?a.slideMaster.getNodeByType(i):a.slideMaster.getNodeByIdx(o))&&Object.assign(n,Y.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,Y.get(a.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(n,Y.get(a.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{}),(i||o)&&(["subTitle","ctrTitle","title"].includes(i)&&Object.assign(n,Y.get(a.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(e?+e+1:1),"props"])||{}),(t=i?a.slideLayout.slideMaster.getNodeByType(i):a.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(n,Y.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{}),(t=i?a.slideLayout.getNodeByType(i):a.slideLayout.getNodeByIdx(o))&&Object.assign(n,Y.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{}))}return n},r.prototype._getInheritRProps=function(e){e===void 0&&(e="0");var t,n={},a=this.node.ctx,i=this.node.type,o=this.node.idx;switch(a.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,Y.get(a.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(n,Y.get(a,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,Y.get(a.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(n,Y.get(a.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(i||o)&&(t=i?a.slideMaster.getNodeByType(i):a.slideMaster.getNodeByIdx(o))&&(n=Y.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,Y.get(a.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(n,Y.get(a.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(i||o)&&(["subTitle","ctrTitle","title"].includes(i)&&Object.assign(n,Y.get(a.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(t=i?a.slideLayout.slideMaster.getNodeByType(i):a.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(n,Y.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(t=i?a.slideLayout.getNodeByType(i):a.slideLayout.getNodeByIdx(o))&&Object.assign(n,Y.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}))}var s=Y.get(this.node.source,["p:style","a:fontRef"]);return Y.get(s,"a:schemeClr")&&(n.color=Ke(s,this.node.theme,this.node)),Y.get(this.lstStyle,["lvl".concat(e?+e+1:1),"defRPr"])&&Object.assign(n,Y.get(this.lstStyle,["lvl".concat(e?+e+1:1),"defRPr"])),n},r.prototype._formatPPr=function(e){var t={},n=Y.get(e,"attrs")||{};return Object.keys(n).forEach(function(a){switch(a){case"algn":t.align=n[a];break;case"marL":t.marginLeft=be(parseInt(n[a]));break;case"indent":t.indent=be(parseInt(n[a]));break;case"lvl":t.level=n[a]}}),Y.get(e,["a:lnSpc","a:spcPct","attrs","val"])&&(t.lineHeight=parseInt(e["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),Y.get(e,["a:buAutoNum","attrs","type"])&&(t.buAutoNum=e["a:buAutoNum"].attrs.type),Y.get(e,["a:buChar","attrs","char"])&&(t.buChar=e["a:buChar"].attrs.char),Y.get(e,["a:spcBef","a:spcPts","attrs","val"])&&(t.spaceBefore=mp(parseInt(e["a:spcBef"]["a:spcPts"].attrs.val))),Y.get(e,["a:spcAft","a:spcPts","attrs","val"])&&(t.spaceAfter=mp(parseInt(e["a:spcAft"]["a:spcPts"].attrs.val))),t},r.prototype._parseRow=function(e){if(e.isBr)return{isBr:!0};var t={props:{},text:""},n=Y.get(e,["a:rPr"])||{};return t.props=this._formatRPr(n),t.text=Y.get(e,"a:t")||"",t},r.prototype._formatRPr=function(e){var t={},n=Y.get(e,"attrs")||{};Object.keys(n).forEach(function(o){switch(o){case"sz":t.size=parseInt(n[o])/100;break;case"b":t.bold=n[o]==="1";break;case"i":t.italic=n[o]==="1";break;case"u":t.underline=n[o];break;case"strike":t.strike=n[o];break;case"order":case"dirty":break;default:t[o]=n[o]}});var a=Y.get(e,"a:solidFill");a&&(t.color=Ke(a,this.node.theme,this.node));var i=Y.get(e,"a:highlight");return i&&(t.background=Ke(i,this.node.theme,this.node)),t.typeface=Y.get(e,["a:ea","attrs","typeface"]),t},r}();function _u(r,e,t){var n={};if(!Y.get(r,"a:noFill")){Y.get(r,"attrs.w")&&(n.width=be(parseInt(Y.get(r,"attrs.w"))));var a=Y.get(r,"a:solidFill");a&&(n.color=Ke(a,e,t));var i=Y.get(r,"a:prstDash");if(i&&(n.type=i.attrs.val),Y.get(r,["a:miter"])&&(n.lineJoin="miter"),Y.get(r,["a:bevel"])&&(n.lineJoin="bevel"),Y.get(r,["a:round"])&&(n.lineJoin="round"),Y.get(r,["a:miter","attrs","lim"])&&(n.miterLim=be(parseInt(Y.get(r,["a:miter","attrs","lim"])))),Y.get(r,["a:headEnd"])){var o=Y.get(r,["a:headEnd","attrs"]);n.headEnd={type:o.type,len:o.len,w:o.w}}if(Y.get(r,["a:tailEnd"])){var s=Y.get(r,["a:tailEnd","attrs"]);n.tailEnd={type:s.type,len:s.len,w:s.w}}return n}}var zf=function(r){function e(t,n,a,i){var o=r.call(this,t,a,i)||this;return o.border={},o.prstGeom={},o.isTextBox=!1,o.pptx=n,o._parseShape(),o._parIsTextBox(),o._parsePrstGeom(),o._parseBackground(),o._parseBorder(),o._parseTxt(),o}return Nu(e,r),e.prototype._parseShape=function(){if(this.shape=Y.get(this.source,["p:spPr","a:prstGeom","attrs","prst"]),!this.shape&&Y.get(this.source,["p:spPr","a:custGeom"])){this.shape="customGeom";var t=Y.get(this.source,["p:spPr","a:custGeom","a:pathLst","a:path"]),n=[],a=[],i=function(s){switch(s){case"a:moveTo":case"a:cubicBezTo":case"a:lnTo":a=Array.isArray(t[s])?t[s]:[t[s]],n=n.concat(a.map(function(l){return{order:l.attrs.order,type:s.split(":")[1],points:(Array.isArray(l["a:pt"])?l["a:pt"]:[l["a:pt"]]).map(function(u){return[be(parseInt(Y.get(u,["attrs","x"]))),be(parseInt(Y.get(u,["attrs","y"])))]})}}));break;case"a:close":a=Array.isArray(t[s])?t[s]:[t[s]],n=n.concat(a.map(function(l){return{order:l.attrs.order,type:s.split(":")[1]}}))}};for(var o in t)i(o);n.sort(function(s,l){return s.order-l.order}),this.prstGeom.pathList=n,Y.get(t,["attrs","w"])&&(this.prstGeom.w=be(parseInt(Y.get(t,["attrs","w"])))),Y.get(t,["attrs","h"])&&(this.prstGeom.h=be(parseInt(Y.get(t,["attrs","h"]))))}},e.prototype._parIsTextBox=function(){this.isTextBox=Y.get(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"},e.prototype._parsePrstGeom=function(){var t=this,n=Y.get(this.source,["p:spPr","a:prstGeom"]),a=Y.get(n,["a:avLst","a:gd"]);a&&(Array.isArray(a)||(a=[a]),this.prstGeom.gd=a.map(function(i){var o=["pie","chord","arc"].includes(t.shape)||["blockArc"].includes(t.shape)&&["adj1","adj2"].includes(i.attrs.name)?_p(parseInt(i.attrs.fmla.split(" ")[1])):Ao(parseInt(i.attrs.fmla.split(" ")[1]));return{name:i.attrs.name,fmla:o}}))},e.prototype._parseBackground=function(){if(!Y.get(this.source,["p:spPr","a:noFill"]))if(Y.get(this.source,["p:spPr","a:grpFill"])&&this.group)this.background=this.group.getBackground();else{var t=Y.get(this.source,["p:spPr","a:solidFill"]);if(t)this.background=Ke(t,this.theme,this);else{var n=Y.get(this.source,["p:spPr","a:gradFill"]);if(n)this.background=Of(n,this.theme,this);else{var a=Y.get(this.source,["p:spPr","a:blipFill"]);if(a)this.background=Nf(a,this.pptx,this.ctx);else{var i=Y.get(this.source,["p:style","a:fillRef"]);i&&(this.background=Ke(i,this.theme,this))}}}}},e.prototype._parseBorder=function(){var t=Y.get(this.source,["p:style","a:lnRef"]);if(t){var n=parseInt(t.attrs.idx),a=this.theme.getLineStyle(n);this.border=It(It({},a),this.border),this.border.color&&this.border.color.color||(this.border.color=Ke(t,this.theme,this))}var i=Y.get(this.source,["p:spPr","a:ln"]);i&&Object.assign(this.border,_u(i,this.theme,this)),this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=e.defaultBorderWidth)},e.prototype._parseTxt=function(){this.textBody=new UQ(Y.get(this.source,["p:txBody"]),this)},e.defaultBorderWidth=.75,e}(Bf),wp=function(r){function e(t,n,a,i,o){var s,l,u=r.call(this,n,i,o)||this;u.userDrawn=!0,u.pptx=a,u.path=t;var c=Y.get(u.source,["p:blipFill","a:srcRect"]);c&&(u.clip={},c.attrs.b&&(u.clip.b=parseInt(c.attrs.b)/1e5),c.attrs.t&&(u.clip.t=parseInt(c.attrs.t)/1e5),c.attrs.l&&(u.clip.l=parseInt(c.attrs.l)/1e5),c.attrs.r&&(u.clip.r=parseInt(c.attrs.r)/1e5));var f=Y.get(n,["p:nvPicPr","p:nvPr","a:audioFile","attrs","r:link"]);if(f){var d=(s=u.ctx.rels[f])===null||s===void 0?void 0:s.target;u.audioFile=u.pptx.getMedia(d)}var v=Y.get(n,["p:nvPicPr","p:nvPr","a:videoFile","attrs","r:link"]);if(v){var p=(l=u.ctx.rels[v])===null||l===void 0?void 0:l.target;u.videoFile=u.pptx.getMedia(p)}return u}return Nu(e,r),Object.defineProperty(e.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),e}(Bf),XR=function(r){function e(t,n,a,i){var o=r.call(this,t,a,i)||this;return o.userDrawn=!0,o.props={tableStyleId:""},o.tableGrid={gridCol:[]},o.tr=[],o.tableStyles={},o.pptx=n,o._parseTableProps(),o._parseTableGrid(),o._parseTr(),o._parseInheritStyles(),o}return Nu(e,r),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype._parseTableProps=function(){var t=Y.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblPr"]);this.props.tableStyleId=Y.get(t,"a:tableStyleId"),this.tableStyles=Y.get(this.slideMaster.tableStyles,this.props.tableStyleId)||{},Y.get(t,["attrs","bandCol"])==="1"&&(this.props.bandCol=!0),Y.get(t,["attrs","bandRow"])==="1"&&(this.props.bandRow=!0),Y.get(t,["attrs","firstCol"])==="1"&&(this.props.firstCol=!0),Y.get(t,["attrs","firstRow"])==="1"&&(this.props.firstRow=!0),Y.get(t,["attrs","lastCol"])==="1"&&(this.props.lastCol=!0),Y.get(t,["attrs","lastRow"])==="1"&&(this.props.lastRow=!0)},e.prototype._parseTableGrid=function(){var t=Y.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);if(t)for(var n=0;n>>0))),[4,a.async("base64")]):[3,4];case 2:o=y.sent(),this.medias[a.name]="data:".concat(i,";base64,").concat(o),y.label=3;case 3:return t++,[3,1];case 4:s=Object.keys(this._zipContents.files).filter(function(g){return g.startsWith("ppt/media/media")&&["mp3","wav","ogg","mp4","webm"].includes(g.split(".").pop().toLowerCase())}).map(function(g){return p._zipContents.files[g]}),l=0,u=s,y.label=5;case 5:return l3999)throw new Error("Input must be a number between 1 and 3999.");for(var s="",l=0;l=o[l].value;)s+=o[l].numeral,i-=o[l].value;return s}(t)+".";break;case"alphaUcPeriod":n.textContent=Nw(t)+".";break;case"alphaLcPeriod":n.textContent=Nw(t).toLowerCase()+".";break;case"alphaLcParenR":n.textContent=Nw(t).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":n.textContent=function(i){var o=["〇","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(i)||i<0)return"";for(var s="",l=i.toString(),u=0;u0&&i3*Math.PI/2&&i<2*Math.PI?e+Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(Math.tan(i),2)/Math.pow(a,2))):e-Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(Math.tan(i),2)/Math.pow(a,2))),i===0||i===2*Math.PI||i===Math.PI?t:i===Math.PI/2?t+a:i===3*Math.PI/2?t-a:i>Math.PI&&i<2*Math.PI?t-Math.sqrt(1/(1/Math.pow(a,2)+Math.pow(1/Math.tan(i),2)/Math.pow(n,2))):t+Math.sqrt(1/(1/Math.pow(a,2)+Math.pow(1/Math.tan(i),2)/Math.pow(n,2)))]}function Gf(r,e){var t=0;return(e>r&&e-r>180||e2*b&&(w=2*b);var T=["M0,".concat(h.h-b),"L".concat(S,",").concat(h.h-2*b),"L".concat(S,",").concat(h.h-b-w/2),"L".concat(h.w/2-w/2,",").concat(h.h-b-w/2),"L".concat(h.w/2-w/2,",").concat(S),"L".concat(h.w/2-b,",").concat(S),"L".concat(h.w/2,",0"),"L".concat(h.w/2+b,",").concat(S),"L".concat(h.w/2+w/2,",").concat(S),"L".concat(h.w/2+w/2,",").concat(h.h-b-w/2),"L".concat(h.w-S,",").concat(h.h-b-w/2),"L".concat(h.w-S,",").concat(h.h-2*b),"L".concat(h.w,",").concat(h.h-b),"L".concat(h.w-S,",").concat(h.h),"L".concat(h.w-S,",").concat(h.h-b+w/2),"L".concat(S,",").concat(h.h-b+w/2),"L".concat(S,",").concat(h.h),"Z"].join(" ");return A.setAttribute("d",T),A}(r),v=function(g){var h=g.extend,w=gt("adj1",g,.225*Math.min(h.w,h.h)),b=gt("adj2",g,.225*Math.min(h.w,h.h)),S=gt("adj3",g,.225*Math.min(h.w,h.h)),A=b===0?0:w*S/b/2;return{top:h.h-b-w/2,bottom:b-w/2,left:A,right:A,w:h.w-2*A,h:w}}(r);break;case"bentArrow":f=function(g){var h=g.extend,w=gt("adj1",g,.25*Math.min(h.w,h.h)),b=gt("adj2",g,.25*Math.min(h.w,h.h)),S=gt("adj3",g,.25*Math.min(h.w,h.h)),A=gt("adj4",g,.4375*Math.min(h.w,h.h)),T=mt("path");w>2*b&&(w=2*b);var D=A-w;D<0&&(D=0);var L=["M0,".concat(h.h),"L0,".concat(b-w/2+A),"A".concat(A," ").concat(A," 0 0 1 ").concat(A," ").concat(b-w/2),"L".concat(h.w-S,",").concat(b-w/2),"L".concat(h.w-S,",0"),"L".concat(h.w,",").concat(b),"L".concat(h.w-S,",").concat(2*b),"L".concat(h.w-S,",").concat(b+w/2),"L".concat(w+D,",").concat(b+w/2),"A".concat(D," ").concat(D," 0 0 0 ").concat(w," ").concat(b+w/2+D),"L".concat(w,",").concat(h.h),"Z"].join(" ");return T.setAttribute("d",L),T}(r);break;case"uturnArrow":f=function(g){var h=g.extend,w=gt("adj1",g,.25*Math.min(h.w,h.h)),b=gt("adj2",g,.25*Math.min(h.w,h.h)),S=gt("adj3",g,.25*Math.min(h.w,h.h)),A=gt("adj4",g,.4375*Math.min(h.w,h.h)),T=gt("adj5",g,.75*Math.min(h.w,h.h)),D=mt("path");w>2*b&&(w=2*b),TT-S&&(A=T-S);var L=A-w;L>T-S-w&&(L=T-S-w),L<0&&(L=0);var I=b-w/2,P=["M0,".concat(h.h),"L0,".concat(A),"A".concat(A," ").concat(A," 0 0 1 ").concat(A," 0"),"L".concat(h.w-A-I,",0"),"A".concat(A," ").concat(A," 0 0 1 ").concat(h.w-I," ").concat(A),"L".concat(h.w-I,",").concat(T-S),"L".concat(h.w,",").concat(T-S),"L".concat(h.w-b,",").concat(T),"L".concat(h.w-2*b,",").concat(T-S),"L".concat(h.w-b-w/2,",").concat(T-S),"L".concat(h.w-b-w/2,",").concat(w+L),"A".concat(L," ").concat(L," 0 0 0 ").concat(h.w-L-b-w/2," ").concat(w),"L".concat(w+L,",").concat(w),"A".concat(L," ").concat(L," 0 0 0 ").concat(w," ").concat(w+L),"L".concat(w,",").concat(h.h),"Z"].join(" ");return D.setAttribute("d",P),D}(r);break;case"leftUpArrow":f=function(g){var h=g.extend,w=gt("adj1",g,.25*Math.min(h.w,h.h)),b=gt("adj2",g,.25*Math.min(h.w,h.h)),S=gt("adj3",g,.25*Math.min(h.w,h.h));w>2*b&&(w=2*b);var A=Math.min(h.w,h.h)-2*b;S>A&&(S=A),S<0&&(S=0);var T=b-w/2,D=mt("path"),L=["M0,".concat(h.h-b),"L".concat(S,",").concat(h.h-2*b),"L".concat(S,",").concat(h.h-b-w/2),"L".concat(h.w-b-w/2,",").concat(h.h-b-w/2),"L".concat(h.w-b-w/2,",").concat(S),"L".concat(h.w-2*b,",").concat(S),"L".concat(h.w-b,",0"),"L".concat(h.w,",").concat(S),"L".concat(h.w-T,",").concat(S),"L".concat(h.w-T,",").concat(h.h-T),"L".concat(S,",").concat(h.h-T),"L".concat(S,",").concat(h.h),"Z"].join(" ");return D.setAttribute("d",L),D}(r),v=function(g){var h=g.extend,w=gt("adj1",g,.25*Math.min(h.w,h.h)),b=gt("adj2",g,.25*Math.min(h.w,h.h)),S=gt("adj3",g,.25*Math.min(h.w,h.h));w>2*b&&(w=2*b);var A=Math.min(h.w,h.h)-2*b;S>A&&(S=A),S<0&&(S=0);var T=b===0?0:w*S/b/2;return{top:h.h-b-w/2,bottom:b-w/2,left:T,right:b,w:h.w-T-b,h:w}}(r);break;case"bentUpArrow":f=function(g){var h=g.extend,w=gt("adj1",g,.25*Math.min(h.w,h.h)),b=gt("adj2",g,.25*Math.min(h.w,h.h)),S=gt("adj3",g,.25*Math.min(h.w,h.h));w>2*b&&(w=2*b);var A=Math.min(h.w,h.h)-2*b;S>A&&(S=A),S<0&&(S=0);var T=b-w/2,D=mt("path"),L=["M0,".concat(h.h),"L0,".concat(h.h-w),"L".concat(h.w-b-w/2,",").concat(h.h-w),"L".concat(h.w-b-w/2,",").concat(S),"L".concat(h.w-2*b,",").concat(S),"L".concat(h.w-b,",0"),"L".concat(h.w,",").concat(S),"L".concat(h.w-T,",").concat(S),"L".concat(h.w-T,",").concat(h.h),"Z"].join(" ");return D.setAttribute("d",L),D}(r),v=function(g){var h=g.extend,w=gt("adj1",g,.25*Math.min(h.w,h.h));return{top:h.h-w,bottom:0,left:0,right:0,w:h.w,h:w}}(r);break;case"curvedRightArrow":f=function(g){var h=g.extend,w=g.background,b=gt("adj1",g,.25*Math.min(h.w,h.h)),S=gt("adj2",g,.5*Math.min(h.w,h.h)),A=gt("adj3",g,.25*Math.min(h.w,h.h));b>S&&(b=S);var T=S/2-b/2,D=(h.h-S/2-b/2)/2,L=(h.h-T-b)/2,I=mt("g"),P=mt("path"),E=["M".concat(h.w,",0"),"A ".concat(h.w," ").concat(D," 0 0 0 ").concat(0," ").concat(D),"L0,".concat(L+b),"A ".concat(h.w," ").concat(L," 0 0 1 ").concat(h.w," ").concat(b),"Z"].join(" ");P.setAttribute("d",E),(w==null?void 0:w.type)==="solidFill"&&P.setAttribute("fill",Ie(w,{dark:.6})||"transparent");var R=mt("path"),M=["M0,".concat(D),"A ".concat(h.w," ").concat(D," 0 0 0 ").concat(h.w-A," ").concat(h.h-S/2-b/2),"L".concat(h.w-A,",").concat(h.h-S),"L".concat(h.w,",").concat(h.h-S/2),"L".concat(h.w-A,",").concat(h.h),"L".concat(h.w-A,",").concat(h.h-T),"A ".concat(h.w," ").concat(L," 0 0 1 0 ").concat(b+L),"Z"].join(" ");return R.setAttribute("d",M),I.appendChild(P),I.appendChild(R),I}(r);break;case"curvedLeftArrow":f=function(g){var h=g.extend,w=g.background,b=gt("adj1",g,.25*Math.min(h.w,h.h)),S=gt("adj2",g,.5*Math.min(h.w,h.h)),A=gt("adj3",g,.25*Math.min(h.w,h.h));b>S&&(b=S);var T=S/2-b/2,D=(h.h-S/2-b/2)/2,L=(h.h-T-b)/2,I=mt("g"),P=mt("path"),E=["M0,".concat(h.h-S/2),"L".concat(A,",").concat(h.h-S),"L".concat(A,",").concat(h.h-S/2-b/2),"A".concat(h.w," ").concat(D," 0 0 0 ").concat(h.w," ").concat(D),"L".concat(h.w,",").concat(L+b),"A ".concat(h.w," ").concat(L," 0 0 1 ").concat(A," ").concat(h.h-T),"L".concat(A,",").concat(h.h),"Z"].join(" ");P.setAttribute("d",E);var R=mt("path"),M=["M0,0","A ".concat(h.w," ").concat(D," 0 0 1 ").concat(h.w," ").concat(D),"L".concat(h.w,",").concat(L+b),"A ".concat(h.w," ").concat(L," 0 0 0 ").concat(0," ").concat(b),"Z"].join(" ");return R.setAttribute("d",M),(w==null?void 0:w.type)==="solidFill"&&R.setAttribute("fill",Ie(w,{dark:.6})||"transparent"),I.appendChild(P),I.appendChild(R),I}(r);break;case"curvedUpArrow":f=function(g){var h=g.extend,w=g.background,b=gt("adj1",g,.25*Math.min(h.w,h.h)),S=gt("adj2",g,.5*Math.min(h.w,h.h)),A=gt("adj3",g,.25*Math.min(h.w,h.h));b>S&&(b=S);var T=S/2-b/2,D=(h.w-S/2-b/2)/2,L=(h.w-T-b)/2,I=mt("g"),P=mt("path"),E=["M".concat(h.w-S/2,",").concat(0),"L".concat(h.w-S,",").concat(A),"L".concat(h.w-S/2-b/2,",").concat(A),"A".concat(D," ").concat(h.h," 0 0 1 ").concat(D," ").concat(h.h),"L".concat(D+b,",").concat(h.h),"A".concat(L," ").concat(h.h," 0 0 0 ").concat(h.w-T," ").concat(A),"L".concat(h.w,",").concat(A),"Z"].join(" ");P.setAttribute("d",E);var R=mt("path"),M=["M".concat(b,",0"),"L".concat(0,",").concat(0),"A ".concat(D," ").concat(h.h," 0 0 0 ").concat(D," ").concat(h.h),"L".concat(D+b,",").concat(h.h),"A ".concat(L," ").concat(h.h," 0 0 1 ").concat(b," ").concat(0),"Z"].join(" ");return R.setAttribute("d",M),(w==null?void 0:w.type)==="solidFill"&&R.setAttribute("fill",Ie(w,{dark:.6})||"transparent"),I.appendChild(P),I.appendChild(R),I}(r);break;case"curvedDownArrow":f=function(g){var h=g.extend,w=g.background,b=gt("adj1",g,.25*Math.min(h.w,h.h)),S=gt("adj2",g,.5*Math.min(h.w,h.h)),A=gt("adj3",g,.25*Math.min(h.w,h.h));b>S&&(b=S);var T=S/2-b/2,D=(h.w-S/2-b/2)/2,L=(h.w-T-b)/2,I=mt("g"),P=mt("path"),E=["M".concat(0,",").concat(h.h),"L".concat(b,",").concat(h.h),"A".concat(L," ").concat(h.h," 0 0 1 ").concat(L+b," ").concat(0),"L".concat(D,",").concat(0),"A".concat(D," ").concat(h.h," 0 0 0 ").concat(0," ").concat(h.h),"Z"].join(" ");P.setAttribute("d",E),(w==null?void 0:w.type)==="solidFill"&&P.setAttribute("fill",Ie(w,{dark:.6})||"transparent");var R=mt("path"),M=["M".concat(h.w-S/2,",").concat(h.h),"L".concat(h.w-S,",").concat(h.h-A),"L".concat(h.w-S/2-b/2,",").concat(h.h-A),"A ".concat(D," ").concat(h.h," 0 0 0 ").concat(D," ").concat(0),"L".concat(D+b,",").concat(0),"A ".concat(L," ").concat(h.h," 0 0 1 ").concat(h.w-T," ").concat(h.h-A),"L".concat(h.w,",").concat(h.h-A),"Z"].join(" ");return R.setAttribute("d",M),I.appendChild(P),I.appendChild(R),I}(r);break;case"stripedRightArrow":f=function(g){var h=g.extend,w=mt("g"),b=Math.min(h.w,h.h),S=$t("adj1",g,.5)*h.h,A=$t("adj2",g,.5)*b,T=b/8,D=b/16,L=b/32,I=5*b/32,P=h.h/2-S/2,E=h.h/2+S/2,R=mt("path");R.setAttribute("d",["M".concat(0,",").concat(P),"L".concat(L,",").concat(P),"L".concat(L,",").concat(E),"L".concat(0,",").concat(E),"Z"].join(" "));var M=mt("path");M.setAttribute("d",["M".concat(D,",").concat(P),"L".concat(T,",").concat(P),"L".concat(T,",").concat(E),"L".concat(D,",").concat(E),"Z"].join(" "));var B=mt("path"),F=["M".concat(I,",").concat(P),"L".concat(h.w-A,",").concat(P),"L".concat(h.w-A,",").concat(0),"L".concat(h.w,",").concat(h.h/2),"L".concat(h.w-A,",").concat(h.h),"L".concat(h.w-A,",").concat(E),"L".concat(I,",").concat(E),"Z"].join(" ");return B.setAttribute("d",F),w.appendChild(B),w.appendChild(R),w.appendChild(M),w}(r),v=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=$t("adj1",g,.5)*h.h,S=b*($t("adj2",g,.5)*w)/h.h;return{top:h.h/2-b/2,bottom:h.h/2-b/2,left:0,right:S,w:h.w-S,h:b}}(r);break;case"notchedRightArrow":f=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=$t("adj1",g,.5)*h.h,S=$t("adj2",g,.5)*w,A=b*S/h.h,T=h.h/2-b/2,D=h.h/2+b/2,L=mt("path"),I=["M".concat(0,",").concat(T),"L".concat(h.w-S,",").concat(T),"L".concat(h.w-S,",").concat(0),"L".concat(h.w,",").concat(h.h/2),"L".concat(h.w-S,",").concat(h.h),"L".concat(h.w-S,",").concat(D),"L".concat(0,",").concat(D),"L".concat(A,",").concat(h.h/2),"Z"].join(" ");return L.setAttribute("d",I),L}(r),v=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=$t("adj1",g,.5)*h.h,S=$t("adj2",g,.5)*w,A=b*S/h.h,T=b*S/h.h;return{top:h.h/2-b/2,bottom:h.h/2-b/2,left:A,right:T,w:h.w-A-T,h:b}}(r);break;case"homePlate":f=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=$t("adj",g,.5)*w,S=mt("path"),A=["M".concat(0,",").concat(0),"L".concat(h.w-b,",").concat(0),"L".concat(h.w,",").concat(h.h/2),"L".concat(h.w-b,",").concat(h.h),"L".concat(0,",").concat(h.h),"Z"].join(" ");return S.setAttribute("d",A),S}(r),v=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=$t("adj",g,.5)*w;return{top:0,bottom:0,left:0,right:b/2,w:h.w-b/2,h:h.h}}(r);break;case"chevron":f=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=$t("adj",g,.5)*w,S=mt("path"),A=["M".concat(0,",").concat(0),"L".concat(h.w-b,",").concat(0),"L".concat(h.w,",").concat(h.h/2),"L".concat(h.w-b,",").concat(h.h),"L".concat(0,",").concat(h.h),"L".concat(b,",").concat(h.h/2),"Z"].join(" ");return S.setAttribute("d",A),S}(r),v=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=$t("adj",g,.5)*w;return{top:0,bottom:0,left:b,right:b,w:h.w-2*b,h:h.h}}(r);break;case"blockArc":f=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=mt("path"),S=$t("adj1",g,180),A=$t("adj2",g,0),T=gt("adj3",g,.25*w),D=h.w/2,L=h.h/2,I=h.w/2,P=h.h/2,E=h.w/2-T,R=h.h/2-T,M=Hr(S,D,L,I,P),B=M[0],F=M[1],W=Hr(A,D,L,I,P),j=W[0],H=W[1],K=Hr(S,D,L,E,R),U=K[0],$=K[1],ut=Hr(A,D,L,E,R),ot=ut[0],it=ut[1],Nt=Gf(S,A),Kt=["M".concat(B,",").concat(F),"A".concat(I," ").concat(P," 0 ").concat(Nt," 1 ").concat(j," ").concat(H),"L".concat(ot,",").concat(it),"A".concat(E," ").concat(R," 0 ").concat(Nt," 0 ").concat(U," ").concat($),"Z"].join(" ");return b.setAttribute("d",Kt),b}(r),v=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=$t("adj1",g,180),S=$t("adj2",g,0),A=gt("adj3",g,.25*w),T=h.w/2,D=h.h/2,L=h.w/2,I=h.h/2,P=h.w/2-A,E=h.h/2-A,R=Hr(b,T,D,L,I),M=R[0],B=R[1],F=Hr(S,T,D,L,I),W=F[0],j=F[1],H=Hr(b,T,D,P,E),K=H[0],U=H[1],$=Hr(S,T,D,P,E),ut=[[M,B],[W,j],[K,U],[$[0],$[1]]];ut.push(),b>S&&ut.push([h.w,h.h/2]),(S>180&&S<=360&&b<180||b>S&&S>=0&&S<180&&b<180)&&ut.push([0,h.h/2]),(b90||b>S&&S>90||b>S&&b<90)&&ut.push([h.w/2,h.h]),(b270||b>S&&S>270||b>S&&b<270)&&ut.push([h.w/2,0]);var ot=1/0,it=1/0,Nt=-1/0,Kt=-1/0;return ut.forEach(function(xt){ot=Math.min(xt[0],ot),it=Math.min(xt[1],it),Nt=Math.max(xt[0],Nt),Kt=Math.max(xt[1],Kt)}),{top:it,bottom:h.h-Kt,left:ot,right:h.w-Nt,w:Nt-ot,h:Kt-it}}(r);break;case"foldedCorner":f=function(g){var h=g.extend,w=g.background,b=mt("g"),S=mt("path"),A=gt("adj",g,.16667*Math.min(h.w,h.h)),T=["M0,0","L".concat(h.w,",0"),"L".concat(h.w,",").concat(h.h-A),"L".concat(h.w-A,",").concat(h.h),"L".concat(0,",").concat(h.h),"Z"].join(" ");S.setAttribute("d",T);var D=A*Math.cos(Math.PI/4)/Math.cos(Math.PI/6)*Math.cos(75/180*Math.PI),L=mt("path"),I=["M".concat(h.w-A+D,", ").concat(h.h-A+D),"L".concat(h.w,",").concat(h.h-A),"L".concat(h.w-A,",").concat(h.h),"Z"].join(" ");return L.setAttribute("d",I),(w==null?void 0:w.type)==="solidFill"&&L.setAttribute("fill",Ie(w,{dark:.6})||"transparent"),b.appendChild(S),b.appendChild(L),b}(r),v=function(g){var h=g.extend,w=gt("adj",g,.16667*Math.min(h.w,h.h));return{top:0,bottom:w,left:0,right:0,w:h.w,h:h.h-w}}(r);break;case"rightArrowCallout":f=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=$t("adj1",g,.25)*w,S=$t("adj2",g,.25)*w,A=$t("adj3",g,.25)*w,T=$t("adj4",g,.64977)*h.w,D=mt("path"),L=["M".concat(0,",").concat(0),"L".concat(T,",").concat(0),"L".concat(T,",").concat(h.h/2-b/2),"L".concat(h.w-A,",").concat(h.h/2-b/2),"L".concat(h.w-A,",").concat(h.h/2-S),"L".concat(h.w,",").concat(h.h/2),"L".concat(h.w-A,",").concat(h.h/2+S),"L".concat(h.w-A,",").concat(h.h/2+b/2),"L".concat(T,",").concat(h.h/2+b/2),"L".concat(T,",").concat(h.h),"L".concat(0,",").concat(h.h),"Z"].join(" ");return D.setAttribute("d",L),D}(r),v=function(g){var h=g.extend,w=$t("adj4",g,.64977)*h.w;return{top:0,bottom:0,left:0,right:h.w-w,w,h:h.h}}(r);break;case"leftArrowCallout":f=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=$t("adj1",g,.25)*w,S=$t("adj2",g,.25)*w,A=$t("adj3",g,.25)*w,T=$t("adj4",g,.64977)*h.w,D=mt("path"),L=["M".concat(0,",").concat(h.h/2),"L".concat(A,",").concat(h.h/2-S),"L".concat(A,",").concat(h.h/2-b/2),"L".concat(h.w-T,",").concat(h.h/2-b/2),"L".concat(h.w-T,",").concat(0),"L".concat(h.w,",").concat(0),"L".concat(h.w,",").concat(h.h),"L".concat(h.w-T,",").concat(h.h),"L".concat(h.w-T,",").concat(h.h/2+b/2),"L".concat(A,",").concat(h.h/2+b/2),"L".concat(A,",").concat(h.h/2+S),"Z"].join(" ");return D.setAttribute("d",L),D}(r),v=function(g){var h=g.extend,w=$t("adj4",g,.64977)*h.w;return{top:0,bottom:0,left:h.w-w,right:0,w,h:h.h}}(r);break;case"upArrowCallout":f=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=$t("adj1",g,.25)*w,S=$t("adj2",g,.25)*w,A=$t("adj3",g,.25)*w,T=$t("adj4",g,.64977)*h.h,D=mt("path"),L=["M".concat(0,",").concat(h.h-T),"L".concat(h.w/2-b/2,",").concat(h.h-T),"L".concat(h.w/2-b/2,",").concat(A),"L".concat(h.w/2-S,",").concat(A),"L".concat(h.w/2,",").concat(0),"L".concat(h.w/2+S,",").concat(A),"L".concat(h.w/2+b/2,",").concat(A),"L".concat(h.w/2+b/2,",").concat(h.h-T),"L".concat(h.w,",").concat(h.h-T),"L".concat(h.w,",").concat(h.h),"L".concat(0,",").concat(h.h),"Z"].join(" ");return D.setAttribute("d",L),D}(r),v=function(g){var h=g.extend,w=$t("adj4",g,.64977)*h.h;return{top:h.h-w,bottom:0,left:0,right:0,w:h.w,h:w}}(r);break;case"downArrowCallout":f=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=$t("adj1",g,.25)*w,S=$t("adj2",g,.25)*w,A=$t("adj3",g,.25)*w,T=$t("adj4",g,.64977)*h.h,D=mt("path"),L=["M".concat(0,",").concat(0),"L".concat(h.w,",").concat(0),"L".concat(h.w,",").concat(T),"L".concat(h.w/2+b/2,",").concat(T),"L".concat(h.w/2+b/2,",").concat(h.h-A),"L".concat(h.w/2+S,",").concat(h.h-A),"L".concat(h.w/2,",").concat(h.h),"L".concat(h.w/2-S,",").concat(h.h-A),"L".concat(h.w/2-b/2,",").concat(h.h-A),"L".concat(h.w/2-b/2,",").concat(T),"L".concat(0,",").concat(T),"Z"].join(" ");return D.setAttribute("d",L),D}(r),v=function(g){var h=g.extend,w=$t("adj4",g,.64977)*h.h;return{top:0,bottom:h.h-w,left:0,right:0,w:h.w,h:w}}(r);break;case"leftRightArrowCallout":f=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=$t("adj1",g,.25)*w,S=$t("adj2",g,.25)*w,A=$t("adj3",g,.25)*w,T=$t("adj4",g,.48123)*h.w,D=mt("path"),L=["M".concat(0,",").concat(h.h/2),"L".concat(A,",").concat(h.h/2-S),"L".concat(A,",").concat(h.h/2-b/2),"L".concat(h.w/2-T/2,",").concat(h.h/2-b/2),"L".concat(h.w/2-T/2,",").concat(0),"L".concat(h.w/2+T/2,",").concat(0),"L".concat(h.w/2+T/2,",").concat(h.h/2-b/2),"L".concat(h.w-A,",").concat(h.h/2-b/2),"L".concat(h.w-A,",").concat(h.h/2-S),"L".concat(h.w,",").concat(h.h/2),"L".concat(h.w-A,",").concat(h.h/2+S),"L".concat(h.w-A,",").concat(h.h/2+b/2),"L".concat(h.w/2+T/2,",").concat(h.h/2+b/2),"L".concat(h.w/2+T/2,",").concat(h.h),"L".concat(h.w/2-T/2,",").concat(h.h),"L".concat(h.w/2-T/2,",").concat(h.h/2+b/2),"L".concat(A,",").concat(h.h/2+b/2),"L".concat(A,",").concat(h.h/2+S),"Z"].join(" ");return D.setAttribute("d",L),D}(r),v=function(g){var h=g.extend,w=$t("adj4",g,.48123)*h.w;return{top:0,bottom:0,left:h.w/2-w/2,right:h.w/2-w/2,w,h:h.h}}(r);break;case"quadArrowCallout":f=function(g){var h=g.extend,w=Math.min(h.w,h.h),b=$t("adj1",g,.18515)*w,S=$t("adj2",g,.18515)*w,A=$t("adj3",g,.18515)*w,T=$t("adj4",g,.48123)*h.w,D=$t("adj4",g,.48123)*h.h,L=mt("path"),I=["M".concat(0,",").concat(h.h/2),"L".concat(A,",").concat(h.h/2-S),"L".concat(A,",").concat(h.h/2-b/2),"L".concat(h.w/2-T/2,",").concat(h.h/2-b/2),"L".concat(h.w/2-T/2,",").concat(h.h/2-D/2),"L".concat(h.w/2-b/2,",").concat(h.h/2-D/2),"L".concat(h.w/2-b/2,",").concat(A),"L".concat(h.w/2-S,",").concat(A),"L".concat(h.w/2,",").concat(0),"L".concat(h.w/2+S,",").concat(A),"L".concat(h.w/2+b/2,",").concat(A),"L".concat(h.w/2+b/2,",").concat(h.h/2-D/2),"L".concat(h.w/2+T/2,",").concat(h.h/2-D/2),"L".concat(h.w/2+T/2,",").concat(h.h/2-b/2),"L".concat(h.w-A,",").concat(h.h/2-b/2),"L".concat(h.w-A,",").concat(h.h/2-S),"L".concat(h.w,",").concat(h.h/2),"L".concat(h.w-A,",").concat(h.h/2+S),"L".concat(h.w-A,",").concat(h.h/2+b/2),"L".concat(h.w/2+T/2,",").concat(h.h/2+b/2),"L".concat(h.w/2+T/2,",").concat(h.h/2+D/2),"L".concat(h.w/2+b/2,",").concat(h.h/2+D/2),"L".concat(h.w/2+b/2,",").concat(h.h-A),"L".concat(h.w/2+S,",").concat(h.h-A),"L".concat(h.w/2,",").concat(h.h),"L".concat(h.w/2-S,",").concat(h.h-A),"L".concat(h.w/2-b/2,",").concat(h.h-A),"L".concat(h.w/2-b/2,",").concat(h.h/2+D/2),"L".concat(h.w/2-T/2,",").concat(h.h/2+D/2),"L".concat(h.w/2-T/2,",").concat(h.h/2+b/2),"L".concat(A,",").concat(h.h/2+b/2),"L".concat(A,",").concat(h.h/2+S),"Z"].join(" ");return L.setAttribute("d",I),L}(r),v=function(g){var h=g.extend,w=$t("adj4",g,.48123)*h.w,b=$t("adj4",g,.48123)*h.h;return{top:h.h/2-b/2,bottom:h.h/2-b/2,left:h.w/2-w/2,right:h.w/2-w/2,w,h:b}}(r)}f&&(p?(a==null?void 0:a.type)==="blipFill"?function(g,h,w){var b=g.background,S=b===void 0?{}:b,A=g.extend,T=S.base64,D=S.alpha,L=S.fillRect,I=L===void 0?{}:L,P=I.b,E=P===void 0?0:P,R=I.t,M=R===void 0?0:R,B=I.l,F=B===void 0?0:B,W=I.r,j=W===void 0?0:W,H=mt("defs"),K=mt("pattern");K.setAttribute("id","background_"+g.uuid),K.setAttribute("patternUnits","userSpaceOnUse"),K.setAttribute("width",A.w+""),K.setAttribute("height",A.h+"");var U=mt("image");U.setAttribute("href",T),U.setAttribute("preserveAspectRatio","none");var $=A.w*F,ut=A.h*M,ot=A.w*(1-F-j),it=A.h*(1-M-E);U.setAttribute("width",ot+""),U.setAttribute("height",it+""),U.setAttribute("x",$+""),U.setAttribute("y",ut+""),typeof D=="number"&&U.setAttribute("opacity",D+""),K.appendChild(U),H.appendChild(K),h.appendChild(H),w.setAttribute("fill","url(#background_".concat(g.uuid,")"))}(r,d,f):(a==null?void 0:a.type)==="gradFill"?function(g,h,w){var b=g.background,S=b===void 0?{}:b;g.extend;var A=S.gsList,T=S.lin,D=S.path,L=S.tileRect,I=L===void 0?{}:L,P=mt("defs"),E=mt(D==="circle"?"radialGradient":"linearGradient");E.setAttribute("id","background_grad_fill_"+g.uuid);var R=A||[];if(R.sort(function(j,H){return j.pos-H.pos}),R.forEach(function(j){var H=mt("stop");H.setAttribute("offset","".concat(100*j.pos,"%")),H.setAttribute("stop-color",Ie(j.color)),E.appendChild(H)}),D==="circle"){var M=I.r,B=I.l,F=I.t,W=I.b;M===-1?E.setAttribute("cx","100%"):B===-1&&E.setAttribute("cx","0%"),F===-1?E.setAttribute("cy","0%"):W===-1&&E.setAttribute("cy","100%")}else T!=null&&T.ang&&E.setAttribute("gradientTransform","rotate(".concat(T.ang,")"));P.appendChild(E),h.appendChild(P),w.setAttribute("fill","url(#background_grad_fill_".concat(g.uuid,")"))}(r,d,f):f.setAttribute("fill",Ie(a)||"transparent"):f.setAttribute("fill","transparent"),n.width?(f.setAttribute("stroke-width",n.width+"px"),f.setAttribute("stroke",Ie(n.color)||"transparent")):f.setAttribute("stroke-width","0"),f.setAttribute("stroke-dasharray",function(g){return g&&g.type!=="solid"?({sysDot:[1,1],sysDash:[3,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]}[g.type]||[]).map(function(h){return h*g.width}).join(","):""}(n)),f.setAttribute("stroke-linecap",n.cap&&{sq:"square",rnd:"round",flat:"butt"}[n.cap]||"square"),f.setAttribute("stroke-linejoin",n.lineJoin||"round"),n.lineJoin==="miter"&&f.setAttribute("stroke-miterlimit",n.miterLim+""),d.appendChild(f));var y=[];o&&y.push("scaleX(-1)"),s&&y.push("scaleY(-1)"),d.style.setProperty("transform",y.join(" ")),l.appendChild(d);var _=function(g,h,w){var b;w===void 0&&(w=!1);var S=g.inheritProps,A=g.props,T=g.paragraphs;if(!T||T.length===0)return null;var D=It(It({},S),A),L=document.createElement("div");switch(L.className="text-wrapper",L.style.boxSizing="border-box",L.style.position="absolute",L.style.left=h.left+"px",D.vert==="eaVert"?(L.style.writingMode="vertical-rl",L.style.height=h.h+"px"):L.style.width=h.w+"px",D.anchor){case"b":L.style.bottom=h.bottom+"px";break;case"t":L.style.top=h.top+"px";break;case"ctr":L.style.top=h.top+h.h/2+"px",L.style.transform="translateY(-50%)";break;default:w?L.style.top=h.top+"px":(L.style.top=h.top+h.h/2+"px",L.style.transform="translateY(-50%)")}var I=[D.hasOwnProperty("tIns")?Math.floor(D.tIns)+"px":"3px",D.hasOwnProperty("rIns")?Math.floor(D.rIns)+"px":"5px",D.hasOwnProperty("bIns")?Math.floor(D.bIns)+"px":"3px",D.hasOwnProperty("lIns")?Math.floor(D.lIns)+"px":"5px"];L.style.padding=I.join(" ");for(var P={},E=0,R=function(F){var W=It(It({},F.inheritProps),F.props),j=void 0;if(W.buAutoNum){var H=W.level?+W.level:0;P[H]||(P[H]=0),!((b=F.rows)===null||b===void 0)&&b.length&&P[H]++,Object.keys(P).forEach(function(K){+K>H&&(P[K]=0)}),j=bp(F,P[H],{isFirst:E===0,isLast:T.length-1===E,bodyProps:D})}else j=bp(F,0,{isFirst:E===0,isLast:T.length-1===E,bodyProps:D});L.appendChild(j),E++},M=0,B=T;Ml.order?1:-1});for(var i=0;il.order?1:-1});for(var i=0;il.order?1:-1});for(var i=0;i$&&(R[ut]=0)}),U=bp(H,R[$],{isFirst:B===0,isLast:S.length-1===B,bodyProps:E})}else U=bp(H,0,{isFirst:B===0,isLast:S.length-1===B,bodyProps:E});I.appendChild(U),B++},W=0,j=M;W{const t=r.__vccOpts||r;for(const[n,a]of e)t[n]=a;return t},nJ=Ma.defineComponent({name:"VueOfficePptx",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["rendered","error"],setup(r,{emit:e}){let t=null;const n=Ma.ref(null);function a(){let s=n.value,l=r.options.width||s.getBoundingClientRect().width||960,u=r.options.height||s.getBoundingClientRect().height||540;t=eJ(s,{width:l,height:u})}function i(s){if(typeof s=="string")return fetch(s,r.requestOptions).then(l=>l.arrayBuffer());if(s instanceof ArrayBuffer)return Promise.resolve(s)}function o(){r.src&&i(r.src).then(s=>{t.preview(s).then(l=>{e("rendered",l)}).catch(l=>{e("error",l)})}).catch(s=>{e("error",s)})}return Ma.onMounted(()=>{a(),o()}),Ma.watch(()=>r.src,()=>{o()}),{rootRef:n}}}),aJ={class:"vue-office-pptx"},iJ={class:"vue-office-pptx-main",ref:"rootRef",style:{width:"100%",height:"100%"}};function oJ(r,e,t,n,a,i){return No.openBlock(),No.createElementBlock("div",aJ,[No.createElementVNode("div",iJ,null,512)])}const xp=rJ(nJ,[["render",oJ]]);return xp.install=function(r){r.component(xp.name,xp)},xp});