| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- 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;n<a;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},It.apply(this,arguments)};function dr(r,e,t,n){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(n.next(c))}catch(f){o(f)}}function l(c){try{u(n.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((n=n.apply(r,e||[])).next())})}function pr(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(t=0)),t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){t.label=u[1];break}if(u[0]===6&&t.label<i[1]){t.label=i[1],i=u;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(u);break}i[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(r,t)}catch(c){u=[6,c],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Ou(r,e,t){if(t||arguments.length===2)for(var n=0,a=e.length,i;n<a;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var ii=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function O5(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ih(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ex={exports:{}};/*!
- +
- + JSZip v3.10.1 - A JavaScript class for generating and reading zip files
- + <http://stuartk.com/jszip>
- +
- + (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
- + 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<i.length;l++)o(i[l]);return o}({1:[function(t,n,a){var i=t("./utils"),o=t("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.encode=function(l){for(var u,c,f,d,v,p,y,_=[],g=0,h=l.length,w=h,b=i.getTypeOf(l)!=="string";g<l.length;)w=h-g,f=b?(u=l[g++],c=g<h?l[g++]:0,g<h?l[g++]:0):(u=l.charCodeAt(g++),c=g<h?l.charCodeAt(g++):0,g<h?l.charCodeAt(g++):0),d=u>>2,v=(3&u)<<4|c>>4,p=1<w?(15&c)<<2|f>>6:64,y=2<w?63&f:64,_.push(s.charAt(d)+s.charAt(v)+s.charAt(p)+s.charAt(y));return _.join("")},a.decode=function(l){var u,c,f,d,v,p,y=0,_=0,g="data:";if(l.substr(0,g.length)===g)throw new Error("Invalid base64 input, it looks like a data url.");var h,w=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&w--,l.charAt(l.length-2)===s.charAt(64)&&w--,w%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=o.uint8array?new Uint8Array(0|w):new Array(0|w);y<l.length;)u=s.indexOf(l.charAt(y++))<<2|(d=s.indexOf(l.charAt(y++)))>>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<p;y++)u=u>>>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<p;y++)u=u>>>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<p;y++)_+=String.fromCharCode(255&v),v>>>=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.dirRecords.length;p++)this.push({data:this.dirRecords[p],meta:{percent:100}});var y=this.bytesWritten-v,_=function(g,h,w,b,S){var A=s.transformTo("string",S(b));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(g,2)+i(g,2)+i(h,4)+i(w,4)+i(A.length,2)+A}(this.dirRecords.length,y,v,this.zipComment,this.encodeFileName);this.push({data:_,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(v){this._sources.push(v);var p=this;return v.on("data",function(y){p.processChunk(y)}),v.on("end",function(){p.closedSource(p.previous.streamInfo),p._sources.length?p.prepareNextSource():p.end()}),v.on("error",function(y){p.error(y)}),this},d.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(v){var p=this._sources;if(!l.prototype.error.call(this,v))return!1;for(var y=0;y<p.length;y++)try{p[y].error(v)}catch(_){}return!0},d.prototype.lock=function(){l.prototype.lock.call(this);for(var v=this._sources,p=0;p<v.length;p++)v[p].lock()},n.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,n,a){var i=t("../compressions"),o=t("./ZipFileWorker");a.generateWorker=function(s,l,u){var c=new o(l.streamFiles,u,l.platform,l.encodeFileName),f=0;try{s.forEach(function(d,v){f++;var p=function(h,w){var b=h||w,S=i[b];if(!S)throw new Error(b+" is not a valid compression method !");return S}(v.options.compression,l.compression),y=v.options.compressionOptions||l.compressionOptions||{},_=v.dir,g=v.date;v._compressWorker(p,y).withStreamInfo("file",{name:d,dir:_,date:g,comment:v.comment||"",unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions}).pipe(c)}),c.entriesCount=f}catch(d){c.error(d)}return c}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,n,a){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new i;for(var s in this)typeof this[s]!="function"&&(o[s]=this[s]);return o}}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.10.1",i.loadAsync=function(o,s){return new i().loadAsync(o,s)},i.external=t("./external"),n.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,n,a){var i=t("./utils"),o=t("./external"),s=t("./utf8"),l=t("./zipEntries"),u=t("./stream/Crc32Probe"),c=t("./nodejsUtils");function f(d){return new o.Promise(function(v,p){var y=d.decompressed.getContentWorker().pipe(new u);y.on("error",function(_){p(_)}).on("end",function(){y.streamInfo.crc32!==d.decompressed.crc32?p(new Error("Corrupted zip : CRC32 mismatch")):v()}).resume()})}n.exports=function(d,v){var p=this;return v=i.extend(v||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),c.isNode&&c.isStream(d)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",d,!0,v.optimizedBinaryString,v.base64).then(function(y){var _=new l(v);return _.load(y),_}).then(function(y){var _=[o.Promise.resolve(y)],g=y.files;if(v.checkCRC32)for(var h=0;h<g.length;h++)_.push(f(g[h]));return o.Promise.all(_)}).then(function(y){for(var _=y.shift(),g=_.files,h=0;h<g.length;h++){var w=g[h],b=w.fileNameStr,S=i.resolve(w.fileNameStr);p.file(S,w.decompressed,{binary:!0,optimizedBinaryString:!0,date:w.date,dir:w.dir,comment:w.fileCommentStr.length?w.fileCommentStr:null,unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions,createFolders:v.createFolders}),w.dir||(p.file(S).unsafeOriginalName=b)}return _.zipComment.length&&(p.comment=_.zipComment),p})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,n,a){var i=t("../utils"),o=t("../stream/GenericWorker");function s(l,u){o.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(u)}i.inherits(s,o),s.prototype._bindStream=function(l){var u=this;(this._stream=l).pause(),l.on("data",function(c){u.push({data:c,meta:{percent:0}})}).on("error",function(c){u.isPaused?this.generatedError=c:u.error(c)}).on("end",function(){u.isPaused?u._upstreamEnded=!0:u.end()})},s.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,n,a){var i=t("readable-stream").Readable;function o(s,l,u){i.call(this,l),this._helper=s;var c=this;s.on("data",function(f,d){c.push(f)||c._helper.pause(),u&&u(d)}).on("error",function(f){c.emit("error",f)}).on("end",function(){c.push(null)})}t("../utils").inherits(o,i),o.prototype._read=function(){this._helper.resume()},n.exports=o},{"../utils":32,"readable-stream":16}],14:[function(t,n,a){n.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(i,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,o);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,o)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var o=new Buffer(i);return o.fill(0),o},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(t,n,a){function i(S,A,T){var D,L=s.getTypeOf(A),I=s.extend(T||{},c);I.date=I.date||new Date,I.compression!==null&&(I.compression=I.compression.toUpperCase()),typeof I.unixPermissions=="string"&&(I.unixPermissions=parseInt(I.unixPermissions,8)),I.unixPermissions&&16384&I.unixPermissions&&(I.dir=!0),I.dosPermissions&&16&I.dosPermissions&&(I.dir=!0),I.dir&&(S=g(S)),I.createFolders&&(D=_(S))&&h.call(this,D,!0);var P=L==="string"&&I.binary===!1&&I.base64===!1;T&&T.binary!==void 0||(I.binary=!P),(A instanceof f&&A.uncompressedSize===0||I.dir||!A||A.length===0)&&(I.base64=!1,I.binary=!0,A="",I.compression="STORE",L="string");var E=null;E=A instanceof f||A instanceof l?A:p.isNode&&p.isStream(A)?new y(S,A):s.prepareContent(S,A,I.binary,I.optimizedBinaryString,I.base64);var R=new d(S,E,I);this.files[S]=R}var o=t("./utf8"),s=t("./utils"),l=t("./stream/GenericWorker"),u=t("./stream/StreamHelper"),c=t("./defaults"),f=t("./compressedObject"),d=t("./zipObject"),v=t("./generate"),p=t("./nodejsUtils"),y=t("./nodejs/NodejsStreamInputAdapter"),_=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var A=S.lastIndexOf("/");return 0<A?S.substring(0,A):""},g=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},h=function(S,A){return A=A!==void 0?A:c.createFolders,S=g(S),this.files[S]||i.call(this,S,null,{dir:!0,createFolders:A}),this.files[S]};function w(S){return Object.prototype.toString.call(S)==="[object RegExp]"}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(S){var A,T,D;for(A in this.files)D=this.files[A],(T=A.slice(this.root.length,A.length))&&A.slice(0,this.root.length)===this.root&&S(T,D)},filter:function(S){var A=[];return this.forEach(function(T,D){S(T,D)&&A.push(D)}),A},file:function(S,A,T){if(arguments.length!==1)return S=this.root+S,i.call(this,S,A,T),this;if(w(S)){var D=S;return this.filter(function(I,P){return!P.dir&&D.test(I)})}var L=this.files[this.root+S];return L&&!L.dir?L:null},folder:function(S){if(!S)return this;if(w(S))return this.filter(function(L,I){return I.dir&&S.test(L)});var A=this.root+S,T=h.call(this,A),D=this.clone();return D.root=T.name,D},remove:function(S){S=this.root+S;var A=this.files[S];if(A||(S.slice(-1)!=="/"&&(S+="/"),A=this.files[S]),A&&!A.dir)delete this.files[S];else for(var T=this.filter(function(L,I){return I.name.slice(0,S.length)===S}),D=0;D<T.length;D++)delete this.files[T[D].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var A,T={};try{if((T=s.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=T.type.toLowerCase(),T.compression=T.compression.toUpperCase(),T.type==="binarystring"&&(T.type="string"),!T.type)throw new Error("No output type specified.");s.checkSupport(T.type),T.platform!=="darwin"&&T.platform!=="freebsd"&&T.platform!=="linux"&&T.platform!=="sunos"||(T.platform="UNIX"),T.platform==="win32"&&(T.platform="DOS");var D=T.comment||this.comment||"";A=v.generateWorker(this,T,D)}catch(L){(A=new l("error")).error(L)}return new u(A,T.type||"string",T.mimeType)},generateAsync:function(S,A){return this.generateInternalStream(S).accumulate(A)},generateNodeStream:function(S,A){return(S=S||{}).type||(S.type="nodebuffer"),this.generateInternalStream(S).toNodejsStream(A)}};n.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,n,a){n.exports=t("stream")},{stream:void 0}],17:[function(t,n,a){var i=t("./DataReader");function o(s){i.call(this,s);for(var l=0;l<this.data.length;l++)s[l]=255&s[l]}t("../utils").inherits(o,i),o.prototype.byteAt=function(s){return this.data[this.zero+s]},o.prototype.lastIndexOfSignature=function(s){for(var l=s.charCodeAt(0),u=s.charCodeAt(1),c=s.charCodeAt(2),f=s.charCodeAt(3),d=this.length-4;0<=d;--d)if(this.data[d]===l&&this.data[d+1]===u&&this.data[d+2]===c&&this.data[d+3]===f)return d-this.zero;return-1},o.prototype.readAndCheckSignature=function(s){var l=s.charCodeAt(0),u=s.charCodeAt(1),c=s.charCodeAt(2),f=s.charCodeAt(3),d=this.readData(4);return l===d[0]&&u===d[1]&&c===d[2]&&f===d[3]},o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];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}],18:[function(t,n,a){var i=t("../utils");function o(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var l,u=0;for(this.checkOffset(s),l=this.index+s-1;l>=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<this._listeners[o].length;l++)this._listeners[o][l].call(this,s)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var s=this;return o.on("data",function(l){s.processChunk(l)}),o.on("end",function(){s.end()}),o.on("error",function(l){s.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,s){return this.extraStreamInfo[o]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+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<D.length;L++)E+=D[L].length;switch(T){case"string":return D.join("");case"array":return Array.prototype.concat.apply([],D);case"uint8array":for(P=new Uint8Array(E),L=0;L<D.length;L++)P.set(D[L],I),I+=D[L].length;return P;case"nodebuffer":return Buffer.concat(D);default:throw new Error("concat : unsupported type '"+T+"'")}}(w,h),S);_(A)}catch(T){g(T)}h=[]}).resume()})}function v(p,y,_){var g=y;switch(y){case"blob":case"arraybuffer":g="uint8array";break;case"base64":g="string"}try{this._internalType=g,this._outputType=y,this._mimeType=_,i.checkSupport(g),this._worker=p.pipe(new o(g)),p.lock()}catch(h){this._worker=new s("error"),this._worker.error(h)}}v.prototype={accumulate:function(p){return d(this,p)},on:function(p,y){var _=this;return p==="data"?this._worker.on(p,function(g){y.call(_,g.data,g.meta)}):this._worker.on(p,function(){i.delay(y,arguments,_)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(p){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new f(this,{objectMode:this._outputType!=="nodebuffer"},p)}},n.exports=v},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,a){if(a.base64=!0,a.array=!0,a.string=!0,a.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",a.nodebuffer=typeof Buffer!="undefined",a.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")a.blob=!1;else{var i=new ArrayBuffer(0);try{a.blob=new Blob([i],{type:"application/zip"}).size===0}catch(s){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(i),a.blob=o.getBlob("application/zip").size===0}catch(l){a.blob=!1}}}try{a.nodestream=!!t("readable-stream").Readable}catch(s){a.nodestream=!1}},{"readable-stream":16}],31:[function(t,n,a){for(var i=t("./utils"),o=t("./support"),s=t("./nodejsUtils"),l=t("./stream/GenericWorker"),u=new Array(256),c=0;c<256;c++)u[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;u[254]=u[254]=1;function f(){l.call(this,"utf-8 decode"),this.leftOver=null}function d(){l.call(this,"utf-8 encode")}a.utf8encode=function(v){return o.nodebuffer?s.newBufferFrom(v,"utf-8"):function(p){var y,_,g,h,w,b=p.length,S=0;for(h=0;h<b;h++)(64512&(_=p.charCodeAt(h)))==55296&&h+1<b&&(64512&(g=p.charCodeAt(h+1)))==56320&&(_=65536+(_-55296<<10)+(g-56320),h++),S+=_<128?1:_<2048?2:_<65536?3:4;for(y=o.uint8array?new Uint8Array(S):new Array(S),h=w=0;w<S;h++)(64512&(_=p.charCodeAt(h)))==55296&&h+1<b&&(64512&(g=p.charCodeAt(h+1)))==56320&&(_=65536+(_-55296<<10)+(g-56320),h++),_<128?y[w++]=_:(_<2048?y[w++]=192|_>>>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<w;)if((g=p[y++])<128)b[_++]=g;else if(4<(h=u[g]))b[_++]=65533,y+=h-1;else{for(g&=h===2?31:h===3?15:7;1<h&&y<w;)g=g<<6|63&p[y++],h--;1<h?b[_++]=65533:g<65536?b[_++]=g:(g-=65536,b[_++]=55296|g>>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<y.length;++g)_[g]=255&y.charCodeAt(g);return _}t("setimmediate"),a.newBlob=function(y,_){a.checkSupport("blob");try{return new Blob([y],{type:_})}catch(h){try{var g=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return g.append(y),g.getBlob(_)}catch(w){throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(y,_,g){var h=[],w=0,b=y.length;if(b<=g)return String.fromCharCode.apply(null,y);for(;w<b;)_==="array"||_==="nodebuffer"?h.push(String.fromCharCode.apply(null,y.slice(w,Math.min(w+g,b)))):h.push(String.fromCharCode.apply(null,y.subarray(w,Math.min(w+g,b)))),w+=g;return h.join("")},stringifyByChar:function(y){for(var _="",g=0;g<y.length;g++)_+=String.fromCharCode(y[g]);return _},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(y){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch(y){return!1}}()}};function d(y){var _=65536,g=a.getTypeOf(y),h=!0;if(g==="uint8array"?h=f.applyCanBeUsed.uint8array:g==="nodebuffer"&&(h=f.applyCanBeUsed.nodebuffer),h)for(;1<_;)try{return f.stringifyByChunk(y,g,_)}catch(w){_=Math.floor(_/2)}return f.stringifyByChar(y)}function v(y,_){for(var g=0;g<y.length;g++)_[g]=y[g];return _}a.applyFromCharCode=d;var p={};p.string={string:u,array:function(y){return c(y,new Array(y.length))},arraybuffer:function(y){return p.string.uint8array(y).buffer},uint8array:function(y){return c(y,new Uint8Array(y.length))},nodebuffer:function(y){return c(y,s.allocBuffer(y.length))}},p.array={string:d,array:u,arraybuffer:function(y){return new Uint8Array(y).buffer},uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return s.newBufferFrom(y)}},p.arraybuffer={string:function(y){return d(new Uint8Array(y))},array:function(y){return v(new Uint8Array(y),new Array(y.byteLength))},arraybuffer:u,uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return s.newBufferFrom(new Uint8Array(y))}},p.uint8array={string:d,array:function(y){return v(y,new Array(y.length))},arraybuffer:function(y){return y.buffer},uint8array:u,nodebuffer:function(y){return s.newBufferFrom(y)}},p.nodebuffer={string:d,array:function(y){return v(y,new Array(y.length))},arraybuffer:function(y){return p.nodebuffer.uint8array(y).buffer},uint8array:function(y){return v(y,new Uint8Array(y.length))},nodebuffer:u},a.transformTo=function(y,_){if(_=_||"",!y)return _;a.checkSupport(y);var g=a.getTypeOf(_);return p[g][y](_)},a.resolve=function(y){for(var _=y.split("/"),g=[],h=0;h<_.length;h++){var w=_[h];w==="."||w===""&&h!==0&&h!==_.length-1||(w===".."?g.pop():g.push(w))}return g.join("/")},a.getTypeOf=function(y){return typeof y=="string"?"string":Object.prototype.toString.call(y)==="[object Array]"?"array":i.nodebuffer&&s.isBuffer(y)?"nodebuffer":i.uint8array&&y instanceof Uint8Array?"uint8array":i.arraybuffer&&y instanceof ArrayBuffer?"arraybuffer":void 0},a.checkSupport=function(y){if(!i[y.toLowerCase()])throw new Error(y+" is not supported by this platform")},a.MAX_VALUE_16BITS=65535,a.MAX_VALUE_32BITS=-1,a.pretty=function(y){var _,g,h="";for(g=0;g<(y||"").length;g++)h+="\\x"+((_=y.charCodeAt(g))<16?"0":"")+_.toString(16).toUpperCase();return h},a.delay=function(y,_,g){setImmediate(function(){y.apply(g||null,_||[])})},a.inherits=function(y,_){function g(){}g.prototype=_.prototype,y.prototype=new g},a.extend=function(){var y,_,g={};for(y=0;y<arguments.length;y++)for(_ in arguments[y])Object.prototype.hasOwnProperty.call(arguments[y],_)&&g[_]===void 0&&(g[_]=arguments[y][_]);return g},a.prepareContent=function(y,_,g,h,w){return l.Promise.resolve(_).then(function(b){return i.blob&&(b instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(b))!==-1)&&typeof FileReader!="undefined"?new l.Promise(function(S,A){var T=new FileReader;T.onload=function(D){S(D.target.result)},T.onerror=function(D){A(D.target.error)},T.readAsArrayBuffer(b)}):b}).then(function(b){var S=a.getTypeOf(b);return S?(S==="arraybuffer"?b=a.transformTo("uint8array",b):S==="string"&&(w?b=o.decode(b):g&&h!==!0&&(b=function(A){return c(A,i.uint8array?new Uint8Array(A.length):new Array(A.length))}(b))),b):l.Promise.reject(new Error("Can't read the data of '"+y+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,n,a){var i=t("./reader/readerFor"),o=t("./utils"),s=t("./signature"),l=t("./zipEntry"),u=t("./support");function c(f){this.files=[],this.loadOptions=f}c.prototype={checkSignature:function(f){if(!this.reader.readAndCheckSignature(f)){this.reader.index-=4;var d=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(d)+", expected "+o.pretty(f)+")")}},isSignature:function(f,d){var v=this.reader.index;this.reader.setIndex(f);var p=this.reader.readString(4)===d;return this.reader.setIndex(v),p},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var f=this.reader.readData(this.zipCommentLength),d=u.uint8array?"uint8array":"array",v=o.transformTo(d,f);this.zipComment=this.loadOptions.decodeFileName(v)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var f,d,v,p=this.zip64EndOfCentralSize-44;0<p;)f=this.reader.readInt(2),d=this.reader.readInt(4),v=this.reader.readData(d),this.zip64ExtensibleData[f]={id:f,length:d,value:v}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var f,d;for(f=0;f<this.files.length;f++)d=this.files[f],this.reader.setIndex(d.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),d.readLocalPart(this.reader),d.handleUTF8(),d.processAttributes()},readCentralDir:function(){var f;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(f=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(f);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var f=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(f<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(f);var d=f;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(f=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(f),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var v=this.centralDirOffset+this.centralDirSize;this.zip64&&(v+=20,v+=12+this.zip64EndOfCentralSize);var p=d-v;if(0<p)this.isSignature(d,s.CENTRAL_FILE_HEADER)||(this.reader.zero=p);else if(p<0)throw new Error("Corrupted zip: missing "+Math.abs(p)+" bytes.")},prepareReader:function(f){this.reader=i(f)},load:function(f){this.prepareReader(f),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,n,a){var i=t("./reader/readerFor"),o=t("./utils"),s=t("./compressedObject"),l=t("./crc32"),u=t("./utf8"),c=t("./compressions"),f=t("./support");function d(v,p){this.options=v,this.loadOptions=p}d.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(v){var p,y;if(v.skip(22),this.fileNameLength=v.readInt(2),y=v.readInt(2),this.fileName=v.readData(this.fileNameLength),v.skip(y),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((p=function(_){for(var g in c)if(Object.prototype.hasOwnProperty.call(c,g)&&c[g].magic===_)return c[g];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,p,v.readData(this.compressedSize))},readCentralPart:function(v){this.versionMadeBy=v.readInt(2),v.skip(2),this.bitFlag=v.readInt(2),this.compressionMethod=v.readString(2),this.date=v.readDate(),this.crc32=v.readInt(4),this.compressedSize=v.readInt(4),this.uncompressedSize=v.readInt(4);var p=v.readInt(2);if(this.extraFieldsLength=v.readInt(2),this.fileCommentLength=v.readInt(2),this.diskNumberStart=v.readInt(2),this.internalFileAttributes=v.readInt(2),this.externalFileAttributes=v.readInt(4),this.localHeaderOffset=v.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");v.skip(p),this.readExtraFields(v),this.parseZIP64ExtraField(v),this.fileComment=v.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var v=this.versionMadeBy>>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<g;)p=v.readInt(2),y=v.readInt(2),_=v.readData(y),this.extraFields[p]={id:p,length:y,value:_};v.setIndex(g)},handleUTF8:function(){var v=f.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=u.utf8decode(this.fileName),this.fileCommentStr=u.utf8decode(this.fileComment);else{var p=this.findExtraFieldUnicodePath();if(p!==null)this.fileNameStr=p;else{var y=o.transformTo(v,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(y)}var _=this.findExtraFieldUnicodeComment();if(_!==null)this.fileCommentStr=_;else{var g=o.transformTo(v,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(g)}}},findExtraFieldUnicodePath:function(){var v=this.extraFields[28789];if(v){var p=i(v.value);return p.readInt(1)!==1||l(this.fileName)!==p.readInt(4)?null:u.utf8decode(p.readData(v.length-5))}return null},findExtraFieldUnicodeComment:function(){var v=this.extraFields[25461];if(v){var p=i(v.value);return p.readInt(1)!==1||l(this.fileComment)!==p.readInt(4)?null:u.utf8decode(p.readData(v.length-5))}return null}},n.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,n,a){function i(p,y,_){this.name=p,this.dir=_.dir,this.date=_.date,this.comment=_.comment,this.unixPermissions=_.unixPermissions,this.dosPermissions=_.dosPermissions,this._data=y,this._dataBinary=_.binary,this.options={compression:_.compression,compressionOptions:_.compressionOptions}}var o=t("./stream/StreamHelper"),s=t("./stream/DataWorker"),l=t("./utf8"),u=t("./compressedObject"),c=t("./stream/GenericWorker");i.prototype={internalStream:function(p){var y=null,_="string";try{if(!p)throw new Error("No output type specified.");var g=(_=p.toLowerCase())==="string"||_==="text";_!=="binarystring"&&_!=="text"||(_="string"),y=this._decompressWorker();var h=!this._dataBinary;h&&!g&&(y=y.pipe(new l.Utf8EncodeWorker)),!h&&g&&(y=y.pipe(new l.Utf8DecodeWorker))}catch(w){(y=new c("error")).error(w)}return new o(y,_,"")},async:function(p,y){return this.internalStream(p).accumulate(y)},nodeStream:function(p,y){return this.internalStream(p||"nodebuffer").toNodejsStream(y)},_compressWorker:function(p,y){if(this._data instanceof u&&this._data.compression.magic===p.magic)return this._data.getCompressedWorker();var _=this._decompressWorker();return this._dataBinary||(_=_.pipe(new l.Utf8EncodeWorker)),u.createWorkerFrom(_,p,y)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof c?this._data:new s(this._data)}};for(var f=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},v=0;v<f.length;v++)i.prototype[f[v]]=d;n.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,n,a){(function(i){var o,s,l=i.MutationObserver||i.WebKitMutationObserver;if(l){var u=0,c=new l(p),f=i.document.createTextNode("");c.observe(f,{characterData:!0}),o=function(){f.data=u=++u%2}}else if(i.setImmediate||i.MessageChannel===void 0)o="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var y=i.document.createElement("script");y.onreadystatechange=function(){p(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},i.document.documentElement.appendChild(y)}:function(){setTimeout(p,0)};else{var d=new i.MessageChannel;d.port1.onmessage=p,o=function(){d.port2.postMessage(0)}}var v=[];function p(){var y,_;s=!0;for(var g=v.length;g;){for(_=v,v=[],y=-1;++y<g;)_[y]();g=v.length}s=!1}n.exports=function(y){v.push(y)!==1||s||o()}}).call(this,typeof ii!="undefined"?ii:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(t,n,a){var i=t("immediate");function o(){}var s={},l=["REJECTED"],u=["FULFILLED"],c=["PENDING"];function f(g){if(typeof g!="function")throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,g!==o&&y(this,g)}function d(g,h,w){this.promise=g,typeof h=="function"&&(this.onFulfilled=h,this.callFulfilled=this.otherCallFulfilled),typeof w=="function"&&(this.onRejected=w,this.callRejected=this.otherCallRejected)}function v(g,h,w){i(function(){var b;try{b=h(w)}catch(S){return s.reject(g,S)}b===g?s.reject(g,new TypeError("Cannot resolve promise with itself")):s.resolve(g,b)})}function p(g){var h=g&&g.then;if(g&&(typeof g=="object"||typeof g=="function")&&typeof h=="function")return function(){h.apply(g,arguments)}}function y(g,h){var w=!1;function b(T){w||(w=!0,s.reject(g,T))}function S(T){w||(w=!0,s.resolve(g,T))}var A=_(function(){h(S,b)});A.status==="error"&&b(A.value)}function _(g,h){var w={};try{w.value=g(h),w.status="success"}catch(b){w.status="error",w.value=b}return w}(n.exports=f).prototype.finally=function(g){if(typeof g!="function")return this;var h=this.constructor;return this.then(function(w){return h.resolve(g()).then(function(){return w})},function(w){return h.resolve(g()).then(function(){throw w})})},f.prototype.catch=function(g){return this.then(null,g)},f.prototype.then=function(g,h){if(typeof g!="function"&&this.state===u||typeof h!="function"&&this.state===l)return this;var w=new this.constructor(o);return this.state!==c?v(w,this.state===u?g:h,this.outcome):this.queue.push(new d(w,g,h)),w},d.prototype.callFulfilled=function(g){s.resolve(this.promise,g)},d.prototype.otherCallFulfilled=function(g){v(this.promise,this.onFulfilled,g)},d.prototype.callRejected=function(g){s.reject(this.promise,g)},d.prototype.otherCallRejected=function(g){v(this.promise,this.onRejected,g)},s.resolve=function(g,h){var w=_(p,h);if(w.status==="error")return s.reject(g,w.value);var b=w.value;if(b)y(g,b);else{g.state=u,g.outcome=h;for(var S=-1,A=g.queue.length;++S<A;)g.queue[S].callFulfilled(h)}return g},s.reject=function(g,h){g.state=l,g.outcome=h;for(var w=-1,b=g.queue.length;++w<b;)g.queue[w].callRejected(h);return g},f.resolve=function(g){return g instanceof this?g:s.resolve(new this(o),g)},f.reject=function(g){var h=new this(o);return s.reject(h,g)},f.all=function(g){var h=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=g.length,b=!1;if(!w)return this.resolve([]);for(var S=new Array(w),A=0,T=-1,D=new this(o);++T<w;)L(g[T],T);return D;function L(I,P){h.resolve(I).then(function(E){S[P]=E,++A!==w||b||(b=!0,s.resolve(D,S))},function(E){b||(b=!0,s.reject(D,E))})}},f.race=function(g){var h=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=g.length,b=!1;if(!w)return this.resolve([]);for(var S=-1,A=new this(o);++S<w;)T=g[S],h.resolve(T).then(function(D){b||(b=!0,s.resolve(A,D))},function(D){b||(b=!0,s.reject(A,D))});var T;return A}},{immediate:36}],38:[function(t,n,a){var i={};(0,t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),n.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,n,a){var i=t("./zlib/deflate"),o=t("./utils/common"),s=t("./utils/strings"),l=t("./zlib/messages"),u=t("./zlib/zstream"),c=Object.prototype.toString,f=0,d=-1,v=0,p=8;function y(g){if(!(this instanceof y))return new y(g);this.options=o.assign({level:d,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:v,to:""},g||{});var h=this.options;h.raw&&0<h.windowBits?h.windowBits=-h.windowBits:h.gzip&&0<h.windowBits&&h.windowBits<16&&(h.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var w=i.deflateInit2(this.strm,h.level,h.method,h.windowBits,h.memLevel,h.strategy);if(w!==f)throw new Error(l[w]);if(h.header&&i.deflateSetHeader(this.strm,h.header),h.dictionary){var b;if(b=typeof h.dictionary=="string"?s.string2buf(h.dictionary):c.call(h.dictionary)==="[object ArrayBuffer]"?new Uint8Array(h.dictionary):h.dictionary,(w=i.deflateSetDictionary(this.strm,b))!==f)throw new Error(l[w]);this._dict_set=!0}}function _(g,h){var w=new y(h);if(w.push(g,!0),w.err)throw w.msg||l[w.err];return w.result}y.prototype.push=function(g,h){var w,b,S=this.strm,A=this.options.chunkSize;if(this.ended)return!1;b=h===~~h?h:h===!0?4:0,typeof g=="string"?S.input=s.string2buf(g):c.call(g)==="[object ArrayBuffer]"?S.input=new Uint8Array(g):S.input=g,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new o.Buf8(A),S.next_out=0,S.avail_out=A),(w=i.deflate(S,b))!==1&&w!==f)return this.onEnd(w),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||b!==4&&b!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(o.shrinkBuf(S.output,S.next_out))):this.onData(o.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&w!==1);return b===4?(w=i.deflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===f):b!==2||(this.onEnd(f),!(S.avail_out=0))},y.prototype.onData=function(g){this.chunks.push(g)},y.prototype.onEnd=function(g){g===f&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},a.Deflate=y,a.deflate=_,a.deflateRaw=function(g,h){return(h=h||{}).raw=!0,_(g,h)},a.gzip=function(g,h){return(h=h||{}).gzip=!0,_(g,h)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,n,a){var i=t("./zlib/inflate"),o=t("./utils/common"),s=t("./utils/strings"),l=t("./zlib/constants"),u=t("./zlib/messages"),c=t("./zlib/zstream"),f=t("./zlib/gzheader"),d=Object.prototype.toString;function v(y){if(!(this instanceof v))return new v(y);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},y||{});var _=this.options;_.raw&&0<=_.windowBits&&_.windowBits<16&&(_.windowBits=-_.windowBits,_.windowBits===0&&(_.windowBits=-15)),!(0<=_.windowBits&&_.windowBits<16)||y&&y.windowBits||(_.windowBits+=32),15<_.windowBits&&_.windowBits<48&&!(15&_.windowBits)&&(_.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var g=i.inflateInit2(this.strm,_.windowBits);if(g!==l.Z_OK)throw new Error(u[g]);this.header=new f,i.inflateGetHeader(this.strm,this.header)}function p(y,_){var g=new v(_);if(g.push(y,!0),g.err)throw g.msg||u[g.err];return g.result}v.prototype.push=function(y,_){var g,h,w,b,S,A,T=this.strm,D=this.options.chunkSize,L=this.options.dictionary,I=!1;if(this.ended)return!1;h=_===~~_?_:_===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof y=="string"?T.input=s.binstring2buf(y):d.call(y)==="[object ArrayBuffer]"?T.input=new Uint8Array(y):T.input=y,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new o.Buf8(D),T.next_out=0,T.avail_out=D),(g=i.inflate(T,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&L&&(A=typeof L=="string"?s.string2buf(L):d.call(L)==="[object ArrayBuffer]"?new Uint8Array(L):L,g=i.inflateSetDictionary(this.strm,A)),g===l.Z_BUF_ERROR&&I===!0&&(g=l.Z_OK,I=!1),g!==l.Z_STREAM_END&&g!==l.Z_OK)return this.onEnd(g),!(this.ended=!0);T.next_out&&(T.avail_out!==0&&g!==l.Z_STREAM_END&&(T.avail_in!==0||h!==l.Z_FINISH&&h!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(w=s.utf8border(T.output,T.next_out),b=T.next_out-w,S=s.buf2string(T.output,w),T.next_out=b,T.avail_out=D-b,b&&o.arraySet(T.output,T.output,w,b,0),this.onData(S)):this.onData(o.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&(I=!0)}while((0<T.avail_in||T.avail_out===0)&&g!==l.Z_STREAM_END);return g===l.Z_STREAM_END&&(h=l.Z_FINISH),h===l.Z_FINISH?(g=i.inflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===l.Z_OK):h!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(T.avail_out=0))},v.prototype.onData=function(y){this.chunks.push(y)},v.prototype.onEnd=function(y){y===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},a.Inflate=v,a.inflate=p,a.inflateRaw=function(y,_){return(_=_||{}).raw=!0,p(y,_)},a.ungzip=p},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,n,a){var i=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";a.assign=function(l){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var c=u.shift();if(c){if(typeof c!="object")throw new TypeError(c+"must be non-object");for(var f in c)c.hasOwnProperty(f)&&(l[f]=c[f])}}return l},a.shrinkBuf=function(l,u){return l.length===u?l:l.subarray?l.subarray(0,u):(l.length=u,l)};var o={arraySet:function(l,u,c,f,d){if(u.subarray&&l.subarray)l.set(u.subarray(c,c+f),d);else for(var v=0;v<f;v++)l[d+v]=u[c+v]},flattenChunks:function(l){var u,c,f,d,v,p;for(u=f=0,c=l.length;u<c;u++)f+=l[u].length;for(p=new Uint8Array(f),u=d=0,c=l.length;u<c;u++)v=l[u],p.set(v,d),d+=v.length;return p}},s={arraySet:function(l,u,c,f,d){for(var v=0;v<f;v++)l[d+v]=u[c+v]},flattenChunks:function(l){return[].concat.apply([],l)}};a.setTyped=function(l){l?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,o)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,s))},a.setTyped(i)},{}],42:[function(t,n,a){var i=t("./common"),o=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(f){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(f){s=!1}for(var l=new i.Buf8(256),u=0;u<256;u++)l[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function c(f,d){if(d<65537&&(f.subarray&&s||!f.subarray&&o))return String.fromCharCode.apply(null,i.shrinkBuf(f,d));for(var v="",p=0;p<d;p++)v+=String.fromCharCode(f[p]);return v}l[254]=l[254]=1,a.string2buf=function(f){var d,v,p,y,_,g=f.length,h=0;for(y=0;y<g;y++)(64512&(v=f.charCodeAt(y)))==55296&&y+1<g&&(64512&(p=f.charCodeAt(y+1)))==56320&&(v=65536+(v-55296<<10)+(p-56320),y++),h+=v<128?1:v<2048?2:v<65536?3:4;for(d=new i.Buf8(h),y=_=0;_<h;y++)(64512&(v=f.charCodeAt(y)))==55296&&y+1<g&&(64512&(p=f.charCodeAt(y+1)))==56320&&(v=65536+(v-55296<<10)+(p-56320),y++),v<128?d[_++]=v:(v<2048?d[_++]=192|v>>>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<p;v++)d[v]=f.charCodeAt(v);return d},a.buf2string=function(f,d){var v,p,y,_,g=d||f.length,h=new Array(2*g);for(v=p=0;v<g;)if((y=f[v++])<128)h[p++]=y;else if(4<(_=l[y]))h[p++]=65533,v+=_-1;else{for(y&=_===2?31:_===3?15:7;1<_&&v<g;)y=y<<6|63&f[v++],_--;1<_?h[p++]=65533:y<65536?h[p++]=y:(y-=65536,h[p++]=55296|y>>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<s?2e3:s;c=c+(u=u+o[l++]|0)|0,--f;);u%=65521,c%=65521}return u|c<<16|0}},{}],44:[function(t,n,a){n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,n,a){var i=function(){for(var o,s=[],l=0;l<256;l++){o=l;for(var u=0;u<8;u++)o=1&o?3988292384^o>>>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<f;d++)o=o>>>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)-(4<O?9:0)}function K(O){for(var st=O.length;0<=--st;)O[st]=0}function U(O){var st=O.state,nt=st.pending;nt>O.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]&&tt<Xt);if(X=I-(Xt-tt),tt=Xt-I,pt<X){if(O.match_start=st,vt<=(pt=X))break;Ce=Tt[tt+pt-1],ce=Tt[tt+pt]}}while((st=Dt[st&Bt])>at&&--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<Bt&&(Bt=Tt),nt=Bt===0?0:(pt.avail_in-=Bt,o.arraySet(vt,pt.input,pt.next_in,Bt,at),pt.state.wrap===1?pt.adler=l(pt.adler,vt,Bt,at):pt.state.wrap===2&&(pt.adler=u(pt.adler,vt,Bt,at)),pt.next_in+=Bt,pt.total_in+=Bt,Bt),O.lookahead+=nt,O.lookahead+O.insert>=L)for(tt=O.strstart-O.insert,O.ins_h=O.window[tt],O.ins_h=(O.ins_h<<O.hash_shift^O.window[tt+1])&O.hash_mask;O.insert&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[tt+L-1])&O.hash_mask,O.prev[tt&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=tt,tt++,O.insert--,!(O.lookahead+O.insert<L)););}while(O.lookahead<P&&O.strm.avail_in!==0)}function Kt(O,st){for(var nt,X;;){if(O.lookahead<P){if(Nt(O),O.lookahead<P&&st===f)return M;if(O.lookahead===0)break}if(nt=0,O.lookahead>=L&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+L-1])&O.hash_mask,nt=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),nt!==0&&O.strstart-nt<=O.w_size-P&&(O.match_length=it(O,nt)),O.match_length>=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<<O.hash_shift^O.window[O.strstart+L-1])&O.hash_mask,nt=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart,--O.match_length!=0;);O.strstart++}else O.strstart+=O.match_length,O.match_length=0,O.ins_h=O.window[O.strstart],O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+1])&O.hash_mask;else X=s._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++;if(X&&($(O,!1),O.strm.avail_out===0))return M}return O.insert=O.strstart<L-1?O.strstart:L-1,st===d?($(O,!0),O.strm.avail_out===0?F:W):O.last_lit&&($(O,!1),O.strm.avail_out===0)?M:B}function xt(O,st){for(var nt,X,Z;;){if(O.lookahead<P){if(Nt(O),O.lookahead<P&&st===f)return M;if(O.lookahead===0)break}if(nt=0,O.lookahead>=L&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+L-1])&O.hash_mask,nt=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),O.prev_length=O.match_length,O.prev_match=O.match_start,O.match_length=L-1,nt!==0&&O.prev_length<O.max_lazy_match&&O.strstart-nt<=O.w_size-P&&(O.match_length=it(O,nt),O.match_length<=5&&(O.strategy===1||O.match_length===L&&4096<O.strstart-O.match_start)&&(O.match_length=L-1)),O.prev_length>=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.hash_shift^O.window[O.strstart+L-1])&O.hash_mask,nt=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),--O.prev_length!=0;);if(O.match_available=0,O.match_length=L-1,O.strstart++,X&&($(O,!1),O.strm.avail_out===0))return M}else if(O.match_available){if((X=s._tr_tally(O,0,O.window[O.strstart-1]))&&$(O,!1),O.strstart++,O.lookahead--,O.strm.avail_out===0)return M}else O.match_available=1,O.strstart++,O.lookahead--}return O.match_available&&(X=s._tr_tally(O,0,O.window[O.strstart-1]),O.match_available=0),O.insert=O.strstart<L-1?O.strstart:L-1,st===d?($(O,!0),O.strm.avail_out===0?F:W):O.last_lit&&($(O,!1),O.strm.avail_out===0)?M:B}function wt(O,st,nt,X,Z){this.good_length=O,this.max_lazy=st,this.nice_length=nt,this.max_chain=X,this.func=Z}function Ot(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=h,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*T),this.dyn_dtree=new o.Buf16(2*(2*S+1)),this.bl_tree=new o.Buf16(2*(2*A+1)),K(this.dyn_ltree),K(this.dyn_dtree),K(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(D+1),this.heap=new o.Buf16(2*b+1),K(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*b+1),K(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function bt(O){var st;return O&&O.state?(O.total_in=O.total_out=0,O.data_type=g,(st=O.state).pending=0,st.pending_out=0,st.wrap<0&&(st.wrap=-st.wrap),st.status=st.wrap?E:R,O.adler=st.wrap===2?0:1,st.last_flush=f,s._tr_init(st),v):j(O,p)}function Pt(O){var st=bt(O);return st===v&&function(nt){nt.window_size=2*nt.w_size,K(nt.head),nt.max_lazy_match=i[nt.level].max_lazy,nt.good_match=i[nt.level].good_length,nt.nice_match=i[nt.level].nice_length,nt.max_chain_length=i[nt.level].max_chain,nt.strstart=0,nt.block_start=0,nt.lookahead=0,nt.insert=0,nt.match_length=nt.prev_length=L-1,nt.match_available=0,nt.ins_h=0}(O.state),st}function se(O,st,nt,X,Z,tt){if(!O)return p;var pt=1;if(st===y&&(st=6),X<0?(pt=0,X=-X):15<X&&(pt=2,X-=16),Z<1||w<Z||nt!==h||X<8||15<X||st<0||9<st||tt<0||_<tt)return j(O,p);X===8&&(X=9);var vt=new Ot;return(O.state=vt).strm=O,vt.wrap=pt,vt.gzhead=null,vt.w_bits=X,vt.w_size=1<<vt.w_bits,vt.w_mask=vt.w_size-1,vt.hash_bits=Z+7,vt.hash_size=1<<vt.hash_bits,vt.hash_mask=vt.hash_size-1,vt.hash_shift=~~((vt.hash_bits+L-1)/L),vt.window=new o.Buf8(2*vt.w_size),vt.head=new o.Buf16(vt.hash_size),vt.prev=new o.Buf16(vt.w_size),vt.lit_bufsize=1<<Z+6,vt.pending_buf_size=4*vt.lit_bufsize,vt.pending_buf=new o.Buf8(vt.pending_buf_size),vt.d_buf=1*vt.lit_bufsize,vt.l_buf=3*vt.lit_bufsize,vt.level=st,vt.strategy=tt,vt.method=nt,Pt(O)}i=[new wt(0,0,0,0,function(O,st){var nt=65535;for(nt>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<st||st<0)return O?j(O,p):p;if(X=O.state,!O.output||!O.input&&O.avail_in!==0||X.status===666&&st!==d)return j(O,O.avail_out===0?-5:p);if(X.strm=O,nt=X.last_flush,X.last_flush=st,X.status===E)if(X.wrap===2)O.adler=0,ut(X,31),ut(X,139),ut(X,8),X.gzhead?(ut(X,(X.gzhead.text?1:0)+(X.gzhead.hcrc?2:0)+(X.gzhead.extra?4:0)+(X.gzhead.name?8:0)+(X.gzhead.comment?16:0)),ut(X,255&X.gzhead.time),ut(X,X.gzhead.time>>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.gzindex<X.gzhead.name.length?255&X.gzhead.name.charCodeAt(X.gzindex++):0,ut(X,tt)}while(tt!==0);X.gzhead.hcrc&&X.pending>Z&&(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.gzindex<X.gzhead.comment.length?255&X.gzhead.comment.charCodeAt(X.gzindex++):0,ut(X,tt)}while(tt!==0);X.gzhead.hcrc&&X.pending>Z&&(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&&0<at.strstart&&(Dt=ce[Xt=at.strstart-1])===ce[++Xt]&&Dt===ce[++Xt]&&Dt===ce[++Xt]){Ce=at.strstart+I;do;while(Dt===ce[++Xt]&&Dt===ce[++Xt]&&Dt===ce[++Xt]&&Dt===ce[++Xt]&&Dt===ce[++Xt]&&Dt===ce[++Xt]&&Dt===ce[++Xt]&&Dt===ce[++Xt]&&Xt<Ce);at.match_length=I-(Ce-Xt),at.match_length>at.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<X.wrap&&(X.wrap=-X.wrap),X.pending!==0?v:1)},a.deflateEnd=function(O){var st;return O&&O.state?(st=O.state.status)!==E&&st!==69&&st!==73&&st!==91&&st!==103&&st!==R&&st!==666?j(O,p):(O.state=null,st===R?j(O,-3):v):p},a.deflateSetDictionary=function(O,st){var nt,X,Z,tt,pt,vt,at,Tt,Bt=st.length;if(!O||!O.state||(tt=(nt=O.state).wrap)===2||tt===1&&nt.status!==E||nt.lookahead)return p;for(tt===1&&(O.adler=l(O.adler,st,Bt,0)),nt.wrap=0,Bt>=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<<nt.hash_shift^nt.window[X+L-1])&nt.hash_mask,nt.prev[X&nt.w_mask]=nt.head[nt.ins_h],nt.head[nt.ins_h]=X,X++,--Z;);nt.strstart=X,nt.lookahead=L-1,Nt(nt)}return nt.strstart+=nt.lookahead,nt.block_start=nt.strstart,nt.insert=nt.lookahead,nt.lookahead=0,nt.match_length=nt.prev_length=L-1,nt.match_available=0,O.next_in=vt,O.input=at,O.avail_in=pt,nt.wrap=tt,v},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,n,a){n.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,n,a){n.exports=function(i,o){var s,l,u,c,f,d,v,p,y,_,g,h,w,b,S,A,T,D,L,I,P,E,R,M,B;s=i.state,l=i.next_in,M=i.input,u=l+(i.avail_in-5),c=i.next_out,B=i.output,f=c-(o-i.avail_out),d=c+(i.avail_out-257),v=s.dmax,p=s.wsize,y=s.whave,_=s.wnext,g=s.window,h=s.hold,w=s.bits,b=s.lencode,S=s.distcode,A=(1<<s.lenbits)-1,T=(1<<s.distbits)-1;t:do{w<15&&(h+=M[l++]<<w,w+=8,h+=M[l++]<<w,w+=8),D=b[h&A];e:for(;;){if(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)-1)];continue e}if(32&L){s.mode=12;break t}i.msg="invalid literal/length code",s.mode=30;break t}I=65535&D,(L&=15)&&(w<L&&(h+=M[l++]<<w,w+=8),I+=h&(1<<L)-1,h>>>=L,w-=L),w<15&&(h+=M[l++]<<w,w+=8,h+=M[l++]<<w,w+=8),D=S[h&T];r:for(;;){if(h>>>=L=D>>>24,w-=L,!(16&(L=D>>>16&255))){if(!(64&L)){D=S[(65535&D)+(h&(1<<L)-1)];continue r}i.msg="invalid distance code",s.mode=30;break t}if(P=65535&D,w<(L&=15)&&(h+=M[l++]<<w,(w+=8)<L&&(h+=M[l++]<<w,w+=8)),v<(P+=h&(1<<L)-1)){i.msg="invalid distance too far back",s.mode=30;break t}if(h>>>=L,w-=L,(L=c-f)<P){if(y<(L=P-L)&&s.sane){i.msg="invalid distance too far back",s.mode=30;break t}if(R=g,(E=0)===_){if(E+=p-L,L<I){for(I-=L;B[c++]=g[E++],--L;);E=c-P,R=B}}else if(_<L){if(E+=p+_-L,(L-=_)<I){for(I-=L;B[c++]=g[E++],--L;);if(E=0,_<I){for(I-=L=_;B[c++]=g[E++],--L;);E=c-P,R=B}}}else if(E+=_-L,L<I){for(I-=L;B[c++]=g[E++],--L;);E=c-P,R=B}for(;2<I;)B[c++]=R[E++],B[c++]=R[E++],B[c++]=R[E++],I-=3;I&&(B[c++]=R[E++],1<I&&(B[c++]=R[E++]))}else{for(E=c-P;B[c++]=B[E++],B[c++]=B[E++],B[c++]=B[E++],2<(I-=3););I&&(B[c++]=B[E++],1<I&&(B[c++]=B[E++]))}break}}break}}while(l<u&&c<d);l-=I=w>>3,h&=(1<<(w-=I<<3))-1,i.next_in=l,i.next_out=c,i.avail_in=l<u?u-l+5:5-(l-u),i.avail_out=c<d?d-c+257:257-(c-d),s.hold=h,s.bits=w}},{}],49:[function(t,n,a){var i=t("../utils/common"),o=t("./adler32"),s=t("./crc32"),l=t("./inffast"),u=t("./inftrees"),c=1,f=2,d=0,v=-2,p=1,y=852,_=592;function g(E){return(E>>>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<R)?v:(B.window!==null&&B.wbits!==R&&(B.window=null),B.wrap=M,B.wbits=R,b(E))):v}function A(E,R){var M,B;return E?(B=new h,(E.state=B).window=null,(M=S(E,R))!==d&&(E.state=null),M):v}var T,D,L=!0;function I(E){if(L){var R;for(T=new i.Buf32(512),D=new i.Buf32(32),R=0;R<144;)E.lens[R++]=8;for(;R<256;)E.lens[R++]=9;for(;R<280;)E.lens[R++]=7;for(;R<288;)E.lens[R++]=8;for(u(c,E.lens,0,288,T,0,E.work,{bits:9}),R=0;R<32;)E.lens[R++]=5;u(f,E.lens,0,32,D,0,E.work,{bits:5}),L=!1}E.lencode=T,E.lenbits=9,E.distcode=D,E.distbits=5}function P(E,R,M,B){var F,W=E.state;return W.window===null&&(W.wsize=1<<W.wbits,W.wnext=0,W.whave=0,W.window=new i.Buf8(W.wsize)),B>=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<W.wsize&&(W.whave+=F))),0}a.inflateReset=b,a.inflateReset2=S,a.inflateResetKeep=w,a.inflateInit=function(E){return A(E,15)},a.inflateInit2=A,a.inflate=function(E,R){var M,B,F,W,j,H,K,U,$,ut,ot,it,Nt,Kt,xt,wt,Ot,bt,Pt,se,O,st,nt,X,Z=0,tt=new i.Buf8(4),pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!E||!E.state||!E.output||!E.input&&E.avail_in!==0)return v;(M=E.state).mode===12&&(M.mode=13),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,ut=H,ot=K,st=d;t:for(;;)switch(M.mode){case p:if(M.wrap===0){M.mode=13;break}for(;$<16;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}if(2&M.wrap&&U===35615){tt[M.check=0]=255&U,tt[1]=U>>>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<<O,E.adler=M.check=1,M.mode=512&U?10:12,$=U=0;break;case 2:for(;$<16;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}if(M.flags=U,(255&M.flags)!=8){E.msg="unknown compression method",M.mode=30;break}if(57344&M.flags){E.msg="unknown header flags set",M.mode=30;break}M.head&&(M.head.text=U>>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<H;);if(512&M.flags&&(M.check=s(M.check,B,it,W)),H-=it,W+=it,O)break t}else M.head&&(M.head.name=null);M.length=0,M.mode=8;case 8:if(4096&M.flags){if(H===0)break t;for(it=0;O=B[W+it++],M.head&&O&&M.length<65536&&(M.head.comment+=String.fromCharCode(O)),O&&it<H;);if(512&M.flags&&(M.check=s(M.check,B,it,W)),H-=it,W+=it,O)break t}else M.head&&(M.head.comment=null);M.mode=9;case 9:if(512&M.flags){for(;$<16;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}if(U!==(65535&M.check)){E.msg="header crc mismatch",M.mode=30;break}$=U=0}M.head&&(M.head.hcrc=M.flags>>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<it&&(it=H),K<it&&(it=K),it===0)break t;i.arraySet(F,B,W,it,j),H-=it,W+=it,K-=it,j+=it,M.length-=it;break}M.mode=12;break;case 17:for(;$<14;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}if(M.nlen=257+(31&U),U>>>=5,$-=5,M.ndist=1+(31&U),U>>>=5,$-=5,M.ncode=4+(15&U),U>>>=4,$-=4,286<M.nlen||30<M.ndist){E.msg="too many length or distance symbols",M.mode=30;break}M.have=0,M.mode=18;case 18:for(;M.have<M.ncode;){for(;$<3;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}M.lens[pt[M.have++]]=7&U,U>>>=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<M.nlen+M.ndist;){for(;wt=(Z=M.lencode[U&(1<<M.lenbits)-1])>>>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;$<X;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}if(U>>>=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;$<X;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}$-=xt,O=0,it=3+(7&(U>>>=xt)),U>>>=3,$-=3}else{for(X=xt+7;$<X;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}$-=xt,O=0,it=11+(127&(U>>>=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<<M.lenbits)-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+Pt)-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;$<X;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}M.length+=U&(1<<M.extra)-1,U>>>=M.extra,$-=M.extra,M.back+=M.extra}M.was=M.length,M.mode=23;case 23:for(;wt=(Z=M.distcode[U&(1<<M.distbits)-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+Pt)-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;$<X;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}M.offset+=U&(1<<M.extra)-1,U>>>=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(K<it&&(it=K),K-=it,M.length-=it;F[j++]=Kt[Nt++],--it;);M.length===0&&(M.mode=21);break;case 26:if(K===0)break t;F[j++]=M.length,K--,M.mode=21;break;case 27:if(M.wrap){for(;$<32;){if(H===0)break t;H--,U|=B[W++]<<$,$+=8}if(ot-=K,E.total_out+=ot,M.total+=ot,ot&&(E.adler=M.check=M.flags?s(M.check,F,ot,j-ot):o(M.check,F,ot,j-ot)),ot=K,(M.flags?U:g(U))!==M.check){E.msg="incorrect data check",M.mode=30;break}$=U=0}M.mode=28;case 28:if(M.wrap&&M.flags){for(;$<32;){if(H===0)break t;H--,U+=B[W++]<<$,$+=8}if(U!==(4294967295&M.total)){E.msg="incorrect length check",M.mode=30;break}$=U=0}M.mode=29;case 29:st=1;break t;case 30:st=-3;break t;case 31:return-4;case 32:default:return v}return E.next_out=j,E.avail_out=K,E.next_in=W,E.avail_in=H,M.hold=U,M.bits=$,(M.wsize||ot!==E.avail_out&&M.mode<30&&(M.mode<27||R!==4))&&P(E,E.output,E.next_out,ot-E.avail_out)?(M.mode=31,-4):(ut-=E.avail_in,ot-=E.avail_out,E.total_in+=ut,E.total_out+=ot,M.total+=ot,M.wrap&&ot&&(E.adler=M.check=M.flags?s(M.check,F,ot,E.next_out-ot):o(M.check,F,ot,E.next_out-ot)),E.data_type=M.bits+(M.last?64:0)+(M.mode===12?128:0)+(M.mode===20||M.mode===15?256:0),(ut==0&&ot===0||R===4)&&st===d&&(st=-5),st)},a.inflateEnd=function(E){if(!E||!E.state)return v;var R=E.state;return R.window&&(R.window=null),E.state=null,d},a.inflateGetHeader=function(E,R){var M;return E&&E.state&&2&(M=E.state).wrap?((M.head=R).done=!1,d):v},a.inflateSetDictionary=function(E,R){var M,B=R.length;return E&&E.state?(M=E.state).wrap!==0&&M.mode!==11?v:M.mode===11&&o(1,R,B,0)!==M.check?-3:P(E,R,B,B)?(M.mode=31,-4):(M.havedict=1,d):v},a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,n,a){var i=t("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];n.exports=function(c,f,d,v,p,y,_,g){var h,w,b,S,A,T,D,L,I,P=g.bits,E=0,R=0,M=0,B=0,F=0,W=0,j=0,H=0,K=0,U=0,$=null,ut=0,ot=new i.Buf16(16),it=new i.Buf16(16),Nt=null,Kt=0;for(E=0;E<=15;E++)ot[E]=0;for(R=0;R<v;R++)ot[f[d+R]]++;for(F=P,B=15;1<=B&&ot[B]===0;B--);if(B<F&&(F=B),B===0)return p[y++]=20971520,p[y++]=20971520,g.bits=1,0;for(M=1;M<B&&ot[M]===0;M++);for(F<M&&(F=M),E=H=1;E<=15;E++)if(H<<=1,(H-=ot[E])<0)return-1;if(0<H&&(c===0||B!==1))return-1;for(it[1]=0,E=1;E<15;E++)it[E+1]=it[E]+ot[E];for(R=0;R<v;R++)f[d+R]!==0&&(_[it[f[d+R]]++]=R);if(T=c===0?($=Nt=_,19):c===1?($=o,ut-=257,Nt=s,Kt-=257,256):($=l,Nt=u,-1),E=M,A=y,j=R=U=0,b=-1,S=(K=1<<(W=F))-1,c===1&&852<K||c===2&&592<K)return 1;for(;;){for(D=E-j,I=_[R]<T?(L=0,_[R]):_[R]>T?(L=Nt[Kt+_[R]],$[ut+_[R]]):(L=96,0),h=1<<E-j,M=w=1<<W;p[A+(U>>j)+(w-=h)]=D<<24|L<<16|I|0,w!==0;);for(h=1<<E-1;U&h;)h>>=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<E&&(U&S)!==b){for(j===0&&(j=F),A+=M,H=1<<(W=E-j);W+j<B&&!((H-=ot[W+j])<=0);)W++,H<<=1;if(K+=1<<W,c===1&&852<K||c===2&&592<K)return 1;p[b=U&S]=F<<24|W<<16|A-y|0}}return U!==0&&(p[A+U]=E-j<<24|64<<16|0),g.bits=F,0}},{"../utils/common":41}],51:[function(t,n,a){n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,n,a){var i=t("../utils/common"),o=0,s=1;function l(Z){for(var tt=Z.length;0<=--tt;)Z[tt]=0}var u=0,c=29,f=256,d=f+1+c,v=30,p=19,y=2*d+1,_=15,g=16,h=7,w=256,b=16,S=17,A=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],P=new Array(2*(d+2));l(P);var E=new Array(2*v);l(E);var R=new Array(512);l(R);var M=new Array(256);l(M);var B=new Array(c);l(B);var F,W,j,H=new Array(v);function K(Z,tt,pt,vt,at){this.static_tree=Z,this.extra_bits=tt,this.extra_base=pt,this.elems=vt,this.max_length=at,this.has_stree=Z&&Z.length}function U(Z,tt){this.dyn_tree=Z,this.max_code=0,this.stat_desc=tt}function $(Z){return Z<256?R[Z]:R[256+(Z>>>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<<Z.bi_valid&65535,ut(Z,Z.bi_buf),Z.bi_buf=tt>>g-Z.bi_valid,Z.bi_valid+=pt-g):(Z.bi_buf|=tt<<Z.bi_valid&65535,Z.bi_valid+=pt)}function it(Z,tt,pt){ot(Z,pt[2*tt],pt[2*tt+1])}function Nt(Z,tt){for(var pt=0;pt|=1&Z,Z>>>=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<d;tt++)Z.dyn_ltree[2*tt]=0;for(tt=0;tt<v;tt++)Z.dyn_dtree[2*tt]=0;for(tt=0;tt<p;tt++)Z.bl_tree[2*tt]=0;Z.dyn_ltree[2*w]=1,Z.opt_len=Z.static_len=0,Z.last_lit=Z.matches=0}function wt(Z){8<Z.bi_valid?ut(Z,Z.bi_buf):0<Z.bi_valid&&(Z.pending_buf[Z.pending++]=Z.bi_buf),Z.bi_buf=0,Z.bi_valid=0}function Ot(Z,tt,pt,vt){var at=2*tt,Tt=2*pt;return Z[at]<Z[Tt]||Z[at]===Z[Tt]&&vt[tt]<=vt[pt]}function bt(Z,tt,pt){for(var vt=Z.heap[pt],at=pt<<1;at<=Z.heap_len&&(at<Z.heap_len&&Ot(tt,Z.heap[at+1],Z.heap[at],Z.depth)&&at++,!Ot(tt,vt,Z.heap[at],Z.depth));)Z.heap[pt]=Z.heap[at],pt=at,at<<=1;Z.heap[pt]=vt}function Pt(Z,tt,pt){var vt,at,Tt,Bt,Dt=0;if(Z.last_lit!==0)for(;vt=Z.pending_buf[Z.d_buf+2*Dt]<<8|Z.pending_buf[Z.d_buf+2*Dt+1],at=Z.pending_buf[Z.l_buf+Dt],Dt++,vt===0?it(Z,at,tt):(it(Z,(Tt=M[at])+f+1,tt),(Bt=T[Tt])!==0&&ot(Z,at-=B[Tt],Bt),it(Z,Tt=$(--vt),pt),(Bt=D[Tt])!==0&&ot(Z,vt-=H[Tt],Bt)),Dt<Z.last_lit;);it(Z,w,tt)}function se(Z,tt){var pt,vt,at,Tt=tt.dyn_tree,Bt=tt.stat_desc.static_tree,Dt=tt.stat_desc.has_stree,Xt=tt.stat_desc.elems,Ce=-1;for(Z.heap_len=0,Z.heap_max=y,pt=0;pt<Xt;pt++)Tt[2*pt]!==0?(Z.heap[++Z.heap_len]=Ce=pt,Z.depth[pt]=0):Tt[2*pt+1]=0;for(;Z.heap_len<2;)Tt[2*(at=Z.heap[++Z.heap_len]=Ce<2?++Ce:0)]=1,Z.depth[at]=0,Z.opt_len--,Dt&&(Z.static_len-=Bt[2*at+1]);for(tt.max_code=Ce,pt=Z.heap_len>>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<y;Tn++)To<(Fe=Rr[2*Rr[2*(Cr=ce.heap[Tn])+1]+1]+1)&&(Fe=To,wu++),Rr[2*Cr+1]=Fe,ei<Cr||(ce.bl_count[Fe]++,ta=0,Hf<=Cr&&(ta=lr[Cr-Hf]),Aa=Rr[2*Cr],ce.opt_len+=Aa*(Fe+ta),xe&&(ce.static_len+=Aa*(Ks[2*Cr+1]+ta)));if(wu!==0){do{for(Fe=To-1;ce.bl_count[Fe]===0;)Fe--;ce.bl_count[Fe]--,ce.bl_count[Fe+1]+=2,ce.bl_count[To]--,wu-=2}while(0<wu);for(Fe=To;Fe!==0;Fe--)for(Cr=ce.bl_count[Fe];Cr!==0;)ei<(Cn=ce.heap[--Tn])||(Rr[2*Cn+1]!==Fe&&(ce.opt_len+=(Fe-Rr[2*Cn+1])*Rr[2*Cn],Rr[2*Cn+1]=Fe),Cr--)}}(Z,tt),Kt(Tt,Ce,Z.bl_count)}function O(Z,tt,pt){var vt,at,Tt=-1,Bt=tt[1],Dt=0,Xt=7,Ce=4;for(Bt===0&&(Xt=138,Ce=3),tt[2*(pt+1)+1]=65535,vt=0;vt<=pt;vt++)at=Bt,Bt=tt[2*(vt+1)+1],++Dt<Xt&&at===Bt||(Dt<Ce?Z.bl_tree[2*at]+=Dt:at!==0?(at!==Tt&&Z.bl_tree[2*at]++,Z.bl_tree[2*b]++):Dt<=10?Z.bl_tree[2*S]++:Z.bl_tree[2*A]++,Tt=at,Ce=(Dt=0)===Bt?(Xt=138,3):at===Bt?(Xt=6,3):(Xt=7,4))}function st(Z,tt,pt){var vt,at,Tt=-1,Bt=tt[1],Dt=0,Xt=7,Ce=4;for(Bt===0&&(Xt=138,Ce=3),vt=0;vt<=pt;vt++)if(at=Bt,Bt=tt[2*(vt+1)+1],!(++Dt<Xt&&at===Bt)){if(Dt<Ce)for(;it(Z,at,Z.bl_tree),--Dt!=0;);else at!==0?(at!==Tt&&(it(Z,at,Z.bl_tree),Dt--),it(Z,b,Z.bl_tree),ot(Z,Dt-3,2)):Dt<=10?(it(Z,S,Z.bl_tree),ot(Z,Dt-3,3)):(it(Z,A,Z.bl_tree),ot(Z,Dt-11,7));Tt=at,Ce=(Dt=0)===Bt?(Xt=138,3):at===Bt?(Xt=6,3):(Xt=7,4)}}l(H);var nt=!1;function X(Z,tt,pt,vt){ot(Z,(u<<1)+(vt?1:0),3),function(at,Tt,Bt,Dt){wt(at),ut(at,Bt),ut(at,~Bt),i.arraySet(at.pending_buf,at.window,Tt,Bt,at.pending),at.pending+=Bt}(Z,tt,pt)}a._tr_init=function(Z){nt||(function(){var tt,pt,vt,at,Tt,Bt=new Array(_+1);for(at=vt=0;at<c-1;at++)for(B[at]=vt,tt=0;tt<1<<T[at];tt++)M[vt++]=at;for(M[vt-1]=at,at=Tt=0;at<16;at++)for(H[at]=Tt,tt=0;tt<1<<D[at];tt++)R[Tt++]=at;for(Tt>>=7;at<v;at++)for(H[at]=Tt<<7,tt=0;tt<1<<D[at]-7;tt++)R[256+Tt++]=at;for(pt=0;pt<=_;pt++)Bt[pt]=0;for(tt=0;tt<=143;)P[2*tt+1]=8,tt++,Bt[8]++;for(;tt<=255;)P[2*tt+1]=9,tt++,Bt[9]++;for(;tt<=279;)P[2*tt+1]=7,tt++,Bt[7]++;for(;tt<=287;)P[2*tt+1]=8,tt++,Bt[8]++;for(Kt(P,d+1,Bt),tt=0;tt<v;tt++)E[2*tt+1]=5,E[2*tt]=Nt(tt,5);F=new K(P,T,f+1,d,_),W=new K(E,D,0,v,_),j=new K(new Array(0),L,0,p,h)}(),nt=!0),Z.l_desc=new U(Z.dyn_ltree,F),Z.d_desc=new U(Z.dyn_dtree,W),Z.bl_desc=new U(Z.bl_tree,j),Z.bi_buf=0,Z.bi_valid=0,xt(Z)},a._tr_stored_block=X,a._tr_flush_block=function(Z,tt,pt,vt){var at,Tt,Bt=0;0<Z.level?(Z.strm.data_type===2&&(Z.strm.data_type=function(Dt){var Xt,Ce=4093624447;for(Xt=0;Xt<=31;Xt++,Ce>>>=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<f;Xt++)if(Dt.dyn_ltree[2*Xt]!==0)return s;return o}(Z)),se(Z,Z.l_desc),se(Z,Z.d_desc),Bt=function(Dt){var Xt;for(O(Dt,Dt.dyn_ltree,Dt.l_desc.max_code),O(Dt,Dt.dyn_dtree,Dt.d_desc.max_code),se(Dt,Dt.bl_desc),Xt=p-1;3<=Xt&&Dt.bl_tree[2*I[Xt]+1]===0;Xt--);return Dt.opt_len+=3*(Xt+1)+5+5+4,Xt}(Z),at=Z.opt_len+3+7>>>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<ce;vr++)ot(Dt,Dt.bl_tree[2*I[vr]+1],3);st(Dt,Dt.dyn_ltree,Xt-1),st(Dt,Dt.dyn_dtree,Ce-1)}(Z,Z.l_desc.max_code+1,Z.d_desc.max_code+1,Bt+1),Pt(Z,Z.dyn_ltree,Z.dyn_dtree)),xt(Z),vt&&wt(Z)},a._tr_tally=function(Z,tt,pt){return Z.pending_buf[Z.d_buf+2*Z.last_lit]=tt>>>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<S.length;A++)S[A]=arguments[A+1];var T={callback:b,args:S};return v[d]=T,l(d),d++},_.clearImmediate=g}function g(b){delete v[b]}function h(b){if(p)setTimeout(h,0,b);else{var S=v[b];if(S){p=!0;try{(function(A){var T=A.callback,D=A.args;switch(D.length){case 0:T();break;case 1:T(D[0]);break;case 2:T(D[0],D[1]);break;case 3:T(D[0],D[1],D[2]);break;default:T.apply(s,D)}})(S)}finally{g(b),p=!1}}}}function w(b){b.source===o&&typeof b.data=="string"&&b.data.indexOf(f)===0&&h(+b.data.slice(f.length))}})(typeof self=="undefined"?i===void 0?this:i:self)}).call(this,typeof ii!="undefined"?ii:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})})(ex);var B5=ex.exports;const z5=O5(B5);var oh={exports:{}};/**
- + * @license
- + * Lodash <https://lodash.com/>
- + * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- + * Released under MIT license <https://lodash.com/license>
- + * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- + * 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<Re;){var xr=et[fe];dt(Gt,xr,ct(xr),et)}return Gt}function ra(et,dt){for(var ct=-1,Gt=et==null?0:et.length;++ct<Gt&&dt(et[ct],ct,et)!==!1;);return et}function ott(et,dt){for(var ct=et==null?0:et.length;ct--&&dt(et[ct],ct,et)!==!1;);return et}function BN(et,dt){for(var ct=-1,Gt=et==null?0:et.length;++ct<Gt;)if(!dt(et[ct],ct,et))return!1;return!0}function Co(et,dt){for(var ct=-1,Gt=et==null?0:et.length,fe=0,Re=[];++ct<Gt;){var xr=et[ct];dt(xr,ct,et)&&(Re[fe++]=xr)}return Re}function Cp(et,dt){var ct=et==null?0:et.length;return!!ct&&xu(et,dt,0)>-1}function Qw(et,dt,ct){for(var Gt=-1,fe=et==null?0:et.length;++Gt<fe;)if(ct(dt,et[Gt]))return!0;return!1}function $e(et,dt){for(var ct=-1,Gt=et==null?0:et.length,fe=Array(Gt);++ct<Gt;)fe[ct]=dt(et[ct],ct,et);return fe}function Do(et,dt){for(var ct=-1,Gt=dt.length,fe=et.length;++ct<Gt;)et[fe+ct]=dt[ct];return et}function Jw(et,dt,ct,Gt){var fe=-1,Re=et==null?0:et.length;for(Gt&&Re&&(ct=et[++fe]);++fe<Re;)ct=dt(ct,et[fe],fe,et);return ct}function stt(et,dt,ct,Gt){var fe=et==null?0:et.length;for(Gt&&fe&&(ct=et[--fe]);fe--;)ct=dt(ct,et[fe],fe,et);return ct}function tb(et,dt){for(var ct=-1,Gt=et==null?0:et.length;++ct<Gt;)if(dt(et[ct],ct,et))return!0;return!1}var ltt=eb("length");function utt(et){return et.split("")}function ctt(et){return et.match(mJ)||[]}function zN(et,dt,ct){var Gt;return ct(et,function(fe,Re,xr){if(dt(fe,Re,xr))return Gt=Re,!1}),Gt}function Dp(et,dt,ct,Gt){for(var fe=et.length,Re=ct+(Gt?1:-1);Gt?Re--:++Re<fe;)if(dt(et[Re],Re,et))return Re;return-1}function xu(et,dt,ct){return dt===dt?xtt(et,dt,ct):Dp(et,VN,ct)}function ftt(et,dt,ct,Gt){for(var fe=ct-1,Re=et.length;++fe<Re;)if(Gt(et[fe],dt))return fe;return-1}function VN(et){return et!==et}function FN(et,dt){var ct=et==null?0:et.length;return ct?nb(et,dt)/ct:K}function eb(et){return function(dt){return dt==null?t:dt[et]}}function rb(et){return function(dt){return et==null?t:et[dt]}}function GN(et,dt,ct,Gt,fe){return fe(et,function(Re,xr,He){ct=Gt?(Gt=!1,Re):dt(ct,Re,xr,He)}),ct}function htt(et,dt){var ct=et.length;for(et.sort(dt);ct--;)et[ct]=et[ct].value;return et}function nb(et,dt){for(var ct,Gt=-1,fe=et.length;++Gt<fe;){var Re=dt(et[Gt]);Re!==t&&(ct=ct===t?Re:ct+Re)}return ct}function ab(et,dt){for(var ct=-1,Gt=Array(et);++ct<et;)Gt[ct]=dt(ct);return Gt}function vtt(et,dt){return $e(dt,function(ct){return[ct,et[ct]]})}function WN(et){return et&&et.slice(0,YN(et)+1).replace(Uw,"")}function Ln(et){return function(dt){return et(dt)}}function ib(et,dt){return $e(dt,function(ct){return et[ct]})}function Uf(et,dt){return et.has(dt)}function HN(et,dt){for(var ct=-1,Gt=et.length;++ct<Gt&&xu(dt,et[ct],0)>-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<Gt;){var xr=et[ct];(xr===dt||xr===c)&&(et[ct]=c,Re[fe++]=ct)}return Re}function Lp(et){var dt=-1,ct=Array(et.size);return et.forEach(function(Gt){ct[++dt]=Gt}),ct}function btt(et){var dt=-1,ct=Array(et.size);return et.forEach(function(Gt){ct[++dt]=[Gt,Gt]}),ct}function xtt(et,dt,ct){for(var Gt=ct-1,fe=et.length;++Gt<fe;)if(et[Gt]===dt)return Gt;return-1}function Stt(et,dt,ct){for(var Gt=ct+1;Gt--;)if(et[Gt]===dt)return Gt;return Gt}function Au(et){return Su(et)?Ttt(et):ltt(et)}function Ta(et){return Su(et)?Ctt(et):utt(et)}function YN(et){for(var dt=et.length;dt--&&dJ.test(et.charAt(dt)););return dt}var Att=rb(ttt);function Ttt(et){for(var dt=$w.lastIndex=0;$w.test(et);)++dt;return dt}function Ctt(et){return et.match($w)||[]}function Dtt(et){return et.match(XJ)||[]}var Ltt=function et(dt){dt=dt==null?Nr:Tu.defaults(Nr.Object(),dt,Tu.pick(Nr,qJ));var ct=dt.Array,Gt=dt.Date,fe=dt.Error,Re=dt.Function,xr=dt.Math,He=dt.Object,sb=dt.RegExp,Mtt=dt.String,na=dt.TypeError,Mp=ct.prototype,Itt=Re.prototype,Cu=He.prototype,Ip=dt["__core-js_shared__"],Ep=Itt.toString,Ge=Cu.hasOwnProperty,Ett=0,XN=function(){var m=/[^.]+$/.exec(Ip&&Ip.keys&&Ip.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),Pp=Cu.toString,Ptt=Ep.call(He),ktt=Nr._,Rtt=sb("^"+Ep.call(Ge).replace(Hw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kp=IN?dt.Buffer:t,Mo=dt.Symbol,Rp=dt.Uint8Array,jN=kp?kp.allocUnsafe:t,Np=ZN(He.getPrototypeOf,He),$N=He.create,qN=Cu.propertyIsEnumerable,Op=Mp.splice,KN=Mo?Mo.isConcatSpreadable:t,Zf=Mo?Mo.iterator:t,Js=Mo?Mo.toStringTag:t,Bp=function(){try{var m=al(He,"defineProperty");return m({},"",{}),m}catch(x){}}(),Ntt=dt.clearTimeout!==Nr.clearTimeout&&dt.clearTimeout,Ott=Gt&&Gt.now!==Nr.Date.now&&Gt.now,Btt=dt.setTimeout!==Nr.setTimeout&&dt.setTimeout,zp=xr.ceil,Vp=xr.floor,lb=He.getOwnPropertySymbols,ztt=kp?kp.isBuffer:t,QN=dt.isFinite,Vtt=Mp.join,Ftt=ZN(He.keys,He),Sr=xr.max,Ur=xr.min,Gtt=Gt.now,Wtt=dt.parseInt,JN=xr.random,Htt=Mp.reverse,ub=al(dt,"DataView"),Yf=al(dt,"Map"),cb=al(dt,"Promise"),Du=al(dt,"Set"),Xf=al(dt,"WeakMap"),jf=al(He,"create"),Fp=Xf&&new Xf,Lu={},Utt=il(ub),Ztt=il(Yf),Ytt=il(cb),Xtt=il(Du),jtt=il(Xf),Gp=Mo?Mo.prototype:t,$f=Gp?Gp.valueOf:t,tO=Gp?Gp.toString:t;function V(m){if(er(m)&&!he(m)&&!(m instanceof De)){if(m instanceof aa)return m;if(Ge.call(m,"__wrapped__"))return e5(m)}return new aa(m)}var Mu=function(){function m(){}return function(x){if(!Qe(x))return{};if($N)return $N(x);m.prototype=x;var C=new m;return m.prototype=t,C}}();function Wp(){}function aa(m,x){this.__wrapped__=m,this.__actions__=[],this.__chain__=!!x,this.__index__=0,this.__values__=t}V.templateSettings={escape:lJ,evaluate:uJ,interpolate:uN,variable:"",imports:{_:V}},V.prototype=Wp.prototype,V.prototype.constructor=V,aa.prototype=Mu(Wp.prototype),aa.prototype.constructor=aa;function De(m){this.__wrapped__=m,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function $tt(){var m=new De(this.__wrapped__);return m.__actions__=dn(this.__actions__),m.__dir__=this.__dir__,m.__filtered__=this.__filtered__,m.__iteratees__=dn(this.__iteratees__),m.__takeCount__=this.__takeCount__,m.__views__=dn(this.__views__),m}function qtt(){if(this.__filtered__){var m=new De(this);m.__dir__=-1,m.__filtered__=!0}else m=this.clone(),m.__dir__*=-1;return m}function Ktt(){var m=this.__wrapped__.value(),x=this.__dir__,C=he(m),k=x<0,z=C?m.length:0,G=crt(0,z,this.__views__),q=G.start,Q=G.end,rt=Q-q,yt=k?Q:q-1,_t=this.__iteratees__,St=_t.length,kt=0,Yt=Ur(rt,this.__takeCount__);if(!C||!k&&z==rt&&Yt==rt)return AO(m,this.__actions__);var re=[];t:for(;rt--&&kt<Yt;){yt+=x;for(var me=-1,ne=m[yt];++me<St;){var Se=_t[me],Ee=Se.iteratee,En=Se.type,ln=Ee(ne);if(En==B)ne=ln;else if(!ln){if(En==M)continue t;break t}}re[kt++]=ne}return re}De.prototype=Mu(Wp.prototype),De.prototype.constructor=De;function tl(m){var x=-1,C=m==null?0:m.length;for(this.clear();++x<C;){var k=m[x];this.set(k[0],k[1])}}function Qtt(){this.__data__=jf?jf(null):{},this.size=0}function Jtt(m){var x=this.has(m)&&delete this.__data__[m];return this.size-=x?1:0,x}function tet(m){var x=this.__data__;if(jf){var C=x[m];return C===l?t:C}return Ge.call(x,m)?x[m]:t}function eet(m){var x=this.__data__;return jf?x[m]!==t:Ge.call(x,m)}function ret(m,x){var C=this.__data__;return this.size+=this.has(m)?0:1,C[m]=jf&&x===t?l:x,this}tl.prototype.clear=Qtt,tl.prototype.delete=Jtt,tl.prototype.get=tet,tl.prototype.has=eet,tl.prototype.set=ret;function Pi(m){var x=-1,C=m==null?0:m.length;for(this.clear();++x<C;){var k=m[x];this.set(k[0],k[1])}}function net(){this.__data__=[],this.size=0}function aet(m){var x=this.__data__,C=Hp(x,m);if(C<0)return!1;var k=x.length-1;return C==k?x.pop():Op.call(x,C,1),--this.size,!0}function iet(m){var x=this.__data__,C=Hp(x,m);return C<0?t:x[C][1]}function oet(m){return Hp(this.__data__,m)>-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<C;){var k=m[x];this.set(k[0],k[1])}}function uet(){this.size=0,this.__data__={hash:new tl,map:new(Yf||Pi),string:new tl}}function cet(m){var x=eg(this,m).delete(m);return this.size-=x?1:0,x}function fet(m){return eg(this,m).get(m)}function het(m){return eg(this,m).has(m)}function vet(m,x){var C=eg(this,m),k=C.size;return C.set(m,x),this.size+=C.size==k?0:1,this}ki.prototype.clear=uet,ki.prototype.delete=cet,ki.prototype.get=fet,ki.prototype.has=het,ki.prototype.set=vet;function el(m){var x=-1,C=m==null?0:m.length;for(this.__data__=new ki;++x<C;)this.add(m[x])}function det(m){return this.__data__.set(m,l),this}function pet(m){return this.__data__.has(m)}el.prototype.add=el.prototype.push=det,el.prototype.has=pet;function Ca(m){var x=this.__data__=new Pi(m);this.size=x.size}function get(){this.__data__=new Pi,this.size=0}function yet(m){var x=this.__data__,C=x.delete(m);return this.size=x.size,C}function met(m){return this.__data__.get(m)}function _et(m){return this.__data__.has(m)}function wet(m,x){var C=this.__data__;if(C instanceof Pi){var k=C.__data__;if(!Yf||k.length<a-1)return k.push([m,x]),this.size=++C.size,this;C=this.__data__=new ki(k)}return C.set(m,x),this.size=C.size,this}Ca.prototype.clear=get,Ca.prototype.delete=yet,Ca.prototype.get=met,Ca.prototype.has=_et,Ca.prototype.set=wet;function eO(m,x){var C=he(m),k=!C&&ol(m),z=!C&&!k&&Ro(m),G=!C&&!k&&!z&&ku(m),q=C||k||z||G,Q=q?ab(m.length,Mtt):[],rt=Q.length;for(var yt in m)(x||Ge.call(m,yt))&&!(q&&(yt=="length"||z&&(yt=="offset"||yt=="parent")||G&&(yt=="buffer"||yt=="byteLength"||yt=="byteOffset")||Bi(yt,rt)))&&Q.push(yt);return Q}function rO(m){var x=m.length;return x?m[bb(0,x-1)]:t}function bet(m,x){return rg(dn(m),rl(x,0,m.length))}function xet(m){return rg(dn(m))}function fb(m,x,C){(C!==t&&!Da(m[x],C)||C===t&&!(x in m))&&Ri(m,x,C)}function qf(m,x,C){var k=m[x];(!(Ge.call(m,x)&&Da(k,C))||C===t&&!(x in m))&&Ri(m,x,C)}function Hp(m,x){for(var C=m.length;C--;)if(Da(m[C][0],x))return C;return-1}function Set(m,x,C,k){return Io(m,function(z,G,q){x(k,z,C(z),q)}),k}function nO(m,x){return m&&ni(x,Dr(x),m)}function Aet(m,x){return m&&ni(x,gn(x),m)}function Ri(m,x,C){x=="__proto__"&&Bp?Bp(m,x,{configurable:!0,enumerable:!0,value:C,writable:!0}):m[x]=C}function hb(m,x){for(var C=-1,k=x.length,z=ct(k),G=m==null;++C<k;)z[C]=G?t:Yb(m,x[C]);return z}function rl(m,x,C){return m===m&&(C!==t&&(m=m<=C?m:C),x!==t&&(m=m>=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(;++z<Q;){var _t=m[z],St=C==null?_t:C(_t);if(_t=k||_t!==0?_t:0,q&&St===St){for(var kt=yt;kt--;)if(x[kt]===St)continue t;rt.push(_t)}else G(x,St,k)||rt.push(_t)}return rt}var Io=PO(ri),oO=PO(db,!0);function Cet(m,x){var C=!0;return Io(m,function(k,z,G){return C=!!x(k,z,G),C}),C}function Up(m,x,C){for(var k=-1,z=m.length;++k<z;){var G=m[k],q=x(G);if(q!=null&&(Q===t?q===q&&!In(q):C(q,Q)))var Q=q,rt=G}return rt}function Det(m,x,C,k){var z=m.length;for(C=ge(C),C<0&&(C=-C>z?0:z+C),k=k===t||k>z?z:ge(k),k<0&&(k+=z),k=C>k?0:S5(k);C<k;)m[C++]=x;return m}function sO(m,x){var C=[];return Io(m,function(k,z,G){x(k,z,G)&&C.push(k)}),C}function Or(m,x,C,k,z){var G=-1,q=m.length;for(C||(C=prt),z||(z=[]);++G<q;){var Q=m[G];x>0&&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&&C<k;)m=m[ai(x[C++])];return C&&C==k?m:t}function uO(m,x,C){var k=x(m);return he(m)?k:Do(k,C(m))}function on(m){return m==null?m===t?Bt:nt:Js&&Js in He(m)?urt(m):xrt(m)}function pb(m,x){return m>x}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<Sr(x,C)}function gb(m,x,C){for(var k=C?Qw:Cp,z=m[0].length,G=m.length,q=G,Q=ct(G),rt=1/0,yt=[];q--;){var _t=m[q];q&&x&&(_t=$e(_t,Ln(x))),rt=Ur(_t.length,rt),Q[q]=!C&&(x||z>=120&&_t.length>=120)?new el(q&&_t):t}_t=m[0];var St=-1,kt=Q[0];t:for(;++St<z&&yt.length<rt;){var Yt=_t[St],re=x?x(Yt):Yt;if(Yt=C||Yt!==0?Yt:0,!(kt?Uf(kt,re):k(yt,re,C))){for(q=G;--q;){var me=Q[q];if(!(me?Uf(me,re):k(m[q],re,C)))continue t}kt&&kt.push(re),yt.push(Yt)}}return yt}function Eet(m,x,C,k){return ri(m,function(z,G,q){x(k,C(z),G,q)}),k}function Qf(m,x,C){x=Po(x,m),m=qO(m,x);var k=m==null?m:m[ai(sa(x))];return k==null?t:Dn(k,m,C)}function cO(m){return er(m)&&on(m)==it}function Pet(m){return er(m)&&on(m)==Ce}function ket(m){return er(m)&&on(m)==wt}function Jf(m,x,C,k,z){return m===x?!0:m==null||x==null||!er(m)&&!er(x)?m!==m&&x!==x:Ret(m,x,C,k,Jf,z)}function Ret(m,x,C,k,z,G){var q=he(m),Q=he(x),rt=q?Nt:Zr(m),yt=Q?Nt:Zr(x);rt=rt==it?X:rt,yt=yt==it?X:yt;var _t=rt==X,St=yt==X,kt=rt==yt;if(kt&&Ro(m)){if(!Ro(x))return!1;q=!0,_t=!1}if(kt&&!_t)return G||(G=new Ca),q||ku(m)?HO(m,x,C,k,z,G):srt(m,x,rt,C,k,z,G);if(!(C&p)){var Yt=_t&&Ge.call(m,"__wrapped__"),re=St&&Ge.call(x,"__wrapped__");if(Yt||re){var me=Yt?m.value():m,ne=re?x.value():x;return G||(G=new Ca),z(me,ne,C,k,G)}}return kt?(G||(G=new Ca),lrt(m,x,C,k,z,G)):!1}function Net(m){return er(m)&&Zr(m)==O}function yb(m,x,C,k){var z=C.length,G=z,q=!k;if(m==null)return!G;for(m=He(m);z--;){var Q=C[z];if(q&&Q[2]?Q[1]!==m[Q[0]]:!(Q[0]in m))return!1}for(;++z<G;){Q=C[z];var rt=Q[0],yt=m[rt],_t=Q[1];if(q&&Q[2]){if(yt===t&&!(rt in m))return!1}else{var St=new Ca;if(k)var kt=k(yt,_t,rt,m,x,St);if(!(kt===t?Jf(_t,yt,p|y,k,St):kt))return!1}}return!0}function fO(m){if(!Qe(m)||yrt(m))return!1;var x=zi(m)?Rtt:AJ;return x.test(il(m))}function Oet(m){return er(m)&&on(m)==pt}function Bet(m){return er(m)&&Zr(m)==vt}function zet(m){return er(m)&&lg(m.length)&&!!je[on(m)]}function hO(m){return typeof m=="function"?m:m==null?yn:typeof m=="object"?he(m)?pO(m[0],m[1]):dO(m):R5(m)}function mb(m){if(!rh(m))return Ftt(m);var x=[];for(var C in He(m))Ge.call(m,C)&&C!="constructor"&&x.push(C);return x}function Vet(m){if(!Qe(m))return brt(m);var x=rh(m),C=[];for(var k in m)k=="constructor"&&(x||!Ge.call(m,k))||C.push(k);return C}function _b(m,x){return m<x}function vO(m,x){var C=-1,k=pn(m)?ct(m.length):[];return Io(m,function(z,G,q){k[++C]=x(z,G,q)}),k}function dO(m){var x=Rb(m);return x.length==1&&x[0][2]?jO(x[0][0],x[0][1]):function(C){return C===m||yb(C,m,x)}}function pO(m,x){return Ob(m)&&XO(x)?jO(ai(m),x):function(C){var k=Yb(C,m);return k===t&&k===x?Xb(C,m):Jf(x,k,p|y)}}function Yp(m,x,C,k,z){m!==x&&vb(x,function(G,q){if(z||(z=new Ca),Qe(G))Fet(m,x,q,C,Yp,k,z);else{var Q=k?k(zb(m,q),G,q+"",m,x,z):t;Q===t&&(Q=G),fb(m,q,Q)}},gn)}function Fet(m,x,C,k,z,G,q){var Q=zb(m,C),rt=zb(x,C),yt=q.get(rt);if(yt){fb(m,C,yt);return}var _t=G?G(Q,rt,C+"",m,x,q):t,St=_t===t;if(St){var kt=he(rt),Yt=!kt&&Ro(rt),re=!kt&&!Yt&&ku(rt);_t=rt,kt||Yt||re?he(Q)?_t=Q:ur(Q)?_t=dn(Q):Yt?(St=!1,_t=DO(rt,!0)):re?(St=!1,_t=LO(rt,!0)):_t=[]:ah(rt)||ol(rt)?(_t=Q,ol(Q)?_t=A5(Q):(!Qe(Q)||zi(Q))&&(_t=YO(rt))):St=!1}St&&(q.set(rt,_t),z(_t,rt,k,G,q),q.delete(rt)),fb(m,C,_t)}function gO(m,x){var C=m.length;if(C)return x+=x<0?C:0,Bi(x,C)?m[x]:t}function yO(m,x,C){x.length?x=$e(x,function(G){return he(G)?function(q){return nl(q,G.length===1?G[0]:G)}:G}):x=[yn];var k=-1;x=$e(x,Ln(ee()));var z=vO(m,function(G,q,Q){var rt=$e(x,function(yt){return yt(G)});return{criteria:rt,index:++k,value:G}});return htt(z,function(G,q){return Jet(G,q,C)})}function Get(m,x){return mO(m,x,function(C,k){return Xb(m,k)})}function mO(m,x,C){for(var k=-1,z=x.length,G={};++k<z;){var q=x[k],Q=nl(m,q);C(Q,q)&&th(G,Po(q,m),Q)}return G}function Wet(m){return function(x){return nl(x,m)}}function wb(m,x,C,k){var z=k?ftt:xu,G=-1,q=x.length,Q=m;for(m===x&&(x=dn(x)),C&&(Q=$e(m,Ln(C)));++G<q;)for(var rt=0,yt=x[G],_t=C?C(yt):yt;(rt=z(Q,_t,rt,k))>-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&&++z<G;){var rt=ai(x[z]),yt=C;if(rt==="__proto__"||rt==="constructor"||rt==="prototype")return m;if(z!=q){var _t=Q[rt];yt=k?k(_t,rt,Q):t,yt===t&&(yt=Qe(_t)?_t:Bi(x[z+1])?[]:{})}qf(Q,rt,yt),Q=Q[rt]}return m}var wO=Fp?function(m,x){return Fp.set(m,x),m}:yn,Yet=Bp?function(m,x){return Bp(m,"toString",{configurable:!0,enumerable:!1,value:$b(x),writable:!0})}:yn;function Xet(m){return rg(Ru(m))}function oa(m,x,C){var k=-1,z=m.length;x<0&&(x=-x>z?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<z;)G[k]=m[k+x];return G}function jet(m,x){var C;return Io(m,function(k,z,G){return C=x(k,z,G),!C}),!!C}function Xp(m,x,C){var k=0,z=m==null?k:m.length;if(typeof x=="number"&&x===x&&z<=ut){for(;k<z;){var G=k+z>>>1,q=m[G];q!==null&&!In(q)&&(C?q<=x:q<x)?k=G+1:z=G}return z}return Sb(m,x,yn,C)}function Sb(m,x,C,k){var z=0,G=m==null?0:m.length;if(G===0)return 0;x=C(x);for(var q=x!==x,Q=x===null,rt=In(x),yt=x===t;z<G;){var _t=Vp((z+G)/2),St=C(m[_t]),kt=St!==t,Yt=St===null,re=St===St,me=In(St);if(q)var ne=k||re;else yt?ne=re&&(k||kt):Q?ne=re&&kt&&(k||!Yt):rt?ne=re&&kt&&!Yt&&(k||!me):Yt||me?ne=!1:ne=k?St<=x:St<x;ne?z=_t+1:G=_t}return Ur(G,$)}function bO(m,x){for(var C=-1,k=m.length,z=0,G=[];++C<k;){var q=m[C],Q=x?x(q):q;if(!C||!Da(Q,rt)){var rt=Q;G[z++]=q===0?0:q}}return G}function xO(m){return typeof m=="number"?m:In(m)?K:+m}function Mn(m){if(typeof m=="string")return m;if(he(m))return $e(m,Mn)+"";if(In(m))return tO?tO.call(m):"";var x=m+"";return x=="0"&&1/m==-1/0?"-0":x}function Eo(m,x,C){var k=-1,z=Cp,G=m.length,q=!0,Q=[],rt=Q;if(C)q=!1,z=Qw;else if(G>=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<G;){var _t=m[k],St=x?x(_t):_t;if(_t=C||_t!==0?_t:0,q&&St===St){for(var kt=rt.length;kt--;)if(rt[kt]===St)continue t;x&&rt.push(St),Q.push(_t)}else z(rt,St,C)||(rt!==Q&&rt.push(St),Q.push(_t))}return Q}function Ab(m,x){return x=Po(x,m),m=qO(m,x),m==null||delete m[ai(sa(x))]}function SO(m,x,C,k){return th(m,x,C(nl(m,x)),k)}function jp(m,x,C,k){for(var z=m.length,G=k?z:-1;(k?G--:++G<z)&&x(m[G],G,m););return C?oa(m,k?0:G,k?G+1:z):oa(m,k?G+1:0,k?z:G)}function AO(m,x){var C=m;return C instanceof De&&(C=C.value()),Jw(x,function(k,z){return z.func.apply(z.thisArg,Do([k],z.args))},C)}function Tb(m,x,C){var k=m.length;if(k<2)return k?Eo(m[0]):[];for(var z=-1,G=ct(k);++z<k;)for(var q=m[z],Q=-1;++Q<k;)Q!=z&&(G[z]=Kf(G[z]||q,m[Q],x,C));return Eo(Or(G,1),x,C)}function TO(m,x,C){for(var k=-1,z=m.length,G=x.length,q={};++k<z;){var Q=k<G?x[k]:t;C(q,m[k],Q)}return q}function Cb(m){return ur(m)?m:[]}function Db(m){return typeof m=="function"?m:yn}function Po(m,x){return he(m)?m:Ob(m,x)?[m]:t5(Oe(m))}var $et=we;function ko(m,x,C){var k=m.length;return C=C===t?k:C,!x&&C>=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<x||yt&&C&&z&&!k&&!G||Q&&C&&z||!q&&z||!rt)return-1}return 0}function Jet(m,x,C){for(var k=-1,z=m.criteria,G=x.criteria,q=z.length,Q=C.length;++k<q;){var rt=MO(z[k],G[k]);if(rt){if(k>=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;++Q<rt;)_t[Q]=x[Q];for(;++z<q;)(St||z<G)&&(_t[C[z]]=m[z]);for(;yt--;)_t[Q++]=m[z++];return _t}function EO(m,x,C,k){for(var z=-1,G=m.length,q=-1,Q=C.length,rt=-1,yt=x.length,_t=Sr(G-Q,0),St=ct(_t+yt),kt=!k;++z<_t;)St[z]=m[z];for(var Yt=z;++rt<yt;)St[Yt+rt]=x[rt];for(;++q<Q;)(kt||z<G)&&(St[Yt+C[q]]=m[z++]);return St}function dn(m,x){var C=-1,k=m.length;for(x||(x=ct(k));++C<k;)x[C]=m[C];return x}function ni(m,x,C,k){var z=!C;C||(C={});for(var G=-1,q=x.length;++G<q;){var Q=x[G],rt=k?k(C[Q],m[Q],Q,C,m):t;rt===t&&(rt=m[Q]),z?Ri(C,Q,rt):qf(C,Q,rt)}return C}function trt(m,x){return ni(m,Nb(m),x)}function ert(m,x){return ni(m,UO(m),x)}function $p(m,x){return function(C,k){var z=he(C)?itt:Set,G=x?x():{};return z(C,m,ee(k,2),G)}}function Iu(m){return we(function(x,C){var k=-1,z=C.length,G=z>1?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<z;){var Q=C[k];Q&&m(x,Q,k,G)}return x})}function PO(m,x){return function(C,k){if(C==null)return C;if(!pn(C))return m(C,k);for(var z=C.length,G=x?z:-1,q=He(C);(x?G--:++G<z)&&k(q[G],G,q)!==!1;);return C}}function kO(m){return function(x,C,k){for(var z=-1,G=He(x),q=k(x),Q=q.length;Q--;){var rt=q[m?Q:++z];if(C(G[rt],rt,G)===!1)break}return x}}function rrt(m,x,C){var k=x&_,z=eh(m);function G(){var q=this&&this!==Nr&&this instanceof G?z:m;return q.apply(k?C:this,arguments)}return G}function RO(m){return function(x){x=Oe(x);var C=Su(x)?Ta(x):t,k=C?C[0]:x.charAt(0),z=C?ko(C,1).join(""):x.slice(1);return k[m]()+z}}function Eu(m){return function(x){return Jw(P5(E5(x).replace(ZJ,"")),m,"")}}function eh(m){return function(){var x=arguments;switch(x.length){case 0:return new m;case 1:return new m(x[0]);case 2:return new m(x[0],x[1]);case 3:return new m(x[0],x[1],x[2]);case 4:return new m(x[0],x[1],x[2],x[3]);case 5:return new m(x[0],x[1],x[2],x[3],x[4]);case 6:return new m(x[0],x[1],x[2],x[3],x[4],x[5]);case 7:return new m(x[0],x[1],x[2],x[3],x[4],x[5],x[6])}var C=Mu(m.prototype),k=m.apply(C,x);return Qe(k)?k:C}}function nrt(m,x,C){var k=eh(m);function z(){for(var G=arguments.length,q=ct(G),Q=G,rt=Pu(z);Q--;)q[Q]=arguments[Q];var yt=G<3&&q[0]!==rt&&q[G-1]!==rt?[]:Lo(q,rt);if(G-=yt.length,G<C)return VO(m,x,qp,z.placeholder,t,q,yt,t,t,C-G);var _t=this&&this!==Nr&&this instanceof z?k:m;return Dn(_t,this,q)}return z}function NO(m){return function(x,C,k){var z=He(x);if(!pn(x)){var G=ee(C,3);x=Dr(x),C=function(Q){return G(z[Q],Q,z)}}var q=m(x,C,k);return q>-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;++k<C;){G=x[k];var Q=tg(G),rt=Q=="wrapper"?kb(G):t;rt&&Bb(rt[0])&&rt[1]==(T|w|S|D)&&!rt[4].length&&rt[9]==1?q=q[tg(rt[0])].apply(q,rt[3]):q=G.length==1&&Bb(G)?q[Q]():q.thru(G)}return function(){var yt=arguments,_t=yt[0];if(q&&yt.length==1&&he(_t))return q.plant(_t).value();for(var St=0,kt=C?x[St].apply(this,yt):_t;++St<C;)kt=x[St].call(this,kt);return kt}})}function qp(m,x,C,k,z,G,q,Q,rt,yt){var _t=x&T,St=x&_,kt=x&g,Yt=x&(w|b),re=x&L,me=kt?t:eh(m);function ne(){for(var Se=arguments.length,Ee=ct(Se),En=Se;En--;)Ee[En]=arguments[En];if(Yt)var ln=Pu(ne),Pn=dtt(Ee,ln);if(k&&(Ee=IO(Ee,k,z,Yt)),G&&(Ee=EO(Ee,G,q,Yt)),Se-=Pn,Yt&&Se<yt){var cr=Lo(Ee,ln);return VO(m,x,qp,ne.placeholder,C,Ee,cr,Q,rt,yt-Se)}var La=St?C:this,Fi=kt?La[m]:m;return Se=Ee.length,Q?Ee=Srt(Ee,Q):re&&Se>1&&Ee.reverse(),_t&&rt<Se&&(Ee.length=rt),this&&this!==Nr&&this instanceof ne&&(Fi=me||eh(Fi)),Fi.apply(La,Ee)}return ne}function BO(m,x){return function(C,k){return Eet(C,m,x(k),{})}}function Kp(m,x){return function(C,k){var z;if(C===t&&k===t)return x;if(C!==t&&(z=C),k!==t){if(z===t)return k;typeof C=="string"||typeof k=="string"?(C=Mn(C),k=Mn(k)):(C=xO(C),k=xO(k)),z=m(C,k)}return z}}function Mb(m){return Oi(function(x){return x=$e(x,Ln(ee())),we(function(C){var k=this;return m(x,function(z){return Dn(z,k,C)})})})}function Qp(m,x){x=x===t?" ":Mn(x);var C=x.length;if(C<2)return C?xb(x,m):x;var k=xb(x,zp(m/Au(x)));return Su(x)?ko(Ta(k),0,m).join(""):k.slice(0,m)}function art(m,x,C,k){var z=x&_,G=eh(m);function q(){for(var Q=-1,rt=arguments.length,yt=-1,_t=k.length,St=ct(_t+rt),kt=this&&this!==Nr&&this instanceof q?G:m;++yt<_t;)St[yt]=k[yt];for(;rt--;)St[yt++]=arguments[++Q];return Dn(kt,z?C:this,St)}return q}function zO(m){return function(x,C,k){return k&&typeof k!="number"&&sn(x,C,k)&&(C=k=t),x=Vi(x),C===t?(C=x,x=0):C=Vi(C),k=k===t?x<C?1:-1:Vi(k),Het(x,C,k,m)}}function Jp(m){return function(x,C){return typeof x=="string"&&typeof C=="string"||(x=la(x),C=la(C)),m(x,C)}}function VO(m,x,C,k,z,G,q,Q,rt,yt){var _t=x&w,St=_t?q:t,kt=_t?t:q,Yt=_t?G:t,re=_t?t:G;x|=_t?S:A,x&=~(_t?A:S),x&h||(x&=-4);var me=[m,x,z,Yt,St,re,kt,Q,rt,yt],ne=C.apply(t,me);return Bb(m)&&KO(ne,me),ne.placeholder=k,QO(ne,m,x)}function Ib(m){var x=xr[m];return function(C,k){if(C=la(C),k=k==null?0:Ur(ge(k),292),k&&QN(C)){var z=(Oe(C)+"e").split("e"),G=x(z[0]+"e"+(+z[1]+k));return z=(Oe(G)+"e").split("e"),+(z[0]+"e"+(+z[1]-k))}return x(C)}}var irt=Du&&1/Lp(new Du([,-0]))[1]==W?function(m){return new Du(m)}:Qb;function FO(m){return function(x){var C=Zr(x);return C==O?ob(x):C==vt?btt(x):vtt(x,m(x))}}function Ni(m,x,C,k,z,G,q,Q){var rt=x&g;if(!rt&&typeof m!="function")throw new na(o);var yt=k?k.length:0;if(yt||(x&=-97,k=z=t),q=q===t?q:Sr(ge(q),0),Q=Q===t?Q:ge(Q),yt-=z?z.length:0,x&A){var _t=k,St=z;k=z=t}var kt=rt?t:kb(m),Yt=[m,x,C,k,z,_t,St,G,q,Q];if(kt&&wrt(Yt,kt),m=Yt[0],x=Yt[1],C=Yt[2],k=Yt[3],z=Yt[4],Q=Yt[9]=Yt[9]===t?rt?0:m.length:Sr(Yt[9]-yt,0),!Q&&x&(w|b)&&(x&=-25),!x||x==_)var re=rrt(m,x,C);else x==w||x==b?re=nrt(m,x,Q):(x==S||x==(_|S))&&!z.length?re=art(m,x,C,k):re=qp.apply(t,Yt);var me=kt?wO:KO;return QO(me(re,Yt),m,x)}function GO(m,x,C,k){return m===t||Da(m,Cu[C])&&!Ge.call(k,C)?x:m}function WO(m,x,C,k,z,G){return Qe(m)&&Qe(x)&&(G.set(x,m),Yp(m,x,t,WO,G),G.delete(x)),m}function ort(m){return ah(m)?t:m}function HO(m,x,C,k,z,G){var q=C&p,Q=m.length,rt=x.length;if(Q!=rt&&!(q&&rt>Q))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);++St<Q;){var re=m[St],me=x[St];if(k)var ne=q?k(me,re,St,x,m,G):k(re,me,St,m,x,G);if(ne!==t){if(ne)continue;kt=!1;break}if(Yt){if(!tb(x,function(Se,Ee){if(!Uf(Yt,Ee)&&(re===Se||z(re,Se,C,k,G)))return Yt.push(Ee)})){kt=!1;break}}else if(!(re===me||z(re,me,C,k,G))){kt=!1;break}}return G.delete(m),G.delete(x),kt}function srt(m,x,C,k,z,G,q){switch(C){case ce:if(m.byteLength!=x.byteLength||m.byteOffset!=x.byteOffset)return!1;m=m.buffer,x=x.buffer;case Ce:return!(m.byteLength!=x.byteLength||!G(new Rp(m),new Rp(x)));case xt:case wt:case st:return Da(+m,+x);case bt:return m.name==x.name&&m.message==x.message;case pt:case at:return m==x+"";case O:var Q=ob;case vt:var rt=k&p;if(Q||(Q=Lp),m.size!=x.size&&!rt)return!1;var yt=q.get(m);if(yt)return yt==x;k|=y,q.set(m,x);var _t=HO(Q(m),Q(x),k,z,G,q);return q.delete(m),_t;case Tt:if($f)return $f.call(m)==$f.call(x)}return!1}function lrt(m,x,C,k,z,G){var q=C&p,Q=Eb(m),rt=Q.length,yt=Eb(x),_t=yt.length;if(rt!=_t&&!q)return!1;for(var St=rt;St--;){var kt=Q[St];if(!(q?kt in x:Ge.call(x,kt)))return!1}var Yt=G.get(m),re=G.get(x);if(Yt&&re)return Yt==x&&re==m;var me=!0;G.set(m,x),G.set(x,m);for(var ne=q;++St<rt;){kt=Q[St];var Se=m[kt],Ee=x[kt];if(k)var En=q?k(Ee,Se,kt,x,m,G):k(Se,Ee,kt,m,x,G);if(!(En===t?Se===Ee||z(Se,Ee,C,k,G):En)){me=!1;break}ne||(ne=kt=="constructor")}if(me&&!ne){var ln=m.constructor,Pn=x.constructor;ln!=Pn&&"constructor"in m&&"constructor"in x&&!(typeof ln=="function"&&ln instanceof ln&&typeof Pn=="function"&&Pn instanceof Pn)&&(me=!1)}return G.delete(m),G.delete(x),me}function Oi(m){return Vb($O(m,t,a5),m+"")}function Eb(m){return uO(m,Dr,Nb)}function Pb(m){return uO(m,gn,UO)}var kb=Fp?function(m){return Fp.get(m)}:Qb;function tg(m){for(var x=m.name+"",C=Lu[x],k=Ge.call(Lu,x)?C.length:0;k--;){var z=C[k],G=z.func;if(G==null||G==m)return z.name}return x}function Pu(m){var x=Ge.call(V,"placeholder")?V:m;return x.placeholder}function ee(){var m=V.iteratee||qb;return m=m===qb?hO:m,arguments.length?m(arguments[0],arguments[1]):m}function eg(m,x){var C=m.__data__;return grt(x)?C[typeof x=="string"?"string":"hash"]:C.map}function Rb(m){for(var x=Dr(m),C=x.length;C--;){var k=x[C],z=m[k];x[C]=[k,z,XO(z)]}return x}function al(m,x){var C=mtt(m,x);return fO(C)?C:t}function urt(m){var x=Ge.call(m,Js),C=m[Js];try{m[Js]=t;var k=!0}catch(G){}var z=Pp.call(m);return k&&(x?m[Js]=C:delete m[Js]),z}var Nb=lb?function(m){return m==null?[]:(m=He(m),Co(lb(m),function(x){return qN.call(m,x)}))}:Jb,UO=lb?function(m){for(var x=[];m;)Do(x,Nb(m)),m=Np(m);return x}:Jb,Zr=on;(ub&&Zr(new ub(new ArrayBuffer(1)))!=ce||Yf&&Zr(new Yf)!=O||cb&&Zr(cb.resolve())!=Z||Du&&Zr(new Du)!=vt||Xf&&Zr(new Xf)!=Dt)&&(Zr=function(m){var x=on(m),C=x==X?m.constructor:t,k=C?il(C):"";if(k)switch(k){case Utt:return ce;case Ztt:return O;case Ytt:return Z;case Xtt:return vt;case jtt:return Dt}return x});function crt(m,x,C){for(var k=-1,z=C.length;++k<z;){var G=C[k],q=G.size;switch(G.type){case"drop":m+=q;break;case"dropRight":x-=q;break;case"take":x=Ur(x,m+q);break;case"takeRight":m=Sr(m,x-q);break}}return{start:m,end:x}}function frt(m){var x=m.match(gJ);return x?x[1].split(yJ):[]}function ZO(m,x,C){x=Po(x,m);for(var k=-1,z=x.length,G=!1;++k<z;){var q=ai(x[k]);if(!(G=m!=null&&C(m,q)))break;m=m[q]}return G||++k!=z?G:(z=m==null?0:m.length,!!z&&lg(z)&&Bi(q,z)&&(he(m)||ol(m)))}function hrt(m){var x=m.length,C=new m.constructor(x);return x&&typeof m[0]=="string"&&Ge.call(m,"index")&&(C.index=m.index,C.input=m.input),C}function YO(m){return typeof m.constructor=="function"&&!rh(m)?Mu(Np(m)):{}}function vrt(m,x,C){var k=m.constructor;switch(x){case Ce:return Lb(m);case xt:case wt:return new k(+m);case ce:return qet(m,C);case vr:case Tn:case Cr:case Cn:case Fe:case ta:case Aa:case Rr:case ei:return LO(m,C);case O:return new k;case st:case at:return new k(m);case pt:return Ket(m);case vt:return new k;case Tt:return Qet(m)}}function drt(m,x){var C=x.length;if(!C)return m;var k=C-1;return x[k]=(C>1?"& ":"")+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&&m<x}function sn(m,x,C){if(!Qe(C))return!1;var k=typeof x;return(k=="number"?pn(C)&&Bi(x,C.length):k=="string"&&x in C)?Da(C[x],m):!1}function Ob(m,x){if(he(m))return!1;var C=typeof m;return C=="number"||C=="symbol"||C=="boolean"||m==null||In(m)?!0:fJ.test(m)||!cJ.test(m)||x!=null&&m in He(x)}function grt(m){var x=typeof m;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?m!=="__proto__":m===null}function Bb(m){var x=tg(m),C=V[x];if(typeof C!="function"||!(x in De.prototype))return!1;if(m===C)return!0;var k=kb(C);return!!k&&m===k[0]}function yrt(m){return!!XN&&XN in m}var mrt=Ip?zi:tx;function rh(m){var x=m&&m.constructor,C=typeof x=="function"&&x.prototype||Cu;return m===C}function XO(m){return m===m&&!Qe(m)}function jO(m,x){return function(C){return C==null?!1:C[m]===x&&(x!==t||m in He(C))}}function _rt(m){var x=og(m,function(k){return C.size===u&&C.clear(),k}),C=x.cache;return x}function wrt(m,x){var C=m[1],k=x[1],z=C|k,G=z<(_|g|T),q=k==T&&C==w||k==T&&C==D&&m[7].length<=x[8]||k==(T|D)&&x[7].length<=x[8]&&C==w;if(!(G||q))return m;k&_&&(m[2]=x[2],z|=C&_?0:h);var Q=x[3];if(Q){var rt=m[3];m[3]=rt?IO(rt,Q,x[4]):Q,m[4]=rt?Lo(m[3],c):x[4]}return Q=x[5],Q&&(rt=m[5],m[5]=rt?EO(rt,Q,x[6]):Q,m[6]=rt?Lo(m[5],c):x[6]),Q=x[7],Q&&(m[7]=Q),k&T&&(m[8]=m[8]==null?x[8]:Ur(m[8],x[8])),m[9]==null&&(m[9]=x[9]),m[0]=x[0],m[1]=z,m}function brt(m){var x=[];if(m!=null)for(var C in He(m))x.push(C);return x}function xrt(m){return Pp.call(m)}function $O(m,x,C){return x=Sr(x===t?m.length-1:x,0),function(){for(var k=arguments,z=-1,G=Sr(k.length-x,0),q=ct(G);++z<G;)q[z]=k[x+z];z=-1;for(var Q=ct(x+1);++z<x;)Q[z]=k[z];return Q[x]=C(q),Dn(m,this,Q)}}function qO(m,x){return x.length<2?m:nl(m,oa(x,0,-1))}function Srt(m,x){for(var C=m.length,k=Ur(x.length,C),z=dn(m);k--;){var G=x[k];m[k]=Bi(G,C)?z[G]:t}return m}function zb(m,x){if(!(x==="constructor"&&typeof m[x]=="function")&&x!="__proto__")return m[x]}var KO=JO(wO),nh=Btt||function(m,x){return Nr.setTimeout(m,x)},Vb=JO(Yet);function QO(m,x,C){var k=x+"";return Vb(m,drt(k,Art(frt(k),C)))}function JO(m){var x=0,C=0;return function(){var k=Gtt(),z=R-(k-C);if(C=k,z>0){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;++C<x;){var G=bb(C,z),q=m[G];m[G]=m[C],m[C]=q}return m.length=x,m}var t5=_rt(function(m){var x=[];return m.charCodeAt(0)===46&&x.push(""),m.replace(hJ,function(C,k,z,G){x.push(z?G.replace(wJ,"$1"):k||C)}),x});function ai(m){if(typeof m=="string"||In(m))return m;var x=m+"";return x=="0"&&1/m==-1/0?"-0":x}function il(m){if(m!=null){try{return Ep.call(m)}catch(x){}try{return m+""}catch(x){}}return""}function Art(m,x){return ra(ot,function(C){var k="_."+C[0];x&C[1]&&!Cp(m,k)&&m.push(k)}),m.sort()}function e5(m){if(m instanceof De)return m.clone();var x=new aa(m.__wrapped__,m.__chain__);return x.__actions__=dn(m.__actions__),x.__index__=m.__index__,x.__values__=m.__values__,x}function Trt(m,x,C){(C?sn(m,x,C):x===t)?x=1:x=Sr(ge(x),0);var k=m==null?0:m.length;if(!k||x<1)return[];for(var z=0,G=0,q=ct(zp(k/x));z<k;)q[G++]=oa(m,z,z+=x);return q}function Crt(m){for(var x=-1,C=m==null?0:m.length,k=0,z=[];++x<C;){var G=m[x];G&&(z[k++]=G)}return z}function Drt(){var m=arguments.length;if(!m)return[];for(var x=ct(m-1),C=arguments[0],k=m;k--;)x[k-1]=arguments[k];return Do(he(C)?dn(C):[C],Or(x,1))}var Lrt=we(function(m,x){return ur(m)?Kf(m,Or(x,1,ur,!0)):[]}),Mrt=we(function(m,x){var C=sa(x);return ur(C)&&(C=t),ur(m)?Kf(m,Or(x,1,ur,!0),ee(C,2)):[]}),Irt=we(function(m,x){var C=sa(x);return ur(C)&&(C=t),ur(m)?Kf(m,Or(x,1,ur,!0),t,C):[]});function Ert(m,x,C){var k=m==null?0:m.length;return k?(x=C||x===t?1:ge(x),oa(m,x<0?0:x,k)):[]}function Prt(m,x,C){var k=m==null?0:m.length;return k?(x=C||x===t?1:ge(x),x=k-x,oa(m,0,x<0?0:x)):[]}function krt(m,x){return m&&m.length?jp(m,ee(x,3),!0,!0):[]}function Rrt(m,x){return m&&m.length?jp(m,ee(x,3),!0):[]}function Nrt(m,x,C,k){var z=m==null?0:m.length;return z?(C&&typeof C!="number"&&sn(m,x,C)&&(C=0,k=z),Det(m,x,C,k)):[]}function r5(m,x,C){var k=m==null?0:m.length;if(!k)return-1;var z=C==null?0:ge(C);return z<0&&(z=Sr(k+z,0)),Dp(m,ee(x,3),z)}function n5(m,x,C){var k=m==null?0:m.length;if(!k)return-1;var z=k-1;return C!==t&&(z=ge(C),z=C<0?Sr(k+z,0):Ur(z,k-1)),Dp(m,ee(x,3),z,!0)}function a5(m){var x=m==null?0:m.length;return x?Or(m,1):[]}function Ort(m){var x=m==null?0:m.length;return x?Or(m,W):[]}function Brt(m,x){var C=m==null?0:m.length;return C?(x=x===t?1:ge(x),Or(m,x)):[]}function zrt(m){for(var x=-1,C=m==null?0:m.length,k={};++x<C;){var z=m[x];k[z[0]]=z[1]}return k}function i5(m){return m&&m.length?m[0]:t}function Vrt(m,x,C){var k=m==null?0:m.length;if(!k)return-1;var z=C==null?0:ge(C);return z<0&&(z=Sr(k+z,0)),xu(m,x,z)}function Frt(m){var x=m==null?0:m.length;return x?oa(m,0,-1):[]}var Grt=we(function(m){var x=$e(m,Cb);return x.length&&x[0]===m[0]?gb(x):[]}),Wrt=we(function(m){var x=sa(m),C=$e(m,Cb);return x===sa(C)?x=t:C.pop(),C.length&&C[0]===m[0]?gb(C,ee(x,2)):[]}),Hrt=we(function(m){var x=sa(m),C=$e(m,Cb);return x=typeof x=="function"?x:t,x&&C.pop(),C.length&&C[0]===m[0]?gb(C,t,x):[]});function Urt(m,x){return m==null?"":Vtt.call(m,x)}function sa(m){var x=m==null?0:m.length;return x?m[x-1]:t}function Zrt(m,x,C){var k=m==null?0:m.length;if(!k)return-1;var z=k;return C!==t&&(z=ge(C),z=z<0?Sr(k+z,0):Ur(z,k-1)),x===x?Stt(m,x,z):Dp(m,VN,z,!0)}function Yrt(m,x){return m&&m.length?gO(m,ge(x)):t}var Xrt=we(o5);function o5(m,x){return m&&m.length&&x&&x.length?wb(m,x):m}function jrt(m,x,C){return m&&m.length&&x&&x.length?wb(m,x,ee(C,2)):m}function $rt(m,x,C){return m&&m.length&&x&&x.length?wb(m,x,t,C):m}var qrt=Oi(function(m,x){var C=m==null?0:m.length,k=hb(m,x);return _O(m,$e(x,function(z){return Bi(z,C)?+z:z}).sort(MO)),k});function Krt(m,x){var C=[];if(!(m&&m.length))return C;var k=-1,z=[],G=m.length;for(x=ee(x,3);++k<G;){var q=m[k];x(q,k,m)&&(C.push(q),z.push(k))}return _O(m,z),C}function Fb(m){return m==null?m:Htt.call(m)}function Qrt(m,x,C){var k=m==null?0:m.length;return k?(C&&typeof C!="number"&&sn(m,x,C)?(x=0,C=k):(x=x==null?0:ge(x),C=C===t?k:ge(C)),oa(m,x,C)):[]}function Jrt(m,x){return Xp(m,x)}function tnt(m,x,C){return Sb(m,x,ee(C,2))}function ent(m,x){var C=m==null?0:m.length;if(C){var k=Xp(m,x);if(k<C&&Da(m[k],x))return k}return-1}function rnt(m,x){return Xp(m,x,!0)}function nnt(m,x,C){return Sb(m,x,ee(C,2),!0)}function ant(m,x){var C=m==null?0:m.length;if(C){var k=Xp(m,x,!0)-1;if(Da(m[k],x))return k}return-1}function int(m){return m&&m.length?bO(m):[]}function ont(m,x){return m&&m.length?bO(m,ee(x,2)):[]}function snt(m){var x=m==null?0:m.length;return x?oa(m,1,x):[]}function lnt(m,x,C){return m&&m.length?(x=C||x===t?1:ge(x),oa(m,0,x<0?0:x)):[]}function unt(m,x,C){var k=m==null?0:m.length;return k?(x=C||x===t?1:ge(x),x=k-x,oa(m,x<0?0:x,k)):[]}function cnt(m,x){return m&&m.length?jp(m,ee(x,3),!1,!0):[]}function fnt(m,x){return m&&m.length?jp(m,ee(x,3)):[]}var hnt=we(function(m){return Eo(Or(m,1,ur,!0))}),vnt=we(function(m){var x=sa(m);return ur(x)&&(x=t),Eo(Or(m,1,ur,!0),ee(x,2))}),dnt=we(function(m){var x=sa(m);return x=typeof x=="function"?x:t,Eo(Or(m,1,ur,!0),t,x)});function pnt(m){return m&&m.length?Eo(m):[]}function gnt(m,x){return m&&m.length?Eo(m,ee(x,2)):[]}function ynt(m,x){return x=typeof x=="function"?x:t,m&&m.length?Eo(m,t,x):[]}function Gb(m){if(!(m&&m.length))return[];var x=0;return m=Co(m,function(C){if(ur(C))return x=Sr(C.length,x),!0}),ab(x,function(C){return $e(m,eb(C))})}function s5(m,x){if(!(m&&m.length))return[];var C=Gb(m);return x==null?C:$e(C,function(k){return Dn(x,t,k)})}var mnt=we(function(m,x){return ur(m)?Kf(m,x):[]}),_nt=we(function(m){return Tb(Co(m,ur))}),wnt=we(function(m){var x=sa(m);return ur(x)&&(x=t),Tb(Co(m,ur),ee(x,2))}),bnt=we(function(m){var x=sa(m);return x=typeof x=="function"?x:t,Tb(Co(m,ur),t,x)}),xnt=we(Gb);function Snt(m,x){return TO(m||[],x||[],qf)}function Ant(m,x){return TO(m||[],x||[],th)}var Tnt=we(function(m){var x=m.length,C=x>1?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<G;)k[z]=x[z].call(this,k[z]);return Dn(m,this,k)})}),Hb=we(function(m,x){var C=Lo(x,Pu(Hb));return Ni(m,S,t,x,C)}),y5=we(function(m,x){var C=Lo(x,Pu(y5));return Ni(m,A,t,x,C)}),cat=Oi(function(m,x){return Ni(m,D,t,t,t,x)});function fat(m,x){if(typeof m!="function")throw new na(o);return x=x===t?x:ge(x),we(m,x)}function hat(m,x){if(typeof m!="function")throw new na(o);return x=x==null?0:Sr(ge(x),0),we(function(C){var k=C[x],z=ko(C,0,x);return k&&Do(z,k),Dn(m,this,z)})}function vat(m,x,C){var k=!0,z=!0;if(typeof m!="function")throw new na(o);return Qe(C)&&(k="leading"in C?!!C.leading:k,z="trailing"in C?!!C.trailing:z),g5(m,x,{leading:k,maxWait:x,trailing:z})}function dat(m){return f5(m,1)}function pat(m,x){return Hb(Db(x),m)}function gat(){if(!arguments.length)return[];var m=arguments[0];return he(m)?m:[m]}function yat(m){return ia(m,v)}function mat(m,x){return x=typeof x=="function"?x:t,ia(m,v,x)}function _at(m){return ia(m,f|v)}function wat(m,x){return x=typeof x=="function"?x:t,ia(m,f|v,x)}function bat(m,x){return x==null||aO(m,x,Dr(x))}function Da(m,x){return m===x||m!==m&&x!==x}var xat=Jp(pb),Sat=Jp(function(m,x){return m>=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);++C<k;)for(var G=x[C],q=gn(G),Q=-1,rt=q.length;++Q<rt;){var yt=q[Q],_t=m[yt];(_t===t||Da(_t,Cu[yt])&&!Ge.call(m,yt))&&(m[yt]=G[yt])}return m}),qat=we(function(m){return m.push(t,WO),Dn(C5,t,m)});function Kat(m,x){return zN(m,ee(x,3),ri)}function Qat(m,x){return zN(m,ee(x,3),db)}function Jat(m,x){return m==null?m:vb(m,ee(x,3),gn)}function tit(m,x){return m==null?m:lO(m,ee(x,3),gn)}function eit(m,x){return m&&ri(m,ee(x,3))}function rit(m,x){return m&&db(m,ee(x,3))}function nit(m){return m==null?[]:Zp(m,Dr(m))}function ait(m){return m==null?[]:Zp(m,gn(m))}function Yb(m,x,C){var k=m==null?t:nl(m,x);return k===t?C:k}function iit(m,x){return m!=null&&ZO(m,x,Let)}function Xb(m,x){return m!=null&&ZO(m,x,Met)}var oit=BO(function(m,x,C){x!=null&&typeof x.toString!="function"&&(x=Pp.call(x)),m[x]=C},$b(yn)),sit=BO(function(m,x,C){x!=null&&typeof x.toString!="function"&&(x=Pp.call(x)),Ge.call(m,x)?m[x].push(C):m[x]=[C]},ee),lit=we(Qf);function Dr(m){return pn(m)?eO(m):mb(m)}function gn(m){return pn(m)?eO(m,!0):Vet(m)}function uit(m,x){var C={};return x=ee(x,3),ri(m,function(k,z,G){Ri(C,x(k,z,G),k)}),C}function cit(m,x){var C={};return x=ee(x,3),ri(m,function(k,z,G){Ri(C,z,x(k,z,G))}),C}var fit=Iu(function(m,x,C){Yp(m,x,C)}),C5=Iu(function(m,x,C,k){Yp(m,x,C,k)}),hit=Oi(function(m,x){var C={};if(m==null)return C;var k=!1;x=$e(x,function(G){return G=Po(G,m),k||(k=G.length>1),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);++k<z;){var G=m==null?t:m[ai(x[k])];G===t&&(k=z,G=C),m=zi(G)?G.call(m):G}return m}function git(m,x,C){return m==null?m:th(m,x,C)}function yit(m,x,C,k){return k=typeof k=="function"?k:t,m==null?m:th(m,x,C,k)}var L5=FO(Dr),M5=FO(gn);function mit(m,x,C){var k=he(m),z=k||Ro(m)||ku(m);if(x=ee(x,4),C==null){var G=m&&m.constructor;z?C=k?new G:[]:Qe(m)?C=zi(G)?Mu(Np(m)):{}:C={}}return(z?ra:ri)(m,function(q,Q,rt){return x(C,q,Q,rt)}),C}function _it(m,x){return m==null?!0:Ab(m,x)}function wit(m,x,C){return m==null?m:SO(m,x,Db(C))}function bit(m,x,C,k){return k=typeof k=="function"?k:t,m==null?m:SO(m,x,Db(C),k)}function Ru(m){return m==null?[]:ib(m,Dr(m))}function xit(m){return m==null?[]:ib(m,gn(m))}function Sit(m,x,C){return C===t&&(C=x,x=t),C!==t&&(C=la(C),C=C===C?C:0),x!==t&&(x=la(x),x=x===x?x:0),rl(la(m),x,C)}function Ait(m,x,C){return x=Vi(x),C===t?(C=x,x=0):C=Vi(C),m=la(m),Iet(m,x,C)}function Tit(m,x,C){if(C&&typeof C!="boolean"&&sn(m,x,C)&&(x=C=t),C===t&&(typeof x=="boolean"?(C=x,x=t):typeof m=="boolean"&&(C=m,m=t)),m===t&&x===t?(m=0,x=1):(m=Vi(m),x===t?(x=m,m=0):x=Vi(x)),m>x){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<x?m+Qp(x-k,C):m}function Nit(m,x,C){m=Oe(m),x=ge(x);var k=x?Au(m):0;return x&&k<x?Qp(x-k,C)+m:m}function Oit(m,x,C){return C||x==null?x=0:x&&(x=+x),Wtt(Oe(m).replace(Uw,""),x||0)}function Bit(m,x,C){return(C?sn(m,x,C):x===t)?x=1:x=ge(x),xb(Oe(m),x)}function zit(){var m=arguments,x=Oe(m[0]);return m.length<3?x:x.replace(m[1],m[2])}var Vit=Eu(function(m,x,C){return m+(C?"_":"")+x.toLowerCase()});function Fit(m,x,C){return C&&typeof C!="number"&&sn(m,x,C)&&(x=C=t),C=C===t?U:C>>>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;++z<x;){var G=m[z];if(Dn(G[0],this,k))return Dn(G[1],this,k)}})}function tot(m){return Tet(ia(m,f))}function $b(m){return function(){return m}}function eot(m,x){return m==null||m!==m?x:m}var rot=OO(),not=OO(!0);function yn(m){return m}function qb(m){return hO(typeof m=="function"?m:ia(m,f))}function aot(m){return dO(ia(m,f))}function iot(m,x){return pO(m,ia(x,f))}var oot=we(function(m,x){return function(C){return Qf(C,m,x)}}),sot=we(function(m,x){return function(C){return Qf(m,C,x)}});function Kb(m,x,C){var k=Dr(x),z=Zp(x,k);C==null&&!(Qe(x)&&(z.length||!k.length))&&(C=x,x=m,m=this,z=Zp(x,Dr(x)));var G=!(Qe(C)&&"chain"in C)||!!C.chain,q=zi(m);return ra(z,function(Q){var rt=x[Q];m[Q]=rt,q&&(m.prototype[Q]=function(){var yt=this.__chain__;if(G||yt){var _t=m(this.__wrapped__),St=_t.__actions__=dn(this.__actions__);return St.push({func:rt,args:arguments,thisArg:m}),_t.__chain__=yt,_t}return rt.apply(m,Do([this.value()],arguments))})}),m}function lot(){return Nr._===this&&(Nr._=ktt),this}function Qb(){}function uot(m){return m=ge(m),we(function(x){return gO(x,m)})}var cot=Mb($e),fot=Mb(BN),hot=Mb(tb);function R5(m){return Ob(m)?eb(ai(m)):Wet(m)}function vot(m){return function(x){return m==null?t:nl(m,x)}}var dot=zO(),pot=zO(!0);function Jb(){return[]}function tx(){return!1}function got(){return{}}function yot(){return""}function mot(){return!0}function _ot(m,x){if(m=ge(m),m<1||m>j)return[];var C=U,k=Ur(m,U);x=ee(x),m-=U;for(var z=ab(k,x);++C<m;)x(C);return z}function wot(m){return he(m)?$e(m,ai):In(m)?[m]:dn(t5(Oe(m)))}function bot(m){var x=++Ett;return Oe(m)+x}var xot=Kp(function(m,x){return m+x},0),Sot=Ib("ceil"),Aot=Kp(function(m,x){return m/x},1),Tot=Ib("floor");function Cot(m){return m&&m.length?Up(m,yn,pb):t}function Dot(m,x){return m&&m.length?Up(m,ee(x,2),pb):t}function Lot(m){return FN(m,yn)}function Mot(m,x){return FN(m,ee(x,2))}function Iot(m){return m&&m.length?Up(m,yn,_b):t}function Eot(m,x){return m&&m.length?Up(m,ee(x,2),_b):t}var Pot=Kp(function(m,x){return m*x},1),kot=Ib("round"),Rot=Kp(function(m,x){return m-x},0);function Not(m){return m&&m.length?nb(m,yn):0}function Oot(m,x){return m&&m.length?nb(m,ee(x,2)):0}return V.after=aat,V.ary=f5,V.assign=Zat,V.assignIn=T5,V.assignInWith=cg,V.assignWith=Yat,V.at=Xat,V.before=h5,V.bind=Wb,V.bindAll=Qit,V.bindKey=v5,V.castArray=gat,V.chain=l5,V.chunk=Trt,V.compact=Crt,V.concat=Drt,V.cond=Jit,V.conforms=tot,V.constant=$b,V.countBy=Nnt,V.create=jat,V.curry=d5,V.curryRight=p5,V.debounce=g5,V.defaults=$at,V.defaultsDeep=qat,V.defer=iat,V.delay=oat,V.difference=Lrt,V.differenceBy=Mrt,V.differenceWith=Irt,V.drop=Ert,V.dropRight=Prt,V.dropRightWhile=krt,V.dropWhile=Rrt,V.fill=Nrt,V.filter=Bnt,V.flatMap=Fnt,V.flatMapDeep=Gnt,V.flatMapDepth=Wnt,V.flatten=a5,V.flattenDeep=Ort,V.flattenDepth=Brt,V.flip=sat,V.flow=rot,V.flowRight=not,V.fromPairs=zrt,V.functions=nit,V.functionsIn=ait,V.groupBy=Hnt,V.initial=Frt,V.intersection=Grt,V.intersectionBy=Wrt,V.intersectionWith=Hrt,V.invert=oit,V.invertBy=sit,V.invokeMap=Znt,V.iteratee=qb,V.keyBy=Ynt,V.keys=Dr,V.keysIn=gn,V.map=ag,V.mapKeys=uit,V.mapValues=cit,V.matches=aot,V.matchesProperty=iot,V.memoize=og,V.merge=fit,V.mergeWith=C5,V.method=oot,V.methodOf=sot,V.mixin=Kb,V.negate=sg,V.nthArg=uot,V.omit=hit,V.omitBy=vit,V.once=lat,V.orderBy=Xnt,V.over=cot,V.overArgs=uat,V.overEvery=fot,V.overSome=hot,V.partial=Hb,V.partialRight=y5,V.partition=jnt,V.pick=dit,V.pickBy=D5,V.property=R5,V.propertyOf=vot,V.pull=Xrt,V.pullAll=o5,V.pullAllBy=jrt,V.pullAllWith=$rt,V.pullAt=qrt,V.range=dot,V.rangeRight=pot,V.rearg=cat,V.reject=Knt,V.remove=Krt,V.rest=fat,V.reverse=Fb,V.sampleSize=Jnt,V.set=git,V.setWith=yit,V.shuffle=tat,V.slice=Qrt,V.sortBy=nat,V.sortedUniq=int,V.sortedUniqBy=ont,V.split=Fit,V.spread=hat,V.tail=snt,V.take=lnt,V.takeRight=unt,V.takeRightWhile=cnt,V.takeWhile=fnt,V.tap=Cnt,V.throttle=vat,V.thru=ng,V.toArray=x5,V.toPairs=L5,V.toPairsIn=M5,V.toPath=wot,V.toPlainObject=A5,V.transform=mit,V.unary=dat,V.union=hnt,V.unionBy=vnt,V.unionWith=dnt,V.uniq=pnt,V.uniqBy=gnt,V.uniqWith=ynt,V.unset=_it,V.unzip=Gb,V.unzipWith=s5,V.update=wit,V.updateWith=bit,V.values=Ru,V.valuesIn=xit,V.without=mnt,V.words=P5,V.wrap=pat,V.xor=_nt,V.xorBy=wnt,V.xorWith=bnt,V.zip=xnt,V.zipObject=Snt,V.zipObjectDeep=Ant,V.zipWith=Tnt,V.entries=L5,V.entriesIn=M5,V.extend=T5,V.extendWith=cg,Kb(V,V),V.add=xot,V.attempt=k5,V.camelCase=Cit,V.capitalize=I5,V.ceil=Sot,V.clamp=Sit,V.clone=yat,V.cloneDeep=_at,V.cloneDeepWith=wat,V.cloneWith=mat,V.conformsTo=bat,V.deburr=E5,V.defaultTo=eot,V.divide=Aot,V.endsWith=Dit,V.eq=Da,V.escape=Lit,V.escapeRegExp=Mit,V.every=Ont,V.find=znt,V.findIndex=r5,V.findKey=Kat,V.findLast=Vnt,V.findLastIndex=n5,V.findLastKey=Qat,V.floor=Tot,V.forEach=u5,V.forEachRight=c5,V.forIn=Jat,V.forInRight=tit,V.forOwn=eit,V.forOwnRight=rit,V.get=Yb,V.gt=xat,V.gte=Sat,V.has=iit,V.hasIn=Xb,V.head=i5,V.identity=yn,V.includes=Unt,V.indexOf=Vrt,V.inRange=Ait,V.invoke=lit,V.isArguments=ol,V.isArray=he,V.isArrayBuffer=Aat,V.isArrayLike=pn,V.isArrayLikeObject=ur,V.isBoolean=Tat,V.isBuffer=Ro,V.isDate=Cat,V.isElement=Dat,V.isEmpty=Lat,V.isEqual=Mat,V.isEqualWith=Iat,V.isError=Ub,V.isFinite=Eat,V.isFunction=zi,V.isInteger=m5,V.isLength=lg,V.isMap=_5,V.isMatch=Pat,V.isMatchWith=kat,V.isNaN=Rat,V.isNative=Nat,V.isNil=Bat,V.isNull=Oat,V.isNumber=w5,V.isObject=Qe,V.isObjectLike=er,V.isPlainObject=ah,V.isRegExp=Zb,V.isSafeInteger=zat,V.isSet=b5,V.isString=ug,V.isSymbol=In,V.isTypedArray=ku,V.isUndefined=Vat,V.isWeakMap=Fat,V.isWeakSet=Gat,V.join=Urt,V.kebabCase=Iit,V.last=sa,V.lastIndexOf=Zrt,V.lowerCase=Eit,V.lowerFirst=Pit,V.lt=Wat,V.lte=Hat,V.max=Cot,V.maxBy=Dot,V.mean=Lot,V.meanBy=Mot,V.min=Iot,V.minBy=Eot,V.stubArray=Jb,V.stubFalse=tx,V.stubObject=got,V.stubString=yot,V.stubTrue=mot,V.multiply=Pot,V.nth=Yrt,V.noConflict=lot,V.noop=Qb,V.now=ig,V.pad=kit,V.padEnd=Rit,V.padStart=Nit,V.parseInt=Oit,V.random=Tit,V.reduce=$nt,V.reduceRight=qnt,V.repeat=Bit,V.replace=zit,V.result=pit,V.round=kot,V.runInContext=et,V.sample=Qnt,V.size=eat,V.snakeCase=Vit,V.some=rat,V.sortedIndex=Jrt,V.sortedIndexBy=tnt,V.sortedIndexOf=ent,V.sortedLastIndex=rnt,V.sortedLastIndexBy=nnt,V.sortedLastIndexOf=ant,V.startCase=Git,V.startsWith=Wit,V.subtract=Rot,V.sum=Not,V.sumBy=Oot,V.template=Hit,V.times=_ot,V.toFinite=Vi,V.toInteger=ge,V.toLength=S5,V.toLower=Uit,V.toNumber=la,V.toSafeInteger=Uat,V.toString=Oe,V.toUpper=Zit,V.trim=Yit,V.trimEnd=Xit,V.trimStart=jit,V.truncate=$it,V.unescape=qit,V.uniqueId=bot,V.upperCase=Kit,V.upperFirst=jb,V.each=u5,V.eachRight=c5,V.first=i5,Kb(V,function(){var m={};return ri(V,function(x,C){Ge.call(V.prototype,C)||(m[C]=x)}),m}(),{chain:!1}),V.VERSION=n,ra(["bind","bindKey","curry","curryRight","partial","partialRight"],function(m){V[m].placeholder=V}),ra(["drop","take"],function(m,x){De.prototype[m]=function(C){C=C===t?1:Sr(ge(C),0);var k=this.__filtered__&&!x?new De(this):this.clone();return k.__filtered__?k.__takeCount__=Ur(C,k.__takeCount__):k.__views__.push({size:Ur(C,U),type:m+(k.__dir__<0?"Right":"")}),k},De.prototype[m+"Right"]=function(C){return this.reverse()[m](C).reverse()}}),ra(["filter","map","takeWhile"],function(m,x){var C=x+1,k=C==M||C==F;De.prototype[m]=function(z){var G=this.clone();return G.__iteratees__.push({iteratee:ee(z,3),type:C}),G.__filtered__=G.__filtered__||k,G}}),ra(["head","last"],function(m,x){var C="take"+(x?"Right":"");De.prototype[m]=function(){return this[C](1).value()[0]}}),ra(["initial","tail"],function(m,x){var C="drop"+(x?"":"Right");De.prototype[m]=function(){return this.__filtered__?new De(this):this[C](1)}}),De.prototype.compact=function(){return this.filter(yn)},De.prototype.find=function(m){return this.filter(m).head()},De.prototype.findLast=function(m){return this.reverse().find(m)},De.prototype.invokeMap=we(function(m,x){return typeof m=="function"?new De(this):this.map(function(C){return Qf(C,m,x)})}),De.prototype.reject=function(m){return this.filter(sg(ee(m)))},De.prototype.slice=function(m,x){m=ge(m);var C=this;return C.__filtered__&&(m>0||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<r.length;t++){var n=String.fromCharCode(t+32),a=(r.charCodeAt(t)-X5)/j5;e[n]=a}return e}var K5=q5($5),Wi={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,n){if(!r){var a=Wi.createCanvas();r=a&&a.getContext("2d")}if(r)return e!==n&&(e=r.font=n||Gi),r.measureText(t);t=t||"",n=n||Gi;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||dg,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=K5[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n}},ax=Ia(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),ix=Ia(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),sl=Object.prototype.toString,lh=Array.prototype,Q5=lh.forEach,J5=lh.filter,pg=lh.slice,tB=lh.map,ox=function(){}.constructor,uh=ox?ox.prototype:null,gg="__proto__",eB=2311;function sx(){return eB++}function ua(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console!="undefined"&&console.error.apply(console,r)}function Wt(r){if(r==null||typeof r!="object")return r;var e=r,t=sl.call(r);if(t==="[object Array]"){if(!Bu(r)){e=[];for(var n=0,a=r.length;n<a;n++)e[n]=Wt(r[n])}}else if(ix[t]){if(!Bu(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var n=0,a=r.length;n<a;n++)e[n]=r[n]}}}else if(!ax[t]&&!Bu(r)&&!Oo(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==gg&&(e[o]=Wt(r[o]))}return e}function qt(r,e,t){if(!zt(e)||!zt(r))return t?Wt(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==gg){var a=r[n],i=e[n];zt(i)&&zt(a)&&!ft(i)&&!ft(a)&&!Oo(i)&&!Oo(a)&&!lx(i)&&!lx(a)&&!Bu(i)&&!Bu(a)?qt(a,i,t):(t||!(n in r))&&(r[n]=Wt(e[n]))}return r}function yg(r,e){for(var t=r[0],n=1,a=r.length;n<a;n++)t=qt(t,r[n],e);return t}function lt(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==gg&&(r[t]=e[t]);return r}function Ft(r,e,t){for(var n=ue(e),a=0,i=n.length;a<i;a++){var o=n[a];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function te(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function rB(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var a in t)t.hasOwnProperty(a)&&(r.prototype[a]=t[a]);r.prototype.constructor=r,r.superClass=e}function rr(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else Ft(r,e,t)}function Br(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function N(r,e,t){if(r&&e)if(r.forEach&&r.forEach===Q5)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)e.call(t,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function ht(r,e,t){if(!r)return[];if(!e)return mg(r);if(r.map&&r.map===tB)return r.map(e,t);for(var n=[],a=0,i=r.length;a<i;a++)n.push(e.call(t,r[a],a,r));return n}function Ia(r,e,t,n){if(r&&e){for(var a=0,i=r.length;a<i;a++)t=e.call(n,t,r[a],a,r);return t}}function Ae(r,e,t){if(!r)return[];if(!e)return mg(r);if(r.filter&&r.filter===J5)return r.filter(e,t);for(var n=[],a=0,i=r.length;a<i;a++)e.call(t,r[a],a,r)&&n.push(r[a]);return n}function nB(r,e,t){if(r&&e){for(var n=0,a=r.length;n<a;n++)if(e.call(t,r[n],n,r))return r[n]}}function ue(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function aB(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(pg.call(arguments)))}}var Lt=uh&&Rt(uh.bind)?uh.call.bind(uh.bind):aB;function jt(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(pg.call(arguments)))}}function ft(r){return Array.isArray?Array.isArray(r):sl.call(r)==="[object Array]"}function Rt(r){return typeof r=="function"}function Ct(r){return typeof r=="string"}function ch(r){return sl.call(r)==="[object String]"}function ye(r){return typeof r=="number"}function zt(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function lx(r){return!!ax[sl.call(r)]}function Yr(r){return!!ix[sl.call(r)]}function Oo(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function fh(r){return r.colorStops!=null}function iB(r){return r.image!=null}function ux(r){return sl.call(r)==="[object RegExp]"}function Bo(r){return r!==r}function nr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function Ut(r,e){return r!=null?r:e}function kn(r,e,t){return r!=null?r:e!=null?e:t}function mg(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return pg.apply(r,e)}function _g(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function Vt(r,e){if(!r)throw new Error(e)}function ca(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var cx="__ec_primitive__";function hh(r){r[cx]=!0}function Bu(r){return r[cx]}var oB=function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return ue(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r}(),fx=typeof Map=="function";function sB(){return fx?new Map:new oB}var lB=function(){function r(e){var t=ft(e);this.data=sB();var n=this;e instanceof r?e.each(a):e&&N(e,a);function a(i,o){t?n.set(i,o):n.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(n,a){e.call(t,n,a)})},r.prototype.keys=function(){var e=this.data.keys();return fx?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();function Et(r){return new lB(r)}function zu(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var a=r.length,n=0;n<e.length;n++)t[n+a]=e[n];return t}function vh(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&<(t,e),t}function hx(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Mt(r,e){return r.hasOwnProperty(e)}function Je(){}var dh=180/Math.PI;function zo(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Xr(r,e){return r[0]=e[0],r[1]=e[1],r}function oi(r){return[r[0],r[1]]}function uB(r,e,t){return r[0]=e,r[1]=t,r}function vx(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function wg(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function Vo(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function bg(r){return Math.sqrt(cB(r))}function cB(r){return r[0]*r[0]+r[1]*r[1]}function ph(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function ll(r,e){var t=bg(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function xg(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Hi=xg;function fB(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Fo=fB;function gh(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function Mr(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[2]*a+t[4],r[1]=t[1]*n+t[3]*a+t[5],r}function Ui(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Zi(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var ul=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),hB=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ul(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,t.drift(i,o,e),this.handler.dispatchToElement(new ul(t,e),"drag",e.event);var s=this.handler.findHover(n,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ul(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ul(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ul(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ul(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),Rn=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(a=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var l={h:n,query:t,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=t[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r}(),vB=Math.log(2);function Sg(r,e,t,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/vB);return r[t][l]}for(var u=n|1<<t,c=t+1;n&1<<c;)c++;for(var f=0,d=0,v=0;d<s;d++){var p=1<<d;p&a||(f+=(v%2?-1:1)*r[t][d]*Sg(r,e-1,c,u,a|p,i),v++)}return i[o]=f,f}function dx(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],n={},a=Sg(t,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Sg(t,7,o===0?1:0,1<<o,1<<s,n)/a*e[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var px="___zrEVENTSAVED",Ag=[];function dB(r,e,t,n,a){return Tg(Ag,e,n,a,!0)&&Tg(r,t,Ag[0],Ag[1])}function Tg(r,e,t,n,a){if(e.getBoundingClientRect&&ie.domSupported&&!gx(e)){var i=e[px]||(e[px]={}),o=pB(e,i),s=gB(o,i,a);if(s)return s(r,t,n),!0}return!1}function pB(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>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;o<s;o++){var l=a[o],u=Dg(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in Ig)if(Ig.hasOwnProperty(t)){var n=Ig[t](this._track,e);if(n)return n}},r}();function _x(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function AB(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Ig={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,a=(r[t-2]||{}).points||n;if(a&&a.length>1&&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=!(i<l||u<a||s<c||f<o);if(t){var v=1/0,p=0,y=Math.abs(i-l),_=Math.abs(u-a),g=Math.abs(s-c),h=Math.abs(f-o),w=Math.min(y,_),b=Math.min(g,h);i<l||u<a?w>p&&(p=w,y<_?Qt.set(Fu,-y,0):Qt.set(Fu,_,0)):w<v&&(v=w,y<_?Qt.set(Vu,y,0):Qt.set(Vu,-_,0)),s<c||f<o?b>p&&(p=b,g<h?Qt.set(Fu,0,-g):Qt.set(Fu,0,h)):w<v&&(v=w,g<h?Qt.set(Vu,0,g):Qt.set(Vu,0,-h))}return t&&Qt.copy(t,d?Vu:Fu),d},r.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},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;_<u;_+=v)for(var g=0;g<y;g+=p){var h=t+_*Math.cos(g),w=n+_*Math.sin(g);if(Sx(s,o,h,w,a),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new SB);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;t.gestureEvent=o;var s=new Gu;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(Rn);N(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){xx.prototype[r]=function(e){var t=e.zrX,n=e.zrY,a=Ax(this,t,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(t,n),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Hi(this._downPoint,[e.zrX,e.zrY])>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<t&&n(r[a],r[a-1])<0;)a++;PB(r,e,a)}else for(;a<t&&n(r[a],r[a-1])>=0;)a++;return a-e}function PB(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function Dx(r,e,t,n,a){for(n===e&&n++;n<t;n++){for(var i=r[n],o=e,s=n,l;o<s;)l=o+s>>>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;l<s&&i(r,e[t+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(r,e[t+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-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;l<s&&i(r,e[t+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(r,e[t+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-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]&&v--;else if(a[v]>a[v+1])break;c(v)}}function u(){for(;i>1;){var v=i-2;v>0&&a[v-1]<a[v+1]&&v--,c(v)}}function c(v){var p=n[v],y=a[v],_=n[v+1],g=a[v+1];a[v]=y+g,v===i-3&&(n[v+1]=n[v+2],a[v+1]=a[v+2]),i--;var h=Ng(r[_],r,p,y,0,e);p+=h,y-=h,y!==0&&(g=Rg(r[p+y-1],r,_,g,g-1,e),g!==0&&(y<=g?f(p,y,_,g):d(p,y,_,g)))}function f(v,p,y,_){var g=0;for(g=0;g<p;g++)o[g]=r[v+g];var h=0,w=y,b=v;if(r[b++]=r[w++],--_===0){for(g=0;g<p;g++)r[b+g]=o[h+g];return}if(p===1){for(g=0;g<_;g++)r[b+g]=r[w+g];r[b+_]=o[h];return}for(var S=t,A,T,D;;){A=0,T=0,D=!1;do if(e(r[w],o[h])<0){if(r[b++]=r[w++],T++,A=0,--_===0){D=!0;break}}else if(r[b++]=o[h++],A++,T=0,--p===1){D=!0;break}while((A|T)<S);if(D)break;do{if(A=Ng(r[w],o,h,p,0,e),A!==0){for(g=0;g<A;g++)r[b+g]=o[h+g];if(b+=A,h+=A,p-=A,p<=1){D=!0;break}}if(r[b++]=r[w++],--_===0){D=!0;break}if(T=Rg(o[h],r,w,_,0,e),T!==0){for(g=0;g<T;g++)r[b+g]=r[w+g];if(b+=T,w+=T,_-=T,_===0){D=!0;break}}if(r[b++]=o[h++],--p===1){D=!0;break}S--}while(A>=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<p;g++)r[b+g]=o[h+g]}}function d(v,p,y,_){var g=0;for(g=0;g<_;g++)o[g]=r[y+g];var h=v+p-1,w=_-1,b=y+_-1,S=0,A=0;if(r[b--]=r[h--],--p===0){for(S=b-(_-1),g=0;g<_;g++)r[S+g]=o[g];return}if(_===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];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)<T);if(I)break;do{if(D=p-Ng(o[w],r,v,p,p-1,e),D!==0){for(b-=D,h-=D,p-=D,A=b+1,S=h+1,g=D-1;g>=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<L;g++)r[A+g]=o[S+g];if(_<=1){I=!0;break}}if(r[b--]=r[h--],--p===0){I=!0;break}T--}while(D>=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(a<Tx){i=Cx(r,t,n,e),Dx(r,t,n,t+i,e);return}var o=kB(r,e),s=EB(a);do{if(i=Cx(r,t,n,e),i<s){var l=a;l>s&&(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;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,a=0,i=t.length;a<i;a++)this._updateAndAddDisplayable(t[a],null,e);n.length=this._displayListLen,wh(n,Mx)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)t=null;else if(a){t?t=t.slice():t=[];for(var i=a,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=Pa),this._updateAndAddDisplayable(u,t,n)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(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<n;t++)this.delRoot(e[t]);return}var a=te(this._roots,e);a>=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&&r<Ix}function kx(r){return r>Ix||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),_<v&&(f=h,v=_);v=1/0;for(var w=0;w<32&&!(d<Ex);w++)p=f-d,y=f+d,On[0]=gr(r,t,a,o,p),On[1]=gr(e,n,i,s,p),_=Fo(On,ka),p>=0&&_<v?(f=p,v=_):(fl[0]=gr(r,t,a,o,y),fl[1]=gr(e,n,i,s,y),g=Fo(fl,ka),y<=1&&g<v?(f=y,v=g):d*=.5);return c&&(c[0]=gr(r,t,a,o,f),c[1]=gr(e,n,i,s,f)),Yi(v)}function NB(r,e,t,n,a,i,o,s,l){for(var u=r,c=e,f=0,d=1/l,v=1;v<=l;v++){var p=v*d,y=gr(r,t,a,o,p),_=gr(e,n,i,s,p),g=y-u,h=_-c;f+=Math.sqrt(g*g+h*h),u=y,c=_}return f}function Ar(r,e,t,n){var a=1-n;return a*(a*r+2*n*e)+n*n*t}function Bg(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function OB(r,e,t,n,a){var i=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(Xi(i)){if(kx(o)){var u=-s/o;u>=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<f&&(u=d,f=v)}f=1/0;for(var p=0;p<32&&!(c<Ex);p++){var y=u-c,_=u+c;On[0]=Ar(r,t,a,y),On[1]=Ar(e,n,i,y);var v=Fo(On,ka);if(y>=0&&v<f)u=y,f=v;else{fl[0]=Ar(r,t,a,_),fl[1]=Ar(e,n,i,_);var g=Fo(fl,ka);_<=1&&g<f?(u=_,f=g):c*=.5}}return l&&(l[0]=Ar(r,t,a,u),l[1]=Ar(e,n,i,u)),Yi(f)}function BB(r,e,t,n,a,i,o){for(var s=r,l=e,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,v=Ar(r,t,a,d),p=Ar(e,n,i,d),y=v-s,_=p-l;u+=Math.sqrt(y*y+_*_),s=v,l=p}return u}var zB=/cubic-bezier\(([0-9,\.e ]+)\)/;function zg(r){var e=r&&zB.exec(r);if(e){var t=e[1].split(","),n=+ca(t[0]),a=+ca(t[1]),i=+ca(t[2]),o=+ca(t[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=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<UB&&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;i<a;i++)r[i]=ci(e[i],t[i],n);return r}function QB(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=ci(e[o][s],t[o][s],n)}return r}function Ph(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=e[i]+t[i]*n;return r}function $x(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function JB(r,e){for(var t=r.length,n=e.length,a=t>n?e:r,i=Math.min(t,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function t3(r,e,t){var n=r,a=e;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(t===1?a[l]:jg.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(t===1)isNaN(n[l])&&(n[l]=a[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=a[l][c])}}function qu(r){if(Br(r)){var e=r.length;if(Br(r[0])){for(var t=[],n=0;n<e;n++)t.push(jg.call(r[n]));return t}return jg.call(r)}return r}function kh(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function e3(r){return Br(r&&r[0])?2:1}var Rh=0,Nh=1,qx=2,Ku=3,qg=4,Kg=5,Kx=6;function Qx(r){return r===qg||r===Kg}function Oh(r){return r===Nh||r===qx}var Qu=[0,0,0,0],r3=function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},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<i;c++){var f=n[c],d=f.value,v=o.value;f.percent=f.time/e,s||(l&&c!==i-1?t3(d,v,a):u&&JB(d.colorStops,v.colorStops))}if(!s&&a!==Kg&&t&&this.needsAnimate()&&t.needsAnimate()&&a===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,c=0;c<i;c++)a===Rh?n[c].additiveValue=n[c].value-p:a===Ku?n[c].additiveValue=Ph([],n[c].value,p,-1):Oh(a)&&(n[c].additiveValue=a===Nh?Ph([],n[c].value,p,-1):$x([],n[c].value,p,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Ku,c,f=this._lastFr,d=Math.min,v,p;if(s===1)v=p=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var y=d(f+1,s-1);for(c=y;c>=0&&!(o[c].percent<=t);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>t);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;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new r3(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===Ku&&u&&(u=kh(u))}else u=this._target[s];if(u==null)continue;e>0&&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;n<t;n++)e[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(t._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new VB({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){t._started=2;var p=t._additiveAnimators;if(p){for(var y=!1,_=0;_<p.length;_++)if(p[_]._clip){y=!0;break}y||(t._additiveAnimators=null)}for(var _=0;_<n.length;_++)n[_].step(t._target,v);var g=t._onframeCbs;if(g)for(var _=0;_<g.length;_++)g[_](t._target,v)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return ht(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var a=0;a<t.length;a++){var i=t[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[i]=qu(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||ue(e);for(var n=0;n<t.length;n++){var a=t[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){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.__lastTouchMoment<a3&&ha.click.call(this,r)},pointerdown:function(r){ha.mousedown.call(this,r)},pointermove:function(r){ey(r)||ha.mousemove.call(this,r)},pointerup:function(r){ha.mouseup.call(this,r)},pointerout:function(r){ey(r)||ha.mouseout.call(this,r)}};N(["click","dblclick","contextmenu"],function(r){ha[r]=function(e){e=Nn(this.dom,e),this.trigger(r,e)}});var ny={pointermove:function(r){ey(r)||ny.mousemove.call(this,r)},pointerup:function(r){ny.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function l3(r,e){var t=e.domHandlers;ie.pointerEventsSupported?N(ty.pointer,function(n){Bh(e,n,function(a){t[n].call(r,a)})}):(ie.touchEventsSupported&&N(ty.touch,function(n){Bh(e,n,function(a){t[n].call(r,a),i3(e)})}),N(ty.mouse,function(n){Bh(e,n,function(a){a=Lg(a),e.touching||t[n].call(r,a)})}))}function u3(r,e){ie.pointerEventsSupported?N(Jx.pointer,t):ie.touchEventsSupported||N(Jx.mouse,t);function t(n){function a(i){i=Lg(i),eS(r,i.target)||(i=o3(r,i),e.domHandlers[n].call(r,i))}Bh(e,n,a,{capture:!0})}}function Bh(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,Mg(r.domTarget,e,t,n)}function ay(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&xB(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var rS=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),c3=function(r){J(e,r);function e(t,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new rS(t,ha),Jg&&(a._globalHandlerScope=new rS(document,ny)),l3(a,a._localHandlerScope),a}return e.prototype.dispose=function(){ay(this._localHandlerScope),Jg&&ay(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Jg&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?u3(this,n):ay(n)}},e}(Rn),nS=1;ie.hasGlobalWindow&&(nS=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var zh=nS,iy=.4,oy="#333",sy="#ccc",f3="#eee",aS=yh,h3=5e-5;function Xo(r){return r>h3||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<Ra.length;t++){var n=Ra[t];r[n]=e[n]}}var oS={};function wn(r,e){e=e||Gi;var t=oS[e];t||(t=oS[e]=new Yu(500));var n=t.get(r);return n==null&&(n=Wi.measureText(r,e).width,t.put(r,n)),n}function sS(r,e,t,n){var a=wn(r,e),i=Vh(e),o=tc(0,a,t),s=pl(0,i,n),l=new Jt(o,s,a,i);return l}function Ju(r,e,t,n){var a=((r||"")+"").split(`
- +`),i=a.length;if(i===1)return sS(a[0],e,t,n);for(var o=new Jt(0,0,0,0),s=0;s<a.length;s++){var l=sS(a[s],e,t,n);s===0?o.copy(l):o.union(l)}return o}function tc(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function pl(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function Vh(r){return wn("国",r)}function va(r,e){return typeof r=="string"?r.lastIndexOf("%")>=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;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==cy)){var o=a.targetName,s=o?t[o]:t;a.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,fy)},r.prototype._savePrimaryToNormal=function(e,t,n){for(var a=0;a<n.length;a++){var i=n[a];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},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;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&a.push(c)}var f=a[o-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,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<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=te(this.currentStates,e);if(t>=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<e.length;a++){var i=e[a];lt(t,i),i.textConfig&&(n=n||{},lt(n,i.textConfig))}return n&&(t.textConfig=n),t},r.prototype._applyStateObj=function(e,t,n,a,i,o){var s=!(t&&a);t&&t.textConfig?(this.textConfig=lt({},a?this.textConfig:n.textConfig),lt(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<fy.length;c++){var f=fy[c],d=i&&v3[f];t&&t[f]!=null?d?(u=!0,l[f]=t[f]):this[f]=t[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!i)for(var c=0;c<this.animators.length;c++){var v=this.animators[c],p=v.targetName;v.getLoop()||v.__changeFinalValue(p?(t||n)[p]:t||n)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new fi,this._attachComponent(e),this._textContent=e,this.markRedraw()}},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),lt(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Pa;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,n){var a=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!a){ua('Property "'+e+'" is not existed in element '+this.id);return}var i=new Qg(a,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(t)}).done(function(){var i=a.animators,o=te(i,e);o>=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;o<a;o++){var s=n[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,n){hy(this,e,t,n)},r.prototype.animateFrom=function(e,t,n){hy(this,e,t,n,!0)},r.prototype._transitionState=function(e,t,n,a){for(var i=hy(this,t,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Pa;var t={};function n(i,o,s){t[i+o+s]||(console.warn("DEPRECATED: '"+i+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[i+o+s]=!0)}function a(i,o,s,l){Object.defineProperty(e,i,{get:function(){if(process.env.NODE_ENV!=="production"&&n(i,s,l),!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){process.env.NODE_ENV!=="production"&&n(i,s,l),this[s]=c[0],this[l]=c[1],this[o]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(d){c[s]=d}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(d){c[l]=d}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),r}();rr(Gh,Rn),rr(Gh,fi);function hy(r,e,t,n,a){t=t||{};var i=[];lS(r,"",r,e,t,n,i,a);var o=i.length,s=!1,l=t.done,u=t.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(p,y){t.during(y)});for(var d=0;d<i.length;d++){var v=i[d];v.done(c),v.aborted(f),t.force&&v.duration(t.duration),v.start(t.easing)}return i}function vy(r,e,t){for(var n=0;n<t;n++)r[n]=e[n]}function p3(r){return Br(r[0])}function g3(r,e,t){if(Br(e[t]))if(Br(r[t])||(r[t]=[]),Yr(e[t])){var n=e[t].length;r[t].length!==n&&(r[t]=new e[t].constructor(n),vy(r[t],e[t],n))}else{var a=e[t],i=r[t],o=a.length;if(p3(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?vy(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else vy(i,a,o);i.length=a.length}else r[t]=e[t]}function y3(r,e){return r===e||Br(r)&&Br(e)&&m3(r,e)}function m3(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}function lS(r,e,t,n,a,i,o,s){for(var l=ue(n),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,v=!zt(i),p=r.animators,y=[],_=0;_<l.length;_++){var g=l[_],h=n[g];if(h!=null&&t[g]!=null&&(v||i[g]))if(zt(h)&&!Br(h)&&!fh(h)){if(e){s||(t[g]=h,r.updateDuringAnimation(e));continue}lS(r,g,t[g],h,a,i&&i[g],o,s)}else y.push(g);else s||(t[g]=h,r.updateDuringAnimation(e),y.push(g))}var w=y.length;if(!f&&w)for(var b=0;b<p.length;b++){var S=p[b];if(S.targetName===e){var A=S.stopTracks(y);if(A){var T=te(p,S);p.splice(T,1)}}}if(a.force||(y=Ae(y,function(P){return!y3(n[P],t[P])}),w=y.length),w>0||a.force&&!o.length){var D=void 0,L=void 0,I=void 0;if(s){L={},d&&(D={});for(var b=0;b<w;b++){var g=y[b];L[g]=t[g],d?D[g]=n[g]:t[g]=n[g]}}else if(d){I={};for(var b=0;b<w;b++){var g=y[b];I[g]=qu(t[g]),g3(t,n,g)}}var S=new Qg(t,!1,!1,f?Ae(p,function(E){return E.targetName===e}):null);S.targetName=e,a.scope&&(S.scope=a.scope),d&&D&&S.whenWithKeys(0,D,y),I&&S.whenWithKeys(0,I,y),S.whenWithKeys(u==null?500:u,s?L:n,y).delay(c||0),r.addAnimator(S,e),o.push(S)}}var Ht=function(r){J(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===t)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),process.env.NODE_ENV!=="production"&&t.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(t,n){if(t&&t!==this&&t.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=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;a<t.length;a++){var i=t[a];n&&i.removeSelfFromZr(n),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];t.call(n,o,i)}return this},e.prototype.traverse=function(t,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=t.call(n,i);i.isGroup&&!o&&i.traverse(t,n)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var n=new Jt(0,0,0,0),a=t||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(Jt.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e}(Gh);Ht.prototype.type="group";/*!
- +* ZRender, a high performance 2d drawing library.
- +*
- +* Copyright (c) 2013, Baidu Inc.
- +* All rights reserved.
- +*
- +* LICENSE
- +* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
- +*/var ec={},uS={};function _3(r){delete uS[r]}function w3(r){if(!r)return!1;if(typeof r=="string")return Lh(r,1)<iy;if(r.colorStops){for(var e=r.colorStops,t=0,n=e.length,a=0;a<n;a++)t+=Lh(e[a].color,1);return t/=n,t<iy}return!1}var b3=function(){function r(e,t,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new RB,o=n.renderer||"canvas";if(ec[o]||(o=ue(ec)[0]),process.env.NODE_ENV!=="production"&&!ec[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new ec[o](t,i,n,e),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!ie.node&&!ie.worker&&!l?new c3(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?ie.touchEventsSupported:!!c,d=44,v;f&&(v=Ut(n.pointerSize,d)),this.handler=new xx(i,s,u,s.root,v),this.animation=new n3({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=w3(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,n=vl();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var a=vl();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(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;t<e.length;t++)e[t]instanceof Ht&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,_3(this.id))},r}();function cS(r,e){var t=new b3(sx(),r,e);return uS[t.id]=t,t}function x3(r,e){ec[r]=e}var dy;function S3(r){if(typeof dy=="function")return dy(r)}function A3(r){dy=r}var T3=1e-4,fS=20;function C3(r){return r.replace(/^\s+|\s+$/g,"")}function Le(r,e,t,n){var a=e[0],i=e[1],o=t[0],s=t[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){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]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(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<T3}var M3=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Oa(r){if(r instanceof Date)return r;if(Ct(r)){var e=M3.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function I3(r){return Math.pow(10,Wh(r))}function Wh(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=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<r.length;){for(var a=r[n].interval,i=r[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-t),e=a[o],t=i[o];a[0]===a[1]&&i[0]*i[1]!==1?r.splice(n,1):n++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function hi(r){var e=parseFloat(r);return e==r&&(e!==0||!Ct(r)||r.indexOf("x")<=0)?e:NaN}function yy(r){return!isNaN(hi(r))}function yS(){return Math.round(Math.random()*9)}function mS(r,e){return e===0?r:mS(e,r%e)}function _S(r,e){return r==null?e:e==null?r:r*e/mS(r,e)}var E3="[ECharts] ",wS={},P3=typeof console!="undefined"&&console.warn&&console.log;function Hh(r,e,t){if(P3){if(t){if(wS[e])return;wS[e]=!0}console[r](E3+e)}}function k3(r,e){Hh("log",r,e)}function Ye(r,e){Hh("warn",r,e)}function Ir(r,e){Hh("error",r,e)}function da(r){process.env.NODE_ENV!=="production"&&Hh("warn","DEPRECATED: "+r,!0)}function ar(r,e,t){process.env.NODE_ENV!=="production"&&da((t?"["+t+"]":"")+(r+" is deprecated, use "+e+" instead."))}function $r(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t="";if(process.env.NODE_ENV!=="production"){var n=function(a){return a===void 0?"undefined":a===1/0?"Infinity":a===-1/0?"-Infinity":Bo(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":Rt(a)?"function () { ... }":ux(a)?a+"":null};t=ht(r,function(a){if(Ct(a))return a;var i=n(a);if(i!=null)return i;if(typeof JSON!="undefined"&&JSON.stringify)try{return JSON.stringify(a,function(o,s){var l=n(s);return l==null?s:l})}catch(o){return"?"}else return"?"}).join(" ")}return t}function Te(r){throw new Error(r)}function bS(r,e,t){return(e-r)*t+r}var xS="series\0",SS="\0_ec_\0";function Pe(r){return r instanceof Array?r:r==null?[]:[r]}function $o(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,a=t.length;n<a;n++){var i=t[n];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var AS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function yl(r){return zt(r)&&!ft(r)&&!(r instanceof Date)?r.value:r}function R3(r){return zt(r)&&!(r instanceof Array)}function TS(r,e,t){var n=t==="normalMerge",a=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=Et();N(e,function(l,u){if(!zt(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!LS(l.id)&&DS(l.id),l.name!=null&&!LS(l.name)&&DS(l.name))});var s=N3(r,o,t);return(n||a)&&O3(s,r,o,e),n&&B3(s,e),n||a?z3(s,e,a):i&&V3(s,e),F3(s),s}function N3(r,e,t){var n=[];if(t==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:t==="replaceMerge"||ml(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function O3(r,e,t,n){N(n,function(a,i){if(!(!a||a.id==null)){var o=nc(a.id),s=t.get(o);if(s!=null){var l=r[s];Vt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],n[i]=null}}})}function B3(r,e){N(e,function(t,n){if(!(!t||t.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||t.id==null)&&!ml(t)&&!ml(i)&&CS("name",i,t)){r[a].newOption=t,e[n]=null;return}}})}function z3(r,e,t){N(e,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||ml(a.existing)||a.existing&&n.id!=null&&!CS("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),i++}})}function V3(r,e){N(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function F3(r){var e=Et();N(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),N(r,function(t){var n=t.newOption;Vt(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),N(r,function(t,n){var a=t.existing,i=t.newOption,o=t.keyInfo;if(zt(i)){if(o.name=i.name!=null?nc(i.name):a?a.name:xS+n,a)o.id=nc(a.id);else if(i.id!=null)o.id=nc(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function CS(r,e,t){var n=fr(e[r],null),a=fr(t[r],null);return n!=null&&a!=null&&n===a}function nc(r){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error;return fr(r,"")}function fr(r,e){return r==null?e:Ct(r)?r:ye(r)||ch(r)?r+"":e}function DS(r){process.env.NODE_ENV!=="production"&&Ye("`"+r+"` is invalid id or name. Must be a string or number.")}function LS(r){return ch(r)||yy(r)}function my(r){var e=r.name;return!!(e&&e.indexOf(xS))}function ml(r){return r&&r.id!=null&&nc(r.id).indexOf(SS)===0}function G3(r){return SS+r}function W3(r,e,t){N(r,function(n){var a=n.newOption;zt(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=H3(e,a,n.existing,t))})}function H3(r,e,t,n){var a=e.type?e.type:t?t.subType:n.determineSubType(r,e);return a}function U3(r,e){var t={},n={};return a(r||[],t),a(e||[],n,t),[i(t),i(n)];function a(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=fr(o[u].seriesId,null);if(f==null)return;for(var d=Pe(o[u].dataIndex),v=l&&l[f],p=0,y=d.length;p<y;p++){var _=d[p];v&&v[_]?v[_]=null:(s[f]||(s[f]={}))[_]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function qo(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return ft(e.dataIndex)?ht(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return ft(e.name)?ht(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function ve(){var r="__ec_inner_"+Z3++;return function(e){return e[r]||(e[r]={})}}var Z3=yS();function ac(r,e,t){var n=_y(e,t),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,c){var f=ic(r,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function _y(r,e){var t;if(Ct(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var a=Et(),i={},o=!1;return N(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&te(e.includeMainTypes,c)<0)){o=o||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var ir={useDefault:!0,enableAll:!1,enableNone:!1},Y3={useDefault:!1,enableAll:!0,enableNone:!0};function ic(r,e,t,n){n=n||ir;var a=t.index,i=t.id,o=t.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(e))?[l]:[],s}return a==="none"||a===!1?(Vt(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Vt(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=r.queryComponents({mainType:e,index:a,id:i,name:o}),s)}function MS(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function X3(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function j3(r){return r==="auto"?ie.domSupported?"html":"richText":r||"html"}function wy(r,e){var t=Et(),n=[];return N(r,function(a){var i=e(a);(t.get(i)||(n.push(i),t.set(i,[]))).push(a)}),{keys:n,buckets:t}}function IS(r,e,t,n,a){var i=e==null||e==="auto";if(n==null)return n;if(ye(n)){var o=bS(t||0,n,a);return qe(o,i?Math.max(Na(t||0),Na(n)):e)}else{if(Ct(n))return a<1?t:n;for(var s=[],l=t,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=r.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(a<1&&l?l:u)[f];else{var v=l&&l[f]?l[f]:0,p=u[f],o=bS(v,p,a);s[f]=qe(o,i?Math.max(Na(v),Na(p)):e)}}return s}}var $3=".",Ko="___EC__COMPONENT__CONTAINER___",ES="___EC__EXTENDED_CLASS___";function Ba(r){var e={main:"",sub:""};if(r){var t=r.split($3);e.main=t[0]||"",e.sub=t[1]||""}return e}function q3(r){Vt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function K3(r){return!!(r&&r[ES])}function by(r,e){r.$constructor=r,r.extend=function(t){process.env.NODE_ENV!=="production"&&N(e,function(i){t[i]||console.warn("Method `"+i+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var n=this,a;return Q3(n)?a=function(i){J(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(t.$constructor||n).apply(this,arguments)},rB(a,this)),lt(a.prototype,t),a[ES]=!0,a.extend=this.extend,a.superCall=ez,a.superApply=rz,a.superClass=n,a}}function Q3(r){return Rt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function PS(r,e){r.extend=e.extend}var J3=Math.round(Math.random()*10);function tz(r){var e=["__\0is_clz",J3++].join("_");r.prototype[e]=!0,process.env.NODE_ENV!=="production"&&Vt(!r.isInstance,'The method "is" can not be defined.'),r.isInstance=function(t){return!!(t&&t[e])}}function ez(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function rz(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Uh(r){var e={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){q3(a),n.prototype.type=a;var i=Ba(a);if(!i.sub)process.env.NODE_ENV!=="production"&&e[i.main]&&console.warn(i.main+" exists."),e[i.main]=n;else if(i.sub!==Ko){var o=t(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=e[n];if(o&&o[Ko]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var a=Ba(n),i=[],o=e[a.main];return o&&o[Ko]?N(o,function(s,l){l!==Ko&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=Ba(n);return!!e[a.main]},r.getAllClassMainTypes=function(){var n=[];return N(e,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=Ba(n),i=e[a.main];return i&&i[Ko]};function t(n){var a=e[n.main];return(!a||!a[Ko])&&(a=e[n.main]={},a[Ko]=!0),a}}function Qo(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&te(a,l)>=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<r.pending.length;e++){var t=r.pending[e],n=t.cb;n&&n(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Zh(r){return r&&r.width&&r.height}var Ay=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function sz(r,e,t,n,a,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
- +`);i=RS(t,n,a,i);for(var s=!1,l={},u=0,c=o.length;u<c;u++)NS(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
- +`),r.isTruncated=s}function RS(r,e,t,n){n=n||{};var a=lt({},n);a.font=e,t=Ut(t,"..."),a.maxIterations=Ut(n.maxIterations,2);var i=a.minChar=Ut(n.minChar,0);a.cnCharWidth=wn("国",e);var o=a.ascCharWidth=wn("a",e);a.placeholder=Ut(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=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;i<o&&a<e;i++){var s=r.charCodeAt(i);a+=0<=s&&s<=127?t:n}return i}function uz(r,e){r!=null&&(r+="");var t=e.overflow,n=e.padding,a=e.font,i=t==="truncate",o=Vh(a),s=Ut(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=!1,f=e.width,d;f!=null&&(t==="break"||t==="breakAll")?d=r?BS(r,e.font,f,t==="breakAll",0).lines:[]:d=r?r.split(`
- +`):[];var v=d.length*s,p=Ut(e.height,v);if(v>p&&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;h<d.length;h++)NS(g,d[h],_),d[h]=g.textLine,c=c||g.isTruncated;for(var w=p,b=0,h=0;h<d.length;h++)b=Math.max(wn(d[h],a),b);f==null&&(f=b);var S=b;return n&&(w+=n[0]+n[2],S+=n[1]+n[3],f+=n[1]+n[3]),l&&(S=f),{lines:d,height:p,outerWidth:S,outerHeight:w,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:v,width:f,isTruncated:c}}var cz=function(){function r(){}return r}(),OS=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),fz=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function hz(r,e){var t=new fz;if(r!=null&&(r+=""),!r)return t;for(var n=e.width,a=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=Ay.lastIndex=0,l;(l=Ay.exec(r))!=null;){var u=l.index;u>s&&Ty(t,r.substring(s,u),e,o),Ty(t,l[2],e,o,l[1]),s=Ay.lastIndex}s<r.length&&Ty(t,r.substring(s,r.length),e,o);var c=[],f=0,d=0,v=e.padding,p=i==="truncate",y=e.lineOverflow==="truncate",_={};function g(K,U,$){K.width=U,K.lineHeight=$,f+=$,d=Math.max(d,U)}t:for(var h=0;h<t.lines.length;h++){for(var w=t.lines[h],b=0,S=0,A=0;A<w.tokens.length;A++){var T=w.tokens[A],D=T.styleName&&e.rich[T.styleName]||{},L=T.textPadding=D.padding,I=L?L[1]+L[3]:0,P=T.font=D.font||e.font;T.contentHeight=Vh(P);var E=Ut(D.height,T.contentHeight);if(T.innerHeight=E,L&&(E+=L[0]+L[2]),T.height=E,T.lineHeight=kn(D.lineHeight,e.lineHeight,E),T.align=D&&D.align||e.align,T.verticalAlign=D&&D.verticalAlign||"middle",y&&a!=null&&f+T.lineHeight>a){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.length<R;break t}var M=D.width,B=M==null||M==="auto";if(typeof M=="string"&&M.charAt(M.length-1)==="%")T.percentWidth=M,c.push(T),T.contentWidth=wn(T.text,P);else{if(B){var F=D.backgroundColor,W=F&&F.image;W&&(W=oz(W),Zh(W)&&(T.width=Math.max(T.width,W.width*E/W.height)))}var j=p&&n!=null?n-S:null;j!=null&&j<T.width?!B||j<I?(T.text="",T.width=T.contentWidth=0):(sz(_,T.text,j-I,P,e.ellipsis,{minChar:e.truncateMinChar}),T.text=_.text,t.isTruncated=t.isTruncated||_.isTruncated,T.width=T.contentWidth=wn(T.text,P)):T.contentWidth=wn(T.text,P)}T.width+=I,S+=T.width,D&&(b=Math.max(b,T.lineHeight))}g(w,S,b)}t.outerWidth=t.width=Ut(n,d),t.outerHeight=t.height=Ut(a,f),t.contentHeight=f,t.contentWidth=d,v&&(t.outerWidth+=v[1]+v[3],t.outerHeight+=v[0]+v[2]);for(var h=0;h<c.length;h++){var T=c[h],H=T.percentWidth;T.width=parseInt(H,10)/100*t.width}return t}function Ty(r,e,t,n,a){var i=e==="",o=a&&t.rich[a]||{},s=r.lines,l=o.font||t.font,u=!1,c,f;if(n){var d=o.padding,v=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var p=va(o.width,n.width)+v;s.length>0&&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;_<c.length;_++){var g=c[_],h=new cz;if(h.styleName=a,h.text=g,h.isLineHolder=!g&&!i,typeof o.width=="number"?h.width=o.width:h.width=f?f[_]:wn(g,l),!_&&!u){var w=(s[s.length-1]||(s[0]=new OS)).tokens,b=w.length;b===1&&w[0].isLineHolder?w[0]=h:(g||!b||i)&&w.push(h)}else s.push(new OS([h]))}}function vz(r){var e=r.charCodeAt(0);return e>=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;f<r.length;f++){var d=r.charAt(f);if(d===`
- +`){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var v=wn(d,e),p=n?!1:!pz(d);if(i.length?c+v>t: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;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&yz(this,t,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,n){return this.rectContain(t,n)},e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.rectContain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Jt(0,0,0,0)),n?Jt.applyTransform(t,a,n):t.copy(a),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Jt(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,n){t!=="style"?r.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,n){return typeof t=="string"?this.style[t]=n:lt(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=bh,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&bh)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return vh(Jo,t)},e.prototype.useStyle=function(t){t[Cy]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Cy]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,zS)},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.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=ue(c),d=0;d<f.length;d++){var v=f[d];v in u&&(u[v]=u[v],this.style[v]=c[v])}for(var p=ue(u),d=0;d<p.length;d++){var v=p[d];this.style[v]=this.style[v]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var y=this.__inHover?gz:zS,d=0;d<y.length;d++){var v=y[d];n&&n[v]!=null?this[v]=n[v]:l&&a[v]!=null&&(this[v]=a[v])}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},e.prototype._mergeStyle=function(t,n){return lt(t,n),t},e.prototype.getAnimationStyleProps=function(){return Yh},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Pa|bh}(),e}(Gh),Dy=new Jt(0,0,0,0),Ly=new Jt(0,0,0,0);function yz(r,e,t){return Dy.copy(r.getBoundingRect()),r.transform&&Dy.applyTransform(r.transform),Ly.width=e,Ly.height=t,!Dy.intersect(Ly)}var un=Math.min,cn=Math.max,My=Math.sin,Iy=Math.cos,ts=Math.PI*2,Xh=zo(),jh=zo(),$h=zo();function qh(r,e,t){if(r.length!==0){for(var n=r[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],a=un(a,n[0]),i=cn(i,n[0]),o=un(o,n[1]),s=cn(s,n[1]);e[0]=a,e[1]=o,t[0]=i,t[1]=s}}function VS(r,e,t,n,a,i){a[0]=un(r,t),a[1]=un(e,n),i[0]=cn(r,t),i[1]=cn(e,n)}var FS=[],GS=[];function mz(r,e,t,n,a,i,o,s,l,u){var c=Nx,f=gr,d=c(r,t,a,o,FS);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<d;v++){var p=f(r,t,a,o,FS[v]);l[0]=un(p,l[0]),u[0]=cn(p,u[0])}d=c(e,n,i,s,GS);for(var v=0;v<d;v++){var y=f(e,n,i,s,GS[v]);l[1]=un(y,l[1]),u[1]=cn(y,u[1])}l[0]=un(r,l[0]),u[0]=cn(r,u[0]),l[0]=un(o,l[0]),u[0]=cn(o,u[0]),l[1]=un(e,l[1]),u[1]=cn(e,u[1]),l[1]=un(s,l[1]),u[1]=cn(s,u[1])}function _z(r,e,t,n,a,i,o,s){var l=Bx,u=Ar,c=cn(un(l(r,t,a),1),0),f=cn(un(l(e,n,i),1),0),d=u(r,t,a,c),v=u(e,n,i,f);o[0]=un(r,a,d),o[1]=un(e,i,v),s[0]=cn(r,a,d),s[1]=cn(e,i,v)}function wz(r,e,t,n,a,i,o,s,l){var u=Ui,c=Zi,f=Math.abs(a-i);if(f%ts<1e-4&&f>1e-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:a<i&&o&&(a+=ts),o){var d=i;i=a,a=d}for(var v=0;v<i;v+=Math.PI/2)v>a&&($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&&t<a&&(a=t-(Qi-Ny(a-t))),r[0]=t,r[1]=a}var Ga=function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,n){n=n||0,n>0&&(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;n<t;n++)this.data[n]=e[n];this._len=t},r.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,a=this._len,i=0;i<t;i++)n+=e[i].len();Ry&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<t;i++)for(var o=e[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},r.prototype.addData=function(e,t,n,a,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Ry&&this._len>11&&(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;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],n=e[o+1],a=t,i=n),s){case Ne.M:t=a=e[o++],n=i=e[o++],Va[0]=a,Va[1]=i,Fa[0]=a,Fa[1]=i;break;case Ne.L:VS(t,n,e[o],e[o+1],Va,Fa),t=e[o++],n=e[o++];break;case Ne.C:mz(t,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Va,Fa),t=e[o++],n=e[o++];break;case Ne.Q:_z(t,n,e[o++],e[o++],e[o],e[o+1],Va,Fa),t=e[o++],n=e[o++];break;case Ne.A:var u=e[o++],c=e[o++],f=e[o++],d=e[o++],v=e[o++],p=e[o++]+v;o+=1;var y=!e[o++];l&&(a=ns(v)*f+u,i=as(v)*d+c),wz(u,c,f,d,v,p,y,Va,Fa),t=ns(p)*f+u,n=as(p)*d+c;break;case Ne.R:a=t=e[o++],i=n=e[o++];var _=e[o++],g=e[o++];VS(a,i,a+_,i+g,Va,Fa);break;case Ne.Z:t=a,n=i;break}Ui(za,za,Va),Zi(Ki,Ki,Fa)}return o===0&&(za[0]=za[1]=Ki[0]=Ki[1]=0),new Jt(za[0],za[1],Ki[0]-za[0],Ki[1]-za[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<t;){var v=e[d++],p=d===1;p&&(i=e[d],o=e[d+1],s=i,l=o);var y=-1;switch(v){case Ne.M:i=s=e[d++],o=l=e[d++];break;case Ne.L:{var _=e[d++],g=e[d++],h=_-i,w=g-o;(vi(h)>n||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;A<o;){var T=n[A++],D=A===1;switch(D&&(u=n[A],c=n[A+1],s=u,l=c),T!==Ne.L&&w>0&&(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||o<e-s&&o<n-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r!==t)l=(e-n)/(r-t),u=(r*n-t*e)/(r-t);else return Math.abs(i-r)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function bz(r,e,t,n,a,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>n+f&&c>i+f&&c>s+f||c<e-f&&c<n-f&&c<i-f&&c<s-f||u>r+f&&u>t+f&&u>a+f&&u>o+f||u<r-f&&u<t-f&&u<a-f&&u<o-f)return!1;var d=Ox(r,e,t,n,a,i,o,s,u,c,null);return d<=f/2}function WS(r,e,t,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>i+u||l<e-u&&l<n-u&&l<i-u||s>r+u&&s>t+u&&s>a+u||s<r-u&&s<t-u&&s<a-u)return!1;var c=zx(r,e,t,n,a,i,s,l,null);return c<=u/2}var HS=Math.PI*2;function bn(r){return r%=HS,r<0&&(r+=HS),r}var sc=Math.PI*2;function xz(r,e,t,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>t||c+u<t)return!1;if(Math.abs(n-a)%sc<1e-4)return!0;if(i){var f=n;n=bn(a),a=bn(f)}else n=bn(n),a=bn(a);n>a&&(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||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(t-r)+r;return l===a?1/0:l>a?s:0}var to=Ga.CMD,is=Math.PI*2,Sz=1e-4;function Az(r,e){return Math.abs(r-e)<Sz}var qr=[-1,-1,-1],Fn=[-1,-1];function Tz(){var r=Fn[0];Fn[0]=Fn[1],Fn[1]=r}function Cz(r,e,t,n,a,i,o,s,l,u){if(u>e&&u>n&&u>i&&u>s||u<e&&u<n&&u<i&&u<s)return 0;var c=Th(e,n,i,s,u,qr);if(c===0)return 0;for(var f=0,d=-1,v=void 0,p=void 0,y=0;y<c;y++){var _=qr[y],g=_===0||_===1?.5:1,h=gr(r,t,a,o,_);h<l||(d<0&&(d=Nx(e,n,i,s,Fn),Fn[1]<Fn[0]&&d>1&&Tz(),v=gr(e,n,i,s,Fn[0]),d>1&&(p=gr(e,n,i,s,Fn[1]))),d===2?_<Fn[0]?f+=v<e?g:-g:_<Fn[1]?f+=p<v?g:-g:f+=s<p?g:-g:_<Fn[0]?f+=v<e?g:-g:f+=s<v?g:-g)}return f}function Dz(r,e,t,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var l=OB(e,n,i,s,qr);if(l===0)return 0;var u=Bx(e,n,i);if(u>=0&&u<=1){for(var c=0,f=Ar(e,n,i,u),d=0;d<l;d++){var v=qr[d]===0||qr[d]===1?.5:1,p=Ar(r,t,a,qr[d]);p<o||(qr[d]<u?c+=f<e?v:-v:c+=i<f?v:-v)}return c}else{var v=qr[0]===0||qr[0]===1?.5:1,p=Ar(r,t,a,qr[0]);return p<o?0:i<e?v:-v}}function Lz(r,e,t,n,a,i,o,s){if(s-=e,s>t||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&&y<Math.PI*1.5&&(c=-c),d+=c)}}return d}function US(r,e,t,n,a){for(var i=r.data,o=r.len(),s=0,l=0,u=0,c=0,f=0,d,v,p=0;p<o;){var y=i[p++],_=p===1;switch(y===to.M&&p>1&&(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<By.length;++s)a[By[s]]=this[By[s]];a.__dirty|=Pa}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var n=ue(t);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=t[o];o==="style"?this.style?lt(this.style,s):this.useStyle(s):o==="shape"?lt(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(Ct(t)){var n=Lh(t,0);return n>.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)<iy;if(i===o)return n}},e.prototype.buildPath=function(t,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Ga(!1)},e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return!(n==null||n==="none"||!(t.lineWidth>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;d<f.length;d++){var v=f[d];typeof u[v]=="object"?this.shape[v]=u[v]:c[v]=u[v]}this._transitionState(t,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return Ez},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(i){J(o,i);function o(s){var l=i.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Wt(t.style)},o.prototype.getDefaultShape=function(){return Wt(t.shape)},o}(e);for(var a in t)typeof t[a]=="function"&&(n.prototype[a]=t[a]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Pa|bh|Hu}(),e}(Vn),Pz=Ft({strokeFirst:!0,font:Gi,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Kh),_l=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return n!=null&&n!=="none"&&t.lineWidth>0},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;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,Wz(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Jt(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(t.copy(l),t.applyTransform(u),i=i||t.clone(),i.union(t)):(i=i||l.clone(),i.union(l))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||XS},e.prototype.setTextContent=function(t){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(t,n){if(!n)return t;var a=n.rich,i=t.rich||a&&{};return lt(t,n),a&&i?(this._mergeRich(i,a),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,n){for(var a=ue(n),i=0;i<a.length;i++){var o=a[i];t[o]=t[o]||{},lt(t[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return Vz},e.prototype._getOrCreateChild=function(t){var n=this._children[this._childCursor];return(!n||!(n instanceof t))&&(n=new t),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var t=this.style,n=t.font||Gi,a=t.padding,i=n2(t),o=uz(i,t),s=zy(t),l=!!t.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,v=o.lineHeight,p=this._defaultStyle;this.isTruncated=!!o.isTruncated;var y=t.x||0,_=t.y||0,g=t.align||p.align||"left",h=t.verticalAlign||p.verticalAlign||"top",w=y,b=pl(_,o.contentHeight,h);if(s||a){var S=tc(y,c,g),A=pl(_,u,h);s&&this._renderBackground(t,t,S,A,c,u)}b+=v/2,a&&(w=r2(y,g,a),h==="top"?b+=a[0]:h==="bottom"&&(b-=a[2]));for(var T=0,D=!1,L=e2("fill"in t?t.fill:(D=!0,p.fill)),I=t2("stroke"in t?t.stroke:!l&&(!p.autoStroke||D)?(T=jS,p.stroke):null),P=t.textShadowBlur>0,E=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,M=0;M<d.length;M++){var B=this._getOrCreateChild(_l),F=B.createStyle();B.useStyle(F),F.text=d[M],F.x=w,F.y=b,F.textAlign=g,F.textBaseline="middle",F.opacity=t.opacity,F.strokeFirst=!0,P&&(F.shadowBlur=t.textShadowBlur||0,F.shadowColor=t.textShadowColor||"transparent",F.shadowOffsetX=t.textShadowOffsetX||0,F.shadowOffsetY=t.textShadowOffsetY||0),F.stroke=I,F.fill=L,I&&(F.lineWidth=t.lineWidth||T,F.lineDash=t.lineDash,F.lineDashOffset=t.lineDashOffset||0),F.font=n,KS(F,t),b+=v,E&&B.setBoundingRect(new Jt(tc(F.x,f,F.textAlign),pl(F.y,R,F.textBaseline),f,R))}},e.prototype._updateRichTexts=function(){var t=this.style,n=n2(t),a=hz(n,t),i=a.width,o=a.outerWidth,s=a.outerHeight,l=t.padding,u=t.x||0,c=t.y||0,f=this._defaultStyle,d=t.align||f.align,v=t.verticalAlign||f.verticalAlign;this.isTruncated=!!a.isTruncated;var p=tc(u,o,d),y=pl(c,s,v),_=p,g=y;l&&(_+=l[3],g+=l[0]);var h=_+i;zy(t)&&this._renderBackground(t,t,p,y,o,s);for(var w=!!t.backgroundColor,b=0;b<a.lines.length;b++){for(var S=a.lines[b],A=S.tokens,T=A.length,D=S.lineHeight,L=S.width,I=0,P=_,E=h,R=T-1,M=void 0;I<T&&(M=A[I],!M.align||M.align==="left");)this._placeToken(M,t,D,g,P,"left",w),L-=M.width,P+=M.width,I++;for(;R>=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<e.length;o++){var s=e[o],l=a[s];i[s]=l==null?n[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function Xz(r,e,t,n){var a=t&&te(t,"select")>=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;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&Uy(d)}}if(r!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(t==="series"&&!c||t==="coordinateSystem"&&!d||e==="series"&&c)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(_){_.__highByOuter&&c&&e==="self"||Wy(_)}),Br(e))i(u.getData(),e);else if(zt(e))for(var p=ue(e),y=0;y<p.length;y++)i(u.getData(p[y]),e[p[y]]);l.push(u),Fy(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,a)}})}}function Yy(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){Fy(n).isBlured=!0;var a=t.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Wy(i)})}}}function qz(r,e,t){var n=r.seriesIndex,a=r.getData(e.dataType);if(!a){process.env.NODE_ENV!=="production"&&Ir("Unknown dataType "+e.dataType);return}var i=qo(a,e);i=(ft(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=Zt(o);Zy(n,u.focus,u.blurScope,t)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);c!=null&&Zy(n,c,f,t)}}function Xy(r,e,t,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return a;var i=n.getModel().getComponent(r,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!eo(s[u])&&Ir("param should be highDownDispatcher"),Zt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Kz(r,e,t){process.env.NODE_ENV!=="production"&&!eo(r)&&Ir("param should be highDownDispatcher");var n=Zt(r),a=Xy(n.componentMainType,n.componentIndex,n.componentHighDownName,t),i=a.dispatchers,o=a.focusSelf;i?(o&&Yy(n.componentMainType,n.componentIndex,t),N(i,function(s){return f2(s,e)})):(Zy(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&Yy(n.componentMainType,n.componentIndex,t),f2(r,e))}function Qz(r,e,t){process.env.NODE_ENV!=="production"&&!eo(r)&&Ir("param should be highDownDispatcher"),y2(t);var n=Zt(r),a=Xy(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;a?N(a,function(i){return h2(i,e)}):h2(r,e)}function Jz(r,e,t){if($y(e)){var n=e.dataType,a=r.getData(n),i=qo(a,e);ft(i)||(i=[i]),r[e.type===fc?"toggleSelect":e.type===cc?"select":"unselect"](i,n)}}function m2(r){var e=r.getAllData();N(e,function(t){var n=t.data,a=t.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?d2(i):p2(i)})})}function tV(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();N(n,function(a){a.data;var i=a.type,o=t.getSelectedDataIndices();if(o.length>0){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;o<n;){switch(a=t[o++],s=o,i=0,a){case c:i=1;break;case d:i=1;break;case f:i=3;break;case y:i=2;break;case p:var _=e[4],g=e[5],h=b2(e[0]*e[0]+e[1]*e[1]),w=b2(e[2]*e[2]+e[3]*e[3]),b=sV(-e[1]/w,e[0]/h);t[o]*=h,t[o++]+=_,t[o]*=w,t[o++]+=g,t[o++]*=h,t[o++]*=w,t[o++]+=b,t[o++]+=b,o+=2,s=o;break;case v:u[0]=t[o++],u[1]=t[o++],Mr(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],Mr(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var S=oV[l];S[0]=t[o++],S[1]=t[o++],Mr(S,S,e),t[s++]=S[0],t[s++]=S[1]}}r.increaseVersion()}}var qy=Math.sqrt,nv=Math.sin,av=Math.cos,hc=Math.PI;function S2(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Ky(r,e){return(r[0]*e[0]+r[1]*e[1])/(S2(r)*S2(e))}function A2(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Ky(r,e))}function T2(r,e,t,n,a,i,o,s,l,u,c){var f=l*(hc/180),d=av(f)*(r-t)/2+nv(f)*(e-n)/2,v=-1*nv(f)*(r-t)/2+av(f)*(e-n)/2,p=d*d/(o*o)+v*v/(s*s);p>1&&(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;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,v=c.match(uV)||[],p=v.length,y=0;y<p;y++)v[y]=parseFloat(v[y]);for(var _=0;_<p;){var g=void 0,h=void 0,w=void 0,b=void 0,S=void 0,A=void 0,T=void 0,D=t,L=n,I=void 0,P=void 0;switch(f){case"l":t+=v[_++],n+=v[_++],d=s.L,e.addData(d,t,n);break;case"L":t=v[_++],n=v[_++],d=s.L,e.addData(d,t,n);break;case"m":t+=v[_++],n+=v[_++],d=s.M,e.addData(d,t,n),a=t,i=n,f="l";break;case"M":t=v[_++],n=v[_++],d=s.M,e.addData(d,t,n),a=t,i=n,f="L";break;case"h":t+=v[_++],d=s.L,e.addData(d,t,n);break;case"H":t=v[_++],d=s.L,e.addData(d,t,n);break;case"v":n+=v[_++],d=s.L,e.addData(d,t,n);break;case"V":n=v[_++],d=s.L,e.addData(d,t,n);break;case"C":d=s.C,e.addData(d,v[_++],v[_++],v[_++],v[_++],v[_++],v[_++]),t=v[_-2],n=v[_-1];break;case"c":d=s.C,e.addData(d,v[_++]+t,v[_++]+n,v[_++]+t,v[_++]+n,v[_++]+t,v[_++]+n),t+=v[_-2],n+=v[_-1];break;case"S":g=t,h=n,I=e.len(),P=e.data,o===s.C&&(g+=t-P[I-4],h+=n-P[I-3]),d=s.C,D=v[_++],L=v[_++],t=v[_++],n=v[_++],e.addData(d,g,h,D,L,t,n);break;case"s":g=t,h=n,I=e.len(),P=e.data,o===s.C&&(g+=t-P[I-4],h+=n-P[I-3]),d=s.C,D=t+v[_++],L=n+v[_++],t+=v[_++],n+=v[_++],e.addData(d,g,h,D,L,t,n);break;case"Q":D=v[_++],L=v[_++],t=v[_++],n=v[_++],d=s.Q,e.addData(d,D,L,t,n);break;case"q":D=v[_++]+t,L=v[_++]+n,t+=v[_++],n+=v[_++],d=s.Q,e.addData(d,D,L,t,n);break;case"T":g=t,h=n,I=e.len(),P=e.data,o===s.Q&&(g+=t-P[I-4],h+=n-P[I-3]),t=v[_++],n=v[_++],d=s.Q,e.addData(d,g,h,t,n);break;case"t":g=t,h=n,I=e.len(),P=e.data,o===s.Q&&(g+=t-P[I-4],h+=n-P[I-3]),t+=v[_++],n+=v[_++],d=s.Q,e.addData(d,g,h,t,n);break;case"A":w=v[_++],b=v[_++],S=v[_++],A=v[_++],T=v[_++],D=t,L=n,t=v[_++],n=v[_++],d=s.A,T2(D,L,t,n,A,T,w,b,S,d,e);break;case"a":w=v[_++],b=v[_++],S=v[_++],A=v[_++],T=v[_++],D=t,L=n,t+=v[_++],n+=v[_++],d=s.A,T2(D,L,t,n,A,T,w,b,S,d,e);break}}(f==="z"||f==="Z")&&(d=s.Z,e.addData(d),t=a,n=i),o=d}return e.toStatic(),e}var C2=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(oe);function D2(r){return r.setData!=null}function L2(r,e){var t=cV(r),n=lt({},e);return n.buildPath=function(a){if(D2(a)){a.setData(t.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;t.rebuildPath(i,1)}},n.applyTransform=function(a){x2(t,a),this.dirtyShape()},n}function M2(r,e){return new C2(L2(r,e))}function fV(r,e){var t=L2(r,e),n=function(a){J(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return i}(C2);return n}function hV(r,e){for(var t=[],n=r.length,a=0;a<n;a++){var i=r[a];t.push(i.getUpdatedPathProxy(!0))}var o=new oe(e);return o.createPathProxy(),o.buildPath=function(s){if(D2(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Qy(r,e){e=e||{};var t=new oe;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?x2(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var vV=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),mi=function(r){J(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new vV},e.prototype.buildPath=function(t,n){t.moveTo(n.cx+n.r,n.cy),t.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(oe);mi.prototype.type="circle";var dV=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),iv=function(r){J(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new dV},e.prototype.buildPath=function(t,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,c=l*a;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),t.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),t.closePath()},e}(oe);iv.prototype.type="ellipse";var I2=Math.PI,Jy=I2*2,fs=Math.sin,Al=Math.cos,pV=Math.acos,zr=Math.atan2,E2=Math.abs,vc=Math.sqrt,dc=Math.max,Wa=Math.min,pa=1e-4;function gV(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,c=o-a,f=s-i,d=f*l-c*u;if(!(d*d<pa))return d=(c*(e-i)-f*(r-a))/d,[r+d*l,e+d*u]}function ov(r,e,t,n,a,i,o){var s=r-t,l=e-n,u=(o?i:-i)/vc(s*s+l*l),c=u*l,f=-u*s,d=r+c,v=e+f,p=t+c,y=n+f,_=(d+p)/2,g=(v+y)/2,h=p-d,w=y-v,b=h*h+w*w,S=a-i,A=d*y-p*v,T=(w<0?-1:1)*vc(dc(0,S*S*b-A*A)),D=(A*w-h*T)/b,L=(-A*h-w*T)/b,I=(A*w+h*T)/b,P=(-A*h+w*T)/b,E=D-_,R=L-g,M=I-_,B=P-g;return E*E+R*R>M*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),v<I2)){var $=gV(B,F,R,M,P,E,W,j);if($){var ut=B-$[0],ot=F-$[1],it=P-$[0],Nt=E-$[1],Kt=1/fs(pV((ut*it+ot*Nt)/(vc(ut*ut+ot*ot)*vc(it*it+Nt*Nt)))/2),xt=vc($[0]*$[0]+$[1]*$[1]);L=Wa(T,(n-xt)/(Kt+1)),I=Wa(D,(a-xt)/(Kt-1))}}}if(!H)r.moveTo(c+B,f+F);else if(L>pa){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),L<T&&wt===Ot?r.arc(c+bt.cx,f+bt.cy,L,zr(bt.y0,bt.x0),zr(Pt.y0,Pt.x0),!d):(wt>0&&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),I<D&&wt===Ot?r.arc(c+bt.cx,f+bt.cy,I,zr(bt.y0,bt.x0),zr(Pt.y0,Pt.x0),!d):(Ot>0&&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<v;d++)Ui(c,c,r[d]),Zi(f,f,r[d]);Ui(c,c,n[0]),Zi(f,f,n[1])}for(var d=0,v=r.length;d<v;d++){var p=r[d];if(t)l=r[d?d-1:v-1],u=r[(d+1)%v];else if(d===0||d===v-1){a.push(oi(r[d]));continue}else l=r[d-1],u=r[d+1];Vo(i,u,l),ph(i,i,e);var y=xg(p,l),_=xg(p,u),g=y+_;g!==0&&(y/=g,_/=g),ph(o,i,-y),ph(s,i,_);var h=vx([],p,o),w=vx([],p,s);n&&(Zi(h,h,c),Ui(h,h,f),Zi(w,w,c),Ui(w,w,f)),a.push(h),a.push(w)}return t&&a.push(a.shift()),a}function P2(r,e,t){var n=e.smooth,a=e.points;if(a&&a.length>=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;s<f;s++)r.lineTo(a[s][0],a[s][1])}t&&r.closePath()}}var xV=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),Jr=function(r){J(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new xV},e.prototype.buildPath=function(t,n){P2(t,n,!0)},e}(oe);Jr.prototype.type="polygon";var SV=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),tn=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 SV},e.prototype.buildPath=function(t,n){P2(t,n,!1)},e}(oe);tn.prototype.type="polyline";var AV={},TV=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),yr=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 TV},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var l=ZS(AV,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(t.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var n=this.shape;return[n.x1*(1-t)+n.x2*t,n.y1*(1-t)+n.y2*t]},e}(oe);yr.prototype.type="line";var fn=[],CV=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function k2(r,e,t){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(t?Rx:gr)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?Rx:gr)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Bg:Ar)(r.x1,r.cpx1,r.x2,e),(t?Bg:Ar)(r.y1,r.cpy1,r.y2,e)]}var gc=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 CV},e.prototype.buildPath=function(t,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(t.moveTo(a,i),c==null||f==null?(d<1&&(Zu(a,l,o,d,fn),l=fn[1],o=fn[2],Zu(i,u,s,d,fn),u=fn[1],s=fn[2]),t.quadraticCurveTo(l,u,o,s)):(d<1&&(ji(a,l,c,o,d,fn),l=fn[1],c=fn[2],o=fn[3],ji(i,u,f,s,d,fn),u=fn[1],f=fn[2],s=fn[3]),t.bezierCurveTo(l,u,c,f,o,s)))},e.prototype.pointAt=function(t){return k2(this.shape,t,!1)},e.prototype.tangentAt=function(t){var n=k2(this.shape,t,!0);return ll(n,n)},e}(oe);gc.prototype.type="bezier-curve";var DV=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),sv=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 DV},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);t.moveTo(c*o+a,f*o+i),t.arc(a,i,o,s,l,!u)},e}(oe);sv.prototype.type="arc";var tm=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,n=this.shapeChanged(),a=0;a<t.length;a++)n=n||t[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<t.length;a++)t[a].path||t[a].createPathProxy(),t[a].path.setScale(n[0],n[1],t[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(t,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],n=0;n<t.length;n++)t[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),oe.prototype.getBoundingRect.call(this)},e}(oe),R2=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}(),yc=function(r){J(e,r);function e(t,n,a,i,o,s){var l=r.call(this,o)||this;return l.x=t==null?0:t,l.y=n==null?0:n,l.x2=a==null?1:a,l.y2=i==null?0:i,l.type="linear",l.global=s||!1,l}return e}(R2),N2=function(r){J(e,r);function e(t,n,a,i,o){var s=r.call(this,i)||this;return s.x=t==null?.5:t,s.y=n==null?.5:n,s.r=a==null?.5:a,s.type="radial",s.global=o||!1,s}return e}(R2),hs=[0,0],vs=[0,0],lv=new Qt,uv=new Qt,cv=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Qt;for(var n=0;n<2;n++)this._axes[n]=new Qt;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),t)for(var u=0;u<4;u++)n[u].transform(t);Qt.sub(a[0],n[1],n[0]),Qt.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},r.prototype.intersect=function(e,t){var n=!0,a=!t;return lv.set(1/0,1/0),uv.set(0,0),!this._intersectCheckOneSide(this,e,lv,uv,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,lv,uv,a,-1)&&(n=!1,a)||a||Qt.copy(t,n?lv:uv),n},r.prototype._intersectCheckOneSide=function(e,t,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,hs),this._getProjMinMaxOnAxis(l,t._corners,vs),hs[1]<vs[0]||hs[0]>vs[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()&&(c<f?Qt.scale(a,u,-c*o):Qt.scale(a,u,f*o))}else if(n){var c=Math.abs(vs[0]-hs[1]),f=Math.abs(hs[0]-vs[1]);Math.min(c,f)<n.len()&&(c<f?Qt.scale(n,u,c*o):Qt.scale(n,u,-f*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var a=this._axes[e],i=this._origin,o=t[0].dot(a)+i[e],s=o,l=o,u=1;u<t.length;u++){var c=t[u].dot(a)+i[e];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},r}(),LV=[],MV=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,n){n?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,n){n=n||!1;for(var a=0;a<t.length;a++)this.addDisplayable(t[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var n=this._cursor;n<this._displayables.length;n++)t&&t(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)t&&t(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var n=this._displayables[t];n.parent=this,n.update(),n.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var n=this._temporaryDisplayables[t];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Jt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(LV)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,n))return!0}return!1},e}(Vn),O2=ve();function Tl(r,e,t,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=Ut(n.duration,200),c=Ut(n.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),Rt(f)&&(f=f(t,a)),Rt(u)&&(u=u(t));var d={duration:u||0,delay:f,easing:c};return d}else return null}function em(r,e,t,n,a,i,o){var s=!1,l;Rt(a)?(o=i,i=a,a=null):zt(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var c=Tl(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(c&&c.duration>0){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;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function ro(r,e,t,n,a,i){Cl(r)||em("leave",r,e,t,n,a,i)}function B2(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),ro(r,{style:{opacity:0}},e,t,n)}function mc(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||B2(a,e,t,n)}):B2(r,e,t,n)}function ga(r){O2(r).oldStyle=r.style}function IV(r){return O2(r).oldStyle}var fv=Math.max,hv=Math.min,rm={};function EV(r){return oe.extend(r)}var PV=fV;function kV(r,e){return PV(r,e)}function ya(r,e){rm[r]=e}function nm(r){if(rm.hasOwnProperty(r))return rm[r]}function vv(r,e,t,n){var a=M2(r,e);return t&&(n==="center"&&(t=V2(t,a.getBoundingRect())),F2(a,t)),a}function z2(r,e,t){var n=new Tr({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(t==="center"){var i={width:a.width,height:a.height};n.setStyle(V2(e,i))}}});return n}function V2(r,e){var t=e.width/e.height,n=r.height*t,a;n<=r.width?a=r.height:(n=r.width,a=n/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Gn=hV;function F2(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function Dl(r,e){return ZS(r,r,{lineWidth:e}),r}function RV(r){return YS(r.shape,r.shape,r.style),r}var dv=os;function ds(r,e){for(var t=yh([]);r&&r!==e;)li(t,r.getLocalTransform(),t),r=r.parent;return t}function ma(r,e,t){return e&&!Br(e)&&(e=fi.getLocalTransform(e)),t&&(e=cl([],e)),Mr([],r,e)}function pv(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=ma(i,e,t),Math.abs(i[0])>Math.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];i<a.length;i++){var s=a[i];if(H2(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function H2(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,c=o-a,f=s-i,d=am(c,f,l,u);if(BV(d))return!1;var v=r-a,p=e-i,y=am(v,p,l,u)/d;if(y<0||y>1)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<r.length;t++)U2(r[t],e);else U2(r,e)}ya("circle",mi),ya("ellipse",iv),ya("sector",Qr),ya("ring",pc),ya("polygon",Jr),ya("polyline",tn),ya("rect",de),ya("line",yr),ya("bezierCurve",gc),ya("arc",sv);const gs=Object.freeze(Object.defineProperty({__proto__:null,Arc:sv,BezierCurve:gc,BoundingRect:Jt,Circle:mi,CompoundPath:tm,Ellipse:iv,Group:Ht,Image:Tr,IncrementalDisplayable:MV,Line:yr,LinearGradient:yc,OrientedBoundingRect:cv,Path:oe,Point:Qt,Polygon:Jr,Polyline:tn,RadialGradient:N2,Rect:de,Ring:pc,Sector:Qr,Text:pe,applyTransform:ma,clipPointsByRect:W2,clipRectByRect:OV,createIcon:wc,extendPath:kV,extendShape:EV,getShapeClass:nm,getTransform:ds,groupTransition:_c,initProps:We,isElementRemoved:Cl,lineLineIntersect:H2,linePolygonIntersect:bc,makeImage:z2,makePath:vv,mergePath:Gn,registerShape:ya,removeElement:ro,removeElementWithFadeOut:mc,resizePath:F2,setTooltipConfig:ps,subPixelOptimize:dv,subPixelOptimizeLine:Dl,subPixelOptimizeRect:RV,transformDirection:pv,traverseElements:no,updateProps:_e},Symbol.toStringTag,{value:"Module"}));var gv={};function Z2(r,e){for(var t=0;t<Kr.length;t++){var n=Kr[t],a=e[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function im(r,e,t){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=Rt(r.defaultText)?r.defaultText(a,r,t):r.defaultText);for(var l={normal:s},u=0;u<Kr.length;u++){var c=Kr[u],f=e[c];l[c]=Ut(n?n.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function Pr(r,e,t,n){t=t||gv;for(var a=r instanceof pe,i=!1,o=0;o<uc.length;o++){var s=e[uc[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new pe,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=im(t,e),c=e.normal,f=!!c.getShallow("show"),d=Be(c,n&&n.normal,t,!1,!a);d.text=u.normal,a||r.setTextConfig(yv(c,t,!1));for(var o=0;o<Kr.length;o++){var v=Kr[o],s=e[v];if(s){var p=l.ensureState(v),y=!!Ut(s.getShallow("show"),f);if(y!==f&&(p.ignore=!y),p.style=Be(s,n&&n[v],t,!0,!a),p.style.text=u[v],!a){var _=r.ensureState(v);_.textConfig=yv(s,t,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),t.enableTextSetter&&(Ll(l).setLabelText=function(g){var h=im(t,e,g);Z2(l,h)})}else l&&(l.ignore=!0);r.dirty()}function mr(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<Kr.length;n++){var a=Kr[n];t[a]=r.getModel([a,e])}return t}function Be(r,e,t,n,a){var i={};return zV(i,r,t,n,a),e&<(i,e),i}function yv(r,e,t){e=e||{};var n={},a,i=r.getShallow("rotate"),o=Ut(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(t?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",n}function zV(r,e,t,n,a){t=t||gv;var i=e.ecModel,o=i&&i.option.textStyle,s=VV(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);$2(l[u]={},c,o,t,n,a,!1,!0)}}l&&(r.rich=l);var f=e.get("overflow");f&&(r.overflow=f);var d=e.get("minMargin");d!=null&&(r.margin=d),$2(r,e,o,t,n,a,!0,!1)}function VV(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||gv).rich;if(t){e=e||{};for(var n=ue(t),a=0;a<n.length;a++){var i=n[a];e[i]=1}}r=r.parentModel}return e}var Y2=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],X2=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],j2=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function $2(r,e,t,n,a,i,o,s){t=!a&&t||gv;var l=n&&n.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),f=Ut(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&ar("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&ar("color: 'auto'","color: 'inherit'"),l?c=l:c=null),i||(u=u||t.color,c=c||t.textBorderColor),u!=null&&(r.fill=u),c!=null&&(r.stroke=c);var d=Ut(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var v=Ut(e.getShallow("textBorderType"),t.textBorderType);v!=null&&(r.lineDash=v);var p=Ut(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);p!=null&&(r.lineDashOffset=p),!a&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(r.opacity=f),!a&&!i&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var y=0;y<Y2.length;y++){var _=Y2[y],g=Ut(e.getShallow(_),t[_]);g!=null&&(r[_]=g)}for(var y=0;y<X2.length;y++){var _=X2[y],g=e.getShallow(_);g!=null&&(r[_]=g)}if(r.verticalAlign==null){var h=e.getShallow("baseline");h!=null&&(r.verticalAlign=h)}if(!o||!n.disableBox){for(var y=0;y<j2.length;y++){var _=j2[y],g=e.getShallow(_);g!=null&&(r[_]=g)}var w=e.getShallow("borderType");w!=null&&(r.borderDash=w),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&r.backgroundColor==="auto"&&ar("backgroundColor: 'auto'","backgroundColor: 'inherit'"),r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&r.borderColor==="auto"&&ar("borderColor: 'auto'","borderColor: 'inherit'"),r.borderColor=l)}}function om(r,e){var t=e&&e.getModel("textStyle");return ca([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ll=ve();function q2(r,e,t,n){if(r){var a=Ll(r);a.prevValue=a.value,a.value=t;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}function K2(r,e,t,n,a){var i=Ll(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Ut(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=IS(t,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var d=im({labelDataIndex:e,labelFetcher:a,defaultText:o?o(f):f+""},i.statesModels,f);Z2(r,d)}r.percent=0,(i.prevValue==null?We:_e)(r,{percent:1},n,e,null,u)}var FV=["textStyle","color"],sm=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],lm=new pe,GV=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(FV):null)},r.prototype.getFont=function(){return om({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<sm.length;n++)t[sm[n]]=this.getShallow(sm[n]);return lm.useStyle(t),lm.update(),lm.getBoundingRect()},r}(),Q2=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],WV=Qo(Q2),HV=function(){function r(){}return r.prototype.getLineStyle=function(e){return WV(this,e)},r}(),J2=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],UV=Qo(J2),ZV=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return UV(this,e,t)},r}(),Me=function(){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return r.prototype.init=function(e,t,n){},r.prototype.mergeOption=function(e,t){qt(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var n=this.option,a=n==null?n:n[e];if(a==null&&!t){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},r.prototype.getModel=function(e,t){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(Wt(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!ie.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r}();by(Me),tz(Me),rr(Me,HV),rr(Me,ZV),rr(Me,iz),rr(Me,GV);var YV=Math.round(Math.random()*10);function Ml(r){return[r||"",YV++].join("_")}function XV(r){var e={};r.registerSubTypeDefaulter=function(t,n){var a=Ba(t);e[a.main]=n},r.determineSubType=function(t,n){var a=n.type;if(!a){var i=Ba(t).main;r.hasSubTypes(t)&&e[i]&&(a=e[i](n))}return a}}function jV(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),c=u.graph,f=u.noEntryList,d={};for(N(i,function(h){d[h]=!0});f.length;){var v=f.pop(),p=c[v],y=!!d[v];y&&(s.call(l,v,p.originalDeps.slice()),delete d[v]),N(p.successor,y?g:_)}N(d,function(){var h="";throw process.env.NODE_ENV!=="production"&&(h=$r("Circular dependency may exists: ",d,i,o)),new Error(h)});function _(h){c[h].entryCount--,c[h].entryCount===0&&f.push(h)}function g(h){d[h]=!0,_(h)}};function t(i){var o={},s=[];return N(i,function(l){var u=n(o,l),c=u.originalDeps=e(l),f=a(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),N(f,function(d){te(u.predecessor,d)<0&&u.predecessor.push(d);var v=n(o,d);te(v.successor,d)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return N(i,function(l){te(o,l)>=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<dm.length;++s)o[dm[s]]="{primary|"+o[dm[s]]+"}";var l=t?t.inherit===!1?t:Ft(t,o):o,u=iA(r.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=aA.indexOf(u),s=c-1;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<a.length;i++){var o=pA[i];r=r.replace(ym(o),ym(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];r=r.replace(ym(pA[l],s),t?jr(u):u)}return r}function nF(r,e,t){return N(e,function(n,a){r=r.replace("{"+a+"}",n)}),r}function aF(r,e){var t=Ct(r)?{color:r,extraCssText:e}:r||{},n=t.color,a=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+jr(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+jr(n)+";"+(e||"")+'"></span>';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<c.length;g++){var h=c[g];if(!s(d,h)&&s(r,h)){d[h]=r[h];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){Dv(c,function(v){f[v]=d[v]})}}function Rl(r){return mA({},r)}function mA(r,e){return e&&r&&Dv(yA,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var sF=ve(),le=function(r){J(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.uid=Ml("ec_cpt_model"),i}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=Tc(this),i=a?Rl(t):{},o=n.getTheme();qt(t,o.get(this.mainType)),qt(t,this.getDefaultOption()),a&&oo(t,i,a)},e.prototype.mergeOption=function(t,n){qt(this.option,t,!0);var a=Tc(this);a&&oo(this.option,t,a)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!K3(t))return t.defaultOption;var n=sF(this);if(!n.defaultOption){for(var a=[],i=t;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=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;h<g;h++)y.push(_+h)}function p(y){var _=y.dimsDef;return _?_.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function wm(r,e,t){var n={},a=bm(r);if(!a)return n;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Un||i===Ha)&&N(o,function(c,f){(zt(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],v=0,p=Math.min(5,t);v<p;v++){var y=AA(e.data,i,e.seriesLayoutBy,o,e.startIndex,v);d.push(y);var _=y===kr.Not;if(_&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v||!_&&d[c.n]===kr.Not)&&(c.n=v),g(c)&&d[c.n]!==kr.Not)return c;_||(y===kr.Might&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v)&&(f.n=v))}function g(h){return h.v!=null&&h.n!=null}return g(c)?c:g(f)?f:null}();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function bm(r){var e=r.get("data",!0);if(!e)return ic(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},ir).models[0]}function fF(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:ic(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},ir).models}function SA(r,e){return AA(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function AA(r,e,t,n,a,i){var o,s=5;if(Yr(r))return kr.Not;var l,u;if(n){var c=n[i];zt(c)?(l=c.name,u=c.type):Ct(c)&&(l=c)}if(u!=null)return u==="ordinal"?kr.Must:kr.Not;if(e===Vr){var f=r;if(t===Ol){for(var d=f[i],v=0;v<(d||[]).length&&v<s;v++)if((o=b(d[a+v]))!=null)return o}else for(var v=0;v<f.length&&v<s;v++){var p=f[a+v];if(p&&(o=b(p[i]))!=null)return o}}else if(e===Un){var y=r;if(!l)return kr.Not;for(var v=0;v<y.length&&v<s;v++){var _=y[v];if(_&&(o=b(_[l]))!=null)return o}}else if(e===Ha){var g=r;if(!l)return kr.Not;var d=g[l];if(!d||Yr(d))return kr.Not;for(var v=0;v<d.length&&v<s;v++)if((o=b(d[v]))!=null)return o}else if(e===Hn)for(var h=r,v=0;v<h.length&&v<s;v++){var _=h[v],w=yl(_);if(!ft(w))return kr.Not;if((o=b(w[i]))!=null)return o}function b(S){var A=Ct(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return A?kr.Might:kr.Not;if(A&&S!=="-")return kr.Must}return kr.Not}var xm=Et();function hF(r,e){Vt(xm.get(r)==null&&e),xm.set(r,e)}function vF(r,e,t){var n=xm.get(e);if(!n)return t;var a=n(r);if(!a)return t;if(process.env.NODE_ENV!=="production")for(var i=0;i<a.length;i++)Vt(ml(a[i]));return t.concat(a)}var TA=ve(),dF=ve(),Sm=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var a=Pe(this.get("color",!0)),i=this.get("colorLayer",!0);return CA(this,TA,a,i,e,t,n)},r.prototype.clearColorPalette=function(){gF(this,TA)},r}();function Am(r,e,t,n){var a=Pe(r.get(["aria","decal","decals"]));return CA(r,dF,a,null,e,t,n)}function pF(r,e){for(var t=r.length,n=0;n<t;n++)if(r[n].length>e)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<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var a=t.index,i=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],N(Pe(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=MA("id",i,s):o!=null?l=MA("name",o,s):l=Ae(s,function(u){return!!u}),IA(l,t)},e.prototype.findComponents=function(t){var n=t.query,a=t.mainType,i=s(n),o=i?this.queryComponents(i):Ae(this._componentsMap.get(a),function(u){return!!u});return l(IA(o,t));function s(u){var c=a+"Index",f=a+"Id",d=a+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:a,index:u[c],id:u[f],name:u[d]}:null}function l(u){return t.filter?Ae(u,t.filter):u}},e.prototype.eachComponent=function(t,n,a){var i=this._componentsMap;if(Rt(t)){var o=n,s=t;i.each(function(f,d){for(var v=0;f&&v<f.length;v++){var p=f[v];p&&s.call(o,d,p,p.componentIndex)}})}else for(var l=Ct(t)?i.get(t):zt(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(a,c,c.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=fr(t,null);return Ae(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Ae(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return Ae(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){Cc(this),N(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];t.call(n,i,a)},this)},e.prototype.eachRawSeries=function(t,n){N(this._componentsMap.get("series"),function(a){a&&t.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,a){Cc(this),N(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,n,a){return N(this.getSeriesByType(t),n,a)},e.prototype.isSeriesFiltered=function(t){return Cc(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){Cc(this);var a=[];N(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=Et(a)},e.prototype.restoreData=function(t){Mv(this);var n=this._componentsMap,a=[];n.each(function(i,o){le.hasClass(o)&&a.push(o)}),le.topologicalTravel(a,le.getAllClassMainTypes(),function(i){N(n.get(i),function(o){o&&(i!=="series"||!wF(o,t))&&o.restoreData()})})},e.internalField=function(){Mv=function(t){var n=t._seriesIndices=[];N(t._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),t._seriesIndicesMap=Et(n)},Cc=function(t){if(process.env.NODE_ENV!=="production"&&!t._seriesIndices)throw new Error("Option should contains series.")},DA=function(t,n){t.option={},t.option[Tm]=LA,t._componentsMap=Et({series:[]}),t._componentsCount=Et();var a=n.aria;zt(a)&&a.enabled==null&&(a.enabled=!0),bF(n,t._theme.option),qt(n,uF,!1),t._mergeOption(n,null)}}(),e}(Me);function wF(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,a=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||a!=null&&r.name!==a}}function bF(r,e){var t=r.color&&!r.colorLayer;N(e,function(n,a){a==="colorLayer"&&t||le.hasClass(a)||(typeof n=="object"?r[a]=r[a]?qt(r[a],n,!1):Wt(n):r[a]==null&&(r[a]=n))})}function MA(r,e,t){if(ft(e)){var n=Et();return N(e,function(i){if(i!=null){var o=fr(i,null);o!=null&&n.set(i,!0)}}),Ae(t,function(i){return i&&n.get(i[r])})}else{var a=fr(e,null);return Ae(t,function(i){return i&&a!=null&&i[r]===a})}}function IA(r,e){return e.hasOwnProperty("subType")?Ae(r,function(t){return t&&t.subType===e.subType}):r}function EA(r){var e=Et();return r&&N(Pe(r.replaceMerge),function(t){process.env.NODE_ENV!=="production"&&Vt(le.hasClass(t),'"'+t+'" is not valid component main type in "replaceMerge"'),e.set(t,!0)}),{replaceMergeMainTypeMap:e}}rr(Cm,Sm);var xF=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],PA=function(){function r(e){N(xF,function(t){this[t]=Lt(e[t],e)},this)}return r}(),Dm={},Bl=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var n=[];N(Dm,function(a,i){var o=a.create(e,t);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(e,t){N(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){Dm[e]=t},r.get=function(e){return Dm[e]},r}(),SF=/^(min|max)?(.+)$/,AF=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(N(Pe(e.series),function(o){o&&o.data&&Yr(o.data)&&hh(o.data)}),N(Pe(e.dataset),function(o){o&&o.source&&Yr(o.source)&&hh(o.source)})),e=Wt(e);var a=this._optionBackup,i=TF(e,t,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Wt(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(t=Wt(n[a.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)CF(a[l].query,t,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!LF(o,this._currentMediaIndices)&&(s=ht(o,function(c){return Wt(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},r}();function TF(r,e,t){var n=[],a,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(r.options=r.media=null),i=r),c&&(ft(u)?N(u,function(v){process.env.NODE_ENV!=="production"&&v&&!v.option&&zt(v.query)&&zt(v.query.option)&&Ir("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?n.push(v):a||(a=v))}):process.env.NODE_ENV!=="production"&&Ir("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),d(i),N(l,function(v){return d(v)}),N(n,function(v){return d(v.option)});function d(v){N(e,function(p){p(v,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function CF(r,e,t){var n={width:e,height:t,aspectratio:e/t},a=!0;return N(r,function(i,o){var s=o.match(SF);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();DF(n[u],i,l)||(a=!1)}}),a}function DF(r,e,t){return t==="min"?r>=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<n;t++){var a=kA[t],i=e.normal,o=e.emphasis;i&&i[a]&&(process.env.NODE_ENV!=="production"&&ar("itemStyle.normal."+a,a),r[a]=r[a]||{},r[a].normal?qt(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(process.env.NODE_ENV!=="production"&&ar("itemStyle.emphasis."+a,"emphasis."+a),r[a]=r[a]||{},r[a].emphasis?qt(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function Fr(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,a=r[e].emphasis;n&&(process.env.NODE_ENV!=="production"&&da("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),t?(r[e].normal=r[e].emphasis=null,Ft(r[e],n)):r[e]=n),a&&(process.env.NODE_ENV!=="production"&&da(e+".emphasis has been changed to emphasis."+e+" since 4.0"),r.emphasis=r.emphasis||{},r.emphasis[e]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function Lc(r){Fr(r,"itemStyle"),Fr(r,"lineStyle"),Fr(r,"areaStyle"),Fr(r,"label"),Fr(r,"labelLine"),Fr(r,"upperLabel"),Fr(r,"edgeLabel")}function or(r,e){var t=Dc(r)&&r[e],n=Dc(t)&&t.textStyle;if(n){process.env.NODE_ENV!=="production"&&da("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var a=0,i=AS.length;a<i;a++){var o=AS[a];n.hasOwnProperty(o)&&(t[o]=n[o])}}}function Yn(r){r&&(Lc(r),or(r,"label"),r.emphasis&&or(r.emphasis,"label"))}function MF(r){if(Dc(r)){Lm(r),Lc(r),or(r,"label"),or(r,"upperLabel"),or(r,"edgeLabel"),r.emphasis&&(or(r.emphasis,"label"),or(r.emphasis,"upperLabel"),or(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Lm(e),Yn(e));var t=r.markLine;t&&(Lm(t),Yn(t));var n=r.markArea;n&&Yn(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!Yr(i))for(var o=0;o<i.length;o++)Yn(i[o]);N(r.categories,function(u){Lc(u)})}if(a&&!Yr(a))for(var o=0;o<a.length;o++)Yn(a[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Yn(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)ft(l[o])?(Yn(l[o][0]),Yn(l[o][1])):Yn(l[o]);r.type==="gauge"?(or(r,"axisLabel"),or(r,"title"),or(r,"detail")):r.type==="treemap"?(Fr(r.breadcrumb,"itemStyle"),N(r.levels,function(u){Lc(u)})):r.type==="tree"&&Lc(r.leaves)}}function wi(r){return ft(r)?r:r?[r]:[]}function RA(r){return(ft(r)?r[0]:r)||{}}function IF(r,e){Zn(wi(r.series),function(n){Dc(n)&&MF(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Zn(t,function(n){Zn(wi(r[n]),function(a){a&&(or(a,"axisLabel"),or(a.axisPointer,"label"))})}),Zn(wi(r.parallel),function(n){var a=n&&n.parallelAxisDefault;or(a,"axisLabel"),or(a&&a.axisPointer,"label")}),Zn(wi(r.calendar),function(n){Fr(n,"itemStyle"),or(n,"dayLabel"),or(n,"monthLabel"),or(n,"yearLabel")}),Zn(wi(r.radar),function(n){or(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&da("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&da("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&Zn(n.indicator,function(a){a.text&&ar("text","name","radar.indicator")})}),Zn(wi(r.geo),function(n){Dc(n)&&(Yn(n),Zn(wi(n.regions),function(a){Yn(a)}))}),Zn(wi(r.timeline),function(n){Yn(n),Fr(n,"label"),Fr(n,"itemStyle"),Fr(n,"controlStyle",!0);var a=n.data;ft(a)&&N(a,function(i){zt(i)&&(Fr(i,"label"),Fr(i,"itemStyle"))})}),Zn(wi(r.toolbox),function(n){Fr(n,"iconStyle"),Zn(n.feature,function(a){Fr(a,"iconStyle")})}),or(RA(r.axisPointer),"label"),or(RA(r.tooltip).axisPointer,"label")}function EF(r,e){for(var t=e.split(","),n=r,a=0;a<t.length&&(n=n&&n[t[a]],n!=null);a++);return n}function PF(r,e,t,n){for(var a=e.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=t)}function NA(r){r&&N(kF,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var kF=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],RF=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Mm=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Mc(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Mm.length;t++){var n=Mm[t][1],a=Mm[t][0];e[n]!=null&&(e[a]=e[n],process.env.NODE_ENV!=="production"&&ar(n,a))}}function OA(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&ar("label.margin","label.edgeDistance","pie"),r.edgeDistance=r.margin)}function BA(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay,process.env.NODE_ENV!=="production"&&ar("downplay","blur","sunburst"))}function NF(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&ar("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),r.emphasis.focus="adjacency"))}function zA(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&zA(r[t].children,e)}function VA(r,e){IF(r,e),r.series=Pe(r.series),N(r.series,function(t){if(zt(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow,process.env.NODE_ENV!=="production"&&ar("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise,process.env.NODE_ENV!=="production"&&ar("clockWise","clockwise")),OA(t.label);var a=t.data;if(a&&!Yr(a))for(var i=0;i<a.length;i++)OA(a[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&ar("hoverOffset","emphasis.scaleSize"),t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=EF(t,"pointer.color");o!=null&&PF(t,"itemStyle.color",o)}else if(n==="bar"){Mc(t),Mc(t.backgroundStyle),Mc(t.emphasis);var a=t.data;if(a&&!Yr(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Mc(a[i]),Mc(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s,process.env.NODE_ENV!=="production"&&ar("highlightPolicy","emphasis.focus","sunburst"))),BA(t),zA(t.data,BA)}else n==="graph"||n==="sankey"?NF(t):n==="map"&&(t.mapType&&!t.map&&(process.env.NODE_ENV!=="production"&&ar("mapType","map","map"),t.map=t.mapType),t.mapLocation&&(process.env.NODE_ENV!=="production"&&da("`mapLocation` is not used anymore."),Ft(t,t.mapLocation)));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&ar("hoverAnimation","emphasis.scale"),t.emphasis.scale=t.hoverAnimation)),NA(t)}}),r.dataRange&&(r.visualMap=r.dataRange),N(RF,function(t){var n=r[t];n&&(ft(n)||(n=[n]),N(n,function(a){NA(a)}))})}function OF(r){var e=Et();r.eachSeries(function(t){var n=t.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),e.each(BF)}function BF(r){N(r,function(e,t){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var d=o.get(e.stackedDimension,f);if(isNaN(d))return a;var v,p;s?p=o.getRawIndex(f):v=o.get(e.stackedByDimension,f);for(var y=NaN,_=t-1;_>=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;n<t.length;n++){var a=t[n];a.type==null&&SA(this,n)===kr.Must&&(a.type="ordinal")}}return r}();function Im(r){return r instanceof Ev}function Em(r,e,t){t=t||FA(r);var n=e.seriesLayoutBy,a=VF(r,t,n,e.sourceHeader,e.dimensions),i=new Ev({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Wt(e)});return i}function Pm(r){return new Ev({data:r,sourceFormat:Yr(r)?_i:Hn})}function zF(r){return new Ev({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Wt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function FA(r){var e=wA;if(Yr(r))e=_i;else if(ft(r)){r.length===0&&(e=Vr);for(var t=0,n=r.length;t<n;t++){var a=r[t];if(a!=null){if(ft(a)||Yr(a)){e=Vr;break}else if(zt(a)){e=Un;break}}}}else if(zt(r)){for(var i in r)if(Mt(r,i)&&Br(r[i])){e=Ha;break}}return e}function VF(r,e,t,n,a){var i,o;if(!r)return{dimensionsDefine:GA(a),startIndex:o,dimensionsDetectedCount:i};if(e===Vr){var s=r;n==="auto"||n==null?WA(function(u){u!=null&&u!=="-"&&(Ct(u)?o==null&&(o=1):o=0)},t,s,10):o=ye(n)?n:n?1:0,!a&&o===1&&(a=[],WA(function(u,c){a[c]=u!=null?u+"":""},t,s,1/0)),i=a?a.length:t===Ol?s.length:s[0]?s[0].length:null}else if(e===Un)a||(a=FF(r));else if(e===Ha)a||(a=[],N(r,function(u,c){a.push(c)}));else if(e===Hn){var l=yl(r[0]);i=ft(l)&&l.length||1}else e===_i&&process.env.NODE_ENV!=="production"&&Vt(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:GA(a),dimensionsDetectedCount:i}}function FF(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return ue(t)}function GA(r){if(r){var e=Et();return ht(r,function(t,n){t=zt(t)?t:{name:t};var a={name:t.name,displayName:t.displayName,type:t.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function WA(r,e,t,n){if(e===Ol)for(var a=0;a<t.length&&a<n;a++)r(t[a]?t[a][0]:null,a);else for(var i=t[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function HA(r){var e=r.sourceFormat;return e===Un||e===Ha}var ws,bs,xs,UA,ZA,YA=function(){function r(e,t){var n=Im(e)?e:Pm(e);this._source=n;var a=this._data=n.data;if(n.sourceFormat===_i){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=t,this._data=a}ZA(this,a,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=function(){var e=r.prototype;e.pure=!1,e.persistent=!0}(),r.internalField=function(){var e;ZA=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,v=UA[Rm(u,c)];if(process.env.NODE_ENV!=="production"&&Vt(v,"Invalide sourceFormat: "+u),lt(o,v),u===_i)o.getItem=t,o.count=a,o.fillStorage=n;else{var p=jA(u,c);o.getItem=Lt(p,null,s,f,d);var y=qA(u,c);o.count=Lt(y,null,s,f,d)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var v=u[d],p=v[0]==null?1/0:v[0],y=v[1]==null?-1/0:v[1],_=s-o,g=l[d],h=0;h<_;h++){var w=c[h*f+d];g[o+h]=w,w<p&&(p=w),w>y&&(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<o.length;s++)this._data.push(o[s])}}(),r}(),XA=function(r,e,t,n){return r[n]},GF=(ws={},ws[Vr+"_"+Ua]=function(r,e,t,n){return r[n+e]},ws[Vr+"_"+Ol]=function(r,e,t,n,a){n+=e;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},ws[Un]=XA,ws[Ha]=function(r,e,t,n,a){for(var i=a||[],o=0;o<t.length;o++){var s=t[o].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=r[s];i[o]=l?l[n]:null}return i},ws[Hn]=XA,ws);function jA(r,e){var t=GF[Rm(r,e)];return process.env.NODE_ENV!=="production"&&Vt(t,'Do not support get item on "'+r+'", "'+e+'".'),t}var $A=function(r,e,t){return r.length},WF=(bs={},bs[Vr+"_"+Ua]=function(r,e,t){return Math.max(0,r.length-e)},bs[Vr+"_"+Ol]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},bs[Un]=$A,bs[Ha]=function(r,e,t){var n=t[0].name;if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;var a=r[n];return a?a.length:0},bs[Hn]=$A,bs);function qA(r,e){var t=WF[Rm(r,e)];return process.env.NODE_ENV!=="production"&&Vt(t,'Do not support count on "'+r+'", "'+e+'".'),t}var km=function(r,e,t){return r[e]},HF=(xs={},xs[Vr]=km,xs[Un]=function(r,e,t){return r[t]},xs[Ha]=km,xs[Hn]=function(r,e,t){var n=yl(r);return n instanceof Array?n[e]:n},xs[_i]=km,xs);function KA(r){var e=HF[r];return process.env.NODE_ENV!=="production"&&Vt(e,'Do not support get value on "'+r+'".'),e}function Rm(r,e){return r===Vr?r+"_"+e:r}function zl(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=a.getDimensionProperty(o);return KA(i)(n,o,s)}else{var l=n;return i===Hn&&(l=yl(n)),l}}}}var UF=/\{@(.+?)\}/g,Pv=function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),a=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",v=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:a,color:u,borderColor:c,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,n,a,i,o){t=t||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),a!=null&&ft(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Rt(i))return l.status=t,l.dimensionIndex=a,i(l);if(Ct(i)){var c=gA(i,l);return c.replace(UF,function(f,d){var v=d.length,p=d;p.charAt(0)==="["&&p.charAt(v-1)==="]"&&(p=+p.slice(1,v-1),process.env.NODE_ENV!=="production"&&isNaN(p)&&Ir("Invalide label formatter: @"+d+", only support @[0], @[1], @[2], ..."));var y=zl(s,e,p);if(o&&ft(o.interpolatedValue)){var _=s.getDimensionIndex(p);_>=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<p)){var y=this._progress;if(ft(y))for(var _=0;_<y.length;_++)this._doProgress(y[_],v,p,l,u);else this._doProgress(y,v,p,l,u)}this._dueIndex=p;var g=this._settedOutputEnd!=null?this._settedOutputEnd:p;process.env.NODE_ENV!=="production"&&Vt(g>=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._dueIndex<this._dueEnd},r.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&Vt(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r}(),JA=function(){var r,e,t,n,a,i={reset:function(l,u,c,f){e=l,r=u,t=c,n=f,a=Math.ceil(n/t),i.next=t>1&&n>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%a*t+Math.ceil(e/a),u=e>=r?null:l<n?l:e;return e++,u}}();function so(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!ye(r)&&r!=null&&r!=="-"&&(r=+Oa(r)),r==null||r===""?NaN:Number(r))}var YF=Et({number:function(r){return parseFloat(r)},time:function(r){return+Oa(r)},trim:function(r){return Ct(r)?ca(r):r}});function tT(r){return YF.get(r)}var eT={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},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 n<a?this._resultLT:n>a?-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;c<r.dimensionsDetectedCount;c++)s.push({index:c});var f=jA(a,Ua);e.__isBuiltIn&&(t.getRawDataItem=function(y){return f(n,i,s,y)},t.getRawData=Lt(QF,null,r)),t.cloneRawData=Lt(JF,null,r);var d=qA(a,Ua);t.count=Lt(d,null,n,i,s);var v=KA(a);t.retrieveValue=function(y,_){var g=f(n,i,s,y);return p(g,_)};var p=t.retrieveValueFromItem=function(y,_){if(y!=null){var g=s[_];if(g)return v(y,_,g.name)}};return t.getDimensionInfo=Lt(t4,null,s,l),t.cloneAllDimensionInfo=Lt(e4,null,s),t}function QF(r){var e=r.sourceFormat;if(!Nm(e)){var t="";process.env.NODE_ENV!=="production"&&(t="`getRawData` is not supported in source format "+e),Te(t)}return r.data}function JF(r){var e=r.sourceFormat,t=r.data;if(!Nm(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+e),Te(n)}if(e===Vr){for(var a=[],i=0,o=t.length;i<o;i++)a.push(t[i].slice());return a}else if(e===Un){for(var a=[],i=0,o=t.length;i<o;i++)a.push(lt({},t[i]));return a}}function t4(r,e,t){if(t!=null){if(ye(t)||!isNaN(t)&&!Mt(e,t))return r[t];if(Mt(e,t))return e[t]}}function e4(r){return Wt(r)}var nT=Et();function r4(r){r=Wt(r);var e=r.type,t="";e||(process.env.NODE_ENV!=="production"&&(t="Must have a `type` when `registerTransform`."),Te(t));var n=e.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(t='Name must include namespace like "ns:regression".'),Te(t));var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),r.__isBuiltIn=a,nT.set(e,r)}function n4(r,e,t){var n=Pe(r),a=n.length,i="";a||(process.env.NODE_ENV!=="production"&&(i="If `transform` declared, it should at least contain one transform."),Te(i));for(var o=0,s=a;o<s;o++){var l=n[o];e=a4(l,e,t,a===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function a4(r,e,t,n){var a="";e.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),Te(a)),zt(r)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof r+"."),Te(a));var i=r.type,o=nT.get(i);o||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+i+'".'),Te(a));var s=ht(e,function(c){return KF(c,o)}),l=Pe(o.transform({upstream:s[0],upstreamList:s,config:Wt(r.config)}));if(process.env.NODE_ENV!=="production"&&r.print){var u=ht(l,function(c){var f=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+t.datasetIndex+f+" ===","- transform result data:",$r(c.data),"- transform result dimensions:",$r(c.dimensions)].join(`
- +`)}).join(`
- +`);k3(u)}return ht(l,function(c,f){var d="";zt(c)||(process.env.NODE_ENV!=="production"&&(d="A transform should not return some empty results."),Te(d)),c.data||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be not be null or undefined"),Te(d));var v=FA(c.data);Nm(v)||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be array rows or object rows."),Te(d));var p,y=e[0];if(y&&f===0&&!c.dimensions){var _=y.startIndex;_&&(c.data=y.data.slice(0,_).concat(c.data)),p={seriesLayoutBy:Ua,sourceHeader:_,dimensions:y.metaRawOption.dimensions}}else p={seriesLayoutBy:Ua,sourceHeader:0,dimensions:c.dimensions};return Em(c.data,p,null)})}function Nm(r){return r===Vr||r===Un}var kv="undefined",i4=typeof Uint32Array===kv?Array:Uint32Array,o4=typeof Uint16Array===kv?Array:Uint16Array,aT=typeof Int32Array===kv?Array:Int32Array,iT=typeof Float64Array===kv?Array:Float64Array,oT={float:iT,int:aT,ordinal:Array,number:Array,time:iT},Om;function Vl(r){return r>65535?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<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(n)}var Bm=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Et()}return r.prototype.initData=function(e,t,n){process.env.NODE_ENV!=="production"&&Vt(Rt(e.getItem)&&Rt(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=Om[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var o=HA(a);this._dimensions=ht(t,function(s){return process.env.NODE_ENV!=="production"&&o&&Vt(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===t)return i}else i=a.length;return a[i]={type:t},n.set(e,i),this._chunks[i]=new oT[t||"float"](this._rawCount),this._rawExtent[i]=Fl(),i},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=Fl());for(var l=i[e],u=o;u<s;u++){var c=n[u]=t.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=t,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&Vt(!this._indices,"appendData can only be called on raw data.");var t=this._provider,n=this.count();t.appendData(e);var a=t.count();return t.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var c=a[u];sT(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var v=d-s,p=0;p<i;p++){var c=a[p],y=Om.arrayRows.call(this,e[v]||f,c.property,v,p);n[p][d]=y;var _=o[p];y<_[0]&&(_[0]=y),y>_[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;c<s;c++){var f=o[c];l[c]||(l[c]=Fl()),sT(i,c,f.type,t,n)}if(a.fillStorage)a.fillStorage(e,t,i,l);else for(var d=[],v=e;v<t;v++){d=a.getItem(v,d);for(var p=0;p<s;p++){var y=i[p],_=this._dimValueGetter(d,u[p],v,p);y[v]=_;var g=l[p];_<g[0]&&(g[0]=_),_>g[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<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var n=[],a=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],t));return n},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var n=t.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(t[o]<e)a=o+1;else if(t[o]>e)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<f;c++){var d=this.getRawIndex(c),v=t-i[d],p=Math.abs(v);p<=n&&((p<s||p===s&&v>=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<a;i++)e[i]=t[i]}else e=new n(t.buffer,0,a)}else{var n=Vl(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Vl(n._rawCount),o=new i(a),s=[],l=e.length,u=0,c=e[0],f=n._chunks,d=0;d<a;d++){var v=void 0,p=n.getRawIndex(d);if(l===0)v=t(d);else if(l===1){var y=f[c][p];v=t(y,d)}else{for(var _=0;_<l;_++)s[_]=f[e[_]][p];s[_]=d,v=t.apply(null,s)}v&&(o[u++]=p)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var a=ue(e),i=a.length;if(!i)return this;var o=t.count(),s=Vl(t._rawCount),l=new s(o),u=0,c=a[0],f=e[c][0],d=e[c][1],v=t._chunks,p=!1;if(!t._indices){var y=0;if(i===1){for(var _=v[a[0]],g=0;g<n;g++){var h=_[g];(h>=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<n;g++){var h=_[g],A=w[g];(h>=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<o;g++){var T=t.getRawIndex(g),h=v[a[0]][T];(h>=f&&h<=d||isNaN(h))&&(l[u++]=T)}else for(var g=0;g<o;g++){for(var D=!0,T=t.getRawIndex(g),L=0;L<i;L++){var I=a[L],h=v[I][T];(h<e[I][0]||h>e[I][1])&&(D=!1)}D&&(l[u++]=t.getRawIndex(g))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,n){for(var a=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<t.length;c++)u[t[c]]=Fl();for(var f=0;f<s;f++){for(var d=e.getRawIndex(f),v=0;v<o;v++)l[v]=a[t[v]][d];l[o]=f;var p=n&&n.apply(null,l);if(p!=null){typeof p!="object"&&(i[0]=p,p=i);for(var c=0;c<p.length;c++){var y=t[c],_=p[c],g=u[y],h=a[y];h&&(h[d]=_),_<g[0]&&(g[0]=_),_>g[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;p<o-1;p+=l){for(var y=Math.min(p+l,o-1),_=Math.min(p+l*2,o),g=(_+y)/2,h=0,w=y;w<_;w++){var b=this.getRawIndex(w),S=i[b];isNaN(S)||(h+=S)}h/=_-y;var A=p,T=Math.min(p+l,o),D=p-1,L=i[u];c=-1,d=A;for(var I=-1,P=0,w=A;w<T;w++){var b=this.getRawIndex(w),S=i[b];if(isNaN(S)){P++,I<0&&(I=b);continue}f=Math.abs((D-g)*(S-L)-(D-w)*(h-L)),f>c&&(c=f,d=b)}P>0&&P<T-A&&(v[s++]=Math.min(I,d),d=Math.max(I,d)),v[s++]=d,u=d}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/t),o=a[e],s=this.count(),l=new(Vl(this._rawCount))(Math.ceil(s/i)*2),u=0,c=0;c<s;c+=i){var f=c,d=o[this.getRawIndex(f)],v=c,p=o[this.getRawIndex(v)],y=i;c+i>s&&(y=s-c);for(var _=0;_<y;_++){var g=this.getRawIndex(c+_),h=o[g];h<d&&(d=h,f=c+_),h>p&&(p=h,v=c+_)}var w=this.getRawIndex(f),b=this.getRawIndex(v);f<v?(l[u++]=w,l[u++]=b):(l[u++]=b,l[u++]=w)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(e,t,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],c=this.count(),f=i._rawExtent[e]=Fl(),d=new(Vl(this._rawCount))(Math.ceil(c/l)),v=0,p=0;p<c;p+=l){l>c-p&&(l=c-p,s.length=l);for(var y=0;y<l;y++){var _=this.getRawIndex(p+y);s[y]=u[_]}var g=n(s),h=this.getRawIndex(Math.min(p+a(s,g)||0,c-1));u[h]=g,g<f[0]&&(f[0]=g),g>f[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();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(a[e[0]][s],i);break;case 2:t(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],n=Fl();if(!t)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var c=this.getRawIndex(u),f=t[c];f<s&&(s=f),f>l&&(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<a.length;i++)n.push(a[i][t]);return n},r.prototype.clone=function(e,t){var n=new r,a=this._chunks,i=e&&Ia(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?s4(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),t||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Wt(this._extent),e._rawExtent=Wt(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var a=0;a<n;a++)t[a]=this._indices[a]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=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;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&Vt(Ec(this._sourceHost),"Can only call getDataStore on series source manager.");var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Ec(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,n):(s=new Bm,s.initData(new YA(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ec(e)){var t=bm(e);return t?[t.getSourceManager()]:[]}else return ht(fF(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,a;if(Ec(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:a}},r}();function uT(r){var e=r.option.transform;e&&hh(r.option.transform)}function Ec(r){return r.mainType==="series"}function cT(r){throw new Error(r)}var l4="line-height:1";function fT(r){var e=r.lineHeight;return e==null?l4:"line-height:"+jr(e+"")+"px"}function hT(r,e){var t=r.color||"#6e7079",n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+jr(n+"")+"px;color:"+jr(t)+";font-weight:"+jr(a+""),valueStyle:"font-size:"+jr(o+"")+"px;color:"+jr(i)+";font-weight:"+jr(s+"")}:{nameStyle:{fontSize:n,fill:t,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var u4=[0,10,20,30],c4=["",`
- +`,`
- +
- +`,`
- +
- +
- +`];function _r(r,e){return e.type=r,e}function zm(r){return r.type==="section"}function vT(r){return zm(r)?f4:h4}function dT(r){if(zm(r)){var e=0,t=r.blocks.length,n=t>1||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,'<div style="'+v+";"+p+';">'+jr(d)+"</div>"+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='<div style="clear:both"></div>',a="margin: "+t+"px 0 0",i=fT(r);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function d4(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+jr(r)+"</span>"}function p4(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=ft(r)?r:[r],'<span style="'+i+";"+n+'">'+ht(r,function(o){return jr(o)}).join(" ")+"</span>"}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;a<t.length;a++)t[a]&&t[a].label&&$o(t[a],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=Gm(this);if(n){var a=n.context.data;return t==null||!a.getLinkedData?a:a.getLinkedData(t)}else return lo(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=Gm(this);if(n){var a=n.context;a.outputData=t,n!==this.dataTask&&(a.data=t)}lo(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Et(t)},e.prototype.getSourceManager=function(){return lo(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return lo(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,n,a){return _T({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(ie.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.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<t.length;s++){var l=t[s],u=Rv(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,n){for(var a=[],i=0;i<t.length;i++)a[0]=t[i],this.isSelected(t[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=ue(t),a=[],i=0;i<n.length;i++){var o=t[n[i]];o>=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;c<l;c++){var f=n[c],d=Rv(t,f);u[d]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(f)}}else if(s==="single"||s===!0){var v=n[l-1],d=Rv(t,v);o.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(i={},i[d]=t.getRawIndex(v),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(a){var i=t.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&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<arguments.length;p++)v[p]=arguments[p];n=new Date().getTime(),l=this,u=v;var y=c||e,_=c||t;c=null,s=n-(_?a:i)-y,clearTimeout(o),_?o=setTimeout(f,y):s>=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;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function V4(r){return r.data.count()}function F4(r){zv=null;try{r(Rc,kT)}catch(e){}return zv}var Rc={},kT={},zv;RT(Rc,Cm),RT(kT,PA),Rc.eachSeriesByType=Rc.eachRawSeriesByType=function(r){zv=r},Rc.eachComponent=function(r){r.mainType==="series"&&r.subType&&(zv=r.subType)};function RT(r,e){for(var t in e.prototype)r[t]=Je}var NT=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const G4={color:NT,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],NT]};var Gr="#B9B8CE",OT="#100C2A",Vv=function(){return{axisLine:{lineStyle:{color:Gr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},BT=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],zT={darkMode:!0,color:BT,backgroundColor:OT,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Gr},pageTextStyle:{color:Gr}},textStyle:{color:Gr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Gr}},dataZoom:{borderColor:"#71708A",textStyle:{color:Gr},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Gr}},timeline:{lineStyle:{color:Gr},label:{color:Gr},controlStyle:{color:Gr,borderColor:Gr}},calendar:{itemStyle:{color:OT},dayLabel:{color:Gr},monthLabel:{color:Gr},yearLabel:{color:Gr}},timeAxis:Vv(),logAxis:Vv(),valueAxis:Vv(),categoryAxis:Vv(),line:{symbol:"circle"},graph:{color:BT},gauge:{title:{color:Gr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Gr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};zT.categoryAxis.splitLine.show=!1;var W4=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},a={};if(Ct(e)){var i=Ba(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};N(e,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],v=u.lastIndexOf(d);if(v>0&&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<Hm.length;o++){var s=Hm[o],l=r.get(s);Rt(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(lt({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var u=ue(a);function c(f,d){for(var v=r.getRawValue(d),p=r.getDataParams(d),y=0;y<u.length;y++){var _=u[y];f.setItemVisual(d,_,a[_](v,p))}}return{dataEach:i?c:null}}},U4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<VT.length;s++){var l=VT[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?n:null}}};function Um(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function Nc(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function FT(r,e,t,n){switch(t){case"color":var a=r.ensureUniqueItemVisual(e,"style");a[r.getVisual("drawType")]=n,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,n);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function GT(r,e){function t(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}N([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=lt({},a),process.env.NODE_ENV!=="production"&&ar(a.type,n[1]),o.dispatchAction(lt(a,{type:n[1],seriesIndex:t(i,a)}))})})}function Hl(r,e,t,n,a){var i=r+e;t.isSilent(i)||(process.env.NODE_ENV!=="production"&&da("event "+i+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=qo(f,a.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:ft(d)?f.getName(d[0]):f.getName(d),selected:Ct(l)?l:lt({},l)})}}))}function Z4(r,e,t){r.on("selectchanged",function(n){var a=t.getModel();n.isFromClick?(Hl("map","selectchanged",e,a,n),Hl("pie","selectchanged",e,a,n)):n.fromAction==="select"?(Hl("map","selected",e,a,n),Hl("pie","selected",e,a,n)):n.fromAction==="unselect"&&(Hl("map","unselected",e,a,n),Hl("pie","unselected",e,a,n))})}function Ss(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var Y4=Math.round(Math.random()*9),X4=typeof Object.defineProperty=="function",j4=function(){function r(){this._id="__ec_inner_"+Y4++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var n=this._guard(e);return X4?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r}(),$4=oe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n+i),r.lineTo(t-a,n+i),r.closePath()}}),q4=oe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n),r.lineTo(t,n+i),r.lineTo(t-a,n),r.closePath()}}),K4=oe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),v=o*.6,p=o*.7;r.moveTo(t-c,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+c-f*v,l+s+d*v,t,n-p,t,n),r.bezierCurveTo(t,n-p,t-c+f*v,l+s+d*v,t-c,l+s),r.closePath()}}),Q4=oe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+t),r.lineTo(a,i+t/4*3),r.lineTo(a-o,i+t),r.lineTo(a,i),r.closePath()}}),J4={line:yr,rect:de,roundRect:de,square:de,circle:mi,diamond:q4,pin:K4,arrow:Q4,triangle:$4},tG={line:function(r,e,t,n,a){a.x1=r,a.y1=e+n/2,a.x2=r+t,a.y2=e+n/2},rect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n},roundRect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n,a.r=Math.min(t,n)/4},square:function(r,e,t,n,a){var i=Math.min(t,n);a.x=r,a.y=e,a.width=i,a.height=i},circle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.r=Math.min(t,n)/2},diamond:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n},pin:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},arrow:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},triangle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n}},Fv={};N(J4,function(r,e){Fv[e]=new r});var eG=oe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=Fh(r,e,t),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var a=Fv[n];a||(n="rect",a=Fv[n]),tG[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(r,a.shape,t)}}});function rG(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function sr(r,e,t,n,a,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=z2(r.slice(8),new Jt(e,t,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=vv(r.slice(7),{},new Jt(e,t,n,a),o?"center":"cover"):l=new eG({shape:{symbolType:r,x:e,y:t,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=rG,i&&l.setColor(i),l}function Ul(r){return ft(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function As(r,e){if(r!=null)return ft(r)||(r=[r,r]),[At(r[0],e[0])||0,At(Ut(r[1],r[0]),e[1])||0]}function Ts(r){return isFinite(r)}function nG(r,e,t){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*t.width+t.x,a=a*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),n=Ts(n)?n:0,a=Ts(a)?a:1,i=Ts(i)?i:0,o=Ts(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function aG(r,e,t){var n=t.width,a=t.height,i=Math.min(n,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+t.x,s=s*a+t.y,l=l*i),o=Ts(o)?o:.5,s=Ts(s)?s:.5,l=l>=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;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function iG(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function Gv(r){return parseInt(r,10)}function Zl(r,e,t){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[n]!=null&&t[n]!=="auto")return parseFloat(t[n]);var s=document.defaultView.getComputedStyle(r);return(r[a]||Gv(s[n])||Gv(r.style[n]))-(Gv(s[i])||0)-(Gv(s[o])||0)|0}function oG(r,e){return!r||r==="solid"||!(e>0)?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;s<ZT.length;s++){var l=ZT[s];(n||e[l]!==t[l])&&(i||(hn(r,a),i=!0),r[l]=r.dpr*(e[l]||0))}return(n||e.shadowColor!==t.shadowColor)&&(i||(hn(r,a),i=!0),r.shadowColor=e.shadowColor||Jo.shadowColor),i}function jT(r,e,t,n,a){var i=Oc(e,a.inHover),o=n?null:t&&Oc(t,a.inHover)||{};if(i===o)return!1;var s=XT(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(hn(r,a),s=!0),WT(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(hn(r,a),s=!0),WT(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(hn(r,a),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(hn(r,a),s=!0),r.lineWidth=u)}for(var c=0;c<YT.length;c++){var f=YT[c],d=f[0];(n||i[d]!==o[d])&&(s||(hn(r,a),s=!0),r[d]=i[d]||f[1])}return s}function fG(r,e,t,n,a){return XT(r,Oc(e,a.inHover),t&&Oc(t,a.inHover),n,a)}function $T(r,e){var t=e.transform,n=r.dpr||1;t?r.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):r.setTransform(n,0,0,n,0,0)}function hG(r,e,t){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),$T(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=n}function vG(r,e){return r&&e?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&&!e)}var qT=1,KT=2,QT=3,JT=4;function dG(r){var e=Hv(r),t=Wv(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function hn(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function Oc(r,e){return e&&r.__hoverStyle||r.style}function tC(r,e){Cs(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Cs(r,e,t,n){var a=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=-2,e.__isRendered=!1;return}var i=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||iG(i,o))&&(o&&o.length&&(hn(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(hn(r,t),r.save(),hG(i,r,t),s=!0),t.prevElClipPaths=i),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var c=e instanceof oe&&e.autoBatch&&dG(e.style);s||vG(a,u.transform)?(hn(r,t),$T(r,e)):c||hn(r,t);var f=Oc(e,t.inHover);e instanceof oe?(t.lastDrawType!==qT&&(l=!0,t.lastDrawType=qT),jT(r,e,u,l,t),(!c||!t.batchFill&&!t.batchStroke)&&r.beginPath(),lG(r,e,f,c),c&&(t.batchFill=f.fill||"",t.batchStroke=f.stroke||"")):e instanceof _l?(t.lastDrawType!==QT&&(l=!0,t.lastDrawType=QT),jT(r,e,u,l,t),cG(r,e,f)):e instanceof Tr?(t.lastDrawType!==KT&&(l=!0,t.lastDrawType=KT),fG(r,e,u,l,t),uG(r,e,f)):e.getTemporalDisplayables&&(t.lastDrawType!==JT&&(l=!0,t.lastDrawType=JT),pG(r,e,t)),c&&n&&hn(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function pG(r,e,t){var n=e.getDisplayables(),a=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Cs(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Cs(r,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var jm=new j4,eC=new Yu(100),rC=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Yl(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";r.dirty&&jm.delete(r);var i=jm.get(r);if(i)return i;var o=Ft(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/t,jm.set(r,s),r.dirty=!1,s;function l(u){for(var c=[t],f=!0,d=0;d<rC.length;++d){var v=o[rC[d]];if(v!=null&&!ft(v)&&!Ct(v)&&!ye(v)&&typeof v!="boolean"){f=!1;break}c.push(v)}var p;if(f){p=c.join(",")+(a?"-svg":"");var y=eC.get(p);y&&(a?u.svgElement=y:u.image=y)}var _=aC(o.dashArrayX),g=gG(o.dashArrayY),h=nC(o.symbol),w=yG(_),b=iC(g),S=!a&&Wi.createCanvas(),A=a&&{tag:"g",attrs:{},key:"dcl",children:[]},T=L(),D;S&&(S.width=T.width*t,S.height=T.height*t,D=S.getContext("2d")),I(),f&&eC.put(p,S||A),u.image=S,u.svgElement=A,u.svgWidth=T.width,u.svgHeight=T.height;function L(){for(var P=1,E=0,R=w.length;E<R;++E)P=_S(P,w[E]);for(var M=1,E=0,R=h.length;E<R;++E)M=_S(M,h[E].length);P*=M;var B=b*w.length*h.length;if(process.env.NODE_ENV!=="production"){var F=function(W){console.warn("Calculated decal size is greater than "+W+" due to decal option settings so "+W+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+W+" to be larger to avoid incontinuity.")};P>o.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;E<g.length;++E)P+=g[E];if(P<=0)return;for(var R=-b,M=0,B=0,F=0;R<T.height;){if(M%2===0){for(var W=B/2%h.length,j=0,H=0,K=0;j<T.width*2;){for(var U=0,E=0;E<_[F].length;++E)U+=_[F][E];if(U<=0)break;if(H%2===0){var $=(1-o.symbolSize)*.5,ut=j+_[F][H]*$,ot=R+g[M]*$,it=_[F][H]*o.symbolSize,Nt=g[M]*o.symbolSize,Kt=K/2%h[W].length;xt(ut,ot,it,Nt,h[W][Kt])}j+=_[F][H],++K,++H,H===_[F].length&&(H=0)}++F,F===_.length&&(F=0)}R+=g[M],++B,++M,M===g.length&&(M=0)}function xt(wt,Ot,bt,Pt,se){var O=a?1:t,st=sr(se,wt*O,Ot*O,bt*O,Pt*O,o.color,o.symbolKeepAspect);if(a){var nt=n.painter.renderOneToVNode(st);nt&&A.children.push(nt)}else tC(D,st)}}}}function nC(r){if(!r||r.length===0)return[["rect"]];if(Ct(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!Ct(r[t])){e=!1;break}if(e)return nC([r]);for(var n=[],t=0;t<r.length;++t)Ct(r[t])?n.push([r[t]]):n.push(r[t]);return n}function aC(r){if(!r||r.length===0)return[[0,0]];if(ye(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!ye(r[n])){t=!1;break}if(t)return aC([r]);for(var a=[],n=0;n<r.length;++n)if(ye(r[n])){var e=Math.ceil(r[n]);a.push([e,e])}else{var e=ht(r[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function gG(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(ye(r)){var e=Math.ceil(r);return[e,e]}var t=ht(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function yG(r){return ht(r,function(e){return iC(e)})}function iC(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function mG(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Yl(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Yl(a,e)}}})}var _a=new Rn,Uv={};function _G(r,e){process.env.NODE_ENV!=="production"&&Uv[r]&&Ir("Already has an implementation of "+r+"."),Uv[r]=e}function wG(r){return process.env.NODE_ENV!=="production"&&(Uv[r]||Ir("Implementation of "+r+" doesn't exists.")),Uv[r]}var bG=1,xG=800,SG=900,AG=1e3,TG=2e3,CG=5e3,oC=1e3,DG=1100,$m=2e3,sC=3e3,LG=4e3,Zv=4500,MG=4600,IG=5e3,EG=6e3,lC=7e3,PG={PROCESSOR:{FILTER:AG,SERIES_FILTER:xG,STATISTIC:CG},VISUAL:{LAYOUT:oC,PROGRESSIVE_LAYOUT:DG,GLOBAL:$m,CHART:sC,POST_CHART_LAYOUT:MG,COMPONENT:LG,BRUSH:IG,CHART_ITEM:Zv,ARIA:EG,DECAL:lC}},Wr="__flagInMainProcess",vn="__pendingUpdate",qm="__needsUpdateStatus",uC=/^[a-zA-Z0-9_]+$/,Km="__connectUpdateStatus",cC=0,kG=1,RG=2;function fC(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){xn(this.id);return}return vC(this,r,e)}}function hC(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return vC(this,r,e)}}function vC(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Rn.prototype[e].apply(r,t)}var dC=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Rn),pC=dC.prototype;pC.on=hC("on"),pC.off=hC("off");var Xl,Qm,Yv,uo,Jm,t0,e0,Bc,zc,gC,yC,r0,mC,Xv,_C,wC,Xn,bC,xC=function(r){J(e,r);function e(t,n,a){var i=r.call(this,new W4)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},Ct(n)&&(n=SC[n]),i._dom=t;var o="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=ie.hasGlobalWindow?window:global;u&&(o=Ut(u.__ECHARTS__DEFAULT__RENDERER__,o),s=Ut(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=Ut(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}a.ssr&&A3(function(v){var p=Zt(v),y=p.dataIndex;if(y!=null){var _=Et();return _.set("series_index",p.seriesIndex),_.set("data_index",y),p.ssrType&&_.set("ssr_type",p.ssrType),_}});var c=i._zr=cS(t,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Ut(a.useDirtyRect,l),useCoarsePointer:Ut(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=Wm(Lt(c.flush,c),17),n=Wt(n),n&&VA(n,!0),i._theme=n,i._locale=KV(a.locale||tA),i._coordSysMgr=new Bl;var f=i._api=_C(i);function d(v,p){return v.__prio-p.__prio}return wh($v,d),wh(a0,d),i._scheduler=new ET(i,f,a0,$v),i._messageCenter=new dC,i._initEvents(),i.resize=Lt(i.resize,i),c.animation.on("frame",i._onframe,i),gC(c,i),yC(c,i),hh(i),i}return e.prototype._onframe=function(){if(!this._disposed){bC(this);var t=this._scheduler;if(this[vn]){var n=this[vn].silent;this[Wr]=!0;try{Xl(this),uo.update.call(this,null,this[vn].updateParams)}catch(l){throw this[Wr]=!1,this[vn]=null,l}this._zr.flush(),this[Wr]=!1,this[vn]=null,Bc.call(this,n),zc.call(this,n)}else if(t.unfinished){var a=bG,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),t0(this,i),t.performVisualTasks(i),Xv(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,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+='<g transform="translate('+b+","+S+')">'+w.dom+"</g>"}),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;w<y.length;w++)y[w].__alive=!1;d?v.eachComponent(function(A,T){A!=="series"&&b(T)}):v.eachSeries(b);function b(A){var T=A.__requireNewView;A.__requireNewView=!1;var D="_ec_"+A.id+"_"+A.type,L=!T&&_[D];if(!L){var I=Ba(A.type),P=d?Ue.getClass(I.main,I.sub):ke.getClass(I.sub);process.env.NODE_ENV!=="production"&&Vt(P,I.sub+" does not exist."),L=new P,L.init(v,h),_[D]=L,y.push(L),g.add(L.group)}A.__viewId=L.__id=D,L.__alive=!0,L.__model=A,L.group.__ecComponentInfo={mainType:A.mainType,index:A.componentIndex},!d&&p.prepareView(L,A,v,h)}for(var w=0;w<y.length;){var S=y[w];S.__alive?w++:(!d&&S.renderTask.dispose(),g.remove(S.group),S.dispose(v,h),y.splice(w,1),_[S.__id]===S&&delete _[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Yv=function(f,d,v,p,y){var _=f._model;if(_.setUpdatePayload(v),!p){N([].concat(f._componentsViews).concat(f._chartsViews),S);return}var g={};g[p+"Id"]=v[p+"Id"],g[p+"Index"]=v[p+"Index"],g[p+"Name"]=v[p+"Name"];var h={mainType:p,query:g};y&&(h.subType=y);var w=v.excludeSeriesId,b;w!=null&&(b=Et(),N(Pe(w),function(A){var T=fr(A,null);T!=null&&b.set(T,!0)})),_&&_.eachComponent(h,function(A){var T=b&&b.get(A.id)!=null;if(!T)if(w2(v))if(A instanceof ze)v.type===ss&&!v.notBlur&&!A.get(["emphasis","disabled"])&&qz(A,v,f._api);else{var D=Xy(A.mainType,A.componentIndex,v.name,f._api),L=D.focusSelf,I=D.dispatchers;v.type===ss&&L&&!v.notBlur&&Yy(A.mainType,A.componentIndex,f._api),I&&N(I,function(P){v.type===ss?gi(P):yi(P)})}else $y(v)&&A instanceof ze&&(Jz(A,v,f._api),m2(A),Xn(f))},f),_&&_.eachComponent(h,function(A){var T=b&&b.get(A.id)!=null;T||S(f[p==="series"?"_chartsMap":"_componentsMap"][A.__viewId])},f);function S(A){A&&A.__alive&&A[d]&&A[d](A.__model,_,f._api,v)}},uo={prepareAndUpdate:function(f){Xl(this),uo.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var v=this._model,p=this._api,y=this._zr,_=this._coordSysMgr,g=this._scheduler;if(v){v.setUpdatePayload(f),g.restoreData(v,f),g.performSeriesTasks(v),_.create(v,p),g.performDataProcessorTasks(v,f),t0(this,v),_.update(v,p),t(v),g.performVisualTasks(v,f),r0(this,v,p,f,d);var h=v.get("backgroundColor")||"transparent",w=v.get("darkMode");y.setBackgroundColor(h),w!=null&&w!=="auto"&&y.setDarkMode(w),_a.trigger("afterupdate",v,p)}},updateTransform:function(f){var d=this,v=this._model,p=this._api;if(v){v.setUpdatePayload(f);var y=[];v.eachComponent(function(g,h){if(g!=="series"){var w=d.getViewOfComponentModel(h);if(w&&w.__alive)if(w.updateTransform){var b=w.updateTransform(h,v,p,f);b&&b.update&&y.push(w)}else y.push(w)}});var _=Et();v.eachSeries(function(g){var h=d._chartsMap[g.__viewId];if(h.updateTransform){var w=h.updateTransform(g,v,p,f);w&&w.update&&_.set(g.uid,1)}else _.set(g.uid,1)}),t(v),this._scheduler.performVisualTasks(v,f,{setDirty:!0,dirtyMap:_}),Xv(this,v,p,f,{},_),_a.trigger("afterupdate",v,p)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),ke.markUpdateMethod(f,"updateView"),t(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),r0(this,d,this._api,f,{}),_a.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,v=this._model;v&&(v.setUpdatePayload(f),v.eachSeries(function(p){p.getData().clearAllVisual()}),ke.markUpdateMethod(f,"updateVisual"),t(v),this._scheduler.performVisualTasks(v,f,{visualType:"visual",setDirty:!0}),v.eachComponent(function(p,y){if(p!=="series"){var _=d.getViewOfComponentModel(y);_&&_.__alive&&_.updateVisual(y,v,d._api,f)}}),v.eachSeries(function(p){var y=d._chartsMap[p.__viewId];y.updateVisual(p,v,d._api,f)}),_a.trigger("afterupdate",v,this._api))},updateLayout:function(f){uo.update.call(this,f)}},Jm=function(f,d,v,p){if(f._disposed){xn(f.id);return}for(var y=f._model,_=f._coordSysMgr.getCoordinateSystems(),g,h=ac(y,v),w=0;w<_.length;w++){var b=_[w];if(b[d]&&(g=b[d](y,h,p))!=null)return g}process.env.NODE_ENV!=="production"&&Ye("No coordinate system that supports "+d+" found by the given finder.")},t0=function(f,d){var v=f._chartsMap,p=f._scheduler;d.eachSeries(function(y){p.updateStreamModes(y,v[y.__viewId])})},e0=function(f,d){var v=this,p=this.getModel(),y=f.type,_=f.escapeConnect,g=jv[y],h=g.actionInfo,w=(h.update||"update").split(":"),b=w.pop(),S=w[0]!=null&&Ba(w[0]);this[Wr]=!0;var A=[f],T=!1;f.batch&&(T=!0,A=ht(f.batch,function(M){return M=Ft(lt({},M),f),M.batch=null,M}));var D=[],L,I=$y(f),P=w2(f);if(P&&y2(this._api),N(A,function(M){if(L=g.action(M,v._model,v._api),L=L||lt({},M),L.type=h.event||L.type,D.push(L),P){var B=_y(f),F=B.queryOptionMap,W=B.mainTypeSpecified,j=W?F.keys()[0]:"series";Yv(v,b,M,j),Xn(v)}else I?(Yv(v,b,M,"series"),Xn(v)):S&&Yv(v,b,M,S.main,S.sub)}),b!=="none"&&!P&&!I&&!S)try{this[vn]?(Xl(this),uo.update.call(this,f),this[vn]=null):uo[b].call(this,f)}catch(M){throw this[Wr]=!1,M}if(T?L={type:h.event||y,escapeConnect:_,batch:D}:L=D[0],this[Wr]=!1,!d){var E=this._messageCenter;if(E.trigger(L.type,L),I){var R={type:"selectchanged",escapeConnect:_,selected:tV(p),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};E.trigger(R.type,R)}}},Bc=function(f){for(var d=this._pendingActions;d.length;){var v=d.shift();e0.call(this,v,f)}},zc=function(f){!f&&this.trigger("updated")},gC=function(f,d){f.on("rendered",function(v){d.trigger("rendered",v),f.animation.isFinished()&&!d[vn]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},yC=function(f,d){f.on("mouseover",function(v){var p=v.target,y=Ss(p,eo);y&&(Kz(y,v,d._api),Xn(d))}).on("mouseout",function(v){var p=v.target,y=Ss(p,eo);y&&(Qz(y,v,d._api),Xn(d))}).on("click",function(v){var p=v.target,y=Ss(p,function(h){return Zt(h).dataIndex!=null},!0);if(y){var _=y.selected?"unselect":"select",g=Zt(y);d._api.dispatchAction({type:_,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function t(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],v=[],p=!1;if(f.eachComponent(function(h,w){var b=w.get("zlevel")||0,S=w.get("z")||0,A=w.getZLevelKey();p=p||!!A,(h==="series"?v:d).push({zlevel:b,z:S,idx:w.componentIndex,type:h,key:A})}),p){var y=d.concat(v),_,g;wh(y,function(h,w){return h.zlevel===w.zlevel?h.z-w.z:h.zlevel-w.zlevel}),N(y,function(h){var w=f.getComponent(h.type,h.idx),b=h.zlevel,S=h.key;_!=null&&(b=Math.max(_,b)),S?(b===_&&S!==g&&b++,g=S):g&&(b===_&&b++,g=""),_=b,w.setZLevel(b)})}}r0=function(f,d,v,p,y){n(d),mC(f,d,v,p,y),N(f._chartsViews,function(_){_.__alive=!1}),Xv(f,d,v,p,y),N(f._chartsViews,function(_){_.__alive||_.remove(d,v)})},mC=function(f,d,v,p,y,_){N(_||f._componentsViews,function(g){var h=g.__model;u(h,g),g.render(h,d,v,p),s(h,g),c(h,g)})},Xv=function(f,d,v,p,y,_){var g=f._scheduler;y=lt(y||{},{updatedSeries:d.getSeries()}),_a.trigger("series:beforeupdate",d,v,y);var h=!1;d.eachSeries(function(w){var b=f._chartsMap[w.__viewId];b.__alive=!0;var S=b.renderTask;g.updatePayload(S,p),u(w,b),_&&_.get(w.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(h=!0),b.group.silent=!!w.get("silent"),o(w,b),m2(w)}),g.unfinished=h||g.unfinished,_a.trigger("series:layoutlabels",d,v,y),_a.trigger("series:transition",d,v,y),d.eachSeries(function(w){var b=f._chartsMap[w.__viewId];s(w,b),c(w,b)}),i(f,d),_a.trigger("series:afterupdate",d,v,y)},Xn=function(f){f[qm]=!0,f.getZr().wakeUp()},bC=function(f){f[qm]&&(f.getZr().storage.traverse(function(d){Cl(d)||a(d)}),f[qm]=!1)};function a(f){for(var d=[],v=f.currentStates,p=0;p<v.length;p++){var y=v[p];y==="emphasis"||y==="blur"||y==="select"||d.push(y)}f.selected&&f.states.select&&d.push("select"),f.hoverState===Qh&&f.states.emphasis?d.push("emphasis"):f.hoverState===lc&&f.states.blur&&d.push("blur"),f.useStates(d)}function i(f,d){var v=f._zr,p=v.storage,y=0;p.traverse(function(_){_.isGroup||y++}),y>d.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;w<h.length;w++)p=Math.max(l(h[w],d,v,p),p);else f.z=d,f.zlevel=v,p=Math.max(f.z2,p);if(y&&(y.z=d,y.zlevel=v,isFinite(p)&&(y.z2=p+2)),_){var b=f.textGuideLineConfig;_.z=d,_.zlevel=v,isFinite(p)&&(_.z2=p+(b&&b.showAbove?1:-1))}return p}function u(f,d){d.eachRendered(function(v){if(!Cl(v)){var p=v.getTextContent(),y=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function c(f,d){var v=f.getModel("stateAnimation"),p=f.isAnimationEnabled(),y=v.get("duration"),_=y>0?{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<v.length;y++){var _=v[y];_[Km]=p}}N(Vc,function(v,p){f._messageCenter.on(p,function(y){if(AC[f.group]&&f[Km]!==cC){if(y&&y.escapeConnect)return;var _=f.makeActionFromEvent(y),g=[];N(Fc,function(h){h!==f&&h.group===f.group&&g.push(h)}),d(g,cC),N(g,function(h){h[Km]!==kG&&h.dispatchAction(_)}),d(g,RG)}})})}}(),e}(Rn),n0=xC.prototype;n0.on=fC("on"),n0.off=fC("off"),n0.one=function(r,e,t){var n=this;da("ECharts#one is deprecated.");function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(r,a)}this.on.call(this,r,a,t)};var NG=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function xn(r){process.env.NODE_ENV!=="production"&&Ye("Instance "+r+" has been disposed")}var jv={},Vc={},a0=[],i0=[],$v=[],SC={},o0={},Fc={},AC={},OG=+new Date-0,s0="_echarts_instance_";function BG(r,e,t){var n=!t.ssr;if(n){if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Initialize failed: invalid dom.");var a=zG(r);if(a)return process.env.NODE_ENV!=="production"&&Ye("There is a chart instance already initialized on the dom."),a;process.env.NODE_ENV!=="production"&&Oo(r)&&r.nodeName.toUpperCase()!=="CANVAS"&&(!r.clientWidth&&(!t||t.width==null)||!r.clientHeight&&(!t||t.height==null))&&Ye("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var i=new xC(r,e,t);return i.id="ec_"+OG++,Fc[i.id]=i,n&&MS(r,s0,i.id),wC(i),_a.trigger("afterinit",i),i}function zG(r){return Fc[X3(r,s0)]}function TC(r,e){SC[r]=e}function CC(r){te(i0,r)<0&&i0.push(r)}function DC(r,e){u0(a0,r,e,TG)}function VG(r){l0("afterinit",r)}function FG(r){l0("afterupdate",r)}function l0(r,e){_a.on(r,e)}function Za(r,e,t){Rt(e)&&(t=e,e="");var n=zt(r)?r.type:[r,r={event:e}][0];r.event=(r.event||n).toLowerCase(),e=r.event,!Vc[e]&&(Vt(uC.test(n)&&uC.test(e)),jv[n]||(jv[n]={action:t,actionInfo:r}),Vc[e]=n)}function GG(r,e){Bl.register(r,e)}function WG(r,e){u0($v,r,e,oC,"layout")}function Ds(r,e){u0($v,r,e,sC,"visual")}var LC=[];function u0(r,e,t,n,a){if((Rt(e)||zt(e))&&(t=e,e=n),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");N(r,function(o){Vt(o.__raw!==t)})}if(!(te(LC,t)>=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;o<e.length;o++){var s=a[o],l=n[s],u=Gc(l);if(u>1){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;s<i.length;s++){var l=i[s],u=n[l],c=a[l],f=Gc(u),d=Gc(c);if(f>1&&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;v<f;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var a=e[n],i=t[a],o=Gc(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);t[a]=null}},r.prototype._initIndexMap=function(e,t,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!t){var l=t[s],u=Gc(l);u===0?(t[s]=o,i&&n.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r}(),YG=function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function XG(r,e){var t={},n=t.encode={},a=Et(),i=[],o=[],s={};N(r.dimensions,function(d){var v=r.getDimensionInfo(d),p=v.coordDim;if(p){process.env.NODE_ENV!=="production"&&Vt(_m.get(p)==null);var y=v.coordDimIndex;c0(n,p)[y]=d,v.isExtraCoord||(a.set(p,1),jG(v.type)&&(i[0]=d),c0(s,p)[y]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(d)}_m.each(function(_,g){var h=c0(n,g),w=v.otherDims[g];w!=null&&w!==!1&&(h[w]=v.name)})});var l=[],u={};a.each(function(d,v){var p=n[v];u[v]=p[0],l=l.concat(p)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=ht(l,function(d){return r.getDimensionInfo(d).storeDimIndex}),t.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(i=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,t.userOutput=new YG(s,e),t}function c0(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function qv(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function jG(r){return!(r==="ordinal"||r==="time")}var Kv=function(){function r(e){this.otherDims={},e!=null&<(this,e)}return r}(),$G=ve(),qG={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},PC=function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=NC(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return Ut(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=HA(this.source),n=!OC(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=t?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=t?d.name:null,u=d.type)}i.push({property:l,type:u,ordinalMeta:c}),t&&l!=null&&(!f||!f.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=qG[u]||"f",c&&(a+=c.uid),a+="$"}var v=this.source,p=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:p}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(t);o&&(a=o.name)}e.push(a)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function kC(r){return r instanceof PC}function RC(r){for(var e=Et(),t=0;t<(r||[]).length;t++){var n=r[t],a=zt(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,t)}return e}function NC(r){var e=$G(r);return e.dimNameMap||(e.dimNameMap=RC(r.dimensionsDefine))}function OC(r){return r>30}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<n.length;c++){var f=n[c],d=Ct(f)?new Kv({name:f}):f instanceof Kv?f:new Kv(f),v=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=v,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(v),i[v]=d,u[v]!=null&&(l=!0),d.createInvertedIndices&&(s[v]=[]),p.itemName===0&&(this._nameDimIdx=c),p.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&Vt(a||d.storeDimIndex>=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<i;s++){var l=s-a;this._nameList[s]=t[l],o&&h0(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var a=this._dimInfos[t[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==_i&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=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;c<t;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&R3(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=fr(d,null));var v=f.id;o[c]==null&&v!=null&&(o[c]=fr(v,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<t;c++)h0(this,c);zC(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Wc(e)?lt(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Hc(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},r.prototype.getId=function(e){return Qv(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var n=this,a=this._store;return ft(e)?a.getValues(co(e,function(i){return n._getStoreDimIndex(i)}),t):a.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,a=t.length;n<a;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var a=n&&n[t];return a==null||isNaN(a)?BC:a},r.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},r.prototype.each=function(e,t,n){Rt(e)&&(n=t,t=e,e=[]);var a=n||this,i=co(jl(e),this._getStoreDimIndex,this);this._store.each(i,a?Lt(t,a):t)},r.prototype.filterSelf=function(e,t,n){Rt(e)&&(n=t,t=e,e=[]);var a=n||this,i=co(jl(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?Lt(t,a):t),this},r.prototype.selectRange=function(e){var t=this,n={},a=ue(e);return N(a,function(i){var o=t._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){Rt(e)&&(n=t,t=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},n),a},r.prototype.map=function(e,t,n,a){var i=n||a||this,o=co(jl(e),this._getStoreDimIndex,this),s=Uc(this);return s._store=this._store.map(o,i?Lt(t,i):t),s},r.prototype.modify=function(e,t,n,a){var i=this,o=n||a||this;process.env.NODE_ENV!=="production"&&N(jl(e),function(l){var u=i.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=co(jl(e),this._getStoreDimIndex,this);this._store.modify(s,o?Lt(t,o):t)},r.prototype.downSample=function(e,t,n,a){var i=Uc(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,a),i},r.prototype.minmaxDownSample=function(e,t){var n=Uc(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=Uc(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Me(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new bi(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Qv(e,n)},function(n){return Qv(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Wc(e)?lt(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],a=n&&n[t];return a==null?this.getVisual(t):a},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},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;l<n.length;l++)n[l]=BC;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Hc=function(e,t,n){return fr(e._getCategory(t,n),null)},Qv=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Hc(e,e._idDimIdx,t)),n==null&&(n=QG+t),n},jl=function(e){return ft(e)||(e=e!=null?[e]:[]),e},Uc=function(e){var t=new r(e._schema?e._schema:co(e.dimensions,e._getDimInfo,e),e.hostModel);return f0(t,e),t},f0=function(e,t){N(JG.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,N(t6,function(n){e[n]=Wt(t[n])}),e._calculationInfo=lt({},t._calculationInfo)},h0=function(e,t){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[t],l=a[t];if(s==null&&i!=null&&(n[t]=s=Hc(e,i,t)),l==null&&o!=null&&(a[t]=l=Hc(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(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;v<d.length;v++)d[v]=-1;function p(L){var I=d[L];if(I<0){var P=n[L],E=zt(P)?P:{name:P},R=new Kv,M=E.name;M!=null&&u.get(M)!=null&&(R.name=R.displayName=M),E.type!=null&&(R.type=E.type),E.displayName!=null&&(R.displayName=E.displayName);var B=i.length;return d[L]=B,R.storeDimIndex=L,i.push(R),R}return i[I]}if(!s)for(var v=0;v<o;v++)p(v);f.each(function(L,I){var P=Pe(L).slice();if(P.length===1&&!Ct(P[0])&&P[0]<0){f.set(I,!1);return}var E=f.set(I,[]);N(P,function(R,M){var B=Ct(R)?u.get(R):R;B!=null&&B<o&&(E[M]=B,_(p(B),I,M))})});var y=0;N(t,function(L){var I,P,E,R;if(Ct(L))I=L,R={};else{R=L,I=R.name;var M=R.ordinalMeta;R.ordinalMeta=null,R=lt({},R),R.ordinalMeta=M,P=R.dimsDef,E=R.otherDims,R.name=R.coordDim=R.coordDimIndex=R.dimsDef=R.otherDims=null}var B=f.get(I);if(B!==!1){if(B=Pe(B),!B.length)for(var F=0;F<(P&&P.length||1);F++){for(;y<o&&p(y).coordDim!=null;)y++;y<o&&B.push(y++)}N(B,function(W,j){var H=p(W);if(l&&R.type!=null&&(H.type=R.type),_(Ft(H,R),I,j),H.name==null&&P){var K=P[j];!zt(K)&&(K={name:K}),H.name=H.displayName=K.name,H.defaultTooltip=K.defaultTooltip}E&&Ft(H.otherDims,E)})}});function _(L,I,P){_m.get(I)!=null?L.otherDims[I]=P:(L.coordDim=I,L.coordDimIndex=P,a.set(I,!0))}var g=e.generateCoord,h=e.generateCoordCount,w=h!=null;h=g?h||1:0;var b=g||"value";function S(L){L.name==null&&(L.name=L.coordDim)}if(s)N(i,function(L){S(L)}),i.sort(function(L,I){return L.storeDimIndex-I.storeDimIndex});else for(var A=0;A<o;A++){var T=p(A),D=T.coordDim;D==null&&(T.coordDim=n6(b,a,w),T.coordDimIndex=0,(!g||h<=0)&&(T.isExtraCoord=!0),h--),S(T),T.type==null&&(SA(r,A)===kr.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return e6(i),new PC({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function e6(r){for(var e=Et(),t=0;t<r.length;t++){var n=r[t],a=n.name,i=e.get(a)||0;i>0&&(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;e<r.length&&r[e]==null;)e++;return r[e]}var Ya=function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[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&&o<t&&(o=a.interval=t),n!=null&&o>n&&(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<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(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[0]&&(n[0]=t[0]),t[1]>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]<i[0]&&(t?s.push({value:Ls(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Ls(u+n,o),u!==s[s.length-1].value);)if(s.length>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;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,d=f/t;u<t-1;){var v=Ls(l.value+(u+1)*d);v>i[0]&&v<i[1]&&c.push(v),u++}a.push(c)}return a},e.prototype.getLabel=function(t,n){if(t==null)return"";var a=n&&n.precision;a==null?a=Na(t.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Ls(t.value,a,!0);return vA(i)},e.prototype.calcNiceTicks=function(t,n,a){t=t||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=g6(i,t,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);t.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(n[0]=Ls(Math.floor(n[0]/o)*o)),t.fixMax||(n[1]=Ls(Math.ceil(n[1]/o)*o))},e.prototype.setNiceExtent=function(t,n){this._niceExtent=[t,n]},e.type="interval",e}(Ya);Ya.registerClass(Si);var WC=typeof Float32Array!="undefined",m6=WC?Float32Array:Array;function Xa(r){return ft(r)?WC?new Float32Array(r):r:new m6(r)}var g0="__ec_stack_";function HC(r){return r.get("stack")||g0+r.seriesIndex}function y0(r){return r.dim+r.index}function _6(r){var e=[],t=r.axis,n="axis0";if(t.type==="category"){for(var a=t.getBandWidth(),i=0;i<r.count;i++)e.push(Ft({bandWidth:a,axisKey:n,stackId:g0+i},r));for(var o=YC(e),s=[],i=0;i<r.count;i++){var l=o[n][g0+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function UC(r,e){var t=[];return e.eachSeriesByType(r,function(n){$C(n)&&t.push(n)}),t}function w6(r){var e={};N(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,v=f.getDimensionIndex(f.mapDimension(c.dim)),p=f.getStore(),y=0,_=p.count();y<_;++y){var g=p.get(v,y);e[d]?e[d].push(g):e[d]=[g]}});var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(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&&h<b&&(b=Math.min(h,f)),w&&w>b&&(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)<y&&(K=(K<0?-1:1)*y)}else{var $=n.dataToPoint([B,M]);if(f){var ut=n.dataToPoint([B,W]);F=ut[1]}j=$[0]+h,H=F,K=g,U=$[1]-F,Math.abs(U)<y&&(U=(U<=0?-1:1)*y)}p?(A[R]=j,A[R+1]=H,A[R+2]=d?K:U,T&&(T[R]=d?L.x:j,T[R+1]=d?H:L.y,T[R+2]=I),D[P]=P):b.setItemLayout(P,{x:j,y:H,width:K,height:U}),R+=3}p&&b.setLayout({largePoints:A,largeDataIndices:D,largeBackgroundPoints:T,valueAxisHorizontal:d})}}}}}}function $C(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function qC(r){return r.pipelineContext&&r.pipelineContext.large}function x6(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var S6=function(r,e,t,n){for(;t<n;){var a=t+n>>>1;r[a][1]<e?t=a+1:n=a}return t},m0=function(r){J(e,r);function e(t){var n=r.call(this,t)||this;return n.type="time",n}return e.prototype.getLabel=function(t){var n=this.getSetting("useUTC");return bv(t.value,nA[tF(El(this._minLevelUnit))]||nA.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return eF(t,n,a,o,i)},e.prototype.getTicks=function(){var t=this._interval,n=this._extent,a=[];if(!t)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=I6(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},e.prototype.calcNiceExtent=function(t){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Wn,n[1]+=Wn),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Wn}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,n,a){t=t||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/t,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>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]();j<E&&j<=n[1];)F.push({value:j}),H+=I,W[M](H),j=W.getTime();F.push({value:j,notAdd:!0})}function l(I,P,E){var R=[],M=!P.length;if(!A6(El(I),n[0],n[1],t)){M&&(P=[{value:M6(new Date(n[0]),I,t)},{value:n[1]}]);for(var B=0;B<P.length-1;B++){var F=P[B].value,W=P[B+1].value;if(F!==W){var j=void 0,H=void 0,K=void 0,U=!1;switch(I){case"year":j=Math.max(1,Math.round(e/Wn/365)),H=pm(t),K=rF(t);break;case"half-year":case"quarter":case"month":j=C6(e),H=Pl(t),K=sA(t);break;case"week":case"half-week":case"day":j=T6(e),H=xv(t),K=lA(t),U=!0;break;case"half-day":case"quarter-day":case"hour":j=D6(e),H=Ac(t),K=uA(t);break;case"minute":j=KC(e,!0),H=Sv(t),K=cA(t);break;case"second":j=KC(e,!1),H=Av(t),K=fA(t);break;case"millisecond":j=L6(e),H=Tv(t),K=hA(t);break}s(j,F,W,H,K,U,R),I==="year"&&E.length>1&&B===0&&E.unshift({value:E[0].value-j})}}for(var B=0;B<R.length;B++)E.push(R[B]);return R}}for(var u=[],c=[],f=0,d=0,v=0;v<i.length&&o++<a;++v){var p=El(i[v]);if(JV(i[v])){l(i[v],u[u.length-1]||[],c);var y=i[v+1]?El(i[v+1]):null;if(p!==y){if(c.length){d=f,c.sort(function(I,P){return I.value-P.value});for(var _=[],g=0;g<c.length;++g){var h=c[g].value;(g===0||c[g-1].value!==h)&&(_.push(c[g]),h>=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;v<b.length;++v)for(var T=b[v],D=0;D<T.length;++D)S.push({value:T[D].value,level:A-v});S.sort(function(I,P){return I.value-P.value});for(var L=[],v=0;v<S.length;++v)(v===0||S[v].value!==S[v-1].value)&&L.push(S[v]);return L}Ya.registerClass(m0);var QC=Ya.prototype,Yc=Si.prototype,E6=qe,P6=Math.floor,k6=Math.ceil,ad=Math.pow,wa=Math.log,_0=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Si,t._interval=0,t}return e.prototype.getTicks=function(t){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=Yc.getTicks.call(this,t);return ht(o,function(s){var l=s.value,u=qe(ad(this.base,l));return u=l===a[0]&&this._fixMin?id(u,i[0]):u,u=l===a[1]&&this._fixMax?id(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,n){var a=wa(this.base);t=wa(Math.max(0,t))/a,n=wa(Math.max(0,n))/a,Yc.setExtent.call(this,t,n)},e.prototype.getExtent=function(){var t=this.base,n=QC.getExtent.call(this);n[0]=ad(t,n[0]),n[1]=ad(t,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=id(n[0],i[0])),this._fixMax&&(n[1]=id(n[1],i[1])),n},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var n=this.base;t[0]=wa(t[0])/wa(n),t[1]=wa(t[1])/wa(n),QC.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.calcNiceTicks=function(t){t=t||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=I3(a),o=t/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)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]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);i==null&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;Rt(o)?this._modelMinNum=od(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=od(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(Rt(s)?this._modelMaxNum=od(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=od(e,s)),a)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=ft(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[va(u[0],1),va(u[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?a?0:NaN:t-i[0]*o),l==null&&(l=e?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=Bo(s)||Bo(l)||e&&!a;this._needCrossZero&&(s>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;c<a;c+=u){var f=n?n[c]:{value:i[0]+c},d=s(f,c),v=o.getTextRect(d),p=F6(v,o.get("rotate")||0);l?l.union(p):l=p}return l}}function F6(r,e){var t=e*Math.PI/180,n=r.width,a=r.height,i=n*Math.abs(Math.cos(t))+Math.abs(a*Math.sin(t)),o=n*Math.abs(Math.sin(t))+Math.abs(a*Math.cos(t)),s=new Jt(r.x,r.y,i,o);return s}function b0(r){var e=r.get("interval");return e==null?"auto":e}function rD(r){return r.type==="category"&&b0(r.getLabelModel())===0}function ld(r,e){var t={};return N(r.mapDimensionsAll(e),function(n){t[VC(r,n)]=!0}),ue(t)}function G6(r,e,t){e&&N(ld(e,t),function(n){var a=e.getApproximateExtent(n);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[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)<W6}function Ms(r,e,t){var n=0,a=r[0];if(!a)return!1;for(var i=1;i<r.length;i++){var o=r[i];n+=di(a[0],a[1],o[0],o[1],e,t),a=o}var s=r[0];return(!nD(a[0],s[0])||!nD(a[1],s[1]))&&(n+=di(a[0],a[1],s[0],s[1],e,t)),n!==0}var H6=[];function x0(r,e){for(var t=0;t<r.length;t++)Mr(r[t],r[t],e)}function aD(r,e,t,n){for(var a=0;a<r.length;a++){var i=r[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Ui(e,e,i),Zi(t,t,i))}}function U6(r){for(var e=0,t=0,n=0,a=r.length,i=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],c=i*u-l*o;e+=c,t+=(i+l)*c,n+=(o+u)*c,i=l,o=u}return e?[t/e/3,n/e/3,e]:[r[0][0]||0,r[0][1]||0]}var iD=function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r}(),oD=function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r}(),sD=function(){function r(e){this.type="linestring",this.points=e}return r}(),lD=function(r){J(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,n,a=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>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<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Ms(l,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(Ms(u[c],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new Jt(t,n,a,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(x0(d.exterior,u),N(d.interiors,function(v){x0(v,u)})):N(d.points,function(v){x0(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(iD),Z6=function(r){J(e,r);function e(t,n){var a=r.call(this,t)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,n=t.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=yh(H6),o=t;o&&!o.isGeoSVGGraphicRoot;)li(i,o.getLocalTransform(),i),o=o.parent;return cl(i,i),Mr(a,a,i),a},e}(iD);function Y6(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var n=e.features;return N(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=uD(s,o,t);break;case"Polygon":S0(s,o,t);break;case"MultiLineString":S0(s,o,t);break;case"MultiPolygon":N(s,function(l,u){return S0(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function S0(r,e,t){for(var n=0;n<r.length;n++)r[n]=uD(r[n],e[n],t)}function uD(r,e,t){for(var n=[],a=e[0],i=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>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;t<r.length;t++)if(r[t].key===e)return r[t].value}function dD(r,e,t){return r.push({key:e,value:t}),t}function J6(r){var e=jc(r).autoInterval;return e!=null?e:jc(r).autoInterval=r.calculateCategoryInterval()}function t8(r){var e=e8(r),t=Kl(r),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=r.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(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:v<p}}var $c=Math.PI*2,Is=Ga.CMD,n8=["top","right","bottom","left"];function a8(r,e,t,n,a){var i=t.width,o=t.height;switch(r){case"top":n.set(t.x+i/2,t.y-e),a.set(0,-1);break;case"bottom":n.set(t.x+i/2,t.y+o+e),a.set(0,1);break;case"left":n.set(t.x-e,t.y+o/2),a.set(-1,0);break;case"right":n.set(t.x+i+e,t.y+o/2),a.set(1,0);break}}function i8(r,e,t,n,a,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*t+r,f=s*t+e;if(Math.abs(n-a)%$c<1e-4)return l[0]=c,l[1]=f,u-t;if(i){var d=n;n=bn(a),a=bn(d)}else n=bn(n),a=bn(a);n>a&&(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 h<w?(l[0]=p,l[1]=y,Math.sqrt(h)):(l[0]=_,l[1]=g,Math.sqrt(w))}function ud(r,e,t,n,a,i,o,s){var l=a-r,u=i-e,c=t-r,f=n-e,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var v=l*c+u*f,p=v/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var y=o[0]=r+p*c,_=o[1]=e+p*f;return Math.sqrt((y-a)*(y-a)+(_-i)*(_-i))}function _D(r,e,t,n,a,i,o){t<0&&(r=r+t,t=-t),n<0&&(e=e+n,n=-n);var s=r+t,l=e+n,u=o[0]=Math.min(Math.max(a,r),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var xa=[];function o8(r,e,t){var n=_D(e.x,e.y,e.width,e.height,r.x,r.y,xa);return t.set(xa[0],xa[1]),n}function s8(r,e,t){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,f=r.x,d=r.y,v=0;v<c.length;){var p=c[v++];v===1&&(n=c[v],a=c[v+1],i=n,o=a);var y=u;switch(p){case Is.M:i=c[v++],o=c[v++],n=i,a=o;break;case Is.L:y=ud(n,a,c[v],c[v+1],f,d,xa,!0),n=c[v++],a=c[v++];break;case Is.C:y=Ox(n,a,c[v++],c[v++],c[v++],c[v++],c[v],c[v+1],f,d,xa),n=c[v++],a=c[v++];break;case Is.Q:y=zx(n,a,c[v++],c[v++],c[v],c[v+1],f,d,xa),n=c[v++],a=c[v++];break;case Is.A:var _=c[v++],g=c[v++],h=c[v++],w=c[v++],b=c[v++],S=c[v++];v+=1;var A=!!(1-c[v++]);s=Math.cos(b)*h+_,l=Math.sin(b)*w+g,v<=1&&(i=s,o=l);var T=(f-_)*w/h+_;y=i8(_,g,w,b,b+S,A,T,d,xa),n=Math.cos(b+S)*h+_,a=Math.sin(b+S)*w+g;break;case Is.R:i=n=c[v++],o=a=c[v++];var D=c[v++],L=c[v++];y=_D(i,o,D,L,f,d,xa);break;case Is.Z:y=ud(n,a,i,o,f,d,xa,!0),n=i,a=o;break}y<u&&(u=y,t.set(xa[0],xa[1]))}return u}var Sa=new Qt,Ve=new Qt,tr=new Qt,ja=new Qt,$a=new Qt;function wD(r,e){if(r){var t=r.getTextGuideLine(),n=r.getTextContent();if(n&&t){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||n8,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,c=r.getComputedTransform(),f=c&&cl([],c),d=e.get("length2")||0;u&&tr.copy(u);for(var v=0;v<o.length;v++){var p=o[v];a8(p,0,s,Sa,ja),Qt.scaleAndAdd(Ve,Sa,ja,d),Ve.transform(f);var y=r.getBoundingRect(),_=u?u.distance(Ve):r instanceof oe?s8(Ve,r.path,tr):o8(Ve,y,tr);_<l&&(l=_,Ve.transform(c),tr.transform(c),tr.toArray(i[0]),Ve.toArray(i[1]),Sa.toArray(i[2]))}bD(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var cd=[],rn=new Qt;function bD(r,e){if(e<=180&&e>0){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(i<a){var o=ud(Ve.x,Ve.y,tr.x,tr.y,Sa.x,Sa.y,cd,!1);rn.fromArray(cd),rn.scaleAndAdd($a,o/Math.tan(Math.PI-e));var s=tr.x!==Ve.x?(rn.x-Ve.x)/(tr.x-Ve.x):(rn.y-Ve.y)/(tr.y-Ve.y);if(isNaN(s))return;s<0?Qt.copy(rn,Ve):s>1&&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<o){var s=ud(Ve.x,Ve.y,tr.x,tr.y,Sa.x,Sa.y,cd,!1);rn.fromArray(cd);var l=Math.PI/2,u=Math.acos($a.dot(e)),c=l+u-t;if(c>=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;c<n.length;c++)r.lineTo(n[c][0],n[c][1])}function T0(r,e,t){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<uc.length;l++){var u=uc[l],c=e[u],f=u==="normal";if(c){var d=c.get("show"),v=f?s:Ut(a.states[u]&&a.states[u].ignore,s);if(v||!Ut(d,o)){var p=f?n:n&&n.states[u];p&&(p.ignore=!0),n&&A0(n,!0,u,c);continue}n||(n=new tn,r.setTextGuideLine(n),!f&&(s||!o)&&A0(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),A0(n,!1,u,c)}}if(n){Ft(n.style,t),n.style.fill=null;var y=i.get("showAbove"),_=r.textGuideLineConfig=r.textGuideLineConfig||{};_.showAbove=y||!1,n.buildPath=u8}}function C0(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<Kr.length;n++){var a=Kr[n];t[a]=r.getModel([a,e])}return t}function xD(r){for(var e=[],t=0;t<r.length;t++){var n=r[t];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new cv(o,i):null;e.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return e}function SD(r,e,t,n,a,i){var o=r.length;if(o<2)return;r.sort(function(A,T){return A.rect[e]-T.rect[e]});for(var s=0,l,u=!1,c=0;c<o;c++){var f=r[c],d=f.rect;l=d[e]-s,l<0&&(d[e]-=l,f.label[e]-=l,u=!0),s=d[e]+d[t]}var v=r[0],p=r[o-1],y,_;g(),y<0&&b(-y,.8),_<0&&b(_,.8),g(),h(y,_,1),h(_,y,-1),g(),y<0&&S(-y),_<0&&S(_);function g(){y=v.rect[e]-n,_=a-p.rect[e]-p.rect[t]}function h(A,T,D){if(A<0){var L=Math.min(T,-A);if(L>0){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;L<D;L++){var I=r[L],P=I.rect;P[e]+=A,I.label[e]+=A}}function b(A,T){for(var D=[],L=0,I=1;I<o;I++){var P=r[I-1].rect,E=Math.max(r[I].rect[e]-P[e]-P[t],0);D.push(E),L+=E}if(L){var R=Math.min(Math.abs(A)/L,T);if(A>0)for(var I=0;I<o-1;I++){var M=D[I]*R;w(M,0,I+1)}else for(var I=o-1;I>0;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;L<o-1;L++)if(T>0?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<r.length;a++){var i=r[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;t.copy(i.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var f=i.obb,d=!1,v=0;v<e.length;v++){var p=e[v];if(t.intersect(p.rect)){if(o&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new cv(p.localRect,p.transform)),f||(f=new cv(s,l)),f.intersect(p.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function f8(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function h8(r,e){var t=r.label,n=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:f8(n&&n.shape.points)}}var CD=["align","verticalAlign","width","height","fontSize"],nn=new fi,D0=ve(),v8=ve();function fd(r,e,t){for(var n=0;n<t.length;n++){var a=t[n];e[a]!=null&&(r[a]=e[a])}}var hd=["x","y","rotation"],d8=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),c=a.getBoundingRect().plain();Jt.applyTransform(c,c,u),u?nn.setLocalTransform(u):(nn.x=nn.y=nn.rotation=nn.originX=nn.originY=0,nn.scaleX=nn.scaleY=1),nn.rotation=bn(nn.rotation);var f=a.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var v=f.getComputedTransform();Jt.applyTransform(d,d,v)}var p=d&&f.getTextGuideLine();this._labelList.push({label:a,labelLine:p,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:p&&p.ignore,x:nn.x,y:nn.y,scaleX:nn.scaleX,scaleY:nn.scaleY,rotation:nn.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(Rt(a)||ue(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Zt(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function a(w,b){return function(){wD(w,b)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Rt(o.layoutOption)?c=o.layoutOption(h8(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=At(c.x,t),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=At(c.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:c.labelLinePoints}),d=!1)}var p=D0(s);p.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var y=0;y<CD.length;y++){var _=CD[y];s.setStyle(_,c[_]!=null?c[_]:u.style[_])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var h=o.seriesModel.getData(o.dataType);g=h.getItemModel(o.dataIndex)}s.on("drag",a(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),a=xD(this._labelList),i=Ae(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ae(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});c8(i,0,t),AD(o,0,n);var s=Ae(a,function(l){return l.layoutOption.hideOverlap});TD(s)},r.prototype.processLabelsOverall=function(){var e=this;N(this._chartViewList,function(t){var n=t.__model,a=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=D0(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),a=Zt(e),i=a.dataIndex;if(n&&i!=null){var o=t.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");T0(e,C0(s),l),wD(e,f)}},r.prototype._animateLabels=function(e,t){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Cl(e))){var i=D0(n),o=i.oldLayout,s=Zt(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=t.getData(s.dataType);if(o){n.attr(o);var d=e.prevStates;d&&(te(d,"select")>=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<arguments.length;d++){var v=arguments[d];if(isNaN(v)){this._invalid=!0;return}c.push(Math.round(v*f)/f)}this._d.push(e+c.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}(),E0="none",y8=Math.round;function m8(r){var e=r.fill;return e!=null&&e!==E0}function _8(r){var e=r.stroke;return e!=null&&e!==E0}var P0=["lineCap","miterLimit","lineJoin"],w8=ht(P0,function(r){return"stroke-"+r.toLowerCase()});function b8(r,e,t,n){var a=e.opacity==null?1:e.opacity;if(t instanceof Tr){r("opacity",a);return}if(m8(e)){var i=$u(e.fill);r("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*a:i.opacity*a;o<1&&r("fill-opacity",o)}else r("fill",E0);if(_8(e)){var s=$u(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,f=e.strokeFirst;if(u!==1&&r("stroke-width",u),f&&r("paint-order",f?"stroke":"fill"),c<1&&r("stroke-opacity",c),e.lineDash){var d=Ym(t),v=d[0],p=d[1];v&&(p=y8(p||0),r("stroke-dasharray",v.join(",")),(p||n)&&r("stroke-dashoffset",p))}for(var y=0;y<P0.length;y++){var _=P0[y];if(e[_]!==Kh[_]){var g=e[_]||Kh[_];g&&r(w8[y],g)}}}}var MD="http://www.w3.org/2000/svg",ID="http://www.w3.org/1999/xlink",x8="http://www.w3.org/2000/xmlns/",S8="http://www.w3.org/XML/1998/namespace",ED="ecmeta_";function PD(r){return document.createElementNS(MD,r)}function wr(r,e,t,n,a){return{tag:r,attrs:t||{},children:n,text:a,key:e}}function A8(r,e){var t=[];if(e)for(var n in e){var a=e[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}function T8(r){return"</"+r+">"}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?"":["<![CDATA[",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;u<i;u++){var c=a[u],f=[c.getMaxTime()/1e3+"s"],d=BD(c.getClip().easing),v=c.getDelay();d?f.push(d):f.push("linear"),v&&f.push(v/1e3+"s"),c.getLoop()&&f.push("infinite");var p=f.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(c)}function y(h){var w=h[1],b=w.length,S={},A={},T={},D="animation-timing-function";function L(xt,wt,Ot){for(var bt=xt.getTracks(),Pt=xt.getMaxTime(),se=0;se<bt.length;se++){var O=bt[se];if(O.needsAnimate()){var st=O.keyframes,nt=O.propName;if(Ot&&(nt=Ot(nt)),nt)for(var X=0;X<st.length;X++){var Z=st[X],tt=Math.round(Z.time/Pt*100)+"%",pt=BD(Z.easing),vt=Z.rawValue;(Ct(vt)||ye(vt))&&(wt[tt]=wt[tt]||{},wt[tt][nt]=Z.rawValue,pt&&(wt[tt][D]=pt))}}}}for(var I=0;I<b;I++){var P=w[I],E=P.targetName;E?E==="shape"&&L(P,A):!n&&L(P,S)}for(var R in S){var M={};iS(M,r),lt(M,S[R]);var B=jx(M),F=S[R][D];T[R]=B?{transform:B}:{},M8(T[R],M),F&&(T[R][D]=F)}var W,j=!0;for(var R in A){T[R]=T[R]||{};var H=!W,F=A[R][D];H&&(W=new Ga);var K=W.len();W.reset(),T[R].d=L8(r,A[R],W);var U=W.len();if(!H&&K!==U){j=!1;break}F&&(T[R][D]=F)}if(!j)for(var R in T)delete T[R].d;if(!n)for(var I=0;I<b;I++){var P=w[I],E=P.targetName;E==="style"&&L(P,T,function(bt){return I8[bt]})}for(var $=ue(T),ut=!0,ot,I=1;I<$.length;I++){var it=$[I-1],Nt=$[I];if(T[it][Ps]!==T[Nt][Ps]){ut=!1;break}ot=T[it][Ps]}if(ut&&ot){for(var R in T)T[R][Ps]&&delete T[R][Ps];e[Ps]=ot}if(Ae($,function(xt){return ue(T[xt]).length>0}).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;i<n.length;i++)a.push(qc(n[i][0]*t)/t),a.push(qc(n[i][1]*t)/t);e.points=a.join(" ")}function HD(r){return!r.smooth}function R8(r){var e=ht(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,n,a){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(n[o[1]]=qc(s*a)/a)}}}var N8={circle:[R8(["cx","cy","r"])],polyline:[WD,HD],polygon:[WD,HD]};function O8(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function UD(r,e){var t=r.style,n=r.shape,a=N8[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&Xx(r)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&O8(r))&&!(l<1)){s=r.type;var c=Math.pow(10,u);a[0](n,i,c)}else{var f=!r.path||r.shapeChanged();r.path||r.createPathProxy();var d=r.path;f&&(d.beginPath(),r.buildPath(d,r.shape),r.pathUpdated());var v=d.getVersion(),p=r,y=p.__svgPathBuilder;(p.__svgPathVersion!==v||!y||l!==p.__svgPathStrokePercent)&&(y||(y=p.__svgPathBuilder=new LD),y.reset(u),d.rebuildPath(y,l),y.generateStr(),p.__svgPathVersion=v,p.__svgPathStrokePercent=l),i.d=y.getStr()}return B0(i,r.transform),N0(i,t,r,e),O0(i,r),e.animation&&vd(r,i,e),e.emphasis&&P8(r,i,e),wr(s,r.id+"",i)}function B8(r,e){var t=r.style,n=t.image;if(n&&!Ct(n)&&(VD(n)?n=n.src:FD(n)&&(n=n.toDataURL())),!!n){var a=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),B0(l,r.transform),N0(l,t,r,e),O0(l,r),e.animation&&vd(r,l,e),wr("image",r.id+"",l)}}function z8(r,e){var t=r.style,n=t.text;if(n!=null&&(n+=""),!(!n||isNaN(t.x)||isNaN(t.y))){var a=t.font||Gi,i=t.x||0,o=XB(t.y||0,Vh(a),t.textBaseline),s=YB[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(QS(t)){var u="",c=t.fontStyle,f=qS(t.fontSize);if(!parseFloat(f))return;var d=t.fontFamily||nx,v=t.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),B0(l,r.transform),N0(l,t,r,e),O0(l,r),e.animation&&vd(r,l,e),wr("text",r.id+"",l,void 0,n)}}function ZD(r,e){if(r instanceof oe)return UD(r,e);if(r instanceof Tr)return B8(r,e);if(r instanceof _l)return z8(r,e)}function V8(r,e,t){var n=r.style;if(jB(n)){var a=$B(r),i=t.shadowCache,o=i[a];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,f=n.shadowOffsetY||0,d=n.shadowBlur,v=$u(n.shadowColor),p=v.opacity,y=v.color,_=d/2/l,g=d/2/u,h=_+" "+g;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=wr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[wr("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:h,"flood-color":y,"flood-opacity":p})]),i[a]=o}e.filter=Eh(o)}}function YD(r,e,t,n){var a=r[t],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Ux(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(Zx(a))i="radialGradient",o.cx=Ut(a.x,.5),o.cy=Ut(a.y,.5),o.r=Ut(a.r,.5);else{process.env.NODE_ENV!=="production"&&ua("Illegal gradient type.");return}for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=Yg(s[u].offset)*100+"%",d=s[u].color,v=$u(d),p=v.color,y=v.opacity,_={offset:f};_["stop-color"]=p,y<1&&(_["stop-opacity"]=y),l.push(wr("stop",u+"",_))}var g=wr(i,"",o,l),h=k0(g),w=n.gradientCache,b=w[h];b||(b=n.zrId+"-g"+n.gradientIdx++,w[h]=b,o.id=b,n.defs[b]=wr(i,b,o,l)),e[t]=Eh(b)}function XD(r,e,t,n){var a=r.style[t],i=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(Hx(a)){var d=a.imageWidth,v=a.imageHeight,p=void 0,y=a.image;if(Ct(y)?p=y:VD(y)?p=y.src:FD(y)&&(p=y.toDataURL()),typeof Image=="undefined"){var _="Image width/height must been given explictly in svg-ssr renderer.";Vt(d,_),Vt(v,_)}else if(d==null||v==null){var g=function(I,P){if(I){var E=I.elm,R=d||P.width,M=v||P.height;I.tag==="pattern"&&(u?(M=1,R/=i.width):c&&(R=1,M/=i.height)),I.attrs.width=R,I.attrs.height=M,E&&(E.setAttribute("width",R),E.setAttribute("height",M))}},h=Sy(p,null,r,function(I){l||g(A,I),g(f,I)});h&&h.width&&h.height&&(d=d||h.width,v=v||h.height)}f=wr("image","img",{href:p,width:d,height:v}),o.width=d,o.height=v}else a.svgElement&&(f=Wt(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var w,b;l?w=b=1:u?(b=1,w=o.width/i.width):c?(w=1,b=o.height/i.height):o.patternUnits="userSpaceOnUse",w!=null&&!isNaN(w)&&(o.width=w),b!=null&&!isNaN(b)&&(o.height=b);var S=jx(a);S&&(o.patternTransform=S);var A=wr("pattern","",o,[f]),T=k0(A),D=n.patternCache,L=D[T];L||(L=n.zrId+"-p"+n.patternIdx++,D[T]=L,o.id=L,A=n.defs[L]=wr("pattern",L,o,[f])),e[t]=Eh(L)}}function F8(r,e,t){var n=t.clipPathCache,a=t.defs,i=n[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=wr("clipPath",i,o,[UD(r,t)])}e["clip-path"]=Eh(i)}function jD(r){return document.createTextNode(r)}function ks(r,e,t){r.insertBefore(e,t)}function $D(r,e){r.removeChild(e)}function qD(r,e){r.appendChild(e)}function KD(r){return r.parentNode}function QD(r){return r.nextSibling}function z0(r,e){r.textContent=e}var JD=58,G8=120,W8=wr("","");function V0(r){return r===void 0}function qa(r){return r!==void 0}function H8(r,e,t){for(var n={},a=e;a<=t;++a){var i=r[a].key;i!==void 0&&(process.env.NODE_ENV!=="production"&&n[i]!=null&&console.error("Duplicate key "+i),n[i]=a)}return n}function Kc(r,e){var t=r.key===e.key,n=r.tag===e.tag;return n&&t}function Qc(r){var e,t=r.children,n=r.tag;if(qa(n)){var a=r.elm=PD(n);if(F0(W8,r),ft(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&qD(a,Qc(i))}else qa(r.text)&&!zt(r.text)&&qD(a,jD(r.text))}else r.elm=jD(r.text);return r.elm}function tL(r,e,t,n,a){for(;n<=a;++n){var i=t[n];i!=null&&ks(r,Qc(i),e)}}function dd(r,e,t,n){for(;t<=n;++t){var a=e[t];if(a!=null)if(qa(a.tag)){var i=KD(a.elm);$D(i,a.elm)}else $D(r,a.elm)}}function F0(r,e){var t,n=e.elm,a=r&&r.attrs||{},i=e.attrs||{};if(a!==i){for(t in i){var o=i[t],s=a[t];s!==o&&(o===!0?n.setAttribute(t,""):o===!1?n.removeAttribute(t):t==="style"?n.style.cssText=o:t.charCodeAt(0)!==G8?n.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?n.setAttributeNS(x8,t,o):t.charCodeAt(3)===JD?n.setAttributeNS(S8,t,o):t.charCodeAt(5)===JD?n.setAttributeNS(ID,t,o):n.setAttribute(t,o))}for(t in a)t in i||n.removeAttribute(t)}}function U8(r,e,t){for(var n=0,a=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],c=t[l],f,d,v,p;n<=i&&a<=l;)o==null?o=e[++n]:s==null?s=e[--i]:u==null?u=t[++a]:c==null?c=t[--l]:Kc(o,u)?(Ql(o,u),o=e[++n],u=t[++a]):Kc(s,c)?(Ql(s,c),s=e[--i],c=t[--l]):Kc(o,c)?(Ql(o,c),ks(r,o.elm,QD(s.elm)),o=e[++n],c=t[--l]):Kc(s,u)?(Ql(s,u),ks(r,s.elm,o.elm),s=e[--i],u=t[++a]):(V0(f)&&(f=H8(e,n,i)),d=f[u.key],V0(d)?ks(r,Qc(u),o.elm):(v=e[d],v.tag!==u.tag?ks(r,Qc(u),o.elm):(Ql(v,u),e[d]=void 0,ks(r,v.elm,o.elm))),u=t[++a]);(n<=i||a<=l)&&(n>i?(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<a;c++){var f=e[c];if(!f.invisible){var d=f.__clipPaths,v=d&&d.length||0,p=l&&l.length||0,y=void 0;for(y=Math.max(v-1,p-1);y>=0&&!(d&&l&&d[y]===l[y]);y--);for(var _=p-1;_>y;_--)o--,s=i[o-1];for(var g=y+1;g<v;g++){var h={};F8(d[g],h,t);var w=wr("g","clip-g-"+u++,h,[]);(s?s.children:n).push(w),i[o++]=w,s=w}l=d;var b=ZD(f,t);b&&(s?s.children:n).push(b)}}},r.prototype.resize=function(e,t){var n=this._opts,a=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),a&&i&&(i.style.display="none",e=Zl(a,0,n),t=Zl(a,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(Xg(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=KB(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},r}();function eL(r){return function(){process.env.NODE_ENV!=="production"&&ua('In SVG mode painter not support method "'+r+'"')}}function j8(r,e,t,n){var a;if(t&&t!=="none")if(a=wr("rect","bg",{width:r,height:e,x:"0",y:"0"}),Yx(t))YD({fill:t},a.attrs,"fill",n);else if(Xg(t))XD({style:{fill:t},dirty:Je,getBoundingRect:function(){return{width:r,height:e}}},a.attrs,"fill",n);else{var i=$u(t),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function $8(r){r.registerPainter("svg",X8)}function rL(r,e,t){var n=Wi.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*t,n.height=i*t,n}var G0=function(r){J(e,r);function e(t,n,a){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||zh,typeof t=="string"?o=rL(t,n,a):zt(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(hx(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=rL("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Jt(0,0,0,0);function c(h){if(!(!h.isFinite()||h.isZero()))if(o.length===0){var w=new Jt(0,0,0,0);w.copy(h),o.push(w)}else{for(var b=!1,S=1/0,A=0,T=0;T<o.length;++T){var D=o[T];if(D.intersect(h)){var L=new Jt(0,0,0,0);L.copy(D),L.union(h),o[T]=L,b=!0;break}else if(l){u.copy(h),u.union(D);var I=h.width*h.height,P=D.width*D.height,E=u.width*u.height,R=E-I-P;R<S&&(S=R,A=T)}}if(l&&(o[A].union(h),b=!0),!b){var w=new Jt(0,0,0,0);w.copy(h),o.push(w)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=t[f];if(d){var v=d.shouldBePainted(a,i,!0,!0),p=d.__isRendered&&(d.__dirty&Pa||!v)?d.getPrevPaintRect():null;p&&c(p);var y=v&&(d.__dirty&Pa||!d.__isRendered)?d.getPaintRect():null;y&&c(y)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],v=d&&d.shouldBePainted(a,i,!0,!0);if(d&&(!v||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var _;do{_=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var g=f+1;g<o.length;)o[f].intersect(o[g])?(_=!0,o[f].union(o[g]),o.splice(g,1)):g++;f++}}while(_);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=n+"px"),i.width=t*a,i.height=n*a,s&&(s.width=t*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(t,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!t,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var v=this.domBack;function p(y,_,g,h){if(o.clearRect(y,_,g,h),n&&n!=="transparent"){var w=void 0;if(fh(n)){var b=n.global||n.__width===g&&n.__height===h;w=b&&n.__canvasGradient||Zm(o,n,{x:0,y:0,width:g,height:h}),n.__canvasGradient=w,n.__width=g,n.__height=h}else iB(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,w=Xm(o,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=w||n,o.fillRect(y,_,g,h),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(v,y,_,g,h),o.restore())}!a||u?p(0,0,s,l):a.length&&N(a,function(y){p(y.x*f,y.y*f,y.width*f,y.height*f)})},e}(Rn),nL=1e5,Rs=314159,pd=.01,q8=.001;function K8(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function Q8(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var J8=function(){function r(e,t,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=lt({},n||{}),this.dpr=n.devicePixelRatio||zh,this._singleCanvas=i,this.root=e;var o=e.style;o&&(hx(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=e,f=c.width,d=c.height;n.width!=null&&(f=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var v=new G0(c,this,this.dpr);v.__builtin__=!0,v.initContext(),l[Rs]=v,v.zlevel=Rs,s.push(Rs),this._domRoot=e}else{this._width=Zl(e,0,n),this._height=Zl(e,1,n);var u=this._domRoot=Q8(this._width,this._height);e.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),!!t){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<t;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(nL)),i||(i=n.ctx,i.save()),Cs(i,s,a,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(nL)},r.prototype.paintOne=function(e,t){tC(e,t)},r.prototype._paintList=function(e,t,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;xh(function(){l._paintList(e,t,n,a)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(Rs).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,t,n)})},r.prototype._doPaintList=function(e,t,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var c=!0,f=!1,d=function(y){var _=i[y],g=_.ctx,h=o&&_.createRepaintRects(e,t,v._width,v._height),w=n?_.__startIndex:_.__drawIndex,b=!n&&_.incremental&&Date.now,S=b&&Date.now(),A=_.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(_.__startIndex===_.__endIndex)_.clear(!1,A,h);else if(w===_.__startIndex){var T=e[w];(!T.incremental||!T.notClear||n)&&_.clear(!1,A,h)}w===-1&&(console.error("For some unknown reason. drawIndex is -1"),w=_.__startIndex);var D,L=function(R){var M={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(D=w;D<_.__endIndex;D++){var B=e[D];if(B.__inHover&&(f=!0),a._doPaintEl(B,_,o,R,M,D===_.__endIndex-1),b){var F=Date.now()-S;if(F>15)break}}M.prevElClipPaths&&g.restore()};if(h)if(h.length===0)D=_.__endIndex;else for(var I=v.dpr,P=0;P<h.length;++P){var E=h[P];g.save(),g.beginPath(),g.rect(E.x*I,E.y*I,E.width*I,E.height*I),g.clip(),L(E),g.restore()}else g.save(),L(),g.restore();_.__drawIndex=D,_.__drawIndex<_.__endIndex&&(c=!1)},v=this,p=0;p<i.length;p++)d(p);return ie.wxa&&N(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),{finished:c,needsRefreshHover:f}},r.prototype._doPaintEl=function(e,t,n,a,i,o){var s=t.ctx;if(n){var l=e.getPaintRect();(!a||l&&l.intersect(a))&&(Cs(s,e,i,o),e.setPrevPaintRect(l))}else Cs(s,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Rs);var n=this._layers[e];return n||(n=new G0("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?qt(n,this._layerConfig[e],!0):this._layerConfig[e-pd]&&qt(n,this._layerConfig[e-pd],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},r.prototype.insertLayer=function(e,t){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(n[e]){process.env.NODE_ENV!=="production"&&ua("ZLevel "+e+" has been used already");return}if(!K8(t)){process.env.NODE_ENV!=="production"&&ua("Layer of zlevel "+e+" is not valid");return}if(i>0&&e>a[0]){for(l=0;l<i-1&&!(a[l]<e&&a[l+1]>e);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;a<n.length;a++){var i=n[a];e.call(t,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},r.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function t(f){i&&(i.__endIndex!==f&&(i.__dirty=!0),i.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var a=e[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+q8,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?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<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+pd){var o=this._layers[i];qt(o,n[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,a=t[e];a&&(a.dom.parentNode.removeChild(a.dom),delete t[e],n.splice(te(n,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),t!=null&&(a.height=t),e=Zl(i,0,a),t=Zl(i,1,a),n.style.display="",this._width!==e||t!==this._height){n.style.width=e+"px",n.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(Rs).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Rs].dom;var t=new G0("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=t.dom.width,i=t.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,a,i):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Cs(n,c,o,l===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function tW(r){r.registerPainter("canvas",J8)}var eW=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){if(process.env.NODE_ENV!=="production"){var n=t.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return xi(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new Ht,a=sr("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(a),a.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=sr(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);n.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-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<t.length;o++)i.push(zl(r,e,t[o]));return i.join(" ")}}function aL(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!ft(e))return e+"";for(var n=[],a=0;a<t.length;a++){var i=r.getDimensionIndex(t[a]);i>=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;i<e.end;i++){var o=t.getItemLayout(i);if(W0(t,o,i,n)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){no(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},n.hostModel)}):t.removeAll()},r}();function sL(r,e,t){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=nW(a,t),o=n.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=ht(r.dimensions,function(p){return e.mapDimension(p)}),d=!1,v=e.getCalculationInfo("stackResultDimension");return fo(e,f[0])&&(d=!0,f[0]=v),fo(e,f[1])&&(d=!0,f[1]=v),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function nW(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:ye(e)&&!isNaN(e)?t=e:n[0]>0?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<l.length;w++){var b=l[w],S=!0,A=void 0,T=void 0;switch(b.cmd){case"=":A=b.idx*2,T=b.idx1*2;var D=g[A],L=g[A+1],I=h[T],P=h[T+1];(isNaN(D)||isNaN(L))&&(D=I,L=P),u.push(D,L),c.push(I,P),f.push(t[A],t[A+1]),d.push(n[T],n[T+1]),y.push(e.getRawIndex(b.idx1));break;case"+":var E=b.idx,R=_.dataDimsForPoint,M=a.dataToPoint([e.get(R[0],E),e.get(R[1],E)]);T=E*2,u.push(M[0],M[1]),c.push(h[T],h[T+1]);var B=lL(_,a,e,E);f.push(B[0],B[1]),d.push(n[T],n[T+1]),y.push(e.getRawIndex(E));break;case"-":S=!1}S&&(v.push(b),p.push(p.length))}p.sort(function(it,Nt){return y[it]-y[Nt]});for(var F=u.length,W=Xa(F),j=Xa(F),H=Xa(F),K=Xa(F),U=[],w=0;w<p.length;w++){var $=p[w],ut=w*2,ot=$*2;W[ut]=u[ot],W[ut+1]=u[ot+1],j[ut]=c[ot],j[ut+1]=c[ot+1],H[ut]=f[ot],H[ut+1]=f[ot+1],K[ut]=d[ot],K[ut+1]=d[ot+1],U[w]=v[$]}return{current:W,next:j,stackedOnCurrent:H,stackedOnNext:K,status:U}}var ho=Math.min,vo=Math.max;function Ns(r,e){return isNaN(r)||isNaN(e)}function H0(r,e,t,n,a,i,o,s,l){for(var u,c,f,d,v,p,y=t,_=0;_<n;_++){var g=e[y*2],h=e[y*2+1];if(y>=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;)_++,S+=i,y+=i,A=e[S*2],T=e[S*2+1],g=e[y*2],h=e[y*2+1],w=g-u,b=h-c;var D=_+1;if(l)for(;Ns(A,T)&&D<n;)D++,S+=i,A=e[S*2],T=e[S*2+1];var L=.5,I=0,P=0,E=void 0,R=void 0;if(D>=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<o&&Ns(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=H0(t,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Ga.CMD,s,l,u=n==="x",c=[],f=0;f<i.length;){var d=i[f++],v=void 0,p=void 0,y=void 0,_=void 0,g=void 0,h=void 0,w=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(v=i[f++],p=i[f++],w=u?(t-s)/(v-s):(t-l)/(p-l),w<=1&&w>=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<S;A++){var T=c[A];if(T<=1&&T>=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(;o<s&&Ns(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=H0(t,a,o,s,s,1,n.smooth,l,n.connectNulls);H0(t,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,t.closePath()}},e}(oe);function fL(r,e,t,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=t.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new de({shape:{x:o,y:s,width:l,height:u}});if(e){var d=r.getBaseAxis(),v=d.isHorizontal(),p=d.inverse;v?(p&&(f.shape.x+=l),f.shape.width=0):(p||(f.shape.y+=u),f.shape.height=0);var y=Rt(a)?function(_){a(_,f)}:null;We(f,{shape:{width:l,height:u,x:o,y:s}},t,null,n,y)}return f}function hL(r,e,t){var n=r.getArea(),a=qe(n.r0,1),i=qe(n.r,1),o=new Qr({shape:{cx:qe(r.cx,1),cy:qe(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,We(o,{shape:{endAngle:n.endAngle,r:i}},t)}return o}function ef(r,e,t,n,a){if(r){if(r.type==="polar")return hL(r,e,t);if(r.type==="cartesian2d")return fL(r,e,t,n,a)}else return null;return null}function Os(r,e){return r.type===e}function vL(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function dL(r){for(var e=1/0,t=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(t=Math.min(s,t),a=Math.max(s,a))}return[[e,t],[n,a]]}function pL(r,e){var t=dL(r),n=t[0],a=t[1],i=dL(e),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function gL(r){return ye(r)?r:r?.5:0}function lW(r,e,t){if(!t.valueDim)return[];for(var n=e.count(),a=Xa(n*2),i=0;i<n;i++){var o=lL(t,r,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function po(r,e,t,n,a){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],d=[];if(a){for(l=0;l<r.length;l+=2){var v=e||r;!isNaN(v[l])&&!isNaN(v[l+1])&&d.push(r[l],r[l+1])}r=d}for(l=0;l<r.length-2;l+=2)switch(f[0]=r[l+2],f[1]=r[l+3],c[0]=r[l],c[1]=r[l+1],s.push(c[0],c[1]),n){case"end":u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var p=(c[o]+f[o])/2,y=[];u[o]=y[o]=p,u[1-o]=c[1-o],y[1-o]=f[1-o],s.push(u[0],u[1]),s.push(y[0],y[1]);break;default:u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function uW(r,e){var t=[],n=r.length,a,i;function o(c,f,d){var v=c.coord,p=(d-v)/(f.coord-v),y=HB(p,[c.color,f.color]);return{coord:d,color:y}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>e){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;o<a;o+=i)if(Jc.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)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<n;u++)if(o=r[u*2+a],!(isNaN(o)||isNaN(r[u*2+1-a]))){if(u===0){i=o;continue}if(i<=e&&o>=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;e<Kr.length;e++)if(r.get([Kr[e],"endLabel","show"]))return!0;return!1}function U0(r,e,t,n){if(Os(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=mL(n)?function(v,p){r._endLabelOnDuring(v,p,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),c=fL(e,t,n,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),hL(e,t,n)}function gW(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),a=t.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var yW=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Ht,n=new tf;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=Lt(this._changePolyState,this)},e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=s.getLayout("points")||[],f=i.type==="polar",d=this._coordSys,v=this._symbolDraw,p=this._polyline,y=this._polygon,_=this._lineGroup,g=!n.ssr&&t.get("animation"),h=!u.isEmpty(),w=u.get("origin"),b=sL(i,s,w),S=h&&lW(i,s,b),A=t.get("showSymbol"),T=t.get("connectNulls"),D=A&&!f&&fW(t,s,i),L=this._data;L&&L.eachItemGraphicEl(function(it,Nt){it.__temp&&(o.remove(it),L.setItemGraphicEl(Nt,null))}),A||v.remove(),o.add(_);var I=f?!1:t.get("step"),P;i&&i.getArea&&t.get("clip",!0)&&(P=i.getArea(),P.width!=null?(P.x-=.1,P.y-=.1,P.width+=.2,P.height+=.2):P.r0&&(P.r0-=.5,P.r+=.5)),this._clipShapeForSymbol=P;var E=cW(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&d.type===i.type&&I===this._step))A&&v.updateData(s,{isIgnore:D,clipShape:P,disableAnimation:!0,getSymbolPoint:function(it){return[c[it*2],c[it*2+1]]}}),g&&this._initSymbolLabelAnimation(s,i,P),I&&(S&&(S=po(S,c,i,I,T)),c=po(c,null,i,I,T)),p=this._newPolyline(c),h?y=this._newPolygon(c,S):y&&(_.remove(y),y=this._polygon=null),f||this._initOrUpdateEndLabel(t,i,ys(E)),_.setClipPath(U0(this,i,!0,t));else{h&&!y?y=this._newPolygon(c,S):y&&!h&&(_.remove(y),y=this._polygon=null),f||this._initOrUpdateEndLabel(t,i,ys(E));var R=_.getClipPath();if(R){var M=U0(this,i,!1,t);We(R,{shape:M.shape},t)}else _.setClipPath(U0(this,i,!0,t));A&&v.updateData(s,{isIgnore:D,clipShape:P,disableAnimation:!0,getSymbolPoint:function(it){return[c[it*2],c[it*2+1]]}}),(!vL(this._stackedOnPoints,S)||!vL(this._points,c))&&(g?this._doUpdateAnimation(s,S,i,a,I,w,T):(I&&(S&&(S=po(S,c,i,I,T)),c=po(c,null,i,I,T)),p.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:S})))}var B=t.getModel("emphasis"),F=B.get("focus"),W=B.get("blurScope"),j=B.get("disabled");if(p.useStyle(Ft(l.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),Er(p,t,"lineStyle"),p.style.lineWidth>0&&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;b<w.length;b++){var S=w[b].cmd;if(S==="="){var A=t.getItemGraphicEl(w[b].idx1);A&&h.push({el:A,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,D=0;D<h.length;D++){var L=h[D].el,I=h[D].ptIdx*2;L.x=T[I],L.y=T[I+1],L.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(ke);function rf(r,e){return{seriesType:r,plan:Gl(),reset:function(t){var n=t.getData(),a=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(a){var s=ht(a.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");fo(n,s[0])&&(s[0]=u),fo(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(v,p){for(var y=v.end-v.start,_=o&&Xa(y*l),g=[],h=[],w=v.start,b=0;w<v.end;w++){var S=void 0;if(l===1){var A=c.get(f,w);S=a.dataToPoint(A,null,h)}else g[0]=c.get(f,w),g[1]=c.get(d,w),S=a.dataToPoint(g,null,h);o?(_[b++]=S[0],_[b++]=S[1]):p.setItemLayout(w,S.slice())}o&&p.setLayout("points",_)}}}}}}var mW={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},_W=function(r){return Math.round(r.length/2)};function _L(r){return{seriesType:r,reset:function(e,t,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&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<p.length;S++){var A=p[S].coord,T=S===p.length-1?p[S-1].tickValue+b:p[S].tickValue;if(T===_){w=A;break}else if(T<_)h=A;else if(h!=null&&T>_){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-c<v:c-f<v;p||(c=f-(d?v:-v));var y=Math.cos(c),_=Math.sin(c),g=Math.cos(f),h=Math.sin(f);p?(t.moveTo(y*o+a,_*o+i),t.arc(y*u+a,_*u+i,l,-Math.PI+c,c,!d)):t.moveTo(y*s+a,_*s+i),t.arc(a,i,s,c,f,!d),t.arc(g*u+a,h*u+i,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&t.arc(a,i,o,f,c,d)},e}(oe);function SW(r,e){e=e||{};var t=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return Fh(n,a,i);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,v=u.r0,p=(d+v)/2,y=u.startAngle,_=u.endAngle,g=(y+_)/2,h=t?Math.abs(d-v)/2:0,w=Math.cos,b=Math.sin,S=c+d*w(y),A=f+d*b(y),T="left",D="top";switch(s){case"startArc":S=c+(v-l)*w(g),A=f+(v-l)*b(g),T="center",D="top";break;case"insideStartArc":S=c+(v+l)*w(g),A=f+(v+l)*b(g),T="center",D="bottom";break;case"startAngle":S=c+p*w(y)+yd(y,l+h,!1),A=f+p*b(y)+md(y,l+h,!1),T="right",D="middle";break;case"insideStartAngle":S=c+p*w(y)+yd(y,-l+h,!1),A=f+p*b(y)+md(y,-l+h,!1),T="left",D="middle";break;case"middle":S=c+p*w(g),A=f+p*b(g),T="center",D="middle";break;case"endArc":S=c+(d+l)*w(g),A=f+(d+l)*b(g),T="center",D="bottom";break;case"insideEndArc":S=c+(d-l)*w(g),A=f+(d-l)*b(g),T="center",D="top";break;case"endAngle":S=c+p*w(_)+yd(_,l+h,!0),A=f+p*b(_)+md(_,l+h,!0),T="left",D="middle";break;case"insideEndAngle":S=c+p*w(_)+yd(_,-l+h,!0),A=f+p*b(_)+md(_,-l+h,!0),T="right",D="middle";break;default:return Fh(n,a,i)}return n=n||{},n.x=S,n.y=A,n.align=T,n.verticalAlign=D,n}}function AW(r,e,t,n){if(ye(n)){r.setTextConfig({rotation:n});return}else if(ft(e)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function yd(r,e,t){return e*Math.sin(r)*(t?-1:1)}function md(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Bs(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;ft(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ht(n,function(i){return va(i,a)})}}var Z0=Math.max,Y0=Math.min;function TW(r,e){var t=r.getArea&&r.getArea();if(Os(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(t.x-=a,t.width+=a*2):(t.y-=a,t.height+=a*2)}}return t}var CW=function(r){J(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,a,i){this._model=t,this._removeOnRenderedListener(a),this._updateDrawMode(t);var o=t.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,a):this._renderNormal(t,n,a,i)):process.env.NODE_ENV!=="production"&&Ye("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(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,n,a,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=t.isAnimationEnabled()?t:null,v=DW(t,u);v&&this._enableRealtimeSort(v,s,a);var p=t.get("clip",!0)||v,y=TW(u,s);o.removeClipPath();var _=t.get("roundCap",!0),g=t.get("showBackground",!0),h=t.getModel("backgroundStyle"),w=h.get("borderRadius")||0,b=[],S=this._backgroundEls,A=i&&i.isInitSort,T=i&&i.type==="changeAxisOrder";function D(P){var E=_d[u.type](s,P),R=RW(u,f,E);return R.useStyle(h.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",w):R.setShape("cornerRadius",w),b[P]=R,R}s.diff(l).add(function(P){var E=s.getItemModel(P),R=_d[u.type](s,P,E);if(g&&D(P),!(!s.hasValue(P)||!AL[u.type](R))){var M=!1;p&&(M=wL[u.type](y,R));var B=bL[u.type](t,s,P,R,f,d,c.model,!1,_);v&&(B.forceLabelAnimation=!0),CL(B,s,P,E,R,t,f,u.type==="polar"),A?B.attr({shape:R}):v?xL(v,d,B,R,P,f,!1,!1):We(B,{shape:R},t,P),s.setItemGraphicEl(P,B),o.add(B),B.ignore=M}}).update(function(P,E){var R=s.getItemModel(P),M=_d[u.type](s,P,R);if(g){var B=void 0;S.length===0?B=D(E):(B=S[E],B.useStyle(h.getItemStyle()),u.type==="cartesian2d"?B.setShape("r",w):B.setShape("cornerRadius",w),b[P]=B);var F=_d[u.type](s,P),W=IL(f,F,u);_e(B,{shape:W},d,P)}var j=l.getItemGraphicEl(E);if(!s.hasValue(P)||!AL[u.type](M)){o.remove(j);return}var H=!1;if(p&&(H=wL[u.type](y,M),H&&o.remove(j)),j?ga(j):j=bL[u.type](t,s,P,M,f,d,c.model,!!j,_),v&&(j.forceLabelAnimation=!0),T){var K=j.getTextContent();if(K){var U=Ll(K);U.prevValue!=null&&(U.prevValue=U.value)}}else CL(j,s,P,R,M,t,f,u.type==="polar");A?j.attr({shape:M}):v?xL(v,d,j,M,P,f,!0,T):_e(j,{shape:M},t,P,null),s.setItemGraphicEl(P,j),j.ignore=H,o.add(j)}).remove(function(P){var E=l.getItemGraphicEl(P);E&&mc(E,t,P)}).execute();var L=this._backgroundGroup||(this._backgroundGroup=new Ht);L.removeAll();for(var I=0;I<b.length;++I)L.add(b[I]);o.add(L),this._backgroundEls=b,this._data=s},e.prototype._renderLarge=function(t,n,a){this._clear(),LL(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),LL(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&ef(t.coordinateSystem,!1,t),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,a){var i=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,a){var i=[];return t.each(t.mapDimension(n.dim),function(o,s){var l=a(s);l=l==null?NaN:l,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:ht(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,a){for(var i=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(t.indexOfRawIndex(c));if(f>s)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=s<o,f=u<l;return e.x=c&&o>a?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;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var LW=["x","y","width","height"],MW=["cx","cy","r","startAngle","endAngle"],AL={cartesian2d:function(r){return!SL(r,LW)},polar:function(r){return!SL(r,MW)}},_d={cartesian2d:function(r,e,t){var n=r.getItemLayout(e),a=t?EW(t,n):0,i=n.width>0?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<a.length;c+=3)l[i]=u,l[o]=a[c+2],s[i]=a[c+i],s[o]=a[c+o],t.rect(s[0],s[1],l[0],l[1])},e}(oe);function LL(r,e,t,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new DL({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var f=new DL({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,e.add(f),f.useStyle(a.getVisual("style")),f.style.stroke=null,Zt(f).seriesIndex=r.seriesIndex,r.get("silent")||(f.on("mousedown",ML),f.on("mousemove",ML)),t&&t.push(f)}var ML=Wm(function(r){var e=this,t=kW(e,r.offsetX,r.offsetY);Zt(e).dataIndex=t>=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<f;c++){var d=c*3;if(l[n]=u,l[a]=i[d+2],s[n]=i[d+n],s[a]=i[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=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}),R<EL&&g)if(R<=.001){var F=E/g;a.each(i,function(W,j){if(!isNaN(W)){var H=a.getItemLayout(j);H.angle=F;var K=0,U=0;F<p?(K=d+D*(j+1/2)*F,U=K):(K=d+D*j*F+I,U=d+D*(j+1)*F-I),H.startAngle=K,H.endAngle=U}})}else w=R/M,B=d,a.each(i,function(W,j){if(!isNaN(W)){var H=a.getItemLayout(j),K=H.angle===_?_:W*w,U=0,$=0;K<p?(U=B+D*K/2,$=U):(U=B+I,$=B+D*K-I),H.startAngle=U,H.endAngle=$,B+=D*K}})})}var RL=ve();function af(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var BW=Math.PI/180;function NL(r,e,t,n,a,i,o,s,l,u){if(r.length<2)return;function c(y){for(var _=y.rB,g=_*_,h=0;h<y.list.length;h++){var w=y.list[h],b=Math.abs(w.label.y-t),S=n+w.len,A=S*S,T=Math.sqrt(Math.abs((1-b*b/g)*A)),D=e+(T+w.len2)*a,L=D-w.label.x,I=w.targetTextWidth-L*a;OL(w,I,!0),w.label.x=D}}function f(y){for(var _={list:[],maxY:0},g={list:[],maxY:0},h=0;h<y.length;h++)if(y[h].labelAlignTo==="none"){var w=y[h],b=w.label.y>t?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)<T?Math.sqrt(S*S/(1-A*A/T/T)):T;b.rB=D,b.maxY=S}b.list.push(w)}c(_),c(g)}for(var d=r.length,v=0;v<d;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var p=r[v].label.x-u;r[v].linePoints[1][0]+=p,r[v].label.x=u}AD(r,l,l+o)&&f(r)}function zW(r,e,t,n,a,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<r.length;d++){var v=r[d].label;X0(r[d])||(v.x<e?(c=Math.min(c,v.x),l.push(r[d])):(f=Math.max(f,v.x),u.push(r[d])))}for(var d=0;d<r.length;d++){var p=r[d];if(!X0(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var v=p.label,y=p.linePoints,_=void 0;p.labelAlignTo==="edge"?v.x<e?_=y[2][0]-p.labelDistance-o-p.edgeDistance:_=o+a-p.edgeDistance-y[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?v.x<e?_=c-o-p.bleedMargin:_=o+a-f-p.bleedMargin:v.x<e?_=v.x-o-p.bleedMargin:_=o+a-v.x-p.bleedMargin,p.targetTextWidth=_,OL(p,_)}}NL(u,e,t,n,1,a,i,o,s,f),NL(l,e,t,n,-1,a,i,o,s,c);for(var d=0;d<r.length;d++){var p=r[d];if(!X0(p)&&p.linePoints){var v=p.label,y=p.linePoints,g=p.labelAlignTo==="edge",h=v.style.padding,w=h?h[1]+h[3]:0,b=v.style.backgroundColor?0:w,S=p.rect.width+b,A=y[1][0]-y[2][0];g?v.x<e?y[2][0]=o+p.edgeDistance+S+p.labelDistance:y[2][0]=o+a-p.edgeDistance-S-p.labelDistance:(v.x<e?y[2][0]=v.x+p.labelDistance:y[2][0]=v.x-p.labelDistance,y[1][0]=y[2][0]+A),y[1][1]=y[2][1]=v.y}}}function OL(r,e,t){if(t===void 0&&(t=!1),r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(e<c||t){var f=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var v=e-l,p=e<c?v:t?v>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)<o){N(L.states,v),L.ignore=!0,I&&(N(I.states,v),I.ignore=!0);return}if(p(L)){var U=(D.startAngle+D.endAngle)/2,$=Math.cos(U),ut=Math.sin(U),ot,it,Nt,Kt;n=D.cx,a=D.cy;var xt=R==="inside"||R==="inner";if(R==="center")ot=D.cx,it=D.cy,Kt="center";else{var wt=(xt?(D.r+D.r0)/2*$:D.r*$)+n,Ot=(xt?(D.r+D.r0)/2*ut:D.r*ut)+a;if(ot=wt+$*3,it=Ot+ut*3,!xt){var bt=wt+$*(H+l-D.r),Pt=Ot+ut*(H+l-D.r),se=bt+($<0?-1:1)*K,O=Pt;B==="edge"?ot=$<0?c+F:c+u-F:ot=se+($<0?-M:M),it=O,Nt=[[wt,Ot],[bt,Pt],[se,O]]}Kt=xt?"center":B==="edge"?$>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;y<t.length;y++){var _=t[y],g=_.label,h=_.labelLine,w=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:_.textAlign}),w&&(N(g.states,v),g.ignore=!0);var b=g.states.select;b&&(b.x+=g.x,b.y+=g.y)}if(h){var S=_.linePoints;w||!S?(N(h.states,v),h.ignore=!0):(bD(S,_.minTurnAngle),l8(S,_.surfaceNormal,_.maxSurfaceAngle),h.setShape({points:S}),g.__hostTarget.textGuideLineConfig={anchor:new Qt(S[0][0],S[0][1])})}}}var FW=function(r){J(e,r);function e(t,n,a){var i=r.call(this)||this;i.z2=2;var o=new pe;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.hostModel,l=t.getItemModel(n),u=l.getModel("emphasis"),c=t.getItemLayout(n),f=lt(Bs(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(We(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,We(o,{shape:{r:c.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),We(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,_e(o,{shape:{endAngle:c.endAngle}},s,n))}else ga(o),_e(o,{shape:f},s,n);o.useStyle(t.getItemVisual(n,"style")),Er(o,l);var v=(c.startAngle+c.endAngle)/2,p=s.get("selectedOffset"),y=Math.cos(v)*p,_=Math.sin(v)*p,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,t,n),o.ensureState("emphasis").shape=lt({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Bs(u.getModel("itemStyle"),c)),lt(o.ensureState("select"),{x:y,y:_,shape:Bs(l.getModel(["select","itemStyle"]),c)}),lt(o.ensureState("blur"),{shape:Bs(l.getModel(["blur","itemStyle"]),c)});var h=o.getTextGuideLine(),w=o.getTextContent();h&<(h.ensureState("select"),{x:y,y:_}),lt(w.ensureState("select"),{x:y,y:_}),Xe(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;Pr(i,mr(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:t.getFormattedLabel(a,"normal")||n.getName(a)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=t.get(["label","position"]);if(d!=="outside"&&d!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new tn,this.setTextGuideLine(v)),T0(this,C0(o),{stroke:u,opacity:kn(s.get(["lineStyle","opacity"]),c,1)})}},e}(Qr),GW=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var d=RL(t),v=new Qr({shape:lt(kL(t,a),d)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(p){var y=new FW(o,p,u);o.setItemGraphicEl(p,y),l.add(y)}).update(function(p,y){var _=s.getItemGraphicEl(y);_.updateData(o,p,u),_.off("click"),l.add(_),o.setItemGraphicEl(p,_)}).remove(function(p){var y=s.getItemGraphicEl(p);mc(y,t,p)}).execute(),VW(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},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="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]<BL,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<a.length;){var d=a[f++],v=a[f++];isNaN(d)||isNaN(v)||c&&!c.contain(d,v)||(s.x=d-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,n=t.points,a=t.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=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<a.length;){var v=a[d++],p=a[d++];l=Math.min(v,l),c=Math.max(v,c),u=Math.min(p,u),f=Math.max(p,f)}t=this._rect=new Jt(l-o/2,u-s/2,c-l+o,f-u+s)}return t},e}(oe),$W=function(){function r(){this.group=new Ht}return r.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;t=new Float32Array(t.buffer,i,a)}n.setShape("points",t),n.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n){var a=this._newAdded[0],i=t.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=e.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new jW({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=sr(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<BL;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=Zt(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var f=e.hoverDataIdx;f>=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[1]&&isFinite(_)&&isFinite(u[1]);)p=p0(p),_=u[0]+p*o;else if(f)for(y=u[1]-p*o;y>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;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===t)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",ir).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",ir).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,te(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,N(s.x,function(c,f){N(s.y,function(d,v){var p="x"+f+"y"+v,y=new nH(p);y.master=a,y.model=e,a._coordsMap[p]=y,a._coordsList.push(y),y.addAxis(c),y.addAxis(d)})});function u(c){return function(f,d){if(J0(f,e)){var v=f.get("position");c==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var p=new aH(c,sd(f),[0,0],f.get("type"),v),y=p.type==="category";p.onBand=y&&f.get("boundaryGap"),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.grid=i,p.index=d,i._axesList.push(p),s[c][d]=p,l[c]++}}}},r.prototype._updateScale=function(e,t){N(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(WL(a)){var i=HL(a),o=i.xAxisModel,s=i.yAxisModel;if(!J0(o,t)||!J0(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(a,i){N(ld(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return N(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);te(t,i)<0&&t.push(i),te(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(a,i){var o=new r(a,e,t);o.name="grid_"+i,o.resize(a,t,!0),a.coordinateSystem=o,n.push(o)}),e.eachSeries(function(a){if(WL(a)){var i=HL(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+kn(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=q0,r}();function J0(r,e){return r.getCoordSysModel()===e}function ZL(r,e,t,n){t.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)YL(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&YL(a[u])&&!n[c(a[u])]){i=a[u];break}i&&(n[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function YL(r){return r&&r.type!=="category"&&r.type!=="time"&&z6(r)}function oH(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return n-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}var go=Math.PI,an=function(){function r(e,t){this.group=new Ht,this.opt=t,this.axisModel=e,Ft(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ht({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(e){return!!XL[e]},r.prototype.add=function(e){XL[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,n){var a=dS(t-e),i,o;return rc(a)?(o=n>0?"top":"bottom",i="center"):rc(a-go)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<go?i=n>0?"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",a<go*1.5&&a>go/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<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(Mr(o,o,e),Mr(s,s,e));var c=new yr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Dl(c.shape,c.style.lineWidth),c.anid=a+"_"+r[l].tickValue,i.push(c)}return i}function uH(r,e,t,n){var a=t.axis,i=t.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),c=qL(u,e.transform,l,Ft(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)r.add(c[f]);return c}}function cH(r,e,t,n){var a=t.axis,i=t.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=Ft(s.getLineStyle(),Ft(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=qL(o[c],e.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)r.add(f[d])}}function fH(r,e,t,n){var a=t.axis,i=nr(n.axisLabelShow,t.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(nr(n.labelRotate,o.get("rotate"))||0)*go/180,c=an.innerTextLayout(n.rotation,u,n.labelDirection),f=t.getCategories&&t.getCategories(!0),d=[],v=an.isLabelSilent(t),p=t.get("triggerEvent");return N(l,function(y,_){var g=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(y.tickValue):y.tickValue,h=y.formattedLabel,w=y.rawLabel,b=o;if(f&&f[g]){var S=f[g];zt(S)&&S.textStyle&&(b=new Me(S.textStyle,o,t.ecModel))}var A=b.getTextColor()||t.get(["axisLine","lineStyle","color"]),T=a.dataToCoord(g),D=b.getShallow("align",!0)||c.textAlign,L=Ut(b.getShallow("alignMinLabel",!0),D),I=Ut(b.getShallow("alignMaxLabel",!0),D),P=b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||c.textVerticalAlign,E=Ut(b.getShallow("verticalAlignMinLabel",!0),P),R=Ut(b.getShallow("verticalAlignMaxLabel",!0),P),M=new pe({x:T,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:v,z2:10+(y.level||0),style:Be(b,{text:h,align:_===0?L:_===l.length-1?I:D,verticalAlign:_===0?E:_===l.length-1?R:P,fill:Rt(A)?A(a.type==="category"?w:a.type==="value"?g+"":g,_):A})});if(M.anid="label_"+g,ps({el:M,componentModel:t,itemName:h,formatterParamsExtra:{isTruncated:function(){return M.isTruncated},value:w,tickIndex:_}}),p){var B=an.makeAxisEventDataBase(t);B.targetType="axisLabel",B.value=w,B.tickIndex=_,a.type==="category"&&(B.dataIndex=g),Zt(M).eventData=B}e.add(M),M.updateTransform(),d.push(M),r.add(M),M.decomposeTransform()}),d}}function hH(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return vH(t,r,e),t.seriesInvolved&&pH(t,r),t}function vH(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];N(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=sf(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(N(s.getAxes(),jt(y,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",v=f.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||v)&&N(p.baseAxes,jt(y,v?"cross":!0,d)),v&&N(p.otherAxes,jt(y,"cross",!1))}function y(_,g,h){var w=h.model.getModel("axisPointer",a),b=w.get("show");if(!(!b||b==="auto"&&!_&&!r_(w))){g==null&&(g=w.get("triggerTooltip")),w=_?dH(h,f,a,e,_,g):w;var S=w.get("snap"),A=w.get("triggerEmphasis"),T=sf(h.model),D=g||S||h.type==="category",L=r.axesInfo[T]={key:T,axis:h,coordSys:s,axisPointerModel:w,triggerTooltip:g,triggerEmphasis:A,involveSeries:D,snap:S,useHandle:r_(w),seriesModels:[],linkGroup:null};u[T]=L,r.seriesInvolved=r.seriesInvolved||D;var I=gH(i,h);if(I!=null){var P=o[I]||(o[I]={axesInfo:{}});P.axesInfo[T]=L,P.mapper=i[I].mapper,L.linkGroup=P}}}})}function dH(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};N(s,function(d){l[d]=Wt(o.get(d))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c!=null?c:!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&Ft(u,f.textStyle)}}return r.model.getModel("axisPointer",new Me(l,t,n))}function pH(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||N(r.coordSysAxesInfo[sf(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function gH(r,e){for(var t=e.model,n=e.dim,a=0;a<r.length;a++){var i=r[a]||{};if(t_(i[n+"AxisId"],t.id)||t_(i[n+"AxisIndex"],t.componentIndex)||t_(i[n+"AxisName"],t.name))return a}}function t_(r,e){return r==="all"||ft(r)&&te(r,e)>=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]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function e_(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[sf(r)]}function mH(r){var e=e_(r);return e&&e.axisPointerModel}function r_(r){return!!r.get(["handle","show"])}function sf(r){return r.type+"||"+r.id}var n_={},zs=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,i){this.axisPointerClass&&yH(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,n,a,i){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=mH(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){if(process.env.NODE_ENV!=="production"&&n_[t])throw new Error("axisPointer "+t+" exists");n_[t]=n},e.getAxisPointerClass=function(t){return t&&n_[t]},e.type="axis",e}(Ue),a_=ve();function KL(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,f=a_(r).splitAreaColors,d=Et(),v=0;if(f)for(var p=0;p<u.length;p++){var y=f.get(u[p].tickValue);if(y!=null){v=(y+(c-1)*p)%c;break}}var _=a.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=ft(s)?s:[s];for(var p=1;p<u.length;p++){var h=a.toGlobalCoord(u[p].coord),w=void 0,b=void 0,S=void 0,A=void 0;a.isHorizontal()?(w=_,b=l.y,S=h-w,A=l.height,_=w+S):(w=l.x,b=_,S=l.width,A=h-b,_=b+A);var T=u[p-1].tickValue;T!=null&&d.set(T,v),e.add(new de({anid:T!=null?"area_"+T:null,shape:{x:w,y:b,width:S,height:A},style:Ft({fill:s[v]},g),autoBatch:!0,silent:!0})),v=(v+1)%c}a_(r).splitAreaColors=d}}}function QL(r){a_(r).splitAreaColors=null}var _H=["axisLine","axisTickLabel","axisName"],wH=["splitArea","splitLine","minorSplitLine"],JL=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ht,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=K0(s,t),u=new an(t,lt({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),v=0;v<d.length;v++)if(d0(d[v].getOtherAxis(t.axis).scale))return!0;return!1}},l));N(_H,u.add,u),this._axisGroup.add(u.getGroup()),N(wH,function(f){t.get([f,"show"])&&bH[f](this,this._axisGroup,t,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||_c(o,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)}},e.prototype.remove=function(){QL(this)},e.type="cartesianAxis",e}(zs),bH={splitLine:function(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color"),l=i.get("showMinLine")!==!1,u=i.get("showMaxLine")!==!1;s=ft(s)?s:[s];for(var c=n.coordinateSystem.getRect(),f=a.isHorizontal(),d=0,v=a.getTicksCoords({tickModel:i}),p=[],y=[],_=o.getLineStyle(),g=0;g<v.length;g++){var h=a.toGlobalCoord(v[g].coord);if(!(g===0&&!l||g===v.length-1&&!u)){var w=v[g].tickValue;f?(p[0]=h,p[1]=c.y,y[0]=h,y[1]=c.y+c.height):(p[0]=c.x,p[1]=h,y[0]=c.x+c.width,y[1]=h);var b=d++%s.length,S=new yr({anid:w!=null?"line_"+w:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:y[0],y2:y[1]},style:Ft({stroke:s[b]},_),silent:!0});Dl(S.shape,_.lineWidth),e.add(S)}}}},minorSplitLine:function(r,e,t,n){var a=t.axis,i=t.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),v=0;v<u.length;v++)for(var p=0;p<u[v].length;p++){var y=a.toGlobalCoord(u[v][p].coord);l?(c[0]=y,c[1]=s.y,f[0]=y,f[1]=s.y+s.height):(c[0]=s.x,c[1]=y,f[0]=s.x+s.width,f[1]=y);var _=new yr({anid:"minor_line_"+u[v][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});Dl(_.shape,d.lineWidth),e.add(_)}},splitArea:function(r,e,t,n){KL(r,e,t,n)}},tM=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="xAxis",e}(JL),xH=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=tM.type,t}return e.type="yAxis",e}(JL),SH=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new de({shape:t.coordinateSystem.getRect(),style:Ft({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Ue),eM={offset:0};function rM(r){r.registerComponentView(SH),r.registerComponentModel(KW),r.registerCoordinateSystem("cartesian2d",iH),eu(r,"x",j0,eM),eu(r,"y",j0,eM),r.registerComponentView(tM),r.registerComponentView(xH),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function AH(r){ae(rM),r.registerSeriesModel(YW),r.registerChartView(qW),r.registerLayout(rf("scatter"))}function TH(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();N(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var c=a.dataToPoint(l,s);n[u][s]=nM(c)?c:aM(a)})}),t.each(function(o){var s=nB(n[o],function(l){return nM(l)})||aM(a);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function nM(r){return!isNaN(r[0])&&!isNaN(r[1])}function aM(r){return[r.cx,r.cy]}function CH(r){var e=r.polar;if(e){ft(e)||(e=[e]);var t=[];N(e,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],ft(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}N(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var DH=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.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(d,v){var p=d.getItemVisual(v,"symbol")||"circle";if(p!=="none"){var y=Ul(d.getItemVisual(v,"symbolSize")),_=sr(p,-1,-1,2,2),g=d.getItemVisual(v,"symbolRotate")||0;return _.attr({style:{strokeNoScale:!0},z2:100,scaleX:y[0]/2,scaleY:y[1]/2,rotation:g*Math.PI/180||0}),_}}function c(d,v,p,y,_,g){p.removeAll();for(var h=0;h<v.length-1;h++){var w=u(y,_);w&&(w.__dimIdx=h,d[h]?(w.setPosition(d[h]),gs[g?"initProps":"updateProps"](w,{x:v[h][0],y:v[h][1]},t,_)):w.setPosition(v[h]),p.add(w))}}function f(d){return ht(d,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(d){var v=s.getItemLayout(d);if(v){var p=new Jr,y=new tn,_={shape:{points:v}};p.shape.points=f(v),y.shape.points=f(v),We(p,_,t,d),We(y,_,t,d);var g=new Ht,h=new Ht;g.add(y),g.add(p),g.add(h),c(y.shape.points,v,h,s,d,!0),s.setItemGraphicEl(d,g)}}).update(function(d,v){var p=l.getItemGraphicEl(v),y=p.childAt(0),_=p.childAt(1),g=p.childAt(2),h={shape:{points:s.getItemLayout(d)}};h.shape.points&&(c(y.shape.points,h.shape.points,g,s,d,!1),ga(_),ga(y),_e(y,h,t),_e(_,h,t),s.setItemGraphicEl(d,p))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,v){var p=s.getItemModel(v),y=d.childAt(0),_=d.childAt(1),g=d.childAt(2),h=s.getItemVisual(v,"style"),w=h.fill;o.add(d),y.useStyle(Ft(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:w})),Er(y,p,"lineStyle"),Er(_,p,"areaStyle");var b=p.getModel("areaStyle"),S=b.isEmpty()&&b.parentModel.isEmpty();_.ignore=S,N(["emphasis","select","blur"],function(D){var L=p.getModel([D,"areaStyle"]),I=L.isEmpty()&&L.parentModel.isEmpty();_.ensureState(D).ignore=I&&S}),_.useStyle(Ft(b.getAreaStyle(),{fill:w,opacity:.7,decal:h.decal}));var A=p.getModel("emphasis"),T=A.getModel("itemStyle").getItemStyle();g.eachChild(function(D){if(D instanceof Tr){var L=D.style;D.useStyle(lt({image:L.image,x:L.x,y:L.y,width:L.width,height:L.height},h))}else D.useStyle(h),D.setColor(w),D.style.strokeNoScale=!0;var I=D.ensureState("emphasis");I.style=Wt(T);var P=s.getStore().get(s.getDimensionIndex(D.__dimIdx),v);(P==null||isNaN(P))&&(P=""),Pr(D,mr(p),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:D.__dimIdx,defaultText:P,inheritColor:w,defaultOpacity:h.opacity})}),Xe(d,A.get("focus"),A.get("blurScope"),A.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(ke),LH=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),this.legendVisualProvider=new of(Lt(this.getData,this),Lt(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return tu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,c=yT(this,t);return _r("section",{header:u,sortBlocks:!0,blocks:ht(s,function(f){var d=i.get(i.mapDimension(f.dim),t);return _r("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(ht(a.dimensions,function(u){return n.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(ze),lf=VL.value;function bd(r,e){return Ft({show:e},r)}var MH=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(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),v=ht(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!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;A<w.length;A++){if(c){var T=h(_,p,A);_[T].push(new mi({shape:{cx:b,cy:S,r:w[A].coord}}))}if(f&&A<w.length-1){var T=h(g,y,A);g[T].push(new pc({shape:{cx:b,cy:S,r0:w[A].coord,r:w[A+1].coord}}))}}else for(var D,L=ht(a,function(B,F){var W=B.getTicksCoords();return D=D==null?W.length-1:Math.min(W.length-1,D),ht(W,function(j){return n.coordToPoint(j.coord,F)})}),I=[],A=0;A<=D;A++){for(var P=[],E=0;E<a.length;E++)P.push(L[E][A]);if(P[0]?P.push(P[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+A),c){var T=h(_,p,A);_[T].push(new tn({shape:{points:P}}))}if(f&&I){var T=h(g,y,A-1);g[T].push(new Jr({shape:{points:P.concat(I)}}))}I=P.slice().reverse()}var R=l.getLineStyle(),M=u.getAreaStyle();N(g,function(B,F){this.group.add(Gn(B,{style:Ft({stroke:"none",fill:y[F%y.length]},M),silent:!0}))},this),N(_,function(B,F){this.group.add(Gn(B,{style:Ft({fill:"none",stroke:p[F%p.length]},R),silent:!0}))},this)},e.type="radar",e}(Ue),PH=function(r){J(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return e}(ba),kH=function(){function r(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=ht(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new PH(o,new Si);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],a=n.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=Math.sqrt(t*t+n*n);t/=a,n/=a;for(var i=Math.atan2(-n,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var n=e.get("center"),a=t.getWidth(),i=t.getHeight(),o=Math.min(a,i)/2;this.cx=At(n[0],a),this.cy=At(n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(Ct(s)||ye(s))&&(s=[0,s]),this.r0=At(s[0],o),this.r=At(s[1],o),N(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},r.prototype.update=function(e,t){var n=this._indicatorAxes,a=this._model;N(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();N(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new Si;o.setExtent(0,i),o.setInterval(1),N(n,function(s,l){UL(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent("radar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},r.dimensions=[],r}();function RH(r){r.registerCoordinateSystem("radar",kH),r.registerComponentModel(MH),r.registerComponentView(EH),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function NH(r){ae(RH),r.registerChartView(DH),r.registerSeriesModel(LH),r.registerLayout(TH),r.registerProcessor(af("radar")),r.registerPreprocessor(CH)}var iM="\0_ec_interaction_mutex";function OH(r,e,t){var n=i_(r);n[e]=t}function BH(r,e,t){var n=i_(r),a=n[e];a===t&&(n[e]=null)}function oM(r,e){return!!i_(r)[e]}function i_(r){return r[iM]||(r[iM]={})}Za({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Je);var uf=function(r){J(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var a=Lt(n._mousedownHandler,n),i=Lt(n._mousemoveHandler,n),o=Lt(n._mouseupHandler,n),s=Lt(n._mousewheelHandler,n),l=Lt(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=Ft(Wt(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",a),t.on("mousemove",i),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},n.disable=function(){t.off("mousedown",a),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!mx(t)){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!xd("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||oM(this._zr,"globalPan"))){var n=t.offsetX,a=t.offsetY,i=this._x,o=this._y,s=n-i,l=a-o;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&si(t.event),sM(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){mx(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var n=xd("zoomOnMouseWheel",t,this._opt),a=xd("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?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;n<e.length;n+=2){var a=parseFloat(e[n]),i=parseFloat(e[n+1]);t.push([a,i])}return t}function Sn(r,e,t,n,a){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(ZH(r,e),yM(r,o,s),n||YH(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=pM(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=pM(i,"stroke",o.stroke,t)),N(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),N(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=ht(Cd(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function FH(r,e){var t=e.__selfStyle;if(t){var n=t.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),r.style.textBaseline=a}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var GH=/^url\(\s*#(.*?)\)/;function pM(r,e,t,n){var a=t&&t.match(GH);if(a){var i=ca(a[1]);n.push([r,e,i]);return}return t==="none"&&(t=null),t}function WH(r,e){for(var t=0;t<e.length;t++){var n=e[t];n[0].style[n[1]]=r[n[2]]}}var HH=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Cd(r){return r.match(HH)||[]}var UH=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,c_=Math.PI/180;function ZH(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var n=[],a=null;t.replace(UH,function(f,d,v){return n.push(d,v),""});for(var i=n.length-1;i>0;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;n<uM.length;n++){var a=uM[n],i=r.getAttribute(a);i!=null&&(e[Ad[a]]=i)}for(var n=0;n<cM.length;n++){var a=cM[n],i=r.getAttribute(a);i!=null&&(t[Td[a]]=i)}}function mM(r,e){var t=e.width/r.width,n=e.height/r.height,a=Math.min(t,n);return{scale:a,x:-(r.x+r.width/2)*a+(e.x+e.width/2),y:-(r.y+r.height/2)*a+(e.y+e.height/2)}}function XH(r,e){var t=new VH;return t.parse(r,e)}var jH=Et(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),$H=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=Et(),this._freedGraphics=[],this._mapName=e,this._parsedXML=lM(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=KH(e.named),n=t.regions,a=t.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,n;try{t=e&&XH(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Vt(n!=null)}catch(_){throw new Error(`Invalid svg format
- +`+_.message)}var a=new Ht;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,d=o):s&&(c=s.y,d=s.height),u==null||c==null){var v=n.getBoundingRect();u==null&&(u=v.x,f=v.width),c==null&&(c=v.y,d=v.height)}l=this._boundingRect=new Jt(u,c,f,d)}if(s){var p=mM(s,l);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}a.setClipPath(new de({shape:l.plain()}));var y=[];return N(t.named,function(_){jH.get(_.svgNodeTagLower)!=null&&(y.push(_),qH(_.el))}),{root:a,boundingRect:l,named:y}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},r}();function qH(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function KH(r){var e=[],t=Et();return N(r,function(n){if(n.namedFrom==null){var a=new Z6(n.name,n.el);e.push(a),t.set(n.name,a)}}),{regions:e,regionsMap:t}}for(var f_=[126,25],_M="南海诸岛",Vs=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Fs=0;Fs<Vs.length;Fs++)for(var ru=0;ru<Vs[Fs].length;ru++)Vs[Fs][ru][0]/=10.5,Vs[Fs][ru][1]/=-10.5/.75,Vs[Fs][ru][0]+=f_[0],Vs[Fs][ru][1]+=f_[1];function QH(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===_M)return;e.push(new lD(_M,ht(Vs,function(n){return{type:"polygon",exterior:n}}),f_))}}var JH={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function tU(r,e){if(r==="china"){var t=JH[e.name];if(t){var n=e.getCenter();n[0]+=t[0]/10.5,n[1]+=-t[1]/(10.5/.75),e.setCenter(n)}}}var eU=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function rU(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:eU[0]})}var nU="name",aU=function(){function r(e,t,n){this.type="geoJSON",this._parsedMap=Et(),this._mapName=e,this._specialAreas=n,this._geoJSON=oU(t)}return r.prototype.load=function(e,t){t=t||nU;var n=this._parsedMap.get(t);if(!n){var a=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:a,boundingRect:iU(a)})}var i=Et(),o=[];return N(n.regions,function(s){var l=s.name;e&&Mt(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new Jt(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,a;try{a=n?X6(n,e):[]}catch(i){throw new Error(`Invalid geoJson format
- +`+i.message)}return QH(t,a),N(a,function(i){var o=i.name;tU(t,i),rU(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function iU(r){for(var e,t=0;t<r.length;t++){var n=r[t].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function oU(r){return Ct(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var cf=Et();const Ai={registerMap:function(r,e,t){if(e.svg){var n=new $H(r,e.svg);cf.set(r,n)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?t=e.specialAreas:a=e;var n=new aU(r,a,t);cf.set(r,n)}},getGeoResource:function(r){return cf.get(r)},getMapForUser:function(r){var e=cf.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var n=cf.get(r);if(!n){process.env.NODE_ENV!=="production"&&console.error("Map "+r+" not exists. The GeoJSON of the map must be provided.");return}return n.load(e,t)}};var h_=["rect","circle","line","ellipse","polygon","polyline","path"],sU=Et(h_),lU=Et(h_.concat(["g"])),uU=Et(h_.concat(["g"])),wM=ve();function Dd(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function bM(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var xM=function(){function r(e){var t=new Ht;this.uid=Ml("ec_map_draw"),this._controller=new uf(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Ht),t.add(this._svgGroup=new Ht)}return r.prototype.draw=function(e,t,n,a,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(g){!s&&g.getHostGeoModel()===e&&(s=g.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),d=f.raw,v=f.roam,p=!u.childAt(0)||i;p?(c.x=v.x,c.y=v.y,c.scaleX=v.scaleX,c.scaleY=v.scaleY,c.dirty()):_e(c,v,e);var y=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,_={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;_<v.length;++_){var g=c(v[_],y);g&&p.push(g)}return p}function d(v){return{shape:{points:f(v)}}}a.removeAll(),N(e.geo.regions,function(v){var p=v.name,y=t.get(p),_=n.get(p)||{},g=_.dataIdx,h=_.regionModel;if(!y){y=t.set(p,new Ht),a.add(y),g=s?s.indexOfName(p):null,h=e.isGeo?o.getRegionModel(p):s?s.getItemModel(g):null;var w=h.get("silent",!0);w!=null&&(y.silent=w),n.set(p,{dataIdx:g,regionModel:h})}var b=[],S=[];N(v.geometries,function(D){if(D.type==="polygon"){var L=[D.exterior].concat(D.interiors||[]);u&&(L=LM(L,u)),N(L,function(P){b.push(new Jr(d(P)))})}else{var I=D.points;u&&(I=LM(I,u,!0)),N(I,function(P){S.push(new tn(d(P)))})}});var A=c(v.getCenter(),l&&l.project);function T(D,L){if(D.length){var I=new tm({culling:!0,segmentIgnoreThreshold:1,shape:{paths:D}});y.add(I),SM(e,I,g,h),AM(e,I,p,h,o,g,A),L&&(bM(I),N(I.states,bM))}}T(b),T(S,!0)}),t.each(function(v,p){var y=n.get(p),_=y.dataIdx,g=y.regionModel;TM(e,v,p,g,o,_),CM(e,v,p,g,o),DM(e,v,p,g,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var a=this._svgDispatcherMap=Et(),i=!1;N(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,f=o.el,d=u?u.indexOfName(s):null,v=l.getRegionModel(s);sU.get(c)!=null&&f instanceof Vn&&SM(e,f,d,v),f instanceof Vn&&(f.culling=!0);var p=v.get("silent",!0);if(p!=null&&(f.silent=p),f.z2EmphasisLift=0,!o.namedFrom&&(uU.get(c)!=null&&AM(e,f,s,v,l,d,null),TM(e,f,s,v,l,d),CM(e,f,s,v,l),lU.get(c)!=null)){var y=DM(e,f,s,v,l);y==="self"&&(i=!0);var _=a.get(s)||a.set(s,[]);_.push(f)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){ls(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(e);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=Ai.getGeoResource(e);if(t&&t.type==="geoSVG"){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Ai.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,n){var a=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,s_(o,u.dx,u.dy),n.dispatchAction(lt(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,l_(o,u.scale,u.originX,u.originY),n.dispatchAction(lt(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,f){return a.containPoint([c,f])&&!Sd(u,n,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=wM(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,n,a){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r}();function SM(r,e,t,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Dd(a),u=Dd(i),c=Dd(s),f=Dd(o),d=r.data;if(d){var v=d.getItemVisual(t,"style"),p=d.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),p&&(l.decal=Yl(p,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=f,ls(e)}function AM(r,e,t,n,a,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var f=l?t:i,d=void 0;(!s||i>=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<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),n}var cU=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,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new xM(a);o.add(s.group),s.draw(t,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(t,n,a)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,n,a){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new mi({style:{fill:t.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:bl+1)});if(!f){var v=t.mainSeries.getData(),p=i.getName(l),y=v.indexOfName(p),_=i.getItemModel(l),g=_.getModel("label"),h=v.getItemGraphicEl(y);Pr(d,mr(_),{labelFetcher:{getFormattedLabel:function(w,b){return t.getFormattedLabel(y,b)}},defaultText:p}),d.disableLabelAnimation=!0,g.get("position")||d.setTextConfig({position:"bottom"}),h.onHoverStateChange=function(w){rv(d,w)}}o.add(d)}}})},e.type="map",e}(ke),fU=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var n=tu(this,{coordDimensions:["value"],encodeDefaulter:jt(wm,this)}),a=Et(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,o)}var u=Ai.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return N(u.regions,function(c){var f=c.name,d=a.get(f),v=c.properties&&c.properties.echartsStyle,p;d==null?(p={name:f},i.push(p)):p=n.getRawDataItem(d),v&&qt(p,v)}),n.appendData(i),n},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var n=this.getData();return n.get(n.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var n=this.getData();return n.getItemModel(n.indexOfName(t))},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=i.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return _r("section",{header:u.join(", "),noHeader:!u.length,blocks:[_r("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var n=t.icon||"roundRect",a=sr(n,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",n.indexOf("empty")>-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;c<u;c++)s=Math.min(s,t[i][c]),l=Math.max(l,t[i][c]),o+=t[i][c];var f;return e==="min"?f=s:e==="max"?f=l:e==="average"?f=o/u:f=o,u===0?NaN:f})}function vU(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),a=n?"o"+n.id:"i"+t.getMapType();(e[a]=e[a]||[]).push(t)}),N(e,function(t,n){for(var a=hU(ht(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=i===0&&!t[i].getHostGeoModel(),t[i].setData(a.cloneShallow()),t[i].mainSeries=t[0]})}function dU(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getMapType();if(!(t.getHostGeoModel()||e[n])){var a={};N(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var v=a[f]||0,p=s.dataToPoint(d.getCenter());a[f]=v+1,l.setItemLayout(c,{point:p,offset:v})}})});var i=t.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),e[n]=!0}})}var MM=Mr,ff=function(r){J(e,r);function e(t){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new fi,n._rawTransformable=new fi,n.name=t,n}return e.prototype.setBoundingRect=function(t,n,a,i){return this._rect=new Jt(t,n,a,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,n,a,i){this._transformTo(t,n,a,i),this._viewRect=new Jt(t,n,a,i)},e.prototype._transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Jt(t,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,n){t&&(this._center=[At(t[0],n.getWidth()),At(t[1],n.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var n=this.zoomLimit;n&&(n.max!=null&&(t=Math.min(n.max,t)),n.min!=null&&(t=Math.max(n.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),n=t.x+t.width/2,a=t.y+t.height/2;return[n,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Mr([],i,t),a=Mr([],a,t),n.originX=i[0],n.originY=i[1],n.x=a[0]-i[0],n.y=a[1]-i[1],n.scaleX=n.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,n=this._rawTransformable;n.parent=t,t.updateTransform(),n.updateTransform(),Eg(this.transform||(this.transform=[]),n.transform||mn()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],cl(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,n=this._roamTransformable,a=new fi;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?MM(a,t,i):Xr(a,t)},e.prototype.pointToData=function(t){var n=this.invTransform;return n?MM([],t,n):[t[0],t[1]]},e.prototype.convertToPixel=function(t,n,a){var i=IM(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=IM(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(fi);function IM(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var pU={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},EM=["lng","lat"],v_=function(r){J(e,r);function e(t,n,a){var i=r.call(this,t)||this;i.dimensions=EM,i.type="geo",i._nameCoordMap=Et(),i.map=n;var o=a.projection,s=Ai.load(n,a.nameMap,a.nameProperty),l=Ai.getGeoResource(n),u=i.resourceType=l?l.type:null,c=i.regions=s.regions,f=pU[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,process.env.NODE_ENV!=="production"&&o&&(u==="geoSVG"&&(process.env.NODE_ENV!=="production"&&Ye("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),o=null),o.project&&o.unproject||(process.env.NODE_ENV!=="production"&&Ye("project and unproject must be both provided in the projeciton."),o=null)),i.projection=o;var d;if(o)for(var v=0;v<c.length;v++){var p=c[v].getBoundingRect(o);d=d||p.clone(),d.union(p)}else d=s.boundingRect;return i.setBoundingRect(d.x,d.y,d.width,d.height),i.aspectScale=o?1:Ut(a.aspectScale,f.aspectScale),i._invertLongitute=o?!1:f.invertLongitute,i}return e.prototype._transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Jt(t,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(t))return n[a]}},e.prototype.addGeoCoord=function(t,n){this._nameCoordMap.set(t,n)},e.prototype.getGeoCoord=function(t){var n=this._regionsMap.get(t);return this._nameCoordMap.get(t)||n&&n.getCenter()},e.prototype.dataToPoint=function(t,n,a){if(Ct(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,n,a)}},e.prototype.pointToData=function(t){var n=this.projection;return n&&(t=n.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,n,a){return r.prototype.dataToPoint.call(this,t,n,a)},e.prototype.convertToPixel=function(t,n,a){var i=PM(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=PM(n);return i===this?i.pointToData(a):null},e}(ff);rr(v_,ff);function PM(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",ir).models[0]||{}).coordinateSystem:null}function kM(r,e){var t=r.get("boundingCoords");if(t!=null){var n=t[0],a=t[1];if(!(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])))process.env.NODE_ENV!=="production"&&console.error("Invalid boundingCoords");else{var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var c=function(A,T,D,L){for(var I=D-A,P=L-T,E=0;E<=100;E++){var R=E/100,M=i.project([A+I*R,T+P*R]);Ui(n,n,M),Zi(a,a,M)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var f=this.getBoundingRect(),d=r.get("layoutCenter"),v=r.get("layoutSize"),p=e.getWidth(),y=e.getHeight(),_=f.width/f.height*this.aspectScale,g=!1,h,w;d&&v&&(h=[At(d[0],p),At(d[1],y)],w=At(v,Math.min(p,y)),!isNaN(h[0])&&!isNaN(h[1])&&!isNaN(w)?g=!0:process.env.NODE_ENV!=="production"&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var b;if(g)b={},_>1?(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<i.length;s++)o.set(i[s].name,i[s]);var l=Ai.load(t,n,a);return N(l.regions,function(u){var c=u.name,f=o.get(c),d=u.properties&&u.properties.echartsStyle;f||(f={name:c},i.push(f)),d&&qt(f,d)}),i},r}(),RM=new yU,mU=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=Ai.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,a),$o(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,n=this.option;n.regions=RM.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=Ia(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Me(o,t,t.ecModel)),o.selected&&(a[s]=!0)),i},Et()),n.selectedMap||(n.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Me(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,n){var a=this.getRegionModel(t),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:t};if(Rt(i))return o.status=n,i(o);if(Ct(i))return i.replace("{a}",t!=null?t:"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var n=this.option.selectedMap;n&&(n[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var n=this.option.selectedMap;return!!(n&&n[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(le);function NM(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function d_(r,e,t,n){var a=r.getZoom(),i=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(NM(r,s),n)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}r.scaleX*=o,r.scaleY*=o;var c=(e.originX-r.x)*(o-1),f=(e.originY-r.y)*(o-1);r.x-=c,r.y-=f,r.updateTransform(),r.setCenter(NM(r,s),n),r.setZoom(o*a)}return{center:r.getCenter(),zoom:r.getZoom()}}var _U=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,n){this._api=n},e.prototype.render=function(t,n,a,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new xM(a));var o=this._mapDraw;o.draw(t,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,n,a)},e.prototype._handleRegionClick=function(t){var n;Ss(t.target,function(a){return(n=Zt(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(t,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=Zt(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Ue);function wU(r,e,t){Ai.registerMap(r,e,t)}function OM(r){r.registerCoordinateSystem("geo",RM),r.registerComponentModel(mU),r.registerComponentView(_U),r.registerImpl("registerMap",wU),r.registerImpl("getMap",function(t){return Ai.getMapForUser(t)});function e(t,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[t](a.name);var u=l.coordinateSystem;N(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];N(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,n,a){var i=t.componentType||"series";n.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=d_(s,t,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&N(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function bU(r){ae(OM),r.registerChartView(cU),r.registerSeriesModel(fU),r.registerLayout(dU),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,vU),GT("map",r.registerAction)}function xU(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],n,a;n=t.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=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;p<i-1;p++){var y=a[p];t.moveTo(y[0],y[1]),v[c]=y[c],t.lineTo(v[0],v[1])}},e}(oe),kU=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new Ht,t}return e.prototype.init=function(t,n){this._controller=new uf(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,n,a){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,a),this._updateController(t,n,a);var u=this._data;i.diff(u).add(function(c){zM(i,c)&&VM(i,c,null,s,t)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!zM(i,c)){d&&WM(u,f,d,s,t);return}VM(i,c,d,s,t)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&WM(u,c,f,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:f})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,n){var a=t.getData(),i=[];a.each(function(f){var d=a.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&i.push([+d.x,+d.y])});var o=[],s=[];qh(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=t.coordinateSystem=new ff;c.zoomLimit=t.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(t.get("center"),n),c.setZoom(t.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Sd(u,a,t)}),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:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){l_(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(t),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var n=t.getData(),a=this._getNodeGlobalScale(t);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype._getNodeGlobalScale=function(t){var n=t.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(ke);function zM(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function VM(r,e,t,n,a){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=r.tree.root,f=o.parentNode===c?o:o.parentNode||o,d=r.getItemGraphicEl(f.dataIndex),v=f.getLayout(),p=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:v,y=o.getLayout();i?(t=new Jc(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=p.x,t.y=p.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=y.rawX,t.__radialRawY=y.rawY,n.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,_e(t,{x:y.x,y:y.y},a);var _=t.getSymbolPath();if(a.get("layout")==="radial"){var g=c.children[0],h=g.getLayout(),w=g.children.length,b=void 0,S=void 0;if(y.x===h.x&&o.isExpand===!0&&g.children.length){var A={x:(g.children[0].getLayout().x+g.children[w-1].getLayout().x)/2,y:(g.children[0].getLayout().y+g.children[w-1].getLayout().y)/2};b=Math.atan2(A.y-h.y,A.x-h.x),b<0&&(b=Math.PI*2+b),S=A.x<h.x,S&&(b=b-Math.PI)}else b=Math.atan2(y.y-h.y,y.x-h.x),b<0&&(b=Math.PI*2+b),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(S=y.x<h.x,S&&(b=b-Math.PI)):(S=y.x>h.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&&s<i.length;s++)i[s].eachNode(e,t,n);a==="postorder"&&t.call(n,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(e+1),a.height>t&&(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<a;t++){var i=n[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=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<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r}(),__=function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,a=t.length;n<a;n++)t[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)t[e.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,n){var a=new r(t),i=[],o=1;s(e);function s(c,f){var d=c.value;o=Math.max(o,ft(d)?d.length:1),i.push(c);var v=new GU(fr(c.name,""),a);f?WU(v,f):a.root=v,a._nodes.push(v);var p=c.children;if(p)for(var y=0;y<p.length;y++)s(p[y],v)}a.root.updateDepthAndHeight(0);var l=Zc(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new en(l,t);return u.initData(i),n&&n(u),HM({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r}();function WU(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function vf(r,e,t){if(r&&te(e,r.type)>=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<o.length;s++)n.push(o[s])}for(;i=a.pop();)e(i,t)}function df(r,e){for(var t=[r],n;n=t.pop();)if(e(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=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;b<u.getLayout().x&&(u=w),b>c.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;e<YM.length;e++)r.registerAction({type:YM[e],update:"updateView"},Je);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=vf(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=w_(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function XM(r){var e=r.getData(),t=e.tree,n={};t.eachNode(function(a){for(var i=a;i&&i.depth>1;)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;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function a7(){return new n7}var x_=Ht,qM=de,KM=3,QM="label",JM="upperLabel",i7=bl*10,o7=bl*2,s7=bl*3,Gs=Qo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),tI=function(r){var e=Gs(r);return e.stroke=e.fill=e.lineWidth=null,e},Md=ve(),l7=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=pf(),t}return e.prototype.render=function(t,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(te(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=vf(i,s,t),u=i&&i.type,c=t.layoutInfo,f=!this._oldTree,d=this._storage,v=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(c),y=t.get("animation"),_=this._doRender(p,t,v);y&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,_,t,v):_.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,l)}},e.prototype._giveContainerGroup=function(t){var n=this._containerGroup;return n||(n=this._containerGroup=new x_,this._initEvents(n),this.group.add(n)),n.x=t.x,n.y=t.y,n},e.prototype._doRender=function(t,n,a){var i=n.getData().tree,o=this._oldTree,s=pf(),l=pf(),u=this._storage,c=[];function f(h,w,b,S){return u7(n,l,u,a,s,c,h,w,b,S)}y(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var d=_(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var v=this.seriesModel.layoutInfo,p=i.root.getLayout();p.width===v.width&&p.height===v.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:d,renderFinally:g};function y(h,w,b,S,A){S?(w=h,N(h,function(L,I){!L.isRemoved()&&D(I,I)})):new bi(w,h,T,T).add(D).update(D).remove(jt(D,null)).execute();function T(L){return L.getId()}function D(L,I){var P=L!=null?h[L]:null,E=I!=null?w[I]:null,R=f(P,E,b,A);R&&y(P&&P.viewChildren||[],E&&E.viewChildren||[],R,S,A+1)}}function _(h){var w=pf();return h&&N(h,function(b,S){var A=w[S];N(b,function(T){T&&(A.push(T),Md(T).willDelete=!0)})}),w}function g(){N(d,function(h){N(h,function(w){w.parent&&w.parent.remove(w)})}),N(c,function(h){h.invisible=!0,h.dirty()})}},e.prototype._doAnimation=function(t,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(Rt(o)?0:o)||0,u=(Rt(s)?null:s)||"cubicOut",c=a7();N(n.willDeleteEls,function(f,d){N(f,function(v,p){if(!v.invisible){var y=v.parent,_,g=Md(y);if(i&&i.direction==="drillDown")_=y===i.rootNodeGroup?{shape:{x:0,y:0,width:g.nodeWidth,height:g.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var h=0,w=0;g.willDelete||(h=g.nodeWidth/2,w=g.nodeHeight/2),_=d==="nodeGroup"?{x:h,y:w,style:{opacity:0}}:{shape:{x:h,y:w,width:0,height:0},style:{opacity:0}}}_&&c.add(v,_,l,0,u)}})}),N(this._storage,function(f,d){N(f,function(v,p){var y=n.lastsForAnimation[d][p],_={};y&&(v instanceof Ht?y.oldX!=null&&(_.x=v.x,_.y=v.y,v.x=y.oldX,v.y=y.oldY):(y.oldShape&&(_.shape=lt({},v.shape),v.setShape(y.oldShape)),y.fadein?(v.setStyle("opacity",0),_.style={opacity:1}):v.style.opacity!==1&&(_.style={opacity:1})),c.add(v,_,l,0,u))})},this),this._state="animating",c.finished(Lt(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(t){var n=this._controller,a=this._controllerHost;a||(this._controllerHost={target:this.group},a=this._controllerHost),n||(n=this._controller=new uf(t.getZr()),n.enable(this.seriesModel.get("roam")),a.zoomLimit=this.seriesModel.get("scaleLimit"),a.zoom=this.seriesModel.get("zoom"),n.on("pan",Lt(this._onPan,this)),n.on("zoom",Lt(this._onZoom,this)));var i=new Jt(0,0,t.getWidth(),t.getHeight());n.setPointerChecker(function(o,s,l){return i.contain(s,l)})},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>KM||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<s;o++){var l=t[o].value;if(l!=null){if(l===e||Ct(l)&&l===e+"")return o;n&&d(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(Pd(f[1],e,c[1]))return o}else if(c[1]===1/0){if(Pd(f[0],c[0],e))return o}else if(Pd(f[0],c[0],e)&&Pd(f[1],e,c[1]))return o;n&&d(c[0],o),n&&d(c[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:a;function d(v,p){var y=Math.abs(v-e);y<i&&(i=y,a=p)}},r.visualHandlers={color:{applyVisual:yf("color"),getColorMapper:function(){var e=this.option;return Lt(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),mf.call(this,t)}:function(t,n,a){var i=!!a;return!n&&(t=this._normalizeData(t)),a=Ug(t,e.parsedVisual,a),i?a:ui(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return ui(Ug(e,this.option.parsedVisual),"rgba")},category:mf,piecewise:function(e,t){var n=T_.call(this,t);return n==null&&(n=ui(Ug(e,this.option.parsedVisual),"rgba")),n},fixed:Ws}},colorHue:Ed(function(e,t){return ju(e,t)}),colorSaturation:Ed(function(e,t){return ju(e,null,t)}),colorLightness:Ed(function(e,t){return ju(e,null,null,t)}),colorAlpha:Ed(function(e,t){return Dh(e,t)}),decal:{applyVisual:yf("decal"),_normalizedToVisual:{linear:null,category:mf,piecewise:null,fixed:null}},opacity:{applyVisual:yf("opacity"),_normalizedToVisual:A_([0,1])},liftZ:{applyVisual:yf("liftZ"),_normalizedToVisual:{linear:Ws,category:Ws,piecewise:Ws,fixed:Ws}},symbol:{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:eI,category:mf,piecewise:function(e,t){var n=T_.call(this,t);return n==null&&(n=eI.call(this,e)),n},fixed:Ws}},symbolSize:{applyVisual:yf("symbolSize"),_normalizedToVisual:A_([0,1])}},r}();function h7(r){var e=r.pieceList;r.hasSpecialVisual=!1,N(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function v7(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(gf(e,function(o,s){t[o]=s}),!ft(n)){var a=[];zt(n)?gf(n,function(o,s){var l=t[s];a[l!=null?l:Id]=o}):a[Id]=n,n=rI(r,a)}for(var i=e.length-1;i>=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}var p7="itemStyle",nI=ve();const g7={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||aI(t,{},r.getViewRoot().getAncestors(),r)}};function aI(r,e,t,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(p7),l=y7(s,e,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=iI(l),c=m7(f,d)),u.stroke=c;var v=r.viewChildren;if(!v||!v.length)d=iI(l),u.fill=d;else{var p=_7(r,a,i,s,l,v);N(v,function(y,_){if(y.depth>=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&&s<u[0]&&(u[0]=s),l!=null&&l>u[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<S;){var A=y[b];w.push(A),w.area+=A.getLayout().area;var T=M7(w,g,e.squareRatio);T<=h?(b++,h=T):(w.area-=w.pop().getLayout().area,uI(w,g,_,u,!1),g=kd(_.width,_.height),w.length=w.area=0,h=1/0)}if(w.length&&uI(w,g,_,u,!0),!t){var D=s.get("childrenVisibleMin");D!=null&&p<D&&(t=!0)}for(var b=0,S=y.length;b<S;b++)lI(y[b],e,t,n+1)}}}function T7(r,e,t,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return r.viewChildren=[];o=Ae(o,function(v){return!v.isRemoved()}),D7(o,s);var u=L7(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=C7(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var d=o[c].getValue()/u.sum*t;o[c].setLayout({area:d})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function C7(r,e,t,n,a){if(!n)return t;for(var i=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function D7(r,e){return e&&r.sort(function(t,n){var a=e==="asc"?t.getValue()-n.getValue():n.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:a}),r}function L7(r,e,t){for(var n=0,a=0,i=e.length;a<i;a++)n+=e[a].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],L_(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[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;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(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;f<d;f++){var v=r[f],p={},y=c?v.getLayout().area/c:0,_=p[l[o]]=_f(c-2*n,0),g=t[s[i]]+t[l[i]]-u,h=f===d-1||g<y?g:y,w=p[l[i]]=_f(h-2*n,0);p[s[o]]=t[s[o]]+kd(n,_/2),p[s[i]]=u+kd(n,w/2),u+=h,v.setLayout(p,!0)}t[s[o]]+=c,t[l[o]]-=c}function I7(r,e,t,n,a){var i=(e||{}).node,o=[n,a];if(!i||i===t)return o;for(var s,l=n*a,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,f=s.children,d=0,v=f.length;d<v;d++)c+=f[d].getValue();var p=i.getValue();if(p===0)return o;u*=c/p;var y=s.getModel(),_=y.get(sI),g=Math.max(_,fI(y));u+=4*_*_+(3*_+g)*Math.pow(u,.5),u>vS&&(u=vS),i=s}u<l&&(u=l);var h=Math.pow(u/l,.5);return[n*h,a*h]}function E7(r,e,t){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!t)return n;var a=t.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function cI(r,e,t,n,a){var i=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new Jt(e.x-i.x,e.y-i.y,e.width,e.height);L_(r.viewChildren||[],function(u){cI(u,l,t,n,a+1)})}}function fI(r){return r.get(x7)?r.get(S7):0}function P7(r){r.registerSeriesModel(KU),r.registerChartView(l7),r.registerVisual(g7),r.registerLayout(A7),qU(r)}function k7(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),a=t.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){ye(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function R7(r){var e={};r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),a=t.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&n.setItemVisual(o,c[f],d)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){Ct(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");lt(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)a.setItemVisual(o,f[d],n.getItemVisual(l,f[d]))}})})}function Rd(r){return r instanceof Array||(r=[r,r]),r}function N7(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),a=Rd(e.get("edgeSymbol")),i=Rd(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=t.getEdgeByIndex(o),u=Rd(s.getShallow("symbol",!0)),c=Rd(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=n.ensureUniqueItemVisual(o,"style");switch(lt(d,f),d.stroke){case"source":{var v=l.node1.getVisual("style");d.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");d.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var M_="-->",Nd=function(r){return r.get("autoCurveness")||null},hI=function(r,e){var t=Nd(r),n=20,a=[];if(ye(t))n=t;else if(ft(t)){r.__curvenessList=t;return}e>n&&(n=e);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},wf=function(r,e,t){var n=[r.id,r.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[t.uid,n,a].join(M_)},vI=function(r){var e=r.split(M_);return[e[0],e[2],e[1]].join(M_)},O7=function(r,e){var t=wf(r.node1,r.node2,e);return e.__edgeMap[t]},B7=function(r,e){var t=I_(wf(r.node1,r.node2,e),e),n=I_(wf(r.node2,r.node1,e),e);return t+n},I_=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function z7(r){Nd(r)&&(r.__curvenessList=[],r.__edgeMap={},hI(r))}function V7(r,e,t,n){if(Nd(t)){var a=wf(r,e,t),i=t.__edgeMap,o=i[vI(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function E_(r,e,t,n){var a=Nd(e),i=ft(a);if(!a)return null;var o=O7(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=B7(r,e);hI(e,u),r.lineStyle=r.lineStyle||{};var c=wf(r.node1,r.node2,e),f=e.__curvenessList,d=i||u%2?0:1;if(o.isForward)return f[d+s];var v=vI(c),p=I_(v,e),y=f[s+p+d];return n?i?a&&a[0]===0?(p+d)%2?y:-y:((p%2?0:1)+d)%2?y:-y:(p+d)%2?y:-y:f[s+p+d]}function dI(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),P_(t,r)}}function P_(r,e){r.eachEdge(function(t,n){var a=kn(t.getModel().get(["lineStyle","curveness"]),-E_(t,e,n,!0),0),i=oi(t.node1.getLayout()),o=oi(t.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),t.setLayout(s)})}function F7(r,e){r.eachSeriesByType("graph",function(t){var n=t.get("layout"),a=t.coordinateSystem;if(a&&a.type!=="view"){var i=t.getData(),o=[];N(a.dimensions,function(d){o=o.concat(i.mapDimensionsAll(d))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=i.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}P_(i.graph,t)}else(!n||n==="none")&&dI(t)})}function bf(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,n=e.scaleX,a=e.getZoom(),i=(a-1)*t+1;return i/n}function xf(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var pI=Math.PI,k_=[];function R_(r,e,t,n){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(t){var d=a.pointToData(n),v=d[0],p=d[1],y=[v-l,p-u];ll(y,y),ph(y,y,c),t.setLayout([l+y[0],u+y[1]],!0);var _=r.get(["circular","rotateLabel"]);gI(t,_,l,u)}G7[e](r,s,o,c,l,u,f),s.eachEdge(function(g,h){var w=kn(g.getModel().get(["lineStyle","curveness"]),E_(g,r,h),0),b=oi(g.node1.getLayout()),S=oi(g.node2.getLayout()),A,T=(b[0]+S[0])/2,D=(b[1]+S[1])/2;+w&&(w*=3,A=[l*w+T*(1-w),u*w+D*(1-w)]),g.setLayout([b,S,A])})}}}var G7={value:function(r,e,t,n,a,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=d})},symbolSize:function(r,e,t,n,a,i,o){var s=0;k_.length=o;var l=bf(r);e.eachNode(function(f){var d=xf(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var v=Math.asin(d/2/n);isNaN(v)&&(v=pI/2),k_[f.dataIndex]=v,s+=v*2});var u=(2*pI-s)/o/2,c=0;e.eachNode(function(f){var d=u+k_[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(c)+a,n*Math.sin(c)+i]),c+=d})}};function gI(r,e,t,n){var a=r.getGraphicEl();if(a){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-t);u<0&&(u=Math.PI*2+u);var c=l[0]<t;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");lt(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function W7(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&R_(e,"symbolSize")})}var nu=wg;function H7(r,e,t){for(var n=r,a=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,c=0;c<n.length;c++){var f=n[c];f.p||(f.p=zo(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=oi(f.p),f.edges=null}var d=t.friction==null?.6:t.friction,v=d,p,y;return{warmUp:function(){v=d*.8},setFixed:function(_){n[_].fixed=!0},setUnfixed:function(_){n[_].fixed=!1},beforeStep:function(_){p=_},afterStep:function(_){y=_},step:function(_){p&&p(n,a);for(var g=[],h=n.length,w=0;w<a.length;w++){var b=a[w];if(!b.ignoreForceLayout){var S=b.n1,A=b.n2;Vo(g,A.p,S.p);var T=bg(g)-b.d,D=A.w/(S.w+A.w);isNaN(D)&&(D=0),ll(g,g),!S.fixed&&nu(S.p,S.p,g,D*T*v),!A.fixed&&nu(A.p,A.p,g,-(1-D)*T*v)}}for(var w=0;w<h;w++){var L=n[w];L.fixed||(Vo(g,l,L.p),nu(L.p,L.p,g,u*v))}for(var w=0;w<h;w++)for(var S=n[w],I=w+1;I<h;I++){var A=n[I];Vo(g,A.p,S.p);var T=bg(g);T===0&&(uB(g,Math.random()-.5,Math.random()-.5),T=1);var P=(S.rep+A.rep)/T/T;!S.fixed&&nu(S.pp,S.pp,g,P),!A.fixed&&nu(A.pp,A.pp,g,-P)}for(var E=[],w=0;w<h;w++){var L=n[w];L.fixed||(Vo(E,L.p,L.pp),nu(L.p,L.p,E,v),Xr(L.pp,L.p))}v=v*.992;var R=v<.01;y&&y(n,a,R),_&&_(R)}}}function U7(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},a=e.getGraph(),i=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(w){var b=i.getId(w);i.setItemLayout(w,n[b]||[NaN,NaN])}):!l||l==="none"?dI(e):l==="circular"&&R_(e,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),v=ft(f)?f:[f,f],p=ft(d)?d:[d,d];p=[p[1],p[0]];var y=i.mapArray("value",function(w,b){var S=i.getItemLayout(b),A=Le(w,u,v);return isNaN(A)&&(A=(v[0]+v[1])/2),{w:A,rep:A,fixed:i.getItemModel(b).get("fixed"),p:!S||isNaN(S[0])||isNaN(S[1])?null:S}}),_=o.mapArray("value",function(w,b){var S=a.getEdgeByIndex(b),A=Le(w,c,p);isNaN(A)&&(A=(p[0]+p[1])/2);var T=S.getModel(),D=kn(S.getModel().get(["lineStyle","curveness"]),-E_(S,e,b,!0),0);return{n1:y[S.node1.dataIndex],n2:y[S.node2.dataIndex],d:A,curveness:D,ignoreForceLayout:T.get("ignoreForceLayout")}}),g=t.getBoundingRect(),h=H7(y,_,{rect:g,gravity:s.get("gravity"),friction:s.get("friction")});h.beforeStep(function(w,b){for(var S=0,A=w.length;S<A;S++)w[S].fixed&&Xr(w[S].p,a.getNodeByIndex(S).getLayout())}),h.afterStep(function(w,b,S){for(var A=0,T=w.length;A<T;A++)w[A].fixed||a.getNodeByIndex(A).setLayout(w[A].p),n[i.getId(A)]=w[A].p;for(var A=0,T=b.length;A<T;A++){var D=b[A],L=a.getEdgeByIndex(A),I=D.n1.p,P=D.n2.p,E=L.getLayout();E=E?E.slice():[],E[0]=E[0]||[],E[1]=E[1]||[],Xr(E[0],I),Xr(E[1],P),+D.curveness&&(E[2]=[(I[0]+P[0])/2-(I[1]-P[1])*D.curveness,(I[1]+P[1])/2-(P[0]-I[0])*D.curveness]),L.setLayout(E)}}),e.forceLayout=h,e.preservedPoints=n,h.step()}else e.forceLayout=null})}function Z7(r,e,t){var n=lt(r.getBoxLayoutParams(),{aspect:t});return hr(n,{width:e.getWidth(),height:e.getHeight()})}function Y7(r,e){var t=[];return r.eachSeriesByType("graph",function(n){var a=n.get("coordinateSystem");if(!a||a==="view"){var i=n.getData(),o=i.mapArray(function(_){var g=i.getItemModel(_);return[+g.get("x"),+g.get("y")]}),s=[],l=[];qh(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=Z7(n,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],v=c.width,p=c.height,y=n.coordinateSystem=new ff;y.zoomLimit=n.get("scaleLimit"),y.setBoundingRect(s[0],s[1],f,d),y.setViewRect(c.x,c.y,v,p),y.setCenter(n.get("center"),e),y.setZoom(n.get("zoom")),t.push(y)}}),t}var yI=yr.prototype,N_=gc.prototype,mI=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(mI);function O_(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var X7=function(r){J(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mI},e.prototype.buildPath=function(t,n){O_(n)?yI.buildPath.call(this,t,n):N_.buildPath.call(this,t,n)},e.prototype.pointAt=function(t){return O_(this.shape)?yI.pointAt.call(this,t):N_.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var n=this.shape,a=O_(n)?[n.x2-n.x1,n.y2-n.y1]:N_.tangentAt.call(this,t);return ll(a,a)},e}(oe),B_=["fromSymbol","toSymbol"];function _I(r){return"_"+r+"Type"}function wI(r,e,t){var n=e.getItemVisual(t,r);if(!n||n==="none")return n;var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Ul(a),u=As(o||0,l);return n+l+u+(i||"")+(s||"")}function bI(r,e,t){var n=e.getItemVisual(t,r);if(!(!n||n==="none")){var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Ul(a),u=As(o||0,l),c=sr(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=r,c}}function j7(r){var e=new X7({name:"line",subPixelOptimize:!0});return z_(e.shape,r),e}function z_(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var V_=function(r){J(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createLine(t,n,a),i}return e.prototype._createLine=function(t,n,a){var i=t.hostModel,o=t.getItemLayout(n),s=j7(o);s.shape.percent=0,We(s,{shape:{percent:1}},i,n),this.add(s),N(B_,function(l){var u=bI(l,t,n);this.add(u),this[_I(l)]=wI(l,t,n)},this),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(n),l={shape:{}};z_(l.shape,s),_e(o,l,i,n),N(B_,function(u){var c=wI(u,t,n),f=_I(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=bI(u,t,n);this.add(d)}this[f]=c},this),this._updateCommonStl(t,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,f=a&&a.emphasisDisabled,d=a&&a.focus,v=a&&a.blurScope;if(!a||t.hasItemOption){var p=t.getItemModel(n),y=p.getModel("emphasis");s=y.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),f=y.get("disabled"),d=y.get("focus"),v=y.get("blurScope"),c=mr(p)}var _=t.getItemVisual(n,"style"),g=_.stroke;o.useStyle(_),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,N(B_,function(A){var T=this.childOfName(A);if(T){T.setColor(g),T.style.opacity=_.opacity;for(var D=0;D<Kr.length;D++){var L=Kr[D],I=o.getState(L);if(I){var P=I.style||{},E=T.ensureState(L),R=E.style||(E.style={});P.stroke!=null&&(R[T.__isEmptyBrush?"stroke":"fill"]=P.stroke),P.opacity!=null&&(R.opacity=P.opacity)}}T.markRedraw()}},this);var h=i.getRawValue(n);Pr(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(A,T){return i.getFormattedLabel(A,T,t.dataType)}},inheritColor:g||"#000",defaultOpacity:_.opacity,defaultText:(h==null?t.getName(n):isFinite(h)?qe(h):h)+""});var w=this.getTextContent();if(w){var b=c.normal;w.__align=w.style.align,w.__verticalAlign=w.style.verticalAlign,w.__position=b.get("position")||"middle";var S=b.get("distance");ft(S)||(S=[S,S]),w.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),Xe(this,d,v,f)},e.prototype.highlight=function(){gi(this)},e.prototype.downplay=function(){yi(this)},e.prototype.updateLayout=function(t,n){this.setLinePoints(t.getItemLayout(n))},e.prototype.setLinePoints=function(t){var n=this.childOfName("line");z_(n.shape,t),n.dirty()},e.prototype.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),i=t.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=Vo([],f,c);ll(d,d);function v(I,P){var E=I.__specifiedRotation;if(E==null){var R=l.tangentAt(P);I.attr("rotation",(P===1?-1:1)*Math.PI/2-Math.atan2(R[1],R[0]))}else I.attr("rotation",E)}if(n&&(n.setPosition(c),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(f),v(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,y=void 0,_=i.__labelDistance,g=_[0]*o,h=_[1]*o,w=u/2,b=l.tangentAt(w),S=[b[1],-b[0]],A=l.pointAt(w);S[1]>0&&(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]<c[0]&&(D=Math.PI+D),i.rotation=D}var L=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":L=-h,y="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":L=h,y="top";break;default:L=0,y="middle"}switch(i.__position){case"end":i.x=d[0]*g+f[0],i.y=d[1]*h+f[1],p=d[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;a<e.end;a++){var i=t.getItemLayout(a);if(G_(i)){var o=new this._LineCtor(t,a,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){no(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,n){var a=e.getItemLayout(t);if(G_(a)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,n,a,i){var o=e.getItemGraphicEl(n);if(!G_(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,i):o=new this._LineCtor(t,a,i),t.setItemGraphicEl(a,o),this.group.add(o)},r}();function $7(r){return r.animators&&r.animators.length>0}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<o&&(o=f,s=c)}for(var d=0;d<32;d++){var v=s+u;H_[0]=au(n[0],a[0],i[0],s),H_[1]=au(n[1],a[1],i[1],s),U_[0]=au(n[0],a[0],i[0],v),U_[1]=au(n[1],a[1],i[1],v);var f=Z_(H_,e)-l;if(AI(f)<.01)break;var p=Z_(U_,e)-l;u/=2,f<0?p>=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<a;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},r.prototype.eachEdge=function(e,t){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=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<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(e.call(a,f,l))return;s.push(f),f.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=a[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,n=this.edges,a=0;a<t.length;a++)e.addNode(t[a].id,t[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r}(),Hs=function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e==null?"":e,this.dataIndex=t==null?-1:t}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=Et(),t=Et(),n=0;n<this.edges.length;n++){var a=this.edges[n];if(!(a.dataIndex<0)){e.set(a.dataIndex,!0);for(var i=[a.node1],o=[a.node2],s=0;s<i.length;){var l=i[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,t.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},r}(),DI=function(){function r(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n==null?-1:n}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=Et(),t=Et();e.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,t.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(i=0;i<a.length;){var l=a[i];i++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},r}();function LI(r,e){return{getValue:function(t){var n=this[r][e];return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,n){this.dataIndex>=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<r.length;o++)i.addNode(nr(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],f=c.source,d=c.target;i.addEdge(f,d,u)&&(l.push(c),s.push(nr(fr(c.id,null),f+" > "+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<i.length;S++){var A=Math.min(Math.max(i[S][0],0),1);c=u+h*A;var T=new v({shape:{startAngle:w,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-_,r:o.r},silent:!0});T.setStyle({fill:i[S][1]}),T.setStyle(y.getLineStyle(["color","width"])),b.push(T),w=c}b.reverse(),N(b,function(L){return s.add(L)});var D=function(L){if(L<=0)return i[0][1];var I;for(I=0;I<i.length;I++)if(i[I][0]>=L&&(I===0?0:i[I-1][0])<L)return i[I][1];return i[I-1][1]};this._renderTicks(t,n,a,D,o,u,c,l,_),this._renderTitleAndDetail(t,n,a,D,o),this._renderAnchor(t,o),this._renderPointer(t,n,a,D,o,u,c,l,_)},e.prototype._renderTicks=function(t,n,a,i,o,s,l,u,c){for(var f=this.group,d=o.cx,v=o.cy,p=o.r,y=+t.get("min"),_=+t.get("max"),g=t.getModel("splitLine"),h=t.getModel("axisTick"),w=t.getModel("axisLabel"),b=t.get("splitNumber"),S=h.get("splitNumber"),A=At(g.get("length"),p),T=At(h.get("length"),p),D=s,L=(l-s)/b,I=L/S,P=g.getModel("lineStyle").getLineStyle(),E=h.getModel("lineStyle").getLineStyle(),R=g.get("distance"),M,B,F=0;F<=b;F++){if(M=Math.cos(D),B=Math.sin(D),g.get("show")){var W=R?R+c:c,j=new yr({shape:{x1:M*(p-W)+d,y1:B*(p-W)+v,x2:M*(p-A-W)+d,y2:B*(p-A-W)+v},style:P,silent:!0});P.stroke==="auto"&&j.setStyle({stroke:i(F/b)}),f.add(j)}if(w.get("show")){var W=w.get("distance")+R,H=Od(qe(F/b*(_-y)+y),w.get("formatter")),K=i(F/b),U=M*(p-A-W)+d,$=B*(p-A-W)+v,ut=w.get("rotate"),ot=0;ut==="radial"?(ot=-D+2*Math.PI,ot>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<s;o++)a[o]=o;return Rt(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function v9(r){var e=r.hostModel,t=e.get("orient");r.each(function(n){var a=r.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,d,v,p;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),p=[[d,v],[d,v]];else{var y=void 0,_=void 0,g=void 0,h=void 0,w=s.get("length");process.env.NODE_ENV!=="production"&&(t==="vertical"&&["top","bottom"].indexOf(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;A<c.length;A++){var T=c[A],D=c[A+1],L=n.getItemModel(T);if(s==="horizontal"){var I=L.get(["itemStyle","width"]);I==null?I=b:(I=At(I,l),i==="ascending"&&(I=-I));var P=S(T,f),E=S(D,f+I);f+=I+h,n.setItemLayout(T,{points:P.concat(E.slice().reverse())})}else{var R=L.get(["itemStyle","height"]);R==null?R=b:(R=At(R,u),i==="ascending"&&(R=-R));var P=S(T,d),E=S(D,d+R);d+=R+h,n.setItemLayout(T,{points:P.concat(E.slice().reverse())})}}v9(n)})}function p9(r){r.registerChartView(u9),r.registerSeriesModel(c9),r.registerLayout(d9),r.registerProcessor(af("funnel"))}var g9=.3,y9=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new Ht,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.dimensions,f=PI(t);s.diff(l).add(d).update(v).remove(p).execute();function d(_){var g=EI(s,o,_,c,u);X_(g,s,_,f)}function v(_,g){var h=l.getItemGraphicEl(g),w=II(s,_,c,u);s.setItemGraphicEl(_,h),_e(h,{shape:{points:w}},t,_),ga(h),X_(h,s,_,f)}function p(_){var g=l.getItemGraphicEl(_);o.remove(g)}if(!this._initialized){this._initialized=!0;var y=m9(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(y)}this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=PI(n),u=this._progressiveEls=[],c=t.start;c<t.end;c++){var f=EI(i,this._dataGroup,c,s,o);f.incremental=!0,X_(f,i,c,l),u.push(f)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(ke);function m9(r,e,t){var n=r.model,a=r.getRect(),i=new de({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),We(i,{shape:{width:a.width,height:a.height}},e,t),i}function II(r,e,t,n){for(var a=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);_9(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function EI(r,e,t,n,a){var i=II(r,t,n,a),o=new tn({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function PI(r){var e=r.get("smooth",!0);return e===!0&&(e=g9),e=hi(e),Bo(e)&&(e=0),{smooth:e}}function X_(r,e,t,n){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=e.getItemModel(t),i=a.getModel("emphasis");Er(r,a,"lineStyle"),Xe(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function _9(r,e){return e==="category"?r==null:r==null||isNaN(r)}var w9=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.getInitialData=function(t,n){return xi(null,this,{useEncodeDefaulter:Lt(b9,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){t===o&&i.push(a.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(ze);function b9(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return N(e.dimensions,function(n){var a=x9(n);t[n]=a}),t}}function x9(r){return+r.replace("dim","")}var S9=["lineStyle","opacity"],A9={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,i){t.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(S9,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};function T9(r){C9(r),D9(r)}function C9(r){if(!r.parallel){var e=!1;N(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function D9(r){var e=Pe(r.parallelAxis);N(e,function(t){if(zt(t)){var n=t.parallelIndex||0,a=Pe(r.parallel)[n];a&&a.parallelAxisDefault&&qt(t,a.parallelAxisDefault,!1)}})}var L9=5,M9=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._model=t,this._api=a,this._handlers||(this._handlers={},N(I9,function(i,o){a.getZr().on(o,this._handlers[o]=Lt(i,this))},this)),Wl(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,n){Pc(this,"_throttledDispatchExpand"),N(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(lt({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Ue),I9={mousedown:function(r){j_(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(j_(this,"click")&&e){var t=[r.offsetX,r.offsetY],n=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(n>L9)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.span<a)&&(e[1-n]=e[n]+l.sign*a),f=$_(e,n),i!=null&&f.span>i&&(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;c<a;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=e.getValues(s,c),v=0,p=o.length;v<p;v++){var y=l[v].getActiveState(d[v]);if(y==="inactive"){f="inactive";break}}}t(f,c)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,a=0,i=e.length;a<i;a++)t.get(e[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return ma([e,0],n.transform)},r.prototype.getAxisLayout=function(e){return Wt(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,a=t.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",c=t.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):d&&c&&s>i*(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<o[0]?(s=r*i,c=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*n-e.axisExpandWindow[0],l=n,u=!0):(s=t-(a-1-r)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function z9(r,e){var t=[];return r.eachComponent("parallel",function(n,a){var i=new N9(n,r,e);i.name="parallel_"+a,i.resize(n,e),n.coordinateSystem=i,i.model=n,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",ir).models[0];n.coordinateSystem=a.coordinateSystem}}),t}var V9={create:z9},K_=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return Qo([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var n=this.activeIntervals=Wt(t);if(n)for(var a=n.length-1;a>=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;i<o;i++)if(n[i][0]<=t&&t<=n[i][1])return"active";return"inactive"},e}(le);rr(K_,Xc);var Zs=!0,Sf=Math.min,su=Math.max,F9=Math.pow,G9=1e4,W9=6,H9=6,BI="globalPan",U9={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Z9={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},zI={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Y9=0,Q_=function(r){J(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!=="production"&&Vt(t),n._zr=t,n.group=new Ht,n._uid="brushController_"+Y9++,N(J9,function(a,i){this._handlers[i]=Lt(a,this)},n),n}return e.prototype.enableBrush=function(t){return process.env.NODE_ENV!=="production"&&Vt(this._mounted),this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||OH(n,BI,this._uid),N(this._handlers,function(a,i){n.on(i,a)}),this._brushType=t.brushType,this._brushOption=qt(Wt(zI),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;BH(t,BI,this._uid),N(this._handlers,function(n,a){t.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};N(t,function(a){n[a.panelId]=Wt(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){process.env.NODE_ENV!=="production"&&Vt(this._mounted),t=ht(t,function(d){return qt(Wt(zI),d,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new bi(a,t,u,l).add(c).update(c).remove(f).execute(),this;function l(d,v){return(d.id!=null?d.id:n+v)+"-"+d.brushType}function u(d,v){return l(d.__brushOption,v)}function c(d,v){var p=t[d];if(v!=null&&a[v]===s)i[d]=a[v];else{var y=i[d]=v!=null?(a[v].__brushOption=p,a[v]):FI(o,VI(o,p));J_(o,y)}}function f(d){a[d]!==s&&o.group.remove(a[d])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),r1(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Rn);function VI(r,e){var t=zd[e.brushType].createCover(r,e);return t.__brushOption=e,WI(t,e),r.group.add(t),t}function FI(r,e){var t=t1(e);return t.endCreating&&(t.endCreating(r,e),WI(e,e.__brushOption)),e}function GI(r,e){var t=e.__brushOption;t1(e).updateCoverShape(r,e,t.range,t)}function WI(r,e){var t=e.z;t==null&&(t=G9),r.traverse(function(n){n.z=t,n.z2=t})}function J_(r,e){t1(e).updateCommon(r,e),GI(r,e)}function t1(r){return zd[r.__brushOption.brushType]}function e1(r,e,t){var n=r._panels;if(!n)return Zs;var a,i=r._transform;return N(n,function(o){o.isTargetByCursor(e,t,i)&&(a=o)}),a}function HI(r,e){var t=r._panels;if(!t)return Zs;var n=e.__brushOption.panelId;return n!=null?t[n]:Zs}function r1(r){var e=r._covers,t=e.length;return N(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function Ys(r,e){var t=ht(r._covers,function(n){var a=n.__brushOption,i=Wt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function X9(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],a=t[0]-n[0],i=t[1]-n[1],o=F9(a*a+i*i,.5);return o>W9}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;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Zs||s.panelId===i.panelId)&&zd[s.brushType].contain(a[o],t[0],t[1]))return}i&&n.setCursorStyle("crosshair")}}function s1(r){var e=r.event;e.preventDefault&&e.preventDefault()}function l1(r,e,t){return r.childOfName("main").contain(e,t)}function qI(r,e,t,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),X9(r)||a){if(i&&!a){o.brushMode==="single"&&r1(r);var l=Wt(o);l.brushType=KI(l.brushType,i),l.panelId=i===Zs?null:i.panelId,a=r._creatingCover=VI(r,l),r._covers.push(a)}if(a){var u=zd[KI(r._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(o1(r,a,r._track)),n&&(FI(r,a),u.updateCommon(r,a)),GI(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&e1(r,e,t)&&r1(r)&&(s={isEnd:n,removeOnClick:!0});return s}function KI(r,e){return r==="auto"?(process.env.NODE_ENV!=="production"&&Vt(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):r}var J9={mousedown:function(r){if(this._dragging)QI(this,r);else if(!r.target||!r.target.draggable){s1(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=e1(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(Q9(this,r,n),this._dragging){s1(r);var a=qI(this,r,n,!1);a&&Ys(this,a)}},mouseup:function(r){QI(this,r)}};function QI(r,e){if(r._dragging){s1(e);var t=e.offsetX,n=e.offsetY,a=r.group.transformCoordToLocal(t,n),i=qI(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Ys(r,i)}}function tZ(r,e,t){var n=r._zr;return e<0||e>n.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<o.length;l++)if(o[l].depth!=null&&o[l].depth>=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<e.length;d++)s[d]=1;for(var d=0;d<r.length;d++)l[d]=r[d].inEdges.length,l[d]===0&&u.push(r[d]);for(var v=-1;u.length;){for(var p=0;p<u.length;p++){var y=u[p],_=y.hostGraph.data.getRawDataItem(y.dataIndex),g=_.depth!=null&&_.depth>=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;h<y.outEdges.length;h++){var w=y.outEdges[h],b=e.indexOf(w);s[b]=0;var S=w.node2,A=r.indexOf(S);--l[A]===0&&c.indexOf(S)<0&&c.push(S)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var T=v>f-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;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}i=a,a=[],++o}N(r,function(f){iE(f)||f.setLayout({depth:Math.max(0,n-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&bZ(r,n)}function bZ(r,e){N(r,function(t){!iE(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function xZ(r,e,t){N(r,function(n){var a=n.getLayout().depth*e;t==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function SZ(r,e,t,n,a,i,o){var s=AZ(r,o);TZ(s,e,t,n,a,o),c1(s,a,t,n,o);for(var l=1;i>0;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;c<o&&(o=c)}),N(r,function(s){N(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),N(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function c1(r,e,t,n,a){var i=a==="vertical"?"x":"y";N(r,function(o){o.sort(function(y,_){return y.getLayout()[i]-_.getLayout()[i]});for(var s,l,u,c=0,f=o.length,d=a==="vertical"?"dx":"dy",v=0;v<f;v++)l=o[v],u=c-l.getLayout()[i],u>0&&(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;++i<a;){var o=+e(r[i],t);isNaN(o)||(n+=o)}return n}function EZ(r,e,t){N(r,function(n){N(n,function(a){if(a.inEdges.length){var i=mo(a.inEdges,MZ,t)/mo(a.inEdges,Vd);if(isNaN(i)){var o=a.inEdges.length;i=o?mo(a.inEdges,IZ,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 PZ(r,e){var t=e==="vertical"?"x":"y";N(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[t]-i.node2.getLayout()[t]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[t]-i.node1.getLayout()[t]})}),N(r,function(n){var a=0,i=0;N(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),N(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function kZ(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),n=t.nodes,a=t.edges;if(n.length){var i=1/0,o=-1/0;N(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(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();i<a.length;i++)t.moveTo(a[i][0],a[i][1]),i++,t.lineTo(a[i][0],a[i][1])},e}(oe);function lE(r,e,t,n,a){var i=r.ends,o=new BZ({shape:{points:a?zZ(i,n,r):i}});return uE(r,o,e,t,a),o}function uE(r,e,t,n,a){var i=t.hostModel,o=gs[a?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,n),e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(n),l=s.getModel("emphasis");Er(e,s),Xe(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function zZ(r,e,t){return ht(r,function(n){return n=n.slice(),n[e]=t.initBaseline,n})}var Af=N;function VZ(r){var e=FZ(r);Af(e,function(t){var n=t.seriesModels;n.length&&(GZ(t),Af(n,function(a,i){WZ(a,t.boxOffsetList[i],t.boxWidthList[i])}))})}function FZ(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=te(t,a);i<0&&(i=t.length,t[i]=a,e[i]={axis:a,seriesModels:[]}),e[i].seriesModels.push(n)}),e}function GZ(r){var e=r.axis,t=r.seriesModels,n=t.length,a=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;Af(t,function(p){l=Math.max(l,p.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Af(t,function(p){var y=p.get("boxWidth");ft(y)||(y=[y,y]),o.push([At(y[0],s)||0,At(y[1],s)||0])});var c=s*.8-2,f=c/n*.3,d=(c-f*(n-1))/n,v=d/2-c/2;Af(t,function(p,y){i.push(v),v+=f+d,a.push(Math.min(Math.max(d,o[y][0]),o[y][1]))})}function WZ(r,e,t){var n=r.coordinateSystem,a=r.getData(),i=t/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),c=a.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<a.count();f++){var d=a.get(u,f),v=w(d,c[2],f),p=w(d,c[0],f),y=w(d,c[1],f),_=w(d,c[3],f),g=w(d,c[4],f),h=[];b(h,y,!1),b(h,_,!0),h.push(p,y,g,_),S(h,p),S(h,g),S(h,v),a.setItemLayout(f,{initBaseline:v[s],ends:h})}function w(A,T,D){var L=a.get(T,D),I=[];I[o]=A,I[s]=L;var P;return isNaN(A)||isNaN(L)?P=[NaN,NaN]:(P=n.dataToPoint(I),P[o]+=e),P}function b(A,T,D){var L=T.slice(),I=T.slice();L[o]+=i,I[o]-=i,D?A.push(L,I):A.push(I,L)}function S(A,T){var D=T.slice(),L=T.slice();D[o]-=i,L[o]+=i,A.push(D,L)}}function HZ(r,e){e=e||{};for(var t=[],n=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<r.length;o++){var s=zn(r[o].slice()),l=gy(s,.25),u=gy(s,.5),c=gy(s,.75),f=s[0],d=s[s.length-1],v=(a==null?1.5:a)*(c-l),p=i?f:Math.max(f,l-v),y=i?d:Math.min(d,c+v),_=e.itemNameFormatter,g=Rt(_)?_({value:o}):Ct(_)?_.replace("{value}",o+""):o+"";t.push([g,p,l,u,c,y]);for(var h=0;h<s.length;h++){var w=s[h];if(w<p||w>y){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;n<e.ends.length;n++)if(r.contain(e.ends[n][0],e.ends[n][1])){t=!1;break}return t}function d1(r,e,t,n){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,Er(r,a);var i=e.getItemLayout(t).sign;N(r.states,function(s,l){var u=a.getModel(l),c=f1(i,u),f=h1(i,u)||c,d=s.style||(s.style={});c&&(d.fill=c),f&&(d.stroke=f)});var o=a.getModel("emphasis");Xe(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function rY(r,e){return ht(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var nY=function(){function r(){}return r}(),p1=function(r){J(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new nY},e.prototype.buildPath=function(t,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];t.moveTo(o,a[i++]),t.lineTo(o,a[i++])}else i+=3},e}(oe);function fE(r,e,t,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new p1({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new p1({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new p1({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),g1(1,o,r),g1(-1,s,r),g1(0,l,r),n&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function g1(r,e,t,n){var a=h1(r,t)||f1(r,t),i=t.getModel("itemStyle").getItemStyle(QZ);e.useStyle(i),e.style.fill=null,e.style.stroke=a}var hE=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,n,a){var i=n.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(ze);rr(hE,oE,!0);function aY(r){!r||!ft(r.series)||N(r.series,function(e){zt(e)&&e.type==="k"&&(e.type="candlestick")})}var iY={seriesType:"candlestick",plan:Gl(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),n=oY(r,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=ht(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],f=l[2],d=l[3];if(t.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:v};function v(y,_){for(var g,h=_.getStore();(g=y.next())!=null;){var w=h.get(s,g),b=h.get(u,g),S=h.get(c,g),A=h.get(f,g),T=h.get(d,g),D=Math.min(b,S),L=Math.max(b,S),I=W(D,w),P=W(L,w),E=W(A,w),R=W(T,w),M=[];j(M,P,0),j(M,I,1),M.push(K(R),K(P),K(E),K(I));var B=_.getItemModel(g),F=!!B.get(["itemStyle","borderColorDoji"]);_.setItemLayout(g,{sign:vE(h,g,b,S,c,F),initBaseline:b>S?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:t<n?o=1:o=i?0:e>0?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;s<i;s++){var l=sr(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}dE(o,t)},e.prototype.updateEffectAnimation=function(t){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}dE(a,t)},e.prototype.highlight=function(){gi(this)},e.prototype.downplay=function(){yi(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,n){var a=this,i=t.hostModel;this.childAt(0).updateData(t,n);var o=this.childAt(1),s=t.getItemModel(n),l=t.getItemVisual(n,"symbol"),u=Ul(t.getItemVisual(n,"symbolSize")),c=t.getItemVisual(n,"style"),f=c&&c.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse(function(_){_.setStyle("fill",f)});var v=As(t.getItemVisual(n,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var p=t.getItemVisual(n,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var y={};y.showEffectOn=i.get("showEffectOn"),y.rippleScale=s.get(["rippleEffect","scale"]),y.brushType=s.get(["rippleEffect","brushType"]),y.period=s.get(["rippleEffect","period"])*1e3,y.effectOffset=n/t.count(),y.z=i.getShallow("z")||0,y.zlevel=i.getShallow("zlevel")||0,y.symbolType=l,y.color=f,y.rippleEffectColor=s.get(["rippleEffect","color"]),y.rippleNumber=s.get(["rippleEffect","number"]),y.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(y):this.startEffectAnimation(y),this._effectCfg=y):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(_){_==="emphasis"?y.showEffectOn!=="render"&&a.startEffectAnimation(y):_==="normal"&&y.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=y,Xe(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Ht),uY=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._symbolDraw=new tf(lY)},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var n=t.coordinateSystem,a=n&&n.getArea&&n.getArea();return t.get("clip",!0)?a:null},e.prototype.updateTransform=function(t,n,a){var i=t.getData();this.group.dirty();var o=rf("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var n=t.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=TB(n.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(ke),cY=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.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(ze);function fY(r){r.registerChartView(uY),r.registerSeriesModel(cY),r.registerLayout(rf("effectScatter"))}var pE=function(r){J(e,r);function e(t,n,a){var i=r.call(this)||this;return i.add(i.createLine(t,n,a)),i._updateEffectSymbol(t,n),i}return e.prototype.createLine=function(t,n,a){return new V_(t,n,a)},e.prototype._updateEffectSymbol=function(t,n){var a=t.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");ft(o)||(o=[o,o]);var l=t.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=sr(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,n))},e.prototype._updateEffectAnimation=function(t,n,a){var i=this.childAt(1);if(i){var o=t.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),c=n.get("constantSpeed"),f=nr(n.get("delay"),function(v){return v/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(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<t.__t?(t.scaleY=Hi(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Hi(n,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,n){this.childAt(0).updateLayout(t,n);var a=t.getItemModel(n).getModel("effect");this._updateEffectAnimation(t,a,n)},e}(Ht),gE=function(r){J(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createPolyline(t,n,a),i}return e.prototype._createPolyline=function(t,n,a){var i=t.getItemLayout(n),o=new tn({shape:{points:i}});this.add(o),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(n)}};_e(o,s,i,n),this._updateCommonStl(t,n,a)},e.prototype._updateCommonStl=function(t,n,a){var i=this.childAt(0),o=t.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,c=a&&a.emphasisDisabled;if(!a||t.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}i.useStyle(t.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var d=i.ensureState("emphasis");d.style=s,Xe(this,l,u,c)},e.prototype.updateLayout=function(t,n){var a=this.childAt(0);a.setShape("points",t.getItemLayout(n))},e}(Ht),hY=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,n,a){return new gE(t,n,a)},e.prototype._updateAnimationPoints=function(t,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Hi(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var n=t.__t<1?t.__t:2-t.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);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;o<a.length;){var s=a[o++];if(s>0){t.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)t.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],c=a[o++],f=a[o++],d=a[o++];if(t.moveTo(u,c),i>0){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;u<i.length;){var c=i[u++];if(c>0)for(var f=i[u++],d=i[u++],v=1;v<c;v++){var p=i[u++],y=i[u++];if(Ji(f,d,p,y,s,t,n))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],d=i[u++],p=i[u++],y=i[u++];if(o>0){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;u<a.length;){var c=a[u++],f=a[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}t=this._rect=new Jt(i,o,s,l)}return t},e}(oe),pY=function(){function r(){this.group=new Ht}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],a=t.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,t),l.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new dY({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=Zt(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(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;c<a.end;c++)u+=r.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,d=[],c=a.start;c<a.end;c++){var v=r.getLineCoords(c,o);t&&(s[f++]=v);for(var p=0;p<v;p++)d=e.dataToPoint(o[p],!1,d),s[f++]=d[0],s[f++]=d[1]}i.setLayout("linesPoints",s)}else for(var c=a.start;c<a.end;c++){var y=i.getItemModel(c),v=r.getLineCoords(c,o),_=[];if(t)for(var g=0;g<v;g++)_.push(e.dataToPoint(o[g]));else{_[0]=e.dataToPoint(o[0]),_[1]=e.dataToPoint(o[1]);var h=y.get(["lineStyle","curveness"]);+h&&(_[2]=[(_[0][0]+_[1][0])/2-(_[0][1]-_[1][1])*h,(_[0][1]+_[1][1])/2-(_[1][0]-_[0][0])*h])}i.setItemLayout(c,_)}}}}},gY=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._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=a.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(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;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),ye(t[0])){for(var a=t.length,i=new yY(a),o=new mY(a),s=0,l=0,u=0,c=0;c<a;){u++;var f=t[c++];i[l++]=s+n,i[l++]=f;for(var d=0;d<f;d++){var v=t[c++],p=t[c++];if(o[s++]=v,o[s++]=p,c>a&&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;p<v;++p){var y=e[p],_=y[0],g=y[1],h=y[2],w=a(h);d.globalAlpha=w,d.drawImage(s,_-c,g-c)}if(!f.width||!f.height)return f;for(var b=d.getImageData(0,0,f.width,f.height),S=b.data,A=0,T=S.length,D=this.minOpacity,L=this.maxOpacity,I=L-D;A<T;){var w=S[A+3]/256,P=Math.floor(w*(xY-1))*4;if(w>0){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<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&t[s]}}function TY(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(n){return n>=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;P<i;P++){var E=void 0,R=_.getItemVisual(P,"style");if(l){var M=_.get(I[0],P),B=_.get(I[1],P);if(isNaN(_.get(I[2],P))||isNaN(M)||isNaN(B)||M<f[0]||M>f[1]||B<d[0]||B>d[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]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=m1(s,o)-l:e?c=n.coordSysExtent[i.index][u]-l:c=t[i.wh];a.boundingLength=c,e&&(a.repeatCutLength=t[i.wh]);var d=i.xy==="x",v=s.inverse;a.pxSign=d&&!v||!d&&v?c>=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,c<u?lu(y,null,p(c),t,n):lu(y,null,{scaleX:0,scaleY:0},t,n,function(){a.remove(y)}),c++});c<u;c++){var d=xE(t);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,a.add(d);var v=p(c);lu(d,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},t,n)}function p(y){var _=s.slice(),g=t.pxSign,h=y;return(t.symbolRepeatDirection==="start"?g>0: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;D<T.length;D++){var L=i.getItemLayout(T[D]),I=L.x,P=L.y0,E=L.y;b.push(I,P),S.push(I,P+E),A=i.getItemVisual(T[D],"style")}var R,M=i.getItemLayout(T[0]),B=t.getModel("label"),F=B.get("margin"),W=t.getModel("emphasis");if(_==="add"){var j=p[g]=new Ht;R=new cL({shape:{points:b,stackedOnPoints:S,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),j.add(R),s.add(j),t.isAnimationEnabled()&&R.setClipPath(GY(R.getBoundingRect(),t,function(){R.removeClipPath()}))}else{var j=w[h];R=j.childAt(0),s.add(j),p[g]=j,_e(R,{shape:{points:b,stackedOnPoints:S}},t),ga(R)}Pr(R,mr(t),{labelDataIndex:T[D-1],defaultText:i.getName(T[D-1]),inheritColor:A.fill},{normal:{verticalAlign:"middle"}}),R.setTextConfig({position:null,local:!0});var H=R.getTextContent();H&&(H.x=M.x-F,H.y=M.y0+M.y/2),R.useStyle(A),i.setItemGraphicEl(g,R),Er(R,t),Xe(R,W.get("focus"),W.get("blurScope"),W.get("disabled"))}this._layersSeries=l,this._layers=p},e.type="themeRiver",e}(ke);function GY(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:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),n}var w1=2,WY=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))},e.prototype.fixData=function(t){var n=t.length,a={},i=wy(t,function(d){return a.hasOwnProperty(d[0]+"")||(a[d[0]+""]=-1),d[2]}),o=[];i.buckets.each(function(d,v){o.push({name:v,dataList:d})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";a[f]=l}for(var f in a)a.hasOwnProperty(f)&&a[f]!==l&&(a[f]=l,t[n]=[f,0,u],n++)}return t},e.prototype.getInitialData=function(t,n){for(var a=this.getReferringComponents("singleAxis",ir).models[0],i=a.get("type"),o=Ae(t.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Et(),c=0,f=0;f<s.length;++f)l.push(s[f][w1]),u.get(s[f][w1])||(u.set(s[f][w1],c),c++);var d=Zc(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:qv(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new en(d,this);return v.initData(s),v},e.prototype.getLayerSeries=function(){for(var t=this.getData(),n=t.count(),a=[],i=0;i<n;++i)a[i]=i;var o=t.mapDimension("single"),s=wy(a,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return t.get(o,f)-t.get(o,d)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,n,a){ft(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,v=o[c].indices.length,p=0;p<v;++p){var y=i.get(t[0],o[c].indices[p]),_=Math.abs(y-n);_<=f&&(u=y,f=_,d=o[c].indices[p])}s.push(d)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return _r("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(ze);function HY(r,e){r.eachSeriesByType("themeRiver",function(t){var n=t.getData(),a=t.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=t.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=At(s[0],o.height),s[1]=At(s[1],o.height);var u=o.height-s[0]-s[1];kE(n,t,u)}else{s[0]=At(s[0],o.width),s[1]=At(s[1],o.width);var c=o.width-s[0]-s[1];kE(n,t,c)}n.setLayout("layoutInfo",i)})}function kE(r,e,t){if(r.count())for(var n=e.coordinateSystem,a=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=ht(a,function(_){return ht(_.indices,function(g){var h=n.dataToPoint(r.get(i,g));return h[1]=r.get(o,g),h})}),l=UY(s),u=l.y0,c=t/l.max,f=a.length,d=a[0].indices.length,v,p=0;p<d;++p){v=u[p]*c,r.setItemLayout(a[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:v,y:s[0][p][1]*c});for(var y=1;y<f;++y)v+=s[y-1][p][1]*c,r.setItemLayout(a[y].indices[p],{layerIndex:y,x:s[y][p][0],y0:v,y:s[y][p][1]*c})}}function UY(r){for(var e=r.length,t=r[0].length,n=[],a=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<t;++u)a[u]=(i-n[u])/2;i=0;for(var c=0;c<t;++c){var f=n[c]+a[c];f>i&&(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)<p);d.ignore=!y,N(uc,function(g){var h=g==="normal"?a.getModel("label"):a.getModel([g,"label"]),w=g==="normal",b=w?d:d.ensureState(g),S=t.getFormattedLabel(v,g);w&&(S=S||n.node.name),b.style=Be(h,{},null,g!=="normal",!0),S&&(b.style.text=S);var A=h.get("show");A!=null&&!w&&(b.ignore=!A);var T=_(h,"position"),D=w?f:f.states[g],L=D.style.fill;D.textConfig={outsideFill:h.get("color")==="inherit"?L:null,inside:T!=="outside"};var I,P=_(h,"distance")||0,E=_(h,"align"),R=_(h,"rotate"),M=Math.PI*.5,B=Math.PI*1.5,F=bn(R==="tangential"?Math.PI/2-l:l),W=F>M&&!rc(F-M)&&F<B;T==="outside"?(I=o.r+P,E=W?"right":"left"):!E||E==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,E="center"):E==="left"?(I=o.r0+P,E=W?"right":"left"):E==="right"&&(I=o.r-P,E=W?"left":"right"),b.style.align=E,b.style.verticalAlign=_(h,"verticalAlign")||"middle",b.x=I*u+o.cx,b.y=I*c+o.cy;var j=0;R==="radial"?j=bn(-l)+(W?Math.PI:0):R==="tangential"?j=bn(Math.PI/2-l)+(W?Math.PI:0):ye(R)&&(j=R*Math.PI/180),b.rotation=bn(j)});function _(g,h){var w=g.get(h);return w==null?i.get(h):w}d.dirtyStyle()},e}(Qr),b1="sunburstRootToNode",NE="sunburstHighlight",jY="sunburstUnhighlight";function $Y(r){r.registerAction({type:b1,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(a,i){var o=vf(e,[b1],a);if(o){var s=a.getViewRoot();s&&(e.direction=w_(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:NE,update:"none"},function(e,t,n){e=lt({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=vf(e,[NE],i);o&&(e.dataIndex=o.node.dataIndex)}process.env.NODE_ENV!=="production"&&ar("sunburstHighlight","highlight"),n.dispatchAction(lt(e,{type:"highlight"}))}),r.registerAction({type:jY,update:"updateView"},function(e,t,n){e=lt({},e),process.env.NODE_ENV!=="production"&&ar("sunburstUnhighlight","downplay"),n.dispatchAction(lt(e,{type:"downplay"}))})}var qY=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,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=n;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,f=t.get("renderLabelForZeroData"),d=[];u.eachNode(function(h){d.push(h)});var v=this._oldChildren||[];p(d,v),g(l,u),this._initEvents(),this._oldChildren=d;function p(h,w){if(h.length===0&&w.length===0)return;new bi(w,h,b,b).add(S).update(S).remove(jt(S,null)).execute();function b(A){return A.getId()}function S(A,T){var D=A==null?null:h[A],L=T==null?null:w[T];y(D,L)}}function y(h,w){if(!f&&h&&!h.getValue()&&(h=null),h!==l&&w!==l){if(w&&w.piece)h?(w.piece.updateData(!1,h,t,n,a),s.setItemGraphicEl(h.dataIndex,w.piece)):_(w);else if(h){var b=new RE(h,t,n,a);c.add(b),s.setItemGraphicEl(h.dataIndex,b)}}}function _(h){h&&h.piece&&(c.remove(h.piece),h.piece=null)}function g(h,w){w.depth>0?(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;K<p&&(K=p),j=W+P*K;var U=F.depth-g-(A?-1:1),$=f+D*U,ut=f+D*(U+1),ot=n.getLevelModel(F);if(ot){var it=ot.get("r0",!0),Nt=ot.get("r",!0),Kt=ot.get("radius",!0);Kt!=null&&(it=Kt[0],Nt=Kt[1]),it!=null&&($=At(it,l/2)),Nt!=null&&(ut=At(Nt,l/2))}F.setLayout({angle:K,startAngle:W,endAngle:j,clockwise:L,cx:u,cy:c,r0:$,r:ut})}if(F.children&&F.children.length){var xt=0;N(F.children,function(wt){xt+=E(wt,W+xt)})}return j-W}};if(A){var R=f,M=f+D,B=Math.PI*2;y.setLayout({angle:B,startAngle:v,endAngle:v+B,clockwise:L,cx:u,cy:c,r0:R,r:M})}E(_,v)})}function zE(r,e){var t=r.children||[];r.children=JY(t,e),t.length&&N(r.children,function(n){zE(n,e)})}function JY(r,e){if(Rt(e)){var t=ht(r,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(a,i){return e(a.params,i.params)}),ht(t,function(a){return r[a.index]})}else{var n=e==="asc";return r.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function tX(r){var e={};function t(n,a,i){for(var o=n;o&&o.depth>1;)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;n<Wd.length;n++){var a=Wd[n],i=a?e[a]:e;i&&i.leaveTo&&(t||(t=uu(r).leaveToProps={}),a&&(t[a]=t[a]||{}),lt(a?t[a]:t,i.leaveTo))}}function Ud(r,e,t,n){if(r){var a=r.parent,i=uu(r).leaveToProps;if(i){var o=x1("update",r,e,t,0);o.done=function(){a.remove(r)},r.animateTo(i,o)}else a.remove(r)}}function Xs(r){return r==="all"}function vX(r,e,t){var n=e.style;if(!r.isGroup&&n){if(t){r.useStyle({});for(var a=r.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}e.style=null,r.attr(e),e.style=n}function dX(r,e,t,n,a){{var i=x1("update",r,e,n,t);i.duration>0&&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<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(Xs(s)||te(s,r)>=0){!o&&(o=n[r]={});for(var v=ue(i),c=0;c<v.length;c++){var f=v[c],d=i[f];bX(a[f],d)&&(o[f]=d)}}}}}function QE(r,e,t){var n=e[r];if(n)for(var a=t[r]={},i=ue(n),o=0;o<i.length;o++){var s=i[o];a[s]=qu(n[s])}}function mX(r,e,t){for(var n=e.transition,a=Xs(n)?Ra:Pe(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];process.env.NODE_ENV!=="production"&&JE(o,"el.transition"),t[o]=s}}}function _X(r,e,t){for(var n=0;n<jE.length;n++){var a=jE[n],i=XE[a],o=e[a];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var n=0;n<Ra.length;n++){var s=Ra[n];e[s]!=null&&(t[s]=e[s])}}function wX(r,e,t,n){if(t){var a=r.style,i;if(a){var o=t.transition,s=e.transition;if(o&&!Xs(o)){var l=Pe(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];i[c]=f}}else if(r.getAnimationStyleProps&&(Xs(s)||Xs(o)||te(s,"style")>=0)){var d=r.getAnimationStyleProps(),v=d?d.style:null;if(v){!i&&(i=n.style={});for(var p=ue(t),u=0;u<p.length;u++){var c=p[u];if(v[c]){var f=a[c];i[c]=f}}}}}}}function bX(r,e){return Br(r)?r!==e:r!=null&&isFinite(r)}var JE;process.env.NODE_ENV!=="production"&&(JE=function(r,e){Mt(Gd,r)||Ye("Prop `"+r+"` is not a permitted in `"+e+"`. Only `"+ue(Gd).join("`, `")+"` are permitted.")});var tP=ve(),xX=["percent","easing","shape","style","extra"];function eP(r){r.stopAnimation("keyframe"),r.attr(tP(r))}function Zd(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(ft(e)){N(e,function(s){Zd(r,s,t)});return}var n=e.keyframes,a=e.duration;if(t&&a==null){var i=Tl("enter",t,0);a=i&&i.duration}if(!(!n||!a)){var o=tP(r);N(Wd,function(s){if(!(s&&!r[s])){var l,u=!1;n.sort(function(c,f){return c.percent-f.percent}),N(n,function(c){var f=r.animators,d=s?c[s]:c;if(process.env.NODE_ENV!=="production"&&c.percent>=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<f.length;p++)f[p]!==l&&f[p].targetName===l.targetName&&f[p].stopTracks(v);s&&(o[s]=o[s]||{});var y=s?o[s]:o;N(v,function(_){y[_]=((s?r[s]:r)||{})[_]}),l.whenWithKeys(a*c.percent,d,v,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Ye("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(e.delay||0).duration(a).start(e.easing))}})}}}var Di="emphasis",_o="normal",S1="blur",A1="select",wo=[_o,Di,S1,A1],T1={normal:["itemStyle"],emphasis:[Di,"itemStyle"],blur:[S1,"itemStyle"],select:[A1,"itemStyle"]},C1={normal:["label"],emphasis:[Di,"label"],blur:[S1,"label"],select:[A1,"label"]},SX=["x","y"],AX="e\0\0",Kn={normal:{},emphasis:{},blur:{},select:{}},rP={cartesian2d:iX,geo:sX,single:uX,polar:fX,calendar:hX};function Yd(r){return r instanceof oe}function D1(r){return r instanceof Vn}function TX(r,e){e.copyTransform(r),D1(e)&&D1(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,Yd(e)&&Yd(r)&&e.setShape(r.shape))}var CX=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,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=aP(t,s,n,a);o||l.removeAll(),s.diff(o).add(function(f){I1(a,null,f,u(f,i),t,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&Ud(d,Ci(d).option,t)}).update(function(f,d){var v=o.getItemGraphicEl(d);I1(a,v,f,u(f,i),t,l,s)}).execute();var c=t.get("clip",!0)?ef(t.coordinateSystem,!1,t):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,n,a,i,o){var s=n.getData(),l=aP(n,s,a,i),u=this._progressiveEls=[];function c(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var f=t.start;f<t.end;f++){var d=I1(null,null,f,l(f,o),n,this.group,s);d&&(d.traverse(c),u.push(d))}},e.prototype.eachRendered=function(t){no(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},e.type="custom",e}(ke);function L1(r){var e=r.type,t;if(e==="path"){var n=r.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=uP(n);t=vv(i,null,a,n.layout||"center"),Ci(t).customPathData=i}else if(e==="image")t=new Tr({}),Ci(t).customImagePath=r.style.image;else if(e==="text")t=new pe({});else if(e==="group")t=new Ht;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=nm(e);if(!o){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+e+'" can not be found.'),Te(s)}t=new o}return Ci(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function M1(r,e,t,n,a,i,o){eP(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=SX);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;Mt(u,"textFill")&&(u.fill=u.textFill),Mt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=Yd(e)?l.decal:null;r&&f&&(f.dirty=!0,c=Yl(f,r)),l.__decalPattern=c}if(D1(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Hd(e,n,i,{dataIndex:t,isInit:o,clearStyle:!0}),Zd(e,n.keyframeAnimation,i)}function nP(r,e,t,n,a){var i=e.isGroup?null:e,o=a&&a[r].cfg;if(i){var s=i.ensureState(r);if(n===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),ls(i)}}function DX(r,e,t){if(!r.isGroup){var n=r,a=t.currentZ,i=t.currentZLevel;n.z=a,n.zlevel=i;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<wo.length;s++)LX(n,e,wo[s])}}function LX(r,e,t){var n=t===_o,a=n?e:Xd(e,t),i=a?a.z2:null,o;i!=null&&(o=n?r:r.ensureState(t),o.z2=i||0)}function aP(r,e,t,n){var a=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(process.env.NODE_ENV!=="production"&&(Vt(a,"series.render is required."),Vt(i.prepareCustoms||rP[i.type],"This coordSys does not support custom series.")),o=i.prepareCustoms?i.prepareCustoms(i):rP[i.type](i));for(var s=Ft({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:b,style:A,ordinalRawValue:S,styleEmphasis:T,visual:I,barLayout:P,currentSeriesIndices:E,font:R},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:MX(r.getData())},u,c,f={},d={},v={},p={},y=0;y<wo.length;y++){var _=wo[y];v[_]=r.getModel(T1[_]),p[_]=r.getModel(C1[_])}function g(M){return M===u?c||(c=e.getItemModel(M)):e.getItemModel(M)}function h(M,B){return e.hasItemOption?M===u?f[B]||(f[B]=g(M).getModel(T1[B])):g(M).getModel(T1[B]):v[B]}function w(M,B){return e.hasItemOption?M===u?d[B]||(d[B]=g(M).getModel(C1[B])):g(M).getModel(C1[B]):p[B]}return function(M,B){return u=M,c=null,f={},d={},a&&a(Ft({dataIndexInside:M,dataIndex:e.getRawIndex(M),actionType:B?B.type:null},l),s)};function b(M,B){return B==null&&(B=u),e.getStore().get(e.getDimensionIndex(M||0),B)}function S(M,B){B==null&&(B=u),M=M||0;var F=e.getDimensionInfo(M);if(!F){var W=e.getDimensionIndex(M);return W>=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<wo.length;c++){var f=wo[c];if(f!==_o){var d=Xd(n,f),v=P1(n,d,f);nP(f,u,d,v,Kn)}}return DX(u,n,a),n.type==="group"&&PX(r,u,t,n,a),o>=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<wo.length;d++){var v=wo[d];if(v!==_o){var p=i[v].conOpt;nP(v,c,p,P1(o,p,v),null)}}f?c.dirty():c.markRedraw()}}}}function oP(r,e,t){var n=e?Xd(r,e):r,a=e?P1(r,n,Di):r.style,i=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?e?Xd(s,e):s:null;if(a&&(t.isLegacy||GE(a,i,!!o,!!l))){t.isLegacy=!0;var u=WE(a,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&Vt(c.type==="text",'textContent.type must be "text"')}var f=e?t[e]:t.normal;f.cfg=o,f.conOpt=l}function Xd(r,e){return e?r?r[e]:null:r}function P1(r,e,t){var n=e&&e.style;return n==null&&t===Di&&r&&(n=r.styleEmphasis),n}function PX(r,e,t,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){RX({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:a,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var f=i[c],d=e.childAt(c);f?(f.ignore==null&&(f.ignore=!1),E1(r,d,t,f,a,e)):(process.env.NODE_ENV!=="production"&&Vt(d,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),d.ignore=!0)}for(var v=e.childCount()-1;v>=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<o||p>=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=u<o?1:-1;u<o||u>s;)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;f<a.length;f++)for(var d=0;d<a[f].length;d++)c.push(new yr({shape:$d(t,[u,u+l],a[f][d].coord)}));r.add(Gn(c,{style:Ft(s.getModel("lineStyle").getLineStyle(),Ft(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,n,a,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");N(o,function(f,d){var v=l,p=f.tickValue,y=i[qd(t)],_=t.coordToPoint([y+u,f.coord]),g=t.cx,h=t.cy,w=Math.abs(_[0]-g)/y<.3?"center":_[0]>g?"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<n.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new yr({shape:$d(t,i,n[f].coord)}))}for(var f=0;f<c.length;f++)r.add(Gn(c[f],{style:Ft({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new yr({shape:$d(t,i,a[u][c].coord)}));r.add(Gn(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,n,a,i){if(n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-n[0].coord*f,v=Math.min(i[0],i[1]),p=Math.max(i[0],i[1]),y=e.get("clockwise"),_=1,g=n.length;_<=g;_++){var h=_===g?n[0].coord:n[_].coord,w=u++%l.length;c[w]=c[w]||[],c[w].push(new Qr({shape:{cx:t.cx,cy:t.cy,r0:v,r:p,startAngle:d,endAngle:-h*f,clockwise:y},silent:!0})),d=-h*f}for(var _=0;_<c.length;_++)r.add(Gn(c[_],{style:Ft({fill:l[_%l.length]},s.getAreaStyle()),silent:!0}))}}},mj=["axisLine","axisTickLabel","axisName"],_j=["splitLine","splitArea","minorSplitLine"],wj=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=this._axisGroup,i=this._axisGroup=new Ht;this.group.add(i);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],d=o.getExtent(),v=xj(s,t,f),p=new an(t,v);N(mj,p.add,p),i.add(p.getGroup()),_c(a,i,t),N(_j,function(y){t.get([y,"show"])&&!o.scale.isBlank()&&bj[y](this.group,t,s,f,d,u,c)},this)}},e.type="radiusAxis",e}(zs),bj={splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=t.getAngleAxis(),f=Math.PI/180,d=c.getExtent(),v=Math.abs(d[1]-d[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],y=0;y<i.length;y++){var _=u++%l.length;p[_]=p[_]||[],p[_].push(new gs[v]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[y].coord,0),startAngle:-d[0]*f,endAngle:-d[1]*f,clockwise:c.inverse}}))}for(var y=0;y<p.length;y++)r.add(Gn(p[y],{style:Ft({stroke:l[y%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,n,a,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new mi({shape:{cx:t.cx,cy:t.cy,r:o[c][f].coord}}));r.add(Gn(u,{style:Ft({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,n,a,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,d=1;d<i.length;d++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new Qr({shape:{cx:t.cx,cy:t.cy,r0:f,r:i[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[d].coord}for(var d=0;d<c.length;d++)r.add(Gn(c[d],{style:Ft({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function xj(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function PP(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function kP(r,e){return e.dim+r.model.componentIndex}function Sj(r,e,t){var n={},a=Aj(Ae(e.getSeriesByType(r),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=kP(s,l),c=PP(i),f=a[u][c],d=f.offset,v=f.width,p=s.getOtherAxis(l),y=i.coordinateSystem.cx,_=i.coordinateSystem.cy,g=i.get("barMinHeight")||0,h=i.get("barMinAngle")||0;n[c]=n[c]||[];for(var w=o.mapDimension(p.dim),b=o.mapDimension(l.dim),S=fo(o,w),A=l.dim!=="radius"||!i.get("roundCap",!0),T=p.model,D=T.get("startValue"),L=p.dataToCoord(D||0),I=0,P=o.count();I<P;I++){var E=o.get(w,I),R=o.get(b,I),M=E>=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)<g&&(K=(K<0?-1:1)*g),F=B,W=B+K,j=U-d,H=j-v,S&&(n[c][R][M]=W)}else{var $=p.dataToCoord(E,A)-L,ut=l.dataToCoord(R);Math.abs($)<h&&($=($<0?-1:1)*h),F=ut+d,W=F+v,j=B,H=B+$,S&&(n[c][R][M]=H)}o.setItemLayout(I,{cx:y,cy:_,r0:F,r:W,startAngle:-j*Math.PI/180,endAngle:-H*Math.PI/180,clockwise:j>=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<f&&(g=Math.min(g,u),y.width&&(g=Math.min(g,y.width)),u-=g,y.width=g,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,v;N(i,function(y,_){y.width||(y.width=f),v=y,d+=y.width*(1+l)}),v&&(d-=v.width*l);var p=-d/2;N(i,function(y,_){t[a][_]=t[a][_]||{offset:p,width:y.width},p+=y.width*(1+l)})}),t}var Tj={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Cj={splitNumber:5},Dj=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="polar",e}(Ue);function Lj(r){ae(Tf),zs.registerAxisPointerClass("PolarAxisPointer",nj),r.registerCoordinateSystem("polar",dj),r.registerComponentModel(oj),r.registerComponentView(Dj),eu(r,"angle",sj,Tj),eu(r,"radius",lj,Cj),r.registerComponentView(gj),r.registerComponentView(wj),r.registerLayout(jt(Sj,"bar"))}function H1(r,e){e=e||{};var t=r.coordinateSystem,n=r.axis,a={},i=n.position,o=n.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=f[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),nr(e.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=e.rotate;return d==null&&(d=r.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-d:d,a.z2=1,a}var Mj=["axisLine","axisTickLabel","axisName"],Ij=["splitArea","splitLine"],Ej=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Ht;var l=H1(t),u=new an(t,l);N(Mj,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),N(Ij,function(c){t.get([c,"show"])&&Pj[c](this,this.group,this._axisGroup,t)},this),_c(s,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)},e.prototype.remove=function(){QL(this)},e.type="singleAxis",e}(zs),Pj={splitLine:function(r,e,t,n){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),c=a.isHorizontal(),f=[],d=0,v=a.getTicksCoords({tickModel:i}),p=[],y=[],_=0;_<v.length;++_){var g=a.toGlobalCoord(v[_].coord);c?(p[0]=g,p[1]=u.y,y[0]=g,y[1]=u.y+u.height):(p[0]=u.x,p[1]=g,y[0]=u.x+u.width,y[1]=g);var h=new yr({shape:{x1:p[0],y1:p[1],x2:y[0],y2:y[1]},silent:!0});Dl(h.shape,l);var w=d++%s.length;f[w]=f[w]||[],f[w].push(h)}for(var b=o.getLineStyle(["color"]),_=0;_<f.length;++_)e.add(Gn(f[_],{style:Ft({stroke:s[_%s.length]},b),silent:!0}))}},splitArea:function(r,e,t,n){KL(r,t,n,n)}},Kd=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.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(le);rr(Kd,Xc.prototype);var kj=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.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,n){return this.coordinateSystem.pointToData(t)[0]},e}(ba),RP=["single"],Rj=function(){function r(e,t,n){this.type="single",this.dimension="single",this.dimensions=RP,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=this.dimension,i=new kj(a,sd(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(e,t){e.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();N(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),ql(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){this._rect=hr({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),a=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(a[i],a[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),a=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return a-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return a-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},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;_<f[d].length-1;_++){var g=f[d][_].slice(),h=this._firstDayOfMonth[_];if(p){var w=this._firstDayPoints[_];g[v]=(w[v]+f[0][_+1][v])/2}var b=o.get("formatter"),S=s[+h.m-1],A={yyyy:h.y,yy:(h.y+"").slice(2),MM:h.m,M:+h.m,nameMap:S},T=this._formatterLabel(b,A),D=new pe({z2:30,style:lt(Be(o,{text:T}),this._monthTextPositionControl(g,p,a,u,l)),silent:y});i.add(D)}}},e.prototype._weekTextPositionControl=function(t,n,a,i,o){var s="center",l="middle",u=t[0],c=t[1],f=a==="start";return n==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,n,a,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||Ct(c)){c&&(n=fm(c)||n);var v=n.get(["time","dayOfWeekShort"]);c=v||ht(n.get(["time","dayOfWeekAbbr"]),function(A){return A[0]})}var p=l.getNextNDay(a.end.time,7-a.lweek).time,y=[l.getCellWidth(),l.getCellHeight()];f=At(f,Math.min(y[1],y[0])),u==="start"&&(p=l.getNextNDay(a.start.time,-(7+a.fweek)).time,f=-f);for(var _=s.get("silent"),g=0;g<7;g++){var h=l.getNextNDay(p,g),w=l.dataToRect([h.time],!1).center,b=g;b=Math.abs((g+d)%7);var S=new pe({z2:30,style:lt(Be(s,{text:c[b]}),this._weekTextPositionControl(w,i,u,f,y)),silent:_});o.add(S)}}},e.type="calendar",e}(Ue),Z1=864e5,Uj=function(){function r(e,t,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=Oa(e);var t=e.getFullYear(),n=e.getMonth()+1,a=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+a+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];N([0,1],function(f){c(i,f)&&(o[a[f]]=i[f]*s[f])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=hr(o,l);N([0,1],function(f){c(i,f)||(i[f]=u[a[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t){ft(e)&&(e=e[0]),t==null&&(t=!0);var n=this.getDateInfo(e),a=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=a.start.time&&n.time<a.end.time+Z1))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,t-1,a):this._getDateByWeeksAndDay(t,n-1,a)},r.prototype.convertToPixel=function(e,t,n){var a=zP(t);return a===this?a.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=zP(t);return a===this?a.pointToData(n):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(ft(e)&&e.length===1&&(e=e[0]),ft(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return process.env.NODE_ENV!=="production"&&ua("Invalid date range."),e;var s=this._getRangeInfo(t);return s.start.time>s.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&&t<a.fweek||e===a.weeks&&t>a.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<n.length;a++){var i=n[a];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function $j(r,e){if(r&&(r.hv=e.hv=[VP(e,["left","right"]),VP(e,["top","bottom"])],r.type==="group")){var t=r,n=e;t.width==null&&(t.width=n.width=0),t.height==null&&(t.height=n.height=0)}}var qj=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,n){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,n),this.option.elements=a},e.prototype.optionUpdated=function(t,n){var a=this.option,i=(n?a:t).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=TS(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];N(l,function(c,f){var d=c.newOption;process.env.NODE_ENV!=="production"&&Vt(zt(d)||c.existing,"Empty graphic option definition"),d&&(u.push(d),Yj(c,d),Xj(o,f,d),$j(o[f],d))},this),a.elements=Ae(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(t,n,a){N(t,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(le),GP={path:null,compoundPath:null,group:Ht,image:Tr,text:pe},Qn=ve(),Kj=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._elMap=Et()},e.prototype.render=function(t,n,a){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,a)},e.prototype._updateElements=function(t){var n=t.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");N(n,function(l){var u=fr(l.id,null),c=u!=null?a.get(u):null,f=fr(l.parentId,null),d=f!=null?a.get(f):i,v=l.type,p=l.style;v==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var y=l.textContent,_=l.textConfig;if(p&&GE(p,v,!!_,!!y)){var g=WE(p,v,!0);!_&&g.textConfig&&(_=l.textConfig=g.textConfig),!y&&g.textContent&&(y=g.textContent)}var h=Qj(l);process.env.NODE_ENV!=="production"&&c&&Vt(d===c.parent,"Changing parent is not supported.");var w=l.$action||"merge",b=w==="merge",S=w==="replace";if(b){var A=!c,T=c;A?T=WP(u,d,l.type,a):(T&&(Qn(T).isNew=!1),eP(T)),T&&(Hd(T,h,t,{isInit:A}),HP(T,l,o,s))}else if(S){tp(c,l,a,t);var D=WP(u,d,l.type,a);D&&(Hd(D,h,t,{isInit:!0}),HP(D,l,o,s))}else w==="remove"&&(qE(c,l),tp(c,l,a,t));var L=a.get(u);if(L&&y)if(b){var I=L.getTextContent();I?I.attr(y):L.setTextContent(new pe(y))}else S&&L.setTextContent(new pe(y));if(L){var P=l.clipPath;if(P){var E=P.type,R=void 0,A=!1;if(b){var M=L.getClipPath();A=!M||Qn(M).type!==E,R=A?Y1(E):M}else S&&(A=!0,R=Y1(E));L.setClipPath(R),Hd(R,P,t,{isInit:A}),Zd(R,P.keyframeAnimation,t)}var B=Qn(L);L.setTextConfig(_),B.option=l,Jj(L,t,l),ps({el:L,componentModel:t,itemName:L.name,itemTooltipOption:l.tooltip}),Zd(L,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,n){for(var a=t.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<a.length;c++){var f=a[c],d=fr(f.id,null),v=d!=null?o.get(d):null;if(!(!v||!v.isGroup)){var p=v.parent,y=p===i,_=Qn(v),g=Qn(p);_.width=At(_.option.width,y?s:g.width)||0,_.height=At(_.option.height,y?l:g.height)||0}}for(var c=a.length-1;c>=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<u.length;T++){var D=u[T],L=w[D];S&&(Xs(S)||te(S,D)>=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;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&Vt(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(le);function YP(r){var e={};return N(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var a$=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.select",e}(Cf),j1=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,i){this.dataZoomModel=t,this.ecModel=n,this.api=a},e.type="dataZoom",e}(Ue),i$=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.select",e}(j1),fu=N,XP=zn,o$=function(){function r(e,t,n,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(r$(t)){var n=bo(this._dimName),a=t.getReferringComponents(n,ir).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Wt(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;fu(["start","end"],function(d,v){var p=e[d],y=e[d+"Value"];i[v]==="percent"?(p==null&&(p=o[v]),y=a.parse(Le(p,o,t))):(u=!0,y=y==null?t[v]:a.parse(y),p=Le(y,t,o)),l[v]=y==null||isNaN(y)?t[v]:y,s[v]=p==null||isNaN(p)?o[v]:p}),XP(l),XP(s);var c=this._minMaxSpan;u?f(l,s,t,o,!1):f(s,l,o,t,!0);function f(d,v,p,y,_){var g=_?"Span":"ValueSpan";Us(0,d,p,"all",c["min"+g],c["max"+g]);for(var h=0;h<2;h++)v[h]=Le(d[h],p,y,!0),_&&(v[h]=a.parse(v[h]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=s$(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;fu(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=ht(c,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var p,y,_,g=0;g<c.length;g++){var h=f.get(d[g],v),w=!isNaN(h),b=h<o[0],S=h>o[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='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(A&&A[0]||"")+'" /></body>',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<l[0].length;c++){for(var f=[],d=0;d<l.length;d++)f.push(l[d][c]);u.push(f.join(vu))}e.push(u.join(`
- +`))}),e.join(`
- +
- +`+ep+`
- +
- +`)}function w$(r){return ht(r,function(e){var t=e.getRawData(),n=[e.name],a=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+vu:"")+a.join(vu))}),n.join(`
- +`)}).join(`
- +
- +`+ep+`
- +
- +`)}function b$(r){var e=m$(r);return{value:Ae([_$(e.seriesGroupByCategoryAxis),w$(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
- +
- +`+ep+`
- +
- +`),meta:e.meta}}function rp(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function x$(r){var e=r.slice(0,r.indexOf(`
- +`));if(e.indexOf(vu)>=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<e.length;i++){var o=rp(e[i]).split(q1);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function A$(r){for(var e=r.split(/\n+/g),t=rp(e.shift()),n=[],a=0;a<e.length;a++){var i=rp(e[a]);if(i){var o=i.split(q1),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:t,data:n}}function T$(r,e){var t=r.split(new RegExp(`
- +*`+ep+`
- +*`,"g")),n={series:[]};return N(t,function(a,i){if(x$(a)){var o=S$(a),s=e[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=A$(a);n.series.push(o)}}),n}var C$=function(r){J(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),d=i.get("contentToOption"),v=b$(t);if(Rt(f)){var p=f(n.getOption());Ct(p)?u.innerHTML=p:Oo(p)&&u.appendChild(p)}else{c.readOnly=i.get("readOnly");var y=c.style;y.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",y.color=i.get("textColor"),y.borderColor=i.get("textareaBorderColor"),y.backgroundColor=i.get("textareaColor"),c.value=v.value,u.appendChild(c)}var _=v.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var h="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",w=document.createElement("div"),b=document.createElement("div");h+=";background-color:"+i.get("buttonColor"),h+=";color:"+i.get("buttonTextColor");var S=this;function A(){a.removeChild(o),S._dom=null}Mg(w,"click",A),Mg(b,"click",function(){if(d==null&&f!=null||d!=null&&f==null){process.env.NODE_ENV!=="production"&&Ye("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),A();return}var T;try{Rt(d)?T=d(u,n.getOption()):T=T$(c.value,_)}catch(D){throw A(),new Error("Data view format error "+D)}T&&n.dispatchAction({type:"changeDataView",newOption:T}),A()}),w.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=w.style.cssText=h,!i.get("readOnly")&&g.appendChild(b),g.appendChild(w),o.appendChild(s),o.appendChild(u),o.appendChild(g),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.remove=function(t,n){this._dom&&n.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.getDefaultOption=function(t){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},e}(Jn);function D$(r,e){return ht(r,function(t,n){var a=e&&e[n];if(zt(a)&&!ft(a)){var i=zt(t)&&!ft(t);i||(t={value:t});var o=a.name!=null&&t.name==null;return t=Ft(t,a),o&&delete t.name,t}else return t})}Za({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];N(r.newOption.series,function(n){var a=e.getSeriesByName(n.name)[0];if(!a)t.push(lt({type:"scatter"},n));else{var i=a.get("data");t.push({name:n.name,data:D$(n.data,i)})}}),e.mergeOption(Ft({series:t},r.newOption))});var tk=N,ek=ve();function L$(r,e){var t=K1(r);tk(e,function(n,a){for(var i=t.length-1;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;i<n.length;i++){var o=n[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<nk.length;l++)if(nk[l](a,o))return o}return!0},r}();function J1(r){return r[0]>r[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<n;t++)if(r[t]in e)return r[t]}}var fk=ck(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),H$=ck(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function hk(r,e){if(!r)return e;e=dA(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function U$(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var Z$=hk(H$,"transition"),nw=hk(fk,"transform"),Y$="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ie.transform3dSupported?"will-change:transform;":"");function X$(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function j$(r,e,t){if(!Ct(t)||t==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");e=ys(e);var i=X$(t),o=Math.max(Math.round(a)*1.5,6),s="",l=nw+":",u;te(["left","right"],i)>-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'<div style="'+y.join("")+'"></div>'}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<e.length;l++)Oo(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(dk(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var a=this.el.style,i=vk(n[0],n[1]);N(i,function(o){a[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",ie.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Lt(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},r}(),J$=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),gk(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,n,a,i){var o=this;zt(e)&&Te(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new pe({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:mT(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),N(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),N(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=pk(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var a=this._styleCoord;gk(a,this._zr,e,t),e=a[0],t=a[1];var i=n.style,o=xo(i.borderWidth||0),s=pk(i);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Lt(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function xo(r){return Math.max(0,r)}function pk(r){var e=xo(r.shadowBlur||0),t=xo(r.shadowOffsetX||0),n=xo(r.shadowOffsetY||0);return{left:xo(e-t),right:xo(e+t),top:xo(e-n),bottom:xo(e+n)}}function gk(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var tq=new de({shape:{x:-1,y:-1,width:2,height:2}}),eq=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){if(!(ie.node||!n.getDom())){var a=t.getComponent("tooltip"),i=this._renderMode=j3(a.get("renderMode"));this._tooltipContent=i==="richText"?new J$(n):new Q$(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(t,n,a){if(!(ie.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?Wl(this,"_updatePosition",50,"fixRate"):Pc(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");xP("itemTooltip",this._api,Lt(function(a,i,o){n!=="none"&&(n.indexOf(a)>=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"?`
- +
- +`:"<br/>",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;g<h;g++){var w=_[g];y[w]&&y[w].applyVisual(f,l,u)}}}function fq(r,e,t,n){var a={};return N(r,function(i){var o=br.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(S){return Um(s,f,S)}function c(S,A){FT(s,f,S,A)}for(var f,d=s.getStore();(f=o.next())!=null;){var v=s.getRawDataItem(f);if(!(v&&v.visualMap===!1))for(var p=n!=null?d.get(l,f):f,y=t(p),_=e[y],g=a[y],h=0,w=g.length;h<w;h++){var b=g[h];_[b]&&_[b].applyVisual(p,u,c)}}}}}function hq(r){var e=r.brushType,t={point:function(n){return xk[e].point(n,t,r)},rect:function(n){return xk[e].rect(n,t,r)}};return t}var xk={lineX:Sk(0),lineY:Sk(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Ms(t.range,r[0],r[1])},rect:function(r,e,t){var n=t.range;if(!r||n.length<=1)return!1;var a=r.x,i=r.y,o=r.width,s=r.height,l=n[0];if(Ms(n,a,i)||Ms(n,a+o,i)||Ms(n,a,i+s)||Ms(n,a+o,i+s)||Jt.create(r).contain(l[0],l[1])||bc(a,i,a+o,i,n)||bc(a,i,a,i+s,n)||bc(a+o,i,a+o,i+s,n)||bc(a,i+s,a+o,i+s,n))return!0}}};function Sk(r){var e=["x","y"],t=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[r];return Lf(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[e[r]],n[e[r]]+n[t[r]]];return s[1]<s[0]&&s.reverse(),Lf(s[0],o)||Lf(s[1],o)||Lf(o[0],s)||Lf(o[1],s)}}}}function Lf(r,e){return e[0]<=r&&r<=e[1]}var Ak=["inBrush","outOfBrush"],iw="__ecBrushSelect",ow="__ecInBrushSelectEvent";function Tk(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Q1(e.option,r);t.setInputRanges(e.areas,r)})}function vq(r,e,t){var n=[],a,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),Tk(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Wt(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],d=[],v=[],p=!1;s||(a=u.throttleType,i=u.throttleDelay);var y=ht(o.areas,function(S){var A=yq[S.brushType],T=Ft({boundingRect:A?A(S):void 0},S);return T.selectors=hq(T),T}),_=aw(o.option,Ak,function(S){S.mappingMethod="fixed"});ft(c)&&N(c,function(S){f[S]=1});function g(S){return c==="all"||!!f[S]}function h(S){return!!S.length}r.eachSeries(function(S,A){var T=v[A]=[];S.subType==="parallel"?w(S,A):b(S,A,T)});function w(S,A){var T=S.coordinateSystem;p=p||T.hasAxisBrushed(),g(A)&&T.eachActiveState(S.getData(),function(D,L){D==="active"&&(d[L]=1)})}function b(S,A,T){if(!(!S.brushSelector||gq(o,A))&&(N(y,function(L){o.brushTargetManager.controlSeries(L,S,r)&&T.push(L),p=p||h(T)}),g(A)&&h(T))){var D=S.getData();D.each(function(L){Ck(S,T,D,L)&&(d[L]=1)})}}r.eachSeries(function(S,A){var T={seriesId:S.id,seriesIndex:A,seriesName:S.name,dataIndex:[]};l.selected.push(T);var D=v[A],L=S.getData(),I=g(A)?function(P){return d[P]?(T.dataIndex.push(L.getRawIndex(P)),"inBrush"):"outOfBrush"}:function(P){return Ck(S,D,L,P)?(T.dataIndex.push(L.getRawIndex(P)),"inBrush"):"outOfBrush"};(g(A)?p:h(D))&&cq(Ak,_,L,I)})}),dq(e,a,i,n,t)}function dq(r,e,t,n,a){if(a){var i=r.getZr();if(!i[ow]){i[iw]||(i[iw]=pq);var o=Wl(i,iw,t,e);o(r,n)}}}function pq(r,e){if(!r.isDisposed()){var t=r.getZr();t[ow]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[ow]=!1}}function Ck(r,e,t,n){for(var a=0,i=e.length;a<i;a++){var o=e[a];if(r.brushSelector(n,t,o.selectors,o))return!0}}function gq(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(ft(t)?te(t,e)<0:e!==t)}var yq={rect:function(r){return Dk(r.range)},polygon:function(r){for(var e,t=r.range,n=0,a=t.length;n<a;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[n];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),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<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":Ct(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=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<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=t.model;t._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var n=this._mainGroup.getLocalTransform();return ma(t,n,!0)},e.prototype._findNearestTick=function(t){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-t);c<a&&(a=c,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var n=this.model.getCurrentIndex();t==="+"?t=n+1:t==="-"&&(t=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<t);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",Ek(a[i]).dataIndex<=t)},e.type="timeline.slider",e}(Dq);function Iq(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new rd({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new m0({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Si}}function Eq(r,e){return hr(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function Pq(r,e,t,n){var a=n.style,i=wc(r.get(["controlStyle",e]),n,new Jt(t[0],t[1],t[2],t[3]));return a&&i.setStyle(a),i}function Pk(r,e,t,n,a,i){var o=e.get("color");if(a)a.setColor(o),t.add(a),i&&i.onUpdate(a);else{var s=r.get("symbol");a=sr(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),t.add(a),i&&i.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),n=qt({rectHover:!0,z2:100},n,!0);var u=Ul(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=As(r.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=r.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function kk(r,e,t,n,a,i){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function kq(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var a=t.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),Ft({currentIndex:a.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function Rq(r){var e=r&&r.timeline;ft(e)||(e=e?[e]:[]),N(e,function(t){t&&Nq(t)})}function Nq(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),Rk(r),$s(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});$s(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!$s(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}N(r.data||[],function(a){zt(a)&&!ft(a)&&(!$s(a,"value")&&$s(a,"name")&&(a.value=a.name),Rk(a))})}function Rk(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};N(n,function(o,s){!i[s]&&!$s(a,s)&&(a[s]=o)}),t.label&&!$s(n,"emphasis")&&(n.emphasis=t.label,delete t.label)}function $s(r,e){return r.hasOwnProperty(e)}function Oq(r){r.registerComponentModel(Ik),r.registerComponentView(Mq),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),kq(r),r.registerPreprocessor(Rq)}function lw(r,e){if(!r)return!1;for(var t=ft(r)?r:[r],n=0;n<t.length;n++)if(t[n]&&t[n][e])return!0;return!1}function np(r){$o(r,"label",["show"])}var ap=ve(),Mi=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,n,a){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(ie.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,n){this._mergeOption(t,n,!1,!1)},e.prototype._mergeOption=function(t,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=ap(s)[o];if(!l||!l.data){ap(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&np(l),N(l.data,function(c){c instanceof Array?(np(c[0]),np(c[1])):np(c)}),u=this.createMarkerModelFromSeries(l,this,n),lt(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),ap(s)[o]=u},this)},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return _r("section",{header:this.name,blocks:[_r("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,n){var a=Pv.prototype.getDataParams.call(this,t,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},e.getMarkerModelFromSeries=function(t,n){return ap(t)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(le);rr(Mi,Pv.prototype);var Bq=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="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Mi);function uw(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function zq(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function ip(r,e,t,n,a,i){var o=[],s=fo(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=fw(e,l,r),c=e.indicesOfNearest(l,u)[0];o[a]=e.get(t,c),o[i]=e.get(l,c);var f=e.get(n,c),d=Na(e.get(n,c));return d=Math.min(d,20),d>=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]<h[0]||g[0]>w[1]||g[1]<w[0]),S=!b;f.setItemLayout(d,{points:v,allClipped:S});var A=f.getItemModel(d).getModel("itemStyle").getItemStyle(),T=Nc(l,"color");A.fill||(A.fill=T,Ct(A.fill)&&(A.fill=Dh(A.fill,.4))),A.stroke||(A.stroke=T),f.setItemVisual(d,"style",A)}),f.diff(lp(c).data).add(function(d){var v=f.getItemLayout(d);if(!v.allClipped){var p=new Jr({shape:{points:v.points}});f.setItemGraphicEl(d,p),c.group.add(p)}}).update(function(d,v){var p=lp(c).data.getItemGraphicEl(v),y=f.getItemLayout(d);y.allClipped?p&&c.group.remove(p):(p?_e(p,{shape:{points:y.points}},n,d):p=new Jr({shape:{points:y.points}}),f.setItemGraphicEl(d,p),c.group.add(p))}).remove(function(d){var v=lp(c).data.getItemGraphicEl(d);c.group.remove(v)}).execute(),f.eachItemGraphicEl(function(d,v){var p=f.getItemModel(v),y=f.getItemVisual(v,"style");d.useStyle(f.getItemVisual(v,"style")),Pr(d,mr(p),{labelFetcher:n,labelDataIndex:v,defaultText:f.getName(v)||"",inheritColor:Ct(y.fill)?Dh(y.fill,1):"#000"}),Er(d,p),Xe(d,null,null,p.get(["emphasis","disabled"])),Zt(d).dataModel=n}),lp(c).data=f,c.group.silent=n.get("silent")||t.get("silent")},e.type="markArea",e}(vw);function tK(r,e,t){var n,a,i=["x0","y0","x1","y1"];if(r){var o=ht(r&&r.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return lt(lt({},f),{name:u,ordinalMeta:null})});a=ht(i,function(u,c){return{name:u,type:o[c%2].type}}),n=new en(a,t)}else a=[{name:"value",type:"float"}],n=new en(a,t);var s=ht(t.get("data"),jt(Kq,e,r,t));r&&(s=Ae(s,jt(Qq,r)));var l=r?function(u,c,f,d){var v=u.coord[Math.floor(d/2)][d%2];return so(v,a[d])}:function(u,c,f,d){return so(u.value,a[d])};return n.initData(s,null,l),n.hasItemOption=!0,n}function eK(r){r.registerComponentModel(qq),r.registerComponentView(Jq),r.registerPreprocessor(function(e){lw(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var rK=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},pw=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.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,a=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),ft(n)&&N(n,function(i,o){Ct(i)&&(i={type:i}),n[o]=qt(i,rK(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<t.length;a++){var i=t[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],a=[];t.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();t.isSeriesFiltered(l)||(a=a.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&my(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=Et(),s=ht(i,function(l){return(Ct(l)||ye(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Me(l,this,this.ecModel))},this);this._data=Ae(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;N(i,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;N(t,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;N(t,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&te(this._availableNames,t)>=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;n<a&&!(t=e[n].states.emphasis);)n++;return t&&t.hoverLayer}function yw(r,e,t,n){Uk(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function mw(r,e,t,n){Uk(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}function iK(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function Ef(r,e,t){var n=r==="allSelect"||r==="inverseSelect",a={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),Zk(s,a),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){N(a,function(l,u){s[l?"select":"unSelect"](u)}),Zk(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function Zk(r,e){var t=e||{};return N(r.getData(),function(n){var a=n.get("name");if(!(a===`
- +`||a==="")){var i=r.isSelected(a);Mt(t,a)?t[a]=t[a]&&i:t[a]=i}}),t}function oK(r){r.registerAction("legendToggleSelect","legendselectchanged",jt(Ef,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",jt(Ef,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",jt(Ef,"inverseSelect")),r.registerAction("legendSelect","legendselected",jt(Ef,"select")),r.registerAction("legendUnSelect","legendunselected",jt(Ef,"unSelect"))}function Yk(r){r.registerComponentModel(pw),r.registerComponentView(Wk),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,iK),r.registerSubTypeDefaulter("legend",function(){return"plain"}),oK(r)}var sK=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.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,n,a){var i=Rl(t);r.prototype.init.call(this,t,n,a),Xk(this,t,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),Xk(this,this.option,t)},e.type="legend.scroll",e.defaultOption=ao(pw.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(pw);function Xk(r,e,t){var n=r.getOrient(),a=[1,1];a[n.index]=0,oo(e,t,{type:"box",ignoreSize:!!a})}var jk=Ht,_w=["width","height"],ww=["x","y"],lK=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new jk),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new jk)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,a,i,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=ft(f)?f:[f,f];p("pagePrev",0);var v=n.getModel("pageTextStyle");c.add(new pe({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(y,_){var g=y+"DataIndex",h=wc(n.get("pageIcons",!0)[n.getOrient().name][_],{onclick:Lt(u._pageGo,u,g,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});h.name=y,c.add(h)}},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,c=_w[u],f=ww[u],d=_w[1-u],v=ww[1-u];o&&_s("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),y=l.getBoundingRect(),_=[-y.x,-y.y],g=Wt(a);o&&(g[c]=a[c]-y[c]-p);var h=this._layoutContentAndController(t,i,g,u,c,d,v,f);if(o){if(s==="end")_[u]+=h[c]+p;else{var w=y[c]+p;_[u]-=w,h[f]-=w}h[c]+=y[c]+p,_[1-u]+=h[v]+h[d]/2-y[d]/2,h[d]=Math.max(h[d],y[d]),h[v]=Math.min(h[v],y[v]+_[1-u]),l.x=_[0],l.y=_[1],l.markRedraw()}return h},e.prototype._layoutContentAndController=function(t,n,a,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;_s(t.get("orient"),c,t.get("itemGap"),i?a.width:null,i?null:a.height),_s("horizontal",d,t.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),p=d.getBoundingRect(),y=this._showController=v[o]>a[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<h.i&&(h=g,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=w;return p;function b(A){if(A){var T=A.getBoundingRect(),D=T[l]+A[l];return{s:D,e:D+T[s],i:A.__legendDataIndex}}}function S(A,T){return A.e>=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;a<n.length;a++){var i=n[a],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||$k(t,o))}}}function $k(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function pK(r,e){var t={model:e,containsPoint:jt(yK,e),dispatchAction:jt(gK,r),dataZoomInfoMap:null,controller:null},n=t.controller=new uf(r.getZr());return N(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function gK(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function yK(r,e,t,n){return r.coordinateSystem.containPoint([t,n])}function mK(r){var e,t="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[t+s]>n[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;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new de,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=zn(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(p){var y=ds(a.handles[p].parent,this.group),_=pv(p===0?"right":"left",y),g=this._handleWidth/2+AK,h=ma([d[p]+(p===0?-g:g),this._size[1]/2],y);i[p].setStyle({x:h[0],y:h[1],verticalAlign:o===kf?"middle":_,align:o===kf?_:"center",text:s[p]})}},e.prototype._formatLabel=function(t,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=t==null||isNaN(t)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return Rt(i)?i(t,s):Ct(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:a,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onDragMove=function(t,n,a,i){this._dragging=!0,si(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ma([n,a],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(a[0]<0||a[0]>n[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]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,a=this.getExtent();return(n[0]<=a[0]||n[0]<=t)&&(n[1]>=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;l<c&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var f=1;l<c;l++)(!a.length||a[a.length-1]<n[l])&&(f&&(i.length&&o(i[i.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var d=i.length;return{stops:i,outerColors:[d?i[0].color:"transparent",d?i[d-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=ao(fp.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(fp);function oR(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,a=(t[1]-t[0])/n,i=t[0],o=[],s=0;s<=n&&i<t[1];s++)o.push(i),i+=a;return o.push(t[1]),o}var sR=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,a,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,a,i)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,a=kl(n.get("padding")||0),i=t.getBoundingRect();t.add(new de({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function c(v,p){s[v]=p}var f=o.controllerVisuals[i||o.getValueState(t)],d=br.prepareVisualTypes(f);return N(d,function(v){var p=f[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",p=f.__alphaForOpacity),br.dependsOn(v,n)&&p&&p.applyVisual(t,u,c)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,a=this.api;Lv(t,n.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},e.prototype.doRender=function(t,n,a,i){},e.type="visualMap",e}(Ue),lR=[["left","right","width"],["top","bottom","height"]];function uR(r,e,t){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=lR[o],l=[0,null,10],u={},c=0;c<3;c++)u[lR[1-o][c]]=l[c],u[s[c]]=c===2?t[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],d=hr(u,i,n.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<i[f[1]]*.5?0:1]}function hp(r,e){return N(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Qa=Le,OK=N,cR=Math.min,Tw=Math.max,BK=12,zK=6,VK=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,n){r.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=Lt(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Lt(this._hideIndicator,this)},e.prototype.doRender=function(t,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var a=t.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),f=this._applyTransform(a===0?"bottom":"top",u),d=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new pe({style:Be(v,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:i})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=uR(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new Ht;u.add(c),c.add(a.outOfRange=fR()),c.add(a.inRange=fR(null,s?vR(this._orient):null,Lt(this._dragHandle,this,"all",!1),Lt(this._dragHandle,this,"all",!0))),c.setClipPath(new de({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),d=Tw(f.width,f.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,d,o),this._createHandle(n,u,1,i,d,o)),this._createIndicator(n,u,i,d,o),t.add(u)},e.prototype._createHandle=function(t,n,a,i,o,s){var l=Lt(this._dragHandle,this,a,!1),u=Lt(this._dragHandle,this,a,!0),c=va(t.get("handleSize"),i[0]),f=sr(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=vR(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){si(g.event)}}),f.x=i[0]/2,f.useStyle(t.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),cs(f,!0),n.add(f);var v=this.visualMapModel.textStyleModel,p=new pe({cursor:d,draggable:!0,drift:l,onmousemove:function(g){si(g.event)},ondragend:u,style:Be(v,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var y=[c,0],_=this._shapes;_.handleThumbs[a]=f,_.handleLabelPoints[a]=y,_.handleLabels[a]=p},e.prototype._createIndicator=function(t,n,a,i,o){var s=va(t.get("indicatorSize"),a[0]),l=sr(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Tr){var c=l.style;l.useStyle(lt({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,d=new pe({silent:!0,invisible:!0,style:Be(f,{x:0,y:0,text:""})});this.group.add(d);var v=[(o==="horizontal"?i/2:zK)+a[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=d,p.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():hR(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),a=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Qa(n[0],a,i,!0),Qa(n[1],a,i,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];Us(n,i,o,t,0);var s=a.getExtent();this._dataInterval=[Qa(i[0],o,s,!0),Qa(i[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new yc(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var a=100,i=[],o=(t[1]-t[0])/a;i.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=t[0]+o*s;if(l>t[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;P<I.length;P++)this.api.enterBlur(I[P])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,i=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);i[1]=cR(Tw(0,i[1]),a[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();t=cR(Tw(o[0],t),o[1]);var l=FK(a,s,o),u=[t-l,t+l],c=Qa(t,o,s,!0),f=[Qa(u[0],o,s,!0),Qa(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[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<n.length;a++)this.api.leaveBlur(n[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",hp(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,n,a,i){var o=ds(n,i?null:this.group);return ft(t)?ma(t,o,a):pv(t,o,a)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(sR);function fR(r,e,t,n){return new Jr({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){si(a.event)},ondragend:n})}function FK(r,e,t){var n=BK/2,a=r.get("hoverLinkDataSize");return a&&(n=Qa(a,e,t,!0)/2),n}function hR(r){var e=r.get("hoverLinkOnHandle");return!!(e==null?r.get("realtime"):e)}function vR(r){return r==="vertical"?"ns-resize":"ew-resize"}var GK={type:"selectDataRange",event:"dataRangeSelected",update:"update"},WK=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},HK=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||t.push(fq(n.stateList,n.targetVisuals,Lt(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(Lt(UK,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=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;s<l;s++){var u=i[s],c=a[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(t,f,d)}return o.color;function f(v){return o[v]}function d(v,p){o[v]=p}}var dR=N;function ZK(r){var e=r&&r.visualMap;ft(e)||(e=e?[e]:[]),dR(e,function(t){if(t){pu(t,"splitList")&&!pu(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&ft(n)&&dR(n,function(a){zt(a)&&(pu(a,"start")&&!pu(a,"min")&&(a.min=a.start),pu(a,"end")&&!pu(a,"max")&&(a.max=a.end))})}})}function pu(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var pR=!1;function gR(r){pR||(pR=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0: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];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),gS(r),N(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;N(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),mR(e,r)},pieces:function(r){var e=this.option;N(e.pieces,function(t,n){zt(t)||(t={value:t});var a={text:"",index:n};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var i=a.value=t.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],v=0;v<3&&o[f]==null;v++)o[f]=t[d[v]],s[f]=l[v],c[f]=v===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),process.env.NODE_ENV!=="production"&&o[0]>o[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(L<y){var I=void 0,P=D.get("name"),E=P?"withName":"withoutName";I=d>1?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<R.count();H++)if(H<v){var K=R.getName(H),U=W?Ae(R.getValues(H),function(ut,ot){return te(W,ot)===-1}):R.getValues(H),$=f.get(["data",K?"withName":"withoutName"]);j.push(o($,{name:K,value:U.join(B)}))}I+=j.join(B)+F,w.push(I)}});var S=f.getModel(["series","multiple","separator"]),A=S.get("middle"),T=S.get("end");_+=w.join(A)+T,u.setAttribute("aria-label",_)}}}}function o(u,c){if(!Ct(u))return u;var f=u;return N(c,function(d,v){f=f.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),d)}),f}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=r.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function JK(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},N(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function tQ(r){r.registerPreprocessor(JK),r.registerVisual(r.PRIORITY.VISUAL.ARIA,QK)}var bR={value:"eq","<":"lt","<=":"lte",">":"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;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r}(),aQ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r}(),iQ=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),oQ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),a=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?a:n))return!1;return!0},r}();function Cw(r,e){if(r===!0||r===!1){var t=new rQ;return t.value=r,t}var n="";return SR(r)||(process.env.NODE_ENV!=="production"&&(n=$r("Illegal config. Expect a plain object but actually",r)),Te(n)),r.and?xR("and",r,e):r.or?xR("or",r,e):r.not?sQ(r,e):lQ(r,e)}function xR(r,e,t){var n=e[r],a="";process.env.NODE_ENV!=="production"&&(a=$r('"and"/"or" condition should only be `'+r+": [...]` and must not be empty array.","Illegal condition:",e)),ft(n)||Te(a),n.length||Te(a);var i=r==="and"?new nQ:new aQ;return i.children=ht(n,function(o){return Cw(o,t)}),i.children.length||Te(a),i}function sQ(r,e){var t=r.not,n="";process.env.NODE_ENV!=="production"&&(n=$r('"not" condition should only be `not: {}`.',"Illegal condition:",r)),SR(t)||Te(n);var a=new iQ;return a.child=Cw(t,e),a.child||Te(n),a}function lQ(r,e){for(var t="",n=e.prepareGetValue(r),a=[],i=ue(r),o=r.parser,s=o?tT(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=Mt(bR,u)?bR[u]:u,f=r[u],d=s?s(f):f,v=$F(c,d)||c==="reg"&&new eQ(d);v||(process.env.NODE_ENV!=="production"&&(t=$r('Illegal relational operation: "'+u+'" in condition:',r)),Te(t)),a.push(v)}}a.length||(process.env.NODE_ENV!=="production"&&(t=$r("Relational condition must have at least one operator.","Illegal condition:",r)),Te(t));var p=new oQ;return p.valueGetterParam=n,p.valueParser=s,p.getValue=e.getValue,p.subCondList=a,p}function SR(r){return zt(r)&&!Br(r)}var uQ=function(){function r(e,t){this._cond=Cw(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function cQ(r,e){return new uQ(r,e)}var fQ={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,n=cQ(r.config,{valueGetterAttrMap:Et({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Mt(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=$r('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),Te(l));var c=e.getDimensionInfo(u);return c||(process.env.NODE_ENV!=="production"&&(l=$r("Can not find dimension info via: "+u+`.
- +`,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
- +`,"Illegal condition:",s,`.
- +`)),Te(l)),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),a=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),n.evaluate()&&a.push(t);return{data:a}}},Dw="";process.env.NODE_ENV!=="production"&&(Dw=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var hQ={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,n="",a=Pe(t);a.length||(process.env.NODE_ENV!=="production"&&(n="Empty `config` in sort transform."),Te(n));var i=[];N(a,function(c){var f=c.dimension,d=c.order,v=c.parser,p=c.incomparable;if(f==null&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "dimension" specified.'+Dw),Te(n)),d!=="asc"&&d!=="desc"&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "order" specified.'+Dw),Te(n)),p&&p!=="min"&&p!=="max"){var y="";process.env.NODE_ENV!=="production"&&(y='incomparable must be "min" or "max" rather than "'+p+'".'),Te(y)}if(d!=="asc"&&d!=="desc"){var _="";process.env.NODE_ENV!=="production"&&(_='order must be "asc" or "desc" rather than "'+d+'".'),Te(_)}var g=e.getDimensionInfo(f);g||(process.env.NODE_ENV!=="production"&&(n=$r("Can not find dimension info via: "+f+`.
- +`,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
- +`,"Illegal config:",c,`.
- +`)),Te(n));var h=v?tT(v):null;v&&!h&&(process.env.NODE_ENV!=="production"&&(n=$r("Invalid parser name "+v+`.
- +`,"Illegal config:",c,`.
- +`)),Te(n)),i.push({dimIdx:g.index,parser:h,comparator:new rT(d,p)})});var o=e.sourceFormat;o!==Vr&&o!==Un&&(process.env.NODE_ENV!=="production"&&(n='sourceFormat "'+o+'" is not supported yet'),Te(n));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<i.length;d++){var v=i[d],p=e.retrieveValueFromItem(c,v.dimIdx),y=e.retrieveValueFromItem(f,v.dimIdx);v.parser&&(p=v.parser(p),y=v.parser(y));var _=v.comparator.evaluate(p,y);if(_!==0)return _}return 0}),{data:s}}};function vQ(r){r.registerTransform(fQ),r.registerTransform(hQ)}var dQ=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new lT(this),uT(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),uT(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Ua},e}(le),pQ=function(r){J(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Ue);function gQ(r){r.registerComponentModel(dQ),r.registerComponentView(pQ)}var Ja=Ga.CMD;function gu(r,e){return Math.abs(r-e)<1e-5}function Lw(r){var e=r.data,t=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(R,M){a&&a.length>2&&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=M<R?-1:1,$=Math.cos(R),ut=Math.sin(R),ot=Math.cos(M),it=Math.sin(M),Nt=$*W+B,Kt=ut*j+F,xt=ot*W+B,wt=it*j+F,Ot=W*K*U,bt=j*K*U;a.push(Nt-Ot*ut,Kt+bt*$,xt+Ot*it,wt-bt*ot,xt,wt)}for(var d,v,p,y,_=0;_<t;){var g=e[_++],h=_===1;switch(h&&(i=e[_],o=e[_+1],s=i,l=o,(g===Ja.L||g===Ja.C||g===Ja.Q)&&(a=[s,l])),g){case Ja.M:i=s=e[_++],o=l=e[_++],u(s,l);break;case Ja.L:d=e[_++],v=e[_++],c(i,o,d,v),i=d,o=v;break;case Ja.C:a.push(e[_++],e[_++],e[_++],e[_++],i=e[_++],o=e[_++]);break;case Ja.Q:d=e[_++],v=e[_++],p=e[_++],y=e[_++],a.push(i+2/3*(d-i),o+2/3*(v-o),p+2/3*(d-p),y+2/3*(v-y),p,y),i=p,o=y;break;case Ja.A:var w=e[_++],b=e[_++],S=e[_++],A=e[_++],T=e[_++],D=e[_++]+T;_+=1;var L=!e[_++];d=Math.cos(T)*S+w,v=Math.sin(T)*A+b,h?(s=d,l=v,u(s,l)):c(i,o,d,v),i=Math.cos(D)*S+w,o=Math.sin(D)*A+b;for(var I=(L?-1:1)*Math.PI/2,P=T;L?P>D:P<D;P+=I){var E=L?Math.max(P+I,D):Math.min(P+I,D);f(P,E,w,b,S,A)}break;case Ja.R:s=i=e[_++],l=o=e[_++],d=s+e[_++],v=l+e[_++],u(d,l),c(d,l,d,v),c(d,v,s,v),c(s,v,s,l),c(s,l,d,l);break;case Ja.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&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<f&&b<f){l.push(o,s);return}var S=d*y+v*_,A=-d*g-v*h,T=w-S*S,D=b-A*A;if(T<f&&S>=0&&D<f&&A>=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;a<t.length;a++){var i=t[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],f=i[u++],d=i[u++],v=i[u++],p=i[u++],y=i[u++];Mw(s,l,c,f,d,v,p,y,o,e),s=p,l=y}n.push(o)}return n}function AR(r,e,t){var n=r[e],a=r[1-e],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=t-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function TR(r,e,t){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,c=l>Math.abs(u),f=AR([l,u],c?0:1,e),d=(c?s:u)/f.length,v=0;v<f.length;v++)for(var p=(c?u:s)/f[v],y=0;y<f[v];y++){var _={};c?(_.startAngle=i+d*v,_.endAngle=i+d*(v+1),_.r0=n+p*y,_.r=n+p*(y+1)):(_.startAngle=i+p*y,_.endAngle=i+p*(y+1),_.r0=n+d*v,_.r=n+d*(v+1)),_.clockwise=r.clockwise,_.cx=r.cx,_.cy=r.cy,t.push(_)}}function mQ(r,e,t){for(var n=r.width,a=r.height,i=n>a,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;d<o.length;d++)for(var v=r[l]/o[d],p=0;p<o[d];p++){var y={};y[u]=d*f,y[c]=p*v,y[s]=f,y[l]=v,y.x+=r.x,y.y+=r.y,t.push(y)}}function CR(r,e,t,n){return r*n-t*e}function _Q(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,c=o-a,f=s-i,d=CR(c,f,l,u);if(Math.abs(d)<1e-6)return null;var v=r-a,p=e-i,y=CR(v,p,c,f)/d;return y<0||y>1?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;i<n;i++){var o=r[i],s=r[(i+1)%n],l=_Q(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&a.push({projPt:wQ(l,e,t),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(_,g){return _.projPt-g.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],v=[c.pt.x,c.pt.y],p=[d],y=[v],i=u.idx+1;i<=c.idx;i++)yu(p,r[i].slice());yu(p,v),yu(p,d);for(var i=c.idx+1;i<=u.idx+n;i++)yu(y,r[i%n].slice());return yu(y,d),yu(y,v),[{points:p},{points:y}]}function DR(r){var e=r.points,t=[],n=[];qh(e,t,n);var a=new Jt(t[0],t[1],n[0]-t[0],n[1]-t[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new Qt,c=new Qt;return i>o?(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;n<e;n++)t.push(Qy(r));return t}function SQ(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function AQ(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function TQ(r,e){var t=[],n=r.shape,a;switch(r.type){case"rect":mQ(n,e,t),a=de;break;case"sector":TR(n,e,t),a=Qr;break;case"circle":TR({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,t),a=Qr;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=ht(yQ(r.getUpdatedPathProxy(),o),function(g){return AQ(g)}),l=s.length;if(l===0)vp(DR,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var c=0,f=ht(s,function(g){var h=[],w=[];qh(g,h,w);var b=(w[1]-h[1])*(w[0]-h[0]);return c+=b,{poly:g,area:b}});f.sort(function(g,h){return h.area-g.area});for(var d=e,u=0;u<l;u++){var v=f[u];if(d<=0)break;var p=u===l-1?d:Math.ceil(v.area/c*e);p<0||(vp(DR,{points:v.poly},p,t),d-=p)}}a=Jr;break}if(!a)return xQ(r,e);for(var y=[],u=0;u<t.length;u++){var _=new a;_.setShape(t[u]),SQ(r,_),y.push(_)}return y}function CQ(r,e){var t=r.length,n=e.length;if(t===n)return[r,e];for(var a=[],i=[],o=t<n?r:e,s=Math.min(t,n),l=Math.abs(n-t)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,v=2;v<s;){var p=o[v-2],y=o[v-1],_=o[v++],g=o[v++],h=o[v++],w=o[v++],b=o[v++],S=o[v++];if(d<=0){f.push(_,g,h,w,b,S);continue}for(var A=Math.min(d,c-1)+1,T=1;T<=A;T++){var D=T/A;ji(p,_,h,b,D,a),ji(y,g,w,S,D,i),p=a[3],y=i[3],f.push(a[1],i[1],a[2],i[2],p,y),_=a[5],g=i[5],h=a[6],w=i[6]}d-=A-1}return o===r?[f,e]:[r,f]}function LR(r,e){for(var t=r.length,n=r[t-2],a=r[t-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function DQ(r,e){for(var t,n,a,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],c=void 0,f=void 0;l?u?(t=CQ(l,u),c=t[0],f=t[1],n=c,a=f):(f=LR(a||l,l),c=l):(c=LR(n||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function MR(r){for(var e=0,t=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],c=r[i+1],f=s*c-u*l;e+=f,t+=(s+u)*f,n+=(l+c)*f}return e===0?[r[0]||0,r[1]||0]:[t/e/3,n/e/3,e]}function LQ(r,e,t,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var v=d===0?c:(c+d-2)%l+2,p=r[v]-t[0],y=r[v+1]-t[1],_=e[d]-n[0],g=e[d+1]-n[1],h=_-p,w=g-y;f+=h*h+w*w}f<i&&(i=f,o=u)}return o}function MQ(r){for(var e=[],t=r.length,n=0;n<t;n+=2)e[n]=r[t-n-2],e[n+1]=r[t-n-1];return e}function IQ(r,e,t,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=MR(s),c=MR(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],d=[],v=0,p=1/0,y=[],_=s.length;i&&(s=MQ(s));for(var g=LQ(s,l,u,c)*6,h=_-2,w=0;w<h;w+=2){var b=(g+w)%h+2;f[w+2]=s[b]-u[0],f[w+3]=s[b+1]-u[1]}f[0]=s[g]-u[0],f[1]=s[g+1]-u[1];for(var S=n/t,A=-n/2;A<=n/2;A+=S){for(var T=Math.sin(A),D=Math.cos(A),L=0,w=0;w<s.length;w+=2){var I=f[w],P=f[w+1],E=l[w]-c[0],R=l[w+1]-c[1],M=E*D-R*T,B=E*T+R*D;y[w]=M,y[w+1]=B;var F=M-I,W=B-P;L+=F*F+W*W}if(L<p){p=L,v=A;for(var j=0;j<y.length;j++)d[j]=y[j]}}a.push({from:f,to:d,fromCp:u,toCp:c,rotation:-v})}return a}function dp(r){return r.__isCombineMorphing}var IR="__mOriginal_";function pp(r,e,t){var n=IR+e,a=r[n]||r[e];r[n]||(r[n]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Rf(r,e){var t=IR+e;r[t]&&(r[e]=r[t],r[t]=null)}function ER(r,e){for(var t=0;t<r.length;t++)for(var n=r[t],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function PR(r,e){var t=r.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=DQ(Lw(t),Lw(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&ER(i,s),l&&ER(o,l),pp(e,"updateTransform",{replace:u}),e.transform=null;var c=IQ(i,o,10,Math.PI),f=[];pp(e,"buildPath",{replace:function(d){for(var v=e.__morphT,p=1-v,y=[],_=0;_<c.length;_++){var g=c[_],h=g.from,w=g.to,b=g.rotation*v,S=g.fromCp,A=g.toCp,T=Math.sin(b),D=Math.cos(b);gh(y,S,A,v);for(var L=0;L<h.length;L+=2){var I=h[L],P=h[L+1],E=w[L],R=w[L+1],M=I*p+E*v,B=P*p+R*v;f[L]=M*D-B*T+y[0],f[L+1]=M*T+B*D+y[1]}var F=f[0],W=f[1];d.moveTo(F,W);for(var L=2;L<h.length;){var E=f[L++],R=f[L++],j=f[L++],H=f[L++],K=f[L++],U=f[L++];F===E&&W===R&&j===K&&H===U?d.lineTo(K,U):d.bezierCurveTo(E,R,j,H,K,U),F=K,W=U}}}})}function Iw(r,e,t){if(!r||!e)return e;var n=t.done,a=t.during;PR(r,e),e.__morphT=0;function i(){Rf(e,"buildPath"),Rf(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Ft({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},t)),e}function EQ(r,e,t,n,a,i){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;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<S.length;A++){var T=S[A];dp(T)?a(T.childrenRef()):T instanceof oe&&n.push(T)}}a(r);var i=n.length;if(!i)return Ew();var o=t.dividePath||kR,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Ew();n=gp(n),s=gp(s);for(var l=t.done,u=t.during,c=t.individualDelay,f=new fi,d=0;d<i;d++){var v=n[d],p=s[d];p.parent=e,p.copyTransform(f),c||PR(v,p)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function y(S){for(var A=0;A<s.length;A++)s[A].addSelfToZr(S)}pp(e,"addSelfToZr",{after:function(S){y(S)}}),pp(e,"removeSelfFromZr",{after:function(S){for(var A=0;A<s.length;A++)s[A].removeSelfFromZr(S)}});function _(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Rf(e,"addSelfToZr"),Rf(e,"removeSelfFromZr")}var g=s.length;if(c)for(var h=g,w=function(){h--,h===0&&(_(),l&&l())},d=0;d<g;d++){var b=c?Ft({delay:(t.delay||0)+c(d,g,n[d],s[d]),done:w},t):t;Iw(n[d],s[d],b)}else e.__morphT=0,e.animateTo({__morphT:1},Ft({during:function(S){for(var A=0;A<g;A++){var T=s[A];T.__morphT=e.__morphT,T.dirtyShape()}u&&u(S)},done:function(){_();for(var S=0;S<r.length;S++)Rf(r[S],"updateTransform");l&&l()}},t));return e.__zr&&y(e.__zr),{fromIndividuals:n,toIndividuals:s,count:g}}function kQ(r,e,t){var n=e.length,a=[],i=t.dividePath||kR;function o(v){for(var p=0;p<v.length;p++){var y=v[p];dp(y)?o(y.childrenRef()):y instanceof oe&&a.push(y)}}if(dp(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(Qy(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var c=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),Ew()}a=gp(a),e=gp(e);for(var f=t.individualDelay,u=0;u<n;u++){var d=f?Ft({delay:(t.delay||0)+f(u,n,a[u],e[u])},t):t;Iw(a[u],e[u],d)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function RR(r){return ft(r[0])}function NR(r,e){for(var t=[],n=r.length,a=0;a<n;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)t[o%n].many.push(e[a][o])}for(var s=0,a=n-1;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;n<r.count;n++){var a=Qy(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function Pw(r,e,t,n,a,i){if(!r.length||!e.length)return;var o=Tl("update",n,a);if(!(o&&o.duration>0))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;F<B;F++){var I=s?Ft({delay:s(F,B)},l):l;i(R[F],M[F],h?A[F]:g.one,h?g.one:A[F],I)}}for(var d=u?u===r:r.length>e.length,v=u?NR(c,u):NR(d?e:r,[d?r:e]),p=0,y=0;y<v.length;y++)p+=v[y].many.length;for(var _=0,y=0;y<v.length;y++)f(v[y],d,_,p),_+=v[y].many.length}function qs(r){if(!r)return[];if(ft(r)){for(var e=[],t=0;t<r.length;t++)e.push(qs(r[t]));return e}var n=[];return r.traverse(function(a){a instanceof oe&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var OR=1e4,NQ=0,BR=1,zR=2,OQ=ve();function BQ(r,e){for(var t=r.dimensions,n=0;n<t.length;n++){var a=r.getDimensionInfo(t[n]);if(a&&a.otherDims[e]===0)return t[n]}}function zQ(r,e,t){var n=r.getDimensionInfo(t),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,e);return a&&a.categories[i]||i+""}}function VR(r,e,t,n){var a=n?"itemChildGroupId":"itemGroupId",i=BQ(r,a);if(i){var o=zQ(r,e,i);return o}var s=r.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return t||r.getId(e)}function FR(r){var e=[];return N(r,function(t){var n=t.data,a=t.dataGroupId;if(n.count()>OR){process.env.NODE_ENV!=="production"&&Ye("Universal transition is disabled on large data > 10k.");return}for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:VR(n,o,a,!1),childGroupId:VR(n,o,a,!0),divide:t.divide,dataIndex:o})}),e}function kw(r,e,t){r.traverse(function(n){n instanceof oe&&We(n,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Rw(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function mu(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function VQ(r,e,t){var n=Tl("update",t,e);n&&r.traverse(function(a){if(a instanceof Vn){var i=IV(a);i&&a.animateFrom({style:i},n)}})}function FQ(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++){var a=r[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function GR(r,e,t){var n=FR(r),a=FR(e);function i(w,b,S,A,T){(S||w)&&b.animateFrom({style:S&&S!==w?lt(lt({},S.style),w.style):w.style},T)}var o=!1,s=NQ,l=Et(),u=Et();n.forEach(function(w){w.groupId&&l.set(w.groupId,!0),w.childGroupId&&u.set(w.childGroupId,!0)});for(var c=0;c<a.length;c++){var f=a[c].groupId;if(u.get(f)){s=BR;break}var d=a[c].childGroupId;if(d&&l.get(d)){s=zR;break}}function v(w,b){return function(S){var A=S.data,T=S.dataIndex;return b?A.getId(T):w?s===BR?S.childGroupId:S.groupId:s===zR?S.childGroupId:S.groupId}}var p=FQ(n,a),y={};if(!p)for(var c=0;c<a.length;c++){var _=a[c],g=_.data.getItemGraphicEl(_.dataIndex);g&&(y[g.id]=!0)}function h(w,b){var S=n[b],A=a[w],T=A.data.hostModel,D=S.data.getItemGraphicEl(S.dataIndex),L=A.data.getItemGraphicEl(A.dataIndex);if(D===L){L&&VQ(L,A.dataIndex,T);return}D&&y[D.id]||L&&(mu(L),D?(mu(D),Rw(D),o=!0,Pw(qs(D),qs(L),A.divide,T,w,i)):kw(L,T,w))}new bi(n,a,v(!0,p),v(!1,p),null,"multiple").update(h).updateManyToOne(function(w,b){var S=a[w],A=S.data,T=A.hostModel,D=A.getItemGraphicEl(S.dataIndex),L=Ae(ht(b,function(I){return n[I].data.getItemGraphicEl(n[I].dataIndex)}),function(I){return I&&I!==D&&!y[I.id]});D&&(mu(D),L.length?(N(L,function(I){mu(I),Rw(I)}),o=!0,Pw(qs(L),qs(D),S.divide,T,w,i)):kw(D,T,S.dataIndex))}).updateOneToMany(function(w,b){var S=n[b],A=S.data.getItemGraphicEl(S.dataIndex);if(!(A&&y[A.id])){var T=Ae(ht(w,function(L){return a[L].data.getItemGraphicEl(a[L].dataIndex)}),function(L){return L&&L!==A}),D=a[w[0]].data.hostModel;T.length&&(N(T,function(L){return mu(L)}),A?(mu(A),Rw(A),o=!0,Pw(qs(A),qs(T),S.divide,D,w[0],i)):N(T,function(L){return kw(L,D,w[0])}))}}).updateManyToMany(function(w,b){new bi(b,w,function(S){return n[S].data.getId(n[S].dataIndex)},function(S){return a[S].data.getId(a[S].dataIndex)}).update(function(S,A){h(w[S],b[A])}).execute()}).execute(),o&&N(e,function(w){var b=w.data,S=b.hostModel,A=S&&t.getViewOfSeriesModel(S),T=Tl("update",S,0);A&&S.isAnimationEnabled()&&T&&T.duration>0&&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<r.length;t++){var n=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(n)return t}}function WQ(r,e,t,n){var a=[],i=[];N(Pe(r.from),function(o){var s=UR(e.oldSeries,o);s>=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<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Nv]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,n){var a=OQ(t);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)N(Pe(i),function(v){WQ(v,a,n,t)});else{var o=GQ(a,n);N(o.keys(),function(v){var p=o.get(v);GR(p.oldSeries,p.newSeries,t)})}N(n.updatedSeries,function(v){v[Nv]&&(v[Nv]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<OR&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}ae([tW]),ae([$8]),ae([wW,NW,ZW,AH,NH,bU,$U,P7,t9,o9,p9,uZ,RZ,ZZ,sY,fY,bY,LY,VY,ZY,eX,BX]),ae(rj),ae(Lj),ae(OM),ae(Gj),ae(nE),ae(Zj),ae(t$),ae(G$),ae(oq),ae(Tf),ae(Sq),ae(Cq),ae(Oq),ae(Hq),ae($q),ae(eK),ae(fK),ae(MK),ae(Kk),ae(eR),ae($K),ae(yR),ae(_R),ae(tQ),ae(vQ),ae(gQ),ae(HQ),ae(p8);var yp=1;function An(r){var e=60,t=62,n=45,a=47,i=33,o=39,s=34,l=63,u=`\r
- + >/= `,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<t.length;n++){var a=Y.get(t[n],["attrs","w"]);this.tableGrid.gridCol.push({width:be(parseInt(a))})}},e.prototype._parseTr=function(){var t=[],n=Y.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tr"]);Array.isArray(n)||(n=[n]);for(var a=0;a<n.length;a++){var i={props:{},td:[]},o=n[a];i.props.height=be(parseInt(Y.get(o,["attrs","h"])));var s=Y.get(o,["a:tc"]);Array.isArray(s)||(s=[s]);for(var l=0;l<s.length;l++)i.td.push(this._parseTd(s[l]));t.push(i)}this.tr=t},e.prototype._parseTd=function(t){var n,a,i,o,s=this,l={props:{border:{}},paragraphs:[]},u=Y.get(t,["a:tcPr","attrs"]);u!=null&&u.marB&&(l.props.marB=be(parseInt(u==null?void 0:u.marB))),u!=null&&u.marT&&(l.props.marT=be(parseInt(u==null?void 0:u.marT))),u!=null&&u.marL&&(l.props.marL=be(parseInt(u==null?void 0:u.marL))),u!=null&&u.marR&&(l.props.marR=be(parseInt(u==null?void 0:u.marR))),u!=null&&u.anchor&&(l.props.anchor=u==null?void 0:u.anchor);var c=Y.get(t,["a:tcPr"]);Y.get(c,["a:lnR"])&&(l.props.border.right=_u(Y.get(c,["a:lnR"]),this.theme,this.ctx)),Y.get(c,["a:lnL"])&&(l.props.border.left=_u(Y.get(c,["a:lnL"]),this.theme,this.ctx)),Y.get(c,["a:lnT"])&&(l.props.border.top=_u(Y.get(c,["a:lnT"]),this.theme,this.ctx)),Y.get(c,["a:lnB"])&&(l.props.border.bottom=_u(Y.get(c,["a:lnB"]),this.theme,this.ctx)),!((n=t==null?void 0:t.attrs)===null||n===void 0)&&n.rowSpan&&(l.props.rowSpan=parseInt(t.attrs.rowSpan)),!((a=t==null?void 0:t.attrs)===null||a===void 0)&&a.gridSpan&&(l.props.gridSpan=parseInt(t.attrs.gridSpan)),!((i=t==null?void 0:t.attrs)===null||i===void 0)&&i.vMerge&&(l.props.vMerge=t.attrs.vMerge==="1"),!((o=t==null?void 0:t.attrs)===null||o===void 0)&&o.hMerge&&(l.props.hMerge=t.attrs.hMerge==="1");var f=Y.get(t,["a:tcPr","a:solidFill"]);f&&(l.props.background=Ke(f,this.theme,this.ctx));var d=Y.get(t,["a:txBody"]),v=Y.get(d,["a:p"]);return Array.isArray(v)||(v=[v]),l.paragraphs=v.map(function(p){return s._parseParagraph(p)}),l},e.prototype._parseParagraph=function(t){var n=this,a={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},i=Y.get(t,["a:pPr"])||{};a.props=this._formatPPr(i);var o=Y.get(t,["a:endParaRPr"]);a.endParaRProps=this._formatRPr(o);var s=Y.get(t,["a:r"])||[];Array.isArray(s)||(s=[s]);var l=Y.get(t,["a:br"])||[];return Array.isArray(l)||(l=[l]),(s=s.concat(l.map(function(u){return It({isBr:!0},u)}))).sort(function(u,c){return Y.get(u,["attrs","order"])-Y.get(c,["attrs","order"])}),a.rows=s.map(function(u){return n._parseRow(u)}),a},e.prototype._parseRow=function(t){if(t.isBr)return{isBr:!0};var n={props:{},text:""},a=Y.get(t,["a:rPr"])||{};return n.props=this._formatRPr(a),n.text=Y.get(t,"a:t")||"",n},e.prototype._formatPPr=function(t){var n={},a=Y.get(t,"attrs")||{};return Object.keys(a).forEach(function(i){i==="algn"&&(n.align=a[i])}),Y.get(t,["a:lnSpc","a:spcPct","attrs","val"])&&(n.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),Y.get(t,["a:buAutoNum","attrs","type"])&&(n.buAutoNum=t["a:buAutoNum"].attrs.type),Y.get(t,["a:buChar","attrs","char"])&&(n.buChar=t["a:buChar"].attrs.char),Y.get(t,["a:spcBef","a:spcPts","attrs","val"])&&(n.spaceBefore=mp(parseInt(t["a:spcBef"]["a:spcPts"].attrs.val))),Y.get(t,["a:spcAft","a:spcPts","attrs","val"])&&(n.spaceAfter=mp(parseInt(t["a:spcAft"]["a:spcPts"].attrs.val))),n},e.prototype._formatRPr=function(t){var n={},a=Y.get(t,"attrs")||{};Object.keys(a).forEach(function(s){switch(s){case"sz":n.size=parseInt(a[s])/100;break;case"b":n.bold=a[s]==="1";break;case"i":n.italic=a[s]==="1";break;case"u":n.underline=a[s];break;case"strike":n.strike=a[s];break;case"order":case"dirty":break;default:n[s]=a[s]}});var i=Y.get(t,"a:solidFill");i&&(n.color=Ke(i,this.theme,this.ctx));var o=Y.get(t,"a:highlight");return o&&(n.background=Ke(o,this.theme,this.ctx)),n.typeface=Y.get(t,["a:ea","attrs","typeface"]),n},e.prototype._isLastCol=function(t,n){var a,i;if(n===t.length-1)return!0;for(var o=n+1;o<t.length;o++)if(!(!((a=t[o].props)===null||a===void 0)&&a.hMerge)&&!(!((i=t[o].props)===null||i===void 0)&&i.vMerge))return!1;return!0},e.prototype._isBandRow=function(t){var n;return!((n=this.props)===null||n===void 0)&&n.firstRow?t%2==1:t%2==0},e.prototype._isBandCol=function(t){var n;return!((n=this.props)===null||n===void 0)&&n.firstCol?t%2==1:t%2==0},e.prototype._parseInheritStyles=function(){var t,n,a,i,o,s,l,u,c=this,f=(n=(t=this.tableStyles)===null||t===void 0?void 0:t.wholeTbl)===null||n===void 0?void 0:n.tcStyle,d=(i=(a=this.tableStyles)===null||a===void 0?void 0:a.wholeTbl)===null||i===void 0?void 0:i.tcTxStyle,v=(s=(o=this.slideMaster.defaultTextStyle)===null||o===void 0?void 0:o.lvl1)===null||s===void 0?void 0:s.props,p=(u=(l=this.slideMaster.defaultTextStyle)===null||l===void 0?void 0:l.lvl1)===null||u===void 0?void 0:u.defRPr;this.tr.forEach(function(y,_){y.td.forEach(function(g,h){var w,b,S,A,T,D,L,I,P,E,R,M,B,F,W,j,H,K,U,$,ut,ot,it,Nt,Kt,xt,wt,Ot,bt,Pt,se,O,st,nt,X,Z,tt,pt,vt,at,Tt,Bt,Dt,Xt,Ce,ce,vr,Tn,Cr,Cn,Fe,ta,Aa,Rr,ei,Ks,xe=It(It({},v),f),lr=It(It({},p),d);c.props.firstRow&&_===0?(xe=It(It(It({},xe),(b=(w=c.tableStyles)===null||w===void 0?void 0:w.firstRow)===null||b===void 0?void 0:b.tcStyle),{border:It(It({},xe==null?void 0:xe.border),(T=(A=(S=c.tableStyles)===null||S===void 0?void 0:S.firstRow)===null||A===void 0?void 0:A.tcStyle)===null||T===void 0?void 0:T.border)}),lr=It(It({},lr),(L=(D=c.tableStyles)===null||D===void 0?void 0:D.firstRow)===null||L===void 0?void 0:L.tcTxStyle)):c.props.lastRow&&_===c.tr.length-1?(xe=It(It(It({},xe),(P=(I=c.tableStyles)===null||I===void 0?void 0:I.lastRow)===null||P===void 0?void 0:P.tcStyle),{border:It(It({},xe==null?void 0:xe.border),(M=(R=(E=c.tableStyles)===null||E===void 0?void 0:E.lastRow)===null||R===void 0?void 0:R.tcStyle)===null||M===void 0?void 0:M.border)}),lr=It(It({},lr),(F=(B=c.tableStyles)===null||B===void 0?void 0:B.lastRow)===null||F===void 0?void 0:F.tcTxStyle)):c.props.firstCol&&h===0?(xe=It(It(It({},xe),(j=(W=c.tableStyles)===null||W===void 0?void 0:W.firstCol)===null||j===void 0?void 0:j.tcStyle),{border:It(It({},xe==null?void 0:xe.border),(U=(K=(H=c.tableStyles)===null||H===void 0?void 0:H.firstCol)===null||K===void 0?void 0:K.tcStyle)===null||U===void 0?void 0:U.border)}),lr=It(It({},lr),(ut=($=c.tableStyles)===null||$===void 0?void 0:$.firstCol)===null||ut===void 0?void 0:ut.tcTxStyle)):c.props.lastCol&&c._isLastCol(y.td,h)?(xe=It(It(It({},xe),(it=(ot=c.tableStyles)===null||ot===void 0?void 0:ot.lastCol)===null||it===void 0?void 0:it.tcStyle),{border:It(It({},xe==null?void 0:xe.border),(xt=(Kt=(Nt=c.tableStyles)===null||Nt===void 0?void 0:Nt.lastCol)===null||Kt===void 0?void 0:Kt.tcStyle)===null||xt===void 0?void 0:xt.border)}),lr=It(It({},lr),(Ot=(wt=c.tableStyles)===null||wt===void 0?void 0:wt.lastCol)===null||Ot===void 0?void 0:Ot.tcTxStyle)):(c.props.bandRow&&(c._isBandRow(_)?(xe=It(It(It({},xe),(Pt=(bt=c.tableStyles)===null||bt===void 0?void 0:bt.band1H)===null||Pt===void 0?void 0:Pt.tcStyle),{border:It(It({},xe==null?void 0:xe.border),(st=(O=(se=c.tableStyles)===null||se===void 0?void 0:se.band1H)===null||O===void 0?void 0:O.tcStyle)===null||st===void 0?void 0:st.border)}),lr=It(It({},lr),(X=(nt=c.tableStyles)===null||nt===void 0?void 0:nt.band1H)===null||X===void 0?void 0:X.tcTxStyle)):(xe=It(It(It({},xe),(tt=(Z=c.tableStyles)===null||Z===void 0?void 0:Z.band2V)===null||tt===void 0?void 0:tt.tcStyle),{border:It(It({},xe==null?void 0:xe.border),(at=(vt=(pt=c.tableStyles)===null||pt===void 0?void 0:pt.band2V)===null||vt===void 0?void 0:vt.tcStyle)===null||at===void 0?void 0:at.border)}),lr=It(It({},lr),(Bt=(Tt=c.tableStyles)===null||Tt===void 0?void 0:Tt.band2V)===null||Bt===void 0?void 0:Bt.tcTxStyle))),c.props.bandCol&&(c._isBandCol(h)?(xe=It(It(It({},xe),(Xt=(Dt=c.tableStyles)===null||Dt===void 0?void 0:Dt.band1V)===null||Xt===void 0?void 0:Xt.tcStyle),{border:It(It({},xe==null?void 0:xe.border),(vr=(ce=(Ce=c.tableStyles)===null||Ce===void 0?void 0:Ce.band1V)===null||ce===void 0?void 0:ce.tcStyle)===null||vr===void 0?void 0:vr.border)}),lr=It(It({},lr),(Cr=(Tn=c.tableStyles)===null||Tn===void 0?void 0:Tn.band1V)===null||Cr===void 0?void 0:Cr.tcTxStyle)):(xe=It(It(It({},xe),(Fe=(Cn=c.tableStyles)===null||Cn===void 0?void 0:Cn.band2H)===null||Fe===void 0?void 0:Fe.tcStyle),{border:It(It({},xe==null?void 0:xe.border),(Rr=(Aa=(ta=c.tableStyles)===null||ta===void 0?void 0:ta.band2H)===null||Aa===void 0?void 0:Aa.tcStyle)===null||Rr===void 0?void 0:Rr.border)}),lr=It(It({},lr),(Ks=(ei=c.tableStyles)===null||ei===void 0?void 0:ei.band2H)===null||Ks===void 0?void 0:Ks.tcTxStyle)))),g.inheritTcStyle=xe,g.inheritTcTxStyle=lr})})},e}(Bf),Fw=function(){function r(e,t,n,a){if(this.offset={x:0,y:0},this.chOffset={x:0,y:0},this.extend={w:0,h:0},this.chExtend={w:0,h:0},this.rotate=0,this.nodes=[],this.flipV=!1,this.flipH=!1,this.userDrawn=!0,this.order=Y.get(e,["attrs","order"]),this.pptx=t,this.ctx=n,this.source=e,this.group=a,this.source["p:grpSpPr"]){var i=Y.get(this.source,["p:grpSpPr","a:xfrm"]);if(i&&(this.offset={x:Math.round(be(parseInt(i["a:off"].attrs.x))),y:Math.round(be(parseInt(i["a:off"].attrs.y)))},this.chOffset={x:Math.round(be(parseInt(i["a:chOff"].attrs.x))),y:Math.round(be(parseInt(i["a:chOff"].attrs.y)))},this.extend={w:Math.round(be(parseInt(i["a:ext"].attrs.cx))),h:Math.round(be(parseInt(i["a:ext"].attrs.cy)))},this.chExtend={w:Math.round(be(parseInt(i["a:chExt"].attrs.cx))),h:Math.round(be(parseInt(i["a:chExt"].attrs.cy)))},this.rotate=_p(parseInt(Y.get(i,"attrs.rot",0))),this.flipV=Y.get(i,"attrs.flipV")==="1",this.flipH=Y.get(i,"attrs.flipH")==="1"),a){var o=a.extend,s=a.chExtend,l=a.chOffset,u=o.w/s.w,c=o.h/s.h;this.extend.w=this.extend.w*u,this.extend.h=this.extend.h*c,this.offset.x=(this.offset.x-l.x)*u,this.offset.y=(this.offset.y-l.y)*c}}this._parseBackground(),this._parseNodes()}return r.prototype.getBackground=function(){return this.background&&this.background.type!=="none"?this.background:this.group?this.group.getBackground():void 0},r.prototype._parseBackground=function(){var e=Y.get(this.source,["p:grpSpPr"]);e&&e["a:solidFill"]?this.background=Ke(e["a:solidFill"],this.ctx.theme,this.ctx):e&&e["a:gradFill"]?this.background=Of(e["a:gradFill"],this.ctx.theme,this.ctx):e&&e["a:blipFill"]&&(this.background=Nf(e["a:blipFill"],this.pptx,this.ctx))},r.prototype._parseNodes=function(){var e=this.source;Vf(this.nodes,e,this.pptx,this.ctx,this)},r}(),jR=function(r){function e(t,n,a,i){var o=r.call(this,t,a,i)||this;return o.nodes=[],o.pptx=n,o}return Nu(e,r),e.prototype.parseNode=function(){return dr(this,void 0,void 0,function(){var t,n,a,i,o,s,l,u,c;return pr(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),(t=Y.get(this.source,["a:graphic","a:graphicData","dgm:relIds","attrs","r:dm"]))&&this.ctx.rels[t]?(n=this.ctx.rels[t].target,i=An,[4,this.pptx.getXmlByPath(n)]):[2];case 1:return a=i.apply(void 0,[f.sent()]),(o=Y.get(a,["dgm:dataModel","dgm:extLst","a:ext","dsp:dataModelExt","attrs","relId"]))&&this.ctx.rels[o]?(s=this.ctx.rels[o].target,[4,this.pptx.getXmlByPath(s)]):[2];case 2:return l=(l=f.sent()).replace(/dsp:/g,"p:"),u=An(l),c=Y.get(u,["p:drawing","p:spTree"]),Vf(this.nodes,c,this.pptx,this.ctx),[3,4];case 3:return f.sent(),[3,4];case 4:return[2]}})})},e}(Bf),$R=function(r){function e(t,n,a,i){var o=r.call(this,t,a,i)||this;return o.options={title:{},tooltip:{},legend:{},series:[],color:[]},o.userDrawn=!0,o.pptx=n,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.parseNode=function(){return dr(this,void 0,void 0,function(){var t,n,a,i,o,s;return pr(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),(t=Y.get(this.source,["a:graphic","a:graphicData","c:chart","attrs","r:id"]))&&this.ctx.rels[t]?(n=this.ctx.rels[t].target,i=An,[4,this.pptx.getXmlByPath(n)]):[2];case 1:return a=i.apply(void 0,[l.sent()]),o=Y.get(a,["c:chartSpace","c:chart"]),s=Y.get(o,["c:plotArea"]),Y.get(s,["c:lineChart"])?this.parseLine(Y.get(s,["c:lineChart"]),o):Y.get(s,["c:line3DChart"])?this.parseLine(Y.get(s,["c:line3DChart"]),o):Y.get(s,["c:areaChart"])?this.parseAreaLine(Y.get(s,["c:areaChart"]),o):Y.get(s,["c:area3DChart"])?this.parseAreaLine(Y.get(s,["c:area3DChart"]),o):Y.get(s,["c:barChart"])?this.parseBar(Y.get(s,["c:barChart"]),o):Y.get(s,["c:bar3DChart"])?this.parseBar(Y.get(s,["c:bar3DChart"]),o):Y.get(s,["c:pieChart"])?this.parsePie(Y.get(s,["c:pieChart"])):Y.get(s,["c:pie3DChart"])?this.parsePie(Y.get(s,["c:pie3DChart"])):Y.get(s,["c:doughnutChart"])&&this.parseDoughnutChart(Y.get(s,["c:doughnutChart"])),[3,3];case 2:return l.sent(),[3,3];case 3:return[2]}})})},e.prototype.parseAreaLine=function(t,n){this.parseLine(t,n),this.options.series=this.options.series.map(function(a){return a.areaStyle={},a})},e.prototype.parseLine=function(t,n){var a=Y.get(t,["c:ser"]);Array.isArray(a)||(a=[a]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(Y.get(n,["c:title"]))},this.options.xAxis={type:"category",data:this.getCategory(a[0])},this.options.yAxis={type:"value"},this.options.series=this.parseLineSeries(a,t),this.options.color=this.parseLineColors(a),this.options.legend={bottom:"bottom",left:"center"},Y.get(t,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(i){return(100*i).toFixed(2)+"%"})},e.prototype.parseBar=function(t,n){var a=Y.get(t,["c:ser"]);Array.isArray(a)||(a=[a]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(Y.get(n,["c:title"]))},Y.get(t,["c:barDir","attrs","val"])==="bar"?(this.options.yAxis={type:"category",data:this.getCategory(a[0])},this.options.xAxis={type:"value"}):(this.options.xAxis={type:"category",data:this.getCategory(a[0])},this.options.yAxis={type:"value"}),this.options.series=this.parseBarSeries(a,t),this.options.color=this.parseBarColors(a),this.options.legend={bottom:"bottom",left:"center"},Y.get(t,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(i){return(100*i).toFixed(2)+"%"})},e.prototype.parsePie=function(t){var n=Y.get(t,["c:ser"]);this.options.title={top:"top",left:"center",text:this.parsePieTitle(n)},this.options.color=this.parsePieColors(n),this.options.series=[this.parsePieSeries(n,t)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parseDoughnutChart=function(t){var n=Y.get(t,["c:ser"]);this.options.title.text=this.parsePieTitle(n),this.options.color=this.parsePieColors(n),this.options.series=[this.parsePieSeries(n,t)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parsePieTitle=function(t){return Y.get(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])},e.prototype.parseChartTitle=function(t){var n=Y.get(t,["c:tx","c:rich","a:p"]);return Array.isArray(n)||(n=[n]),n.map(function(a){var i=Y.get(a,["a:r"]);return Array.isArray(i)||(i=[i]),i.map(function(o){return Y.get(o,["a:t"])||""}).join("")}).join("")||"图表标题"},e.prototype.parseBarColors=function(t){var n=this;return t.map(function(a){return Ie(Ke(Y.get(a,["c:spPr","a:solidFill"]),n.theme,n.ctx))})},e.prototype.parseLineColors=function(t){var n=this;return t.map(function(a){return Ie(Ke(Y.get(a,["c:spPr","a:ln","a:solidFill"])||Y.get(a,["c:spPr","a:solidFill"]),n.theme,n.ctx))})},e.prototype.parsePieColors=function(t){var n=this,a=[],i=Y.get(t,["c:dPt"]);return Array.isArray(i)||(i=[i]),i.forEach(function(o){a.push(Ie(Ke(Y.get(o,["c:spPr","a:solidFill"]),n.theme,n.ctx)))}),a},e.prototype.parsePieSeries=function(t,n){var a={type:"pie",radius:"80%",startAngle:90,data:[]};Y.get(n,["c:holeSize","attrs","val"])&&(a.radius=["".concat(.8*Y.get(n,["c:holeSize","attrs","val"]),"%"),"80%"]);var i=Y.get(n,["c:firstSliceAng","attrs","val"]);i&&(a.startAngle=90-i);for(var o=this.getCategory(t),s=this.getVal(t),l=0;l<o.length;l++)a.data.push({name:o[l],value:s[l]});return a},e.prototype.parseBarSeries=function(t,n){var a,i=this,o=Y.get(n,["c:grouping","attrs","val"]);o==="stacked"?a="Ad":o==="percentStacked"&&(a="total");var s=t.map(function(u){return{type:"bar",name:Y.get(u,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:i.getVal(u),stack:a}});if(o==="percentStacked"){var l=[];s.forEach(function(u,c){l=c===0?Ou([],u.data,!0):l.map(function(f,d){return f+u.data[d]})}),s.forEach(function(u){u.data=u.data.map(function(c,f){return l[f]<=0?0:c/l[f]})})}return s},e.prototype.parseLineSeries=function(t,n){var a,i=this,o=Y.get(n,["c:grouping","attrs","val"]);o==="stacked"?a="Ad":o==="percentStacked"&&(a="total");var s=t.map(function(u){return{type:"line",name:Y.get(u,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:i.getVal(u),stack:a}});if(a==="total"){var l=[];s.forEach(function(u,c){l=c===0?Ou([],u.data,!0):l.map(function(f,d){return f+u.data[d]})}),s.forEach(function(u){u.data=u.data.map(function(c,f){return l[f]<=0?0:c/l[f]})})}return s},e.prototype.getCategory=function(t){if(Y.get(t,["c:cat","c:strRef"])){var n=Y.get(t,["c:cat","c:strRef","c:strCache","c:pt"]);return Array.isArray(n)||(n=[n]),n.map(function(a){return Y.get(a,["c:v"])})}if(Y.get(t,["c:cat","c:numRef"]))return n=Y.get(t,["c:cat","c:numRef","c:numCache","c:pt"]),Array.isArray(n)||(n=[n]),n.map(function(a){return Y.get(a,["c:v"])})},e.prototype.getVal=function(t){var n=Y.get(t,["c:val","c:numRef","c:numCache","c:pt"]);return Array.isArray(n)||(n=[n]),n.map(function(a){return+Y.get(a,["c:v"])})},e}(Bf);function qR(r){var e={},t=Y.get(r,"attrs")||{};return Object.keys(t).forEach(function(n){switch(n){case"algn":e.align=t[n];break;case"marL":e.marginLeft=be(parseInt(t[n]));break;case"indent":e.indent=be(parseInt(t[n]));break;case"lvl":e.level=t[n]}}),Y.get(r,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(r["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),e}function KR(r,e,t){var n={},a=Y.get(r,"attrs")||{};Object.keys(a).forEach(function(o){switch(o){case"sz":n.size=parseInt(a[o])/100;break;case"b":n.bold=a[o]==="1";break;case"i":n.italic=a[o]==="1";break;case"u":n.underline=a[o];break;case"strike":n.strike=a[o];break;case"order":case"dirty":break;default:n[o]=a[o]}});var i=Y.get(r,"a:solidFill");return i&&(n.color=Ke(i,e,t)),n}function Vf(r,e,t,n,a){return dr(this,void 0,void 0,function(){var i,o,s,l,u,c,f,d,v,p,y,_,g,h,w,b,S,A,T,D,L;return pr(this,function(I){switch(I.label){case 0:for(s in o=[],i=e)o.push(s);l=0,I.label=1;case 1:if(!(l<o.length))return[3,17];if(!((s=o[l])in i))return[3,16];switch(u=s){case"p:sp":return[3,2];case"p:pic":return[3,3];case"p:cxnSp":return[3,4];case"p:graphicFrame":return[3,5];case"p:grpSp":return[3,14]}return[3,15];case 2:for(c=Array.isArray(e[u])?e[u]:[e[u]],D=0;D<c.length;D++)g=c[D],r.push(new zf(g,t,n,a));return[3,16];case 3:for(f=Array.isArray(e[u])?e[u]:[e[u]],D=0;D<f.length;D++)d=f[D],v=d["p:blipFill"]["a:blip"].attrs["r:embed"],p=n.rels[v].target,y=new wp(p,d,t,n,a),r.push(y);return[3,16];case 4:for(_=Array.isArray(e[u])?e[u]:[e[u]],D=0;D<_.length;D++)g=_[D],r.push(new zf(g,t,n,a));return[3,16];case 5:h=Array.isArray(e[u])?e[u]:[e[u]],D=0,I.label=6;case 6:if(!(D<h.length))return[3,13];switch(w=h[D],b=Y.get(w,["a:graphic","a:graphicData","attrs","uri"]),b){case"http://schemas.openxmlformats.org/drawingml/2006/table":return[3,7];case"http://schemas.openxmlformats.org/drawingml/2006/diagram":return[3,8];case"http://schemas.openxmlformats.org/drawingml/2006/chart":return[3,10]}return[3,12];case 7:return r.push(new XR(w,t,n,a)),[3,12];case 8:return[4,(S=new jR(w,t,n,a)).parseNode()];case 9:return I.sent(),r.push(S),[3,12];case 10:return[4,(A=new $R(w,t,n,a)).parseNode()];case 11:return I.sent(),r.push(A),[3,12];case 12:return D++,[3,6];case 13:return[3,16];case 14:for(T=Array.isArray(e[u])?e[u]:[e[u]],D=0;D<T.length;D++)L=T[D],r.push(new Fw(L,t,n,a));return[3,16];case 15:return[3,16];case 16:return l++,[3,1];case 17:return[2]}})})}var ZQ=function(){function r(e,t,n){this.slideType="slide",this.rels={},this.background={type:"none"},this.nodes=[],this.name=e,this.source=t,this.pptx=n}return Object.defineProperty(r.prototype,"index",{get:function(){if(!this.name)return 0;var e=this.name.match(/(\d+)/);return e?parseInt(e[0]):1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slides/slide","slides/_rels/slide")+".rels"},enumerable:!1,configurable:!0}),r.prototype.load=function(){return dr(this,void 0,void 0,function(){return pr(this,function(e){switch(e.label){case 0:return[4,this._loadRels()];case 1:return e.sent(),this._loadBackground(),[4,this._loadNodes()];case 2:return e.sent(),[2]}})})},r.prototype._loadRels=function(){return dr(this,void 0,void 0,function(){var e,t,n,a=this;return pr(this,function(i){switch(i.label){case 0:return t=An,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[i.sent()]),n=Y.get(e,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach(function(o){switch(Y.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),a.slideLayout=a.pptx.getSlideLayout(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData":case"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),a.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},r.prototype._loadBackground=function(){var e=Y.get(this.source,["p:sld","p:cSld","p:bg","p:bgPr"]);e&&e["a:solidFill"]?this.background=Ke(e["a:solidFill"],this.theme,this):e&&e["a:gradFill"]?this.background=Of(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]&&(this.background=Nf(e["a:blipFill"],this.pptx,this))},r.prototype._loadNodes=function(){return dr(this,void 0,void 0,function(){var e;return pr(this,function(t){switch(t.label){case 0:return e=Y.get(this.source,["p:sld","p:cSld","p:spTree"]),[4,Vf(this.nodes,e,this.pptx,this)];case 1:return t.sent(),[2]}})})},r.prototype.getColorThemeName=function(e){return this.slideLayout.getColorThemeName(e)},r.prototype.getNodeInheritAttrsByType=function(e,t){var n=this.slideLayout.getNodeByType(e),a=Y.get(n.source,t);return a||this.slideLayout.getNodeInheritAttrsByType(e,t)},r.prototype.getNodeInheritAttrsByIdx=function(e,t){var n=this.slideLayout.getNodeByIdx(e),a=Y.get(n.source,t);return a||this.slideLayout.getNodeInheritAttrsByIdx(e,t)},r}(),YQ=function(){function r(e,t,n){this.slideType="slideLayout",this.rels={},this.background={type:"none"},this.nodes=[],this.name=e,this.source=t,this.pptx=n}return Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),r.prototype.load=function(){return dr(this,void 0,void 0,function(){return pr(this,function(e){switch(e.label){case 0:return[4,this._loadRels()];case 1:return e.sent(),[4,this._loadBackground()];case 2:return e.sent(),[4,this._loadNodes()];case 3:return e.sent(),[2]}})})},r.prototype._loadRels=function(){return dr(this,void 0,void 0,function(){var e,t,n,a=this;return pr(this,function(i){switch(i.label){case 0:return t=An,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[i.sent()]),n=Y.get(e,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach(function(o){switch(Y.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),a.slideMaster=a.pptx.getSlideMaster(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),a.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},r.prototype._loadBackground=function(){return dr(this,void 0,void 0,function(){var e;return pr(this,function(t){return(e=Y.get(this.source,["p:sldLayout","p:cSld","p:bg","p:bgPr"]))&&e["a:solidFill"]?this.background=Ke(e["a:solidFill"],this.theme):e&&e["a:gradFill"]?this.background=Of(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]&&(this.background=Nf(e["a:blipFill"],this.pptx,this)),[2]})})},r.prototype._loadNodes=function(){return dr(this,void 0,void 0,function(){var e;return pr(this,function(t){return e=Y.get(this.source,["p:sldLayout","p:cSld","p:spTree"]),Vf(this.nodes,e,this.pptx,this),[2]})})},r.prototype.getColorThemeName=function(e){return this.slideMaster.getColorThemeName(e)},r.prototype.getNodeByType=function(e){return this.nodes.find(function(t){return t.type===e})},r.prototype.getNodeByIdx=function(e){return this.nodes.find(function(t){return t.idx===e})},r.prototype.getNodeInheritAttrsByType=function(e,t){var n=this.slideMaster.getNodeByType(e);return n&&Y.get(n.source,t)},r.prototype.getNodeInheritAttrsByIdx=function(e,t){var n=this.slideMaster.getNodeByIdx(e);return n&&Y.get(n.source,t)},r}(),XQ=function(){function r(e,t,n){this.slideType="slideMaster",this.rels={},this.background={type:"none"},this.textStyles={titleStyle:{},bodyStyle:{},otherStyle:{}},this.defaultTextStyle={},this.nodes=[],this.tableStyles={},this.name=e,this.source=t,this.pptx=n,this.load()}return Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels"},enumerable:!1,configurable:!0}),r.prototype.load=function(){return dr(this,void 0,void 0,function(){return pr(this,function(e){switch(e.label){case 0:return[4,this._parseRels()];case 1:return e.sent(),this._parseColorMap(),this._parseBackground(),this._parseTextStyles(),this._parseTableStyles(),this._parseDefaultTextStyle(),this._loadNodes(),[2]}})})},r.prototype._parseRels=function(){return dr(this,void 0,void 0,function(){var e,t,n,a=this;return pr(this,function(i){switch(i.label){case 0:return t=An,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[i.sent()]),n=Y.get(e,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach(function(o){switch(Y.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),a.theme=a.pptx.getTheme(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),a.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},r.prototype._parseColorMap=function(){this.colorMap=Y.omit(Y.get(this.source,["p:sldMaster","p:clrMap","attrs"])||{},["order"])},r.prototype.getColorThemeName=function(e){return this.colorMap[e]||e},r.prototype._parseBackground=function(){var e=Y.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),t=Y.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);e&&e["a:solidFill"]?this.background=Ke(e["a:solidFill"],this.theme,this):e&&e["a:gradFill"]?this.background=Of(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]?this.background=Nf(e["a:blipFill"],this.pptx,this):t&&(this.background=Ke(t,this.theme,this))},r.prototype._parseDefaultTextStyle=function(){var e=this,t=this.pptx.defaultTextStyleSource;Object.keys(t).forEach(function(n){if(n.startsWith("a:")&&n.endsWith("pPr")){var a=n.substr(2,n.length-5),i=Y.get(t[n],["a:defRPr"]);e.defaultTextStyle[a]={props:qR(t[n]),defRPr:KR(i,e.theme,e)}}})},r.prototype._parseTextStyles=function(){var e=this,t=Y.get(this.source,["p:sldMaster","p:txStyles"]);["titleStyle","bodyStyle","otherStyle"].forEach(function(n){var a=e.textStyles[n],i=Y.get(t,"p:".concat(n))||{};Object.keys(i).forEach(function(o){if(o.startsWith("a:")&&o.endsWith("pPr")){var s=o.substr(2,o.length-5);a[s]={},a[s].props=qR(i[o]);var l=Y.get(i[o],["a:defRPr"]);a[s].defRPr=KR(l,e.theme,e)}})})},r.prototype._parseTableStyles=function(){var e=this,t={},n=Y.get(this.pptx.tableStyles,["a:tblStyleLst","a:tblStyle"])||[];Array.isArray(n)||(n=[n]),n.forEach(function(a){var i=Y.get(a,["attrs","styleId"]);t[i]={},Object.keys(a).forEach(function(o){if(o.startsWith("a:")){var s=o.substr(2);t[i][s]={};var l=Y.get(a[o],["a:tcStyle"]);if(l){var u={};Y.get(l,["a:fill","a:solidFill"])&&(u.background=Ke(Y.get(l,["a:fill","a:solidFill"]),e.theme,e));var c=Y.get(l,"a:tcBdr");c&&(u.border={},Object.keys(c).forEach(function(v){if(v.startsWith("a:")){var p=v.substr(2),y=Y.get(c[v],["a:ln"]);u.border[p]=_u(y,e.theme,e)}})),t[i][s].tcStyle=u}var f=Y.get(a[o],["a:tcTxStyle"]);if(f){var d={};d.color=Ke(f,e.theme,e),Y.get(f,["attrs","b"])==="on"&&(d.bold=!0),t[i][s].tcTxStyle=d}}})}),this.tableStyles=t},r.prototype._loadNodes=function(){return dr(this,void 0,void 0,function(){var e;return pr(this,function(t){return e=Y.get(this.source,["p:sldMaster","p:cSld","p:spTree"]),Vf(this.nodes,e,this.pptx,this),[2]})})},r.prototype.getNodeByType=function(e){return this.nodes.find(function(t){return t.type===e})},r.prototype.getNodeByIdx=function(e){return this.nodes.find(function(t){return t.idx===e})},r.prototype.getNodeInheritAttrsByType=function(e,t){},r.prototype.getNodeInheritAttrsByIdx=function(e,t){},r}(),jQ=function(){function r(e,t,n){this.clrScheme={},this.borderScheme=[],this.name=e,this.source=t,this.pptx=n,this._parseClrScheme(),this._parseLineStyleLst()}return r.prototype._parseClrScheme=function(){var e=Y.get(this.source,["a:theme","a:themeElements","a:clrScheme"]);for(var t in e)if(t.startsWith("a:")){var n=t.substring(2),a=Y.get(e[t],["a:sysClr","attrs","lastClr"])||Y.get(e[t],["a:srgbClr","attrs","val"]);this.clrScheme[n]="#"+a}},r.prototype._parseLineStyleLst=function(){var e=this,t=Y.get(this.source,["a:theme","a:themeElements","a:fmtScheme","a:lnStyleLst","a:ln"])||[];this.borderScheme=t.map(function(n){var a={color:{}};return Y.get(n,["attrs","w"])&&(a.width=be(parseInt(Y.get(n,["attrs","w"])))),Y.get(n,["attrs","algn"])&&(a.algn=Y.get(n,["attrs","algn"])),Y.get(n,["attrs","cap"])&&(a.cap=Y.get(n,["attrs","cap"])),Y.get(n,["attrs","cmpd"])&&(a.cmpd=Y.get(n,["attrs","cmpd"])),Y.get(n,["a:miter","attrs","lim"])&&(a.miterLim=be(parseInt(Y.get(n,["a:miter","attrs","lim"])))),Y.get(n,["a:prstDash","attrs","val"])&&(a.type=Y.get(n,["a:prstDash","attrs","val"])),Y.get(n,["a:solidFill"])&&(a.color=Ke(Y.get(n,["a:solidFill"]),e)),a})},r.prototype.getColor=function(e){if(e!=="phClr")return this.clrScheme[e]||this.defaultColor},r.prototype.getLineStyle=function(e){return this.borderScheme[e-1]},r}(),$Q=function(){function r(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={}}return r.prototype.load=function(e){return dr(this,void 0,void 0,function(){var t,n;return pr(this,function(a){switch(a.label){case 0:return t=new z5,n=this,[4,t.loadAsync(e)];case 1:return n._zipContents=a.sent(),[4,this._loadThumbnail()];case 2:return a.sent(),[4,this._loadMedia()];case 3:return a.sent(),[4,this._loadPresentation()];case 4:return a.sent(),[4,this._loadContentTypes()];case 5:return a.sent(),[2]}})})},r.prototype._loadThumbnail=function(){return dr(this,void 0,void 0,function(){var e;return pr(this,function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),this._zipContents.files["docProps/thumbnail.jpeg"]?[4,this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")]:[3,2];case 1:e=t.sent(),this.thumbnail="data:image/jpeg;base64,"+e,t.label=2;case 2:return[3,4];case 3:return t.sent(),[3,4];case 4:return[2]}})})},r.prototype._loadPresentation=function(){return dr(this,void 0,void 0,function(){var e,t,n;return pr(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this._zipContents.files["ppt/presentation.xml"].async("text")];case 1:return e=a.sent(),t=An(e),n=t["p:presentation"]["p:sldSz"].attrs,this.width=be(parseInt(n.cx)),this.height=be(parseInt(n.cy)),this.defaultTextStyleSource=Y.get(t,["p:presentation","p:defaultTextStyle"]),[3,3];case 2:return a.sent(),[3,3];case 3:return[2]}})})},r.prototype._loadContentTypes=function(){return dr(this,void 0,void 0,function(){var e,t,n,a,i,o,s,l,u,c,f,d,v,p,y,_,g,h,w,b,S;return pr(this,function(A){switch(A.label){case 0:return A.trys.push([0,22,,23]),t=An,[4,this._zipContents.files["[Content_Types].xml"].async("text")];case 1:if(e=t.apply(void 0,[A.sent()]),n=e.Types.Override,!(a=n.filter(function(T){return T.attrs.ContentType==="application/vnd.openxmlformats-officedocument.theme+xml"})))return[3,5];i=0,o=a,A.label=2;case 2:return i<o.length?(s=o[i],h=s.attrs.PartName.substr(1),l=An,[4,this._zipContents.files[h].async("text")]):[3,5];case 3:w=l.apply(void 0,[A.sent()]),this.themes.push(new jQ(h,w,this)),A.label=4;case 4:return i++,[3,2];case 5:return(u=n.find(function(T){return T.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"}))?(h=u.attrs.PartName.substr(1),c=An,[4,this._zipContents.files[h].async("text")]):[3,7];case 6:w=c.apply(void 0,[A.sent()]),this.tableStyles=w,A.label=7;case 7:f=n.filter(function(T){return T.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"}),g=0,A.label=8;case 8:return g<f.length?(h=f[g].attrs.PartName.substr(1),d=An,[4,this._zipContents.files[h].async("text")]):[3,11];case 9:w=d.apply(void 0,[A.sent()]),this.slideMaster.push(new XQ(h,w,this)),A.label=10;case 10:return g++,[3,8];case 11:v=n.filter(function(T){return T.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"}),g=0,A.label=12;case 12:return g<v.length?(h=v[g].attrs.PartName.substr(1),p=An,[4,this._zipContents.files[h].async("text")]):[3,16];case 13:return w=p.apply(void 0,[A.sent()]),[4,(y=new YQ(h,w,this)).load()];case 14:A.sent(),this.slideLayouts.push(y),A.label=15;case 15:return g++,[3,12];case 16:_=n.filter(function(T){return T.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"}),g=0,A.label=17;case 17:return g<_.length?(h=_[g].attrs.PartName.substr(1),b=An,[4,this._zipContents.files[h].async("text")]):[3,21];case 18:return w=b.apply(void 0,[A.sent()]),[4,(S=new ZQ(h,w,this)).load()];case 19:A.sent(),this.slides.push(S),A.label=20;case 20:return g++,[3,17];case 21:return this.slides.sort(function(T,D){return T.index-D.index}),[3,23];case 22:return A.sent(),[3,23];case 23:return[2]}})})},r.prototype._loadMedia=function(){return dr(this,void 0,void 0,function(){var e,t,n,a,i,o,s,l,u,c,f,d,v,p=this;return pr(this,function(y){switch(y.label){case 0:e=Object.keys(this._zipContents.files).filter(function(g){return g.startsWith("ppt/media/image")}).map(function(g){return p._zipContents.files[g]}),t=0,n=e,y.label=1;case 1:return t<n.length?(a=n[t],i=function(g){var h;switch(g){case"jpg":case"jpeg":h="image/jpeg";break;case"png":h="image/png";break;case"gif":h="image/gif";break;case"emf":h="image/x-emf";break;case"wmf":h="image/x-wmf";break;default:h="image/*"}return h}((_=a.name).substr(2+(~-_.lastIndexOf(".")>>>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 l<u.length?(c=u[l],f=c.name.split(".").pop().toLowerCase(),[4,c.async("arraybuffer")]):[3,8];case 6:d=y.sent(),v=new Blob([d],{type:"".concat(["mp3","wav"].includes(f)?"audio":"video","/").concat(f)}),this.medias[c.name]=URL.createObjectURL(v),y.label=7;case 7:return l++,[3,5];case 8:return[2]}var _})})},r.prototype.getXmlByPath=function(e){return dr(this,void 0,void 0,function(){return pr(this,function(t){switch(t.label){case 0:if(!this._zipContents.files[e])throw new Error("文件不存在");return[4,this._zipContents.files[e].async("text")];case 1:return[2,t.sent()]}})})},r.prototype.getSlideLayout=function(e){return this.slideLayouts.find(function(t){return t.name===e})},r.prototype.getSlideMaster=function(e){return this.slideMaster.find(function(t){return t.name===e})},r.prototype.getTheme=function(e){return this.themes.find(function(t){return t.name===e})},r.prototype.getMedia=function(e){return this.medias[e]},r}();function Gw(r){var e=r.extend,t=r.offset,n=r.clip,a=r.base64,i=r.audioFile,o=r.videoFile,s=document.createElement("div");s.style.setProperty("position","absolute"),s.style.setProperty("left",t.x+"px"),s.style.setProperty("top",t.y+"px");var l,u,c,f,d=document.createElement("div");d.style.setProperty("position","absolute"),d.style.setProperty("left","0"),d.style.setProperty("top","0"),d.style.setProperty("width",e.w+"px"),d.style.setProperty("height",e.h+"px"),d.style.setProperty("overflow","hidden"),n?(l=e.w/(1-(n.l===void 0?0:n.l)-(n.r===void 0?0:n.r)),u=e.h/(1-(n.t===void 0?0:n.t)-(n.b===void 0?0:n.b)),c=-1*l*(n.l===void 0?0:n.l),f=-1*u*(n.t===void 0?0:n.t)):(l=e.w,u=e.h,c=0);var v=document.createElement("img");if(v.src=a,v.width=l,v.height=u,v.style.setProperty("position","absolute"),v.style.setProperty("left",c+"px"),v.style.setProperty("top",f+"px"),d.append(v),s.append(d),i){var p=document.createElement("audio");p.style.position="absolute",p.style.left="0",p.style.top="0",p.src=i,p.controls=!0,p.style.transform="translate(-50%)",s.append(p)}if(o){var y=document.createElement("video");y.style.position="absolute",y.style.left="0",y.style.top="0",y.width=e.w,y.height=e.h,y.src=o,y.controls=!0,s.append(y)}return s}function qQ(r,e,t){var n,a=r.props,i=r.text,o=It(It({},e),a),s=document.createElement("span");s.innerHTML=i;var l=18;o.size&&(!((n=t==null?void 0:t.normAutofit)===null||n===void 0)&&n.fontScale?(l=o.size*t.normAutofit.fontScale,s.style.fontSize=l+"px"):(l=o.size,s.style.fontSize=l+"px"));var u=Ie(o.color);u&&(s.style.color=u);var c=/^[^\u4e00-\u9fff]+$/;if(o.typeface)switch(s.style.fontFamily=o.typeface,o.typeface){case"DengXian":c.test(i)&&(s.style.letterSpacing=-.04*l+"px");break;case"DengXian Light":c.test(i)&&(s.style.letterSpacing=-.05*l+"px");break;case"STLiti":case"SimSun":case"NSimSun":case"SimHei":c.test(i)&&(s.style.fontSize=.85*parseInt(s.style.fontSize)+"px");break;case"华文中宋":s.style.fontSize=.85*parseInt(s.style.fontSize)+"px";break;case"FangSong":s.style.letterSpacing=-.08*l+"px"}else c.test(i)&&(s.style.letterSpacing=-.04*l+"px");return o.bold&&(s.style.fontWeight="bold"),o.italic&&(s.style.fontStyle="italic"),o.underline&&o.underline!=="none"&&(s.style.textDecoration="underline"),o.background&&(s.style.backgroundColor=Ie(o.background)),s.style.wordBreak="break-word",s}function KQ(r,e,t){var n=document.createElement("span"),a=r.firstElementChild;switch(n.style.fontSize=a.style.fontSize,n.style.color=a.style.color,n.style.fontWeight=a.style.fontWeight,n.style.fontStyle=a.style.fontStyle,n.style.marginRight="10px",e.buAutoNum){case"arabicPeriod":default:n.textContent=t+".";break;case"circleNumDbPlain":n.textContent=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"][t-1]||t+"";break;case"romanUcPeriod":n.textContent=function(i){var o=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];if(typeof i!="number"||i<1||i>3999)throw new Error("Input must be a number between 1 and 3999.");for(var s="",l=0;l<o.length;l++)for(;i>=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;u<l.length;u++)s+=o[parseInt(l[u],10)];return s}(t)+"."}r.prepend(n)}function bp(r,e,t){var n,a,i,o;e===void 0&&(e=0),t===void 0&&(t={});var s=r.inheritProps,l=r.inheritRProps,u=r.props,c=r.rows,f=It(It({},s),u),d=function(){for(var A,T,D=0,L=0,I=c;L<I.length;L++){var P=I[L];P.props&&P.props.size&&(D=Math.max(D,P.props.size))}var E=((T=(A=t==null?void 0:t.bodyProps)===null||A===void 0?void 0:A.normAutofit)===null||T===void 0?void 0:T.fontScale)||1;return(D||l.size||18)*E},v=document.createElement("div"),p=t.isFirst?0:f.spaceBefore||0,y=t.isLast?0:f.spaceAfter||0;v.style.margin="".concat(Math.floor(.2*d()),"px 0 0 0"),v.style.padding="".concat(Math.floor(p),"px 0px ").concat(Math.floor(y),"px 0px");var _=document.createElement("p");_.style.margin="0",_.style.padding="0px",_.style.wordBreak="break-word",_.style.textAlign=f.align&&{ctr:"center",l:"left",r:"right",dist:"justify"}[f.align]||"center",f.align==="dist"&&(_.style.textAlignLast="justify");var g=f.hasOwnProperty("lineHeight")?f.lineHeight:1;if(!((a=(n=t.bodyProps)===null||n===void 0?void 0:n.normAutofit)===null||a===void 0)&&a.lnSpcReduction&&(g*=1-((o=(i=t.bodyProps)===null||i===void 0?void 0:i.normAutofit)===null||o===void 0?void 0:o.lnSpcReduction)),_.style.lineHeight=g+"",_.style.fontSize=d()+"px",c.length){for(var h=0,w=c;h<w.length;h++){var b=w[h];_.appendChild(qQ(b,It(It({},l),{marginTop:Math.floor(.2*d())}),t.bodyProps))}f.buAutoNum?KQ(_,f,e):f.buChar&&function(A,T){var D=document.createElement("span"),L=A.firstElementChild;D.style.color=L.style.color,D.style.fontSize=L.style.fontSize,D.textContent={n:"■",l:"●",u:"◆",p:"□",ü:"✔",Ø:"➢","•":"•"}[T.buChar]||"■",D.style.marginRight="10px",A.prepend(D)}(_,f),_.style.paddingLeft=(f.marginLeft||0)+(f.indent||0)+"px"}else{var S=document.createElement("span");S.innerHTML=" ",S.style.fontSize=l.size+"px",_.appendChild(S)}return v.appendChild(_),v}var QR="http://www.w3.org/2000/svg";function mt(r){return document.createElementNS(QR,r)}function Ii(r){var e=r.extend;return .16667*Math.min(e.w,e.h)}function $t(r,e,t){t===void 0&&(t=0);var n=e.prstGeom,a=((n==null?void 0:n.gd)||[]).find(function(i){return i.name===r});return a?a.fmla:t}function gt(r,e,t){t===void 0&&(t=0);var n=e.extend,a=e.prstGeom,i=((a==null?void 0:a.gd)||[]).find(function(o){return o.name===r});return i?Math.min(n.w,n.h)*i.fmla:t}function JR(r,e,t){t===void 0&&(t=0);var n=e.extend,a=e.prstGeom,i=((a==null?void 0:a.gd)||[]).find(function(o){return o.name===r});return i?Math.max(n.w,n.h)*i.fmla:t}function ti(r,e){var t=0;switch(r){case"sm":t=1*e;break;case"med":t=1.5*e;break;case"lg":t=2.5*e}return Math.max(t,2)}function tN(r,e,t,n){n===void 0&&(n=!1);var a=r.border,i=a===void 0?{}:a,o=r.uuid,s=i.headEnd,l=i.width,u=i.color,c=i.tailEnd,f=n?s:c,d=f.len,v=d===void 0?"med":d,p=f.w,y=p===void 0?"med":p,_=ti(v,l),g=ti(y,l),h=mt("defs"),w=mt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");w.setAttribute("id",b),w.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*g)),w.setAttribute("refX",_+"px"),w.setAttribute("refY",g+"px"),w.setAttribute("markerWidth",2*_+"px"),w.setAttribute("markerHeight",2*g+"px"),w.setAttribute("orient","auto"),w.setAttribute("markerUnits","userSpaceOnUse");var S=mt("ellipse");S.setAttribute("cx",_+"px"),S.setAttribute("cy",g+"px"),S.setAttribute("rx",_+"px"),S.setAttribute("ry",g+"px"),S.setAttribute("fill",Ie(u)||"transparent"),w.appendChild(S),h.appendChild(w),e.appendChild(h),t.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function eN(r,e,t,n){n===void 0&&(n=!1);var a=r.border,i=a===void 0?{}:a,o=r.uuid,s=i.headEnd,l=i.width,u=i.color,c=i.tailEnd,f=n?s:c,d=f.len,v=d===void 0?"med":d,p=f.w,y=p===void 0?"med":p,_=ti(v,l),g=ti(y,l),h=mt("defs"),w=mt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");w.setAttribute("id",b),w.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*g)),w.setAttribute("refX",(n?.9*_:1.1*_)+"px"),w.setAttribute("refY",g+"px"),w.setAttribute("markerWidth",2*_+"px"),w.setAttribute("markerHeight",2*g+"px"),w.setAttribute("orient","auto"),w.setAttribute("markerUnits","userSpaceOnUse");var S=mt("path"),A=n?["M ".concat(2*_,",0"),"L 0,".concat(g),"L ".concat(2*_,",").concat(2*g),"Z"].join(" "):["M 0,0","L ".concat(2*_,",").concat(g),"L 0,".concat(2*g),"Z"].join(" ");S.setAttribute("d",A),S.setAttribute("fill",Ie(u)||"transparent"),w.appendChild(S),h.appendChild(w),e.appendChild(h),t.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function rN(r,e,t,n){n===void 0&&(n=!1);var a=r.border,i=a===void 0?{}:a,o=r.uuid,s=i.headEnd,l=i.width,u=i.color,c=i.tailEnd,f=n?s:c,d=f.len,v=d===void 0?"med":d,p=f.w,y=p===void 0?"med":p,_=ti(v,l),g=ti(y,l),h=mt("defs"),w=mt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");w.setAttribute("id",b),w.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*g)),w.setAttribute("refX",_+"px"),w.setAttribute("refY",g+"px"),w.setAttribute("markerWidth",2*_+"px"),w.setAttribute("markerHeight",2*g+"px"),w.setAttribute("orient","auto"),w.setAttribute("markerUnits","userSpaceOnUse");var S=mt("path"),A=["M 0,".concat(g),"L ".concat(_,",0"),"L ".concat(2*_,",").concat(g),"L ".concat(_,",").concat(2*g),"Z"].join(" ");S.setAttribute("d",A),S.setAttribute("fill",Ie(u)||"transparent"),w.appendChild(S),h.appendChild(w),e.appendChild(h),t.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function nN(r,e,t,n){n===void 0&&(n=!1);var a=r.border,i=a===void 0?{}:a,o=r.uuid,s=i.headEnd,l=i.width,u=i.color,c=i.tailEnd,f=n?s:c,d=f.len,v=d===void 0?"med":d,p=f.w,y=p===void 0?"med":p,_=ti(v,l),g=ti(y,l),h=mt("defs"),w=mt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");w.setAttribute("id",b),w.setAttribute("viewBox","0 0 ".concat(2*_+2*l," ").concat(2*g+2*l));var S=n?y==="lg"?2*l:3*l:y==="lg"?2*_:2*_-l;w.setAttribute("refX",S+"px"),w.setAttribute("refY",g+l+"px"),w.setAttribute("markerWidth",2*_+"px"),w.setAttribute("markerHeight",2*g+"px"),w.setAttribute("orient","auto"),w.setAttribute("markerUnits","userSpaceOnUse");var A=mt("path"),T=n?["M ".concat(2*_+l,", ").concat(l),"L ".concat(l,",").concat(g+l),"L ".concat(2*_+l,",").concat(2*g+l)].join(" "):["M ".concat(l,", ").concat(l),"L ".concat(2*_+l,",").concat(g+l),"L ".concat(l,",").concat(2*g+l)].join(" ");A.setAttribute("d",T),A.setAttribute("stroke-width",l+"px"),A.setAttribute("stroke",Ie(u)||"transparent"),A.setAttribute("fill","transparent"),A.setAttribute("stroke-linecap","round"),A.setAttribute("stroke-linejoin","miter"),A.style.overflow="visible",w.appendChild(A),h.appendChild(w),e.appendChild(h),t.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function aN(r,e,t,n){n===void 0&&(n=!1);var a=r.border,i=a===void 0?{}:a,o=r.uuid,s=i.headEnd,l=i.width,u=i.color,c=i.tailEnd,f=n?s:c,d=f.len,v=d===void 0?"med":d,p=f.w,y=p===void 0?"med":p,_=ti(v,l),g=ti(y,l),h=mt("defs"),w=mt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");w.setAttribute("id",b),w.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*g));var S=n?y==="sm"?1.5*l:2*l:y==="sm"?2*_-1.5*l:2*_-2*l;w.setAttribute("refX",S+"px"),w.setAttribute("refY",g+"px"),w.setAttribute("markerWidth",2*_+"px"),w.setAttribute("markerHeight",2*g+"px"),w.setAttribute("orient","auto"),w.setAttribute("markerUnits","userSpaceOnUse");var A=mt("path"),T=n?["M 0, ".concat(g),"L ".concat(2*_,",0"),"L ".concat(_,",").concat(g),"L ".concat(2*_,",").concat(2*g),"Z"].join(" "):["M 0,0","L ".concat(2*_,",").concat(g),"L 0,".concat(2*g),"L ".concat(_,",").concat(g),"Z"].join(" ");A.setAttribute("d",T),A.setAttribute("fill",Ie(u)||"transparent"),A.style.overflow="visible",w.appendChild(A),h.appendChild(w),e.appendChild(h),t.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function Ff(r,e,t){var n=r.border,a=n===void 0?{}:n;r.extend;var i=a.headEnd,o=a.tailEnd;if(i&&i.type!=="none")switch(i.type){case"triangle":eN(r,e,t,!0);break;case"oval":tN(r,e,t,!0);break;case"diamond":rN(r,e,t,!0);break;case"arrow":nN(r,e,t,!0);break;case"stealth":aN(r,e,t,!0)}if(o&&o.type!=="none")switch(o.type){case"triangle":eN(r,e,t,!1);break;case"oval":tN(r,e,t,!1);break;case"diamond":rN(r,e,t,!1);break;case"arrow":nN(r,e,t,!1);break;case"stealth":aN(r,e,t,!1)}}function iN(r){var e=r.extend,t=mt("rect");return t.setAttribute("x","0"),t.setAttribute("y","0"),t.setAttribute("width",e.w+"px"),t.setAttribute("height",e.h+"px"),t}function Hr(r,e,t,n,a){var i=r*Math.PI/180;return[i===0||i===2*Math.PI?e+n:i===Math.PI?e-n:i===Math.PI/2||i===3*Math.PI/2?e:i>0&&i<Math.PI/2||i>3*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||e<r&&r-e<180)&&(t=1),t}function Wf(r){var e=r.extend,t=.146*e.w,n=.146*e.h;return{top:n,bottom:n,left:t,right:t,w:e.w-2*t,h:e.h-2*n}}function Ww(r){var e=r.extend,t=r.offset,n=r.border,a=r.background,i=r.rotate,o=r.flipH,s=r.flipV,l=document.createElement("div"),u=t.x,c=t.y;l.className="shape-wrapper shape-".concat(r.shape),l.style.setProperty("position","absolute"),l.style.setProperty("width",(e.w||1)+"px"),l.style.setProperty("height",(e.h||1)+"px"),l.style.setProperty("left",u+"px"),l.style.setProperty("top",c+"px");var f,d=document.createElementNS(QR,"svg");d.style.setProperty("position","absolute"),d.setAttribute("width","100%"),d.setAttribute("height","100%"),d.style.setProperty("left","0"),d.style.setProperty("top","0"),d.style.overflow="visible";var v={left:0,top:0,right:0,bottom:0,w:e.w,h:e.h},p=!0;switch(r.shape){case"customGeom":f=function(g){var h=g.prstGeom,w=h===void 0?{}:h,b=g.extend,S=w.pathList,A=w.w,T=w.h,D=mt("path"),L={moveTo:"M",lnTo:"L",cubicBezTo:"C",close:"Z"},I=b.w/A,P=b.h/T,E=S.map(function(R){var M=L[R.type],B=Array.isArray(R.points)?R.points.map(function(F){return"".concat(F[0]*I,",").concat(F[1]*P)}).join(" "):"";return B?"".concat(M," ").concat(B):"".concat(M)}).join(" ");return D.setAttribute("d",E),D.style.fillRule="evenodd",D}(r),Ff(r,d,f);break;case"flowChartProcess":case"rect":f=iN(r);break;case"snip1Rect":f=function(g){var h=g.extend,w=mt("polygon"),b=gt("adj",g,Ii(g)),S=["0,0","".concat(h.w-b,",0"),"".concat(h.w,",").concat(b),"".concat(h.w,",").concat(h.h),"0,".concat(h.h)].join(" ");return w.setAttribute("points",S),w}(r);break;case"snip2SameRect":f=function(g){var h=g.extend,w=mt("polygon"),b=gt("adj1",g,Ii(g)),S=gt("adj2",g,0),A=[[b,0],[h.w-b,0],[h.w,b],[h.w,h.h-S],[h.w-S,h.h],[S,h.h],[0,h.h-S],[0,b]].map(function(T){return"".concat(T[0],",").concat(T[1])}).join(" ");return w.setAttribute("points",A),w}(r);break;case"snip2DiagRect":f=function(g){var h=g.extend,w=mt("polygon"),b=gt("adj1",g,0),S=gt("adj2",g,Ii(g)),A=[[b,0],[h.w-S,0],[h.w,S],[h.w,h.h-b],[h.w-b,h.h],[S,h.h],[0,h.h-S],[0,b]].map(function(T){return"".concat(T[0],",").concat(T[1])}).join(" ");return w.setAttribute("points",A),w}(r);break;case"snipRoundRect":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj1",g,Ii(g)),S=gt("adj2",g,Ii(g)),A=["M ".concat(b,",0"),"L ".concat(h.w-S,",0"),"L ".concat(h.w,",").concat(S),"L ".concat(h.w,",").concat(h.h),"L 0,".concat(h.h),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return w.setAttribute("d",A),w}(r);break;case"roundRect":f=function(g){var h=iN(g),w=gt("adj",g,Ii(g));return h.setAttribute("rx",w+"px"),h.setAttribute("ry",w+"px"),h}(r);break;case"round1Rect":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj",g,Ii(g)),S=["M 0,0","L ".concat(h.w-b,",0"),"Q ".concat(h.w,",0 ").concat(h.w,",").concat(b),"L ".concat(h.w,",").concat(h.h),"L 0,".concat(h.h),"Z"].join(" ");return w.setAttribute("d",S),w}(r);break;case"round2SameRect":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj1",g,Ii(g)),S=gt("adj2",g,0),A=["M ".concat(b,",0"),"L ".concat(h.w-b,",0"),"Q ".concat(h.w,",0 ").concat(h.w,",").concat(b),"L ".concat(h.w,",").concat(h.h-S),"Q ".concat(h.w,",").concat(h.h," ").concat(h.w-S,",").concat(h.h),"L ".concat(S,",").concat(h.h),"Q 0,".concat(h.h," 0,").concat(h.h-S),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return w.setAttribute("d",A),w}(r);break;case"round2DiagRect":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj1",g,Ii(g)),S=gt("adj2",g,0),A=["M ".concat(b,",0"),"L ".concat(h.w-S,",0"),"Q ".concat(h.w,",0 ").concat(h.w,",").concat(S),"L ".concat(h.w,",").concat(h.h-b),"Q ".concat(h.w,",").concat(h.h," ").concat(h.w-b,",").concat(h.h),"L ".concat(S,",").concat(h.h),"Q 0,".concat(h.h," 0,").concat(h.h-S),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return w.setAttribute("d",A),w}(r);break;case"triangle":f=function(g){var h=g.extend,w=mt("polygon"),b=["".concat(h.w/2,",0"),"0,".concat(h.h),"".concat(h.w,",").concat(h.h)].join(" ");return w.setAttribute("points",b),w}(r);break;case"rtTriangle":f=function(g){var h=g.extend,w=mt("polygon"),b=["0,".concat(h.h),"0,0","".concat(h.w,",").concat(h.h)].join(" ");return w.setAttribute("points",b),w}(r);break;case"ellipse":f=function(g){var h=g.extend,w=mt("ellipse"),b=h.w/2,S=h.h/2,A=b,T=S;return w.setAttribute("cx",b+"px"),w.setAttribute("cy",S+"px"),w.setAttribute("rx",A+"px"),w.setAttribute("ry",T+"px"),w}(r);break;case"line":f=function(g){var h=g.extend,w=mt("path"),b=["M 0,0","L ".concat(h.w,",").concat(h.h)].join(" ");return w.setAttribute("d",b),w}(r),Ff(r,d,f),p=!1;break;case"straightConnector1":f=function(g){var h=g.extend,w=mt("path"),b=["M 0,0","L ".concat(h.w,",").concat(h.h)].join(" ");return w.setAttribute("d",b),w}(r),Ff(r,d,f),p=!1;break;case"bentConnector3":f=function(g){var h=g.extend,w=mt("path"),b=JR("adj1",g,.5*Math.max(h.w,h.h)),S=["M 0,0","L ".concat(b,",0"),"L ".concat(b,",").concat(h.h),"L ".concat(h.w,",").concat(h.h)].join(" ");return w.setAttribute("d",S),w}(r),Ff(r,d,f),p=!1;break;case"curvedConnector3":f=function(g){var h=g.extend,w=mt("path"),b=JR("adj1",g,.5*Math.max(h.w,h.h)),S=["M0,0","Q".concat(b,",0 ").concat(b,",").concat(h.h/2),"T".concat(h.w,",").concat(h.h)].join(" ");return w.setAttribute("d",S),w}(r),Ff(r,d,f),p=!1;break;case"parallelogram":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj",g,.5*Math.min(h.w,h.h)),S=["M".concat(b,",0"),"L".concat(h.w,",0"),"L".concat(h.w-b,",").concat(h.h),"L0,".concat(h.h),"Z"].join(" ");return w.setAttribute("d",S),w}(r),v=function(g){var h=g.extend,w=gt("adj",g,.5*Math.min(h.w,h.h)),b=.84*(h.w-w),S=.08*h.h+w/h.w*h.h*.42;return{top:S,bottom:S,left:(h.w-b)/2,right:(h.w-b)/2,w:b,h:h.h-2*S}}(r);break;case"trapezoid":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj",g,.25*Math.min(h.w,h.h)),S=["M".concat(b,",0"),"L".concat(h.w-b,",0"),"L".concat(h.w,",").concat(h.h),"L0,".concat(h.h),"Z"].join(" ");return w.setAttribute("d",S),w}(r),v=function(g){var h=g.extend,w=gt("adj",g,.5*Math.min(h.w,h.h)),b=w/h.w*.66*h.h,S=.66*w;return{top:b,bottom:0,left:S,right:S,w:h.w-2*S,h:h.h-b}}(r);break;case"diamond":f=function(g){var h=g.extend,w=mt("path"),b=["M".concat(h.w/2,",0"),"L".concat(h.w,",").concat(h.h/2),"L".concat(h.w/2,",").concat(h.h),"L0,".concat(h.h/2),"Z"].join(" ");return w.setAttribute("d",b),w}(r),v=function(g){var h=g.extend,w=.25*h.h,b=.25*h.w;return{top:w,bottom:w,left:b,right:b,w:.5*h.w,h:.5*h.h}}(r);break;case"pentagon":f=function(g){var h=g.extend,w=mt("path"),b=["M".concat(h.w/2,",0"),"L".concat(h.w,",").concat(.3771*h.h),"L".concat(.808*h.w,",").concat(h.h),"L".concat(.192*h.w,",").concat(h.h),"L0,".concat(.3771*h.h),"Z"].join(" ");return w.setAttribute("d",b),w}(r),v=function(g){var h=g.extend,w=.227*h.h,b=.192*h.w;return{top:w,bottom:0,left:b,right:b,w:.616*h.w,h:.773*h.h}}(r);break;case"hexagon":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj",g,.25*Math.min(h.w,h.h)),S=["M".concat(b,",0"),"L".concat(h.w-b,",0"),"L".concat(h.w,",").concat(h.h/2),"L".concat(h.w-b,",").concat(h.h),"L".concat(b,",").concat(h.h),"L0,".concat(h.h/2),"Z"].join(" ");return w.setAttribute("d",S),w}(r),v=function(g){var h=g.extend,w=gt("adj",g,.25*Math.min(h.w,h.h)),b=.098*h.h+w/h.w*.38*h.h,S=.088*h.w+.422*w;return{top:b,bottom:b,left:S,right:S,w:h.w-2*S,h:h.h-2*b}}(r);break;case"heptagon":f=function(g){var h=g.extend,w=mt("path"),b=["M".concat(h.w/2,",0"),"L".concat(.9*h.w,",").concat(.2*h.h),"L".concat(h.w,",").concat(.642*h.h),"L".concat(.722*h.w,",").concat(h.h),"L".concat(.278*h.w,",").concat(h.h),"L0,".concat(.642*h.h),"L".concat(.1*h.w,",").concat(.2*h.h),"Z"].join(" ");return w.setAttribute("d",b),w}(r),v=function(g){var h=g.extend;return{top:.2*h.h,bottom:.2*h.h,left:.1*h.w,right:.1*h.w,w:.8*h.w,h:.6*h.h}}(r);break;case"octagon":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj",g,.29*Math.min(h.w,h.h)),S=["M".concat(b,",0"),"L".concat(h.w-b,",0"),"L".concat(h.w,",").concat(b),"L".concat(h.w,",").concat(h.h-b),"L".concat(h.w-b,",").concat(h.h),"L".concat(b,",").concat(h.h),"L0,".concat(h.h-b),"L0,".concat(b),"Z"].join(" ");return w.setAttribute("d",S),w}(r),v=function(g){var h=g.extend,w=gt("adj",g,.29*Math.min(h.w,h.h));return{top:.5*w,bottom:.5*w,left:.5*w,right:.5*w,w:h.w-w,h:h.h-w}}(r);break;case"decagon":f=function(g){var h=g.extend,w=mt("path"),b=.344,S=.117,A=.19,T=["M".concat(h.w*b,",0"),"L".concat(.656*h.w,",0"),"L".concat(.883*h.w,",").concat(h.h*A),"L".concat(h.w,",").concat(.5*h.h),"L".concat(.883*h.w,",").concat(.81*h.h),"L".concat(.656*h.w,",").concat(h.h),"L".concat(h.w*b,",").concat(h.h),"L".concat(h.w*S,",").concat(.81*h.h),"L0,".concat(.5*h.h),"L".concat(h.w*S,",").concat(h.h*A),"Z"].join(" ");return w.setAttribute("d",T),w}(r),v=function(g){var h=g.extend,w=.117,b=.19;return{top:h.h*b,bottom:h.h*b,left:h.w*w,right:h.w*w,w:.766*h.w,h:.62*h.h}}(r);break;case"dodecagon":f=function(g){var h=g.extend,w=mt("path"),b=.364,S=.133,A=.135,T=["M".concat(h.w*b,",0"),"L".concat(.636*h.w,",0"),"L".concat(.867*h.w,",").concat(h.h*A),"L".concat(h.w,",").concat(h.h*b),"L".concat(h.w,",").concat(.636*h.h),"L".concat(.867*h.w,",").concat(.865*h.h),"L".concat(.636*h.w,",").concat(h.h),"L".concat(h.w*b,",").concat(h.h),"L".concat(h.w*S,",").concat(.865*h.h),"L0,".concat(.636*h.h),"L0,".concat(h.h*b),"L".concat(h.w*S,",").concat(h.h*A),"Z"].join(" ");return w.setAttribute("d",T),w}(r),v=function(g){var h=g.extend,w=.133,b=.135;return{top:h.h*b,bottom:h.h*b,left:h.w*w,right:h.w*w,w:.734*h.w,h:.73*h.h}}(r);break;case"pie":f=function(g){var h=g.extend,w=mt("path"),b=$t("adj1",g,360),S=$t("adj2",g,270),A=h.w/2,T=h.h/2,D=h.w/2,L=h.h/2,I=Hr(b,D,L,A,T),P=I[0],E=I[1],R=Hr(S,D,L,A,T),M=R[0],B=R[1],F=Gf(b,S),W="M".concat(D,",").concat(L,", L").concat(P," ").concat(E," A ").concat(A," ").concat(T," 0 ").concat(F," ").concat(1," ").concat(M," ").concat(B," Z");return w.setAttribute("d",W),w}(r),v=Wf(r);break;case"arc":f=function(g){var h=g.extend,w=mt("path"),b=$t("adj1",g,270),S=$t("adj2",g,0),A=h.w/2,T=h.h/2,D=h.w/2,L=h.h/2,I=Hr(b,D,L,A,T),P=I[0],E=I[1],R=Hr(S,D,L,A,T),M=R[0],B=R[1],F=Gf(b,S),W="M".concat(P,",").concat(E," A ").concat(A," ").concat(T," 0 ").concat(F," ").concat(1," ").concat(M," ").concat(B);return w.setAttribute("d",W),w}(r),p=!1;break;case"bracketPair":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj",g,.16667*Math.min(h.w,h.h)),S=["M".concat(b,",").concat(h.h),"Q".concat(0,",").concat(h.h," ").concat(0,",").concat(h.h-b),"L".concat(0,",").concat(b),"Q".concat(0,",").concat(0," ").concat(b,",").concat(0),"M".concat(h.w-b,",").concat(0),"Q".concat(h.w,",").concat(0," ").concat(h.w,",").concat(b),"L".concat(h.w,",").concat(h.h-b),"Q".concat(h.w,",").concat(h.h," ").concat(h.w-b,",").concat(h.h)].join(" ");return w.setAttribute("d",S),w}(r),v=function(g){var h=g.extend,w=.285*gt("adj",g,.16667*Math.min(h.w,h.h));return{top:w,bottom:w,left:w,right:w,w:h.w-2*w,h:h.h-2*w}}(r),p=!1;break;case"bracePair":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj",g,.083335*Math.min(h.w,h.h)),S=["M".concat(2*b,",").concat(h.h),"Q".concat(b,",").concat(h.h," ").concat(b,",").concat(h.h-b),"L".concat(b,",").concat(h.h/2+b),"Q".concat(b,",").concat(h.h/2," ").concat(0,",").concat(h.h/2),"Q".concat(b,",").concat(h.h/2," ").concat(b,",").concat(h.h/2-b),"L".concat(b,",").concat(b),"Q".concat(b,",").concat(0," ").concat(2*b,",").concat(0),"M".concat(h.w-2*b,",").concat(0),"Q".concat(h.w-b,",").concat(0," ").concat(h.w-b,",").concat(b),"L".concat(h.w-b,",").concat(h.h/2-b),"Q".concat(h.w-b,",").concat(h.h/2," ").concat(h.w,",").concat(h.h/2),"Q".concat(h.w-b,",").concat(h.h/2," ").concat(h.w-b,",").concat(h.h/2+b),"L".concat(h.w-b,",").concat(h.h-b),"Q".concat(h.w-b,",").concat(h.h," ").concat(h.w-2*b,",").concat(h.h)].join(" ");return w.setAttribute("d",S),w}(r),v=function(g){var h=g.extend,w=.285*gt("adj",g,.16667*Math.min(h.w,h.h));return{top:w,bottom:w,left:w,right:w,w:h.w-2*w,h:h.h-2*w}}(r),p=!1;break;case"chord":f=function(g){var h=g.extend,w=mt("path"),b=$t("adj1",g,45),S=$t("adj2",g,270),A=h.w/2,T=h.h/2,D=h.w/2,L=h.h/2,I=Hr(b,D,L,A,T),P=I[0],E=I[1],R=Hr(S,D,L,A,T),M=R[0],B=R[1],F=Gf(b,S),W="M".concat(P," ").concat(E," A ").concat(A," ").concat(T," 0 ").concat(F," ").concat(1," ").concat(M," ").concat(B," Z");return w.setAttribute("d",W),w}(r),v=Wf(r);break;case"teardrop":f=function(g){var h=g.extend,w=mt("path"),b=$t("adj",g,1),S=h.w/2,A=h.h/2,T=h.w/2,D=h.h/2,L=Hr(0,T,D,S,A),I=L[0],P=L[1],E=Hr(270,T,D,S,A),R=E[0],M=E[1],B=Gf(0,270),F="M".concat(I," ").concat(P," A ").concat(S," ").concat(A," 0 ").concat(B," ").concat(1," ").concat(R," ").concat(M),W=S*b,j=T+W,H=D-A*W/(h.w/2),K=(h.w/2+j)/2,U=(h.h/2+H)/2;return F+=" Q".concat(K,",0 ").concat(j,",").concat(H),F+=" Q".concat(h.w,",").concat(U," ").concat(T+S,",").concat(D),w.setAttribute("d",F),w}(r),v=Wf(r);break;case"frame":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj1",g,.12*Math.min(h.w,h.h)),S=["M0,0","L".concat(h.w,",0"),"L".concat(h.w,",").concat(h.h),"L0,".concat(h.h),"Z","M".concat(b,",").concat(b),"L".concat(b,",").concat(h.h-b),"L".concat(h.w-b,",").concat(h.h-b),"L".concat(h.w-b,",").concat(b),"Z"].join(" ");return w.setAttribute("d",S),w}(r),v=function(g){var h=g.extend,w=gt("adj1",g,.12*Math.min(h.w,h.h));return{top:w,bottom:w,left:w,right:w,w:h.w-2*w,h:h.h-2*w}}(r);break;case"halfFrame":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj1",g,.333*Math.min(h.w,h.h)),S=Math.min(gt("adj2",g,.333*Math.min(h.w,h.h)),h.w*(1-b/h.h)),A=["M0,0","L".concat(h.w,",0"),"L".concat(h.w*(1-b/h.h),",").concat(b),"L".concat(S,",").concat(b),"L".concat(S,",").concat(h.h*(1-S/h.w)),"L0,".concat(h.h),"Z"].join(" ");return w.setAttribute("d",A),w}(r);break;case"corner":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj1",g,.5*Math.min(h.w,h.h)),S=gt("adj2",g,.5*Math.min(h.w,h.h)),A=["M0,0","L".concat(S,",0"),"L".concat(S,",").concat(h.h-b),"L".concat(h.w,",").concat(h.h-b),"L".concat(h.w,",").concat(h.h),"L0,".concat(h.h),"Z"].join(" ");return w.setAttribute("d",A),w}(r),v=function(g){var h=g.extend,w=gt("adj1",g,.5*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"diagStripe":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj",g,.5*Math.min(h.w,h.h)),S=h.w*b/h.h,A=["M".concat(S,",0"),"L".concat(h.w,",0"),"L0,".concat(h.h),"L0,".concat(b),"Z"].join(" ");return w.setAttribute("d",A),w}(r),v=function(g){var h=g.extend,w=$t("adj",g,.5),b=.5*(1-w)*h.h,S=.5*(1-w)*h.w;return{top:0,bottom:b,left:0,right:S,w:h.w-S,h:h.h-b}}(r);break;case"plus":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj",g,.25*Math.min(h.w,h.h)),S=["M".concat(b,",0"),"L".concat(h.w-b,",0"),"L".concat(h.w-b,",").concat(b),"L".concat(h.w,",").concat(b),"L".concat(h.w,",").concat(h.h-b),"L".concat(h.w-b,",").concat(h.h-b),"L".concat(h.w-b,",").concat(h.h),"L".concat(b,",").concat(h.h),"L".concat(b,",").concat(h.h-b),"L0,".concat(h.h-b),"L0,".concat(b),"L".concat(b,",").concat(b),"Z"].join(" ");return w.setAttribute("d",S),w}(r),v=function(g){var h=g.extend,w=gt("adj",g,.25*Math.min(h.w,h.h));return{top:w,bottom:w,left:0,right:0,w:h.w,h:h.h-2*w}}(r);break;case"plaque":f=function(g){var h=g.extend,w=mt("path"),b=gt("adj",g,.16667*Math.min(h.w,h.h)),S=["M".concat(b,",0"),"L".concat(h.w-b,",0"),"Q".concat(h.w-b,",").concat(b," ").concat(h.w,",").concat(b),"L".concat(h.w,",").concat(h.h-b),"Q".concat(h.w-b,",").concat(h.h-b," ").concat(h.w-b,",").concat(h.h),"L".concat(b,",").concat(h.h),"Q".concat(b,",").concat(h.h-b," 0,").concat(h.h-b),"L0,".concat(b),"Q".concat(b,",").concat(b," ").concat(b,",0"),"Z"].join(" ");return w.setAttribute("d",S),w}(r),v=function(g){var h=g.extend,w=gt("adj",g,.16667*Math.min(h.w,h.h));return{top:.72*w,bottom:.72*w,left:.72*w,right:.72*w,w:h.w-1.44*w,h:h.w-1.44*w}}(r);break;case"can":f=function(g){var h=g.extend,w=g.background,b=mt("g"),S=mt("path"),A=gt("adj",g,.25*Math.min(h.w,h.h)),T=["M0,".concat(A/2),"L0,".concat(h.h-A/2),"A".concat(h.w/2,",").concat(A/2," 0 0 0 ").concat(h.w,",").concat(h.h-A/2),"L".concat(h.w,",").concat(A/2),"A".concat(h.w/2,",").concat(A/2," 0 0 1 0,").concat(A/2),"Z"].join(" ");S.setAttribute("d",T);var D=mt("ellipse"),L=h.w/2,I=A/2,P=h.w/2,E=A/2;return D.setAttribute("cx",L+"px"),D.setAttribute("cy",I+"px"),D.setAttribute("rx",P+"px"),D.setAttribute("ry",E+"px"),(w==null?void 0:w.type)==="solidFill"&&D.setAttribute("fill",Ie(w,{light:.5})||"transparent"),b.appendChild(S),b.appendChild(D),b}(r),v=function(g){var h=g.extend,w=gt("adj",g,.25*Math.min(h.w,h.h));return{top:w,bottom:0,left:0,right:0,w:h.w,h:h.h-w}}(r);break;case"cube":f=function(g){var h=g.extend,w=g.background,b=gt("adj",g,.25*Math.min(h.w,h.h)),S=mt("g"),A=mt("path"),T=["M0,".concat(b),"L".concat(h.w-b,",").concat(b),"L".concat(h.w-b,",").concat(h.h),"L0,".concat(h.h),"Z"].join(" ");A.setAttribute("d",T);var D=mt("path"),L=["M0,".concat(b),"L".concat(b,",0"),"L".concat(h.w,",0"),"L".concat(h.w-b,",").concat(b),"Z"].join(" ");D.setAttribute("d",L),(w==null?void 0:w.type)==="solidFill"&&D.setAttribute("fill",Ie(w,{light:.8})||"transparent");var I=mt("path"),P=["M".concat(h.w,",0"),"L".concat(h.w-b,",").concat(b),"L".concat(h.w-b,",").concat(h.h),"L".concat(h.w,",").concat(h.h-b),"Z"].join(" ");return I.setAttribute("d",P),(w==null?void 0:w.type)==="solidFill"&&I.setAttribute("fill",Ie(w,{dark:.6})||"transparent"),S.appendChild(A),S.appendChild(D),S.appendChild(I),S}(r),v=function(g){var h=g.extend,w=gt("adj",g,.25*Math.min(h.w,h.h));return{top:w,bottom:0,left:0,right:w,w:h.w-w,h:h.h-w}}(r);break;case"bevel":f=function(g){var h=g.extend,w=g.background,b=gt("adj",g,.125*Math.min(h.w,h.h)),S=mt("g"),A=mt("path"),T=["M".concat(b,",").concat(b),"L".concat(h.w-b,",").concat(b),"L".concat(h.w-b,",").concat(h.h-b),"L".concat(b,",").concat(h.h-b),"Z"].join(" ");A.setAttribute("d",T);var D=mt("path"),L=["M0,0","L".concat(b,",").concat(b),"L".concat(h.w-b,",").concat(b),"L".concat(h.w,",0"),"Z"].join(" ");D.setAttribute("d",L),(w==null?void 0:w.type)==="solidFill"&&D.setAttribute("fill",Ie(w,{light:.8})||"transparent");var I=mt("path"),P=["M".concat(h.w,",0"),"L".concat(h.w-b,",").concat(b),"L".concat(h.w-b,",").concat(h.h-b),"L".concat(h.w,",").concat(h.h),"Z"].join(" ");I.setAttribute("d",P),(w==null?void 0:w.type)==="solidFill"&&I.setAttribute("fill",Ie(w,{dark:.6})||"transparent");var E=mt("path"),R=["M".concat(h.w,",").concat(h.h),"L".concat(h.w-b,",").concat(h.h-b),"L".concat(b,",").concat(h.h-b),"L0,".concat(h.h),"Z"].join(" ");E.setAttribute("d",R),(w==null?void 0:w.type)==="solidFill"&&E.setAttribute("fill",Ie(w,{dark:.625})||"transparent");var M=mt("path"),B=["M0,".concat(h.h),"L".concat(b,",").concat(h.h-b),"L".concat(b,",").concat(b),"L0,0","Z"].join(" ");return M.setAttribute("d",B),(w==null?void 0:w.type)==="solidFill"&&M.setAttribute("fill",Ie(w,{light:.6})||"transparent"),S.appendChild(A),S.appendChild(D),S.appendChild(I),S.appendChild(E),S.appendChild(M),S}(r),v=function(g){var h=g.extend,w=gt("adj",g,.125*Math.min(h.w,h.h));return{top:w,bottom:w,left:w,right:w,w:h.w-2*w,h:h.h-2*w}}(r);break;case"donut":f=function(g){var h=g.extend,w=gt("adj",g,.25*Math.min(h.w,h.h)),b=mt("path"),S=["M0,".concat(h.h/2),"A".concat(h.w/2,",").concat(h.h/2," 0 1,1 0,").concat(h.h/2+1),"Z","M".concat(h.w-w,",").concat(h.h/2),"A".concat(h.w/2-w,",").concat(h.h/2-w," 0 1,0 ").concat(h.w-w,",").concat(h.h/2+1),"Z"].join(" ");return b.setAttribute("d",S),b}(r),v=Wf(r);break;case"noSmoking":f=function(g){var h=g.extend,w=gt("adj",g,.25*Math.min(h.w,h.h)),b=mt("path"),S=Math.atan(h.h/h.w),A=w/2/Math.sin(S),T=h.w/2,D=h.h/2,L=-1*h.h/h.w,I=h.h*A/h.w,P=h.w/2-w,E=h.h/2-w,R=-2*P*P*L*I,M=Math.sqrt(Math.pow(2*P*P*L*I,2)-4*(E*E+P*P*L*L)*P*P*(I*I-E*E)),B=2*(E*E+P*P*L*L),F=(R-M)/B,W=L*F+I,j=(R+M)/B,H=L*j+I,K=-h.h*A/h.w,U=-2*P*P*L*K,$=Math.sqrt(Math.pow(2*P*P*L*K,2)-4*(E*E+P*P*L*L)*P*P*(K*K-E*E)),ut=2*(E*E+P*P*L*L),ot=(U-$)/ut,it=L*ot+K,Nt=(U+$)/ut,Kt=L*Nt+K,xt=["M0,".concat(h.h/2),"A".concat(h.w/2,",").concat(h.h/2," 0 1,1 0,").concat(h.h/2+1),"Z","M".concat(T+j,",").concat(D-H),"A".concat(P,",").concat(E," 0 0 0 ").concat(T+F,",").concat(D-W),"Z","M".concat(T+ot,",").concat(D-it),"A".concat(P,",").concat(E," 0 0 0 ").concat(T+Nt,",").concat(D-Kt),"Z"].join(" ");return b.setAttribute("d",xt),b}(r),v=Wf(r);break;case"rightArrow":f=function(g){var h=g.extend,w=gt("adj1",g,.5*Math.min(h.w,h.h)),b=gt("adj2",g,.5*Math.min(h.w,h.h)),S=mt("path"),A=["M0,".concat(h.h/2-w/2),"L".concat(h.w-b,",").concat(h.h/2-w/2),"L".concat(h.w-b,",0"),"L".concat(h.w,",").concat(h.h/2),"L".concat(h.w-b,",").concat(h.h),"L".concat(h.w-b,",").concat(h.h/2+w/2),"L0,".concat(h.h/2+w/2),"Z"].join(" ");return S.setAttribute("d",A),S}(r),v=function(g){var h=g.extend,w=gt("adj1",g,.5*Math.min(h.w,h.h)),b=w*gt("adj2",g,.5*Math.min(h.w,h.h))/h.h;return{top:h.h/2-w/2,bottom:h.h/2-w/2,left:0,right:b,w:h.w-b,h:w}}(r);break;case"leftArrow":f=function(g){var h=g.extend,w=gt("adj1",g,.5*Math.min(h.w,h.h)),b=gt("adj2",g,.5*Math.min(h.w,h.h)),S=mt("path"),A=["M0,".concat(h.h/2),"L".concat(b,",0"),"L".concat(b,",").concat(h.h/2-w/2),"L".concat(h.w,",").concat(h.h/2-w/2),"L".concat(h.w,",").concat(h.h/2+w/2),"L".concat(b,",").concat(h.h/2+w/2),"L".concat(b,",").concat(h.h),"Z"].join(" ");return S.setAttribute("d",A),S}(r),v=function(g){var h=g.extend,w=gt("adj1",g,.5*Math.min(h.w,h.h)),b=w*gt("adj2",g,.5*Math.min(h.w,h.h))/h.h;return{top:h.h/2-w/2,bottom:h.h/2-w/2,left:b,right:0,w:h.w-b,h:w}}(r);break;case"upArrow":f=function(g){var h=g.extend,w=gt("adj1",g,.5*Math.min(h.w,h.h)),b=gt("adj2",g,.5*Math.min(h.w,h.h)),S=mt("path"),A=["M".concat(h.w/2,",0"),"L".concat(h.w,",").concat(b),"L".concat(h.w/2+w/2,",").concat(b),"L".concat(h.w/2+w/2,",").concat(h.h),"L".concat(h.w/2-w/2,",").concat(h.h),"L".concat(h.w/2-w/2,",").concat(b),"L0,".concat(b),"Z"].join(" ");return S.setAttribute("d",A),S}(r),v=function(g){var h=g.extend,w=gt("adj1",g,.5*Math.min(h.w,h.h)),b=w*gt("adj2",g,.5*Math.min(h.w,h.h))/h.w;return{top:b,bottom:0,left:h.w/2-w/2,right:h.w/2-w/2,w,h:h.h-b}}(r);break;case"downArrow":f=function(g){var h=g.extend,w=gt("adj1",g,.5*Math.min(h.w,h.h)),b=gt("adj2",g,.5*Math.min(h.w,h.h)),S=mt("path"),A=["M".concat(h.w/2,",").concat(h.h),"L0,".concat(h.h-b),"L".concat(h.w/2-w/2,",").concat(h.h-b),"L".concat(h.w/2-w/2,",0"),"L".concat(h.w/2+w/2,",0"),"L".concat(h.w/2+w/2,",").concat(h.h-b),"L".concat(h.w,",").concat(h.h-b),"Z"].join(" ");return S.setAttribute("d",A),S}(r),v=function(g){var h=g.extend,w=gt("adj1",g,.5*Math.min(h.w,h.h)),b=w*gt("adj2",g,.5*Math.min(h.w,h.h))/h.w;return{top:0,bottom:b,left:h.w/2-w/2,right:h.w/2-w/2,w,h:h.h-b}}(r);break;case"leftRightArrow":f=function(g){var h=g.extend,w=gt("adj1",g,.5*Math.min(h.w,h.h)),b=gt("adj2",g,.5*Math.min(h.w,h.h)),S=mt("path"),A=["M0,".concat(h.h/2),"L".concat(b,",0"),"L".concat(b,",").concat(h.h/2-w/2),"L".concat(h.w-b,",").concat(h.h/2-w/2),"L".concat(h.w-b,",0"),"L".concat(h.w,",").concat(h.h/2),"L".concat(h.w-b,",").concat(h.h),"L".concat(h.w-b,",").concat(h.h/2+w/2),"L".concat(b,",").concat(h.h/2+w/2),"L".concat(b,",").concat(h.h),"Z"].join(" ");return S.setAttribute("d",A),S}(r),v=function(g){var h=g.extend,w=gt("adj1",g,.5*Math.min(h.w,h.h)),b=w*gt("adj2",g,.5*Math.min(h.w,h.h))/h.h;return{top:h.h/2-w/2,bottom:h.h/2-w/2,left:b,right:b,w:h.w-2*b,h:w}}(r);break;case"upDownArrow":f=function(g){var h=g.extend,w=gt("adj1",g,.5*Math.min(h.w,h.h)),b=gt("adj2",g,.5*Math.min(h.w,h.h)),S=mt("path"),A=["M".concat(h.w/2,",").concat(h.h),"L0,".concat(h.h-b),"L".concat(h.w/2-w/2,",").concat(h.h-b),"L".concat(h.w/2-w/2,",").concat(b),"L0,".concat(b),"L".concat(h.w/2,",0"),"L".concat(h.w,",").concat(b),"L".concat(h.w/2+w/2,",").concat(b),"L".concat(h.w/2+w/2,",").concat(h.h-b),"L".concat(h.w,",").concat(h.h-b),"Z"].join(" ");return S.setAttribute("d",A),S}(r),v=function(g){var h=g.extend,w=gt("adj1",g,.5*Math.min(h.w,h.h)),b=w*gt("adj2",g,.5*Math.min(h.w,h.h))/h.w;return{top:b,bottom:b,left:h.w/2-w/2,right:h.w/2-w/2,w,h:h.h-2*b}}(r);break;case"quadArrow":f=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=mt("path"),T=["M0,".concat(h.h/2),"L".concat(S,",").concat(h.h/2-b),"L".concat(S,",").concat(h.h/2-w/2),"L".concat(h.w/2-w/2,",").concat(h.h/2-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/2-w/2),"L".concat(h.w-S,",").concat(h.h/2-w/2),"L".concat(h.w-S,",").concat(h.h/2-b),"L".concat(h.w,",").concat(h.h/2),"L".concat(h.w-S,",").concat(h.h/2+b),"L".concat(h.w-S,",").concat(h.h/2+w/2),"L".concat(h.w/2+w/2,",").concat(h.h/2+w/2),"L".concat(h.w/2+w/2,",").concat(h.h-S),"L".concat(h.w/2+b,",").concat(h.h-S),"L".concat(h.w/2,",").concat(h.h),"L".concat(h.w/2-b,",").concat(h.h-S),"L".concat(h.w/2-w/2,",").concat(h.h-S),"L".concat(h.w/2-w/2,",").concat(h.h/2+w/2),"L".concat(S,",").concat(h.h/2+w/2),"L".concat(S,",").concat(h.h/2+b),"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/2-w/2,bottom:h.h/2-w/2,left:A,right:A,w:h.w-2*A,h:w}}(r);break;case"leftRightUpArrow":f=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=mt("path");w>2*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),T<S&&(T=S+w),A>T-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]),(b<S&&b<90&&S>90||b>S&&S>90||b>S&&b<90)&&ut.push([h.w/2,h.h]),(b<S&&b<270&&S>270||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;M<B.length;M++)R(B[M]);return L}(r.textBody,v,r.isTextBox);return _&&l.appendChild(_),i&&l.style.setProperty("transform","rotate(".concat(i,"deg)")),l}function oN(r){var e=document.createElement("div"),t=r.extend;r.chExtend;var n=r.offset;r.chOffset;var a=r.flipV,i=r.flipH,o=r.rotate,s=n.x,l=n.y,u=t.w,c=t.h;e.className="group",e.style.position="absolute",e.style.left=s+"px",e.style.top=l+"px",e.style.width=u+"px",e.style.height=c+"px";var f=[];i&&f.push("scaleX(-1)"),a&&f.push("scaleY(-1)"),o&&f.push("rotate(".concat(o,"deg)")),e.style.transformOrigin="center center",e.style.transform=f.join(" ");for(var d=0;d<r.nodes.length;d++){var v=r.nodes[d],p=void 0;v instanceof wp?p=Gw(v):v instanceof zf?p=Ww(v):v instanceof Fw&&(p=oN(v)),e.appendChild(p)}return e}var Ei={};function sN(r,e){if(Ei[r])for(var t=0;t<Ei[r].length;t++)Ei[r][t](e)}function lN(r,e){Ei[r]&&(Ei[r]=Ei[r].filter(function(t){return t!==e}))}function QQ(r){var e=document.createElement("div"),t=r.extend,n=r.offset,a=r.flipV,i=r.flipH,o=r.rotate,s=r.options,l=n.x,u=n.y,c=t.w,f=t.h;e.className="chart-node",e.style.position="absolute",e.style.left=l+"px",e.style.top=u+"px",e.style.width=c+"px",e.style.height=f+"px";var d=[];return i&&d.push("scaleX(-1)"),a&&d.push("scaleY(-1)"),o&&d.push("rotate(".concat(o,"deg)")),e.style.transformOrigin="center center",e.style.transform=d.join(" "),setTimeout(function(){var v,p,y=BG(e,null,{renderer:"svg"});y.setOption(s),p=function(){y&&y.dispose(),y&&(y=null)},Ei[v="destroy"]||(Ei[v]=[]),Ei[v].push(p)},0),e}var JQ=function(){function r(e,t,n){this.scale=1,this.wrapper=e,this.pptx=t,this.options=n,this._calcScaleAndRenderPort()}return r.prototype._calcScaleAndRenderPort=function(){var e=this.options.viewPort.width/this.pptx.width;this.scale=e;var t=this.options.viewPort.width,n=this.pptx.height*this.scale;this.renderPort={width:t,height:n,left:0,top:0}},r.prototype.renderSlide=function(e){var t=this.pptx.slides[e],n=document.createElement("div");n.classList.add("pptx-preview-slide-wrapper"),n.style.setProperty("width",this.renderPort.width+"px"),n.style.setProperty("height",this.renderPort.height+"px"),n.style.setProperty("position","relative"),n.style.margin="0 auto 10px",n.style.setProperty("background","#fff"),n.style.setProperty("overflow","hidden"),this._renderBackground(t,n),this._renderSlideMaster(t.slideMaster,n),this._renderSlideLayout(t.slideLayout,n),this._renderSlide(t,n),this.wrapper.append(n)},r.prototype._renderSlideMaster=function(e,t){var n=document.createElement("div");n.classList.add("slide-master-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var a=Ou([],e.nodes,!0).filter(function(s){return s.userDrawn});a.sort(function(s,l){return s.order>l.order?1:-1});for(var i=0;i<a.length;i++){var o=this._renderNode(a[i]);o&&n.append(o)}t.append(n)},r.prototype._renderSlideLayout=function(e,t){var n=document.createElement("div");n.classList.add("slide-layout-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var a=Ou([],e.nodes,!0).filter(function(s){return s.userDrawn});a.sort(function(s,l){return s.order>l.order?1:-1});for(var i=0;i<a.length;i++){var o=this._renderNode(a[i]);o&&n.append(o)}t.append(n)},r.prototype._renderSlide=function(e,t){var n=document.createElement("div");n.classList.add("slide-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var a=Ou([],e.nodes,!0);a.sort(function(s,l){return s.order>l.order?1:-1});for(var i=0;i<a.length;i++){var o=this._renderNode(a[i]);o&&n.append(o)}t.append(n)},r.prototype._renderNode=function(e){return e instanceof wp?Gw(e):e instanceof zf?Ww(e):e instanceof Fw?oN(e):e instanceof jR?function(t){var n=document.createElement("div"),a=t.extend,i=t.offset,o=t.flipV,s=t.flipH,l=t.rotate,u=i.x,c=i.y,f=a.w,d=a.h;n.className="smart-chart-diagram",n.style.position="absolute",n.style.left=u+"px",n.style.top=c+"px",n.style.width=f+"px",n.style.height=d+"px";var v=[];s&&v.push("scaleX(-1)"),o&&v.push("scaleY(-1)"),l&&v.push("rotate(".concat(l,"deg)")),n.style.transformOrigin="center center",n.style.transform=v.join(" ");for(var p=0;p<t.nodes.length;p++){var y=t.nodes[p],_=void 0;y instanceof wp?_=Gw(y):y instanceof zf&&(_=Ww(y)),n.appendChild(_)}return n}(e):e instanceof XR?function(t){var n=t.extend,a=t.offset,i=t.tr,o=t.tableGrid.gridCol,s=document.createElement("div");s.style.position="absolute",s.style.left=a.x+"px",s.style.top=a.y+"px",s.style.width=n.w+"px",s.style.height=n.h+"px";var l=document.createElement("table");return l.style.borderCollapse="collapse",i.forEach(function(u){var c=u.props,f=u.td,d=c.height,v=document.createElement("tr");v.style.height=d+"px",f.forEach(function(p,y){var _,g,h=p.props,w=p.inheritTcStyle,b=p.inheritTcTxStyle,S=p.paragraphs;if(!h.vMerge&&!h.hMerge){var A=document.createElement("td");A.style.width=(((_=o[y])===null||_===void 0?void 0:_.width)||30)+"px",h.rowSpan&&A.setAttribute("rowspan",h.rowSpan+""),h.gridSpan&&A.setAttribute("colspan",h.gridSpan+"");var T=h.background||w.background;T&&(A.style.background=Ie(T));var D=It(It({},w.border),h.border),L=function(H){return H?H.toLowerCase().includes("dash")?"dashed":H.toLowerCase().includes("dot")?"dotted":"solid":"solid"};D.bottom&&(A.style.borderBottom="".concat(D.bottom.width,"px ").concat(L(D.bottom.type)," ").concat(Ie(D.bottom.color))),D.top&&(A.style.borderTop="".concat(D.top.width,"px ").concat(L(D.top.type)," ").concat(Ie(D.top.color))),D.left&&(A.style.borderLeft="".concat(D.left.width,"px ").concat(L(D.left.type)," ").concat(Ie(D.left.color))),D.right&&(A.style.borderRight="".concat(D.right.width,"px ").concat(L(D.right.type)," ").concat(Ie(D.right.color)));var I=document.createElement("div");switch(I.className="text-wrapper",I.style.boxSizing="border-box",I.style.width="100%",I.style.height="100%",I.style.overflow="hidden",I.style.display="flex",I.style.flexDirection="column",h.anchor){case"b":I.style.justifyContent="flex-end";break;case"t":I.style.justifyContent="flex-start";break;case"ctr":I.style.justifyContent="center"}var P=[h.hasOwnProperty("marT")?Math.floor(h.marT)+"px":"3px",h.hasOwnProperty("marR")?Math.floor(h.marR-1)+"px":"5px",h.hasOwnProperty("marB")?Math.floor(h.marB)+"px":"3px",h.hasOwnProperty("marL")?Math.floor(h.marL-1)+"px":"5px"];I.style.padding=P.join(" ");for(var E=It({},h),R={},M=S.map(function(H){return It(It({},H),{props:It({align:"l"},H.props),inheritRProps:It(It({},H.inheritRProps),b)})}),B=0,F=function(H){var K=It(It({},H.inheritProps),H.props),U=void 0;if(K.buAutoNum){var $=K.level?+K.level:0;R[$]||(R[$]=0),!((g=H.rows)===null||g===void 0)&&g.length&&R[$]++,Object.keys(R).forEach(function(ut){+ut>$&&(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<j.length;W++)F(j[W]);A.append(I),v.append(A)}}),l.append(v)}),s.append(l),s}(e):e instanceof $R?QQ(e):void 0},r.prototype._renderBackground=function(e,t){var n,a=document.createElement("div");a.classList.add("slide-background"),a.style.setProperty("position","absolute"),a.style.setProperty("left","0"),a.style.setProperty("top","0"),a.style.setProperty("width","100%"),a.style.setProperty("height","100%");var i=e.background;if(i.type==="none"&&(i=e.slideLayout.background),i.type==="none"&&(i=e.slideMaster.background),i.type==="blipFill"){var o=i,s=o.base64,l=o.alpha,u=o.fillRect,c=u===void 0?{}:u,f=c.b,d=f===void 0?0:f,v=c.t,p=v===void 0?0:v,y=c.l,_=y===void 0?0:y,g=c.r,h=g===void 0?0:g,w=this.renderPort.width*_,b=this.renderPort.height*p,S=this.renderPort.width*(1-_-h),A=this.renderPort.height*(1-p-d);a.style.backgroundImage="url(".concat(s,")"),a.style.backgroundSize="".concat(S," ").concat(A),a.style.backgroundPosition="".concat(w,"px ").concat(b,"px"),l&&(a.style.opacity=l+""),a.style.backgroundRepeat="no-repeat"}else if(i.type==="solidFill"){var T=Ie(e.background)||Ie(e.slideLayout.background)||Ie(e.slideMaster.background);T?a.style.setProperty("background",T):a.style.setProperty("background","#fff")}else if(i.type==="gradFill")if(i.path==="circle"){var D=i.tileRect||{},L=(d=D.b,p=D.t,_=D.l,"radial-gradient(circle at ");(h=D.r)===-1?L+=" right":_===-1&&(L+=" left"),p===-1?L+=" top":d===-1&&(L+=" bottom"),d||p||_||h||(L+=" center"),L+=",",L+=i.gsList.map(function(P){return"".concat(Ie(P.color)," ").concat(100*P.pos+"%")}).join(","),a.style.setProperty("background",L)}else{var I=((n=i==null?void 0:i.lin)===null||n===void 0?void 0:n.ang)||0;L="linear-gradient(".concat(I+90,"deg,"),L+=i.gsList.map(function(P){return"".concat(Ie(P.color)," ").concat(100*P.pos+"%")}).join(","),a.style.setProperty("background",L)}t.append(a)},r}(),tJ=function(){function r(e,t){this.dom=e,this.options=t,this._renderWrapper()}return r.prototype._renderWrapper=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper"),e.style.setProperty("background","#000"),e.style.setProperty("width",this.options.width+"px"),this.options.height&&e.style.setProperty("height",this.options.height+"px"),e.style.setProperty("position","relative"),e.style.setProperty("margin","0 auto"),this.options.height&&e.style.setProperty("overflow-y","auto"),this.dom.append(e),this.wrapper=e},r.prototype.preview=function(e){var t=this;return sN("destroy"),lN("destroy"),new Promise(function(n,a){t.wrapper.innerHTML="";var i=new $Q;i.load(e).then(function(){try{for(var o=new JQ(t.wrapper,i,{viewPort:{width:t.options.width,height:t.options.height}}),s=0;s<i.slides.length;s++)o.renderSlide(s);n(i)}catch(l){a(l)}}).catch(function(o){a(o)})})},r.prototype.destroy=function(){sN("destroy"),lN("destroy")},r}();function eJ(r,e){return new tJ(r,e)}const rJ=(r,e)=>{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});
|