pptx-preview.umd.js 1.3 MB

1234567891011
  1. !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("stream"),require("events"),require("buffer"),require("util")):"function"==typeof define&&define.amd?define(["exports","stream","events","buffer","util"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).pptxPreview={},t.require$$0,t.require$$2,t.require$$0$1,t.require$$1)}(this,(function(t,e,n,r,i){"use strict";var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s=function(){return s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},s.apply(this,arguments)};function l(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function u(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function c(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var p,f,g,y,v,m={},_={},x={},b={exports:{}},w={exports:{}};function S(){if(p)return w.exports;return p=1,"undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?w.exports={nextTick:function(t,e,n,r){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick((function(){t.call(null,e)}));case 3:return process.nextTick((function(){t.call(null,e,n)}));case 4:return process.nextTick((function(){t.call(null,e,n,r)}));default:for(i=new Array(a-1),o=0;o<i.length;)i[o++]=arguments[o];return process.nextTick((function(){t.apply(null,i)}))}}}:w.exports=process,w.exports}function M(){return v?y:(v=1,y=e)}var I,C={exports:{}};function A(){return I||(I=1,function(t,e){var n=r,i=n.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}}(C,C.exports)),C.exports}var T,k={};function L(){if(T)return k;function t(t){return Object.prototype.toString.call(t)}return T=1,k.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},k.isBoolean=function(t){return"boolean"==typeof t},k.isNull=function(t){return null===t},k.isNullOrUndefined=function(t){return null==t},k.isNumber=function(t){return"number"==typeof t},k.isString=function(t){return"string"==typeof t},k.isSymbol=function(t){return"symbol"==typeof t},k.isUndefined=function(t){return void 0===t},k.isRegExp=function(e){return"[object RegExp]"===t(e)},k.isObject=function(t){return"object"==typeof t&&null!==t},k.isDate=function(e){return"[object Date]"===t(e)},k.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},k.isFunction=function(t){return"function"==typeof t},k.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},k.isBuffer=r.Buffer.isBuffer,k}var D,P,R={exports:{}},O={exports:{}};function E(){if(P)return R.exports;P=1;try{var t=require("util");if("function"!=typeof t.inherits)throw"";R.exports=t.inherits}catch(t){R.exports=(D||(D=1,"function"==typeof Object.create?O.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:O.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}),O.exports)}return R.exports}var N,z,B,V,F,G,j,W,H,U={exports:{}};function Z(){return N||(N=1,function(t){var e=A().Buffer,n=i;t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return e.alloc(0);for(var n,r,i,o=e.allocUnsafe(t>>>0),a=this.head,s=0;a;)n=a.data,r=o,i=s,n.copy(r,i),s+=a.data.length,a=a.next;return o},t}(),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var t=n.inspect({length:this.length});return this.constructor.name+" "+t})}(U)),U.exports}function Y(){if(B)return z;B=1;var t=S();function e(t,e){t.emit("error",e)}return z={destroy:function(n,r){var i=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(r?r(n):n&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(e,this,n)):t.nextTick(e,this,n)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,(function(n){!r&&n?i._writableState?i._writableState.errorEmitted||(i._writableState.errorEmitted=!0,t.nextTick(e,i,n)):t.nextTick(e,i,n):r&&r(n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}function X(){if(j)return G;j=1;var t=S();function e(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;t.entry=null;for(;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}G=g;var n,r=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:t.nextTick;g.WritableState=f;var o=Object.create(L());o.inherits=E();var a={deprecate:F?V:(F=1,V=i.deprecate)},s=M(),l=A().Buffer,u=(void 0!==h?h:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,d=Y();function p(){}function f(i,o){n=n||q(),i=i||{};var a=o instanceof n;this.objectMode=!!i.objectMode,a&&(this.objectMode=this.objectMode||!!i.writableObjectMode);var s=i.highWaterMark,l=i.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:a&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===i.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=i.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,n){var i=e._writableState,o=i.sync,a=i.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(i),n)!function(e,n,r,i,o){--n.pendingcb,r?(t.nextTick(o,i),t.nextTick(b,e,n),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),b(e,n))}(e,i,o,n,a);else{var s=_(i);s||i.corked||i.bufferProcessing||!i.bufferedRequest||m(e,i),o?r(v,e,i,s,a):v(e,i,s,a)}}(o,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function g(t){if(n=n||q(),!(c.call(g,this)||this instanceof n))return new g(t);this._writableState=new f(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function y(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function v(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),b(t,e)}function m(t,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(t._writev&&r&&r.next){var i=n.bufferedRequestCount,o=new Array(i),a=n.corkedRequestsFree;a.entry=r;for(var s=0,l=!0;r;)o[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;o.allBuffers=l,y(t,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,h=r.callback;if(y(t,n,!1,n.objectMode?1:u.length,u,c,h),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function _(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function x(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),b(t,e)}))}function b(e,n){var r=_(n);return r&&(!function(e,n){n.prefinished||n.finalCalled||("function"==typeof e._final?(n.pendingcb++,n.finalCalled=!0,t.nextTick(x,e,n)):(n.prefinished=!0,e.emit("prefinish")))}(e,n),0===n.pendingcb&&(n.finished=!0,e.emit("finish"))),r}return o.inherits(g,s),f.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(f.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===g&&(t&&t._writableState instanceof f)}})):c=function(t){return t instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,n,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,l.isBuffer(i)||i instanceof u);return s&&!l.isBuffer(e)&&(e=function(t){return l.from(t)}(e)),"function"==typeof n&&(r=n,n=null),s?n="buffer":n||(n=o.defaultEncoding),"function"!=typeof r&&(r=p),o.ended?function(e,n){var r=new Error("write after end");e.emit("error",r),t.nextTick(n,r)}(this,r):(s||function(e,n,r,i){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||n.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),t.nextTick(i,a),o=!1),o}(this,o,e,r))&&(o.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,n));return e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else y(t,e,!1,s,r,i,o);return u}(this,o,s,e,n,r)),a},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||m(this,t))},g.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,n,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,n=null):"function"==typeof n&&(r=n,n=null),null!=e&&this.write(e,n),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,n,r){n.ending=!0,b(e,n),r&&(n.finished?t.nextTick(r):e.once("finish",r));n.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),g.prototype.destroy=d.destroy,g.prototype._undestroy=d.undestroy,g.prototype._destroy=function(t,e){this.end(),e(t)},G}function q(){if(H)return W;H=1;var t=S(),e=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};W=l;var n=Object.create(L());n.inherits=E();var r=st(),i=X();n.inherits(l,r);for(var o=e(i.prototype),a=0;a<o.length;a++){var s=o[a];l.prototype[s]||(l.prototype[s]=i.prototype[s])}function l(t){if(!(this instanceof l))return new l(t);r.call(this,t),i.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||t.nextTick(c,this)}function c(t){t.end()}return Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),l.prototype._destroy=function(e,n){this.push(null),this.end(),t.nextTick(n,e)},W}var K,$,Q,J,tt,et,nt,rt,it,ot={};function at(){if(K)return ot;K=1;var t=A().Buffer,e=t.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(n){var r;switch(this.encoding=function(n){var r=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(n);if("string"!=typeof r&&(t.isEncoding===e||!e(n)))throw new Error("Unknown encoding: "+n);return r||n}(n),this.encoding){case"utf16le":this.text=o,this.end=a,r=4;break;case"utf8":this.fillLast=i,r=4;break;case"base64":this.text=s,this.end=l,r=3;break;default:return this.write=u,void(this.end=c)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(r)}function r(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function i(t){var e=this.lastTotal-this.lastNeed,n=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function o(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function a(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function s(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function u(t){return t.toString(this.encoding)}function c(t){return t&&t.length?this.write(t):""}return ot.StringDecoder=n,n.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},n.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},n.prototype.text=function(t,e){var n=function(t,e,n){var i=e.length-1;if(i<n)return 0;var o=r(e[i]);if(o>=0)return o>0&&(t.lastNeed=o-1),o;if(--i<n||-2===o)return 0;if(o=r(e[i]),o>=0)return o>0&&(t.lastNeed=o-2),o;if(--i<n||-2===o)return 0;if(o=r(e[i]),o>=0)return o>0&&(2===o?o=0:t.lastNeed=o-3),o;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},n.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length},ot}function st(){if(Q)return $;Q=1;var t=S();$=x;var e,r=function(){if(g)return f;g=1;var t={}.toString;return f=Array.isArray||function(e){return"[object Array]"==t.call(e)}}();x.ReadableState=_,n.EventEmitter;var o=function(t,e){return t.listeners(e).length},a=M(),s=A().Buffer,l=(void 0!==h?h:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u=Object.create(L());u.inherits=E();var c=i,d=void 0;d=c&&c.debuglog?c.debuglog("stream"):function(){};var p,y=Z(),v=Y();u.inherits(x,a);var m=["error","close","destroy","pause","resume"];function _(t,n){t=t||{};var r=n instanceof(e=e||q());this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,o=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=at().StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function x(t){if(e=e||q(),!(this instanceof x))return new x(t);this._readableState=new _(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function b(t,e,n,r,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,T(t)}(t,a)):(i||(o=function(t,e){var n;r=e,s.isBuffer(r)||r instanceof l||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):w(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?w(t,a,e,!1):D(t,a)):w(t,a,e,!1))):r||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function w(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&T(t)),D(t,e)}Object.defineProperty(x.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),x.prototype.destroy=v.destroy,x.prototype._undestroy=v.undestroy,x.prototype._destroy=function(t,e){this.push(null),e(t)},x.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=s.from(t,e),e=""),n=!0),b(this,t,e,!1,n)},x.prototype.unshift=function(t){return b(this,t,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(t){return p||(p=at().StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var I=8388608;function C(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function T(e){var n=e._readableState;n.needReadable=!1,n.emittedReadable||(d("emitReadable",n.flowing),n.emittedReadable=!0,n.sync?t.nextTick(k,e):k(e))}function k(t){d("emit readable"),t.emit("readable"),N(t)}function D(e,n){n.readingMore||(n.readingMore=!0,t.nextTick(P,e,n))}function P(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(d("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function R(t){d("readable nexttick read 0"),t.read(0)}function O(t,e){e.reading||(d("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function z(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,r=1,i=n.data;t-=i.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=s.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function B(e){var n=e._readableState;if(n.length>0)throw new Error('"endReadable()" called on non-empty stream');n.endEmitted||(n.ended=!0,t.nextTick(V,n,e))}function V(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function F(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}return x.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?B(this):T(this),null;if(0===(t=C(t,e))&&e.ended)return 0===e.length&&B(this),null;var r,i=e.needReadable;return d("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",i=!0),e.ended||e.reading?d("reading or ended",i=!1):i&&(d("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=C(n,e))),null===(r=t>0?z(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&B(this)),null!==r&&this.emit("data",r),r},x.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(e,n){var i=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,n);var s=(!n||!1!==n.end)&&e!==process.stdout&&e!==process.stderr?u:m;function l(t,n){d("onunpipe"),t===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",y),e.removeListener("finish",v),e.removeListener("drain",c),e.removeListener("error",g),e.removeListener("unpipe",l),i.removeListener("end",u),i.removeListener("end",m),i.removeListener("data",f),h=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function u(){d("onend"),e.end()}a.endEmitted?t.nextTick(s):i.once("end",s),e.on("unpipe",l);var c=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,N(t))}}(i);e.on("drain",c);var h=!1;var p=!1;function f(t){d("ondata"),p=!1,!1!==e.write(t)||p||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==F(a.pipes,e))&&!h&&(d("false write response, pause",a.awaitDrain),a.awaitDrain++,p=!0),i.pause())}function g(t){d("onerror",t),m(),e.removeListener("error",g),0===o(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",v),m()}function v(){d("onfinish"),e.removeListener("close",y),m()}function m(){d("unpipe"),i.unpipe(e)}return i.on("data",f),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?r(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(e,"error",g),e.once("close",y),e.once("finish",v),e.emit("pipe",i),a.flowing||(d("pipe resume"),i.resume()),e},x.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},x.prototype.on=function(e,n){var r=a.prototype.on.call(this,e,n);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&T(this):t.nextTick(R,this))}return r},x.prototype.addListener=x.prototype.on,x.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,n){n.resumeScheduled||(n.resumeScheduled=!0,t.nextTick(O,e,n))}(this,e)),this},x.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},x.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(d("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(d("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<m.length;o++)t.on(m[o],this.emit.bind(this,m[o]));return this._read=function(e){d("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),x._fromList=z,$}function lt(){if(tt)return J;tt=1,J=r;var t=q(),e=Object.create(L());function n(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function r(e){if(!(this instanceof r))return new r(e);t.call(this,e),this._transformState={afterTransform:n.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",i)}function i(){var t=this;"function"==typeof this._flush?this._flush((function(e,n){o(t,e,n)})):o(this,null,null)}function o(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}return e.inherits=E(),e.inherits(r,t),r.prototype.push=function(e,n){return this._transformState.needTransform=!1,t.prototype.push.call(this,e,n)},r.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},r.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},r.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},r.prototype._destroy=function(e,n){var r=this;t.prototype._destroy.call(this,e,(function(t){n(t),r.emit("close")}))},J}function ut(){return rt||(rt=1,function(t,n){var r=e;"disable"===process.env.READABLE_STREAM&&r?(t.exports=r,(n=t.exports=r.Readable).Readable=r.Readable,n.Writable=r.Writable,n.Duplex=r.Duplex,n.Transform=r.Transform,n.PassThrough=r.PassThrough,n.Stream=r):((n=t.exports=st()).Stream=r||n,n.Readable=n,n.Writable=X(),n.Duplex=q(),n.Transform=lt(),n.PassThrough=function(){if(nt)return et;nt=1,et=n;var t=lt(),e=Object.create(L());function n(e){if(!(this instanceof n))return new n(e);t.call(this,e)}return e.inherits=E(),e.inherits(n,t),n.prototype._transform=function(t,e,n){n(null,t)},et}())}(b,b.exports)),b.exports}function ct(){if(it)return x;if(it=1,x.base64=!0,x.array=!0,x.string=!0,x.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,x.nodebuffer="undefined"!=typeof Buffer,x.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)x.blob=!1;else{var t=new ArrayBuffer(0);try{x.blob=0===new Blob([t],{type:"application/zip"}).size}catch(n){try{var e=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);e.append(t),x.blob=0===e.getBlob("application/zip").size}catch(t){x.blob=!1}}}try{x.nodestream=!!ut().Readable}catch(t){x.nodestream=!1}return x}var ht,dt,pt,ft,gt,yt,vt,mt,_t,xt={};function bt(){if(ht)return xt;ht=1;var t=zt(),e=ct(),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return xt.encode=function(e){for(var r,i,o,a,s,l,u,c=[],h=0,d=e.length,p=d,f="string"!==t.getTypeOf(e);h<e.length;)p=d-h,f?(r=e[h++],i=h<d?e[h++]:0,o=h<d?e[h++]:0):(r=e.charCodeAt(h++),i=h<d?e.charCodeAt(h++):0,o=h<d?e.charCodeAt(h++):0),a=r>>2,s=(3&r)<<4|i>>4,l=p>1?(15&i)<<2|o>>6:64,u=p>2?63&o:64,c.push(n.charAt(a)+n.charAt(s)+n.charAt(l)+n.charAt(u));return c.join("")},xt.decode=function(t){var r,i,o,a,s,l,u=0,c=0,h="data:";if(t.substr(0,5)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,p=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===n.charAt(64)&&p--,t.charAt(t.length-2)===n.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=e.uint8array?new Uint8Array(0|p):new Array(0|p);u<t.length;)r=n.indexOf(t.charAt(u++))<<2|(a=n.indexOf(t.charAt(u++)))>>4,i=(15&a)<<4|(s=n.indexOf(t.charAt(u++)))>>2,o=(3&s)<<6|(l=n.indexOf(t.charAt(u++))),d[c++]=r,64!==s&&(d[c++]=i),64!==l&&(d[c++]=o);return d},xt}function wt(){return pt?dt:(pt=1,dt={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,e)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}})}function St(){if(vt)return yt;vt=1;var t=function(){if(gt)return ft;gt=1;var t,e,n=h.MutationObserver||h.WebKitMutationObserver;if(process.browser)if(n){var r=0,i=new n(l),o=h.document.createTextNode("");i.observe(o,{characterData:!0}),t=function(){o.data=r=++r%2}}else if(h.setImmediate||void 0===h.MessageChannel)t="document"in h&&"onreadystatechange"in h.document.createElement("script")?function(){var t=h.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},h.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var a=new h.MessageChannel;a.port1.onmessage=l,t=function(){a.port2.postMessage(0)}}else t=function(){process.nextTick(l)};var s=[];function l(){var t,n;e=!0;for(var r=s.length;r;){for(n=s,s=[],t=-1;++t<r;)n[t]();r=s.length}e=!1}return ft=function(n){1!==s.push(n)||e||t()}}();function e(){}var n={},r=["REJECTED"],i=["FULFILLED"],o=["PENDING"];if(!process.browser)var a=["UNHANDLED"];function s(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=o,this.queue=[],this.outcome=void 0,process.browser||(this.handled=a),t!==e&&d(this,t)}function l(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function u(e,r,i){t((function(){var t;try{t=r(i)}catch(t){return n.reject(e,t)}t===e?n.reject(e,new TypeError("Cannot resolve promise with itself")):n.resolve(e,t)}))}function c(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function d(t,e){var r=!1;function i(e){r||(r=!0,n.reject(t,e))}function o(e){r||(r=!0,n.resolve(t,e))}var a=p((function(){e(o,i)}));"error"===a.status&&i(a.value)}function p(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}return yt=s,s.prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},s.prototype.catch=function(t){return this.then(null,t)},s.prototype.then=function(t,n){if("function"!=typeof t&&this.state===i||"function"!=typeof n&&this.state===r)return this;var s=new this.constructor(e);(process.browser||this.handled===a&&(this.handled=null),this.state!==o)?u(s,this.state===i?t:n,this.outcome):this.queue.push(new l(s,t,n));return s},l.prototype.callFulfilled=function(t){n.resolve(this.promise,t)},l.prototype.otherCallFulfilled=function(t){u(this.promise,this.onFulfilled,t)},l.prototype.callRejected=function(t){n.reject(this.promise,t)},l.prototype.otherCallRejected=function(t){u(this.promise,this.onRejected,t)},n.resolve=function(t,e){var r=p(c,e);if("error"===r.status)return n.reject(t,r.value);var o=r.value;if(o)d(t,o);else{t.state=i,t.outcome=e;for(var a=-1,s=t.queue.length;++a<s;)t.queue[a].callFulfilled(e)}return t},n.reject=function(e,n){e.state=r,e.outcome=n,process.browser||e.handled===a&&t((function(){e.handled===a&&process.emit("unhandledRejection",n,e)}));for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callRejected(n);return e},s.resolve=function(t){if(t instanceof this)return t;return n.resolve(new this(e),t)},s.reject=function(t){var r=new this(e);return n.reject(r,t)},s.all=function(t){var r=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,o=!1;if(!i)return this.resolve([]);var a=new Array(i),s=0,l=-1,u=new this(e);for(;++l<i;)c(t[l],l);return u;function c(t,e){r.resolve(t).then((function(t){a[e]=t,++s!==i||o||(o=!0,n.resolve(u,a))}),(function(t){o||(o=!0,n.reject(u,t))}))}},s.race=function(t){var r=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,o=!1;if(!i)return this.resolve([]);var a=-1,s=new this(e);for(;++a<i;)l=t[a],r.resolve(l).then((function(t){o||(o=!0,n.resolve(s,t))}),(function(t){o||(o=!0,n.reject(s,t))}));var l;return s},yt}function Mt(){if(_t)return mt;_t=1;var t=null;return t="undefined"!=typeof Promise?Promise:St(),mt={Promise:t}}var It,Ct,At,Tt,kt,Lt,Dt,Pt,Rt,Ot,Et,Nt={};function zt(){return Ct||(Ct=1,function(t){var e=ct(),n=bt(),r=wt(),i=Mt();function o(t){return t}function a(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}It||(It=1,function(t){if(!t.setImmediate){var e,n,r,i,o,a=1,s={},l=!1,u=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,"[object process]"==={}.toString.call(t.process)?e=function(t){process.nextTick((function(){d(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(i="setImmediate$"+Math.random()+"$",o=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(i)&&d(+e.data.slice(i.length))},t.addEventListener?t.addEventListener("message",o,!1):t.attachEvent("onmessage",o),e=function(e){t.postMessage(i+e,"*")}):t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(t){d(t.data)},e=function(t){r.port2.postMessage(t)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,e=function(t){var e=u.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):e=function(t){setTimeout(d,0,t)},c.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var i={callback:t,args:n};return s[a]=i,e(a),a++},c.clearImmediate=h}function h(t){delete s[t]}function d(t){if(l)setTimeout(d,0,t);else{var e=s[t];if(e){l=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{h(t),l=!1}}}}}("undefined"==typeof self?void 0===h?Nt:h:self)),t.newBlob=function(e,n){t.checkSupport("blob");try{return new Blob([e],{type:n})}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(n)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var s={stringifyByChunk:function(t,e,n){var r=[],i=0,o=t.length;if(o<=n)return String.fromCharCode.apply(null,t);for(;i<o;)"array"===e||"nodebuffer"===e?r.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+n,o)))):r.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+n,o)))),i+=n;return r.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return e.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return e.nodebuffer&&1===String.fromCharCode.apply(null,r.allocBuffer(1)).length}catch(t){return!1}}()}};function l(e){var n=65536,r=t.getTypeOf(e),i=!0;if("uint8array"===r?i=s.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=s.applyCanBeUsed.nodebuffer),i)for(;n>1;)try{return s.stringifyByChunk(e,r,n)}catch(t){n=Math.floor(n/2)}return s.stringifyByChar(e)}function u(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}t.applyFromCharCode=l;var c={};c.string={string:o,array:function(t){return a(t,new Array(t.length))},arraybuffer:function(t){return c.string.uint8array(t).buffer},uint8array:function(t){return a(t,new Uint8Array(t.length))},nodebuffer:function(t){return a(t,r.allocBuffer(t.length))}},c.array={string:l,array:o,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return r.newBufferFrom(t)}},c.arraybuffer={string:function(t){return l(new Uint8Array(t))},array:function(t){return u(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:o,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return r.newBufferFrom(new Uint8Array(t))}},c.uint8array={string:l,array:function(t){return u(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:o,nodebuffer:function(t){return r.newBufferFrom(t)}},c.nodebuffer={string:l,array:function(t){return u(t,new Array(t.length))},arraybuffer:function(t){return c.nodebuffer.uint8array(t).buffer},uint8array:function(t){return u(t,new Uint8Array(t.length))},nodebuffer:o},t.transformTo=function(e,n){if(n||(n=""),!e)return n;t.checkSupport(e);var r=t.getTypeOf(n);return c[r][e](n)},t.resolve=function(t){for(var e=t.split("/"),n=[],r=0;r<e.length;r++){var i=e[r];"."===i||""===i&&0!==r&&r!==e.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},t.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":e.nodebuffer&&r.isBuffer(t)?"nodebuffer":e.uint8array&&t instanceof Uint8Array?"uint8array":e.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(t){if(!e[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(t){var e,n,r="";for(n=0;n<(t||"").length;n++)r+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return r},t.delay=function(t,e,n){setImmediate((function(){t.apply(n||null,e||[])}))},t.inherits=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n},t.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},t.prepareContent=function(r,o,s,l,u){var c=i.Promise.resolve(o).then((function(t){return e.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new i.Promise((function(e,n){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.onerror=function(t){n(t.target.error)},r.readAsArrayBuffer(t)})):t}));return c.then((function(o){var c,h=t.getTypeOf(o);return h?("arraybuffer"===h?o=t.transformTo("uint8array",o):"string"===h&&(u?o=n.decode(o):s&&!0!==l&&(o=a(c=o,e.uint8array?new Uint8Array(c.length):new Array(c.length)))),o):i.Promise.reject(new Error("Can't read the data of '"+r+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}}(_)),_}function Bt(){if(Tt)return At;function t(t){this.name=t||"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}return Tt=1,t.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),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;this.isPaused=!1;var t=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},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 t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},At=t}function Vt(){return kt||(kt=1,function(t){for(var e=zt(),n=ct(),r=wt(),i=Bt(),o=new Array(256),a=0;a<256;a++)o[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;o[254]=o[254]=1;function s(){i.call(this,"utf-8 decode"),this.leftOver=null}function l(){i.call(this,"utf-8 encode")}t.utf8encode=function(t){return n.nodebuffer?r.newBufferFrom(t,"utf-8"):function(t){var e,r,i,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(e=n.uint8array?new Uint8Array(l):new Array(l),a=0,o=0;a<l;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e}(t)},t.utf8decode=function(t){return n.nodebuffer?e.transformTo("nodebuffer",t).toString("utf-8"):function(t){var n,r,i,a,s=t.length,l=new Array(2*s);for(r=0,n=0;n<s;)if((i=t[n++])<128)l[r++]=i;else if((a=o[i])>4)l[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&n<s;)i=i<<6|63&t[n++],a--;a>1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),e.applyFromCharCode(l)}(t=e.transformTo(n.uint8array?"uint8array":"array",t))},e.inherits(s,i),s.prototype.processChunk=function(r){var i=e.transformTo(n.uint8array?"uint8array":"array",r.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var a=i;(i=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),i.set(a,this.leftOver.length)}else i=this.leftOver.concat(i);this.leftOver=null}var s=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+o[t[n]]>e?n:e}(i),l=i;s!==i.length&&(n.uint8array?(l=i.subarray(0,s),this.leftOver=i.subarray(s,i.length)):(l=i.slice(0,s),this.leftOver=i.slice(s,i.length))),this.push({data:t.utf8decode(l),meta:r.meta})},s.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=s,e.inherits(l,i),l.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=l}(m)),m}function Ft(){if(Et)return Ot;Et=1;var t=zt(),e=function(){if(Dt)return Lt;Dt=1;var t=Bt(),e=zt();function n(e){t.call(this,"ConvertWorker to "+e),this.destType=e}return e.inherits(n,t),n.prototype.processChunk=function(t){this.push({data:e.transformTo(this.destType,t.data),meta:t.meta})},Lt=n}(),n=Bt(),r=bt(),i=ct(),o=Mt(),a=null;if(i.nodestream)try{a=function(){if(Rt)return Pt;Rt=1;var t=ut().Readable;function e(e,n,r){t.call(this,n),this._helper=e;var i=this;e.on("data",(function(t,e){i.push(t)||i._helper.pause(),r&&r(e)})).on("error",(function(t){i.emit("error",t)})).on("end",(function(){i.push(null)}))}return zt().inherits(e,t),e.prototype._read=function(){this._helper.resume()},Pt=e}()}catch(t){}function s(e,n){return new o.Promise((function(i,o){var a=[],s=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",(function(t,e){a.push(t),n&&n(e)})).on("error",(function(t){a=[],o(t)})).on("end",(function(){try{var e=function(e,n,i){switch(e){case"blob":return t.newBlob(t.transformTo("arraybuffer",n),i);case"base64":return r.encode(n);default:return t.transformTo(e,n)}}(l,function(t,e){var n,r=0,i=null,o=0;for(n=0;n<e.length;n++)o+=e[n].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(i=new Uint8Array(o),n=0;n<e.length;n++)i.set(e[n],r),r+=e[n].length;return i;case"nodebuffer":return Buffer.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(s,a),u);i(e)}catch(t){o(t)}a=[]})).resume()}))}function l(r,i,o){var a=i;switch(i){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=i,this._mimeType=o,t.checkSupport(a),this._worker=r.pipe(new e(a)),r.lock()}catch(t){this._worker=new n("error"),this._worker.error(t)}}return l.prototype={accumulate:function(t){return s(this,t)},on:function(e,n){var r=this;return"data"===e?this._worker.on(e,(function(t){n.call(r,t.data,t.meta)})):this._worker.on(e,(function(){t.delay(n,arguments,r)})),this},resume:function(){return t.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(t.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new a(this,{objectMode:"nodebuffer"!==this._outputType},e)}},Ot=l}var Gt,jt,Wt,Ht,Ut,Zt,Yt,Xt,qt,Kt,$t,Qt,Jt,te={};function ee(){return Gt||(Gt=1,te.base64=!1,te.binary=!1,te.dir=!1,te.createFolders=!0,te.date=null,te.compression=null,te.compressionOptions=null,te.comment=null,te.unixPermissions=null,te.dosPermissions=null),te}function ne(){if(Wt)return jt;Wt=1;var t=zt(),e=Bt();function n(n){e.call(this,"DataWorker");var r=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,n.then((function(e){r.dataIsReady=!0,r.data=e,r.max=e&&e.length||0,r.type=t.getTypeOf(e),r.isPaused||r._tickAndRepeat()}),(function(t){r.error(t)}))}return t.inherits(n,e),n.prototype.cleanUp=function(){e.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,t.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(t.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},jt=n}function re(){if(Ut)return Ht;Ut=1;var t=zt();var e=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();return Ht=function(n,r){return void 0!==n&&n.length?"string"!==t.getTypeOf(n)?function(t,n,r,i){var o=e,a=i+r;t=~t;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^n[s])];return~t}(0|r,n,n.length,0):function(t,n,r,i){var o=e,a=i+r;t=~t;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^n.charCodeAt(s))];return~t}(0|r,n,n.length,0):0},Ht}function ie(){if(Yt)return Zt;Yt=1;var t=Bt(),e=re();function n(){t.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}return zt().inherits(n,t),n.prototype.processChunk=function(t){this.streamInfo.crc32=e(t.data,this.streamInfo.crc32||0),this.push(t)},Zt=n}function oe(){if($t)return Kt;$t=1;var t=Mt(),e=ne(),n=ie(),r=function(){if(qt)return Xt;qt=1;var t=zt(),e=Bt();function n(t){e.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}return t.inherits(n,e),n.prototype.processChunk=function(t){if(t){var n=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=n+t.data.length}e.prototype.processChunk.call(this,t)},Xt=n}();function i(t,e,n,r,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=r,this.compressedContent=i}return i.prototype={getContentWorker:function(){var n=new e(t.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new r("data_length")),i=this;return n.on("end",(function(){if(this.streamInfo.data_length!==i.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),n},getCompressedWorker:function(){return new e(t.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},i.createWorkerFrom=function(t,e,i){return t.pipe(new n).pipe(new r("uncompressedSize")).pipe(e.compressWorker(i)).pipe(new r("compressedSize")).withStreamInfo("compression",e)},Kt=i}var ae,se={},le={},ue={},ce={};function he(){return ae||(ae=1,function(t){var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(t[i]=r[i])}}return t},t.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},i={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,r)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(e)}(ce)),ce}var de,pe,fe,ge,ye,ve,me,_e,xe={},be={},we={};function Se(){if(de)return we;de=1;var t=he();function e(t){for(var e=t.length;--e>=0;)t[e]=0}var n=256,r=286,i=30,o=15,a=[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],s=[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],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);e(c);var h=new Array(60);e(h);var d=new Array(512);e(d);var p=new Array(256);e(p);var f=new Array(29);e(f);var g,y,v,m=new Array(i);function _(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function x(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function b(t){return t<256?d[t]:d[256+(t>>>7)]}function w(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function S(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function M(t,e,n){S(t,n[2*e],n[2*e+1])}function I(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function C(t,e,n){var r,i,a=new Array(16),s=0;for(r=1;r<=o;r++)a[r]=s=s+n[r-1]<<1;for(i=0;i<=e;i++){var l=t[2*i+1];0!==l&&(t[2*i]=I(a[l]++,l))}}function A(t){var e;for(e=0;e<r;e++)t.dyn_ltree[2*e]=0;for(e=0;e<i;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function T(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function k(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function L(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&k(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!k(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function D(t,e,r){var i,o,l,u,c=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*c]<<8|t.pending_buf[t.d_buf+2*c+1],o=t.pending_buf[t.l_buf+c],c++,0===i?M(t,o,e):(M(t,(l=p[o])+n+1,e),0!==(u=a[l])&&S(t,o-=f[l],u),M(t,l=b(--i),r),0!==(u=s[l])&&S(t,i-=m[l],u))}while(c<t.last_lit);M(t,256,e)}function P(t,e){var n,r,i,a=e.dyn_tree,s=e.stat_desc.static_tree,l=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<u;n++)0!==a[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):a[2*n+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,l&&(t.static_len-=s[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)L(t,a,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],L(t,a,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,a[2*i]=a[2*n]+a[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,a[2*n+1]=a[2*r+1]=i,t.heap[1]=i++,L(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,a,s,l,u=e.dyn_tree,c=e.max_code,h=e.stat_desc.static_tree,d=e.stat_desc.has_stree,p=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,g=e.stat_desc.max_length,y=0;for(a=0;a<=o;a++)t.bl_count[a]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(a=u[2*u[2*(r=t.heap[n])+1]+1]+1)>g&&(a=g,y++),u[2*r+1]=a,r>c||(t.bl_count[a]++,s=0,r>=f&&(s=p[r-f]),l=u[2*r],t.opt_len+=l*(a+s),d&&(t.static_len+=l*(h[2*r+1]+s)));if(0!==y){do{for(a=g-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[g]--,y-=2}while(y>0);for(a=g;0!==a;a--)for(r=t.bl_count[a];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==a&&(t.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),r--)}}(t,e),C(a,c,t.bl_count)}function R(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<l&&i===a||(s<u?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(l=138,u=3):i===a?(l=6,u=3):(l=7,u=4))}function O(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<l&&i===a)){if(s<u)do{M(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(M(t,i,t.bl_tree),s--),M(t,16,t.bl_tree),S(t,s-3,2)):s<=10?(M(t,17,t.bl_tree),S(t,s-3,3)):(M(t,18,t.bl_tree),S(t,s-11,7));s=0,o=i,0===a?(l=138,u=3):i===a?(l=6,u=3):(l=7,u=4)}}e(m);var E=!1;function N(e,n,r,i){S(e,0+(i?1:0),3),function(e,n,r){T(e),w(e,r),w(e,~r),t.arraySet(e.pending_buf,e.window,n,r,e.pending),e.pending+=r}(e,n,r)}return we._tr_init=function(t){E||(!function(){var t,e,n,u,x,b=new Array(16);for(n=0,u=0;u<28;u++)for(f[u]=n,t=0;t<1<<a[u];t++)p[n++]=u;for(p[n-1]=u,x=0,u=0;u<16;u++)for(m[u]=x,t=0;t<1<<s[u];t++)d[x++]=u;for(x>>=7;u<i;u++)for(m[u]=x<<7,t=0;t<1<<s[u]-7;t++)d[256+x++]=u;for(e=0;e<=o;e++)b[e]=0;for(t=0;t<=143;)c[2*t+1]=8,t++,b[8]++;for(;t<=255;)c[2*t+1]=9,t++,b[9]++;for(;t<=279;)c[2*t+1]=7,t++,b[7]++;for(;t<=287;)c[2*t+1]=8,t++,b[8]++;for(C(c,287,b),t=0;t<i;t++)h[2*t+1]=5,h[2*t]=I(t,5);g=new _(c,a,257,r,o),y=new _(h,s,0,i,o),v=new _(new Array(0),l,0,19,7)}(),E=!0),t.l_desc=new x(t.dyn_ltree,g),t.d_desc=new x(t.dyn_dtree,y),t.bl_desc=new x(t.bl_tree,v),t.bi_buf=0,t.bi_valid=0,A(t)},we._tr_stored_block=N,we._tr_flush_block=function(t,e,r,i){var o,a,s=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<n;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),P(t,t.l_desc),P(t,t.d_desc),s=function(t){var e;for(R(t,t.dyn_ltree,t.l_desc.max_code),R(t,t.dyn_dtree,t.d_desc.max_code),P(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(a=t.static_len+3+7>>>3)<=o&&(o=a)):o=a=r+5,r+4<=o&&-1!==e?N(t,e,r,i):4===t.strategy||a===o?(S(t,2+(i?1:0),3),D(t,c,h)):(S(t,4+(i?1:0),3),function(t,e,n,r){var i;for(S(t,e-257,5),S(t,n-1,5),S(t,r-4,4),i=0;i<r;i++)S(t,t.bl_tree[2*u[i]+1],3);O(t,t.dyn_ltree,e-1),O(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),D(t,t.dyn_ltree,t.dyn_dtree)),A(t),i&&T(t)},we._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(p[r]+n+1)]++,t.dyn_dtree[2*b(e)]++),t.last_lit===t.lit_bufsize-1},we._tr_align=function(t){S(t,2,3),M(t,256,c),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)},we}function Me(){if(fe)return pe;return fe=1,pe=function(t,e,n,r){for(var i=65535&t,o=t>>>16&65535,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16},pe}function Ie(){if(ye)return ge;ye=1;var t=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();return ge=function(e,n,r,i){var o=t,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^n[s])];return~e},ge}function Ce(){return me?ve:(me=1,ve={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"})}function Ae(){if(_e)return be;_e=1;var t,e=he(),n=Se(),r=Me(),i=Ie(),o=Ce(),a=-2,s=258,l=262,u=103,c=113,h=666;function d(t,e){return t.msg=o[e],e}function p(t){return(t<<1)-(t>4?9:0)}function f(t){for(var e=t.length;--e>=0;)t[e]=0}function g(t){var n=t.state,r=n.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(e.arraySet(t.output,n.pending_buf,n.pending_out,r,t.next_out),t.next_out+=r,n.pending_out+=r,t.total_out+=r,t.avail_out-=r,n.pending-=r,0===n.pending&&(n.pending_out=0))}function y(t,e){n._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,g(t.strm)}function v(t,e){t.pending_buf[t.pending++]=e}function m(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function _(t,n,o,a){var s=t.avail_in;return s>a&&(s=a),0===s?0:(t.avail_in-=s,e.arraySet(n,t.input,t.next_in,s,o),1===t.state.wrap?t.adler=r(t.adler,n,s,o):2===t.state.wrap&&(t.adler=i(t.adler,n,s,o)),t.next_in+=s,t.total_in+=s,s)}function x(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,u=t.nice_match,c=t.strstart>t.w_size-l?t.strstart-(t.w_size-l):0,h=t.window,d=t.w_mask,p=t.prev,f=t.strstart+s,g=h[o+a-1],y=h[o+a];t.prev_length>=t.good_match&&(i>>=2),u>t.lookahead&&(u=t.lookahead);do{if(h[(n=e)+a]===y&&h[n+a-1]===g&&h[n]===h[o]&&h[++n]===h[o+1]){o+=2,n++;do{}while(h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&o<f);if(r=s-(f-o),o=f-s,r>a){if(t.match_start=e,a=r,r>=u)break;g=h[o+a-1],y=h[o+a]}}}while((e=p[e&d])>c&&0!=--i);return a<=t.lookahead?a:t.lookahead}function b(t){var n,r,i,o,a,s=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-l)){e.arraySet(t.window,t.window,s,s,0),t.match_start-=s,t.strstart-=s,t.block_start-=s,n=r=t.hash_size;do{i=t.head[--n],t.head[n]=i>=s?i-s:0}while(--r);n=r=s;do{i=t.prev[--n],t.prev[n]=i>=s?i-s:0}while(--r);o+=s}if(0===t.strm.avail_in)break;if(r=_(t.strm,t.window,t.strstart+t.lookahead,o),t.lookahead+=r,t.lookahead+t.insert>=3)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+3-1])&t.hash_mask,t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<l&&0!==t.strm.avail_in)}function w(t,e){for(var r,i;;){if(t.lookahead<l){if(b(t),t.lookahead<l&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-l&&(t.match_length=x(t,r)),t.match_length>=3)if(i=n._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=n._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(y(t,!1),0===t.strm.avail_out)?1:2}function S(t,e){for(var r,i,o;;){if(t.lookahead<l){if(b(t),t.lookahead<l&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-l&&(t.match_length=x(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){o=t.strstart+t.lookahead-3,i=n._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=o&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((i=n._tr_tally(t,0,t.window[t.strstart-1]))&&y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=n._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(y(t,!1),0===t.strm.avail_out)?1:2}function M(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function I(){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=8,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 e.Buf16(1146),this.dyn_dtree=new e.Buf16(122),this.bl_tree=new e.Buf16(78),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(16),this.heap=new e.Buf16(573),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(573),f(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 C(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:c,t.adler=2===e.wrap?0:1,e.last_flush=0,n._tr_init(e),0):d(t,a)}function A(e){var n,r=C(e);return 0===r&&((n=e.state).window_size=2*n.w_size,f(n.head),n.max_lazy_match=t[n.level].max_lazy,n.good_match=t[n.level].good_length,n.nice_match=t[n.level].nice_length,n.max_chain_length=t[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),r}function T(t,n,r,i,o,s){if(!t)return a;var l=1;if(-1===n&&(n=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),o<1||o>9||8!==r||i<8||i>15||n<0||n>9||s<0||s>4)return d(t,a);8===i&&(i=9);var u=new I;return t.state=u,u.strm=t,u.wrap=l,u.gzhead=null,u.w_bits=i,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new e.Buf8(2*u.w_size),u.head=new e.Buf16(u.hash_size),u.prev=new e.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new e.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=n,u.strategy=s,u.method=r,A(t)}return t=[new M(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(b(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-l&&(y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(y(t,!1),t.strm.avail_out),1)})),new M(4,4,8,4,w),new M(4,5,16,8,w),new M(4,6,32,32,w),new M(4,4,16,16,S),new M(8,16,32,32,S),new M(8,16,128,128,S),new M(8,32,128,256,S),new M(32,128,258,1024,S),new M(32,258,258,4096,S)],be.deflateInit=function(t,e){return T(t,e,8,15,8,0)},be.deflateInit2=T,be.deflateReset=A,be.deflateResetKeep=C,be.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?a:(t.state.gzhead=e,0):a},be.deflate=function(e,r){var o,l,_,x;if(!e||!e.state||r>5||r<0)return e?d(e,a):a;if(l=e.state,!e.output||!e.input&&0!==e.avail_in||l.status===h&&4!==r)return d(e,0===e.avail_out?-5:a);if(l.strm=e,o=l.last_flush,l.last_flush=r,42===l.status)if(2===l.wrap)e.adler=0,v(l,31),v(l,139),v(l,8),l.gzhead?(v(l,(l.gzhead.text?1:0)+(l.gzhead.hcrc?2:0)+(l.gzhead.extra?4:0)+(l.gzhead.name?8:0)+(l.gzhead.comment?16:0)),v(l,255&l.gzhead.time),v(l,l.gzhead.time>>8&255),v(l,l.gzhead.time>>16&255),v(l,l.gzhead.time>>24&255),v(l,9===l.level?2:l.strategy>=2||l.level<2?4:0),v(l,255&l.gzhead.os),l.gzhead.extra&&l.gzhead.extra.length&&(v(l,255&l.gzhead.extra.length),v(l,l.gzhead.extra.length>>8&255)),l.gzhead.hcrc&&(e.adler=i(e.adler,l.pending_buf,l.pending,0)),l.gzindex=0,l.status=69):(v(l,0),v(l,0),v(l,0),v(l,0),v(l,0),v(l,9===l.level?2:l.strategy>=2||l.level<2?4:0),v(l,3),l.status=c);else{var w=8+(l.w_bits-8<<4)<<8;w|=(l.strategy>=2||l.level<2?0:l.level<6?1:6===l.level?2:3)<<6,0!==l.strstart&&(w|=32),w+=31-w%31,l.status=c,m(l,w),0!==l.strstart&&(m(l,e.adler>>>16),m(l,65535&e.adler)),e.adler=1}if(69===l.status)if(l.gzhead.extra){for(_=l.pending;l.gzindex<(65535&l.gzhead.extra.length)&&(l.pending!==l.pending_buf_size||(l.gzhead.hcrc&&l.pending>_&&(e.adler=i(e.adler,l.pending_buf,l.pending-_,_)),g(e),_=l.pending,l.pending!==l.pending_buf_size));)v(l,255&l.gzhead.extra[l.gzindex]),l.gzindex++;l.gzhead.hcrc&&l.pending>_&&(e.adler=i(e.adler,l.pending_buf,l.pending-_,_)),l.gzindex===l.gzhead.extra.length&&(l.gzindex=0,l.status=73)}else l.status=73;if(73===l.status)if(l.gzhead.name){_=l.pending;do{if(l.pending===l.pending_buf_size&&(l.gzhead.hcrc&&l.pending>_&&(e.adler=i(e.adler,l.pending_buf,l.pending-_,_)),g(e),_=l.pending,l.pending===l.pending_buf_size)){x=1;break}x=l.gzindex<l.gzhead.name.length?255&l.gzhead.name.charCodeAt(l.gzindex++):0,v(l,x)}while(0!==x);l.gzhead.hcrc&&l.pending>_&&(e.adler=i(e.adler,l.pending_buf,l.pending-_,_)),0===x&&(l.gzindex=0,l.status=91)}else l.status=91;if(91===l.status)if(l.gzhead.comment){_=l.pending;do{if(l.pending===l.pending_buf_size&&(l.gzhead.hcrc&&l.pending>_&&(e.adler=i(e.adler,l.pending_buf,l.pending-_,_)),g(e),_=l.pending,l.pending===l.pending_buf_size)){x=1;break}x=l.gzindex<l.gzhead.comment.length?255&l.gzhead.comment.charCodeAt(l.gzindex++):0,v(l,x)}while(0!==x);l.gzhead.hcrc&&l.pending>_&&(e.adler=i(e.adler,l.pending_buf,l.pending-_,_)),0===x&&(l.status=u)}else l.status=u;if(l.status===u&&(l.gzhead.hcrc?(l.pending+2>l.pending_buf_size&&g(e),l.pending+2<=l.pending_buf_size&&(v(l,255&e.adler),v(l,e.adler>>8&255),e.adler=0,l.status=c)):l.status=c),0!==l.pending){if(g(e),0===e.avail_out)return l.last_flush=-1,0}else if(0===e.avail_in&&p(r)<=p(o)&&4!==r)return d(e,-5);if(l.status===h&&0!==e.avail_in)return d(e,-5);if(0!==e.avail_in||0!==l.lookahead||0!==r&&l.status!==h){var S=2===l.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(b(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=n._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(y(t,!1),0===t.strm.avail_out)?1:2}(l,r):3===l.strategy?function(t,e){for(var r,i,o,a,l=t.window;;){if(t.lookahead<=s){if(b(t),t.lookahead<=s&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(i=l[o=t.strstart-1])===l[++o]&&i===l[++o]&&i===l[++o]){a=t.strstart+s;do{}while(i===l[++o]&&i===l[++o]&&i===l[++o]&&i===l[++o]&&i===l[++o]&&i===l[++o]&&i===l[++o]&&i===l[++o]&&o<a);t.match_length=s-(a-o),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=n._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=n._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(y(t,!1),0===t.strm.avail_out)?1:2}(l,r):t[l.level].func(l,r);if(3!==S&&4!==S||(l.status=h),1===S||3===S)return 0===e.avail_out&&(l.last_flush=-1),0;if(2===S&&(1===r?n._tr_align(l):5!==r&&(n._tr_stored_block(l,0,0,!1),3===r&&(f(l.head),0===l.lookahead&&(l.strstart=0,l.block_start=0,l.insert=0))),g(e),0===e.avail_out))return l.last_flush=-1,0}return 4!==r?0:l.wrap<=0?1:(2===l.wrap?(v(l,255&e.adler),v(l,e.adler>>8&255),v(l,e.adler>>16&255),v(l,e.adler>>24&255),v(l,255&e.total_in),v(l,e.total_in>>8&255),v(l,e.total_in>>16&255),v(l,e.total_in>>24&255)):(m(l,e.adler>>>16),m(l,65535&e.adler)),g(e),l.wrap>0&&(l.wrap=-l.wrap),0!==l.pending?0:1)},be.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==u&&e!==c&&e!==h?d(t,a):(t.state=null,e===c?d(t,-3):0):a},be.deflateSetDictionary=function(t,n){var i,o,s,l,u,c,h,d,p=n.length;if(!t||!t.state)return a;if(2===(l=(i=t.state).wrap)||1===l&&42!==i.status||i.lookahead)return a;for(1===l&&(t.adler=r(t.adler,n,p,0)),i.wrap=0,p>=i.w_size&&(0===l&&(f(i.head),i.strstart=0,i.block_start=0,i.insert=0),d=new e.Buf8(i.w_size),e.arraySet(d,n,p-i.w_size,i.w_size,0),n=d,p=i.w_size),u=t.avail_in,c=t.next_in,h=t.input,t.avail_in=p,t.next_in=0,t.input=n,b(i);i.lookahead>=3;){o=i.strstart,s=i.lookahead-2;do{i.ins_h=(i.ins_h<<i.hash_shift^i.window[o+3-1])&i.hash_mask,i.prev[o&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=o,o++}while(--s);i.strstart=o,i.lookahead=2,b(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=c,t.input=h,t.avail_in=u,i.wrap=l,0},be.deflateInfo="pako deflate (from Nodeca project)",be}var Te,ke,Le,De,Pe={};function Re(){if(Te)return Pe;Te=1;var t=he(),e=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch(t){e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){n=!1}for(var r=new t.Buf8(256),i=0;i<256;i++)r[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;function o(r,i){if(i<65534&&(r.subarray&&n||!r.subarray&&e))return String.fromCharCode.apply(null,t.shrinkBuf(r,i));for(var o="",a=0;a<i;a++)o+=String.fromCharCode(r[a]);return o}return r[254]=r[254]=1,Pe.string2buf=function(e){var n,r,i,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(n=new t.Buf8(l),a=0,o=0;a<l;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?n[a++]=r:r<2048?(n[a++]=192|r>>>6,n[a++]=128|63&r):r<65536?(n[a++]=224|r>>>12,n[a++]=128|r>>>6&63,n[a++]=128|63&r):(n[a++]=240|r>>>18,n[a++]=128|r>>>12&63,n[a++]=128|r>>>6&63,n[a++]=128|63&r);return n},Pe.buf2binstring=function(t){return o(t,t.length)},Pe.binstring2buf=function(e){for(var n=new t.Buf8(e.length),r=0,i=n.length;r<i;r++)n[r]=e.charCodeAt(r);return n},Pe.buf2string=function(t,e){var n,i,a,s,l=e||t.length,u=new Array(2*l);for(i=0,n=0;n<l;)if((a=t[n++])<128)u[i++]=a;else if((s=r[a])>4)u[i++]=65533,n+=s-1;else{for(a&=2===s?31:3===s?15:7;s>1&&n<l;)a=a<<6|63&t[n++],s--;s>1?u[i++]=65533:a<65536?u[i++]=a:(a-=65536,u[i++]=55296|a>>10&1023,u[i++]=56320|1023&a)}return o(u,i)},Pe.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+r[t[n]]>e?n:e},Pe}function Oe(){if(Le)return ke;return Le=1,ke=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}}var Ee,Ne,ze,Be,Ve,Fe,Ge,je,We,He,Ue,Ze,Ye,Xe,qe={},Ke={};function $e(){if(Ve)return Ke;Ve=1;var t=he(),e=Me(),n=Ie(),r=(Ne||(Ne=1,Ee=function(t,e){var n,r,i,o,a,s,l,u,c,h,d,p,f,g,y,v,m,_,x,b,w,S,M,I,C;n=t.state,r=t.next_in,I=t.input,i=r+(t.avail_in-5),o=t.next_out,C=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,h=n.wnext,d=n.window,p=n.hold,f=n.bits,g=n.lencode,y=n.distcode,v=(1<<n.lenbits)-1,m=(1<<n.distbits)-1;t:do{f<15&&(p+=I[r++]<<f,f+=8,p+=I[r++]<<f,f+=8),_=g[p&v];e:for(;;){if(p>>>=x=_>>>24,f-=x,0==(x=_>>>16&255))C[o++]=65535&_;else{if(!(16&x)){if(64&x){if(32&x){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}_=g[(65535&_)+(p&(1<<x)-1)];continue e}for(b=65535&_,(x&=15)&&(f<x&&(p+=I[r++]<<f,f+=8),b+=p&(1<<x)-1,p>>>=x,f-=x),f<15&&(p+=I[r++]<<f,f+=8,p+=I[r++]<<f,f+=8),_=y[p&m];;){if(p>>>=x=_>>>24,f-=x,16&(x=_>>>16&255)){if(w=65535&_,f<(x&=15)&&(p+=I[r++]<<f,(f+=8)<x&&(p+=I[r++]<<f,f+=8)),(w+=p&(1<<x)-1)>l){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=x,f-=x,w>(x=o-a)){if((x=w-x)>c&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(S=0,M=d,0===h){if(S+=u-x,x<b){b-=x;do{C[o++]=d[S++]}while(--x);S=o-w,M=C}}else if(h<x){if(S+=u+h-x,(x-=h)<b){b-=x;do{C[o++]=d[S++]}while(--x);if(S=0,h<b){b-=x=h;do{C[o++]=d[S++]}while(--x);S=o-w,M=C}}}else if(S+=h-x,x<b){b-=x;do{C[o++]=d[S++]}while(--x);S=o-w,M=C}for(;b>2;)C[o++]=M[S++],C[o++]=M[S++],C[o++]=M[S++],b-=3;b&&(C[o++]=M[S++],b>1&&(C[o++]=M[S++]))}else{S=o-w;do{C[o++]=C[S++],C[o++]=C[S++],C[o++]=C[S++],b-=3}while(b>2);b&&(C[o++]=C[S++],b>1&&(C[o++]=C[S++]))}break}if(64&x){t.msg="invalid distance code",n.mode=30;break t}_=y[(65535&_)+(p&(1<<x)-1)]}}break}}while(r<i&&o<s);r-=b=f>>3,p&=(1<<(f-=b<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=f}),Ee),i=function(){if(Be)return ze;Be=1;var t=he(),e=15,n=[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],r=[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],i=[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],o=[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];return ze=function(a,s,l,u,c,h,d,p){var f,g,y,v,m,_,x,b,w,S=p.bits,M=0,I=0,C=0,A=0,T=0,k=0,L=0,D=0,P=0,R=0,O=null,E=0,N=new t.Buf16(16),z=new t.Buf16(16),B=null,V=0;for(M=0;M<=e;M++)N[M]=0;for(I=0;I<u;I++)N[s[l+I]]++;for(T=S,A=e;A>=1&&0===N[A];A--);if(T>A&&(T=A),0===A)return c[h++]=20971520,c[h++]=20971520,p.bits=1,0;for(C=1;C<A&&0===N[C];C++);for(T<C&&(T=C),D=1,M=1;M<=e;M++)if(D<<=1,(D-=N[M])<0)return-1;if(D>0&&(0===a||1!==A))return-1;for(z[1]=0,M=1;M<e;M++)z[M+1]=z[M]+N[M];for(I=0;I<u;I++)0!==s[l+I]&&(d[z[s[l+I]]++]=I);if(0===a?(O=B=d,_=19):1===a?(O=n,E-=257,B=r,V-=257,_=256):(O=i,B=o,_=-1),R=0,I=0,M=C,m=h,k=T,L=0,y=-1,v=(P=1<<T)-1,1===a&&P>852||2===a&&P>592)return 1;for(;;){x=M-L,d[I]<_?(b=0,w=d[I]):d[I]>_?(b=B[V+d[I]],w=O[E+d[I]]):(b=96,w=0),f=1<<M-L,C=g=1<<k;do{c[m+(R>>L)+(g-=f)]=x<<24|b<<16|w}while(0!==g);for(f=1<<M-1;R&f;)f>>=1;if(0!==f?(R&=f-1,R+=f):R=0,I++,0==--N[M]){if(M===A)break;M=s[l+d[I]]}if(M>T&&(R&v)!==y){for(0===L&&(L=T),m+=C,D=1<<(k=M-L);k+L<A&&!((D-=N[k+L])<=0);)k++,D<<=1;if(P+=1<<k,1===a&&P>852||2===a&&P>592)return 1;c[y=R&v]=T<<24|k<<16|m-h}}return 0!==R&&(c[m+R]=M-L<<24|64<<16),p.bits=T,0},ze}(),o=-2,a=12,s=30;function l(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){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 t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(e){var n;return e&&e.state?(n=e.state,e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=1&n.wrap),n.mode=1,n.last=0,n.havedict=0,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new t.Buf32(852),n.distcode=n.distdyn=new t.Buf32(592),n.sane=1,n.back=-1,0):o}function h(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,c(t)):o}function d(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?o:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,h(t))):o}function p(t,e){var n,r;return t?(r=new u,t.state=r,r.window=null,0!==(n=d(t,e))&&(t.state=null),n):o}var f,g,y=!0;function v(e){if(y){var n;for(f=new t.Buf32(512),g=new t.Buf32(32),n=0;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(i(1,e.lens,0,288,f,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;i(2,e.lens,0,32,g,0,e.work,{bits:5}),y=!1}e.lencode=f,e.lenbits=9,e.distcode=g,e.distbits=5}function m(e,n,r,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new t.Buf8(a.wsize)),i>=a.wsize?(t.arraySet(a.window,n,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),t.arraySet(a.window,n,r-i,o,a.wnext),(i-=o)?(t.arraySet(a.window,n,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}return Ke.inflateReset=h,Ke.inflateReset2=d,Ke.inflateResetKeep=c,Ke.inflateInit=function(t){return p(t,15)},Ke.inflateInit2=p,Ke.inflate=function(u,c){var h,d,p,f,g,y,_,x,b,w,S,M,I,C,A,T,k,L,D,P,R,O,E,N,z=0,B=new t.Buf8(4),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!u||!u.state||!u.output||!u.input&&0!==u.avail_in)return o;(h=u.state).mode===a&&(h.mode=13),g=u.next_out,p=u.output,_=u.avail_out,f=u.next_in,d=u.input,y=u.avail_in,x=h.hold,b=h.bits,w=y,S=_,O=0;t:for(;;)switch(h.mode){case 1:if(0===h.wrap){h.mode=13;break}for(;b<16;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}if(2&h.wrap&&35615===x){h.check=0,B[0]=255&x,B[1]=x>>>8&255,h.check=n(h.check,B,2,0),x=0,b=0,h.mode=2;break}if(h.flags=0,h.head&&(h.head.done=!1),!(1&h.wrap)||(((255&x)<<8)+(x>>8))%31){u.msg="incorrect header check",h.mode=s;break}if(8!=(15&x)){u.msg="unknown compression method",h.mode=s;break}if(b-=4,R=8+(15&(x>>>=4)),0===h.wbits)h.wbits=R;else if(R>h.wbits){u.msg="invalid window size",h.mode=s;break}h.dmax=1<<R,u.adler=h.check=1,h.mode=512&x?10:a,x=0,b=0;break;case 2:for(;b<16;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}if(h.flags=x,8!=(255&h.flags)){u.msg="unknown compression method",h.mode=s;break}if(57344&h.flags){u.msg="unknown header flags set",h.mode=s;break}h.head&&(h.head.text=x>>8&1),512&h.flags&&(B[0]=255&x,B[1]=x>>>8&255,h.check=n(h.check,B,2,0)),x=0,b=0,h.mode=3;case 3:for(;b<32;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}h.head&&(h.head.time=x),512&h.flags&&(B[0]=255&x,B[1]=x>>>8&255,B[2]=x>>>16&255,B[3]=x>>>24&255,h.check=n(h.check,B,4,0)),x=0,b=0,h.mode=4;case 4:for(;b<16;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}h.head&&(h.head.xflags=255&x,h.head.os=x>>8),512&h.flags&&(B[0]=255&x,B[1]=x>>>8&255,h.check=n(h.check,B,2,0)),x=0,b=0,h.mode=5;case 5:if(1024&h.flags){for(;b<16;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}h.length=x,h.head&&(h.head.extra_len=x),512&h.flags&&(B[0]=255&x,B[1]=x>>>8&255,h.check=n(h.check,B,2,0)),x=0,b=0}else h.head&&(h.head.extra=null);h.mode=6;case 6:if(1024&h.flags&&((M=h.length)>y&&(M=y),M&&(h.head&&(R=h.head.extra_len-h.length,h.head.extra||(h.head.extra=new Array(h.head.extra_len)),t.arraySet(h.head.extra,d,f,M,R)),512&h.flags&&(h.check=n(h.check,d,M,f)),y-=M,f+=M,h.length-=M),h.length))break t;h.length=0,h.mode=7;case 7:if(2048&h.flags){if(0===y)break t;M=0;do{R=d[f+M++],h.head&&R&&h.length<65536&&(h.head.name+=String.fromCharCode(R))}while(R&&M<y);if(512&h.flags&&(h.check=n(h.check,d,M,f)),y-=M,f+=M,R)break t}else h.head&&(h.head.name=null);h.length=0,h.mode=8;case 8:if(4096&h.flags){if(0===y)break t;M=0;do{R=d[f+M++],h.head&&R&&h.length<65536&&(h.head.comment+=String.fromCharCode(R))}while(R&&M<y);if(512&h.flags&&(h.check=n(h.check,d,M,f)),y-=M,f+=M,R)break t}else h.head&&(h.head.comment=null);h.mode=9;case 9:if(512&h.flags){for(;b<16;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}if(x!==(65535&h.check)){u.msg="header crc mismatch",h.mode=s;break}x=0,b=0}h.head&&(h.head.hcrc=h.flags>>9&1,h.head.done=!0),u.adler=h.check=0,h.mode=a;break;case 10:for(;b<32;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}u.adler=h.check=l(x),x=0,b=0,h.mode=11;case 11:if(0===h.havedict)return u.next_out=g,u.avail_out=_,u.next_in=f,u.avail_in=y,h.hold=x,h.bits=b,2;u.adler=h.check=1,h.mode=a;case a:if(5===c||6===c)break t;case 13:if(h.last){x>>>=7&b,b-=7&b,h.mode=27;break}for(;b<3;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}switch(h.last=1&x,b-=1,3&(x>>>=1)){case 0:h.mode=14;break;case 1:if(v(h),h.mode=20,6===c){x>>>=2,b-=2;break t}break;case 2:h.mode=17;break;case 3:u.msg="invalid block type",h.mode=s}x>>>=2,b-=2;break;case 14:for(x>>>=7&b,b-=7&b;b<32;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}if((65535&x)!=(x>>>16^65535)){u.msg="invalid stored block lengths",h.mode=s;break}if(h.length=65535&x,x=0,b=0,h.mode=15,6===c)break t;case 15:h.mode=16;case 16:if(M=h.length){if(M>y&&(M=y),M>_&&(M=_),0===M)break t;t.arraySet(p,d,f,M,g),y-=M,f+=M,_-=M,g+=M,h.length-=M;break}h.mode=a;break;case 17:for(;b<14;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}if(h.nlen=257+(31&x),x>>>=5,b-=5,h.ndist=1+(31&x),x>>>=5,b-=5,h.ncode=4+(15&x),x>>>=4,b-=4,h.nlen>286||h.ndist>30){u.msg="too many length or distance symbols",h.mode=s;break}h.have=0,h.mode=18;case 18:for(;h.have<h.ncode;){for(;b<3;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}h.lens[V[h.have++]]=7&x,x>>>=3,b-=3}for(;h.have<19;)h.lens[V[h.have++]]=0;if(h.lencode=h.lendyn,h.lenbits=7,E={bits:h.lenbits},O=i(0,h.lens,0,19,h.lencode,0,h.work,E),h.lenbits=E.bits,O){u.msg="invalid code lengths set",h.mode=s;break}h.have=0,h.mode=19;case 19:for(;h.have<h.nlen+h.ndist;){for(;T=(z=h.lencode[x&(1<<h.lenbits)-1])>>>16&255,k=65535&z,!((A=z>>>24)<=b);){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}if(k<16)x>>>=A,b-=A,h.lens[h.have++]=k;else{if(16===k){for(N=A+2;b<N;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}if(x>>>=A,b-=A,0===h.have){u.msg="invalid bit length repeat",h.mode=s;break}R=h.lens[h.have-1],M=3+(3&x),x>>>=2,b-=2}else if(17===k){for(N=A+3;b<N;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}b-=A,R=0,M=3+(7&(x>>>=A)),x>>>=3,b-=3}else{for(N=A+7;b<N;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}b-=A,R=0,M=11+(127&(x>>>=A)),x>>>=7,b-=7}if(h.have+M>h.nlen+h.ndist){u.msg="invalid bit length repeat",h.mode=s;break}for(;M--;)h.lens[h.have++]=R}}if(h.mode===s)break;if(0===h.lens[256]){u.msg="invalid code -- missing end-of-block",h.mode=s;break}if(h.lenbits=9,E={bits:h.lenbits},O=i(1,h.lens,0,h.nlen,h.lencode,0,h.work,E),h.lenbits=E.bits,O){u.msg="invalid literal/lengths set",h.mode=s;break}if(h.distbits=6,h.distcode=h.distdyn,E={bits:h.distbits},O=i(2,h.lens,h.nlen,h.ndist,h.distcode,0,h.work,E),h.distbits=E.bits,O){u.msg="invalid distances set",h.mode=s;break}if(h.mode=20,6===c)break t;case 20:h.mode=21;case 21:if(y>=6&&_>=258){u.next_out=g,u.avail_out=_,u.next_in=f,u.avail_in=y,h.hold=x,h.bits=b,r(u,S),g=u.next_out,p=u.output,_=u.avail_out,f=u.next_in,d=u.input,y=u.avail_in,x=h.hold,b=h.bits,h.mode===a&&(h.back=-1);break}for(h.back=0;T=(z=h.lencode[x&(1<<h.lenbits)-1])>>>16&255,k=65535&z,!((A=z>>>24)<=b);){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}if(T&&!(240&T)){for(L=A,D=T,P=k;T=(z=h.lencode[P+((x&(1<<L+D)-1)>>L)])>>>16&255,k=65535&z,!(L+(A=z>>>24)<=b);){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}x>>>=L,b-=L,h.back+=L}if(x>>>=A,b-=A,h.back+=A,h.length=k,0===T){h.mode=26;break}if(32&T){h.back=-1,h.mode=a;break}if(64&T){u.msg="invalid literal/length code",h.mode=s;break}h.extra=15&T,h.mode=22;case 22:if(h.extra){for(N=h.extra;b<N;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}h.length+=x&(1<<h.extra)-1,x>>>=h.extra,b-=h.extra,h.back+=h.extra}h.was=h.length,h.mode=23;case 23:for(;T=(z=h.distcode[x&(1<<h.distbits)-1])>>>16&255,k=65535&z,!((A=z>>>24)<=b);){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}if(!(240&T)){for(L=A,D=T,P=k;T=(z=h.distcode[P+((x&(1<<L+D)-1)>>L)])>>>16&255,k=65535&z,!(L+(A=z>>>24)<=b);){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}x>>>=L,b-=L,h.back+=L}if(x>>>=A,b-=A,h.back+=A,64&T){u.msg="invalid distance code",h.mode=s;break}h.offset=k,h.extra=15&T,h.mode=24;case 24:if(h.extra){for(N=h.extra;b<N;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}h.offset+=x&(1<<h.extra)-1,x>>>=h.extra,b-=h.extra,h.back+=h.extra}if(h.offset>h.dmax){u.msg="invalid distance too far back",h.mode=s;break}h.mode=25;case 25:if(0===_)break t;if(M=S-_,h.offset>M){if((M=h.offset-M)>h.whave&&h.sane){u.msg="invalid distance too far back",h.mode=s;break}M>h.wnext?(M-=h.wnext,I=h.wsize-M):I=h.wnext-M,M>h.length&&(M=h.length),C=h.window}else C=p,I=g-h.offset,M=h.length;M>_&&(M=_),_-=M,h.length-=M;do{p[g++]=C[I++]}while(--M);0===h.length&&(h.mode=21);break;case 26:if(0===_)break t;p[g++]=h.length,_--,h.mode=21;break;case 27:if(h.wrap){for(;b<32;){if(0===y)break t;y--,x|=d[f++]<<b,b+=8}if(S-=_,u.total_out+=S,h.total+=S,S&&(u.adler=h.check=h.flags?n(h.check,p,S,g-S):e(h.check,p,S,g-S)),S=_,(h.flags?x:l(x))!==h.check){u.msg="incorrect data check",h.mode=s;break}x=0,b=0}h.mode=28;case 28:if(h.wrap&&h.flags){for(;b<32;){if(0===y)break t;y--,x+=d[f++]<<b,b+=8}if(x!==(4294967295&h.total)){u.msg="incorrect length check",h.mode=s;break}x=0,b=0}h.mode=29;case 29:O=1;break t;case s:O=-3;break t;case 31:return-4;default:return o}return u.next_out=g,u.avail_out=_,u.next_in=f,u.avail_in=y,h.hold=x,h.bits=b,(h.wsize||S!==u.avail_out&&h.mode<s&&(h.mode<27||4!==c))&&m(u,u.output,u.next_out,S-u.avail_out),w-=u.avail_in,S-=u.avail_out,u.total_in+=w,u.total_out+=S,h.total+=S,h.wrap&&S&&(u.adler=h.check=h.flags?n(h.check,p,S,u.next_out-S):e(h.check,p,S,u.next_out-S)),u.data_type=h.bits+(h.last?64:0)+(h.mode===a?128:0)+(20===h.mode||15===h.mode?256:0),(0===w&&0===S||4===c)&&0===O&&(O=-5),O},Ke.inflateEnd=function(t){if(!t||!t.state)return o;var e=t.state;return e.window&&(e.window=null),t.state=null,0},Ke.inflateGetHeader=function(t,e){var n;return t&&t.state&&2&(n=t.state).wrap?(n.head=e,e.done=!1,0):o},Ke.inflateSetDictionary=function(t,n){var r,i=n.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?o:11===r.mode&&e(1,n,i,0)!==r.check?-3:m(t,n,i,i)?(r.mode=31,-4):(r.havedict=1,0):o},Ke.inflateInfo="pako inflate (from Nodeca project)",Ke}function Qe(){return Ge?Fe:(Ge=1,Fe={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})}function Je(){if(He)return qe;He=1;var t=$e(),e=he(),n=Re(),r=Qe(),i=Ce(),o=Oe(),a=We?je:(We=1,je=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}),s=Object.prototype.toString;function l(u){if(!(this instanceof l))return new l(u);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},u||{});var c=this.options;c.raw&&c.windowBits>=0&&c.windowBits<16&&(c.windowBits=-c.windowBits,0===c.windowBits&&(c.windowBits=-15)),!(c.windowBits>=0&&c.windowBits<16)||u&&u.windowBits||(c.windowBits+=32),c.windowBits>15&&c.windowBits<48&&(15&c.windowBits||(c.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var h=t.inflateInit2(this.strm,c.windowBits);if(h!==r.Z_OK)throw new Error(i[h]);if(this.header=new a,t.inflateGetHeader(this.strm,this.header),c.dictionary&&("string"==typeof c.dictionary?c.dictionary=n.string2buf(c.dictionary):"[object ArrayBuffer]"===s.call(c.dictionary)&&(c.dictionary=new Uint8Array(c.dictionary)),c.raw&&(h=t.inflateSetDictionary(this.strm,c.dictionary))!==r.Z_OK))throw new Error(i[h])}function u(t,e){var n=new l(e);if(n.push(t,!0),n.err)throw n.msg||i[n.err];return n.result}return l.prototype.push=function(i,o){var a,l,u,c,h,d=this.strm,p=this.options.chunkSize,f=this.options.dictionary,g=!1;if(this.ended)return!1;l=o===~~o?o:!0===o?r.Z_FINISH:r.Z_NO_FLUSH,"string"==typeof i?d.input=n.binstring2buf(i):"[object ArrayBuffer]"===s.call(i)?d.input=new Uint8Array(i):d.input=i,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new e.Buf8(p),d.next_out=0,d.avail_out=p),(a=t.inflate(d,r.Z_NO_FLUSH))===r.Z_NEED_DICT&&f&&(a=t.inflateSetDictionary(this.strm,f)),a===r.Z_BUF_ERROR&&!0===g&&(a=r.Z_OK,g=!1),a!==r.Z_STREAM_END&&a!==r.Z_OK)return this.onEnd(a),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&a!==r.Z_STREAM_END&&(0!==d.avail_in||l!==r.Z_FINISH&&l!==r.Z_SYNC_FLUSH)||("string"===this.options.to?(u=n.utf8border(d.output,d.next_out),c=d.next_out-u,h=n.buf2string(d.output,u),d.next_out=c,d.avail_out=p-c,c&&e.arraySet(d.output,d.output,u,c,0),this.onData(h)):this.onData(e.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(g=!0)}while((d.avail_in>0||0===d.avail_out)&&a!==r.Z_STREAM_END);return a===r.Z_STREAM_END&&(l=r.Z_FINISH),l===r.Z_FINISH?(a=t.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===r.Z_OK):l!==r.Z_SYNC_FLUSH||(this.onEnd(r.Z_OK),d.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===r.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},qe.Inflate=l,qe.inflate=u,qe.inflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},qe.ungzip=u,qe}function tn(){if(Ze)return Ue;Ze=1;var t=he().assign,e=function(){if(De)return xe;De=1;var t=Ae(),e=he(),n=Re(),r=Ce(),i=Oe(),o=Object.prototype.toString;function a(s){if(!(this instanceof a))return new a(s);this.options=e.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},s||{});var l=this.options;l.raw&&l.windowBits>0?l.windowBits=-l.windowBits:l.gzip&&l.windowBits>0&&l.windowBits<16&&(l.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var u=t.deflateInit2(this.strm,l.level,l.method,l.windowBits,l.memLevel,l.strategy);if(0!==u)throw new Error(r[u]);if(l.header&&t.deflateSetHeader(this.strm,l.header),l.dictionary){var c;if(c="string"==typeof l.dictionary?n.string2buf(l.dictionary):"[object ArrayBuffer]"===o.call(l.dictionary)?new Uint8Array(l.dictionary):l.dictionary,0!==(u=t.deflateSetDictionary(this.strm,c)))throw new Error(r[u]);this._dict_set=!0}}function s(t,e){var n=new a(e);if(n.push(t,!0),n.err)throw n.msg||r[n.err];return n.result}return a.prototype.push=function(r,i){var a,s,l=this.strm,u=this.options.chunkSize;if(this.ended)return!1;s=i===~~i?i:!0===i?4:0,"string"==typeof r?l.input=n.string2buf(r):"[object ArrayBuffer]"===o.call(r)?l.input=new Uint8Array(r):l.input=r,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=new e.Buf8(u),l.next_out=0,l.avail_out=u),1!==(a=t.deflate(l,s))&&0!==a)return this.onEnd(a),this.ended=!0,!1;0!==l.avail_out&&(0!==l.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(n.buf2binstring(e.shrinkBuf(l.output,l.next_out))):this.onData(e.shrinkBuf(l.output,l.next_out)))}while((l.avail_in>0||0===l.avail_out)&&1!==a);return 4===s?(a=t.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,0===a):2!==s||(this.onEnd(0),l.avail_out=0,!0)},a.prototype.onData=function(t){this.chunks.push(t)},a.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},xe.Deflate=a,xe.deflate=s,xe.deflateRaw=function(t,e){return(e=e||{}).raw=!0,s(t,e)},xe.gzip=function(t,e){return(e=e||{}).gzip=!0,s(t,e)},xe}(),n={};return t(n,e,Je(),Qe()),Ue=n}function en(){if(Xe)return le;Xe=1;var t=Bt();return le.STORE={magic:"\0\0",compressWorker:function(){return new t("STORE compression")},uncompressWorker:function(){return new t("STORE decompression")}},le.DEFLATE=function(){if(Ye)return ue;Ye=1;var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,e=tn(),n=zt(),r=Bt(),i=t?"uint8array":"array";function o(t,e){r.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}return ue.magic="\b\0",n.inherits(o,r),o.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(n.transformTo(i,t.data),!1)},o.prototype.flush=function(){r.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this._pako=null},o.prototype._createPako=function(){this._pako=new e[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},ue.compressWorker=function(t){return new o("Deflate",t)},ue.uncompressWorker=function(){return new o("Inflate",{})},ue}(),le}var nn,rn,on,an,sn,ln,un,cn,hn,dn,pn,fn,gn,yn,vn,mn,_n,xn,bn,wn,Sn,Mn,In,Cn,An,Tn,kn,Ln,Dn={};function Pn(){return nn||(nn=1,Dn.LOCAL_FILE_HEADER="PK",Dn.CENTRAL_FILE_HEADER="PK",Dn.CENTRAL_DIRECTORY_END="PK",Dn.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",Dn.ZIP64_CENTRAL_DIRECTORY_END="PK",Dn.DATA_DESCRIPTOR="PK\b"),Dn}function Rn(){if(on)return rn;on=1;var t=zt(),e=Bt(),n=Vt(),r=re(),i=Pn(),o=function(t,e){var n,r="";for(n=0;n<e;n++)r+=String.fromCharCode(255&t),t>>>=8;return r},a=function(e,a,s,l,u,c){var h,d,p=e.file,f=e.compression,g=c!==n.utf8encode,y=t.transformTo("string",c(p.name)),v=t.transformTo("string",n.utf8encode(p.name)),m=p.comment,_=t.transformTo("string",c(m)),x=t.transformTo("string",n.utf8encode(m)),b=v.length!==p.name.length,w=x.length!==m.length,S="",M="",I="",C=p.dir,A=p.date,T={crc32:0,compressedSize:0,uncompressedSize:0};a&&!s||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var k=0;a&&(k|=8),g||!b&&!w||(k|=2048);var L,D,P,R=0,O=0;C&&(R|=16),"UNIX"===u?(O=798,R|=(L=p.unixPermissions,D=C,P=L,L||(P=D?16893:33204),(65535&P)<<16)):(O=20,R|=63&(p.dosPermissions||0)),h=A.getUTCHours(),h<<=6,h|=A.getUTCMinutes(),h<<=5,h|=A.getUTCSeconds()/2,d=A.getUTCFullYear()-1980,d<<=4,d|=A.getUTCMonth()+1,d<<=5,d|=A.getUTCDate(),b&&(M=o(1,1)+o(r(y),4)+v,S+="up"+o(M.length,2)+M),w&&(I=o(1,1)+o(r(_),4)+x,S+="uc"+o(I.length,2)+I);var E="";return E+="\n\0",E+=o(k,2),E+=f.magic,E+=o(h,2),E+=o(d,2),E+=o(T.crc32,4),E+=o(T.compressedSize,4),E+=o(T.uncompressedSize,4),E+=o(y.length,2),E+=o(S.length,2),{fileRecord:i.LOCAL_FILE_HEADER+E+y+S,dirRecord:i.CENTRAL_FILE_HEADER+o(O,2)+E+o(_.length,2)+"\0\0\0\0"+o(R,4)+o(l,4)+y+S+_}},s=function(t){return i.DATA_DESCRIPTOR+o(t.crc32,4)+o(t.compressedSize,4)+o(t.uncompressedSize,4)};function l(t,n,r,i){e.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=n,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}return t.inherits(l,e),l.prototype.push=function(t){var n=t.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,e.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(n+100*(r-i-1))/r:100}}))},l.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=a(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=a(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:s(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var e=this.bytesWritten,n=0;n<this.dirRecords.length;n++)this.push({data:this.dirRecords[n],meta:{percent:100}});var r=this.bytesWritten-e,a=function(e,n,r,a,s){var l=t.transformTo("string",s(a));return i.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(e,2)+o(e,2)+o(n,4)+o(r,4)+o(l.length,2)+l}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:a,meta:{percent:100}})},l.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},l.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},l.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},l.prototype.error=function(t){var n=this._sources;if(!e.prototype.error.call(this,t))return!1;for(var r=0;r<n.length;r++)try{n[r].error(t)}catch(t){}return!0},l.prototype.lock=function(){e.prototype.lock.call(this);for(var t=this._sources,n=0;n<t.length;n++)t[n].lock()},rn=l}function On(){if(an)return se;an=1;var t=en(),e=Rn();return se.generateWorker=function(n,r,i){var o=new e(r.streamFiles,i,r.platform,r.encodeFileName),a=0;try{n.forEach((function(e,n){a++;var i=function(e,n){var r=e||n,i=t[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(n.options.compression,r.compression),s=n.options.compressionOptions||r.compressionOptions||{},l=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(t){o.error(t)}return o},se}function En(){if(cn)return un;cn=1;var t=Vt(),e=zt(),n=Bt(),r=Ft(),i=ee(),o=oe(),a=function(){if(Jt)return Qt;Jt=1;var t=Ft(),e=ne(),n=Vt(),r=oe(),i=Bt(),o=function(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}};o.prototype={internalStream:function(e){var r=null,o="string";try{if(!e)throw new Error("No output type specified.");var a="string"===(o=e.toLowerCase())||"text"===o;"binarystring"!==o&&"text"!==o||(o="string"),r=this._decompressWorker();var s=!this._dataBinary;s&&!a&&(r=r.pipe(new n.Utf8EncodeWorker)),!s&&a&&(r=r.pipe(new n.Utf8DecodeWorker))}catch(t){(r=new i("error")).error(t)}return new t(r,o,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof r&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var i=this._decompressWorker();return this._dataBinary||(i=i.pipe(new n.Utf8EncodeWorker)),r.createWorkerFrom(i,t,e)},_decompressWorker:function(){return this._data instanceof r?this._data.getContentWorker():this._data instanceof i?this._data:new e(this._data)}};for(var a=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],s=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},l=0;l<a.length;l++)o.prototype[a[l]]=s;return Qt=o}(),s=On(),l=wt(),u=function(){if(ln)return sn;ln=1;var t=zt(),e=Bt();function n(t,n){e.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(n)}return t.inherits(n,e),n.prototype._bindStream=function(t){var e=this;this._stream=t,t.pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},n.prototype.pause=function(){return!!e.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},sn=n}(),c=function(t,r,s){var c,f=e.getTypeOf(r),g=e.extend(s||{},i);g.date=g.date||new Date,null!==g.compression&&(g.compression=g.compression.toUpperCase()),"string"==typeof g.unixPermissions&&(g.unixPermissions=parseInt(g.unixPermissions,8)),g.unixPermissions&&16384&g.unixPermissions&&(g.dir=!0),g.dosPermissions&&16&g.dosPermissions&&(g.dir=!0),g.dir&&(t=d(t)),g.createFolders&&(c=h(t))&&p.call(this,c,!0);var y="string"===f&&!1===g.binary&&!1===g.base64;s&&void 0!==s.binary||(g.binary=!y),(r instanceof o&&0===r.uncompressedSize||g.dir||!r||0===r.length)&&(g.base64=!1,g.binary=!0,r="",g.compression="STORE",f="string");var v=null;v=r instanceof o||r instanceof n?r:l.isNode&&l.isStream(r)?new u(t,r):e.prepareContent(t,r,g.binary,g.optimizedBinaryString,g.base64);var m=new a(t,v,g);this.files[t]=m},h=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return e>0?t.substring(0,e):""},d=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},p=function(t,e){return e=void 0!==e?e:i.createFolders,t=d(t),this.files[t]||c.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function f(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var g={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,r;for(e in this.files)r=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,r)},filter:function(t){var e=[];return this.forEach((function(n,r){t(n,r)&&e.push(r)})),e},file:function(t,e,n){if(1===arguments.length){if(f(t)){var r=t;return this.filter((function(t,e){return!e.dir&&r.test(t)}))}var i=this.files[this.root+t];return i&&!i.dir?i:null}return t=this.root+t,c.call(this,t,e,n),this},folder:function(t){if(!t)return this;if(f(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=p.call(this,e),r=this.clone();return r.root=n.name,r},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(i){var o,a={};try{if((a=e.extend(i||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:t.utf8encode})).type=a.type.toLowerCase(),a.compression=a.compression.toUpperCase(),"binarystring"===a.type&&(a.type="string"),!a.type)throw new Error("No output type specified.");e.checkSupport(a.type),"darwin"!==a.platform&&"freebsd"!==a.platform&&"linux"!==a.platform&&"sunos"!==a.platform||(a.platform="UNIX"),"win32"===a.platform&&(a.platform="DOS");var l=a.comment||this.comment||"";o=s.generateWorker(this,a,l)}catch(t){(o=new n("error")).error(t)}return new r(o,a.type||"string",a.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};return un=g}function Nn(){if(dn)return hn;dn=1;var t=zt();function e(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}return e.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(e){return t.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},hn=e}function zn(){if(fn)return pn;fn=1;var t=Nn();function e(e){t.call(this,e);for(var n=0;n<this.data.length;n++)e[n]=255&e[n]}return zt().inherits(e,t),e.prototype.byteAt=function(t){return this.data[this.zero+t]},e.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),o=this.length-4;o>=0;--o)if(this.data[o]===e&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1},e.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},e.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},pn=e}function Bn(){if(mn)return vn;mn=1;var t=zn();function e(e){t.call(this,e)}return zt().inherits(e,t),e.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},vn=e}function Vn(){if(wn)return bn;wn=1;var t=zt(),e=ct(),n=zn(),r=function(){if(yn)return gn;yn=1;var t=Nn();function e(e){t.call(this,e)}return zt().inherits(e,t),e.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},e.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},e.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},e.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},gn=e}(),i=function(){if(xn)return _n;xn=1;var t=Bn();function e(e){t.call(this,e)}return zt().inherits(e,t),e.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},_n=e}(),o=Bn();return bn=function(a){var s=t.getTypeOf(a);return t.checkSupport(s),"string"!==s||e.uint8array?"nodebuffer"===s?new i(a):e.uint8array?new o(t.transformTo("uint8array",a)):new n(t.transformTo("array",a)):new r(a)}}function Fn(){if(Mn)return Sn;Mn=1;var t=Vn(),e=zt(),n=oe(),r=re(),i=Vt(),o=en(),a=ct();function s(t,e){this.options=t,this.loadOptions=e}return s.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(t){var r,i;if(t.skip(22),this.fileNameLength=t.readInt(2),i=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(i),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(r=function(t){for(var e in o)if(Object.prototype.hasOwnProperty.call(o,e)&&o[e].magic===t)return o[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+e.pretty(this.compressionMethod)+" unknown (inner file : "+e.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,r,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===t&&(this.dosPermissions=63&this.externalFileAttributes),3===t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var n=t(this.extraFields[1].value);this.uncompressedSize===e.MAX_VALUE_32BITS&&(this.uncompressedSize=n.readInt(8)),this.compressedSize===e.MAX_VALUE_32BITS&&(this.compressedSize=n.readInt(8)),this.localHeaderOffset===e.MAX_VALUE_32BITS&&(this.localHeaderOffset=n.readInt(8)),this.diskNumberStart===e.MAX_VALUE_32BITS&&(this.diskNumberStart=n.readInt(4))}},readExtraFields:function(t){var e,n,r,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<i;)e=t.readInt(2),n=t.readInt(2),r=t.readData(n),this.extraFields[e]={id:e,length:n,value:r};t.setIndex(i)},handleUTF8:function(){var t=a.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=i.utf8decode(this.fileName),this.fileCommentStr=i.utf8decode(this.fileComment);else{var n=this.findExtraFieldUnicodePath();if(null!==n)this.fileNameStr=n;else{var r=e.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var o=this.findExtraFieldUnicodeComment();if(null!==o)this.fileCommentStr=o;else{var s=e.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var n=t(e.value);return 1!==n.readInt(1)||r(this.fileName)!==n.readInt(4)?null:i.utf8decode(n.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var n=t(e.value);return 1!==n.readInt(1)||r(this.fileComment)!==n.readInt(4)?null:i.utf8decode(n.readData(e.length-5))}return null}},Sn=s}function Gn(){if(Tn)return An;Tn=1;var t=zt(),e=Mt(),n=Vt(),r=function(){if(Cn)return In;Cn=1;var t=Vn(),e=zt(),n=Pn(),r=Fn(),i=ct();function o(t){this.files=[],this.loadOptions=t}return o.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var n=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+e.pretty(n)+", expected "+e.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var r=this.reader.readString(4)===e;return this.reader.setIndex(n),r},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 t=this.reader.readData(this.zipCommentLength),n=i.uint8array?"uint8array":"array",r=e.transformTo(n,t);this.zipComment=this.loadOptions.decodeFileName(r)},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 t,e,n,r=this.zip64EndOfCentralSize-44;0<r;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(t=new r({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,n.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(t);var r=t;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===e.MAX_VALUE_16BITS||this.diskWithCentralDirStart===e.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===e.MAX_VALUE_16BITS||this.centralDirRecords===e.MAX_VALUE_16BITS||this.centralDirSize===e.MAX_VALUE_32BITS||this.centralDirOffset===e.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.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(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var o=r-i;if(o>0)this.isSignature(r,n.CENTRAL_FILE_HEADER)||(this.reader.zero=o);else if(o<0)throw new Error("Corrupted zip: missing "+Math.abs(o)+" bytes.")},prepareReader:function(e){this.reader=t(e)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},In=o}(),i=ie(),o=wt();function a(t){return new e.Promise((function(e,n){var r=t.decompressed.getContentWorker().pipe(new i);r.on("error",(function(t){n(t)})).on("end",(function(){r.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}return An=function(i,s){var l=this;return s=t.extend(s||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),o.isNode&&o.isStream(i)?e.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):t.prepareContent("the loaded zip file",i,!0,s.optimizedBinaryString,s.base64).then((function(t){var e=new r(s);return e.load(t),e})).then((function(t){var n=[e.Promise.resolve(t)],r=t.files;if(s.checkCRC32)for(var i=0;i<r.length;i++)n.push(a(r[i]));return e.Promise.all(n)})).then((function(e){for(var n=e.shift(),r=n.files,i=0;i<r.length;i++){var o=r[i],a=o.fileNameStr,u=t.resolve(o.fileNameStr);l.file(u,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:s.createFolders}),o.dir||(l.file(u).unsafeOriginalName=a)}return n.zipComment.length&&(l.comment=n.zipComment),l}))},An}var jn,Wn=function(){if(Ln)return kn;function t(){if(!(this instanceof t))return new t;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 e=new t;for(var n in this)"function"!=typeof this[n]&&(e[n]=this[n]);return e}}return Ln=1,t.prototype=En(),t.prototype.loadAsync=Gn(),t.support=ct(),t.defaults=ee(),t.version="3.10.1",t.loadAsync=function(e,n){return(new t).loadAsync(e,n)},t.external=Mt(),kn=t}(),Hn=d(Wn),Un={exports:{}},Zn=Un.exports;var Yn=(jn||(jn=1,function(t,e){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=32,s=128,l=256,u=1/0,c=9007199254740991,d=NaN,p=4294967295,f=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",l]],g="[object Arguments]",y="[object Array]",v="[object Boolean]",m="[object Date]",_="[object Error]",x="[object Function]",b="[object GeneratorFunction]",w="[object Map]",S="[object Number]",M="[object Object]",I="[object Promise]",C="[object RegExp]",A="[object Set]",T="[object String]",k="[object Symbol]",L="[object WeakMap]",D="[object ArrayBuffer]",P="[object DataView]",R="[object Float32Array]",O="[object Float64Array]",E="[object Int8Array]",N="[object Int16Array]",z="[object Int32Array]",B="[object Uint8Array]",V="[object Uint8ClampedArray]",F="[object Uint16Array]",G="[object Uint32Array]",j=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,Z=/[&<>"']/g,Y=RegExp(U.source),X=RegExp(Z.source),q=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,it=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dt=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,ft=/^0b[01]+$/i,gt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,mt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_t=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",St="\\u2700-\\u27bf",Mt="a-z\\xdf-\\xf6\\xf8-\\xff",It="A-Z\\xc0-\\xd6\\xd8-\\xde",Ct="\\ufe0e\\ufe0f",At="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",Tt="['’]",kt="["+bt+"]",Lt="["+At+"]",Dt="["+wt+"]",Pt="\\d+",Rt="["+St+"]",Ot="["+Mt+"]",Et="[^"+bt+At+Pt+St+Mt+It+"]",Nt="\\ud83c[\\udffb-\\udfff]",zt="[^"+bt+"]",Bt="(?:\\ud83c[\\udde6-\\uddff]){2}",Vt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ft="["+It+"]",Gt="\\u200d",jt="(?:"+Ot+"|"+Et+")",Wt="(?:"+Ft+"|"+Et+")",Ht="(?:['’](?:d|ll|m|re|s|t|ve))?",Ut="(?:['’](?:D|LL|M|RE|S|T|VE))?",Zt="(?:"+Dt+"|"+Nt+")?",Yt="["+Ct+"]?",Xt=Yt+Zt+"(?:"+Gt+"(?:"+[zt,Bt,Vt].join("|")+")"+Yt+Zt+")*",qt="(?:"+[Rt,Bt,Vt].join("|")+")"+Xt,Kt="(?:"+[zt+Dt+"?",Dt,Bt,Vt,kt].join("|")+")",$t=RegExp(Tt,"g"),Qt=RegExp(Dt,"g"),Jt=RegExp(Nt+"(?="+Nt+")|"+Kt+Xt,"g"),te=RegExp([Ft+"?"+Ot+"+"+Ht+"(?="+[Lt,Ft,"$"].join("|")+")",Wt+"+"+Ut+"(?="+[Lt,Ft+jt,"$"].join("|")+")",Ft+"?"+jt+"+"+Ht,Ft+"+"+Ut,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pt,qt].join("|"),"g"),ee=RegExp("["+Gt+bt+wt+Ct+"]"),ne=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["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"],ie=-1,oe={};oe[R]=oe[O]=oe[E]=oe[N]=oe[z]=oe[B]=oe[V]=oe[F]=oe[G]=!0,oe[g]=oe[y]=oe[D]=oe[v]=oe[P]=oe[m]=oe[_]=oe[x]=oe[w]=oe[S]=oe[M]=oe[C]=oe[A]=oe[T]=oe[L]=!1;var ae={};ae[g]=ae[y]=ae[D]=ae[P]=ae[v]=ae[m]=ae[R]=ae[O]=ae[E]=ae[N]=ae[z]=ae[w]=ae[S]=ae[M]=ae[C]=ae[A]=ae[T]=ae[k]=ae[B]=ae[V]=ae[F]=ae[G]=!0,ae[_]=ae[x]=ae[L]=!1;var se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},le=parseFloat,ue=parseInt,ce="object"==typeof h&&h&&h.Object===Object&&h,he="object"==typeof self&&self&&self.Object===Object&&self,de=ce||he||Function("return this")(),pe=e&&!e.nodeType&&e,fe=pe&&t&&!t.nodeType&&t,ge=fe&&fe.exports===pe,ye=ge&&ce.process,ve=function(){try{var t=fe&&fe.require&&fe.require("util").types;return t||ye&&ye.binding&&ye.binding("util")}catch(t){}}(),me=ve&&ve.isArrayBuffer,_e=ve&&ve.isDate,xe=ve&&ve.isMap,be=ve&&ve.isRegExp,we=ve&&ve.isSet,Se=ve&&ve.isTypedArray;function Me(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ie(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function Ce(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Ae(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Te(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ke(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function Le(t,e){return!(null==t||!t.length)&&Fe(t,e,0)>-1}function De(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Pe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Re(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Oe(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function Ee(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Ne(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var ze=He("length");function Be(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Ve(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Fe(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Ve(t,je,n)}function Ge(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function je(t){return t!=t}function We(t,e){var n=null==t?0:t.length;return n?Ye(t,e)/n:d}function He(t){return function(e){return null==e?n:e[t]}}function Ue(t){return function(e){return null==t?n:t[e]}}function Ze(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Ye(t,e){for(var r,i=-1,o=t.length;++i<o;){var a=e(t[i]);a!==n&&(r=r===n?a:r+a)}return r}function Xe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function qe(t){return t?t.slice(0,pn(t)+1).replace(rt,""):t}function Ke(t){return function(e){return t(e)}}function $e(t,e){return Pe(e,(function(e){return t[e]}))}function Qe(t,e){return t.has(e)}function Je(t,e){for(var n=-1,r=t.length;++n<r&&Fe(e,t[n],0)>-1;);return n}function tn(t,e){for(var n=t.length;n--&&Fe(e,t[n],0)>-1;);return n}var en=Ue({"À":"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"}),nn=Ue({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rn(t){return"\\"+se[t]}function on(t){return ee.test(t)}function an(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function sn(t,e){return function(n){return t(e(n))}}function ln(t,e){for(var n=-1,r=t.length,i=0,a=[];++n<r;){var s=t[n];s!==e&&s!==o||(t[n]=o,a[i++]=n)}return a}function un(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function hn(t){return on(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):ze(t)}function dn(t){return on(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function pn(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var fn=Ue({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),gn=function t(e){var h,it=(e=null==e?de:gn.defaults(de.Object(),e,gn.pick(de,re))).Array,bt=e.Date,wt=e.Error,St=e.Function,Mt=e.Math,It=e.Object,Ct=e.RegExp,At=e.String,Tt=e.TypeError,kt=it.prototype,Lt=St.prototype,Dt=It.prototype,Pt=e["__core-js_shared__"],Rt=Lt.toString,Ot=Dt.hasOwnProperty,Et=0,Nt=(h=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"",zt=Dt.toString,Bt=Rt.call(It),Vt=de._,Ft=Ct("^"+Rt.call(Ot).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gt=ge?e.Buffer:n,jt=e.Symbol,Wt=e.Uint8Array,Ht=Gt?Gt.allocUnsafe:n,Ut=sn(It.getPrototypeOf,It),Zt=It.create,Yt=Dt.propertyIsEnumerable,Xt=kt.splice,qt=jt?jt.isConcatSpreadable:n,Kt=jt?jt.iterator:n,Jt=jt?jt.toStringTag:n,ee=function(){try{var t=co(It,"defineProperty");return t({},"",{}),t}catch(t){}}(),se=e.clearTimeout!==de.clearTimeout&&e.clearTimeout,ce=bt&&bt.now!==de.Date.now&&bt.now,he=e.setTimeout!==de.setTimeout&&e.setTimeout,pe=Mt.ceil,fe=Mt.floor,ye=It.getOwnPropertySymbols,ve=Gt?Gt.isBuffer:n,ze=e.isFinite,Ue=kt.join,yn=sn(It.keys,It),vn=Mt.max,mn=Mt.min,_n=bt.now,xn=e.parseInt,bn=Mt.random,wn=kt.reverse,Sn=co(e,"DataView"),Mn=co(e,"Map"),In=co(e,"Promise"),Cn=co(e,"Set"),An=co(e,"WeakMap"),Tn=co(It,"create"),kn=An&&new An,Ln={},Dn=zo(Sn),Pn=zo(Mn),Rn=zo(In),On=zo(Cn),En=zo(An),Nn=jt?jt.prototype:n,zn=Nn?Nn.valueOf:n,Bn=Nn?Nn.toString:n;function Vn(t){if(ts(t)&&!Wa(t)&&!(t instanceof Wn)){if(t instanceof jn)return t;if(Ot.call(t,"__wrapped__"))return Bo(t)}return new jn(t)}var Fn=function(){function t(){}return function(e){if(!Ja(e))return{};if(Zt)return Zt(e);t.prototype=e;var r=new t;return t.prototype=n,r}}();function Gn(){}function jn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=n}function Wn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Hn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Zn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Yn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zn;++e<n;)this.add(t[e])}function Xn(t){var e=this.__data__=new Un(t);this.size=e.size}function qn(t,e){var n=Wa(t),r=!n&&ja(t),i=!n&&!r&&Ya(t),o=!n&&!r&&!i&&ls(t),a=n||r||i||o,s=a?Xe(t.length,At):[],l=s.length;for(var u in t)!e&&!Ot.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||mo(u,l))||s.push(u);return s}function Kn(t){var e=t.length;return e?t[Yr(0,e-1)]:n}function $n(t,e){return Oo(Ti(t),ar(e,0,t.length))}function Qn(t){return Oo(Ti(t))}function Jn(t,e,r){(r!==n&&!Va(t[e],r)||r===n&&!(e in t))&&ir(t,e,r)}function tr(t,e,r){var i=t[e];Ot.call(t,e)&&Va(i,r)&&(r!==n||e in t)||ir(t,e,r)}function er(t,e){for(var n=t.length;n--;)if(Va(t[n][0],e))return n;return-1}function nr(t,e,n,r){return hr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function rr(t,e){return t&&ki(e,Ls(e),t)}function ir(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function or(t,e){for(var r=-1,i=e.length,o=it(i),a=null==t;++r<i;)o[r]=a?n:Is(t,e[r]);return o}function ar(t,e,r){return t==t&&(r!==n&&(t=t<=r?t:r),e!==n&&(t=t>=e?t:e)),t}function sr(t,e,r,i,o,a){var s,l=1&e,u=2&e,c=4&e;if(r&&(s=o?r(t,i,o,a):r(t)),s!==n)return s;if(!Ja(t))return t;var h=Wa(t);if(h){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Ot.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!l)return Ti(t,s)}else{var d=fo(t),p=d==x||d==b;if(Ya(t))return wi(t,l);if(d==M||d==g||p&&!o){if(s=u||p?{}:yo(t),!l)return u?function(t,e){return ki(t,po(t),e)}(t,function(t,e){return t&&ki(e,Ds(e),t)}(s,t)):function(t,e){return ki(t,ho(t),e)}(t,rr(s,t))}else{if(!ae[d])return o?t:{};s=function(t,e,n){var r,i=t.constructor;switch(e){case D:return Si(t);case v:case m:return new i(+t);case P:return function(t,e){var n=e?Si(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case R:case O:case E:case N:case z:case B:case V:case F:case G:return Mi(t,n);case w:return new i;case S:case T:return new i(t);case C:return function(t){var e=new t.constructor(t.source,dt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case A:return new i;case k:return r=t,zn?It(zn.call(r)):{}}}(t,d,l)}}a||(a=new Xn);var f=a.get(t);if(f)return f;a.set(t,s),os(t)?t.forEach((function(n){s.add(sr(n,e,r,n,t,a))})):es(t)&&t.forEach((function(n,i){s.set(i,sr(n,e,r,i,t,a))}));var y=h?n:(c?u?ro:no:u?Ds:Ls)(t);return Ce(y||t,(function(n,i){y&&(n=t[i=n]),tr(s,i,sr(n,e,r,i,t,a))})),s}function lr(t,e,r){var i=r.length;if(null==t)return!i;for(t=It(t);i--;){var o=r[i],a=e[o],s=t[o];if(s===n&&!(o in t)||!a(s))return!1}return!0}function ur(t,e,i){if("function"!=typeof t)throw new Tt(r);return Lo((function(){t.apply(n,i)}),e)}function cr(t,e,n,r){var i=-1,o=Le,a=!0,s=t.length,l=[],u=e.length;if(!s)return l;n&&(e=Pe(e,Ke(n))),r?(o=De,a=!1):e.length>=200&&(o=Qe,a=!1,e=new Yn(e));t:for(;++i<s;){var c=t[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,a&&h==h){for(var d=u;d--;)if(e[d]===h)continue t;l.push(c)}else o(e,h,r)||l.push(c)}return l}Vn.templateSettings={escape:q,evaluate:K,interpolate:$,variable:"",imports:{_:Vn}},Vn.prototype=Gn.prototype,Vn.prototype.constructor=Vn,jn.prototype=Fn(Gn.prototype),jn.prototype.constructor=jn,Wn.prototype=Fn(Gn.prototype),Wn.prototype.constructor=Wn,Hn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Hn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Hn.prototype.get=function(t){var e=this.__data__;if(Tn){var r=e[t];return r===i?n:r}return Ot.call(e,t)?e[t]:n},Hn.prototype.has=function(t){var e=this.__data__;return Tn?e[t]!==n:Ot.call(e,t)},Hn.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Tn&&e===n?i:e,this},Un.prototype.clear=function(){this.__data__=[],this.size=0},Un.prototype.delete=function(t){var e=this.__data__,n=er(e,t);return!(n<0||(n==e.length-1?e.pop():Xt.call(e,n,1),--this.size,0))},Un.prototype.get=function(t){var e=this.__data__,r=er(e,t);return r<0?n:e[r][1]},Un.prototype.has=function(t){return er(this.__data__,t)>-1},Un.prototype.set=function(t,e){var n=this.__data__,r=er(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Mn||Un),string:new Hn}},Zn.prototype.delete=function(t){var e=lo(this,t).delete(t);return this.size-=e?1:0,e},Zn.prototype.get=function(t){return lo(this,t).get(t)},Zn.prototype.has=function(t){return lo(this,t).has(t)},Zn.prototype.set=function(t,e){var n=lo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(t){return this.__data__.set(t,i),this},Yn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.clear=function(){this.__data__=new Un,this.size=0},Xn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Xn.prototype.get=function(t){return this.__data__.get(t)},Xn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Un){var r=n.__data__;if(!Mn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zn(r)}return n.set(t,e),this.size=n.size,this};var hr=Pi(_r),dr=Pi(xr,!0);function pr(t,e){var n=!0;return hr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function fr(t,e,r){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=e(a);if(null!=s&&(l===n?s==s&&!ss(s):r(s,l)))var l=s,u=a}return u}function gr(t,e){var n=[];return hr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function yr(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=vo),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?yr(s,e-1,n,r,i):Re(i,s):r||(i[i.length]=s)}return i}var vr=Ri(),mr=Ri(!0);function _r(t,e){return t&&vr(t,e,Ls)}function xr(t,e){return t&&mr(t,e,Ls)}function br(t,e){return ke(e,(function(e){return Ka(t[e])}))}function wr(t,e){for(var r=0,i=(e=mi(e,t)).length;null!=t&&r<i;)t=t[No(e[r++])];return r&&r==i?t:n}function Sr(t,e,n){var r=e(t);return Wa(t)?r:Re(r,n(t))}function Mr(t){return null==t?t===n?"[object Undefined]":"[object Null]":Jt&&Jt in It(t)?function(t){var e=Ot.call(t,Jt),r=t[Jt];try{t[Jt]=n;var i=!0}catch(t){}var o=zt.call(t);return i&&(e?t[Jt]=r:delete t[Jt]),o}(t):function(t){return zt.call(t)}(t)}function Ir(t,e){return t>e}function Cr(t,e){return null!=t&&Ot.call(t,e)}function Ar(t,e){return null!=t&&e in It(t)}function Tr(t,e,r){for(var i=r?De:Le,o=t[0].length,a=t.length,s=a,l=it(a),u=1/0,c=[];s--;){var h=t[s];s&&e&&(h=Pe(h,Ke(e))),u=mn(h.length,u),l[s]=!r&&(e||o>=120&&h.length>=120)?new Yn(s&&h):n}h=t[0];var d=-1,p=l[0];t:for(;++d<o&&c.length<u;){var f=h[d],g=e?e(f):f;if(f=r||0!==f?f:0,!(p?Qe(p,g):i(c,g,r))){for(s=a;--s;){var y=l[s];if(!(y?Qe(y,g):i(t[s],g,r)))continue t}p&&p.push(g),c.push(f)}}return c}function kr(t,e,r){var i=null==(t=Ao(t,e=mi(e,t)))?t:t[No(qo(e))];return null==i?n:Me(i,t,r)}function Lr(t){return ts(t)&&Mr(t)==g}function Dr(t,e,r,i,o){return t===e||(null==t||null==e||!ts(t)&&!ts(e)?t!=t&&e!=e:function(t,e,r,i,o,a){var s=Wa(t),l=Wa(e),u=s?y:fo(t),c=l?y:fo(e),h=(u=u==g?M:u)==M,d=(c=c==g?M:c)==M,p=u==c;if(p&&Ya(t)){if(!Ya(e))return!1;s=!0,h=!1}if(p&&!h)return a||(a=new Xn),s||ls(t)?to(t,e,r,i,o,a):function(t,e,n,r,i,o,a){switch(n){case P:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case D:return!(t.byteLength!=e.byteLength||!o(new Wt(t),new Wt(e)));case v:case m:case S:return Va(+t,+e);case _:return t.name==e.name&&t.message==e.message;case C:case T:return t==e+"";case w:var s=an;case A:var l=1&r;if(s||(s=un),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=2,a.set(t,e);var c=to(s(t),s(e),r,i,o,a);return a.delete(t),c;case k:if(zn)return zn.call(t)==zn.call(e)}return!1}(t,e,u,r,i,o,a);if(!(1&r)){var f=h&&Ot.call(t,"__wrapped__"),x=d&&Ot.call(e,"__wrapped__");if(f||x){var b=f?t.value():t,I=x?e.value():e;return a||(a=new Xn),o(b,I,r,i,a)}}return!!p&&(a||(a=new Xn),function(t,e,r,i,o,a){var s=1&r,l=no(t),u=l.length,c=no(e),h=c.length;if(u!=h&&!s)return!1;for(var d=u;d--;){var p=l[d];if(!(s?p in e:Ot.call(e,p)))return!1}var f=a.get(t),g=a.get(e);if(f&&g)return f==e&&g==t;var y=!0;a.set(t,e),a.set(e,t);for(var v=s;++d<u;){var m=t[p=l[d]],_=e[p];if(i)var x=s?i(_,m,p,e,t,a):i(m,_,p,t,e,a);if(!(x===n?m===_||o(m,_,r,i,a):x)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(y=!1)}return a.delete(t),a.delete(e),y}(t,e,r,i,o,a))}(t,e,r,i,Dr,o))}function Pr(t,e,r,i){var o=r.length,a=o,s=!i;if(null==t)return!a;for(t=It(t);o--;){var l=r[o];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<a;){var u=(l=r[o])[0],c=t[u],h=l[1];if(s&&l[2]){if(c===n&&!(u in t))return!1}else{var d=new Xn;if(i)var p=i(c,h,u,t,e,d);if(!(p===n?Dr(h,c,3,i,d):p))return!1}}return!0}function Rr(t){return!(!Ja(t)||(e=t,Nt&&Nt in e))&&(Ka(t)?Ft:gt).test(zo(t));var e}function Or(t){return"function"==typeof t?t:null==t?nl:"object"==typeof t?Wa(t)?Fr(t[0],t[1]):Vr(t):hl(t)}function Er(t){if(!So(t))return yn(t);var e=[];for(var n in It(t))Ot.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Nr(t){if(!Ja(t))return function(t){var e=[];if(null!=t)for(var n in It(t))e.push(n);return e}(t);var e=So(t),n=[];for(var r in t)("constructor"!=r||!e&&Ot.call(t,r))&&n.push(r);return n}function zr(t,e){return t<e}function Br(t,e){var n=-1,r=Ua(t)?it(t.length):[];return hr(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}function Vr(t){var e=uo(t);return 1==e.length&&e[0][2]?Io(e[0][0],e[0][1]):function(n){return n===t||Pr(n,t,e)}}function Fr(t,e){return xo(t)&&Mo(e)?Io(No(t),e):function(r){var i=Is(r,t);return i===n&&i===e?Cs(r,t):Dr(e,i,3)}}function Gr(t,e,r,i,o){t!==e&&vr(e,(function(a,s){if(o||(o=new Xn),Ja(a))!function(t,e,r,i,o,a,s){var l=To(t,r),u=To(e,r),c=s.get(u);if(c)Jn(t,r,c);else{var h=a?a(l,u,r+"",t,e,s):n,d=h===n;if(d){var p=Wa(u),f=!p&&Ya(u),g=!p&&!f&&ls(u);h=u,p||f||g?Wa(l)?h=l:Za(l)?h=Ti(l):f?(d=!1,h=wi(u,!0)):g?(d=!1,h=Mi(u,!0)):h=[]:rs(u)||ja(u)?(h=l,ja(l)?h=ys(l):Ja(l)&&!Ka(l)||(h=yo(u))):d=!1}d&&(s.set(u,h),o(h,u,i,a,s),s.delete(u)),Jn(t,r,h)}}(t,e,s,r,Gr,i,o);else{var l=i?i(To(t,s),a,s+"",t,e,o):n;l===n&&(l=a),Jn(t,s,l)}}),Ds)}function jr(t,e){var r=t.length;if(r)return mo(e+=e<0?r:0,r)?t[e]:n}function Wr(t,e,n){e=e.length?Pe(e,(function(t){return Wa(t)?function(e){return wr(e,1===t.length?t[0]:t)}:t})):[nl];var r=-1;e=Pe(e,Ke(so()));var i=Br(t,(function(t,n,i){var o=Pe(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(i,(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var l=Ii(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Hr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=wr(t,a);n(s,a)&&Qr(o,mi(a,t),s)}return o}function Ur(t,e,n,r){var i=r?Ge:Fe,o=-1,a=e.length,s=t;for(t===e&&(e=Ti(e)),n&&(s=Pe(t,Ke(n)));++o<a;)for(var l=0,u=e[o],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==t&&Xt.call(s,l,1),Xt.call(t,l,1);return t}function Zr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;mo(i)?Xt.call(t,i,1):ci(t,i)}}return t}function Yr(t,e){return t+fe(bn()*(e-t+1))}function Xr(t,e){var n="";if(!t||e<1||e>c)return n;do{e%2&&(n+=t),(e=fe(e/2))&&(t+=t)}while(e);return n}function qr(t,e){return Do(Co(t,e,nl),t+"")}function Kr(t){return Kn(Vs(t))}function $r(t,e){var n=Vs(t);return Oo(n,ar(e,0,n.length))}function Qr(t,e,r,i){if(!Ja(t))return t;for(var o=-1,a=(e=mi(e,t)).length,s=a-1,l=t;null!=l&&++o<a;){var u=No(e[o]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(o!=s){var h=l[u];(c=i?i(h,u,l):n)===n&&(c=Ja(h)?h:mo(e[o+1])?[]:{})}tr(l,u,c),l=l[u]}return t}var Jr=kn?function(t,e){return kn.set(t,e),t}:nl,ti=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:Js(e),writable:!0})}:nl;function ei(t){return Oo(Vs(t))}function ni(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=it(i);++r<i;)o[r]=t[r+e];return o}function ri(t,e){var n;return hr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function ii(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!ss(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return oi(t,e,nl,n)}function oi(t,e,r,i){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(e=r(e))!=e,l=null===e,u=ss(e),c=e===n;o<a;){var h=fe((o+a)/2),d=r(t[h]),p=d!==n,f=null===d,g=d==d,y=ss(d);if(s)var v=i||g;else v=c?g&&(i||p):l?g&&p&&(i||!f):u?g&&p&&!f&&(i||!y):!f&&!y&&(i?d<=e:d<e);v?o=h+1:a=h}return mn(a,4294967294)}function ai(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Va(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function si(t){return"number"==typeof t?t:ss(t)?d:+t}function li(t){if("string"==typeof t)return t;if(Wa(t))return Pe(t,li)+"";if(ss(t))return Bn?Bn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ui(t,e,n){var r=-1,i=Le,o=t.length,a=!0,s=[],l=s;if(n)a=!1,i=De;else if(o>=200){var u=e?null:Xi(t);if(u)return un(u);a=!1,i=Qe,l=new Yn}else l=e?[]:s;t:for(;++r<o;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,a&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue t;e&&l.push(h),s.push(c)}else i(l,h,n)||(l!==s&&l.push(h),s.push(c))}return s}function ci(t,e){return null==(t=Ao(t,e=mi(e,t)))||delete t[No(qo(e))]}function hi(t,e,n,r){return Qr(t,e,n(wr(t,e)),r)}function di(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ni(t,r?0:o,r?o+1:i):ni(t,r?o+1:0,r?i:o)}function pi(t,e){var n=t;return n instanceof Wn&&(n=n.value()),Oe(e,(function(t,e){return e.func.apply(e.thisArg,Re([t],e.args))}),n)}function fi(t,e,n){var r=t.length;if(r<2)return r?ui(t[0]):[];for(var i=-1,o=it(r);++i<r;)for(var a=t[i],s=-1;++s<r;)s!=i&&(o[i]=cr(o[i]||a,t[s],e,n));return ui(yr(o,1),e,n)}function gi(t,e,r){for(var i=-1,o=t.length,a=e.length,s={};++i<o;){var l=i<a?e[i]:n;r(s,t[i],l)}return s}function yi(t){return Za(t)?t:[]}function vi(t){return"function"==typeof t?t:nl}function mi(t,e){return Wa(t)?t:xo(t,e)?[t]:Eo(vs(t))}var _i=qr;function xi(t,e,r){var i=t.length;return r=r===n?i:r,!e&&r>=i?t:ni(t,e,r)}var bi=se||function(t){return de.clearTimeout(t)};function wi(t,e){if(e)return t.slice();var n=t.length,r=Ht?Ht(n):new t.constructor(n);return t.copy(r),r}function Si(t){var e=new t.constructor(t.byteLength);return new Wt(e).set(new Wt(t)),e}function Mi(t,e){var n=e?Si(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ii(t,e){if(t!==e){var r=t!==n,i=null===t,o=t==t,a=ss(t),s=e!==n,l=null===e,u=e==e,c=ss(e);if(!l&&!c&&!a&&t>e||a&&s&&u&&!l&&!c||i&&s&&u||!r&&u||!o)return 1;if(!i&&!a&&!c&&t<e||c&&r&&o&&!i&&!a||l&&r&&o||!s&&o||!u)return-1}return 0}function Ci(t,e,n,r){for(var i=-1,o=t.length,a=n.length,s=-1,l=e.length,u=vn(o-a,0),c=it(l+u),h=!r;++s<l;)c[s]=e[s];for(;++i<a;)(h||i<o)&&(c[n[i]]=t[i]);for(;u--;)c[s++]=t[i++];return c}function Ai(t,e,n,r){for(var i=-1,o=t.length,a=-1,s=n.length,l=-1,u=e.length,c=vn(o-s,0),h=it(c+u),d=!r;++i<c;)h[i]=t[i];for(var p=i;++l<u;)h[p+l]=e[l];for(;++a<s;)(d||i<o)&&(h[p+n[a]]=t[i++]);return h}function Ti(t,e){var n=-1,r=t.length;for(e||(e=it(r));++n<r;)e[n]=t[n];return e}function ki(t,e,r,i){var o=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var l=e[a],u=i?i(r[l],t[l],l,r,t):n;u===n&&(u=t[l]),o?ir(r,l,u):tr(r,l,u)}return r}function Li(t,e){return function(n,r){var i=Wa(n)?Ie:nr,o=e?e():{};return i(n,t,so(r,2),o)}}function Di(t){return qr((function(e,r){var i=-1,o=r.length,a=o>1?r[o-1]:n,s=o>2?r[2]:n;for(a=t.length>3&&"function"==typeof a?(o--,a):n,s&&_o(r[0],r[1],s)&&(a=o<3?n:a,o=1),e=It(e);++i<o;){var l=r[i];l&&t(e,l,i,a)}return e}))}function Pi(t,e){return function(n,r){if(null==n)return n;if(!Ua(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=It(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ri(t){return function(e,n,r){for(var i=-1,o=It(e),a=r(e),s=a.length;s--;){var l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}function Oi(t){return function(e){var r=on(e=vs(e))?dn(e):n,i=r?r[0]:e.charAt(0),o=r?xi(r,1).join(""):e.slice(1);return i[t]()+o}}function Ei(t){return function(e){return Oe(Ks(js(e).replace($t,"")),t,"")}}function Ni(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Fn(t.prototype),r=t.apply(n,e);return Ja(r)?r:n}}function zi(t){return function(e,r,i){var o=It(e);if(!Ua(e)){var a=so(r,3);e=Ls(e),r=function(t){return a(o[t],t,o)}}var s=t(e,r,i);return s>-1?o[a?e[s]:s]:n}}function Bi(t){return eo((function(e){var i=e.length,o=i,a=jn.prototype.thru;for(t&&e.reverse();o--;){var s=e[o];if("function"!=typeof s)throw new Tt(r);if(a&&!l&&"wrapper"==oo(s))var l=new jn([],!0)}for(o=l?o:i;++o<i;){var u=oo(s=e[o]),c="wrapper"==u?io(s):n;l=c&&bo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[oo(c[0])].apply(l,c[3]):1==s.length&&bo(s)?l[u]():l.thru(s)}return function(){var t=arguments,n=t[0];if(l&&1==t.length&&Wa(n))return l.plant(n).value();for(var r=0,o=i?e[r].apply(this,t):n;++r<i;)o=e[r].call(this,o);return o}}))}function Vi(t,e,r,i,o,a,l,u,c,h){var d=e&s,p=1&e,f=2&e,g=24&e,y=512&e,v=f?n:Ni(t);return function s(){for(var m=arguments.length,_=it(m),x=m;x--;)_[x]=arguments[x];if(g)var b=ao(s),w=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(_,b);if(i&&(_=Ci(_,i,o,g)),a&&(_=Ai(_,a,l,g)),m-=w,g&&m<h){var S=ln(_,b);return Zi(t,e,Vi,s.placeholder,r,_,S,u,c,h-m)}var M=p?r:this,I=f?M[t]:t;return m=_.length,u?_=function(t,e){for(var r=t.length,i=mn(e.length,r),o=Ti(t);i--;){var a=e[i];t[i]=mo(a,r)?o[a]:n}return t}(_,u):y&&m>1&&_.reverse(),d&&c<m&&(_.length=c),this&&this!==de&&this instanceof s&&(I=v||Ni(I)),I.apply(M,_)}}function Fi(t,e){return function(n,r){return function(t,e,n,r){return _r(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Gi(t,e){return function(r,i){var o;if(r===n&&i===n)return e;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=li(r),i=li(i)):(r=si(r),i=si(i)),o=t(r,i)}return o}}function ji(t){return eo((function(e){return e=Pe(e,Ke(so())),qr((function(n){var r=this;return t(e,(function(t){return Me(t,r,n)}))}))}))}function Wi(t,e){var r=(e=e===n?" ":li(e)).length;if(r<2)return r?Xr(e,t):e;var i=Xr(e,pe(t/hn(e)));return on(e)?xi(dn(i),0,t).join(""):i.slice(0,t)}function Hi(t){return function(e,r,i){return i&&"number"!=typeof i&&_o(e,r,i)&&(r=i=n),e=ds(e),r===n?(r=e,e=0):r=ds(r),function(t,e,n,r){for(var i=-1,o=vn(pe((e-t)/(n||1)),0),a=it(o);o--;)a[r?o:++i]=t,t+=n;return a}(e,r,i=i===n?e<r?1:-1:ds(i),t)}}function Ui(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=gs(e),n=gs(n)),t(e,n)}}function Zi(t,e,r,i,o,s,l,u,c,h){var d=8&e;e|=d?a:64,4&(e&=~(d?64:a))||(e&=-4);var p=[t,e,o,d?s:n,d?l:n,d?n:s,d?n:l,u,c,h],f=r.apply(n,p);return bo(t)&&ko(f,p),f.placeholder=i,Po(f,t,e)}function Yi(t){var e=Mt[t];return function(t,n){if(t=gs(t),(n=null==n?0:mn(ps(n),292))&&ze(t)){var r=(vs(t)+"e").split("e");return+((r=(vs(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Xi=Cn&&1/un(new Cn([,-0]))[1]==u?function(t){return new Cn(t)}:sl;function qi(t){return function(e){var n=fo(e);return n==w?an(e):n==A?cn(e):function(t,e){return Pe(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Ki(t,e,i,u,c,h,d,p){var f=2&e;if(!f&&"function"!=typeof t)throw new Tt(r);var g=u?u.length:0;if(g||(e&=-97,u=c=n),d=d===n?d:vn(ps(d),0),p=p===n?p:ps(p),g-=c?c.length:0,64&e){var y=u,v=c;u=c=n}var m=f?n:io(t),_=[t,e,i,u,c,y,v,h,d,p];if(m&&function(t,e){var n=t[1],r=e[1],i=n|r,a=i<131,u=r==s&&8==n||r==s&&n==l&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!a&&!u)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var c=e[3];if(c){var h=t[3];t[3]=h?Ci(h,c,e[4]):c,t[4]=h?ln(t[3],o):e[4]}(c=e[5])&&(h=t[5],t[5]=h?Ai(h,c,e[6]):c,t[6]=h?ln(t[5],o):e[6]),(c=e[7])&&(t[7]=c),r&s&&(t[8]=null==t[8]?e[8]:mn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(_,m),t=_[0],e=_[1],i=_[2],u=_[3],c=_[4],!(p=_[9]=_[9]===n?f?0:t.length:vn(_[9]-g,0))&&24&e&&(e&=-25),e&&1!=e)x=8==e||16==e?function(t,e,r){var i=Ni(t);return function o(){for(var a=arguments.length,s=it(a),l=a,u=ao(o);l--;)s[l]=arguments[l];var c=a<3&&s[0]!==u&&s[a-1]!==u?[]:ln(s,u);return(a-=c.length)<r?Zi(t,e,Vi,o.placeholder,n,s,c,n,n,r-a):Me(this&&this!==de&&this instanceof o?i:t,this,s)}}(t,e,p):e!=a&&33!=e||c.length?Vi.apply(n,_):function(t,e,n,r){var i=1&e,o=Ni(t);return function e(){for(var a=-1,s=arguments.length,l=-1,u=r.length,c=it(u+s),h=this&&this!==de&&this instanceof e?o:t;++l<u;)c[l]=r[l];for(;s--;)c[l++]=arguments[++a];return Me(h,i?n:this,c)}}(t,e,i,u);else var x=function(t,e,n){var r=1&e,i=Ni(t);return function e(){return(this&&this!==de&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,i);return Po((m?Jr:ko)(x,_),t,e)}function $i(t,e,r,i){return t===n||Va(t,Dt[r])&&!Ot.call(i,r)?e:t}function Qi(t,e,r,i,o,a){return Ja(t)&&Ja(e)&&(a.set(e,t),Gr(t,e,n,Qi,a),a.delete(e)),t}function Ji(t){return rs(t)?n:t}function to(t,e,r,i,o,a){var s=1&r,l=t.length,u=e.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(t),h=a.get(e);if(c&&h)return c==e&&h==t;var d=-1,p=!0,f=2&r?new Yn:n;for(a.set(t,e),a.set(e,t);++d<l;){var g=t[d],y=e[d];if(i)var v=s?i(y,g,d,e,t,a):i(g,y,d,t,e,a);if(v!==n){if(v)continue;p=!1;break}if(f){if(!Ne(e,(function(t,e){if(!Qe(f,e)&&(g===t||o(g,t,r,i,a)))return f.push(e)}))){p=!1;break}}else if(g!==y&&!o(g,y,r,i,a)){p=!1;break}}return a.delete(t),a.delete(e),p}function eo(t){return Do(Co(t,n,Ho),t+"")}function no(t){return Sr(t,Ls,ho)}function ro(t){return Sr(t,Ds,po)}var io=kn?function(t){return kn.get(t)}:sl;function oo(t){for(var e=t.name+"",n=Ln[e],r=Ot.call(Ln,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function ao(t){return(Ot.call(Vn,"placeholder")?Vn:t).placeholder}function so(){var t=Vn.iteratee||rl;return t=t===rl?Or:t,arguments.length?t(arguments[0],arguments[1]):t}function lo(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function uo(t){for(var e=Ls(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Mo(i)]}return e}function co(t,e){var r=function(t,e){return null==t?n:t[e]}(t,e);return Rr(r)?r:n}var ho=ye?function(t){return null==t?[]:(t=It(t),ke(ye(t),(function(e){return Yt.call(t,e)})))}:fl,po=ye?function(t){for(var e=[];t;)Re(e,ho(t)),t=Ut(t);return e}:fl,fo=Mr;function go(t,e,n){for(var r=-1,i=(e=mi(e,t)).length,o=!1;++r<i;){var a=No(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Qa(i)&&mo(a,i)&&(Wa(t)||ja(t))}function yo(t){return"function"!=typeof t.constructor||So(t)?{}:Fn(Ut(t))}function vo(t){return Wa(t)||ja(t)||!!(qt&&t&&t[qt])}function mo(t,e){var n=typeof t;return!!(e=null==e?c:e)&&("number"==n||"symbol"!=n&&vt.test(t))&&t>-1&&t%1==0&&t<e}function _o(t,e,n){if(!Ja(n))return!1;var r=typeof e;return!!("number"==r?Ua(n)&&mo(e,n.length):"string"==r&&e in n)&&Va(n[e],t)}function xo(t,e){if(Wa(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ss(t))||J.test(t)||!Q.test(t)||null!=e&&t in It(e)}function bo(t){var e=oo(t),n=Vn[e];if("function"!=typeof n||!(e in Wn.prototype))return!1;if(t===n)return!0;var r=io(n);return!!r&&t===r[0]}(Sn&&fo(new Sn(new ArrayBuffer(1)))!=P||Mn&&fo(new Mn)!=w||In&&fo(In.resolve())!=I||Cn&&fo(new Cn)!=A||An&&fo(new An)!=L)&&(fo=function(t){var e=Mr(t),r=e==M?t.constructor:n,i=r?zo(r):"";if(i)switch(i){case Dn:return P;case Pn:return w;case Rn:return I;case On:return A;case En:return L}return e});var wo=Pt?Ka:gl;function So(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Dt)}function Mo(t){return t==t&&!Ja(t)}function Io(t,e){return function(r){return null!=r&&r[t]===e&&(e!==n||t in It(r))}}function Co(t,e,r){return e=vn(e===n?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=vn(n.length-e,0),a=it(o);++i<o;)a[i]=n[e+i];i=-1;for(var s=it(e+1);++i<e;)s[i]=n[i];return s[e]=r(a),Me(t,this,s)}}function Ao(t,e){return e.length<2?t:wr(t,ni(e,0,-1))}function To(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var ko=Ro(Jr),Lo=he||function(t,e){return de.setTimeout(t,e)},Do=Ro(ti);function Po(t,e,n){var r=e+"";return Do(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ce(f,(function(n){var r="_."+n[0];e&n[1]&&!Le(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(at);return e?e[1].split(st):[]}(r),n)))}function Ro(t){var e=0,r=0;return function(){var i=_n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(n,arguments)}}function Oo(t,e){var r=-1,i=t.length,o=i-1;for(e=e===n?i:e;++r<e;){var a=Yr(r,o),s=t[a];t[a]=t[r],t[r]=s}return t.length=e,t}var Eo=function(t){var e=Ra(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,n,r,i){e.push(r?i.replace(ct,"$1"):n||t)})),e}));function No(t){if("string"==typeof t||ss(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function zo(t){if(null!=t){try{return Rt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Bo(t){if(t instanceof Wn)return t.clone();var e=new jn(t.__wrapped__,t.__chain__);return e.__actions__=Ti(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Vo=qr((function(t,e){return Za(t)?cr(t,yr(e,1,Za,!0)):[]})),Fo=qr((function(t,e){var r=qo(e);return Za(r)&&(r=n),Za(t)?cr(t,yr(e,1,Za,!0),so(r,2)):[]})),Go=qr((function(t,e){var r=qo(e);return Za(r)&&(r=n),Za(t)?cr(t,yr(e,1,Za,!0),n,r):[]}));function jo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=vn(r+i,0)),Ve(t,so(e,3),i)}function Wo(t,e,r){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return r!==n&&(o=ps(r),o=r<0?vn(i+o,0):mn(o,i-1)),Ve(t,so(e,3),o,!0)}function Ho(t){return null!=t&&t.length?yr(t,1):[]}function Uo(t){return t&&t.length?t[0]:n}var Zo=qr((function(t){var e=Pe(t,yi);return e.length&&e[0]===t[0]?Tr(e):[]})),Yo=qr((function(t){var e=qo(t),r=Pe(t,yi);return e===qo(r)?e=n:r.pop(),r.length&&r[0]===t[0]?Tr(r,so(e,2)):[]})),Xo=qr((function(t){var e=qo(t),r=Pe(t,yi);return(e="function"==typeof e?e:n)&&r.pop(),r.length&&r[0]===t[0]?Tr(r,n,e):[]}));function qo(t){var e=null==t?0:t.length;return e?t[e-1]:n}var Ko=qr($o);function $o(t,e){return t&&t.length&&e&&e.length?Ur(t,e):t}var Qo=eo((function(t,e){var n=null==t?0:t.length,r=or(t,e);return Zr(t,Pe(e,(function(t){return mo(t,n)?+t:t})).sort(Ii)),r}));function Jo(t){return null==t?t:wn.call(t)}var ta=qr((function(t){return ui(yr(t,1,Za,!0))})),ea=qr((function(t){var e=qo(t);return Za(e)&&(e=n),ui(yr(t,1,Za,!0),so(e,2))})),na=qr((function(t){var e=qo(t);return e="function"==typeof e?e:n,ui(yr(t,1,Za,!0),n,e)}));function ra(t){if(!t||!t.length)return[];var e=0;return t=ke(t,(function(t){if(Za(t))return e=vn(t.length,e),!0})),Xe(e,(function(e){return Pe(t,He(e))}))}function ia(t,e){if(!t||!t.length)return[];var r=ra(t);return null==e?r:Pe(r,(function(t){return Me(e,n,t)}))}var oa=qr((function(t,e){return Za(t)?cr(t,e):[]})),aa=qr((function(t){return fi(ke(t,Za))})),sa=qr((function(t){var e=qo(t);return Za(e)&&(e=n),fi(ke(t,Za),so(e,2))})),la=qr((function(t){var e=qo(t);return e="function"==typeof e?e:n,fi(ke(t,Za),n,e)})),ua=qr(ra),ca=qr((function(t){var e=t.length,r=e>1?t[e-1]:n;return r="function"==typeof r?(t.pop(),r):n,ia(t,r)}));function ha(t){var e=Vn(t);return e.__chain__=!0,e}function da(t,e){return e(t)}var pa=eo((function(t){var e=t.length,r=e?t[0]:0,i=this.__wrapped__,o=function(e){return or(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Wn&&mo(r)?((i=i.slice(r,+r+(e?1:0))).__actions__.push({func:da,args:[o],thisArg:n}),new jn(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(n),t}))):this.thru(o)})),fa=Li((function(t,e,n){Ot.call(t,n)?++t[n]:ir(t,n,1)})),ga=zi(jo),ya=zi(Wo);function va(t,e){return(Wa(t)?Ce:hr)(t,so(e,3))}function ma(t,e){return(Wa(t)?Ae:dr)(t,so(e,3))}var _a=Li((function(t,e,n){Ot.call(t,n)?t[n].push(e):ir(t,n,[e])})),xa=qr((function(t,e,n){var r=-1,i="function"==typeof e,o=Ua(t)?it(t.length):[];return hr(t,(function(t){o[++r]=i?Me(e,t,n):kr(t,e,n)})),o})),ba=Li((function(t,e,n){ir(t,n,e)}));function wa(t,e){return(Wa(t)?Pe:Br)(t,so(e,3))}var Sa=Li((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),Ma=qr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&_o(t,e[0],e[1])?e=[]:n>2&&_o(e[0],e[1],e[2])&&(e=[e[0]]),Wr(t,yr(e,1),[])})),Ia=ce||function(){return de.Date.now()};function Ca(t,e,r){return e=r?n:e,e=t&&null==e?t.length:e,Ki(t,s,n,n,n,n,e)}function Aa(t,e){var i;if("function"!=typeof e)throw new Tt(r);return t=ps(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=n),i}}var Ta=qr((function(t,e,n){var r=1;if(n.length){var i=ln(n,ao(Ta));r|=a}return Ki(t,r,e,n,i)})),ka=qr((function(t,e,n){var r=3;if(n.length){var i=ln(n,ao(ka));r|=a}return Ki(e,r,t,n,i)}));function La(t,e,i){var o,a,s,l,u,c,h=0,d=!1,p=!1,f=!0;if("function"!=typeof t)throw new Tt(r);function g(e){var r=o,i=a;return o=a=n,h=e,l=t.apply(i,r)}function y(t){var r=t-c;return c===n||r>=e||r<0||p&&t-h>=s}function v(){var t=Ia();if(y(t))return m(t);u=Lo(v,function(t){var n=e-(t-c);return p?mn(n,s-(t-h)):n}(t))}function m(t){return u=n,f&&o?g(t):(o=a=n,l)}function _(){var t=Ia(),r=y(t);if(o=arguments,a=this,c=t,r){if(u===n)return function(t){return h=t,u=Lo(v,e),d?g(t):l}(c);if(p)return bi(u),u=Lo(v,e),g(c)}return u===n&&(u=Lo(v,e)),l}return e=gs(e)||0,Ja(i)&&(d=!!i.leading,s=(p="maxWait"in i)?vn(gs(i.maxWait)||0,e):s,f="trailing"in i?!!i.trailing:f),_.cancel=function(){u!==n&&bi(u),h=0,o=c=a=u=n},_.flush=function(){return u===n?l:m(Ia())},_}var Da=qr((function(t,e){return ur(t,1,e)})),Pa=qr((function(t,e,n){return ur(t,gs(e)||0,n)}));function Ra(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Tt(r);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ra.Cache||Zn),n}function Oa(t){if("function"!=typeof t)throw new Tt(r);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ra.Cache=Zn;var Ea=_i((function(t,e){var n=(e=1==e.length&&Wa(e[0])?Pe(e[0],Ke(so())):Pe(yr(e,1),Ke(so()))).length;return qr((function(r){for(var i=-1,o=mn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Me(t,this,r)}))})),Na=qr((function(t,e){var r=ln(e,ao(Na));return Ki(t,a,n,e,r)})),za=qr((function(t,e){var r=ln(e,ao(za));return Ki(t,64,n,e,r)})),Ba=eo((function(t,e){return Ki(t,l,n,n,n,e)}));function Va(t,e){return t===e||t!=t&&e!=e}var Fa=Ui(Ir),Ga=Ui((function(t,e){return t>=e})),ja=Lr(function(){return arguments}())?Lr:function(t){return ts(t)&&Ot.call(t,"callee")&&!Yt.call(t,"callee")},Wa=it.isArray,Ha=me?Ke(me):function(t){return ts(t)&&Mr(t)==D};function Ua(t){return null!=t&&Qa(t.length)&&!Ka(t)}function Za(t){return ts(t)&&Ua(t)}var Ya=ve||gl,Xa=_e?Ke(_e):function(t){return ts(t)&&Mr(t)==m};function qa(t){if(!ts(t))return!1;var e=Mr(t);return e==_||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!rs(t)}function Ka(t){if(!Ja(t))return!1;var e=Mr(t);return e==x||e==b||"[object AsyncFunction]"==e||"[object Proxy]"==e}function $a(t){return"number"==typeof t&&t==ps(t)}function Qa(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Ja(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ts(t){return null!=t&&"object"==typeof t}var es=xe?Ke(xe):function(t){return ts(t)&&fo(t)==w};function ns(t){return"number"==typeof t||ts(t)&&Mr(t)==S}function rs(t){if(!ts(t)||Mr(t)!=M)return!1;var e=Ut(t);if(null===e)return!0;var n=Ot.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Rt.call(n)==Bt}var is=be?Ke(be):function(t){return ts(t)&&Mr(t)==C},os=we?Ke(we):function(t){return ts(t)&&fo(t)==A};function as(t){return"string"==typeof t||!Wa(t)&&ts(t)&&Mr(t)==T}function ss(t){return"symbol"==typeof t||ts(t)&&Mr(t)==k}var ls=Se?Ke(Se):function(t){return ts(t)&&Qa(t.length)&&!!oe[Mr(t)]},us=Ui(zr),cs=Ui((function(t,e){return t<=e}));function hs(t){if(!t)return[];if(Ua(t))return as(t)?dn(t):Ti(t);if(Kt&&t[Kt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Kt]());var e=fo(t);return(e==w?an:e==A?un:Vs)(t)}function ds(t){return t?(t=gs(t))===u||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ps(t){var e=ds(t),n=e%1;return e==e?n?e-n:e:0}function fs(t){return t?ar(ps(t),0,p):0}function gs(t){if("number"==typeof t)return t;if(ss(t))return d;if(Ja(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ja(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=qe(t);var n=ft.test(t);return n||yt.test(t)?ue(t.slice(2),n?2:8):pt.test(t)?d:+t}function ys(t){return ki(t,Ds(t))}function vs(t){return null==t?"":li(t)}var ms=Di((function(t,e){if(So(e)||Ua(e))ki(e,Ls(e),t);else for(var n in e)Ot.call(e,n)&&tr(t,n,e[n])})),_s=Di((function(t,e){ki(e,Ds(e),t)})),xs=Di((function(t,e,n,r){ki(e,Ds(e),t,r)})),bs=Di((function(t,e,n,r){ki(e,Ls(e),t,r)})),ws=eo(or),Ss=qr((function(t,e){t=It(t);var r=-1,i=e.length,o=i>2?e[2]:n;for(o&&_o(e[0],e[1],o)&&(i=1);++r<i;)for(var a=e[r],s=Ds(a),l=-1,u=s.length;++l<u;){var c=s[l],h=t[c];(h===n||Va(h,Dt[c])&&!Ot.call(t,c))&&(t[c]=a[c])}return t})),Ms=qr((function(t){return t.push(n,Qi),Me(Rs,n,t)}));function Is(t,e,r){var i=null==t?n:wr(t,e);return i===n?r:i}function Cs(t,e){return null!=t&&go(t,e,Ar)}var As=Fi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=zt.call(e)),t[e]=n}),Js(nl)),Ts=Fi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=zt.call(e)),Ot.call(t,e)?t[e].push(n):t[e]=[n]}),so),ks=qr(kr);function Ls(t){return Ua(t)?qn(t):Er(t)}function Ds(t){return Ua(t)?qn(t,!0):Nr(t)}var Ps=Di((function(t,e,n){Gr(t,e,n)})),Rs=Di((function(t,e,n,r){Gr(t,e,n,r)})),Os=eo((function(t,e){var n={};if(null==t)return n;var r=!1;e=Pe(e,(function(e){return e=mi(e,t),r||(r=e.length>1),e})),ki(t,ro(t),n),r&&(n=sr(n,7,Ji));for(var i=e.length;i--;)ci(n,e[i]);return n})),Es=eo((function(t,e){return null==t?{}:function(t,e){return Hr(t,e,(function(e,n){return Cs(t,n)}))}(t,e)}));function Ns(t,e){if(null==t)return{};var n=Pe(ro(t),(function(t){return[t]}));return e=so(e),Hr(t,n,(function(t,n){return e(t,n[0])}))}var zs=qi(Ls),Bs=qi(Ds);function Vs(t){return null==t?[]:$e(t,Ls(t))}var Fs=Ei((function(t,e,n){return e=e.toLowerCase(),t+(n?Gs(e):e)}));function Gs(t){return qs(vs(t).toLowerCase())}function js(t){return(t=vs(t))&&t.replace(mt,en).replace(Qt,"")}var Ws=Ei((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Hs=Ei((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Us=Oi("toLowerCase"),Zs=Ei((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Ys=Ei((function(t,e,n){return t+(n?" ":"")+qs(e)})),Xs=Ei((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),qs=Oi("toUpperCase");function Ks(t,e,r){return t=vs(t),(e=r?n:e)===n?function(t){return ne.test(t)}(t)?function(t){return t.match(te)||[]}(t):function(t){return t.match(lt)||[]}(t):t.match(e)||[]}var $s=qr((function(t,e){try{return Me(t,n,e)}catch(t){return qa(t)?t:new wt(t)}})),Qs=eo((function(t,e){return Ce(e,(function(e){e=No(e),ir(t,e,Ta(t[e],t))})),t}));function Js(t){return function(){return t}}var tl=Bi(),el=Bi(!0);function nl(t){return t}function rl(t){return Or("function"==typeof t?t:sr(t,1))}var il=qr((function(t,e){return function(n){return kr(n,t,e)}})),ol=qr((function(t,e){return function(n){return kr(t,n,e)}}));function al(t,e,n){var r=Ls(e),i=br(e,r);null!=n||Ja(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=br(e,Ls(e)));var o=!(Ja(n)&&"chain"in n&&!n.chain),a=Ka(t);return Ce(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Ti(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Re([this.value()],arguments))})})),t}function sl(){}var ll=ji(Pe),ul=ji(Te),cl=ji(Ne);function hl(t){return xo(t)?He(No(t)):function(t){return function(e){return wr(e,t)}}(t)}var dl=Hi(),pl=Hi(!0);function fl(){return[]}function gl(){return!1}var yl,vl=Gi((function(t,e){return t+e}),0),ml=Yi("ceil"),_l=Gi((function(t,e){return t/e}),1),xl=Yi("floor"),bl=Gi((function(t,e){return t*e}),1),wl=Yi("round"),Sl=Gi((function(t,e){return t-e}),0);return Vn.after=function(t,e){if("function"!=typeof e)throw new Tt(r);return t=ps(t),function(){if(--t<1)return e.apply(this,arguments)}},Vn.ary=Ca,Vn.assign=ms,Vn.assignIn=_s,Vn.assignInWith=xs,Vn.assignWith=bs,Vn.at=ws,Vn.before=Aa,Vn.bind=Ta,Vn.bindAll=Qs,Vn.bindKey=ka,Vn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Wa(t)?t:[t]},Vn.chain=ha,Vn.chunk=function(t,e,r){e=(r?_o(t,e,r):e===n)?1:vn(ps(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,s=it(pe(i/e));o<i;)s[a++]=ni(t,o,o+=e);return s},Vn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Vn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=it(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Re(Wa(n)?Ti(n):[n],yr(e,1))},Vn.cond=function(t){var e=null==t?0:t.length,n=so();return t=e?Pe(t,(function(t){if("function"!=typeof t[1])throw new Tt(r);return[n(t[0]),t[1]]})):[],qr((function(n){for(var r=-1;++r<e;){var i=t[r];if(Me(i[0],this,n))return Me(i[1],this,n)}}))},Vn.conforms=function(t){return function(t){var e=Ls(t);return function(n){return lr(n,t,e)}}(sr(t,1))},Vn.constant=Js,Vn.countBy=fa,Vn.create=function(t,e){var n=Fn(t);return null==e?n:rr(n,e)},Vn.curry=function t(e,r,i){var o=Ki(e,8,n,n,n,n,n,r=i?n:r);return o.placeholder=t.placeholder,o},Vn.curryRight=function t(e,r,i){var o=Ki(e,16,n,n,n,n,n,r=i?n:r);return o.placeholder=t.placeholder,o},Vn.debounce=La,Vn.defaults=Ss,Vn.defaultsDeep=Ms,Vn.defer=Da,Vn.delay=Pa,Vn.difference=Vo,Vn.differenceBy=Fo,Vn.differenceWith=Go,Vn.drop=function(t,e,r){var i=null==t?0:t.length;return i?ni(t,(e=r||e===n?1:ps(e))<0?0:e,i):[]},Vn.dropRight=function(t,e,r){var i=null==t?0:t.length;return i?ni(t,0,(e=i-(e=r||e===n?1:ps(e)))<0?0:e):[]},Vn.dropRightWhile=function(t,e){return t&&t.length?di(t,so(e,3),!0,!0):[]},Vn.dropWhile=function(t,e){return t&&t.length?di(t,so(e,3),!0):[]},Vn.fill=function(t,e,r,i){var o=null==t?0:t.length;return o?(r&&"number"!=typeof r&&_o(t,e,r)&&(r=0,i=o),function(t,e,r,i){var o=t.length;for((r=ps(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:ps(i))<0&&(i+=o),i=r>i?0:fs(i);r<i;)t[r++]=e;return t}(t,e,r,i)):[]},Vn.filter=function(t,e){return(Wa(t)?ke:gr)(t,so(e,3))},Vn.flatMap=function(t,e){return yr(wa(t,e),1)},Vn.flatMapDeep=function(t,e){return yr(wa(t,e),u)},Vn.flatMapDepth=function(t,e,r){return r=r===n?1:ps(r),yr(wa(t,e),r)},Vn.flatten=Ho,Vn.flattenDeep=function(t){return null!=t&&t.length?yr(t,u):[]},Vn.flattenDepth=function(t,e){return null!=t&&t.length?yr(t,e=e===n?1:ps(e)):[]},Vn.flip=function(t){return Ki(t,512)},Vn.flow=tl,Vn.flowRight=el,Vn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Vn.functions=function(t){return null==t?[]:br(t,Ls(t))},Vn.functionsIn=function(t){return null==t?[]:br(t,Ds(t))},Vn.groupBy=_a,Vn.initial=function(t){return null!=t&&t.length?ni(t,0,-1):[]},Vn.intersection=Zo,Vn.intersectionBy=Yo,Vn.intersectionWith=Xo,Vn.invert=As,Vn.invertBy=Ts,Vn.invokeMap=xa,Vn.iteratee=rl,Vn.keyBy=ba,Vn.keys=Ls,Vn.keysIn=Ds,Vn.map=wa,Vn.mapKeys=function(t,e){var n={};return e=so(e,3),_r(t,(function(t,r,i){ir(n,e(t,r,i),t)})),n},Vn.mapValues=function(t,e){var n={};return e=so(e,3),_r(t,(function(t,r,i){ir(n,r,e(t,r,i))})),n},Vn.matches=function(t){return Vr(sr(t,1))},Vn.matchesProperty=function(t,e){return Fr(t,sr(e,1))},Vn.memoize=Ra,Vn.merge=Ps,Vn.mergeWith=Rs,Vn.method=il,Vn.methodOf=ol,Vn.mixin=al,Vn.negate=Oa,Vn.nthArg=function(t){return t=ps(t),qr((function(e){return jr(e,t)}))},Vn.omit=Os,Vn.omitBy=function(t,e){return Ns(t,Oa(so(e)))},Vn.once=function(t){return Aa(2,t)},Vn.orderBy=function(t,e,r,i){return null==t?[]:(Wa(e)||(e=null==e?[]:[e]),Wa(r=i?n:r)||(r=null==r?[]:[r]),Wr(t,e,r))},Vn.over=ll,Vn.overArgs=Ea,Vn.overEvery=ul,Vn.overSome=cl,Vn.partial=Na,Vn.partialRight=za,Vn.partition=Sa,Vn.pick=Es,Vn.pickBy=Ns,Vn.property=hl,Vn.propertyOf=function(t){return function(e){return null==t?n:wr(t,e)}},Vn.pull=Ko,Vn.pullAll=$o,Vn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,so(n,2)):t},Vn.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?Ur(t,e,n,r):t},Vn.pullAt=Qo,Vn.range=dl,Vn.rangeRight=pl,Vn.rearg=Ba,Vn.reject=function(t,e){return(Wa(t)?ke:gr)(t,Oa(so(e,3)))},Vn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=so(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Zr(t,i),n},Vn.rest=function(t,e){if("function"!=typeof t)throw new Tt(r);return qr(t,e=e===n?e:ps(e))},Vn.reverse=Jo,Vn.sampleSize=function(t,e,r){return e=(r?_o(t,e,r):e===n)?1:ps(e),(Wa(t)?$n:$r)(t,e)},Vn.set=function(t,e,n){return null==t?t:Qr(t,e,n)},Vn.setWith=function(t,e,r,i){return i="function"==typeof i?i:n,null==t?t:Qr(t,e,r,i)},Vn.shuffle=function(t){return(Wa(t)?Qn:ei)(t)},Vn.slice=function(t,e,r){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&_o(t,e,r)?(e=0,r=i):(e=null==e?0:ps(e),r=r===n?i:ps(r)),ni(t,e,r)):[]},Vn.sortBy=Ma,Vn.sortedUniq=function(t){return t&&t.length?ai(t):[]},Vn.sortedUniqBy=function(t,e){return t&&t.length?ai(t,so(e,2)):[]},Vn.split=function(t,e,r){return r&&"number"!=typeof r&&_o(t,e,r)&&(e=r=n),(r=r===n?p:r>>>0)?(t=vs(t))&&("string"==typeof e||null!=e&&!is(e))&&!(e=li(e))&&on(t)?xi(dn(t),0,r):t.split(e,r):[]},Vn.spread=function(t,e){if("function"!=typeof t)throw new Tt(r);return e=null==e?0:vn(ps(e),0),qr((function(n){var r=n[e],i=xi(n,0,e);return r&&Re(i,r),Me(t,this,i)}))},Vn.tail=function(t){var e=null==t?0:t.length;return e?ni(t,1,e):[]},Vn.take=function(t,e,r){return t&&t.length?ni(t,0,(e=r||e===n?1:ps(e))<0?0:e):[]},Vn.takeRight=function(t,e,r){var i=null==t?0:t.length;return i?ni(t,(e=i-(e=r||e===n?1:ps(e)))<0?0:e,i):[]},Vn.takeRightWhile=function(t,e){return t&&t.length?di(t,so(e,3),!1,!0):[]},Vn.takeWhile=function(t,e){return t&&t.length?di(t,so(e,3)):[]},Vn.tap=function(t,e){return e(t),t},Vn.throttle=function(t,e,n){var i=!0,o=!0;if("function"!=typeof t)throw new Tt(r);return Ja(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),La(t,e,{leading:i,maxWait:e,trailing:o})},Vn.thru=da,Vn.toArray=hs,Vn.toPairs=zs,Vn.toPairsIn=Bs,Vn.toPath=function(t){return Wa(t)?Pe(t,No):ss(t)?[t]:Ti(Eo(vs(t)))},Vn.toPlainObject=ys,Vn.transform=function(t,e,n){var r=Wa(t),i=r||Ya(t)||ls(t);if(e=so(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Ja(t)&&Ka(o)?Fn(Ut(t)):{}}return(i?Ce:_r)(t,(function(t,r,i){return e(n,t,r,i)})),n},Vn.unary=function(t){return Ca(t,1)},Vn.union=ta,Vn.unionBy=ea,Vn.unionWith=na,Vn.uniq=function(t){return t&&t.length?ui(t):[]},Vn.uniqBy=function(t,e){return t&&t.length?ui(t,so(e,2)):[]},Vn.uniqWith=function(t,e){return e="function"==typeof e?e:n,t&&t.length?ui(t,n,e):[]},Vn.unset=function(t,e){return null==t||ci(t,e)},Vn.unzip=ra,Vn.unzipWith=ia,Vn.update=function(t,e,n){return null==t?t:hi(t,e,vi(n))},Vn.updateWith=function(t,e,r,i){return i="function"==typeof i?i:n,null==t?t:hi(t,e,vi(r),i)},Vn.values=Vs,Vn.valuesIn=function(t){return null==t?[]:$e(t,Ds(t))},Vn.without=oa,Vn.words=Ks,Vn.wrap=function(t,e){return Na(vi(e),t)},Vn.xor=aa,Vn.xorBy=sa,Vn.xorWith=la,Vn.zip=ua,Vn.zipObject=function(t,e){return gi(t||[],e||[],tr)},Vn.zipObjectDeep=function(t,e){return gi(t||[],e||[],Qr)},Vn.zipWith=ca,Vn.entries=zs,Vn.entriesIn=Bs,Vn.extend=_s,Vn.extendWith=xs,al(Vn,Vn),Vn.add=vl,Vn.attempt=$s,Vn.camelCase=Fs,Vn.capitalize=Gs,Vn.ceil=ml,Vn.clamp=function(t,e,r){return r===n&&(r=e,e=n),r!==n&&(r=(r=gs(r))==r?r:0),e!==n&&(e=(e=gs(e))==e?e:0),ar(gs(t),e,r)},Vn.clone=function(t){return sr(t,4)},Vn.cloneDeep=function(t){return sr(t,5)},Vn.cloneDeepWith=function(t,e){return sr(t,5,e="function"==typeof e?e:n)},Vn.cloneWith=function(t,e){return sr(t,4,e="function"==typeof e?e:n)},Vn.conformsTo=function(t,e){return null==e||lr(t,e,Ls(e))},Vn.deburr=js,Vn.defaultTo=function(t,e){return null==t||t!=t?e:t},Vn.divide=_l,Vn.endsWith=function(t,e,r){t=vs(t),e=li(e);var i=t.length,o=r=r===n?i:ar(ps(r),0,i);return(r-=e.length)>=0&&t.slice(r,o)==e},Vn.eq=Va,Vn.escape=function(t){return(t=vs(t))&&X.test(t)?t.replace(Z,nn):t},Vn.escapeRegExp=function(t){return(t=vs(t))&&nt.test(t)?t.replace(et,"\\$&"):t},Vn.every=function(t,e,r){var i=Wa(t)?Te:pr;return r&&_o(t,e,r)&&(e=n),i(t,so(e,3))},Vn.find=ga,Vn.findIndex=jo,Vn.findKey=function(t,e){return Be(t,so(e,3),_r)},Vn.findLast=ya,Vn.findLastIndex=Wo,Vn.findLastKey=function(t,e){return Be(t,so(e,3),xr)},Vn.floor=xl,Vn.forEach=va,Vn.forEachRight=ma,Vn.forIn=function(t,e){return null==t?t:vr(t,so(e,3),Ds)},Vn.forInRight=function(t,e){return null==t?t:mr(t,so(e,3),Ds)},Vn.forOwn=function(t,e){return t&&_r(t,so(e,3))},Vn.forOwnRight=function(t,e){return t&&xr(t,so(e,3))},Vn.get=Is,Vn.gt=Fa,Vn.gte=Ga,Vn.has=function(t,e){return null!=t&&go(t,e,Cr)},Vn.hasIn=Cs,Vn.head=Uo,Vn.identity=nl,Vn.includes=function(t,e,n,r){t=Ua(t)?t:Vs(t),n=n&&!r?ps(n):0;var i=t.length;return n<0&&(n=vn(i+n,0)),as(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Fe(t,e,n)>-1},Vn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=vn(r+i,0)),Fe(t,e,i)},Vn.inRange=function(t,e,r){return e=ds(e),r===n?(r=e,e=0):r=ds(r),function(t,e,n){return t>=mn(e,n)&&t<vn(e,n)}(t=gs(t),e,r)},Vn.invoke=ks,Vn.isArguments=ja,Vn.isArray=Wa,Vn.isArrayBuffer=Ha,Vn.isArrayLike=Ua,Vn.isArrayLikeObject=Za,Vn.isBoolean=function(t){return!0===t||!1===t||ts(t)&&Mr(t)==v},Vn.isBuffer=Ya,Vn.isDate=Xa,Vn.isElement=function(t){return ts(t)&&1===t.nodeType&&!rs(t)},Vn.isEmpty=function(t){if(null==t)return!0;if(Ua(t)&&(Wa(t)||"string"==typeof t||"function"==typeof t.splice||Ya(t)||ls(t)||ja(t)))return!t.length;var e=fo(t);if(e==w||e==A)return!t.size;if(So(t))return!Er(t).length;for(var n in t)if(Ot.call(t,n))return!1;return!0},Vn.isEqual=function(t,e){return Dr(t,e)},Vn.isEqualWith=function(t,e,r){var i=(r="function"==typeof r?r:n)?r(t,e):n;return i===n?Dr(t,e,n,r):!!i},Vn.isError=qa,Vn.isFinite=function(t){return"number"==typeof t&&ze(t)},Vn.isFunction=Ka,Vn.isInteger=$a,Vn.isLength=Qa,Vn.isMap=es,Vn.isMatch=function(t,e){return t===e||Pr(t,e,uo(e))},Vn.isMatchWith=function(t,e,r){return r="function"==typeof r?r:n,Pr(t,e,uo(e),r)},Vn.isNaN=function(t){return ns(t)&&t!=+t},Vn.isNative=function(t){if(wo(t))throw new wt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(t)},Vn.isNil=function(t){return null==t},Vn.isNull=function(t){return null===t},Vn.isNumber=ns,Vn.isObject=Ja,Vn.isObjectLike=ts,Vn.isPlainObject=rs,Vn.isRegExp=is,Vn.isSafeInteger=function(t){return $a(t)&&t>=-9007199254740991&&t<=c},Vn.isSet=os,Vn.isString=as,Vn.isSymbol=ss,Vn.isTypedArray=ls,Vn.isUndefined=function(t){return t===n},Vn.isWeakMap=function(t){return ts(t)&&fo(t)==L},Vn.isWeakSet=function(t){return ts(t)&&"[object WeakSet]"==Mr(t)},Vn.join=function(t,e){return null==t?"":Ue.call(t,e)},Vn.kebabCase=Ws,Vn.last=qo,Vn.lastIndexOf=function(t,e,r){var i=null==t?0:t.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=ps(r))<0?vn(i+o,0):mn(o,i-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Ve(t,je,o,!0)},Vn.lowerCase=Hs,Vn.lowerFirst=Us,Vn.lt=us,Vn.lte=cs,Vn.max=function(t){return t&&t.length?fr(t,nl,Ir):n},Vn.maxBy=function(t,e){return t&&t.length?fr(t,so(e,2),Ir):n},Vn.mean=function(t){return We(t,nl)},Vn.meanBy=function(t,e){return We(t,so(e,2))},Vn.min=function(t){return t&&t.length?fr(t,nl,zr):n},Vn.minBy=function(t,e){return t&&t.length?fr(t,so(e,2),zr):n},Vn.stubArray=fl,Vn.stubFalse=gl,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=bl,Vn.nth=function(t,e){return t&&t.length?jr(t,ps(e)):n},Vn.noConflict=function(){return de._===this&&(de._=Vt),this},Vn.noop=sl,Vn.now=Ia,Vn.pad=function(t,e,n){t=vs(t);var r=(e=ps(e))?hn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Wi(fe(i),n)+t+Wi(pe(i),n)},Vn.padEnd=function(t,e,n){t=vs(t);var r=(e=ps(e))?hn(t):0;return e&&r<e?t+Wi(e-r,n):t},Vn.padStart=function(t,e,n){t=vs(t);var r=(e=ps(e))?hn(t):0;return e&&r<e?Wi(e-r,n)+t:t},Vn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),xn(vs(t).replace(rt,""),e||0)},Vn.random=function(t,e,r){if(r&&"boolean"!=typeof r&&_o(t,e,r)&&(e=r=n),r===n&&("boolean"==typeof e?(r=e,e=n):"boolean"==typeof t&&(r=t,t=n)),t===n&&e===n?(t=0,e=1):(t=ds(t),e===n?(e=t,t=0):e=ds(e)),t>e){var i=t;t=e,e=i}if(r||t%1||e%1){var o=bn();return mn(t+o*(e-t+le("1e-"+((o+"").length-1))),e)}return Yr(t,e)},Vn.reduce=function(t,e,n){var r=Wa(t)?Oe:Ze,i=arguments.length<3;return r(t,so(e,4),n,i,hr)},Vn.reduceRight=function(t,e,n){var r=Wa(t)?Ee:Ze,i=arguments.length<3;return r(t,so(e,4),n,i,dr)},Vn.repeat=function(t,e,r){return e=(r?_o(t,e,r):e===n)?1:ps(e),Xr(vs(t),e)},Vn.replace=function(){var t=arguments,e=vs(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Vn.result=function(t,e,r){var i=-1,o=(e=mi(e,t)).length;for(o||(o=1,t=n);++i<o;){var a=null==t?n:t[No(e[i])];a===n&&(i=o,a=r),t=Ka(a)?a.call(t):a}return t},Vn.round=wl,Vn.runInContext=t,Vn.sample=function(t){return(Wa(t)?Kn:Kr)(t)},Vn.size=function(t){if(null==t)return 0;if(Ua(t))return as(t)?hn(t):t.length;var e=fo(t);return e==w||e==A?t.size:Er(t).length},Vn.snakeCase=Zs,Vn.some=function(t,e,r){var i=Wa(t)?Ne:ri;return r&&_o(t,e,r)&&(e=n),i(t,so(e,3))},Vn.sortedIndex=function(t,e){return ii(t,e)},Vn.sortedIndexBy=function(t,e,n){return oi(t,e,so(n,2))},Vn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ii(t,e);if(r<n&&Va(t[r],e))return r}return-1},Vn.sortedLastIndex=function(t,e){return ii(t,e,!0)},Vn.sortedLastIndexBy=function(t,e,n){return oi(t,e,so(n,2),!0)},Vn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ii(t,e,!0)-1;if(Va(t[n],e))return n}return-1},Vn.startCase=Ys,Vn.startsWith=function(t,e,n){return t=vs(t),n=null==n?0:ar(ps(n),0,t.length),e=li(e),t.slice(n,n+e.length)==e},Vn.subtract=Sl,Vn.sum=function(t){return t&&t.length?Ye(t,nl):0},Vn.sumBy=function(t,e){return t&&t.length?Ye(t,so(e,2)):0},Vn.template=function(t,e,r){var i=Vn.templateSettings;r&&_o(t,e,r)&&(e=n),t=vs(t),e=xs({},e,i,$i);var o,a,s=xs({},e.imports,i.imports,$i),l=Ls(s),u=$e(s,l),c=0,h=e.interpolate||_t,d="__p += '",p=Ct((e.escape||_t).source+"|"+h.source+"|"+(h===$?ht:_t).source+"|"+(e.evaluate||_t).source+"|$","g"),f="//# sourceURL="+(Ot.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ie+"]")+"\n";t.replace(p,(function(e,n,r,i,s,l){return r||(r=i),d+=t.slice(c,l).replace(xt,rn),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+e.length,e})),d+="';\n";var g=Ot.call(e,"variable")&&e.variable;if(g){if(ut.test(g))throw new wt("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(j,""):d).replace(W,"$1").replace(H,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var y=$s((function(){return St(l,f+"return "+d).apply(n,u)}));if(y.source=d,qa(y))throw y;return y},Vn.times=function(t,e){if((t=ps(t))<1||t>c)return[];var n=p,r=mn(t,p);e=so(e),t-=p;for(var i=Xe(r,e);++n<t;)e(n);return i},Vn.toFinite=ds,Vn.toInteger=ps,Vn.toLength=fs,Vn.toLower=function(t){return vs(t).toLowerCase()},Vn.toNumber=gs,Vn.toSafeInteger=function(t){return t?ar(ps(t),-9007199254740991,c):0===t?t:0},Vn.toString=vs,Vn.toUpper=function(t){return vs(t).toUpperCase()},Vn.trim=function(t,e,r){if((t=vs(t))&&(r||e===n))return qe(t);if(!t||!(e=li(e)))return t;var i=dn(t),o=dn(e);return xi(i,Je(i,o),tn(i,o)+1).join("")},Vn.trimEnd=function(t,e,r){if((t=vs(t))&&(r||e===n))return t.slice(0,pn(t)+1);if(!t||!(e=li(e)))return t;var i=dn(t);return xi(i,0,tn(i,dn(e))+1).join("")},Vn.trimStart=function(t,e,r){if((t=vs(t))&&(r||e===n))return t.replace(rt,"");if(!t||!(e=li(e)))return t;var i=dn(t);return xi(i,Je(i,dn(e))).join("")},Vn.truncate=function(t,e){var r=30,i="...";if(Ja(e)){var o="separator"in e?e.separator:o;r="length"in e?ps(e.length):r,i="omission"in e?li(e.omission):i}var a=(t=vs(t)).length;if(on(t)){var s=dn(t);a=s.length}if(r>=a)return t;var l=r-hn(i);if(l<1)return i;var u=s?xi(s,0,l).join(""):t.slice(0,l);if(o===n)return u+i;if(s&&(l+=u.length-l),is(o)){if(t.slice(l).search(o)){var c,h=u;for(o.global||(o=Ct(o.source,vs(dt.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var d=c.index;u=u.slice(0,d===n?l:d)}}else if(t.indexOf(li(o),l)!=l){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+i},Vn.unescape=function(t){return(t=vs(t))&&Y.test(t)?t.replace(U,fn):t},Vn.uniqueId=function(t){var e=++Et;return vs(t)+e},Vn.upperCase=Xs,Vn.upperFirst=qs,Vn.each=va,Vn.eachRight=ma,Vn.first=Uo,al(Vn,(yl={},_r(Vn,(function(t,e){Ot.call(Vn.prototype,e)||(yl[e]=t)})),yl),{chain:!1}),Vn.VERSION="4.17.21",Ce(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Vn[t].placeholder=Vn})),Ce(["drop","take"],(function(t,e){Wn.prototype[t]=function(r){r=r===n?1:vn(ps(r),0);var i=this.__filtered__&&!e?new Wn(this):this.clone();return i.__filtered__?i.__takeCount__=mn(r,i.__takeCount__):i.__views__.push({size:mn(r,p),type:t+(i.__dir__<0?"Right":"")}),i},Wn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ce(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Wn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:so(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ce(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Wn.prototype[t]=function(){return this[n](1).value()[0]}})),Ce(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Wn.prototype[t]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(nl)},Wn.prototype.find=function(t){return this.filter(t).head()},Wn.prototype.findLast=function(t){return this.reverse().find(t)},Wn.prototype.invokeMap=qr((function(t,e){return"function"==typeof t?new Wn(this):this.map((function(n){return kr(n,t,e)}))})),Wn.prototype.reject=function(t){return this.filter(Oa(so(t)))},Wn.prototype.slice=function(t,e){t=ps(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Wn(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==n&&(r=(e=ps(e))<0?r.dropRight(-e):r.take(e-t)),r)},Wn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Wn.prototype.toArray=function(){return this.take(p)},_r(Wn.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=Vn[i?"take"+("last"==e?"Right":""):e],a=i||/^find/.test(e);o&&(Vn.prototype[e]=function(){var e=this.__wrapped__,s=i?[1]:arguments,l=e instanceof Wn,u=s[0],c=l||Wa(e),h=function(t){var e=o.apply(Vn,Re([t],s));return i&&d?e[0]:e};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,f=a&&!d,g=l&&!p;if(!a&&c){e=g?e:new Wn(this);var y=t.apply(e,s);return y.__actions__.push({func:da,args:[h],thisArg:n}),new jn(y,d)}return f&&g?t.apply(this,s):(y=this.thru(h),f?i?y.value()[0]:y.value():y)})})),Ce(["pop","push","shift","sort","splice","unshift"],(function(t){var e=kt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Vn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Wa(i)?i:[],t)}return this[n]((function(n){return e.apply(Wa(n)?n:[],t)}))}})),_r(Wn.prototype,(function(t,e){var n=Vn[e];if(n){var r=n.name+"";Ot.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:e,func:n})}})),Ln[Vi(n,2).name]=[{name:"wrapper",func:n}],Wn.prototype.clone=function(){var t=new Wn(this.__wrapped__);return t.__actions__=Ti(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ti(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ti(this.__views__),t},Wn.prototype.reverse=function(){if(this.__filtered__){var t=new Wn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Wn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Wa(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=mn(e,t+a);break;case"takeRight":t=vn(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,h=c.length,d=0,p=mn(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return pi(t,this.__actions__);var f=[];t:for(;l--&&d<p;){for(var g=-1,y=t[u+=e];++g<h;){var v=c[g],m=v.iteratee,_=v.type,x=m(y);if(2==_)y=x;else if(!x){if(1==_)continue t;break t}}f[d++]=y}return f},Vn.prototype.at=pa,Vn.prototype.chain=function(){return ha(this)},Vn.prototype.commit=function(){return new jn(this.value(),this.__chain__)},Vn.prototype.next=function(){this.__values__===n&&(this.__values__=hs(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?n:this.__values__[this.__index__++]}},Vn.prototype.plant=function(t){for(var e,r=this;r instanceof Gn;){var i=Bo(r);i.__index__=0,i.__values__=n,e?o.__wrapped__=i:e=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,e},Vn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Wn){var e=t;return this.__actions__.length&&(e=new Wn(this)),(e=e.reverse()).__actions__.push({func:da,args:[Jo],thisArg:n}),new jn(e,this.__chain__)}return this.thru(Jo)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,Kt&&(Vn.prototype[Kt]=function(){return this}),Vn}();fe?((fe.exports=gn)._=gn,pe._=gn):de._=gn}).call(Zn)}(Un,Un.exports)),Un.exports),Xn=1;function qn(t){var e="<".charCodeAt(0),n=">".charCodeAt(0),r="-".charCodeAt(0),i="/".charCodeAt(0),o="!".charCodeAt(0),a="'".charCodeAt(0),s='"'.charCodeAt(0),l="?".charCodeAt(0),u="\r\n\t>/= ",c=0;return Xn=1,Kn(function h(){for(var d=[];t[c];){if(t.charCodeAt(c)==e){if(t.charCodeAt(c+1)===i)return c=t.indexOf(">",c),d;if(t.charCodeAt(c+1)===o){if(t.charCodeAt(c+2)==r){for(;t.charCodeAt(c)!==n||t.charCodeAt(c-1)!=r||t.charCodeAt(c-2)!=r||-1==c;)c=t.indexOf(">",c+1);-1===c&&(c=t.length)}else for(c+=2;t.charCodeAt(c)!==n;c++);c++;continue}if(t.charCodeAt(c+1)===l){c=t.indexOf(">",c),c++;continue}for(var p=++c;-1===u.indexOf(t[c]);c++);for(var f=t.slice(p,c),g=!1,y={};t.charCodeAt(c)!==n;c++){var v=t.charCodeAt(c);if(v>64&&v<91||v>96&&v<123){for(p=c;-1===u.indexOf(t[c]);c++);for(var m=t.slice(p,c),_=t.charCodeAt(c);_!==a&&_!==s;)c++,_=t.charCodeAt(c);var x=t[c],b=++c;c=t.indexOf(x,b);var w=t.slice(b,c);g||(y={},g=!0),y[m]=w}}var S=[];t.charCodeAt(c-1)!==i&&(c++,S=h()),d.push({children:S,tagName:f,attrs:y})}else{var M=c;-2===(c=t.indexOf("<",c)-1)&&(c=t.length);var I=t.slice(M,c+1);I.length>0&&d.push(I)}c++}return d}())}function Kn(t){var e={};if(void 0===t)return{};if(1===t.length&&"string"==typeof t[0])return t[0];for(var n in t.forEach((function(t){if(e[t.tagName]||(e[t.tagName]=[]),"object"==typeof t){var n=Kn(t.children);"object"==typeof n&&(t.attrs&&(n.attrs=t.attrs),void 0===n.attrs?n.attrs={order:Xn}:n.attrs.order=Xn),Xn++,e[t.tagName].push(n)}})),e)1==e[n].length&&(e[n]=e[n][0]);return e}function $n(t){return Math.abs(t)>2e4?"emu":"point"}function Qn(t){return t/12700}function Jn(t){return t/20}function tr(t){return t/100}function er(t){return t/6e4}function nr(t){return t/1e5}function rr(t){var e=Math.ceil(t/26),n=(t%26||26)-1+65;return String.fromCharCode(n).repeat(e)}function ir(t,e,n){var r={type:"solidFill"};if(t["a:srgbClr"])r.color="#"+t["a:srgbClr"].attrs.val;else if(t["a:schemeClr"]){var i=t["a:schemeClr"].attrs.val;n&&(i=n.getColorThemeName(i)),r.color=e.getColor(i)}else if(t["a:sysClr"])r.color="#"+t["a:sysClr"].attrs.lastClr;else if(t["a:prstClr"]){var o=Yn.get(t["a:prstClr"],["attrs","val"]);r.color=function(t){var e,n=["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"],r=["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"],i=n.indexOf(t);-1!=i&&(e=r[i]);return"#".concat(e||"000000")}(o)}var a=t["a:srgbClr"]||t["a:schemeClr"]||t["a:sysClr"],s=Yn.get(a,["a:alpha","attrs","val"],1e5);r.alpha=s/1e5;var l=Yn.get(a,["a:shade","attrs","val"]);l&&(r.shade=l/1e5);var u=Yn.get(a,["a:lumMod","attrs","val"]);u&&(r.lumMod=u/1e5);var c=Yn.get(a,["a:lumOff","attrs","val"]);c&&(r.lumOff=c/1e5);var h=Yn.get(a,["a:tint","attrs","val"]);return h&&(r.tint=h/1e5),r}function or(t,e,n){var r,i={type:"blipFill"},o=Yn.get(t,["a:blip","attrs","r:embed"]);if(o){var a=null===(r=n.rels[o])||void 0===r?void 0:r.target;a&&(i.base64=e.getMedia(a))}var s=Yn.get(t,["a:blip","a:alphaModFix","attrs","amt"]);s&&(i.alpha=s/1e5);var l=Yn.get(t,["a:stretch","a:fillRect","attrs"]);return l&&(i.fillRect={},l.b&&(i.fillRect.b=l.b/1e5),l.t&&(i.fillRect.t=l.t/1e5),l.r&&(i.fillRect.r=l.r/1e5),l.l&&(i.fillRect.l=l.l/1e5)),i}function ar(t,e,n){var r={type:"gradFill",tileRect:{},lin:{},gsList:[]};r.flip=t.attrs.flip,r.path=Yn.get(t,["a:path","attrs","path"])||"linear",r.rotWithShape="1"===t.attrs.rotWithShape,Yn.get(t,["a:lin","attrs","ang"])&&(r.lin.ang=er(t["a:lin"].attrs.ang)),Yn.get(t,["a:lin","attrs","scaled"])&&(r.lin.scaled="1"===t["a:lin"].attrs.scaled);var i=Yn.get(t,["a:gsLst","a:gs"])||[];return r.gsList=i.map((function(t){return{color:ir(t,e,n),pos:nr(t.attrs.pos)}})),Yn.get(t,["a:tileRect","attrs","l"])&&(r.tileRect.l=nr(t["a:tileRect"].attrs.l)),Yn.get(t,["a:tileRect","attrs","t"])&&(r.tileRect.t=nr(t["a:tileRect"].attrs.t)),Yn.get(t,["a:tileRect","attrs","r"])&&(r.tileRect.r=nr(t["a:tileRect"].attrs.r)),Yn.get(t,["a:tileRect","attrs","b"])&&(r.tileRect.b=nr(t["a:tileRect"].attrs.b)),r}function sr(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function lr(t){return t<.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}function ur(t,e){var n=t[0],r=t[1],i=t[2],o=sr(n/255)*e,a=sr(r/255)*e,s=sr(i/255)*e;return[Math.round(255*lr(o)),Math.round(255*lr(a)),Math.round(255*lr(s))]}function cr(t,e,n){var r=t/255,i=e/255,o=n/255,a=Math.max(r,i,o),s=Math.min(r,i,o),l=a-s,u=0,c=(a+s)/2;return 0===l?u=0:a===r?u=(i-o)/l%6:a===i?u=(o-r)/l+2:a===o&&(u=(r-i)/l+4),(u=Math.round(60*u))<0&&(u+=360),{h:u,s:0===l||0===c||1===c?0:l/(1-Math.abs(2*c-1)),l:c}}function hr(t,e,n){var r,i,o,a=(1-Math.abs(2*n-1))*e,s=a*(1-Math.abs(t/60%2-1)),l=n-a/2;return t<60?(r=a,i=s,o=0):t<120?(r=s,i=a,o=0):t<180?(r=0,i=a,o=s):t<240?(r=0,i=s,o=a):t<300?(r=s,i=0,o=a):(r=a,i=0,o=s),[r=Math.round(255*(r+l)),i=Math.round(255*(i+l)),o=Math.round(255*(o+l))]}function dr(t,e){if(!t||"none"===t.type)return"";if("solidFill"===t.type&&/^#[\da-fA-F]{3,6}$/.test(t.color)){var n=parseInt(t.color.substr(1,2),16),r=parseInt(t.color.substr(3,2),16),i=parseInt(t.color.substr(5,2),16);if(t.shade){var o=ur([n,r,i],t.shade);n=o[0],r=o[1],i=o[2]}if(t.lumMod){var a=function(t,e,n,r){var i=cr(t,e,n),o=i.h,a=i.l*r;return a>=1&&(a=1),hr(o,i.s,a)}(n,r,i,t.lumMod);n=a[0],r=a[1],i=a[2]}if(t.lumOff){a=function(t,e,n,r){var i=cr(t,e,n),o=i.h,a=r+i.l;return a>1&&(a=1),hr(o,i.s,a)}(n,r,i,t.lumOff);n=a[0],r=a[1],i=a[2]}if(t.tint||(null==e?void 0:e.light)){var s=function(t,e,n,r){var i=cr(t,e,n),o=i.h,a=i.l;return r>=1&&(r=1),hr(o,i.s,a*r+(1-r))}(n,r,i,t.tint||(null==e?void 0:e.light));n=s[0],r=s[1],i=s[2]}if(null==e?void 0:e.dark){var l=ur([n,r,i],null==e?void 0:e.dark);n=l[0],r=l[1],i=l[2]}var u=t.alpha;return"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(u,")")}}for(var pr,fr=[],gr=0;gr<256;++gr)fr.push((gr+256).toString(16).slice(1));var yr=new Uint8Array(16);function vr(){if(!pr&&!(pr="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pr(yr)}var mr={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function _r(t,e,n){if(mr.randomUUID&&!t)return mr.randomUUID();var r=(t=t||{}).random||(t.rng||vr)();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(t,e=0){return(fr[t[e+0]]+fr[t[e+1]]+fr[t[e+2]]+fr[t[e+3]]+"-"+fr[t[e+4]]+fr[t[e+5]]+"-"+fr[t[e+6]]+fr[t[e+7]]+"-"+fr[t[e+8]]+fr[t[e+9]]+"-"+fr[t[e+10]]+fr[t[e+11]]+fr[t[e+12]]+fr[t[e+13]]+fr[t[e+14]]+fr[t[e+15]]).toLowerCase()}(r)}var xr=function(){function t(t,e,n){var r,i;this.uuid=_r(),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=t,this.ctx=e,this.group=n;var o=Yn.get(t,["p:nvSpPr","p:nvPr"]);if(o){var a=Yn.get(o,"p:ph");a&&a.attrs&&(this.idx=a.attrs.idx,this.type=a.attrs.type),Yn.get(o,["attrs","userDrawn"])&&(this.userDrawn="1"===Yn.get(o,["attrs","userDrawn"]))}if(this.order=Yn.get(t,"attrs.order",0),this.source["p:spPr"]){if(l=this.getXfrm()){var s=this.group&&((null===(r=this.ctx.pptx)||void 0===r?void 0:r.wps)||"point"===$n(parseInt(l["a:off"].attrs.x)))?Jn:Qn;this.offset={x:Math.round(s(parseInt(l["a:off"].attrs.x))),y:Math.round(s(parseInt(l["a:off"].attrs.y)))},this.extend={w:Math.round(s(parseInt(l["a:ext"].attrs.cx))),h:Math.round(s(parseInt(l["a:ext"].attrs.cy||"0")))},this.rotate=er(parseInt(Yn.get(l,"attrs.rot",0))),this.flipV="1"===Yn.get(l,"attrs.flipV"),this.flipH="1"===Yn.get(l,"attrs.flipH")}}else if(this.source["p:xfrm"]){var l=this.source["p:xfrm"];s=this.group&&((null===(i=this.ctx.pptx)||void 0===i?void 0:i.wps)||"point"===$n(parseInt(l["a:off"].attrs.x)))?Jn:Qn;this.offset={x:Math.round(s(parseInt(l["a:off"].attrs.x))),y:Math.round(s(parseInt(l["a:off"].attrs.y)))},this.extend={w:Math.round(s(parseInt(l["a:ext"].attrs.cx))),h:Math.round(s(parseInt(l["a:ext"].attrs.cy)))}}if(n){var u=n.extend,c=n.chExtend,h=n.chOffset,d=0===c.w?0:u.w/c.w,p=0===c.h?0:u.h/c.h;this.extend.w=this.extend.w*d,this.extend.h=this.extend.h*p,this.offset.x=(this.offset.x-h.x)*d,this.offset.y=(this.offset.y-h.y)*p}}return Object.defineProperty(t.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),t.prototype.getColorThemeName=function(t){return this.ctx.getColorThemeName(t)},t.prototype.getXfrm=function(){var t=this.source["p:spPr"]["a:xfrm"];return t||(this.idx?t=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(t=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),t},t}(),br=function(){function t(t,e){this.props={},this.inheritProps={},this.source=t,this.node=e,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return t.prototype._getInheritBodyProps=function(){var t,e=this.node.ctx,n=this.node.type,r=this.node.idx;if(n||r)switch(e.slideType){case"slideMaster":break;case"slideLayout":(t=n?e.slideMaster.getNodeByType(n):e.slideMaster.getNodeByIdx(r))&&(this.inheritProps=Yn.get(t,["textBody","props"])||{});break;case"slide":(t=n?e.slideLayout.slideMaster.getNodeByType(n):e.slideLayout.slideMaster.getNodeByIdx(r))&&Object.assign(this.inheritProps,Yn.get(t,["textBody","props"])||{}),(t=n?e.slideLayout.getNodeByType(n):e.slideLayout.getNodeByIdx(r))&&Object.assign(this.inheritProps,Yn.get(t,["textBody","props"])||{})}},t.prototype._parseBodyProps=function(){var t=this,e=Yn.get(this.source,["a:bodyPr","attrs"])||{};Object.keys(e).forEach((function(n){switch(n){case"anchor":t.props.anchor=e[n];break;case"rtlCol":t.props.rtlCol="1"===e[n];break;case"lIns":case"rIns":case"tIns":case"bIns":t.props[n]=Qn(parseInt(e[n]));break;case"order":break;default:t.props[n]=e[n]}}));var n=Yn.get(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(n){this.props.normAutofit={};var r=n.fontScale;r&&(this.props.normAutofit.fontScale=nr(parseInt(r)));var i=n.lnSpcReduction;i&&(this.props.normAutofit.lnSpcReduction=nr(parseInt(i)))}},t.prototype._parseLstStyle=function(){var t=this,e={},n=Yn.get(this.source,"a:lstStyle")||{};Object.keys(n).forEach((function(r){if(r.startsWith("a:")&&r.endsWith("pPr")){var i=r.substr(2,r.length-5);e[i]={props:t._formatPPr(n[r])};var o=Yn.get(n[r],["a:defRPr"]);e[i].defRPr=t._formatRPr(o)}})),this.lstStyle=e},t.prototype._parseText=function(){var t=this,e=Yn.get(this.source,["a:p"])||[];Array.isArray(e)||(e=[e]),this.paragraphs=e.map((function(e){return t._parseParagraph(e)}))},t.prototype._parseParagraph=function(t){var e=this,n={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},r=Yn.get(t,["a:pPr"])||{};n.props=this._formatPPr(r);var i=Yn.get(t,["a:endParaRPr"]);n.endParaRProps=this._formatRPr(i);var o=Yn.get(t,["a:r"])||[];Array.isArray(o)||(o=[o]);var a=Yn.get(t,["a:br"])||[];return Array.isArray(a)||(a=[a]),(o=o.concat(a.map((function(t){return s({isBr:!0},t)})))).sort((function(t,e){return Yn.get(t,["attrs","order"])-Yn.get(e,["attrs","order"])})),n.rows=o.map((function(t){return e._parseRow(t)})),n.inheritProps=this._getInheritPProps(n.props.level),n.inheritRProps=this._getInheritRProps(n.props.level),n},t.prototype._getInheritPProps=function(t){void 0===t&&(t="0");var e,n={},r=this.node.ctx,i=this.node.type,o=this.node.idx;switch(r.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,Yn.get(r.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,Yn.get(r,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,Yn.get(r.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,Yn.get(r.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{}),(i||o)&&(e=i?r.slideMaster.getNodeByType(i):r.slideMaster.getNodeByIdx(o))&&Object.assign(n,Yn.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,Yn.get(r.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,Yn.get(r.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{}),(i||o)&&(["subTitle","ctrTitle","title"].includes(i)&&Object.assign(n,Yn.get(r.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(t?+t+1:1),"props"])||{}),(e=i?r.slideLayout.slideMaster.getNodeByType(i):r.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(n,Yn.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{}),(e=i?r.slideLayout.getNodeByType(i):r.slideLayout.getNodeByIdx(o))&&Object.assign(n,Yn.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{}))}return n},t.prototype._getInheritRProps=function(t){void 0===t&&(t="0");var e,n={},r=this.node.ctx,i=this.node.type,o=this.node.idx;switch(r.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,Yn.get(r.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,Yn.get(r,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,Yn.get(r.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,Yn.get(r.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(i||o)&&(e=i?r.slideMaster.getNodeByType(i):r.slideMaster.getNodeByIdx(o))&&(n=Yn.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,Yn.get(r.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,Yn.get(r.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(i||o)&&(["subTitle","ctrTitle","title"].includes(i)&&Object.assign(n,Yn.get(r.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(e=i?r.slideLayout.slideMaster.getNodeByType(i):r.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(n,Yn.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(e=i?r.slideLayout.getNodeByType(i):r.slideLayout.getNodeByIdx(o))&&Object.assign(n,Yn.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}))}var a=Yn.get(this.node.source,["p:style","a:fontRef"]);return Yn.get(a,"a:schemeClr")&&(n.color=ir(a,this.node.theme,this.node)),Yn.get(this.lstStyle,["lvl".concat(t?+t+1:1),"defRPr"])&&Object.assign(n,Yn.get(this.lstStyle,["lvl".concat(t?+t+1:1),"defRPr"])),n},t.prototype._formatPPr=function(t){var e={},n=Yn.get(t,"attrs")||{};return Object.keys(n).forEach((function(t){switch(t){case"algn":e.align=n[t];break;case"marL":e.marginLeft=Qn(parseInt(n[t]));break;case"indent":e.indent=Qn(parseInt(n[t]));break;case"lvl":e.level=n[t]}})),Yn.get(t,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),Yn.get(t,["a:buAutoNum","attrs","type"])&&(e.buAutoNum=t["a:buAutoNum"].attrs.type),Yn.get(t,["a:buChar","attrs","char"])&&(e.buChar=t["a:buChar"].attrs.char),Yn.get(t,["a:spcBef","a:spcPts","attrs","val"])&&(e.spaceBefore=tr(parseInt(t["a:spcBef"]["a:spcPts"].attrs.val))),Yn.get(t,["a:spcAft","a:spcPts","attrs","val"])&&(e.spaceAfter=tr(parseInt(t["a:spcAft"]["a:spcPts"].attrs.val))),Yn.get(t,["a:defRPr"])&&(e.defRPr=this._formatRPr(Yn.get(t,["a:defRPr"]))),e},t.prototype._parseRow=function(t){if(t.isBr)return{isBr:!0};var e={props:{},text:""},n=Yn.get(t,["a:rPr"])||{};return e.props=this._formatRPr(n),e.text=Yn.get(t,"a:t")||"",e},t.prototype._formatRPr=function(t){var e={},n=Yn.get(t,"attrs")||{};Object.keys(n).forEach((function(t){switch(t){case"sz":e.size=parseInt(n[t])/100;break;case"b":e.bold="1"===n[t];break;case"i":e.italic="1"===n[t];break;case"u":e.underline=n[t];break;case"strike":e.strike=n[t];break;case"order":case"dirty":break;default:e[t]=n[t]}}));var r=Yn.get(t,"a:solidFill");r&&(e.color=ir(r,this.node.theme,this.node));var i=Yn.get(t,"a:highlight");return i&&(e.background=ir(i,this.node.theme,this.node)),e.typeface=Yn.get(t,["a:ea","attrs","typeface"]),e},t}();function wr(t,e,n){var r={};if(!Yn.get(t,"a:noFill")){Yn.get(t,"attrs.w")&&(r.width=Qn(parseInt(Yn.get(t,"attrs.w"))));var i=Yn.get(t,"a:solidFill");i&&(r.color=ir(i,e,n));var o=Yn.get(t,"a:prstDash");if(o&&(r.type=o.attrs.val),Yn.get(t,["a:miter"])&&(r.lineJoin="miter"),Yn.get(t,["a:bevel"])&&(r.lineJoin="bevel"),Yn.get(t,["a:round"])&&(r.lineJoin="round"),Yn.get(t,["a:miter","attrs","lim"])&&(r.miterLim=Qn(parseInt(Yn.get(t,["a:miter","attrs","lim"])))),Yn.get(t,["a:headEnd"])){var a=Yn.get(t,["a:headEnd","attrs"]);r.headEnd={type:a.type,len:a.len,w:a.w}}if(Yn.get(t,["a:tailEnd"])){var s=Yn.get(t,["a:tailEnd","attrs"]);r.tailEnd={type:s.type,len:s.len,w:s.w}}return r}}var Sr=function(t){function e(e,n,r,i){var o=t.call(this,e,r,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 a(e,t),e.prototype._parseShape=function(){if(this.shape=Yn.get(this.source,["p:spPr","a:prstGeom","attrs","prst"]),!this.shape&&Yn.get(this.source,["p:spPr","a:custGeom"])){this.shape="customGeom";var t=Yn.get(this.source,["p:spPr","a:custGeom","a:pathLst","a:path"]),e=[],n=[],r=function(r){switch(r){case"a:moveTo":case"a:cubicBezTo":case"a:lnTo":n=Array.isArray(t[r])?t[r]:[t[r]],e=e.concat(n.map((function(t){return{order:t.attrs.order,type:r.split(":")[1],points:(Array.isArray(t["a:pt"])?t["a:pt"]:[t["a:pt"]]).map((function(t){return[Qn(parseInt(Yn.get(t,["attrs","x"]))),Qn(parseInt(Yn.get(t,["attrs","y"])))]}))}})));break;case"a:close":n=Array.isArray(t[r])?t[r]:[t[r]],e=e.concat(n.map((function(t){return{order:t.attrs.order,type:r.split(":")[1]}})))}};for(var i in t)r(i);e.sort((function(t,e){return t.order-e.order})),this.prstGeom.pathList=e,Yn.get(t,["attrs","w"])&&(this.prstGeom.w=Qn(parseInt(Yn.get(t,["attrs","w"])))),Yn.get(t,["attrs","h"])&&(this.prstGeom.h=Qn(parseInt(Yn.get(t,["attrs","h"]))))}},e.prototype._parIsTextBox=function(){this.isTextBox="1"===Yn.get(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])},e.prototype._parsePrstGeom=function(){var t=this,e=Yn.get(this.source,["p:spPr","a:prstGeom"]),n=Yn.get(e,["a:avLst","a:gd"]);n&&(Array.isArray(n)||(n=[n]),this.prstGeom.gd=n.map((function(e){var n=["pie","chord","arc"].includes(t.shape)||["blockArc"].includes(t.shape)&&["adj1","adj2"].includes(e.attrs.name)?er(parseInt(e.attrs.fmla.split(" ")[1])):nr(parseInt(e.attrs.fmla.split(" ")[1]));return{name:e.attrs.name,fmla:n}})))},e.prototype._parseBackground=function(){if(!Yn.get(this.source,["p:spPr","a:noFill"]))if(Yn.get(this.source,["p:spPr","a:grpFill"])&&this.group)this.background=this.group.getBackground();else{var t=Yn.get(this.source,["p:spPr","a:solidFill"]);if(t)this.background=ir(t,this.theme,this);else{var e=Yn.get(this.source,["p:spPr","a:gradFill"]);if(e)this.background=ar(e,this.theme,this);else{var n=Yn.get(this.source,["p:spPr","a:blipFill"]);if(n)this.background=or(n,this.pptx,this.ctx);else{var r=Yn.get(this.source,["p:style","a:fillRef"]);r&&(this.background=ir(r,this.theme,this))}}}}},e.prototype._parseBorder=function(){var t=Yn.get(this.source,["p:style","a:lnRef"]);if(t){var n=parseInt(t.attrs.idx),r=this.theme.getLineStyle(n);this.border=s(s({},r),this.border),this.border.color&&this.border.color.color||(this.border.color=ir(t,this.theme,this))}var i=Yn.get(this.source,["p:spPr","a:ln"]);i&&Object.assign(this.border,wr(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 br(Yn.get(this.source,["p:txBody"]),this)},e.defaultBorderWidth=.75,e}(xr),Mr=function(t){function e(e,n,r,i,o){var a,s,l=t.call(this,n,i,o)||this;l.userDrawn=!0,l.pptx=r,l.path=e;var u=Yn.get(l.source,["p:blipFill","a:srcRect"]);u&&(l.clip={},u.attrs.b&&(l.clip.b=parseInt(u.attrs.b)/1e5),u.attrs.t&&(l.clip.t=parseInt(u.attrs.t)/1e5),u.attrs.l&&(l.clip.l=parseInt(u.attrs.l)/1e5),u.attrs.r&&(l.clip.r=parseInt(u.attrs.r)/1e5));var c=Yn.get(n,["p:nvPicPr","p:nvPr","a:audioFile","attrs","r:link"]);if(c){var h=null===(a=l.ctx.rels[c])||void 0===a?void 0:a.target;l.audioFile=l.pptx.getMedia(h)}var d=Yn.get(n,["p:nvPicPr","p:nvPr","a:videoFile","attrs","r:link"]);if(d){var p=null===(s=l.ctx.rels[d])||void 0===s?void 0:s.target;l.videoFile=l.pptx.getMedia(p)}return l}return a(e,t),Object.defineProperty(e.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),e}(xr),Ir=function(t){function e(e,n,r,i){var o=t.call(this,e,r,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 a(e,t),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=Yn.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblPr"]);this.props.tableStyleId=Yn.get(t,"a:tableStyleId"),this.tableStyles=Yn.get(this.slideMaster.tableStyles,this.props.tableStyleId)||{},"1"===Yn.get(t,["attrs","bandCol"])&&(this.props.bandCol=!0),"1"===Yn.get(t,["attrs","bandRow"])&&(this.props.bandRow=!0),"1"===Yn.get(t,["attrs","firstCol"])&&(this.props.firstCol=!0),"1"===Yn.get(t,["attrs","firstRow"])&&(this.props.firstRow=!0),"1"===Yn.get(t,["attrs","lastCol"])&&(this.props.lastCol=!0),"1"===Yn.get(t,["attrs","lastRow"])&&(this.props.lastRow=!0)},e.prototype._parseTableGrid=function(){var t=Yn.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);if(t)for(var e=0;e<t.length;e++){var n=Yn.get(t[e],["attrs","w"]);this.tableGrid.gridCol.push({width:Qn(parseInt(n))})}},e.prototype._parseTr=function(){var t=[],e=Yn.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tr"]);Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r={props:{},td:[]},i=e[n];r.props.height=Qn(parseInt(Yn.get(i,["attrs","h"])));var o=Yn.get(i,["a:tc"]);Array.isArray(o)||(o=[o]);for(var a=0;a<o.length;a++)r.td.push(this._parseTd(o[a]));t.push(r)}this.tr=t},e.prototype._parseTd=function(t){var e,n,r,i,o=this,a={props:{border:{}},paragraphs:[]},s=Yn.get(t,["a:tcPr","attrs"]);(null==s?void 0:s.marB)&&(a.props.marB=Qn(parseInt(null==s?void 0:s.marB))),(null==s?void 0:s.marT)&&(a.props.marT=Qn(parseInt(null==s?void 0:s.marT))),(null==s?void 0:s.marL)&&(a.props.marL=Qn(parseInt(null==s?void 0:s.marL))),(null==s?void 0:s.marR)&&(a.props.marR=Qn(parseInt(null==s?void 0:s.marR))),(null==s?void 0:s.anchor)&&(a.props.anchor=null==s?void 0:s.anchor);var l=Yn.get(t,["a:tcPr"]);Yn.get(l,["a:lnR"])&&(a.props.border.right=wr(Yn.get(l,["a:lnR"]),this.theme,this.ctx)),Yn.get(l,["a:lnL"])&&(a.props.border.left=wr(Yn.get(l,["a:lnL"]),this.theme,this.ctx)),Yn.get(l,["a:lnT"])&&(a.props.border.top=wr(Yn.get(l,["a:lnT"]),this.theme,this.ctx)),Yn.get(l,["a:lnB"])&&(a.props.border.bottom=wr(Yn.get(l,["a:lnB"]),this.theme,this.ctx)),(null===(e=null==t?void 0:t.attrs)||void 0===e?void 0:e.rowSpan)&&(a.props.rowSpan=parseInt(t.attrs.rowSpan)),(null===(n=null==t?void 0:t.attrs)||void 0===n?void 0:n.gridSpan)&&(a.props.gridSpan=parseInt(t.attrs.gridSpan)),(null===(r=null==t?void 0:t.attrs)||void 0===r?void 0:r.vMerge)&&(a.props.vMerge="1"===t.attrs.vMerge),(null===(i=null==t?void 0:t.attrs)||void 0===i?void 0:i.hMerge)&&(a.props.hMerge="1"===t.attrs.hMerge);var u=Yn.get(t,["a:tcPr","a:solidFill"]);u&&(a.props.background=ir(u,this.theme,this.ctx));var c=Yn.get(t,["a:txBody"]),h=Yn.get(c,["a:p"]);return Array.isArray(h)||(h=[h]),a.paragraphs=h.map((function(t){return o._parseParagraph(t)})),a},e.prototype._parseParagraph=function(t){var e=this,n={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},r=Yn.get(t,["a:pPr"])||{};n.props=this._formatPPr(r);var i=Yn.get(t,["a:endParaRPr"]);n.endParaRProps=this._formatRPr(i);var o=Yn.get(t,["a:r"])||[];Array.isArray(o)||(o=[o]);var a=Yn.get(t,["a:br"])||[];return Array.isArray(a)||(a=[a]),(o=o.concat(a.map((function(t){return s({isBr:!0},t)})))).sort((function(t,e){return Yn.get(t,["attrs","order"])-Yn.get(e,["attrs","order"])})),n.rows=o.map((function(t){return e._parseRow(t)})),n},e.prototype._parseRow=function(t){if(t.isBr)return{isBr:!0};var e={props:{},text:""},n=Yn.get(t,["a:rPr"])||{};return e.props=this._formatRPr(n),e.text=Yn.get(t,"a:t")||"",e},e.prototype._formatPPr=function(t){var e={},n=Yn.get(t,"attrs")||{};return Object.keys(n).forEach((function(t){if("algn"===t)e.align=n[t]})),Yn.get(t,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),Yn.get(t,["a:buAutoNum","attrs","type"])&&(e.buAutoNum=t["a:buAutoNum"].attrs.type),Yn.get(t,["a:buChar","attrs","char"])&&(e.buChar=t["a:buChar"].attrs.char),Yn.get(t,["a:spcBef","a:spcPts","attrs","val"])&&(e.spaceBefore=tr(parseInt(t["a:spcBef"]["a:spcPts"].attrs.val))),Yn.get(t,["a:spcAft","a:spcPts","attrs","val"])&&(e.spaceAfter=tr(parseInt(t["a:spcAft"]["a:spcPts"].attrs.val))),e},e.prototype._formatRPr=function(t){var e={},n=Yn.get(t,"attrs")||{};Object.keys(n).forEach((function(t){switch(t){case"sz":e.size=parseInt(n[t])/100;break;case"b":e.bold="1"===n[t];break;case"i":e.italic="1"===n[t];break;case"u":e.underline=n[t];break;case"strike":e.strike=n[t];break;case"order":case"dirty":break;default:e[t]=n[t]}}));var r=Yn.get(t,"a:solidFill");r&&(e.color=ir(r,this.theme,this.ctx));var i=Yn.get(t,"a:highlight");return i&&(e.background=ir(i,this.theme,this.ctx)),e.typeface=Yn.get(t,["a:ea","attrs","typeface"]),e},e.prototype._isLastCol=function(t,e){var n,r;if(e===t.length-1)return!0;for(var i=e+1;i<t.length;i++)if(!(null===(n=t[i].props)||void 0===n?void 0:n.hMerge)&&!(null===(r=t[i].props)||void 0===r?void 0:r.vMerge))return!1;return!0},e.prototype._isBandRow=function(t){var e;return(null===(e=this.props)||void 0===e?void 0:e.firstRow)?t%2==1:t%2==0},e.prototype._isBandCol=function(t){var e;return(null===(e=this.props)||void 0===e?void 0:e.firstCol)?t%2==1:t%2==0},e.prototype._parseInheritStyles=function(){var t,e,n,r,i,o,a,l,u=this,c=null===(e=null===(t=this.tableStyles)||void 0===t?void 0:t.wholeTbl)||void 0===e?void 0:e.tcStyle,h=null===(r=null===(n=this.tableStyles)||void 0===n?void 0:n.wholeTbl)||void 0===r?void 0:r.tcTxStyle,d=null===(o=null===(i=this.slideMaster.defaultTextStyle)||void 0===i?void 0:i.lvl1)||void 0===o?void 0:o.props,p=null===(l=null===(a=this.slideMaster.defaultTextStyle)||void 0===a?void 0:a.lvl1)||void 0===l?void 0:l.defRPr;this.tr.forEach((function(t,e){t.td.forEach((function(n,r){var i,o,a,l,f,g,y,v,m,_,x,b,w,S,M,I,C,A,T,k,L,D,P,R,O,E,N,z,B,V,F,G,j,W,H,U,Z,Y,X,q,K,$,Q,J,tt,et,nt,rt,it,ot,at,st,lt,ut,ct,ht,dt=s(s({},d),c),pt=s(s({},p),h);u.props.firstRow&&0===e?(dt=s(s(s({},dt),null===(o=null===(i=u.tableStyles)||void 0===i?void 0:i.firstRow)||void 0===o?void 0:o.tcStyle),{border:s(s({},null==dt?void 0:dt.border),null===(f=null===(l=null===(a=u.tableStyles)||void 0===a?void 0:a.firstRow)||void 0===l?void 0:l.tcStyle)||void 0===f?void 0:f.border)}),pt=s(s({},pt),null===(y=null===(g=u.tableStyles)||void 0===g?void 0:g.firstRow)||void 0===y?void 0:y.tcTxStyle)):u.props.lastRow&&e===u.tr.length-1?(dt=s(s(s({},dt),null===(m=null===(v=u.tableStyles)||void 0===v?void 0:v.lastRow)||void 0===m?void 0:m.tcStyle),{border:s(s({},null==dt?void 0:dt.border),null===(b=null===(x=null===(_=u.tableStyles)||void 0===_?void 0:_.lastRow)||void 0===x?void 0:x.tcStyle)||void 0===b?void 0:b.border)}),pt=s(s({},pt),null===(S=null===(w=u.tableStyles)||void 0===w?void 0:w.lastRow)||void 0===S?void 0:S.tcTxStyle)):u.props.firstCol&&0===r?(dt=s(s(s({},dt),null===(I=null===(M=u.tableStyles)||void 0===M?void 0:M.firstCol)||void 0===I?void 0:I.tcStyle),{border:s(s({},null==dt?void 0:dt.border),null===(T=null===(A=null===(C=u.tableStyles)||void 0===C?void 0:C.firstCol)||void 0===A?void 0:A.tcStyle)||void 0===T?void 0:T.border)}),pt=s(s({},pt),null===(L=null===(k=u.tableStyles)||void 0===k?void 0:k.firstCol)||void 0===L?void 0:L.tcTxStyle)):u.props.lastCol&&u._isLastCol(t.td,r)?(dt=s(s(s({},dt),null===(P=null===(D=u.tableStyles)||void 0===D?void 0:D.lastCol)||void 0===P?void 0:P.tcStyle),{border:s(s({},null==dt?void 0:dt.border),null===(E=null===(O=null===(R=u.tableStyles)||void 0===R?void 0:R.lastCol)||void 0===O?void 0:O.tcStyle)||void 0===E?void 0:E.border)}),pt=s(s({},pt),null===(z=null===(N=u.tableStyles)||void 0===N?void 0:N.lastCol)||void 0===z?void 0:z.tcTxStyle)):(u.props.bandRow&&(u._isBandRow(e)?(dt=s(s(s({},dt),null===(V=null===(B=u.tableStyles)||void 0===B?void 0:B.band1H)||void 0===V?void 0:V.tcStyle),{border:s(s({},null==dt?void 0:dt.border),null===(j=null===(G=null===(F=u.tableStyles)||void 0===F?void 0:F.band1H)||void 0===G?void 0:G.tcStyle)||void 0===j?void 0:j.border)}),pt=s(s({},pt),null===(H=null===(W=u.tableStyles)||void 0===W?void 0:W.band1H)||void 0===H?void 0:H.tcTxStyle)):(dt=s(s(s({},dt),null===(Z=null===(U=u.tableStyles)||void 0===U?void 0:U.band2V)||void 0===Z?void 0:Z.tcStyle),{border:s(s({},null==dt?void 0:dt.border),null===(q=null===(X=null===(Y=u.tableStyles)||void 0===Y?void 0:Y.band2V)||void 0===X?void 0:X.tcStyle)||void 0===q?void 0:q.border)}),pt=s(s({},pt),null===($=null===(K=u.tableStyles)||void 0===K?void 0:K.band2V)||void 0===$?void 0:$.tcTxStyle))),u.props.bandCol&&(u._isBandCol(r)?(dt=s(s(s({},dt),null===(J=null===(Q=u.tableStyles)||void 0===Q?void 0:Q.band1V)||void 0===J?void 0:J.tcStyle),{border:s(s({},null==dt?void 0:dt.border),null===(nt=null===(et=null===(tt=u.tableStyles)||void 0===tt?void 0:tt.band1V)||void 0===et?void 0:et.tcStyle)||void 0===nt?void 0:nt.border)}),pt=s(s({},pt),null===(it=null===(rt=u.tableStyles)||void 0===rt?void 0:rt.band1V)||void 0===it?void 0:it.tcTxStyle)):(dt=s(s(s({},dt),null===(at=null===(ot=u.tableStyles)||void 0===ot?void 0:ot.band2H)||void 0===at?void 0:at.tcStyle),{border:s(s({},null==dt?void 0:dt.border),null===(ut=null===(lt=null===(st=u.tableStyles)||void 0===st?void 0:st.band2H)||void 0===lt?void 0:lt.tcStyle)||void 0===ut?void 0:ut.border)}),pt=s(s({},pt),null===(ht=null===(ct=u.tableStyles)||void 0===ct?void 0:ct.band2H)||void 0===ht?void 0:ht.tcTxStyle)))),n.inheritTcStyle=dt,n.inheritTcTxStyle=pt}))}))},e}(xr),Cr=function(){function t(t,e,n,r){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=Yn.get(t,["attrs","order"]),this.pptx=e,this.ctx=n,this.source=t,this.group=r,this.source["p:grpSpPr"]){var i=Yn.get(this.source,["p:grpSpPr","a:xfrm"]);if(i&&(this.offset={x:Math.round(this.group&&this.pptx.wps?Jn(parseInt(i["a:off"].attrs.x)):Qn(parseInt(i["a:off"].attrs.x))),y:Math.round(this.group&&this.pptx.wps?Jn(parseInt(i["a:off"].attrs.y)):Qn(parseInt(i["a:off"].attrs.y)))},this.chOffset={x:Math.round("point"===$n(i["a:chOff"].attrs.x)||this.pptx.wps?Jn(parseInt(i["a:chOff"].attrs.x)):Qn(parseInt(i["a:chOff"].attrs.x))),y:Math.round("point"===$n(i["a:chOff"].attrs.y)||this.pptx.wps?Jn(parseInt(i["a:chOff"].attrs.y)):Qn(parseInt(i["a:chOff"].attrs.y)))},this.chExtend={w:Math.round("point"===$n(i["a:chExt"].attrs.cx)||this.pptx.wps?Jn(parseInt(i["a:chExt"].attrs.cx)):Qn(parseInt(i["a:chExt"].attrs.cx))),h:Math.round("point"===$n(i["a:chExt"].attrs.cy)||this.pptx.wps?Jn(parseInt(i["a:chExt"].attrs.cy)):Qn(parseInt(i["a:chExt"].attrs.cy)))},this.extend={w:Math.round(this.group&&this.pptx.wps?Jn(parseInt(i["a:ext"].attrs.cx)):Qn(parseInt(i["a:ext"].attrs.cx))),h:Math.round(this.group&&this.pptx.wps?Jn(parseInt(i["a:ext"].attrs.cy)):Qn(parseInt(i["a:ext"].attrs.cy)))},this.rotate=er(parseInt(Yn.get(i,"attrs.rot",0))),this.flipV="1"===Yn.get(i,"attrs.flipV"),this.flipH="1"===Yn.get(i,"attrs.flipH")),r){var o=r.extend,a=r.chExtend,s=r.chOffset,l=o.w/a.w,u=o.h/a.h;this.extend.w=this.extend.w*l,this.extend.h=this.extend.h*u,this.offset.x=(this.offset.x-s.x)*l,this.offset.y=(this.offset.y-s.y)*u}}this._parseBackground(),this._parseNodes()}return t.prototype.getBackground=function(){return this.background&&"none"!==this.background.type?this.background:this.group?this.group.getBackground():void 0},t.prototype._parseBackground=function(){var t=Yn.get(this.source,["p:grpSpPr"]);t&&t["a:solidFill"]?this.background=ir(t["a:solidFill"],this.ctx.theme,this.ctx):t&&t["a:gradFill"]?this.background=ar(t["a:gradFill"],this.ctx.theme,this.ctx):t&&t["a:blipFill"]&&(this.background=or(t["a:blipFill"],this.pptx,this.ctx))},t.prototype._parseNodes=function(){var t=this.source;Dr(this.nodes,t,this.pptx,this.ctx,this)},t}(),Ar=function(t){function e(e,n,r,i){var o=t.call(this,e,r,i)||this;return o.nodes=[],o.pptx=n,o}return a(e,t),e.prototype.parseNode=function(){return l(this,void 0,void 0,(function(){var t,e,n,r,i,o,a,s,l;return u(this,(function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),(t=Yn.get(this.source,["a:graphic","a:graphicData","dgm:relIds","attrs","r:dm"]))&&this.ctx.rels[t]?(e=this.ctx.rels[t].target,r=qn,[4,this.pptx.getXmlByPath(e)]):[2];case 1:return n=r.apply(void 0,[u.sent()]),(i=Yn.get(n,["dgm:dataModel","dgm:extLst","a:ext","dsp:dataModelExt","attrs","relId"]))&&this.ctx.rels[i]?(o=this.ctx.rels[i].target,[4,this.pptx.getXmlByPath(o)]):[2];case 2:return a=(a=u.sent()).replace(/dsp:/g,"p:"),s=qn(a),l=Yn.get(s,["p:drawing","p:spTree"]),Dr(this.nodes,l,this.pptx,this.ctx),[3,4];case 3:return u.sent(),[3,4];case 4:return[2]}}))}))},e}(xr),Tr=function(t){function e(e,n,r,i){var o=t.call(this,e,r,i)||this;return o.options={title:{},tooltip:{},legend:{},series:[],color:[]},o.userDrawn=!0,o.pptx=n,o}return a(e,t),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 l(this,void 0,void 0,(function(){var t,e,n,r,i,o;return u(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),(t=Yn.get(this.source,["a:graphic","a:graphicData","c:chart","attrs","r:id"]))&&this.ctx.rels[t]?(e=this.ctx.rels[t].target,r=qn,[4,this.pptx.getXmlByPath(e)]):[2];case 1:return n=r.apply(void 0,[a.sent()]),i=Yn.get(n,["c:chartSpace","c:chart"]),o=Yn.get(i,["c:plotArea"]),Yn.get(o,["c:lineChart"])?this.parseLine(Yn.get(o,["c:lineChart"]),i):Yn.get(o,["c:line3DChart"])?this.parseLine(Yn.get(o,["c:line3DChart"]),i):Yn.get(o,["c:areaChart"])?this.parseAreaLine(Yn.get(o,["c:areaChart"]),i):Yn.get(o,["c:area3DChart"])?this.parseAreaLine(Yn.get(o,["c:area3DChart"]),i):Yn.get(o,["c:barChart"])?this.parseBar(Yn.get(o,["c:barChart"]),i):Yn.get(o,["c:bar3DChart"])?this.parseBar(Yn.get(o,["c:bar3DChart"]),i):Yn.get(o,["c:pieChart"])?this.parsePie(Yn.get(o,["c:pieChart"])):Yn.get(o,["c:pie3DChart"])?this.parsePie(Yn.get(o,["c:pie3DChart"])):Yn.get(o,["c:doughnutChart"])&&this.parseDoughnutChart(Yn.get(o,["c:doughnutChart"])),[3,3];case 2:return a.sent(),[3,3];case 3:return[2]}}))}))},e.prototype.parseAreaLine=function(t,e){this.parseLine(t,e),this.options.series=this.options.series.map((function(t){return t.areaStyle={},t}))},e.prototype.parseLine=function(t,e){var n=Yn.get(t,["c:ser"]);Array.isArray(n)||(n=[n]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(Yn.get(e,["c:title"]))},this.options.xAxis={type:"category",data:this.getCategory(n[0])},this.options.yAxis={type:"value"},this.options.series=this.parseLineSeries(n,t),this.options.color=this.parseLineColors(n),this.options.legend={bottom:"bottom",left:"center"},"percentStacked"===Yn.get(t,["c:grouping","attrs","val"])&&(this.options.tooltip.valueFormatter=function(t){return(100*t).toFixed(2)+"%"})},e.prototype.parseBar=function(t,e){var n=Yn.get(t,["c:ser"]);Array.isArray(n)||(n=[n]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(Yn.get(e,["c:title"]))},"bar"===Yn.get(t,["c:barDir","attrs","val"])?(this.options.yAxis={type:"category",data:this.getCategory(n[0])},this.options.xAxis={type:"value"}):(this.options.xAxis={type:"category",data:this.getCategory(n[0])},this.options.yAxis={type:"value"}),this.options.series=this.parseBarSeries(n,t),this.options.color=this.parseBarColors(n),this.options.legend={bottom:"bottom",left:"center"},"percentStacked"===Yn.get(t,["c:grouping","attrs","val"])&&(this.options.tooltip.valueFormatter=function(t){return(100*t).toFixed(2)+"%"})},e.prototype.parsePie=function(t){var e=Yn.get(t,["c:ser"]);this.options.title={top:"top",left:"center",text:this.parsePieTitle(e)},this.options.color=this.parsePieColors(e),this.options.series=[this.parsePieSeries(e,t)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parseDoughnutChart=function(t){var e=Yn.get(t,["c:ser"]);this.options.title.text=this.parsePieTitle(e),this.options.color=this.parsePieColors(e),this.options.series=[this.parsePieSeries(e,t)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parsePieTitle=function(t){return Yn.get(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])},e.prototype.parseChartTitle=function(t){var e=Yn.get(t,["c:tx","c:rich","a:p"]);return Array.isArray(e)||(e=[e]),e.map((function(t){var e=Yn.get(t,["a:r"]);return Array.isArray(e)||(e=[e]),e.map((function(t){return Yn.get(t,["a:t"])||""})).join("")})).join("")||"图表标题"},e.prototype.parseBarColors=function(t){var e=this;return t.map((function(t){return dr(ir(Yn.get(t,["c:spPr","a:solidFill"]),e.theme,e.ctx))}))},e.prototype.parseLineColors=function(t){var e=this;return t.map((function(t){return dr(ir(Yn.get(t,["c:spPr","a:ln","a:solidFill"])||Yn.get(t,["c:spPr","a:solidFill"]),e.theme,e.ctx))}))},e.prototype.parsePieColors=function(t){var e=this,n=[],r=Yn.get(t,["c:dPt"]);return Array.isArray(r)||(r=[r]),r.forEach((function(t){n.push(dr(ir(Yn.get(t,["c:spPr","a:solidFill"]),e.theme,e.ctx)))})),n},e.prototype.parsePieSeries=function(t,e){var n={type:"pie",radius:"80%",startAngle:90,data:[]};Yn.get(e,["c:holeSize","attrs","val"])&&(n.radius=["".concat(.8*Yn.get(e,["c:holeSize","attrs","val"]),"%"),"80%"]);var r=Yn.get(e,["c:firstSliceAng","attrs","val"]);r&&(n.startAngle=90-r);for(var i=this.getCategory(t),o=this.getVal(t),a=0;a<i.length;a++)n.data.push({name:i[a],value:o[a]});return n},e.prototype.parseBarSeries=function(t,e){var n,r=this,i=Yn.get(e,["c:grouping","attrs","val"]);"stacked"===i?n="Ad":"percentStacked"===i&&(n="total");var o=t.map((function(t){return{type:"bar",name:Yn.get(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:r.getVal(t),stack:n}}));if("percentStacked"===i){var a=[];o.forEach((function(t,e){a=0===e?c([],t.data,!0):a.map((function(e,n){return e+t.data[n]}))})),o.forEach((function(t){t.data=t.data.map((function(t,e){return a[e]<=0?0:t/a[e]}))}))}return o},e.prototype.parseLineSeries=function(t,e){var n,r=this,i=Yn.get(e,["c:grouping","attrs","val"]);"stacked"===i?n="Ad":"percentStacked"===i&&(n="total");var o=t.map((function(t){return{type:"line",name:Yn.get(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:r.getVal(t),stack:n}}));if("total"===n){var a=[];o.forEach((function(t,e){a=0===e?c([],t.data,!0):a.map((function(e,n){return e+t.data[n]}))})),o.forEach((function(t){t.data=t.data.map((function(t,e){return a[e]<=0?0:t/a[e]}))}))}return o},e.prototype.getCategory=function(t){if(Yn.get(t,["c:cat","c:strRef"])){var e=Yn.get(t,["c:cat","c:strRef","c:strCache","c:pt"]);return Array.isArray(e)||(e=[e]),e.map((function(t){return Yn.get(t,["c:v"])}))}if(Yn.get(t,["c:cat","c:numRef"])){e=Yn.get(t,["c:cat","c:numRef","c:numCache","c:pt"]);return Array.isArray(e)||(e=[e]),e.map((function(t){return Yn.get(t,["c:v"])}))}},e.prototype.getVal=function(t){var e=Yn.get(t,["c:val","c:numRef","c:numCache","c:pt"]);return Array.isArray(e)||(e=[e]),e.map((function(t){return+Yn.get(t,["c:v"])}))},e}(xr);function kr(t){var e={},n=Yn.get(t,"attrs")||{};return Object.keys(n).forEach((function(t){switch(t){case"algn":e.align=n[t];break;case"marL":e.marginLeft=Qn(parseInt(n[t]));break;case"indent":e.indent=Qn(parseInt(n[t]));break;case"lvl":e.level=n[t]}})),Yn.get(t,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),e}function Lr(t,e,n){var r={},i=Yn.get(t,"attrs")||{};Object.keys(i).forEach((function(t){switch(t){case"sz":r.size=parseInt(i[t])/100;break;case"b":r.bold="1"===i[t];break;case"i":r.italic="1"===i[t];break;case"u":r.underline=i[t];break;case"strike":r.strike=i[t];break;case"order":case"dirty":break;default:r[t]=i[t]}}));var o=Yn.get(t,"a:solidFill");return o&&(r.color=ir(o,e,n)),r}function Dr(t,e,n,r,i){return l(this,void 0,void 0,(function(){var o,a,s,l,c,h,d,p,f,g,y,v,m,_,x,b,w,S,M,I,C;return u(this,(function(u){switch(u.label){case 0:for(s in a=[],o=e)a.push(s);l=0,u.label=1;case 1:if(!(l<a.length))return[3,17];if(!((s=a[l])in o))return[3,16];switch(c=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(h=Array.isArray(e[c])?e[c]:[e[c]],I=0;I<h.length;I++)m=h[I],t.push(new Sr(m,n,r,i));return[3,16];case 3:for(d=Array.isArray(e[c])?e[c]:[e[c]],I=0;I<d.length;I++)p=d[I],f=p["p:blipFill"]["a:blip"].attrs["r:embed"],g=r.rels[f].target,y=new Mr(g,p,n,r,i),t.push(y);return[3,16];case 4:for(v=Array.isArray(e[c])?e[c]:[e[c]],I=0;I<v.length;I++)m=v[I],t.push(new Sr(m,n,r,i));return[3,16];case 5:_=Array.isArray(e[c])?e[c]:[e[c]],I=0,u.label=6;case 6:if(!(I<_.length))return[3,13];switch(x=_[I],b=Yn.get(x,["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 t.push(new Ir(x,n,r,i)),[3,12];case 8:return[4,(w=new Ar(x,n,r,i)).parseNode()];case 9:return u.sent(),t.push(w),[3,12];case 10:return[4,(S=new Tr(x,n,r,i)).parseNode()];case 11:return u.sent(),t.push(S),[3,12];case 12:return I++,[3,6];case 13:return[3,16];case 14:for(M=Array.isArray(e[c])?e[c]:[e[c]],I=0;I<M.length;I++)C=M[I],t.push(new Cr(C,n,r,i));return[3,16];case 15:return[3,16];case 16:return l++,[3,1];case 17:return[2]}}))}))}var Pr=function(){function t(t,e,n){this.slideType="slide",this.rels={},this.background={type:"none"},this.nodes=[],this.name=t,this.source=e,this.pptx=n}return Object.defineProperty(t.prototype,"index",{get:function(){if(!this.name)return 0;var t=this.name.match(/(\d+)/);return t?parseInt(t[0]):1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_relsPath",{get:function(){return this.name.replace("slides/slide","slides/_rels/slide")+".rels"},enumerable:!1,configurable:!0}),t.prototype.load=function(){return l(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this._loadRels()];case 1:return t.sent(),this._loadBackground(),[4,this._loadNodes()];case 2:return t.sent(),[2]}}))}))},t.prototype._loadRels=function(){return l(this,void 0,void 0,(function(){var t,e,n,r=this;return u(this,(function(i){switch(i.label){case 0:return e=qn,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return t=e.apply(void 0,[i.sent()]),n=Yn.get(t,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach((function(t){switch(Yn.get(t,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":var e=t.attrs.Target.replace("../","ppt/");e.startsWith("/ppt")&&(e=e.substr(1)),r.slideLayout=r.pptx.getSlideLayout(e);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 n=t.attrs.Target.replace("../","ppt/");n.startsWith("/ppt")&&(n=n.substr(1)),r.rels[t.attrs.Id]={type:t.attrs.Type.split("/").pop(),target:n}}})),[2]}}))}))},t.prototype._loadBackground=function(){var t=Yn.get(this.source,["p:sld","p:cSld","p:bg","p:bgPr"]);t&&t["a:solidFill"]?this.background=ir(t["a:solidFill"],this.theme,this):t&&t["a:gradFill"]?this.background=ar(t["a:gradFill"],this.theme,this):t&&t["a:blipFill"]&&(this.background=or(t["a:blipFill"],this.pptx,this))},t.prototype._loadNodes=function(){return l(this,void 0,void 0,(function(){var t;return u(this,(function(e){switch(e.label){case 0:return t=Yn.get(this.source,["p:sld","p:cSld","p:spTree"]),[4,Dr(this.nodes,t,this.pptx,this)];case 1:return e.sent(),[2]}}))}))},t.prototype.getColorThemeName=function(t){return this.slideLayout.getColorThemeName(t)},t.prototype.getNodeInheritAttrsByType=function(t,e){var n=this.slideLayout.getNodeByType(t),r=Yn.get(n.source,e);return r||this.slideLayout.getNodeInheritAttrsByType(t,e)},t.prototype.getNodeInheritAttrsByIdx=function(t,e){var n=this.slideLayout.getNodeByIdx(t),r=Yn.get(n.source,e);return r||this.slideLayout.getNodeInheritAttrsByIdx(t,e)},t}(),Rr=function(){function t(t,e,n){this.slideType="slideLayout",this.rels={},this.background={type:"none"},this.nodes=[],this.name=t,this.source=e,this.pptx=n}return Object.defineProperty(t.prototype,"_relsPath",{get:function(){return this.name.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),t.prototype.load=function(){return l(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this._loadRels()];case 1:return t.sent(),[4,this._loadBackground()];case 2:return t.sent(),[4,this._loadNodes()];case 3:return t.sent(),[2]}}))}))},t.prototype._loadRels=function(){return l(this,void 0,void 0,(function(){var t,e,n,r=this;return u(this,(function(i){switch(i.label){case 0:return e=qn,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return t=e.apply(void 0,[i.sent()]),n=Yn.get(t,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach((function(t){switch(Yn.get(t,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":var e=t.attrs.Target.replace("../","ppt/");e.startsWith("/ppt")&&(e=e.substr(1)),r.slideMaster=r.pptx.getSlideMaster(e);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 n=t.attrs.Target.replace("../","ppt/");n.startsWith("/ppt")&&(n=n.substr(1)),r.rels[t.attrs.Id]={type:t.attrs.Type.split("/").pop(),target:n}}})),[2]}}))}))},t.prototype._loadBackground=function(){return l(this,void 0,void 0,(function(){var t;return u(this,(function(e){return(t=Yn.get(this.source,["p:sldLayout","p:cSld","p:bg","p:bgPr"]))&&t["a:solidFill"]?this.background=ir(t["a:solidFill"],this.theme):t&&t["a:gradFill"]?this.background=ar(t["a:gradFill"],this.theme,this):t&&t["a:blipFill"]&&(this.background=or(t["a:blipFill"],this.pptx,this)),[2]}))}))},t.prototype._loadNodes=function(){return l(this,void 0,void 0,(function(){var t;return u(this,(function(e){return t=Yn.get(this.source,["p:sldLayout","p:cSld","p:spTree"]),Dr(this.nodes,t,this.pptx,this),[2]}))}))},t.prototype.getColorThemeName=function(t){return this.slideMaster.getColorThemeName(t)},t.prototype.getNodeByType=function(t){return this.nodes.find((function(e){return e.type===t}))},t.prototype.getNodeByIdx=function(t){return this.nodes.find((function(e){return e.idx===t}))},t.prototype.getNodeInheritAttrsByType=function(t,e){var n=this.slideMaster.getNodeByType(t);return n&&Yn.get(n.source,e)},t.prototype.getNodeInheritAttrsByIdx=function(t,e){var n=this.slideMaster.getNodeByIdx(t);return n&&Yn.get(n.source,e)},t}(),Or=function(){function t(t,e,n){this.slideType="slideMaster",this.rels={},this.background={type:"none"},this.textStyles={titleStyle:{},bodyStyle:{},otherStyle:{}},this.defaultTextStyle={},this.nodes=[],this.tableStyles={},this.name=t,this.source=e,this.pptx=n,this.load()}return Object.defineProperty(t.prototype,"_relsPath",{get:function(){return this.name.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels"},enumerable:!1,configurable:!0}),t.prototype.load=function(){return l(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this._parseRels()];case 1:return t.sent(),this._parseColorMap(),this._parseBackground(),this._parseTextStyles(),this._parseTableStyles(),this._parseDefaultTextStyle(),this._loadNodes(),[2]}}))}))},t.prototype._parseRels=function(){return l(this,void 0,void 0,(function(){var t,e,n,r=this;return u(this,(function(i){switch(i.label){case 0:return e=qn,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return t=e.apply(void 0,[i.sent()]),n=Yn.get(t,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach((function(t){switch(Yn.get(t,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":var e=t.attrs.Target.replace("../","ppt/");e.startsWith("/ppt")&&(e=e.substr(1)),r.theme=r.pptx.getTheme(e);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 n=t.attrs.Target.replace("../","ppt/");n.startsWith("/ppt")&&(n=n.substr(1)),r.rels[t.attrs.Id]={type:t.attrs.Type.split("/").pop(),target:n}}})),[2]}}))}))},t.prototype._parseColorMap=function(){this.colorMap=Yn.omit(Yn.get(this.source,["p:sldMaster","p:clrMap","attrs"])||{},["order"])},t.prototype.getColorThemeName=function(t){return this.colorMap[t]||t},t.prototype._parseBackground=function(){var t=Yn.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),e=Yn.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);t&&t["a:solidFill"]?this.background=ir(t["a:solidFill"],this.theme,this):t&&t["a:gradFill"]?this.background=ar(t["a:gradFill"],this.theme,this):t&&t["a:blipFill"]?this.background=or(t["a:blipFill"],this.pptx,this):e&&(this.background=ir(e,this.theme,this))},t.prototype._parseDefaultTextStyle=function(){var t=this,e=this.pptx.defaultTextStyleSource;Object.keys(e).forEach((function(n){if(n.startsWith("a:")&&n.endsWith("pPr")){var r=n.substr(2,n.length-5),i=Yn.get(e[n],["a:defRPr"]);t.defaultTextStyle[r]={props:kr(e[n]),defRPr:Lr(i,t.theme,t)}}}))},t.prototype._parseTextStyles=function(){var t=this,e=Yn.get(this.source,["p:sldMaster","p:txStyles"]);["titleStyle","bodyStyle","otherStyle"].forEach((function(n){var r=t.textStyles[n],i=Yn.get(e,"p:".concat(n))||{};Object.keys(i).forEach((function(e){if(e.startsWith("a:")&&e.endsWith("pPr")){var n=e.substr(2,e.length-5);r[n]={},r[n].props=kr(i[e]);var o=Yn.get(i[e],["a:defRPr"]);r[n].defRPr=Lr(o,t.theme,t)}}))}))},t.prototype._parseTableStyles=function(){var t=this,e={},n=Yn.get(this.pptx.tableStyles,["a:tblStyleLst","a:tblStyle"])||[];Array.isArray(n)||(n=[n]),n.forEach((function(n){var r=Yn.get(n,["attrs","styleId"]);e[r]={},Object.keys(n).forEach((function(i){if(i.startsWith("a:")){var o=i.substr(2);e[r][o]={};var a=Yn.get(n[i],["a:tcStyle"]);if(a){var s={};Yn.get(a,["a:fill","a:solidFill"])&&(s.background=ir(Yn.get(a,["a:fill","a:solidFill"]),t.theme,t));var l=Yn.get(a,"a:tcBdr");l&&(s.border={},Object.keys(l).forEach((function(e){if(e.startsWith("a:")){var n=e.substr(2),r=Yn.get(l[e],["a:ln"]);s.border[n]=wr(r,t.theme,t)}}))),e[r][o].tcStyle=s}var u=Yn.get(n[i],["a:tcTxStyle"]);if(u){var c={};c.color=ir(u,t.theme,t),"on"===Yn.get(u,["attrs","b"])&&(c.bold=!0),e[r][o].tcTxStyle=c}}}))})),this.tableStyles=e},t.prototype._loadNodes=function(){return l(this,void 0,void 0,(function(){var t;return u(this,(function(e){return t=Yn.get(this.source,["p:sldMaster","p:cSld","p:spTree"]),Dr(this.nodes,t,this.pptx,this),[2]}))}))},t.prototype.getNodeByType=function(t){return this.nodes.find((function(e){return e.type===t}))},t.prototype.getNodeByIdx=function(t){return this.nodes.find((function(e){return e.idx===t}))},t.prototype.getNodeInheritAttrsByType=function(t,e){},t.prototype.getNodeInheritAttrsByIdx=function(t,e){},t}(),Er=function(){function t(t,e,n){this.clrScheme={},this.borderScheme=[],this.name=t,this.source=e,this.pptx=n,this._parseClrScheme(),this._parseLineStyleLst()}return t.prototype._parseClrScheme=function(){var t=Yn.get(this.source,["a:theme","a:themeElements","a:clrScheme"]);for(var e in t)if(e.startsWith("a:")){var n=e.substring(2),r=Yn.get(t[e],["a:sysClr","attrs","lastClr"])||Yn.get(t[e],["a:srgbClr","attrs","val"]);this.clrScheme[n]="#"+r}},t.prototype._parseLineStyleLst=function(){var t=this,e=Yn.get(this.source,["a:theme","a:themeElements","a:fmtScheme","a:lnStyleLst","a:ln"])||[];this.borderScheme=e.map((function(e){var n={color:{}};return Yn.get(e,["attrs","w"])&&(n.width=Qn(parseInt(Yn.get(e,["attrs","w"])))),Yn.get(e,["attrs","algn"])&&(n.algn=Yn.get(e,["attrs","algn"])),Yn.get(e,["attrs","cap"])&&(n.cap=Yn.get(e,["attrs","cap"])),Yn.get(e,["attrs","cmpd"])&&(n.cmpd=Yn.get(e,["attrs","cmpd"])),Yn.get(e,["a:miter","attrs","lim"])&&(n.miterLim=Qn(parseInt(Yn.get(e,["a:miter","attrs","lim"])))),Yn.get(e,["a:prstDash","attrs","val"])&&(n.type=Yn.get(e,["a:prstDash","attrs","val"])),Yn.get(e,["a:solidFill"])&&(n.color=ir(Yn.get(e,["a:solidFill"]),t)),n}))},t.prototype.getColor=function(t){if("phClr"!==t)return this.clrScheme[t]||this.defaultColor},t.prototype.getLineStyle=function(t){return this.borderScheme[t-1]},t}();var Nr=function(){function t(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={},this.wps=!1}return t.prototype.load=function(t){return l(this,void 0,void 0,(function(){var e,n;return u(this,(function(r){switch(r.label){case 0:return e=new Hn,n=this,[4,e.loadAsync(t)];case 1:return n._zipContents=r.sent(),[4,this._loadThumbnail()];case 2:return r.sent(),[4,this._loadMedia()];case 3:return r.sent(),[4,this._loadPresentation()];case 4:return r.sent(),[4,this._loadContentTypes()];case 5:return r.sent(),[2]}}))}))},t.prototype._loadThumbnail=function(){return l(this,void 0,void 0,(function(){var t;return u(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),this._zipContents.files["docProps/thumbnail.jpeg"]?[4,this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")]:[3,2];case 1:t=e.sent(),this.thumbnail="data:image/jpeg;base64,"+t,e.label=2;case 2:return[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}}))}))},t.prototype._loadPresentation=function(){return l(this,void 0,void 0,(function(){var t,e,n,r,i,o;return u(this,(function(a){switch(a.label){case 0:return a.trys.push([0,4,,5]),[4,this._zipContents.files["ppt/presentation.xml"].async("text")];case 1:return t=a.sent(),e=qn(t),n=e["p:presentation"]["p:sldSz"].attrs,this.width=Qn(parseInt(n.cx)),this.height=Qn(parseInt(n.cy)),this.defaultTextStyleSource=Yn.get(e,["p:presentation","p:defaultTextStyle"]),this._zipContents.files["docProps/app.xml"]?[4,this._zipContents.files["docProps/app.xml"].async("text")]:[3,3];case 2:r=a.sent(),i=qn(r),o=Yn.get(i,["Properties","Application"]),this.wps=(null==o?void 0:o.includes("WPS"))||!1,a.label=3;case 3:return[3,5];case 4:return a.sent(),[3,5];case 5:return[2]}}))}))},t.prototype._loadContentTypes=function(){return l(this,void 0,void 0,(function(){var t,e,n,r,i,o,a,s,l,c,h,d,p,f,g,y,v,m,_,x,b;return u(this,(function(u){switch(u.label){case 0:return u.trys.push([0,22,,23]),e=qn,[4,this._zipContents.files["[Content_Types].xml"].async("text")];case 1:if(t=e.apply(void 0,[u.sent()]),n=t.Types.Override,!(r=n.filter((function(t){return"application/vnd.openxmlformats-officedocument.theme+xml"===t.attrs.ContentType}))))return[3,5];i=0,o=r,u.label=2;case 2:return i<o.length?(a=o[i],m=a.attrs.PartName.substr(1),s=qn,[4,this._zipContents.files[m].async("text")]):[3,5];case 3:_=s.apply(void 0,[u.sent()]),this.themes.push(new Er(m,_,this)),u.label=4;case 4:return i++,[3,2];case 5:return(l=n.find((function(t){return"application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"===t.attrs.ContentType})))?(m=l.attrs.PartName.substr(1),c=qn,[4,this._zipContents.files[m].async("text")]):[3,7];case 6:_=c.apply(void 0,[u.sent()]),this.tableStyles=_,u.label=7;case 7:h=n.filter((function(t){return"application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"===t.attrs.ContentType})),v=0,u.label=8;case 8:return v<h.length?(m=h[v].attrs.PartName.substr(1),d=qn,[4,this._zipContents.files[m].async("text")]):[3,11];case 9:_=d.apply(void 0,[u.sent()]),this.slideMaster.push(new Or(m,_,this)),u.label=10;case 10:return v++,[3,8];case 11:p=n.filter((function(t){return"application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"===t.attrs.ContentType})),v=0,u.label=12;case 12:return v<p.length?(m=p[v].attrs.PartName.substr(1),f=qn,[4,this._zipContents.files[m].async("text")]):[3,16];case 13:return _=f.apply(void 0,[u.sent()]),[4,(g=new Rr(m,_,this)).load()];case 14:u.sent(),this.slideLayouts.push(g),u.label=15;case 15:return v++,[3,12];case 16:y=n.filter((function(t){return"application/vnd.openxmlformats-officedocument.presentationml.slide+xml"===t.attrs.ContentType})),v=0,u.label=17;case 17:return v<y.length?(m=y[v].attrs.PartName.substr(1),x=qn,[4,this._zipContents.files[m].async("text")]):[3,21];case 18:return _=x.apply(void 0,[u.sent()]),[4,(b=new Pr(m,_,this)).load()];case 19:u.sent(),this.slides.push(b),u.label=20;case 20:return v++,[3,17];case 21:return this.slides.sort((function(t,e){return t.index-e.index})),[3,23];case 22:return u.sent(),[3,23];case 23:return[2]}}))}))},t.prototype._loadMedia=function(){return l(this,void 0,void 0,(function(){var t,e,n,r,i,o,a,s,l,c,h,d,p,f=this;return u(this,(function(u){switch(u.label){case 0:t=Object.keys(this._zipContents.files).filter((function(t){return t.startsWith("ppt/media/image")})).map((function(t){return f._zipContents.files[t]})),e=0,n=t,u.label=1;case 1:return e<n.length?(r=n[e],i=function(t){var e;switch(t){case"jpg":case"jpeg":e="image/jpeg";break;case"png":e="image/png";break;case"gif":e="image/gif";break;case"emf":e="image/x-emf";break;case"wmf":e="image/x-wmf";break;default:e="image/*"}return e}((g=r.name).substr(2+(~-g.lastIndexOf(".")>>>0))),[4,r.async("base64")]):[3,4];case 2:o=u.sent(),this.medias[r.name]="data:".concat(i,";base64,").concat(o),u.label=3;case 3:return e++,[3,1];case 4:a=Object.keys(this._zipContents.files).filter((function(t){return t.startsWith("ppt/media/media")&&["mp3","wav","ogg","mp4","webm"].includes(t.split(".").pop().toLowerCase())})).map((function(t){return f._zipContents.files[t]})),s=0,l=a,u.label=5;case 5:return s<l.length?(c=l[s],h=c.name.split(".").pop().toLowerCase(),[4,c.async("arraybuffer")]):[3,8];case 6:d=u.sent(),p=new Blob([d],{type:"".concat(["mp3","wav"].includes(h)?"audio":"video","/").concat(h)}),this.medias[c.name]=URL.createObjectURL(p),u.label=7;case 7:return s++,[3,5];case 8:return[2]}var g}))}))},t.prototype.getXmlByPath=function(t){return l(this,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:if(!this._zipContents.files[t])throw new Error("文件不存在");return[4,this._zipContents.files[t].async("text")];case 1:return[2,e.sent()]}}))}))},t.prototype.getSlideLayout=function(t){return this.slideLayouts.find((function(e){return e.name===t}))},t.prototype.getSlideMaster=function(t){return this.slideMaster.find((function(e){return e.name===t}))},t.prototype.getTheme=function(t){return this.themes.find((function(e){return e.name===t}))},t.prototype.getMedia=function(t){return this.medias[t]},t}();function zr(t){var e=t.extend,n=t.offset,r=t.clip,i=t.base64,o=t.audioFile,a=t.videoFile,s=document.createElement("div");s.style.setProperty("position","absolute"),s.style.setProperty("left",n.x+"px"),s.style.setProperty("top",n.y+"px");var l,u,c,h,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"),r?(l=e.w/(1-(void 0===r.l?0:r.l)-(void 0===r.r?0:r.r)),u=e.h/(1-(void 0===r.t?0:r.t)-(void 0===r.b?0:r.b)),c=-1*l*(void 0===r.l?0:r.l),h=-1*u*(void 0===r.t?0:r.t)):(l=e.w,u=e.h,c=0);var p=document.createElement("img");if(p.src=i,p.width=l,p.height=u,p.style.setProperty("position","absolute"),p.style.setProperty("left",c+"px"),p.style.setProperty("top",h+"px"),d.append(p),s.append(d),o){var f=document.createElement("audio");f.style.position="absolute",f.style.left="0",f.style.top="0",f.src=o,f.controls=!0,f.style.transform="translate(-50%)",s.append(f)}if(a){var g=document.createElement("video");g.style.position="absolute",g.style.left="0",g.style.top="0",g.width=e.w,g.height=e.h,g.src=a,g.controls=!0,s.append(g)}return s}function Br(t,e,n){var r,i=t.props,o=t.text,a=s(s({},e),i),l=document.createElement("span");l.innerHTML="string"==typeof o?o:"";var u=18;a.size&&((null===(r=null==n?void 0:n.normAutofit)||void 0===r?void 0:r.fontScale)?(u=a.size*n.normAutofit.fontScale,l.style.fontSize=u+"px"):(u=a.size,l.style.fontSize=u+"px"));var c=dr(a.color);c&&(l.style.color=c);var h=/^[^\u4e00-\u9fff]+$/;if(a.typeface)switch(l.style.fontFamily=a.typeface,a.typeface){case"DengXian":h.test(o)&&(l.style.letterSpacing=-.04*u+"px");break;case"DengXian Light":h.test(o)&&(l.style.letterSpacing=-.05*u+"px");break;case"STLiti":case"SimSun":case"NSimSun":case"SimHei":h.test(o)&&(l.style.fontSize=.85*parseInt(l.style.fontSize)+"px");break;case"华文中宋":case"Fira Sans Extra Condensed Medium":l.style.fontSize=.85*parseInt(l.style.fontSize)+"px";break;case"FangSong":l.style.letterSpacing=-.08*u+"px"}else h.test(o)&&(l.style.letterSpacing=-.04*u+"px");return a.bold&&(l.style.fontWeight="bold"),a.italic&&(l.style.fontStyle="italic"),a.underline&&"none"!==a.underline&&(l.style.textDecoration="underline"),a.background&&(l.style.backgroundColor=dr(a.background)),l.style.wordBreak="break-word",l}function Vr(t,e,n){var r=document.createElement("span"),i=t.firstElementChild;switch(r.style.fontSize=i.style.fontSize,r.style.color=i.style.color,r.style.fontWeight=i.style.fontWeight,r.style.fontStyle=i.style.fontStyle,r.style.marginRight="10px",e.buAutoNum){case"arabicPeriod":default:r.textContent=n+".";break;case"circleNumDbPlain":r.textContent=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"][n-1]||n+"";break;case"romanUcPeriod":r.textContent=function(t){var e=[{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("number"!=typeof t||t<1||t>3999)throw new Error("Input must be a number between 1 and 3999.");for(var n="",r=0;r<e.length;r++)for(;t>=e[r].value;)n+=e[r].numeral,t-=e[r].value;return n}(n)+".";break;case"alphaUcPeriod":r.textContent=rr(n)+".";break;case"alphaLcPeriod":r.textContent=rr(n).toLowerCase()+".";break;case"alphaLcParenR":r.textContent=rr(n).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":r.textContent=function(t){var e=["〇","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(t)||t<0)return"";for(var n="",r=t.toString(),i=0;i<r.length;i++)n+=e[parseInt(r[i],10)];return n}(n)+"."}t.prepend(r)}function Fr(t,e,n){var r,i,o,a;void 0===e&&(e=0),void 0===n&&(n={});var l=t.inheritProps,u=t.inheritRProps,c=t.props,h=t.rows,d=s(s({},l),c),p=function(){for(var t,e,r=0,i=0,o=h;i<o.length;i++){var a=o[i];a.props&&a.props.size&&(r=Math.max(r,a.props.size))}var s=(null===(e=null===(t=null==n?void 0:n.bodyProps)||void 0===t?void 0:t.normAutofit)||void 0===e?void 0:e.fontScale)||1;return(r||u.size||18)*s},f=document.createElement("div"),g=n.isFirst?0:d.spaceBefore||0,y=n.isLast?0:d.spaceAfter||0;f.style.margin="".concat(Math.floor(.2*p()),"px 0 0 0"),f.style.padding="".concat(Math.floor(g),"px 0px ").concat(Math.floor(y),"px 0px");var v=document.createElement("p");v.style.margin="0",v.style.padding="0px",v.style.wordBreak="break-word";v.style.textAlign=d.align&&{ctr:"center",l:"left",r:"right",dist:"justify"}[d.align]||"center","dist"===d.align&&(v.style.textAlignLast="justify");var m=d.hasOwnProperty("lineHeight")?d.lineHeight:1;if((null===(i=null===(r=n.bodyProps)||void 0===r?void 0:r.normAutofit)||void 0===i?void 0:i.lnSpcReduction)&&(m*=1-(null===(a=null===(o=n.bodyProps)||void 0===o?void 0:o.normAutofit)||void 0===a?void 0:a.lnSpcReduction)),v.style.lineHeight=m+"",v.style.fontSize=p()+"px",h.length){for(var _=0,x=h;_<x.length;_++){var b=x[_];b.isBr?v.appendChild(document.createElement("br")):v.appendChild(Br(b,s(s({},u),{marginTop:Math.floor(.2*p())}),n.bodyProps))}d.buAutoNum?Vr(v,d,e):d.buChar&&function(t,e){var n=document.createElement("span"),r=t.firstElementChild;n.style.color=r.style.color,n.style.fontSize=r.style.fontSize,n.textContent={n:"■",l:"●",u:"◆",p:"□","ü":"✔","Ø":"➢","•":"•"}[e.buChar]||"■",n.style.marginRight="10px",t.prepend(n)}(v,d),v.style.paddingLeft=(d.marginLeft||0)+(d.indent||0)+"px"}else{var w=document.createElement("span");w.innerHTML="&nbsp;",w.style.fontSize=u.size+"px",v.appendChild(w)}return f.appendChild(v),f}var Gr="http://www.w3.org/2000/svg";function jr(t){return document.createElementNS(Gr,t)}function Wr(t){var e=t.extend;return.16667*Math.min(e.w,e.h)}function Hr(t,e,n){void 0===n&&(n=0);var r=e.prstGeom,i=((null==r?void 0:r.gd)||[]).find((function(e){return e.name===t}));return i?i.fmla:n}function Ur(t,e,n){void 0===n&&(n=0);var r=e.extend,i=e.prstGeom,o=((null==i?void 0:i.gd)||[]).find((function(e){return e.name===t}));return o?Math.min(r.w,r.h)*o.fmla:n}function Zr(t,e,n){void 0===n&&(n=0);var r=e.extend,i=e.prstGeom,o=((null==i?void 0:i.gd)||[]).find((function(e){return e.name===t}));return o?Math.max(r.w,r.h)*o.fmla:n}function Yr(t,e){var n=0;switch(t){case"sm":n=1*e;break;case"med":n=1.5*e;break;case"lg":n=2.5*e}return Math.max(n,2)}function Xr(t,e,n,r){void 0===r&&(r=!1);var i=t.border,o=void 0===i?{}:i,a=t.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=r?s:c,d=h.len,p=void 0===d?"med":d,f=h.w,g=void 0===f?"med":f,y=Yr(p,l),v=Yr(g,l),m=jr("defs"),_=jr("marker"),x="marker-".concat(a,"-").concat(r?"start":"end");_.setAttribute("id",x),_.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*v)),_.setAttribute("refX",y+"px"),_.setAttribute("refY",v+"px"),_.setAttribute("markerWidth",2*y+"px"),_.setAttribute("markerHeight",2*v+"px"),_.setAttribute("orient","auto"),_.setAttribute("markerUnits","userSpaceOnUse");var b=jr("ellipse");b.setAttribute("cx",y+"px"),b.setAttribute("cy",v+"px"),b.setAttribute("rx",y+"px"),b.setAttribute("ry",v+"px"),b.setAttribute("fill",dr(u)||"transparent"),_.appendChild(b),m.appendChild(_),e.appendChild(m),n.setAttribute(r?"marker-start":"marker-end","url(#".concat(x,")"))}function qr(t,e,n,r){void 0===r&&(r=!1);var i=t.border,o=void 0===i?{}:i,a=t.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=r?s:c,d=h.len,p=void 0===d?"med":d,f=h.w,g=void 0===f?"med":f,y=Yr(p,l),v=Yr(g,l),m=jr("defs"),_=jr("marker"),x="marker-".concat(a,"-").concat(r?"start":"end");_.setAttribute("id",x),_.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*v)),_.setAttribute("refX",(r?.9*y:1.1*y)+"px"),_.setAttribute("refY",v+"px"),_.setAttribute("markerWidth",2*y+"px"),_.setAttribute("markerHeight",2*v+"px"),_.setAttribute("orient","auto"),_.setAttribute("markerUnits","userSpaceOnUse");var b=jr("path"),w=r?["M ".concat(2*y,",0"),"L 0,".concat(v),"L ".concat(2*y,",").concat(2*v),"Z"].join(" "):["M 0,0","L ".concat(2*y,",").concat(v),"L 0,".concat(2*v),"Z"].join(" ");b.setAttribute("d",w),b.setAttribute("fill",dr(u)||"transparent"),_.appendChild(b),m.appendChild(_),e.appendChild(m),n.setAttribute(r?"marker-start":"marker-end","url(#".concat(x,")"))}function Kr(t,e,n,r){void 0===r&&(r=!1);var i=t.border,o=void 0===i?{}:i,a=t.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=r?s:c,d=h.len,p=void 0===d?"med":d,f=h.w,g=void 0===f?"med":f,y=Yr(p,l),v=Yr(g,l),m=jr("defs"),_=jr("marker"),x="marker-".concat(a,"-").concat(r?"start":"end");_.setAttribute("id",x),_.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*v)),_.setAttribute("refX",y+"px"),_.setAttribute("refY",v+"px"),_.setAttribute("markerWidth",2*y+"px"),_.setAttribute("markerHeight",2*v+"px"),_.setAttribute("orient","auto"),_.setAttribute("markerUnits","userSpaceOnUse");var b=jr("path"),w=["M 0,".concat(v),"L ".concat(y,",0"),"L ".concat(2*y,",").concat(v),"L ".concat(y,",").concat(2*v),"Z"].join(" ");b.setAttribute("d",w),b.setAttribute("fill",dr(u)||"transparent"),_.appendChild(b),m.appendChild(_),e.appendChild(m),n.setAttribute(r?"marker-start":"marker-end","url(#".concat(x,")"))}function $r(t,e,n,r){void 0===r&&(r=!1);var i=t.border,o=void 0===i?{}:i,a=t.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=r?s:c,d=h.len,p=void 0===d?"med":d,f=h.w,g=void 0===f?"med":f,y=Yr(p,l),v=Yr(g,l),m=jr("defs"),_=jr("marker"),x="marker-".concat(a,"-").concat(r?"start":"end");_.setAttribute("id",x),_.setAttribute("viewBox","0 0 ".concat(2*y+2*l," ").concat(2*v+2*l));var b=r?"lg"===g?2*l:3*l:"lg"===g?2*y:2*y-l;_.setAttribute("refX",b+"px"),_.setAttribute("refY",v+l+"px"),_.setAttribute("markerWidth",2*y+"px"),_.setAttribute("markerHeight",2*v+"px"),_.setAttribute("orient","auto"),_.setAttribute("markerUnits","userSpaceOnUse");var w=jr("path"),S=r?["M ".concat(2*y+l,", ").concat(l),"L ".concat(l,",").concat(v+l),"L ".concat(2*y+l,",").concat(2*v+l)].join(" "):["M ".concat(l,", ").concat(l),"L ".concat(2*y+l,",").concat(v+l),"L ".concat(l,",").concat(2*v+l)].join(" ");w.setAttribute("d",S),w.setAttribute("stroke-width",l+"px"),w.setAttribute("stroke",dr(u)||"transparent"),w.setAttribute("fill","transparent"),w.setAttribute("stroke-linecap","round"),w.setAttribute("stroke-linejoin","miter"),w.style.overflow="visible",_.appendChild(w),m.appendChild(_),e.appendChild(m),n.setAttribute(r?"marker-start":"marker-end","url(#".concat(x,")"))}function Qr(t,e,n,r){void 0===r&&(r=!1);var i=t.border,o=void 0===i?{}:i,a=t.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=r?s:c,d=h.len,p=void 0===d?"med":d,f=h.w,g=void 0===f?"med":f,y=Yr(p,l),v=Yr(g,l),m=jr("defs"),_=jr("marker"),x="marker-".concat(a,"-").concat(r?"start":"end");_.setAttribute("id",x),_.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*v));var b=r?"sm"===g?1.5*l:2*l:"sm"===g?2*y-1.5*l:2*y-2*l;_.setAttribute("refX",b+"px"),_.setAttribute("refY",v+"px"),_.setAttribute("markerWidth",2*y+"px"),_.setAttribute("markerHeight",2*v+"px"),_.setAttribute("orient","auto"),_.setAttribute("markerUnits","userSpaceOnUse");var w=jr("path"),S=r?["M 0, ".concat(v),"L ".concat(2*y,",0"),"L ".concat(y,",").concat(v),"L ".concat(2*y,",").concat(2*v),"Z"].join(" "):["M 0,0","L ".concat(2*y,",").concat(v),"L 0,".concat(2*v),"L ".concat(y,",").concat(v),"Z"].join(" ");w.setAttribute("d",S),w.setAttribute("fill",dr(u)||"transparent"),w.style.overflow="visible",_.appendChild(w),m.appendChild(_),e.appendChild(m),n.setAttribute(r?"marker-start":"marker-end","url(#".concat(x,")"))}function Jr(t,e,n){var r=t.border,i=void 0===r?{}:r;t.extend;var o=i.headEnd,a=i.tailEnd;if(o&&"none"!==o.type)switch(o.type){case"triangle":qr(t,e,n,!0);break;case"oval":Xr(t,e,n,!0);break;case"diamond":Kr(t,e,n,!0);break;case"arrow":$r(t,e,n,!0);break;case"stealth":Qr(t,e,n,!0)}if(a&&"none"!==a.type)switch(a.type){case"triangle":qr(t,e,n,!1);break;case"oval":Xr(t,e,n,!1);break;case"diamond":Kr(t,e,n,!1);break;case"arrow":$r(t,e,n,!1);break;case"stealth":Qr(t,e,n,!1)}}function ti(t){var e=t.extend,n=jr("rect");return n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("width",e.w+"px"),n.setAttribute("height",e.h+"px"),n}function ei(t,e,n,r,i){var o=t*Math.PI/180;return[0===o||o===2*Math.PI?e+r:o===Math.PI?e-r:o===Math.PI/2||o===3*Math.PI/2?e:o>0&&o<Math.PI/2||o>3*Math.PI/2&&o<2*Math.PI?e+Math.sqrt(1/(1/Math.pow(r,2)+Math.pow(Math.tan(o),2)/Math.pow(i,2))):e-Math.sqrt(1/(1/Math.pow(r,2)+Math.pow(Math.tan(o),2)/Math.pow(i,2))),0===o||o===2*Math.PI||o===Math.PI?n:o===Math.PI/2?n+i:o===3*Math.PI/2?n-i:o>Math.PI&&o<2*Math.PI?n-Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(1/Math.tan(o),2)/Math.pow(r,2))):n+Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(1/Math.tan(o),2)/Math.pow(r,2)))]}function ni(t,e){var n=0;return(e>t&&e-t>180||e<t&&t-e<180)&&(n=1),n}function ri(t){var e=t.extend,n=.146*e.w,r=.146*e.h;return{top:r,bottom:r,left:n,right:n,w:e.w-2*n,h:e.h-2*r}}function ii(t){var e=t.extend,n=t.offset,r=t.border,i=t.background,o=t.rotate,a=t.flipH,l=t.flipV,u=document.createElement("div"),c=n.x,h=n.y;u.className="shape-wrapper shape-".concat(t.shape),u.style.setProperty("position","absolute"),u.style.setProperty("width",(e.w||1)+"px"),u.style.setProperty("height",(e.h||1)+"px"),u.style.setProperty("left",c+"px"),u.style.setProperty("top",h+"px");var d,p=document.createElementNS(Gr,"svg");p.style.setProperty("position","absolute"),p.setAttribute("width","100%"),p.setAttribute("height","100%"),p.style.setProperty("left","0"),p.style.setProperty("top","0"),p.style.overflow="visible";var f={left:0,top:0,bottom:0,w:e.w,h:e.h},g=!0;switch(t.shape){case"customGeom":d=function(t){var e=t.prstGeom,n=void 0===e?{}:e,r=t.extend,i=n.pathList,o=n.w,a=n.h,s=jr("path"),l={moveTo:"M",lnTo:"L",cubicBezTo:"C",close:"Z"},u=r.w/o,c=r.h/a,h=i.map((function(t){var e=l[t.type],n=Array.isArray(t.points)?t.points.map((function(t){return"".concat(t[0]*u,",").concat(t[1]*c)})).join(" "):"";return n?"".concat(e," ").concat(n):"".concat(e)})).join(" ");return s.setAttribute("d",h),s.style.fillRule="evenodd",s}(t),Jr(t,p,d);break;case"flowChartProcess":case"rect":d=ti(t);break;case"snip1Rect":d=function(t){var e=t.extend,n=jr("polygon"),r=Ur("adj",t,Wr(t)),i=["0,0","".concat(e.w-r,",0"),"".concat(e.w,",").concat(r),"".concat(e.w,",").concat(e.h),"0,".concat(e.h)].join(" ");return n.setAttribute("points",i),n}(t);break;case"snip2SameRect":d=function(t){var e=t.extend,n=jr("polygon"),r=Ur("adj1",t,Wr(t)),i=Ur("adj2",t,0),o=[[r,0],[e.w-r,0],[e.w,r],[e.w,e.h-i],[e.w-i,e.h],[i,e.h],[0,e.h-i],[0,r]].map((function(t){return"".concat(t[0],",").concat(t[1])})).join(" ");return n.setAttribute("points",o),n}(t);break;case"snip2DiagRect":d=function(t){var e=t.extend,n=jr("polygon"),r=Ur("adj1",t,0),i=Ur("adj2",t,Wr(t)),o=[[r,0],[e.w-i,0],[e.w,i],[e.w,e.h-r],[e.w-r,e.h],[i,e.h],[0,e.h-i],[0,r]].map((function(t){return"".concat(t[0],",").concat(t[1])})).join(" ");return n.setAttribute("points",o),n}(t);break;case"snipRoundRect":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj1",t,Wr(t)),i=Ur("adj2",t,Wr(t)),o=["M ".concat(r,",0"),"L ".concat(e.w-i,",0"),"L ".concat(e.w,",").concat(i),"L ".concat(e.w,",").concat(e.h),"L 0,".concat(e.h),"L 0,".concat(r),"Q 0,0 ".concat(r,",0"),"Z"].join(" ");return n.setAttribute("d",o),n}(t);break;case"roundRect":d=function(t){var e=ti(t),n=Ur("adj",t,Wr(t));return e.setAttribute("rx",n+"px"),e.setAttribute("ry",n+"px"),e}(t);break;case"round1Rect":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj",t,Wr(t)),i=["M 0,0","L ".concat(e.w-r,",0"),"Q ".concat(e.w,",0 ").concat(e.w,",").concat(r),"L ".concat(e.w,",").concat(e.h),"L 0,".concat(e.h),"Z"].join(" ");return n.setAttribute("d",i),n}(t);break;case"round2SameRect":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj1",t,Wr(t)),i=Ur("adj2",t,0),o=["M ".concat(r,",0"),"L ".concat(e.w-r,",0"),"Q ".concat(e.w,",0 ").concat(e.w,",").concat(r),"L ".concat(e.w,",").concat(e.h-i),"Q ".concat(e.w,",").concat(e.h," ").concat(e.w-i,",").concat(e.h),"L ".concat(i,",").concat(e.h),"Q 0,".concat(e.h," 0,").concat(e.h-i),"L 0,".concat(r),"Q 0,0 ".concat(r,",0"),"Z"].join(" ");return n.setAttribute("d",o),n}(t);break;case"round2DiagRect":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj1",t,Wr(t)),i=Ur("adj2",t,0),o=["M ".concat(r,",0"),"L ".concat(e.w-i,",0"),"Q ".concat(e.w,",0 ").concat(e.w,",").concat(i),"L ".concat(e.w,",").concat(e.h-r),"Q ".concat(e.w,",").concat(e.h," ").concat(e.w-r,",").concat(e.h),"L ".concat(i,",").concat(e.h),"Q 0,".concat(e.h," 0,").concat(e.h-i),"L 0,".concat(r),"Q 0,0 ".concat(r,",0"),"Z"].join(" ");return n.setAttribute("d",o),n}(t);break;case"triangle":d=function(t){var e=t.extend,n=jr("polygon"),r=["".concat(e.w/2,",0"),"0,".concat(e.h),"".concat(e.w,",").concat(e.h)].join(" ");return n.setAttribute("points",r),n}(t);break;case"rtTriangle":d=function(t){var e=t.extend,n=jr("polygon"),r=["0,".concat(e.h),"0,0","".concat(e.w,",").concat(e.h)].join(" ");return n.setAttribute("points",r),n}(t);break;case"ellipse":d=function(t){var e=t.extend,n=jr("ellipse"),r=e.w/2,i=e.h/2,o=r,a=i;return n.setAttribute("cx",r+"px"),n.setAttribute("cy",i+"px"),n.setAttribute("rx",o+"px"),n.setAttribute("ry",a+"px"),n}(t);break;case"line":d=function(t){var e=t.extend,n=jr("path"),r=["M 0,0","L ".concat(e.w,",").concat(e.h)].join(" ");return n.setAttribute("d",r),n}(t),Jr(t,p,d),g=!1;break;case"straightConnector1":d=function(t){var e=t.extend,n=jr("path"),r=["M 0,0","L ".concat(e.w,",").concat(e.h)].join(" ");return n.setAttribute("d",r),n}(t),Jr(t,p,d),g=!1;break;case"bentConnector3":d=function(t){var e=t.extend,n=jr("path"),r=Zr("adj1",t,.5*Math.max(e.w,e.h)),i=["M 0,0","L ".concat(r,",0"),"L ".concat(r,",").concat(e.h),"L ".concat(e.w,",").concat(e.h)].join(" ");return n.setAttribute("d",i),n}(t),Jr(t,p,d),g=!1;break;case"curvedConnector3":d=function(t){var e=t.extend,n=jr("path"),r=Zr("adj1",t,.5*Math.max(e.w,e.h)),i=["M0,0","Q".concat(r,",0 ").concat(r,",").concat(e.h/2),"T".concat(e.w,",").concat(e.h)].join(" ");return n.setAttribute("d",i),n}(t),Jr(t,p,d),g=!1;break;case"parallelogram":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj",t,.5*Math.min(e.w,e.h)),i=["M".concat(r,",0"),"L".concat(e.w,",0"),"L".concat(e.w-r,",").concat(e.h),"L0,".concat(e.h),"Z"].join(" ");return n.setAttribute("d",i),n}(t),f=function(t){var e=t.extend,n=Ur("adj",t,.5*Math.min(e.w,e.h)),r=.84*(e.w-n),i=.08*e.h+n/e.w*e.h*.42;return{top:i,bottom:i,left:(e.w-r)/2,right:(e.w-r)/2,w:r,h:e.h-2*i}}(t);break;case"trapezoid":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj",t,.25*Math.min(e.w,e.h)),i=["M".concat(r,",0"),"L".concat(e.w-r,",0"),"L".concat(e.w,",").concat(e.h),"L0,".concat(e.h),"Z"].join(" ");return n.setAttribute("d",i),n}(t),f=function(t){var e=t.extend,n=Ur("adj",t,.5*Math.min(e.w,e.h)),r=n/e.w*.66*e.h,i=.66*n;return{top:r,bottom:0,left:i,right:i,w:e.w-2*i,h:e.h-r}}(t);break;case"diamond":d=function(t){var e=t.extend,n=jr("path"),r=["M".concat(e.w/2,",0"),"L".concat(e.w,",").concat(e.h/2),"L".concat(e.w/2,",").concat(e.h),"L0,".concat(e.h/2),"Z"].join(" ");return n.setAttribute("d",r),n}(t),f=function(t){var e=t.extend,n=.25*e.h,r=.25*e.w;return{top:n,bottom:n,left:r,right:r,w:.5*e.w,h:.5*e.h}}(t);break;case"pentagon":d=function(t){var e=t.extend,n=jr("path"),r=["M".concat(e.w/2,",0"),"L".concat(e.w,",").concat(.3771*e.h),"L".concat(.808*e.w,",").concat(e.h),"L".concat(.192*e.w,",").concat(e.h),"L0,".concat(.3771*e.h),"Z"].join(" ");return n.setAttribute("d",r),n}(t),f=function(t){var e=t.extend,n=.227*e.h,r=.192*e.w;return{top:n,bottom:0,left:r,right:r,w:.616*e.w,h:.773*e.h}}(t);break;case"hexagon":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj",t,.25*Math.min(e.w,e.h)),i=["M".concat(r,",0"),"L".concat(e.w-r,",0"),"L".concat(e.w,",").concat(e.h/2),"L".concat(e.w-r,",").concat(e.h),"L".concat(r,",").concat(e.h),"L0,".concat(e.h/2),"Z"].join(" ");return n.setAttribute("d",i),n}(t),f=function(t){var e=t.extend,n=Ur("adj",t,.25*Math.min(e.w,e.h)),r=.098*e.h+n/e.w*.38*e.h,i=.088*e.w+.422*n;return{top:r,bottom:r,left:i,right:i,w:e.w-2*i,h:e.h-2*r}}(t);break;case"heptagon":d=function(t){var e=t.extend,n=jr("path"),r=["M".concat(e.w/2,",0"),"L".concat(.9*e.w,",").concat(.2*e.h),"L".concat(e.w,",").concat(.642*e.h),"L".concat(.722*e.w,",").concat(e.h),"L".concat(.278*e.w,",").concat(e.h),"L0,".concat(.642*e.h),"L".concat(.1*e.w,",").concat(.2*e.h),"Z"].join(" ");return n.setAttribute("d",r),n}(t),f=function(t){var e=t.extend;return{top:.2*e.h,bottom:.2*e.h,left:.1*e.w,right:.1*e.w,w:.8*e.w,h:.6*e.h}}(t);break;case"octagon":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj",t,.29*Math.min(e.w,e.h)),i=["M".concat(r,",0"),"L".concat(e.w-r,",0"),"L".concat(e.w,",").concat(r),"L".concat(e.w,",").concat(e.h-r),"L".concat(e.w-r,",").concat(e.h),"L".concat(r,",").concat(e.h),"L0,".concat(e.h-r),"L0,".concat(r),"Z"].join(" ");return n.setAttribute("d",i),n}(t),f=function(t){var e=t.extend,n=Ur("adj",t,.29*Math.min(e.w,e.h));return{top:.5*n,bottom:.5*n,left:.5*n,right:.5*n,w:e.w-n,h:e.h-n}}(t);break;case"decagon":d=function(t){var e=t.extend,n=jr("path"),r=.344,i=.117,o=.19,a=["M".concat(e.w*r,",0"),"L".concat(.656*e.w,",0"),"L".concat(.883*e.w,",").concat(e.h*o),"L".concat(e.w,",").concat(.5*e.h),"L".concat(.883*e.w,",").concat(.81*e.h),"L".concat(.656*e.w,",").concat(e.h),"L".concat(e.w*r,",").concat(e.h),"L".concat(e.w*i,",").concat(.81*e.h),"L0,".concat(.5*e.h),"L".concat(e.w*i,",").concat(e.h*o),"Z"].join(" ");return n.setAttribute("d",a),n}(t),f=function(t){var e=t.extend,n=.117,r=.19;return{top:e.h*r,bottom:e.h*r,left:e.w*n,right:e.w*n,w:.766*e.w,h:.62*e.h}}(t);break;case"dodecagon":d=function(t){var e=t.extend,n=jr("path"),r=.364,i=.133,o=.135,a=["M".concat(e.w*r,",0"),"L".concat(.636*e.w,",0"),"L".concat(.867*e.w,",").concat(e.h*o),"L".concat(e.w,",").concat(e.h*r),"L".concat(e.w,",").concat(.636*e.h),"L".concat(.867*e.w,",").concat(.865*e.h),"L".concat(.636*e.w,",").concat(e.h),"L".concat(e.w*r,",").concat(e.h),"L".concat(e.w*i,",").concat(.865*e.h),"L0,".concat(.636*e.h),"L0,".concat(e.h*r),"L".concat(e.w*i,",").concat(e.h*o),"Z"].join(" ");return n.setAttribute("d",a),n}(t),f=function(t){var e=t.extend,n=.133,r=.135;return{top:e.h*r,bottom:e.h*r,left:e.w*n,right:e.w*n,w:.734*e.w,h:.73*e.h}}(t);break;case"pie":d=function(t){var e=t.extend,n=jr("path"),r=Hr("adj1",t,360),i=Hr("adj2",t,270),o=e.w/2,a=e.h/2,s=e.w/2,l=e.h/2,u=ei(r,s,l,o,a),c=u[0],h=u[1],d=ei(i,s,l,o,a),p=d[0],f=d[1],g=ni(r,i),y="M".concat(s,",").concat(l,", L").concat(c," ").concat(h," A ").concat(o," ").concat(a," 0 ").concat(g," ").concat(1," ").concat(p," ").concat(f," Z");return n.setAttribute("d",y),n}(t),f=ri(t);break;case"arc":d=function(t){var e=t.extend,n=jr("path"),r=Hr("adj1",t,270),i=Hr("adj2",t,0),o=e.w/2,a=e.h/2,s=e.w/2,l=e.h/2,u=ei(r,s,l,o,a),c=u[0],h=u[1],d=ei(i,s,l,o,a),p=d[0],f=d[1],g=ni(r,i),y="M".concat(c,",").concat(h," A ").concat(o," ").concat(a," 0 ").concat(g," ").concat(1," ").concat(p," ").concat(f);return n.setAttribute("d",y),n}(t),g=!1;break;case"bracketPair":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj",t,.16667*Math.min(e.w,e.h)),i=["M".concat(r,",").concat(e.h),"Q".concat(0,",").concat(e.h," ").concat(0,",").concat(e.h-r),"L".concat(0,",").concat(r),"Q".concat(0,",").concat(0," ").concat(r,",").concat(0),"M".concat(e.w-r,",").concat(0),"Q".concat(e.w,",").concat(0," ").concat(e.w,",").concat(r),"L".concat(e.w,",").concat(e.h-r),"Q".concat(e.w,",").concat(e.h," ").concat(e.w-r,",").concat(e.h)].join(" ");return n.setAttribute("d",i),n}(t),f=function(t){var e=t.extend,n=.285*Ur("adj",t,.16667*Math.min(e.w,e.h));return{top:n,bottom:n,left:n,right:n,w:e.w-2*n,h:e.h-2*n}}(t),g=!1;break;case"bracePair":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj",t,.083335*Math.min(e.w,e.h)),i=["M".concat(2*r,",").concat(e.h),"Q".concat(r,",").concat(e.h," ").concat(r,",").concat(e.h-r),"L".concat(r,",").concat(e.h/2+r),"Q".concat(r,",").concat(e.h/2," ").concat(0,",").concat(e.h/2),"Q".concat(r,",").concat(e.h/2," ").concat(r,",").concat(e.h/2-r),"L".concat(r,",").concat(r),"Q".concat(r,",").concat(0," ").concat(2*r,",").concat(0),"M".concat(e.w-2*r,",").concat(0),"Q".concat(e.w-r,",").concat(0," ").concat(e.w-r,",").concat(r),"L".concat(e.w-r,",").concat(e.h/2-r),"Q".concat(e.w-r,",").concat(e.h/2," ").concat(e.w,",").concat(e.h/2),"Q".concat(e.w-r,",").concat(e.h/2," ").concat(e.w-r,",").concat(e.h/2+r),"L".concat(e.w-r,",").concat(e.h-r),"Q".concat(e.w-r,",").concat(e.h," ").concat(e.w-2*r,",").concat(e.h)].join(" ");return n.setAttribute("d",i),n}(t),f=function(t){var e=t.extend,n=.285*Ur("adj",t,.16667*Math.min(e.w,e.h));return{top:n,bottom:n,left:n,right:n,w:e.w-2*n,h:e.h-2*n}}(t),g=!1;break;case"chord":d=function(t){var e=t.extend,n=jr("path"),r=Hr("adj1",t,45),i=Hr("adj2",t,270),o=e.w/2,a=e.h/2,s=e.w/2,l=e.h/2,u=ei(r,s,l,o,a),c=u[0],h=u[1],d=ei(i,s,l,o,a),p=d[0],f=d[1],g=ni(r,i),y="M".concat(c," ").concat(h," A ").concat(o," ").concat(a," 0 ").concat(g," ").concat(1," ").concat(p," ").concat(f," Z");return n.setAttribute("d",y),n}(t),f=ri(t);break;case"teardrop":d=function(t){var e=t.extend,n=jr("path"),r=Hr("adj",t,1),i=e.w/2,o=e.h/2,a=e.w/2,s=e.h/2,l=ei(0,a,s,i,o),u=l[0],c=l[1],h=ei(270,a,s,i,o),d=h[0],p=h[1],f=ni(0,270),g="M".concat(u," ").concat(c," A ").concat(i," ").concat(o," 0 ").concat(f," ").concat(1," ").concat(d," ").concat(p),y=i*r,v=a+y,m=s-o*y/(e.w/2),_=(e.w/2+v)/2,x=(e.h/2+m)/2;return g+=" Q".concat(_,",0 ").concat(v,",").concat(m),g+=" Q".concat(e.w,",").concat(x," ").concat(a+i,",").concat(s),n.setAttribute("d",g),n}(t),f=ri(t);break;case"frame":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj1",t,.12*Math.min(e.w,e.h)),i=["M0,0","L".concat(e.w,",0"),"L".concat(e.w,",").concat(e.h),"L0,".concat(e.h),"Z","M".concat(r,",").concat(r),"L".concat(r,",").concat(e.h-r),"L".concat(e.w-r,",").concat(e.h-r),"L".concat(e.w-r,",").concat(r),"Z"].join(" ");return n.setAttribute("d",i),n}(t),f=function(t){var e=t.extend,n=Ur("adj1",t,.12*Math.min(e.w,e.h));return{top:n,bottom:n,left:n,right:n,w:e.w-2*n,h:e.h-2*n}}(t);break;case"halfFrame":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj1",t,.333*Math.min(e.w,e.h)),i=Math.min(Ur("adj2",t,.333*Math.min(e.w,e.h)),e.w*(1-r/e.h)),o=["M0,0","L".concat(e.w,",0"),"L".concat(e.w*(1-r/e.h),",").concat(r),"L".concat(i,",").concat(r),"L".concat(i,",").concat(e.h*(1-i/e.w)),"L0,".concat(e.h),"Z"].join(" ");return n.setAttribute("d",o),n}(t);break;case"corner":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj1",t,.5*Math.min(e.w,e.h)),i=Ur("adj2",t,.5*Math.min(e.w,e.h)),o=["M0,0","L".concat(i,",0"),"L".concat(i,",").concat(e.h-r),"L".concat(e.w,",").concat(e.h-r),"L".concat(e.w,",").concat(e.h),"L0,".concat(e.h),"Z"].join(" ");return n.setAttribute("d",o),n}(t),f=function(t){var e=t.extend,n=Ur("adj1",t,.5*Math.min(e.w,e.h));return{top:e.h-n,bottom:0,left:0,right:0,w:e.w,h:n}}(t);break;case"diagStripe":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj",t,.5*Math.min(e.w,e.h)),i=e.w*r/e.h,o=["M".concat(i,",0"),"L".concat(e.w,",0"),"L0,".concat(e.h),"L0,".concat(r),"Z"].join(" ");return n.setAttribute("d",o),n}(t),f=function(t){var e=t.extend,n=Hr("adj",t,.5),r=.5*(1-n)*e.h,i=.5*(1-n)*e.w;return{top:0,bottom:r,left:0,right:i,w:e.w-i,h:e.h-r}}(t);break;case"plus":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj",t,.25*Math.min(e.w,e.h)),i=["M".concat(r,",0"),"L".concat(e.w-r,",0"),"L".concat(e.w-r,",").concat(r),"L".concat(e.w,",").concat(r),"L".concat(e.w,",").concat(e.h-r),"L".concat(e.w-r,",").concat(e.h-r),"L".concat(e.w-r,",").concat(e.h),"L".concat(r,",").concat(e.h),"L".concat(r,",").concat(e.h-r),"L0,".concat(e.h-r),"L0,".concat(r),"L".concat(r,",").concat(r),"Z"].join(" ");return n.setAttribute("d",i),n}(t),f=function(t){var e=t.extend,n=Ur("adj",t,.25*Math.min(e.w,e.h));return{top:n,bottom:n,left:0,right:0,w:e.w,h:e.h-2*n}}(t);break;case"plaque":d=function(t){var e=t.extend,n=jr("path"),r=Ur("adj",t,.16667*Math.min(e.w,e.h)),i=["M".concat(r,",0"),"L".concat(e.w-r,",0"),"Q".concat(e.w-r,",").concat(r," ").concat(e.w,",").concat(r),"L".concat(e.w,",").concat(e.h-r),"Q".concat(e.w-r,",").concat(e.h-r," ").concat(e.w-r,",").concat(e.h),"L".concat(r,",").concat(e.h),"Q".concat(r,",").concat(e.h-r," 0,").concat(e.h-r),"L0,".concat(r),"Q".concat(r,",").concat(r," ").concat(r,",0"),"Z"].join(" ");return n.setAttribute("d",i),n}(t),f=function(t){var e=t.extend,n=Ur("adj",t,.16667*Math.min(e.w,e.h));return{top:.72*n,bottom:.72*n,left:.72*n,right:.72*n,w:e.w-1.44*n,h:e.w-1.44*n}}(t);break;case"can":d=function(t){var e=t.extend,n=t.background,r=jr("g"),i=jr("path"),o=Ur("adj",t,.25*Math.min(e.w,e.h)),a=["M0,".concat(o/2),"L0,".concat(e.h-o/2),"A".concat(e.w/2,",").concat(o/2," 0 0 0 ").concat(e.w,",").concat(e.h-o/2),"L".concat(e.w,",").concat(o/2),"A".concat(e.w/2,",").concat(o/2," 0 0 1 0,").concat(o/2),"Z"].join(" ");i.setAttribute("d",a);var s=jr("ellipse"),l=e.w/2,u=o/2,c=e.w/2,h=o/2;return s.setAttribute("cx",l+"px"),s.setAttribute("cy",u+"px"),s.setAttribute("rx",c+"px"),s.setAttribute("ry",h+"px"),"solidFill"===(null==n?void 0:n.type)&&s.setAttribute("fill",dr(n,{light:.5})||"transparent"),r.appendChild(i),r.appendChild(s),r}(t),f=function(t){var e=t.extend,n=Ur("adj",t,.25*Math.min(e.w,e.h));return{top:n,bottom:0,left:0,right:0,w:e.w,h:e.h-n}}(t);break;case"cube":d=function(t){var e=t.extend,n=t.background,r=Ur("adj",t,.25*Math.min(e.w,e.h)),i=jr("g"),o=jr("path"),a=["M0,".concat(r),"L".concat(e.w-r,",").concat(r),"L".concat(e.w-r,",").concat(e.h),"L0,".concat(e.h),"Z"].join(" ");o.setAttribute("d",a);var s=jr("path"),l=["M0,".concat(r),"L".concat(r,",0"),"L".concat(e.w,",0"),"L".concat(e.w-r,",").concat(r),"Z"].join(" ");s.setAttribute("d",l),"solidFill"===(null==n?void 0:n.type)&&s.setAttribute("fill",dr(n,{light:.8})||"transparent");var u=jr("path"),c=["M".concat(e.w,",0"),"L".concat(e.w-r,",").concat(r),"L".concat(e.w-r,",").concat(e.h),"L".concat(e.w,",").concat(e.h-r),"Z"].join(" ");return u.setAttribute("d",c),"solidFill"===(null==n?void 0:n.type)&&u.setAttribute("fill",dr(n,{dark:.6})||"transparent"),i.appendChild(o),i.appendChild(s),i.appendChild(u),i}(t),f=function(t){var e=t.extend,n=Ur("adj",t,.25*Math.min(e.w,e.h));return{top:n,bottom:0,left:0,right:n,w:e.w-n,h:e.h-n}}(t);break;case"bevel":d=function(t){var e=t.extend,n=t.background,r=Ur("adj",t,.125*Math.min(e.w,e.h)),i=jr("g"),o=jr("path"),a=["M".concat(r,",").concat(r),"L".concat(e.w-r,",").concat(r),"L".concat(e.w-r,",").concat(e.h-r),"L".concat(r,",").concat(e.h-r),"Z"].join(" ");o.setAttribute("d",a);var s=jr("path"),l=["M0,0","L".concat(r,",").concat(r),"L".concat(e.w-r,",").concat(r),"L".concat(e.w,",0"),"Z"].join(" ");s.setAttribute("d",l),"solidFill"===(null==n?void 0:n.type)&&s.setAttribute("fill",dr(n,{light:.8})||"transparent");var u=jr("path"),c=["M".concat(e.w,",0"),"L".concat(e.w-r,",").concat(r),"L".concat(e.w-r,",").concat(e.h-r),"L".concat(e.w,",").concat(e.h),"Z"].join(" ");u.setAttribute("d",c),"solidFill"===(null==n?void 0:n.type)&&u.setAttribute("fill",dr(n,{dark:.6})||"transparent");var h=jr("path"),d=["M".concat(e.w,",").concat(e.h),"L".concat(e.w-r,",").concat(e.h-r),"L".concat(r,",").concat(e.h-r),"L0,".concat(e.h),"Z"].join(" ");h.setAttribute("d",d),"solidFill"===(null==n?void 0:n.type)&&h.setAttribute("fill",dr(n,{dark:.625})||"transparent");var p=jr("path"),f=["M0,".concat(e.h),"L".concat(r,",").concat(e.h-r),"L".concat(r,",").concat(r),"L0,0","Z"].join(" ");return p.setAttribute("d",f),"solidFill"===(null==n?void 0:n.type)&&p.setAttribute("fill",dr(n,{light:.6})||"transparent"),i.appendChild(o),i.appendChild(s),i.appendChild(u),i.appendChild(h),i.appendChild(p),i}(t),f=function(t){var e=t.extend,n=Ur("adj",t,.125*Math.min(e.w,e.h));return{top:n,bottom:n,left:n,right:n,w:e.w-2*n,h:e.h-2*n}}(t);break;case"donut":d=function(t){var e=t.extend,n=Ur("adj",t,.25*Math.min(e.w,e.h)),r=jr("path"),i=["M0,".concat(e.h/2),"A".concat(e.w/2,",").concat(e.h/2," 0 1,1 0,").concat(e.h/2+1),"Z","M".concat(e.w-n,",").concat(e.h/2),"A".concat(e.w/2-n,",").concat(e.h/2-n," 0 1,0 ").concat(e.w-n,",").concat(e.h/2+1),"Z"].join(" ");return r.setAttribute("d",i),r}(t),f=ri(t);break;case"noSmoking":d=function(t){var e=t.extend,n=Ur("adj",t,.25*Math.min(e.w,e.h)),r=jr("path"),i=Math.atan(e.h/e.w),o=n/2/Math.sin(i),a=e.w/2,s=e.h/2,l=-1*e.h/e.w,u=e.h*o/e.w,c=e.w/2-n,h=e.h/2-n,d=-2*c*c*l*u,p=Math.sqrt(Math.pow(2*c*c*l*u,2)-4*(h*h+c*c*l*l)*c*c*(u*u-h*h)),f=2*(h*h+c*c*l*l),g=(d-p)/f,y=l*g+u,v=(d+p)/f,m=l*v+u,_=-e.h*o/e.w,x=-2*c*c*l*_,b=Math.sqrt(Math.pow(2*c*c*l*_,2)-4*(h*h+c*c*l*l)*c*c*(_*_-h*h)),w=2*(h*h+c*c*l*l),S=(x-b)/w,M=l*S+_,I=(x+b)/w,C=l*I+_,A=["M0,".concat(e.h/2),"A".concat(e.w/2,",").concat(e.h/2," 0 1,1 0,").concat(e.h/2+1),"Z","M".concat(a+v,",").concat(s-m),"A".concat(c,",").concat(h," 0 0 0 ").concat(a+g,",").concat(s-y),"Z","M".concat(a+S,",").concat(s-M),"A".concat(c,",").concat(h," 0 0 0 ").concat(a+I,",").concat(s-C),"Z"].join(" ");return r.setAttribute("d",A),r}(t),f=ri(t);break;case"rightArrow":d=function(t){var e=t.extend,n=Ur("adj1",t,.5*Math.min(e.w,e.h)),r=Ur("adj2",t,.5*Math.min(e.w,e.h)),i=jr("path"),o=["M0,".concat(e.h/2-n/2),"L".concat(e.w-r,",").concat(e.h/2-n/2),"L".concat(e.w-r,",0"),"L".concat(e.w,",").concat(e.h/2),"L".concat(e.w-r,",").concat(e.h),"L".concat(e.w-r,",").concat(e.h/2+n/2),"L0,".concat(e.h/2+n/2),"Z"].join(" ");return i.setAttribute("d",o),i}(t),f=function(t){var e=t.extend,n=Ur("adj1",t,.5*Math.min(e.w,e.h)),r=n*Ur("adj2",t,.5*Math.min(e.w,e.h))/e.h;return{top:e.h/2-n/2,bottom:e.h/2-n/2,left:0,right:r,w:e.w-r,h:n}}(t);break;case"leftArrow":d=function(t){var e=t.extend,n=Ur("adj1",t,.5*Math.min(e.w,e.h)),r=Ur("adj2",t,.5*Math.min(e.w,e.h)),i=jr("path"),o=["M0,".concat(e.h/2),"L".concat(r,",0"),"L".concat(r,",").concat(e.h/2-n/2),"L".concat(e.w,",").concat(e.h/2-n/2),"L".concat(e.w,",").concat(e.h/2+n/2),"L".concat(r,",").concat(e.h/2+n/2),"L".concat(r,",").concat(e.h),"Z"].join(" ");return i.setAttribute("d",o),i}(t),f=function(t){var e=t.extend,n=Ur("adj1",t,.5*Math.min(e.w,e.h)),r=n*Ur("adj2",t,.5*Math.min(e.w,e.h))/e.h;return{top:e.h/2-n/2,bottom:e.h/2-n/2,left:r,right:0,w:e.w-r,h:n}}(t);break;case"upArrow":d=function(t){var e=t.extend,n=Ur("adj1",t,.5*Math.min(e.w,e.h)),r=Ur("adj2",t,.5*Math.min(e.w,e.h)),i=jr("path"),o=["M".concat(e.w/2,",0"),"L".concat(e.w,",").concat(r),"L".concat(e.w/2+n/2,",").concat(r),"L".concat(e.w/2+n/2,",").concat(e.h),"L".concat(e.w/2-n/2,",").concat(e.h),"L".concat(e.w/2-n/2,",").concat(r),"L0,".concat(r),"Z"].join(" ");return i.setAttribute("d",o),i}(t),f=function(t){var e=t.extend,n=Ur("adj1",t,.5*Math.min(e.w,e.h)),r=n*Ur("adj2",t,.5*Math.min(e.w,e.h))/e.w;return{top:r,bottom:0,left:e.w/2-n/2,right:e.w/2-n/2,w:n,h:e.h-r}}(t);break;case"downArrow":d=function(t){var e=t.extend,n=Ur("adj1",t,.5*Math.min(e.w,e.h)),r=Ur("adj2",t,.5*Math.min(e.w,e.h)),i=jr("path"),o=["M".concat(e.w/2,",").concat(e.h),"L0,".concat(e.h-r),"L".concat(e.w/2-n/2,",").concat(e.h-r),"L".concat(e.w/2-n/2,",0"),"L".concat(e.w/2+n/2,",0"),"L".concat(e.w/2+n/2,",").concat(e.h-r),"L".concat(e.w,",").concat(e.h-r),"Z"].join(" ");return i.setAttribute("d",o),i}(t),f=function(t){var e=t.extend,n=Ur("adj1",t,.5*Math.min(e.w,e.h)),r=n*Ur("adj2",t,.5*Math.min(e.w,e.h))/e.w;return{top:0,bottom:r,left:e.w/2-n/2,right:e.w/2-n/2,w:n,h:e.h-r}}(t);break;case"leftRightArrow":d=function(t){var e=t.extend,n=Ur("adj1",t,.5*Math.min(e.w,e.h)),r=Ur("adj2",t,.5*Math.min(e.w,e.h)),i=jr("path"),o=["M0,".concat(e.h/2),"L".concat(r,",0"),"L".concat(r,",").concat(e.h/2-n/2),"L".concat(e.w-r,",").concat(e.h/2-n/2),"L".concat(e.w-r,",0"),"L".concat(e.w,",").concat(e.h/2),"L".concat(e.w-r,",").concat(e.h),"L".concat(e.w-r,",").concat(e.h/2+n/2),"L".concat(r,",").concat(e.h/2+n/2),"L".concat(r,",").concat(e.h),"Z"].join(" ");return i.setAttribute("d",o),i}(t),f=function(t){var e=t.extend,n=Ur("adj1",t,.5*Math.min(e.w,e.h)),r=n*Ur("adj2",t,.5*Math.min(e.w,e.h))/e.h;return{top:e.h/2-n/2,bottom:e.h/2-n/2,left:r,right:r,w:e.w-2*r,h:n}}(t);break;case"upDownArrow":d=function(t){var e=t.extend,n=Ur("adj1",t,.5*Math.min(e.w,e.h)),r=Ur("adj2",t,.5*Math.min(e.w,e.h)),i=jr("path"),o=["M".concat(e.w/2,",").concat(e.h),"L0,".concat(e.h-r),"L".concat(e.w/2-n/2,",").concat(e.h-r),"L".concat(e.w/2-n/2,",").concat(r),"L0,".concat(r),"L".concat(e.w/2,",0"),"L".concat(e.w,",").concat(r),"L".concat(e.w/2+n/2,",").concat(r),"L".concat(e.w/2+n/2,",").concat(e.h-r),"L".concat(e.w,",").concat(e.h-r),"Z"].join(" ");return i.setAttribute("d",o),i}(t),f=function(t){var e=t.extend,n=Ur("adj1",t,.5*Math.min(e.w,e.h)),r=n*Ur("adj2",t,.5*Math.min(e.w,e.h))/e.w;return{top:r,bottom:r,left:e.w/2-n/2,right:e.w/2-n/2,w:n,h:e.h-2*r}}(t);break;case"quadArrow":d=function(t){var e=t.extend,n=Ur("adj1",t,.225*Math.min(e.w,e.h)),r=Ur("adj2",t,.225*Math.min(e.w,e.h)),i=Ur("adj3",t,.225*Math.min(e.w,e.h)),o=jr("path"),a=["M0,".concat(e.h/2),"L".concat(i,",").concat(e.h/2-r),"L".concat(i,",").concat(e.h/2-n/2),"L".concat(e.w/2-n/2,",").concat(e.h/2-n/2),"L".concat(e.w/2-n/2,",").concat(i),"L".concat(e.w/2-r,",").concat(i),"L".concat(e.w/2,",0"),"L".concat(e.w/2+r,",").concat(i),"L".concat(e.w/2+n/2,",").concat(i),"L".concat(e.w/2+n/2,",").concat(e.h/2-n/2),"L".concat(e.w-i,",").concat(e.h/2-n/2),"L".concat(e.w-i,",").concat(e.h/2-r),"L".concat(e.w,",").concat(e.h/2),"L".concat(e.w-i,",").concat(e.h/2+r),"L".concat(e.w-i,",").concat(e.h/2+n/2),"L".concat(e.w/2+n/2,",").concat(e.h/2+n/2),"L".concat(e.w/2+n/2,",").concat(e.h-i),"L".concat(e.w/2+r,",").concat(e.h-i),"L".concat(e.w/2,",").concat(e.h),"L".concat(e.w/2-r,",").concat(e.h-i),"L".concat(e.w/2-n/2,",").concat(e.h-i),"L".concat(e.w/2-n/2,",").concat(e.h/2+n/2),"L".concat(i,",").concat(e.h/2+n/2),"L".concat(i,",").concat(e.h/2+r),"Z"].join(" ");return o.setAttribute("d",a),o}(t),f=function(t){var e=t.extend,n=Ur("adj1",t,.225*Math.min(e.w,e.h)),r=Ur("adj2",t,.225*Math.min(e.w,e.h)),i=Ur("adj3",t,.225*Math.min(e.w,e.h)),o=0===r?0:n*i/r/2;return{top:e.h/2-n/2,bottom:e.h/2-n/2,left:o,right:o,w:e.w-2*o,h:n}}(t);break;case"leftRightUpArrow":d=function(t){var e=t.extend,n=Ur("adj1",t,.225*Math.min(e.w,e.h)),r=Ur("adj2",t,.225*Math.min(e.w,e.h)),i=Ur("adj3",t,.225*Math.min(e.w,e.h)),o=jr("path");n>2*r&&(n=2*r);var a=["M0,".concat(e.h-r),"L".concat(i,",").concat(e.h-2*r),"L".concat(i,",").concat(e.h-r-n/2),"L".concat(e.w/2-n/2,",").concat(e.h-r-n/2),"L".concat(e.w/2-n/2,",").concat(i),"L".concat(e.w/2-r,",").concat(i),"L".concat(e.w/2,",0"),"L".concat(e.w/2+r,",").concat(i),"L".concat(e.w/2+n/2,",").concat(i),"L".concat(e.w/2+n/2,",").concat(e.h-r-n/2),"L".concat(e.w-i,",").concat(e.h-r-n/2),"L".concat(e.w-i,",").concat(e.h-2*r),"L".concat(e.w,",").concat(e.h-r),"L".concat(e.w-i,",").concat(e.h),"L".concat(e.w-i,",").concat(e.h-r+n/2),"L".concat(i,",").concat(e.h-r+n/2),"L".concat(i,",").concat(e.h),"Z"].join(" ");return o.setAttribute("d",a),o}(t),f=function(t){var e=t.extend,n=Ur("adj1",t,.225*Math.min(e.w,e.h)),r=Ur("adj2",t,.225*Math.min(e.w,e.h)),i=Ur("adj3",t,.225*Math.min(e.w,e.h)),o=0===r?0:n*i/r/2;return{top:e.h-r-n/2,bottom:r-n/2,left:o,right:o,w:e.w-2*o,h:n}}(t);break;case"bentArrow":d=function(t){var e=t.extend,n=Ur("adj1",t,.25*Math.min(e.w,e.h)),r=Ur("adj2",t,.25*Math.min(e.w,e.h)),i=Ur("adj3",t,.25*Math.min(e.w,e.h)),o=Ur("adj4",t,.4375*Math.min(e.w,e.h)),a=jr("path");n>2*r&&(n=2*r);var s=o-n;s<0&&(s=0);var l=["M0,".concat(e.h),"L0,".concat(r-n/2+o),"A".concat(o," ").concat(o," 0 0 1 ").concat(o," ").concat(r-n/2),"L".concat(e.w-i,",").concat(r-n/2),"L".concat(e.w-i,",0"),"L".concat(e.w,",").concat(r),"L".concat(e.w-i,",").concat(2*r),"L".concat(e.w-i,",").concat(r+n/2),"L".concat(n+s,",").concat(r+n/2),"A".concat(s," ").concat(s," 0 0 0 ").concat(n," ").concat(r+n/2+s),"L".concat(n,",").concat(e.h),"Z"].join(" ");return a.setAttribute("d",l),a}(t);break;case"uturnArrow":d=function(t){var e=t.extend,n=Ur("adj1",t,.25*Math.min(e.w,e.h)),r=Ur("adj2",t,.25*Math.min(e.w,e.h)),i=Ur("adj3",t,.25*Math.min(e.w,e.h)),o=Ur("adj4",t,.4375*Math.min(e.w,e.h)),a=Ur("adj5",t,.75*Math.min(e.w,e.h)),s=jr("path");n>2*r&&(n=2*r),a<i&&(a=i+n),o>a-i&&(o=a-i);var l=o-n;l>a-i-n&&(l=a-i-n),l<0&&(l=0);var u=r-n/2,c=["M0,".concat(e.h),"L0,".concat(o),"A".concat(o," ").concat(o," 0 0 1 ").concat(o," 0"),"L".concat(e.w-o-u,",0"),"A".concat(o," ").concat(o," 0 0 1 ").concat(e.w-u," ").concat(o),"L".concat(e.w-u,",").concat(a-i),"L".concat(e.w,",").concat(a-i),"L".concat(e.w-r,",").concat(a),"L".concat(e.w-2*r,",").concat(a-i),"L".concat(e.w-r-n/2,",").concat(a-i),"L".concat(e.w-r-n/2,",").concat(n+l),"A".concat(l," ").concat(l," 0 0 0 ").concat(e.w-l-r-n/2," ").concat(n),"L".concat(n+l,",").concat(n),"A".concat(l," ").concat(l," 0 0 0 ").concat(n," ").concat(n+l),"L".concat(n,",").concat(e.h),"Z"].join(" ");return s.setAttribute("d",c),s}(t);break;case"leftUpArrow":d=function(t){var e=t.extend,n=Ur("adj1",t,.25*Math.min(e.w,e.h)),r=Ur("adj2",t,.25*Math.min(e.w,e.h)),i=Ur("adj3",t,.25*Math.min(e.w,e.h));n>2*r&&(n=2*r);var o=Math.min(e.w,e.h)-2*r;i>o&&(i=o),i<0&&(i=0);var a=r-n/2,s=jr("path"),l=["M0,".concat(e.h-r),"L".concat(i,",").concat(e.h-2*r),"L".concat(i,",").concat(e.h-r-n/2),"L".concat(e.w-r-n/2,",").concat(e.h-r-n/2),"L".concat(e.w-r-n/2,",").concat(i),"L".concat(e.w-2*r,",").concat(i),"L".concat(e.w-r,",0"),"L".concat(e.w,",").concat(i),"L".concat(e.w-a,",").concat(i),"L".concat(e.w-a,",").concat(e.h-a),"L".concat(i,",").concat(e.h-a),"L".concat(i,",").concat(e.h),"Z"].join(" ");return s.setAttribute("d",l),s}(t),f=function(t){var e=t.extend,n=Ur("adj1",t,.25*Math.min(e.w,e.h)),r=Ur("adj2",t,.25*Math.min(e.w,e.h)),i=Ur("adj3",t,.25*Math.min(e.w,e.h));n>2*r&&(n=2*r);var o=Math.min(e.w,e.h)-2*r;i>o&&(i=o),i<0&&(i=0);var a=0===r?0:n*i/r/2;return{top:e.h-r-n/2,bottom:r-n/2,left:a,right:r,w:e.w-a-r,h:n}}(t);break;case"bentUpArrow":d=function(t){var e=t.extend,n=Ur("adj1",t,.25*Math.min(e.w,e.h)),r=Ur("adj2",t,.25*Math.min(e.w,e.h)),i=Ur("adj3",t,.25*Math.min(e.w,e.h));n>2*r&&(n=2*r);var o=Math.min(e.w,e.h)-2*r;i>o&&(i=o),i<0&&(i=0);var a=r-n/2,s=jr("path"),l=["M0,".concat(e.h),"L0,".concat(e.h-n),"L".concat(e.w-r-n/2,",").concat(e.h-n),"L".concat(e.w-r-n/2,",").concat(i),"L".concat(e.w-2*r,",").concat(i),"L".concat(e.w-r,",0"),"L".concat(e.w,",").concat(i),"L".concat(e.w-a,",").concat(i),"L".concat(e.w-a,",").concat(e.h),"Z"].join(" ");return s.setAttribute("d",l),s}(t),f=function(t){var e=t.extend,n=Ur("adj1",t,.25*Math.min(e.w,e.h));return{top:e.h-n,bottom:0,left:0,right:0,w:e.w,h:n}}(t);break;case"curvedRightArrow":d=function(t){var e=t.extend,n=t.background,r=Ur("adj1",t,.25*Math.min(e.w,e.h)),i=Ur("adj2",t,.5*Math.min(e.w,e.h)),o=Ur("adj3",t,.25*Math.min(e.w,e.h));r>i&&(r=i);var a=i/2-r/2,s=(e.h-i/2-r/2)/2,l=(e.h-a-r)/2,u=jr("g"),c=jr("path"),h=["M".concat(e.w,",0"),"A ".concat(e.w," ").concat(s," 0 0 0 ").concat(0," ").concat(s),"L0,".concat(l+r),"A ".concat(e.w," ").concat(l," 0 0 1 ").concat(e.w," ").concat(r),"Z"].join(" ");c.setAttribute("d",h),"solidFill"===(null==n?void 0:n.type)&&c.setAttribute("fill",dr(n,{dark:.6})||"transparent");var d=jr("path"),p=["M0,".concat(s),"A ".concat(e.w," ").concat(s," 0 0 0 ").concat(e.w-o," ").concat(e.h-i/2-r/2),"L".concat(e.w-o,",").concat(e.h-i),"L".concat(e.w,",").concat(e.h-i/2),"L".concat(e.w-o,",").concat(e.h),"L".concat(e.w-o,",").concat(e.h-a),"A ".concat(e.w," ").concat(l," 0 0 1 0 ").concat(r+l),"Z"].join(" ");return d.setAttribute("d",p),u.appendChild(c),u.appendChild(d),u}(t);break;case"curvedLeftArrow":d=function(t){var e=t.extend,n=t.background,r=Ur("adj1",t,.25*Math.min(e.w,e.h)),i=Ur("adj2",t,.5*Math.min(e.w,e.h)),o=Ur("adj3",t,.25*Math.min(e.w,e.h));r>i&&(r=i);var a=i/2-r/2,s=(e.h-i/2-r/2)/2,l=(e.h-a-r)/2,u=jr("g"),c=jr("path"),h=["M0,".concat(e.h-i/2),"L".concat(o,",").concat(e.h-i),"L".concat(o,",").concat(e.h-i/2-r/2),"A".concat(e.w," ").concat(s," 0 0 0 ").concat(e.w," ").concat(s),"L".concat(e.w,",").concat(l+r),"A ".concat(e.w," ").concat(l," 0 0 1 ").concat(o," ").concat(e.h-a),"L".concat(o,",").concat(e.h),"Z"].join(" ");c.setAttribute("d",h);var d=jr("path"),p=["M0,0","A ".concat(e.w," ").concat(s," 0 0 1 ").concat(e.w," ").concat(s),"L".concat(e.w,",").concat(l+r),"A ".concat(e.w," ").concat(l," 0 0 0 ").concat(0," ").concat(r),"Z"].join(" ");return d.setAttribute("d",p),"solidFill"===(null==n?void 0:n.type)&&d.setAttribute("fill",dr(n,{dark:.6})||"transparent"),u.appendChild(c),u.appendChild(d),u}(t);break;case"curvedUpArrow":d=function(t){var e=t.extend,n=t.background,r=Ur("adj1",t,.25*Math.min(e.w,e.h)),i=Ur("adj2",t,.5*Math.min(e.w,e.h)),o=Ur("adj3",t,.25*Math.min(e.w,e.h));r>i&&(r=i);var a=i/2-r/2,s=(e.w-i/2-r/2)/2,l=(e.w-a-r)/2,u=jr("g"),c=jr("path"),h=["M".concat(e.w-i/2,",").concat(0),"L".concat(e.w-i,",").concat(o),"L".concat(e.w-i/2-r/2,",").concat(o),"A".concat(s," ").concat(e.h," 0 0 1 ").concat(s," ").concat(e.h),"L".concat(s+r,",").concat(e.h),"A".concat(l," ").concat(e.h," 0 0 0 ").concat(e.w-a," ").concat(o),"L".concat(e.w,",").concat(o),"Z"].join(" ");c.setAttribute("d",h);var d=jr("path"),p=["M".concat(r,",0"),"L".concat(0,",").concat(0),"A ".concat(s," ").concat(e.h," 0 0 0 ").concat(s," ").concat(e.h),"L".concat(s+r,",").concat(e.h),"A ".concat(l," ").concat(e.h," 0 0 1 ").concat(r," ").concat(0),"Z"].join(" ");return d.setAttribute("d",p),"solidFill"===(null==n?void 0:n.type)&&d.setAttribute("fill",dr(n,{dark:.6})||"transparent"),u.appendChild(c),u.appendChild(d),u}(t);break;case"curvedDownArrow":d=function(t){var e=t.extend,n=t.background,r=Ur("adj1",t,.25*Math.min(e.w,e.h)),i=Ur("adj2",t,.5*Math.min(e.w,e.h)),o=Ur("adj3",t,.25*Math.min(e.w,e.h));r>i&&(r=i);var a=i/2-r/2,s=(e.w-i/2-r/2)/2,l=(e.w-a-r)/2,u=jr("g"),c=jr("path"),h=["M".concat(0,",").concat(e.h),"L".concat(r,",").concat(e.h),"A".concat(l," ").concat(e.h," 0 0 1 ").concat(l+r," ").concat(0),"L".concat(s,",").concat(0),"A".concat(s," ").concat(e.h," 0 0 0 ").concat(0," ").concat(e.h),"Z"].join(" ");c.setAttribute("d",h),"solidFill"===(null==n?void 0:n.type)&&c.setAttribute("fill",dr(n,{dark:.6})||"transparent");var d=jr("path"),p=["M".concat(e.w-i/2,",").concat(e.h),"L".concat(e.w-i,",").concat(e.h-o),"L".concat(e.w-i/2-r/2,",").concat(e.h-o),"A ".concat(s," ").concat(e.h," 0 0 0 ").concat(s," ").concat(0),"L".concat(s+r,",").concat(0),"A ".concat(l," ").concat(e.h," 0 0 1 ").concat(e.w-a," ").concat(e.h-o),"L".concat(e.w,",").concat(e.h-o),"Z"].join(" ");return d.setAttribute("d",p),u.appendChild(c),u.appendChild(d),u}(t);break;case"stripedRightArrow":d=function(t){var e=t.extend,n=jr("g"),r=Math.min(e.w,e.h),i=Hr("adj1",t,.5)*e.h,o=Hr("adj2",t,.5)*r,a=r/8,s=r/16,l=r/32,u=5*r/32,c=e.h/2-i/2,h=e.h/2+i/2,d=jr("path");d.setAttribute("d",["M".concat(0,",").concat(c),"L".concat(l,",").concat(c),"L".concat(l,",").concat(h),"L".concat(0,",").concat(h),"Z"].join(" "));var p=jr("path");p.setAttribute("d",["M".concat(s,",").concat(c),"L".concat(a,",").concat(c),"L".concat(a,",").concat(h),"L".concat(s,",").concat(h),"Z"].join(" "));var f=jr("path"),g=["M".concat(u,",").concat(c),"L".concat(e.w-o,",").concat(c),"L".concat(e.w-o,",").concat(0),"L".concat(e.w,",").concat(e.h/2),"L".concat(e.w-o,",").concat(e.h),"L".concat(e.w-o,",").concat(h),"L".concat(u,",").concat(h),"Z"].join(" ");return f.setAttribute("d",g),n.appendChild(f),n.appendChild(d),n.appendChild(p),n}(t),f=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=Hr("adj1",t,.5)*e.h,i=r*(Hr("adj2",t,.5)*n)/e.h;return{top:e.h/2-r/2,bottom:e.h/2-r/2,left:0,right:i,w:e.w-i,h:r}}(t);break;case"notchedRightArrow":d=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=Hr("adj1",t,.5)*e.h,i=Hr("adj2",t,.5)*n,o=r*i/e.h,a=e.h/2-r/2,s=e.h/2+r/2,l=jr("path"),u=["M".concat(0,",").concat(a),"L".concat(e.w-i,",").concat(a),"L".concat(e.w-i,",").concat(0),"L".concat(e.w,",").concat(e.h/2),"L".concat(e.w-i,",").concat(e.h),"L".concat(e.w-i,",").concat(s),"L".concat(0,",").concat(s),"L".concat(o,",").concat(e.h/2),"Z"].join(" ");return l.setAttribute("d",u),l}(t),f=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=Hr("adj1",t,.5)*e.h,i=Hr("adj2",t,.5)*n,o=r*i/e.h,a=r*i/e.h;return{top:e.h/2-r/2,bottom:e.h/2-r/2,left:o,right:a,w:e.w-o-a,h:r}}(t);break;case"homePlate":d=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=Hr("adj",t,.5)*n,i=jr("path"),o=["M".concat(0,",").concat(0),"L".concat(e.w-r,",").concat(0),"L".concat(e.w,",").concat(e.h/2),"L".concat(e.w-r,",").concat(e.h),"L".concat(0,",").concat(e.h),"Z"].join(" ");return i.setAttribute("d",o),i}(t),f=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=Hr("adj",t,.5)*n;return{top:0,bottom:0,left:0,right:r/2,w:e.w-r/2,h:e.h}}(t);break;case"chevron":d=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=Hr("adj",t,.5)*n,i=jr("path"),o=["M".concat(0,",").concat(0),"L".concat(e.w-r,",").concat(0),"L".concat(e.w,",").concat(e.h/2),"L".concat(e.w-r,",").concat(e.h),"L".concat(0,",").concat(e.h),"L".concat(r,",").concat(e.h/2),"Z"].join(" ");return i.setAttribute("d",o),i}(t),f=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=Hr("adj",t,.5)*n;return{top:0,bottom:0,left:r,right:r,w:e.w-2*r,h:e.h}}(t);break;case"blockArc":d=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=jr("path"),i=Hr("adj1",t,180),o=Hr("adj2",t,0),a=Ur("adj3",t,.25*n),s=e.w/2,l=e.h/2,u=e.w/2,c=e.h/2,h=e.w/2-a,d=e.h/2-a,p=ei(i,s,l,u,c),f=p[0],g=p[1],y=ei(o,s,l,u,c),v=y[0],m=y[1],_=ei(i,s,l,h,d),x=_[0],b=_[1],w=ei(o,s,l,h,d),S=w[0],M=w[1],I=ni(i,o),C=["M".concat(f,",").concat(g),"A".concat(u," ").concat(c," 0 ").concat(I," 1 ").concat(v," ").concat(m),"L".concat(S,",").concat(M),"A".concat(h," ").concat(d," 0 ").concat(I," 0 ").concat(x," ").concat(b),"Z"].join(" ");return r.setAttribute("d",C),r}(t),f=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=Hr("adj1",t,180),i=Hr("adj2",t,0),o=Ur("adj3",t,.25*n),a=e.w/2,s=e.h/2,l=e.w/2,u=e.h/2,c=e.w/2-o,h=e.h/2-o,d=ei(r,a,s,l,u),p=d[0],f=d[1],g=ei(i,a,s,l,u),y=g[0],v=g[1],m=ei(r,a,s,c,h),_=m[0],x=m[1],b=ei(i,a,s,c,h),w=[[p,f],[y,v],[_,x],[b[0],b[1]]];w.push(),r>i&&w.push([e.w,e.h/2]),(i>180&&i<=360&&r<180||r>i&&i>=0&&i<180&&r<180)&&w.push([0,e.h/2]),(r<i&&r<90&&i>90||r>i&&i>90||r>i&&r<90)&&w.push([e.w/2,e.h]),(r<i&&r<270&&i>270||r>i&&i>270||r>i&&r<270)&&w.push([e.w/2,0]);var S=1/0,M=1/0,I=-1/0,C=-1/0;return w.forEach((function(t){S=Math.min(t[0],S),M=Math.min(t[1],M),I=Math.max(t[0],I),C=Math.max(t[1],C)})),{top:M,bottom:e.h-C,left:S,right:e.w-I,w:I-S,h:C-M}}(t);break;case"foldedCorner":d=function(t){var e=t.extend,n=t.background,r=jr("g"),i=jr("path"),o=Ur("adj",t,.16667*Math.min(e.w,e.h)),a=["M0,0","L".concat(e.w,",0"),"L".concat(e.w,",").concat(e.h-o),"L".concat(e.w-o,",").concat(e.h),"L".concat(0,",").concat(e.h),"Z"].join(" ");i.setAttribute("d",a);var s=o*Math.cos(Math.PI/4)/Math.cos(Math.PI/6)*Math.cos(75/180*Math.PI),l=jr("path"),u=["M".concat(e.w-o+s,", ").concat(e.h-o+s),"L".concat(e.w,",").concat(e.h-o),"L".concat(e.w-o,",").concat(e.h),"Z"].join(" ");return l.setAttribute("d",u),"solidFill"===(null==n?void 0:n.type)&&l.setAttribute("fill",dr(n,{dark:.6})||"transparent"),r.appendChild(i),r.appendChild(l),r}(t),f=function(t){var e=t.extend,n=Ur("adj",t,.16667*Math.min(e.w,e.h));return{top:0,bottom:n,left:0,right:0,w:e.w,h:e.h-n}}(t);break;case"rightArrowCallout":d=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=Hr("adj1",t,.25)*n,i=Hr("adj2",t,.25)*n,o=Hr("adj3",t,.25)*n,a=Hr("adj4",t,.64977)*e.w,s=jr("path"),l=["M".concat(0,",").concat(0),"L".concat(a,",").concat(0),"L".concat(a,",").concat(e.h/2-r/2),"L".concat(e.w-o,",").concat(e.h/2-r/2),"L".concat(e.w-o,",").concat(e.h/2-i),"L".concat(e.w,",").concat(e.h/2),"L".concat(e.w-o,",").concat(e.h/2+i),"L".concat(e.w-o,",").concat(e.h/2+r/2),"L".concat(a,",").concat(e.h/2+r/2),"L".concat(a,",").concat(e.h),"L".concat(0,",").concat(e.h),"Z"].join(" ");return s.setAttribute("d",l),s}(t),f=function(t){var e=t.extend,n=Hr("adj4",t,.64977)*e.w;return{top:0,bottom:0,left:0,right:e.w-n,w:n,h:e.h}}(t);break;case"leftArrowCallout":d=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=Hr("adj1",t,.25)*n,i=Hr("adj2",t,.25)*n,o=Hr("adj3",t,.25)*n,a=Hr("adj4",t,.64977)*e.w,s=jr("path"),l=["M".concat(0,",").concat(e.h/2),"L".concat(o,",").concat(e.h/2-i),"L".concat(o,",").concat(e.h/2-r/2),"L".concat(e.w-a,",").concat(e.h/2-r/2),"L".concat(e.w-a,",").concat(0),"L".concat(e.w,",").concat(0),"L".concat(e.w,",").concat(e.h),"L".concat(e.w-a,",").concat(e.h),"L".concat(e.w-a,",").concat(e.h/2+r/2),"L".concat(o,",").concat(e.h/2+r/2),"L".concat(o,",").concat(e.h/2+i),"Z"].join(" ");return s.setAttribute("d",l),s}(t),f=function(t){var e=t.extend,n=Hr("adj4",t,.64977)*e.w;return{top:0,bottom:0,left:e.w-n,right:0,w:n,h:e.h}}(t);break;case"upArrowCallout":d=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=Hr("adj1",t,.25)*n,i=Hr("adj2",t,.25)*n,o=Hr("adj3",t,.25)*n,a=Hr("adj4",t,.64977)*e.h,s=jr("path"),l=["M".concat(0,",").concat(e.h-a),"L".concat(e.w/2-r/2,",").concat(e.h-a),"L".concat(e.w/2-r/2,",").concat(o),"L".concat(e.w/2-i,",").concat(o),"L".concat(e.w/2,",").concat(0),"L".concat(e.w/2+i,",").concat(o),"L".concat(e.w/2+r/2,",").concat(o),"L".concat(e.w/2+r/2,",").concat(e.h-a),"L".concat(e.w,",").concat(e.h-a),"L".concat(e.w,",").concat(e.h),"L".concat(0,",").concat(e.h),"Z"].join(" ");return s.setAttribute("d",l),s}(t),f=function(t){var e=t.extend,n=Hr("adj4",t,.64977)*e.h;return{top:e.h-n,bottom:0,left:0,right:0,w:e.w,h:n}}(t);break;case"downArrowCallout":d=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=Hr("adj1",t,.25)*n,i=Hr("adj2",t,.25)*n,o=Hr("adj3",t,.25)*n,a=Hr("adj4",t,.64977)*e.h,s=jr("path"),l=["M".concat(0,",").concat(0),"L".concat(e.w,",").concat(0),"L".concat(e.w,",").concat(a),"L".concat(e.w/2+r/2,",").concat(a),"L".concat(e.w/2+r/2,",").concat(e.h-o),"L".concat(e.w/2+i,",").concat(e.h-o),"L".concat(e.w/2,",").concat(e.h),"L".concat(e.w/2-i,",").concat(e.h-o),"L".concat(e.w/2-r/2,",").concat(e.h-o),"L".concat(e.w/2-r/2,",").concat(a),"L".concat(0,",").concat(a),"Z"].join(" ");return s.setAttribute("d",l),s}(t),f=function(t){var e=t.extend,n=Hr("adj4",t,.64977)*e.h;return{top:0,bottom:e.h-n,left:0,right:0,w:e.w,h:n}}(t);break;case"leftRightArrowCallout":d=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=Hr("adj1",t,.25)*n,i=Hr("adj2",t,.25)*n,o=Hr("adj3",t,.25)*n,a=Hr("adj4",t,.48123)*e.w,s=jr("path"),l=["M".concat(0,",").concat(e.h/2),"L".concat(o,",").concat(e.h/2-i),"L".concat(o,",").concat(e.h/2-r/2),"L".concat(e.w/2-a/2,",").concat(e.h/2-r/2),"L".concat(e.w/2-a/2,",").concat(0),"L".concat(e.w/2+a/2,",").concat(0),"L".concat(e.w/2+a/2,",").concat(e.h/2-r/2),"L".concat(e.w-o,",").concat(e.h/2-r/2),"L".concat(e.w-o,",").concat(e.h/2-i),"L".concat(e.w,",").concat(e.h/2),"L".concat(e.w-o,",").concat(e.h/2+i),"L".concat(e.w-o,",").concat(e.h/2+r/2),"L".concat(e.w/2+a/2,",").concat(e.h/2+r/2),"L".concat(e.w/2+a/2,",").concat(e.h),"L".concat(e.w/2-a/2,",").concat(e.h),"L".concat(e.w/2-a/2,",").concat(e.h/2+r/2),"L".concat(o,",").concat(e.h/2+r/2),"L".concat(o,",").concat(e.h/2+i),"Z"].join(" ");return s.setAttribute("d",l),s}(t),f=function(t){var e=t.extend,n=Hr("adj4",t,.48123)*e.w;return{top:0,bottom:0,left:e.w/2-n/2,right:e.w/2-n/2,w:n,h:e.h}}(t);break;case"quadArrowCallout":d=function(t){var e=t.extend,n=Math.min(e.w,e.h),r=Hr("adj1",t,.18515)*n,i=Hr("adj2",t,.18515)*n,o=Hr("adj3",t,.18515)*n,a=Hr("adj4",t,.48123)*e.w,s=Hr("adj4",t,.48123)*e.h,l=jr("path"),u=["M".concat(0,",").concat(e.h/2),"L".concat(o,",").concat(e.h/2-i),"L".concat(o,",").concat(e.h/2-r/2),"L".concat(e.w/2-a/2,",").concat(e.h/2-r/2),"L".concat(e.w/2-a/2,",").concat(e.h/2-s/2),"L".concat(e.w/2-r/2,",").concat(e.h/2-s/2),"L".concat(e.w/2-r/2,",").concat(o),"L".concat(e.w/2-i,",").concat(o),"L".concat(e.w/2,",").concat(0),"L".concat(e.w/2+i,",").concat(o),"L".concat(e.w/2+r/2,",").concat(o),"L".concat(e.w/2+r/2,",").concat(e.h/2-s/2),"L".concat(e.w/2+a/2,",").concat(e.h/2-s/2),"L".concat(e.w/2+a/2,",").concat(e.h/2-r/2),"L".concat(e.w-o,",").concat(e.h/2-r/2),"L".concat(e.w-o,",").concat(e.h/2-i),"L".concat(e.w,",").concat(e.h/2),"L".concat(e.w-o,",").concat(e.h/2+i),"L".concat(e.w-o,",").concat(e.h/2+r/2),"L".concat(e.w/2+a/2,",").concat(e.h/2+r/2),"L".concat(e.w/2+a/2,",").concat(e.h/2+s/2),"L".concat(e.w/2+r/2,",").concat(e.h/2+s/2),"L".concat(e.w/2+r/2,",").concat(e.h-o),"L".concat(e.w/2+i,",").concat(e.h-o),"L".concat(e.w/2,",").concat(e.h),"L".concat(e.w/2-i,",").concat(e.h-o),"L".concat(e.w/2-r/2,",").concat(e.h-o),"L".concat(e.w/2-r/2,",").concat(e.h/2+s/2),"L".concat(e.w/2-a/2,",").concat(e.h/2+s/2),"L".concat(e.w/2-a/2,",").concat(e.h/2+r/2),"L".concat(o,",").concat(e.h/2+r/2),"L".concat(o,",").concat(e.h/2+i),"Z"].join(" ");return l.setAttribute("d",u),l}(t),f=function(t){var e=t.extend,n=Hr("adj4",t,.48123)*e.w,r=Hr("adj4",t,.48123)*e.h;return{top:e.h/2-r/2,bottom:e.h/2-r/2,left:e.w/2-n/2,right:e.w/2-n/2,w:n,h:r}}(t)}if(d){g?"blipFill"===(null==i?void 0:i.type)?function(t,e,n){var r=t.background,i=void 0===r?{}:r,o=t.extend,a=i.base64,s=i.alpha,l=i.fillRect,u=void 0===l?{}:l,c=u.b,h=void 0===c?0:c,d=u.t,p=void 0===d?0:d,f=u.l,g=void 0===f?0:f,y=u.r,v=void 0===y?0:y,m=jr("defs"),_=jr("pattern");_.setAttribute("id","background_"+t.uuid),_.setAttribute("patternUnits","userSpaceOnUse"),_.setAttribute("width",o.w+""),_.setAttribute("height",o.h+"");var x=jr("image");x.setAttribute("href",a),x.setAttribute("preserveAspectRatio","none");var b=o.w*g,w=o.h*p,S=o.w*(1-g-v),M=o.h*(1-p-h);x.setAttribute("width",S+""),x.setAttribute("height",M+""),x.setAttribute("x",b+""),x.setAttribute("y",w+""),"number"==typeof s&&x.setAttribute("opacity",s+""),_.appendChild(x),m.appendChild(_),e.appendChild(m),n.setAttribute("fill","url(#background_".concat(t.uuid,")"))}(t,p,d):"gradFill"===(null==i?void 0:i.type)?function(t,e,n){var r=t.background,i=void 0===r?{}:r;t.extend;var o=i.gsList,a=i.lin,s=i.path,l=i.tileRect,u=void 0===l?{}:l,c=jr("defs"),h=jr("circle"===s?"radialGradient":"linearGradient");h.setAttribute("id","background_grad_fill_"+t.uuid);var d=o||[];if(d.sort((function(t,e){return t.pos-e.pos})),d.forEach((function(t){var e=jr("stop");e.setAttribute("offset","".concat(100*t.pos,"%")),e.setAttribute("stop-color",dr(t.color)),h.appendChild(e)})),"circle"===s){var p=u.r,f=u.l,g=u.t,y=u.b;-1===p?h.setAttribute("cx","100%"):-1===f&&h.setAttribute("cx","0%"),-1===g?h.setAttribute("cy","0%"):-1===y&&h.setAttribute("cy","100%")}else(null==a?void 0:a.ang)&&h.setAttribute("gradientTransform","rotate(".concat(a.ang,")"));c.appendChild(h),e.appendChild(c),n.setAttribute("fill","url(#background_grad_fill_".concat(t.uuid,")"))}(t,p,d):d.setAttribute("fill",dr(i)||"transparent"):d.setAttribute("fill","transparent"),r.width?(d.setAttribute("stroke-width",r.width+"px"),d.setAttribute("stroke",dr(r.color)||"transparent")):d.setAttribute("stroke-width","0"),d.setAttribute("stroke-dasharray",function(t){return t&&"solid"!==t.type?({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]}[t.type]||[]).map((function(e){return e*t.width})).join(","):""}(r));d.setAttribute("stroke-linecap",r.cap&&{sq:"square",rnd:"round",flat:"butt"}[r.cap]||"square"),d.setAttribute("stroke-linejoin",r.lineJoin||"round"),"miter"===r.lineJoin&&d.setAttribute("stroke-miterlimit",r.miterLim+""),p.appendChild(d)}var y=[];a&&y.push("scaleX(-1)"),l&&y.push("scaleY(-1)"),p.style.setProperty("transform",y.join(" ")),u.appendChild(p);var v=function(t,e,n){var r;void 0===n&&(n=!1);var i=t.inheritProps,o=t.props,a=t.paragraphs;if(!a||0===a.length)return null;var l=s(s({},i),o),u=document.createElement("div");switch(u.className="text-wrapper",u.style.boxSizing="border-box",u.style.position="absolute",u.style.left=e.left+"px","eaVert"===l.vert?(u.style.writingMode="vertical-rl",u.style.height=e.h+"px"):u.style.width=e.w+"px",l.anchor){case"b":u.style.bottom=e.bottom+"px";break;case"t":u.style.top=e.top+"px";break;case"ctr":u.style.top=e.top+e.h/2+"px",u.style.transform="translateY(-50%)";break;default:n?u.style.top=e.top+"px":(u.style.top=e.top+e.h/2+"px",u.style.transform="translateY(-50%)")}var c=[l.hasOwnProperty("tIns")?Math.floor(l.tIns)+"px":"3px",l.hasOwnProperty("rIns")?Math.floor(l.rIns)+"px":"5px",l.hasOwnProperty("bIns")?Math.floor(l.bIns)+"px":"3px",l.hasOwnProperty("lIns")?Math.floor(l.lIns)+"px":"5px"];u.style.padding=c.join(" ");for(var h={},d=0,p=function(t){var e=s(s({},t.inheritProps),t.props),n=void 0;if(e.buAutoNum){var i=e.level?+e.level:0;h[i]||(h[i]=0),(null===(r=t.rows)||void 0===r?void 0:r.length)&&h[i]++,Object.keys(h).forEach((function(t){+t>i&&(h[t]=0)})),n=Fr(t,h[i],{isFirst:0===d,isLast:a.length-1===d,bodyProps:l})}else n=Fr(t,0,{isFirst:0===d,isLast:a.length-1===d,bodyProps:l});u.appendChild(n),d++},f=0,g=a;f<g.length;f++)p(g[f]);return u}(t.textBody,f,t.isTextBox);return v&&u.appendChild(v),o&&u.style.setProperty("transform","rotate(".concat(o,"deg)")),u}function oi(t){var e=document.createElement("div"),n=t.extend;t.chExtend;var r=t.offset;t.chOffset;var i=t.flipV,o=t.flipH,a=t.rotate,s=r.x,l=r.y,u=n.w,c=n.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 h=[];o&&h.push("scaleX(-1)"),i&&h.push("scaleY(-1)"),a&&h.push("rotate(".concat(a,"deg)")),e.style.transformOrigin="center center",e.style.transform=h.join(" ");for(var d=0;d<t.nodes.length;d++){var p=t.nodes[d],f=void 0;p instanceof Mr?f=zr(p):p instanceof Sr?f=ii(p):p instanceof Cr&&(f=oi(p)),f&&e.appendChild(f)}return e}var ai=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},si=new function(){this.browser=new ai,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(si.wxa=!0,si.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?si.worker=!0:!si.hasGlobalWindow||"Deno"in window?(si.node=!0,si.svgSupported=!0):function(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,si);var li="sans-serif",ui="12px "+li;var ci,hi,di=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-20)/100;e[r]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),pi={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!ci){var n=pi.createCanvas();ci=n&&n.getContext("2d")}if(ci)return hi!==e&&(hi=ci.font=e||ui),ci.measureText(t);t=t||"";var r=/((?:\d+)?\.?\d*)px/.exec(e=e||ui),i=r&&+r[1]||12,o=0;if(e.indexOf("mono")>=0)o=i*t.length;else for(var a=0;a<t.length;a++){var s=di[t[a]];o+=null==s?i:s*i}return{width:o}},loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}},fi=Bi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),gi=Bi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),yi=Object.prototype.toString,vi=Array.prototype,mi=vi.forEach,_i=vi.filter,xi=vi.slice,bi=vi.map,wi=function(){}.constructor,Si=wi?wi.prototype:null,Mi="__proto__",Ii=2311;function Ci(){return Ii++}function Ai(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}function Ti(t){if(null==t||"object"!=typeof t)return t;var e=t,n=yi.call(t);if("[object Array]"===n){if(!uo(t)){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=Ti(t[r])}}else if(gi[n]){if(!uo(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(r=0,i=t.length;r<i;r++)e[r]=t[r]}}}else if(!fi[n]&&!uo(t)&&!$i(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==Mi&&(e[a]=Ti(t[a]));return e}function ki(t,e,n){if(!Xi(e)||!Xi(t))return n?Ti(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==Mi){var i=t[r],o=e[r];!Xi(o)||!Xi(i)||Wi(o)||Wi(i)||$i(o)||$i(i)||qi(o)||qi(i)||uo(o)||uo(i)?!n&&r in t||(t[r]=Ti(e[r])):ki(i,o,n)}return t}function Li(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=ki(n,t[r],e);return n}function Di(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Mi&&(t[n]=e[n]);return t}function Pi(t,e,n){for(var r=Fi(e),i=0,o=r.length;i<o;i++){var a=r[i];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}function Ri(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function Oi(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else Pi(t,e,n)}function Ei(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function Ni(t,e,n){if(t&&e)if(t.forEach&&t.forEach===mi)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function zi(t,e,n){if(!t)return[];if(!e)return ro(t);if(t.map&&t.map===bi)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function Bi(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function Vi(t,e,n){if(!t)return[];if(!e)return ro(t);if(t.filter&&t.filter===_i)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function Fi(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var Gi=Si&&Hi(Si.bind)?Si.call.bind(Si.bind):function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(xi.call(arguments)))}};function ji(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(xi.call(arguments)))}}function Wi(t){return Array.isArray?Array.isArray(t):"[object Array]"===yi.call(t)}function Hi(t){return"function"==typeof t}function Ui(t){return"string"==typeof t}function Zi(t){return"[object String]"===yi.call(t)}function Yi(t){return"number"==typeof t}function Xi(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function qi(t){return!!fi[yi.call(t)]}function Ki(t){return!!gi[yi.call(t)]}function $i(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function Qi(t){return null!=t.colorStops}function Ji(t){return t!=t}function to(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function eo(t,e){return null!=t?t:e}function no(t,e,n){return null!=t?t:null!=e?e:n}function ro(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return xi.apply(t,e)}function io(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function oo(t,e){if(!t)throw new Error(e)}function ao(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var so="__ec_primitive__";function lo(t){t[so]=!0}function uo(t){return t[so]}var co=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return Fi(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),ho="function"==typeof Map;var po=function(){function t(e){var n=Wi(e);this.data=ho?new Map:new co;var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&Ni(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,r){t.call(e,n,r)}))},t.prototype.keys=function(){var t=this.data.keys();return ho?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function fo(t){return new po(t)}function go(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}function yo(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&Di(n,e),n}function vo(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function mo(t,e){return t.hasOwnProperty(e)}function _o(){}var xo=180/Math.PI;function bo(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function wo(t,e){return t[0]=e[0],t[1]=e[1],t}function So(t){return[t[0],t[1]]}function Mo(t,e,n){return t[0]=e,t[1]=n,t}function Io(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Co(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function Ao(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function To(t){return Math.sqrt(function(t){return t[0]*t[0]+t[1]*t[1]}(t))}function ko(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Lo(t,e){var n=To(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Do(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Po=Do;var Ro=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function Oo(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function Eo(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function No(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function zo(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Bo=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},Vo=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Bo(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new Bo(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Bo(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Bo(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Bo(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Bo(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Fo=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),Go=Math.log(2);function jo(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/Go);return t[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var h=0,d=0,p=0;d<s;d++){var f=1<<d;f&i||(h+=(p%2?-1:1)*t[n][d]*jo(t,e-1,c,u,i|f,o),p++)}return o[a]=h,h}function Wo(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=jo(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*jo(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var Ho="___zrEVENTSAVED",Uo=[];function Zo(t,e,n,r,i){if(e.getBoundingClientRect&&si.domSupported&&!Yo(e)){var o=e[Ho]||(e[Ho]={}),a=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[l]+":0",r[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),s=function(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?Wo(s,a):Wo(a,s))}(a,o,i);if(s)return s(t,n,r),!0}return!1}function Yo(t){return"CANVAS"===t.nodeName.toUpperCase()}var Xo=/([&<>"'])/g,qo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ko(t){return null==t?"":(t+"").replace(Xo,(function(t,e){return qo[e]}))}var $o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Qo=[],Jo=si.browser.firefox&&+si.browser.version.split(".")[0]<39;function ta(t,e,n,r){return n=n||{},r?ea(t,e,n):Jo&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ea(t,e,n),n}function ea(t,e,n){if(si.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(Yo(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(Zo(Qo,t,r,i))return n.zrX=Qo[0],void(n.zrY=Qo[1])}n.zrX=n.zrY=0}function na(t){return t||window.event}function ra(t,e,n){if(null!=(e=na(e)).zrX)return e;var r=e.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];i&&ta(t,i,e,n)}else{ta(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&$o.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function ia(t,e,n,r){t.addEventListener(e,n,r)}var oa=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function aa(t){return 2===t.which||3===t.which}var sa=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o<a;o++){var s=r[o],l=ta(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in ua)if(ua.hasOwnProperty(e)){var n=ua[e](this._track,t);if(n)return n}},t}();function la(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var ua={pinch:function(t,e){var n=t.length;if(n){var r,i=(t[n-1]||{}).points,o=(t[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var a=la(i)/la(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function ca(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ha(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function da(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function pa(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function fa(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=i*h+s*c,t[1]=-i*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-r[0])+c*(u-r[1])+r[0],t[5]=h*(u-r[1])-c*(a-r[0])+r[1],t}function ga(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function ya(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}var va=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),ma=Math.min,_a=Math.max,xa=new va,ba=new va,wa=new va,Sa=new va,Ma=new va,Ia=new va,Ca=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=ma(t.x,this.x),n=ma(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=_a(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=_a(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=[1,0,0,1,0,0];return pa(i,i,[-e.x,-e.y]),ga(i,i,[n,r]),pa(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,d=!(o<l||u<i||s<c||h<a);if(n){var p=1/0,f=0,g=Math.abs(o-l),y=Math.abs(u-i),v=Math.abs(s-c),m=Math.abs(h-a),_=Math.min(g,y),x=Math.min(v,m);o<l||u<i?_>f&&(f=_,g<y?va.set(Ia,-g,0):va.set(Ia,y,0)):_<p&&(p=_,g<y?va.set(Ma,g,0):va.set(Ma,-y,0)),s<c||h<a?x>f&&(f=x,v<m?va.set(Ia,0,-v):va.set(Ia,0,m)):_<p&&(p=_,v<m?va.set(Ma,0,v):va.set(Ma,0,-m))}return n&&va.copy(n,d?Ma:Ia),d},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}xa.x=wa.x=n.x,xa.y=Sa.y=n.y,ba.x=Sa.x=n.x+n.width,ba.y=wa.y=n.y+n.height,xa.transform(r),Sa.transform(r),ba.transform(r),wa.transform(r),e.x=ma(xa.x,ba.x,wa.x,Sa.x),e.y=ma(xa.y,ba.y,wa.y,Sa.y);var l=_a(xa.x,ba.x,wa.x,Sa.x),u=_a(xa.y,ba.y,wa.y,Sa.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Aa="silent";function Ta(){oa(this.event)}var ka=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return a(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Fo),La=function(t,e){this.x=t,this.y=e},Da=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Pa=new Ca(0,0,0,0),Ra=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new La(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new ka,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new Vo(a),a}return a(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(Ni(Da,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=Na(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new La(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new La(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var r=(t=t||{}).target;if(!r||!r.silent){for(var i="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ta}}(e,t,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new La(t,e);if(Ea(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Ca(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Pa.copy(c.getBoundingRect()),c.transform&&Pa.applyTransform(c.transform),Pa.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<d;f+=h){if(Ea(o,i,t+p*Math.cos(f),e+p*Math.sin(f),n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new sa);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new La;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(Fo);function Oa(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||Aa}return!1}function Ea(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=Oa(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==Aa)){e.target=a;break}}}function Na(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}Ni(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Ra.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=Na(this,i,o);if("mouseup"===t&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Po(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));function za(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i<n&&r(t[i],t[i-1])<0;)i++;!function(t,e,n){n--;for(;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}(t,e,i)}else for(;i<n&&r(t[i],t[i-1])>=0;)i++;return i-e}function Ba(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var o,a=t[r],s=e,l=r;s<l;)i(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Va(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;l<s&&o(t,e[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(t,e[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function Fa(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;l<s&&o(t,e[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(t,e[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function Ga(t,e){var n,r,i=7,o=0,a=[];function s(s){var l=n[s],u=r[s],c=n[s+1],h=r[s+1];r[s]=u+h,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--;var d=Fa(t[c],t,l,u,0,e);l+=d,0!==(u-=d)&&0!==(h=Va(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0==--s){for(l=0;l<r;l++)t[h+l]=a[u+l];return}if(1===r){for(l=0;l<s;l++)t[h+l]=t[c+l];return void(t[h+s]=a[u])}var d,p,f,g=i;for(;;){d=0,p=0,f=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],p++,d=0,0==--s){f=!0;break}}else if(t[h++]=a[u++],d++,p=0,1==--r){f=!0;break}}while((d|p)<g);if(f)break;do{if(0!==(d=Fa(t[c],a,u,r,0,e))){for(l=0;l<d;l++)t[h+l]=a[u+l];if(h+=d,u+=d,(r-=d)<=1){f=!0;break}}if(t[h++]=t[c++],0==--s){f=!0;break}if(0!==(p=Va(a[u],t,c,s,0,e))){for(l=0;l<p;l++)t[h+l]=t[c+l];if(h+=p,c+=p,0===(s-=p)){f=!0;break}}if(t[h++]=a[u++],1==--r){f=!0;break}g--}while(d>=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===r){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)t[h+l]=a[u+l]}}(l,u,c,h):function(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+r-1,c=s-1,h=o+s-1,d=0,p=0;if(t[h--]=t[u--],0==--r){for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l];return}if(1===s){for(p=(h-=r)+1,d=(u-=r)+1,l=r-1;l>=0;l--)t[p+l]=t[d+l];return void(t[h]=a[c])}var f=i;for(;;){var g=0,y=0,v=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,y=0,0==--r){v=!0;break}}else if(t[h--]=a[c--],y++,g=0,1==--s){v=!0;break}}while((g|y)<f);if(v)break;do{if(0!==(g=r-Fa(a[c],t,n,r,r-1,e))){for(r-=g,p=(h-=g)+1,d=(u-=g)+1,l=g-1;l>=0;l--)t[p+l]=t[d+l];if(0===r){v=!0;break}}if(t[h--]=a[c--],1==--s){v=!0;break}if(0!==(y=s-Va(t[u],a,0,s,s-1,e))){for(s-=y,p=(h-=y)+1,d=(c-=y)+1,l=0;l<y;l++)t[p+l]=a[d+l];if(s<=1){v=!0;break}}if(t[h--]=t[u--],0==--r){v=!0;break}f--}while(g>=7||y>=7);if(v)break;f<0&&(f=0),f+=2}(i=f)<1&&(i=1);if(1===s){for(p=(h-=r)+1,d=(u-=r)+1,l=r-1;l>=0;l--)t[p+l]=t[d+l];t[h]=a[c]}else{if(0===s)throw new Error;for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l]}}(l,u,c,h))}return n=[],r=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&r[t-1]<r[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,r[o]=e,o+=1}}}function ja(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<32)Ba(t,n,r,n+(o=za(t,n,r,e)),e);else{var a=Ga(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(i);do{if((o=za(t,n,r,e))<s){var l=i;l>s&&(l=s),Ba(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var Wa=!1;function Ha(){Wa||(Wa=!0)}function Ua(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Za,Ya=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ua}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,ja(n,Ua)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];for(var i=r,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Ha(),u.z=0),isNaN(u.z2)&&(Ha(),u.z2=0),isNaN(u.zlevel)&&(Ha(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var r=Ri(this._roots,t);r>=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();Za=si.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Xa={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Xa.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Xa.bounceIn(2*t):.5*Xa.bounceOut(2*t-1)+.5}},qa=Math.pow,Ka=Math.sqrt,$a=1e-4,Qa=Ka(3),Ja=1/3,ts=bo(),es=bo(),ns=bo();function rs(t){return t>-1e-8&&t<1e-8}function is(t){return t>1e-8||t<-1e-8}function os(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function as(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function ss(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,p=0;if(rs(c)&&rs(h)){if(rs(s))o[0]=0;else(M=-l/s)>=0&&M<=1&&(o[p++]=M)}else{var f=h*h-4*c*d;if(rs(f)){var g=h/c,y=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[p++]=M),y>=0&&y<=1&&(o[p++]=y)}else if(f>0){var v=Ka(f),m=c*s+1.5*a*(-h+v),_=c*s+1.5*a*(-h-v);(M=(-s-((m=m<0?-qa(-m,Ja):qa(m,Ja))+(_=_<0?-qa(-_,Ja):qa(_,Ja))))/(3*a))>=0&&M<=1&&(o[p++]=M)}else{var x=(2*c*s-3*a*h)/(2*Ka(c*c*c)),b=Math.acos(x)/3,w=Ka(c),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(y=(-s+w*(S+Qa*Math.sin(b)))/(3*a),(-s+w*(S-Qa*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[p++]=M),y>=0&&y<=1&&(o[p++]=y),I>=0&&I<=1&&(o[p++]=I)}}return p}function ls(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(rs(a)){if(is(o))(c=-s/o)>=0&&c<=1&&(i[l++]=c)}else{var u=o*o-4*a*s;if(rs(u))i[0]=-o/(2*a);else if(u>0){var c,h=Ka(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}function us(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function cs(t,e,n,r,i,o,a,s,l,u,c){var h,d,p,f,g,y=.005,v=1/0;ts[0]=l,ts[1]=u;for(var m=0;m<1;m+=.05)es[0]=os(t,n,i,a,m),es[1]=os(e,r,o,s,m),(f=Ro(ts,es))<v&&(h=m,v=f);v=1/0;for(var _=0;_<32&&!(y<$a);_++)d=h-y,p=h+y,es[0]=os(t,n,i,a,d),es[1]=os(e,r,o,s,d),f=Ro(es,ts),d>=0&&f<v?(h=d,v=f):(ns[0]=os(t,n,i,a,p),ns[1]=os(e,r,o,s,p),g=Ro(ns,ts),p<=1&&g<v?(h=p,v=g):y*=.5);return c&&(c[0]=os(t,n,i,a,h),c[1]=os(e,r,o,s,h)),Ka(v)}function hs(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,d=1/l,p=1;p<=l;p++){var f=p*d,g=os(t,n,i,a,f),y=os(e,r,o,s,f),v=g-u,m=y-c;h+=Math.sqrt(v*v+m*m),u=g,c=y}return h}function ds(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function ps(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function fs(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function gs(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function ys(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;ts[0]=a,ts[1]=s;for(var d=0;d<1;d+=.05){es[0]=ds(t,n,i,d),es[1]=ds(e,r,o,d),(y=Ro(ts,es))<h&&(u=d,h=y)}h=1/0;for(var p=0;p<32&&!(c<$a);p++){var f=u-c,g=u+c;es[0]=ds(t,n,i,f),es[1]=ds(e,r,o,f);var y=Ro(es,ts);if(f>=0&&y<h)u=f,h=y;else{ns[0]=ds(t,n,i,g),ns[1]=ds(e,r,o,g);var v=Ro(ns,ts);g<=1&&v<h?(u=g,h=v):c*=.5}}return l&&(l[0]=ds(t,n,i,u),l[1]=ds(e,r,o,u)),Ka(h)}function vs(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,p=ds(t,n,i,d),f=ds(e,r,o,d),g=p-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=p,l=f}return u}var ms=/cubic-bezier\(([0-9,\.e ]+)\)/;function _s(t){var e=t&&ms.exec(t);if(e){var n=e[1].split(","),r=+ao(n[0]),i=+ao(n[1]),o=+ao(n[2]),a=+ao(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:ss(0,r,o,1,t,s)&&os(0,i,a,1,s[0])}}}var xs=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||_o,this.ondestroy=t.ondestroy||_o,this.onrestart=t.onrestart||_o,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Hi(t)?t:Xa[t]||_s(t)},t}(),bs=function(t){this.value=t},ws=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new bs(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Ss=function(){function t(t){this._list=new ws,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,i=null;if(null==r[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new bs(e),a.key=t,n.insertEntry(a),r[t]=a}return i},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Ms={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 Is(t){return(t=Math.round(t))<0?0:t>255?255:t}function Cs(t){return t<0?0:t>1?1:t}function As(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Is(parseFloat(e)/100*255):Is(parseInt(e,10))}function Ts(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Cs(parseFloat(e)/100):Cs(parseFloat(e))}function ks(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Ls(t,e,n){return t+(e-t)*n}function Ds(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function Ps(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Rs=new Ss(20),Os=null;function Es(t,e){Os&&Ps(Os,e),Os=Rs.put(t,Os||e.slice())}function Ns(t,e){if(t){e=e||[];var n=Rs.get(t);if(n)return Ps(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in Ms)return Ps(e,Ms[r]),Es(t,e),e;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(Ds(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),Es(t,e),e):void Ds(e,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(Ds(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),Es(t,e),e):void Ds(e,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Ds(e,+u[0],+u[1],+u[2],1):Ds(e,0,0,0,1);c=Ts(u.pop());case"rgb":return u.length>=3?(Ds(e,As(u[0]),As(u[1]),As(u[2]),3===u.length?c:Ts(u[3])),Es(t,e),e):void Ds(e,0,0,0,1);case"hsla":return 4!==u.length?void Ds(e,0,0,0,1):(u[3]=Ts(u[3]),zs(u,e),Es(t,e),e);case"hsl":return 3!==u.length?void Ds(e,0,0,0,1):(zs(u,e),Es(t,e),e);default:return}}Ds(e,0,0,0,1)}}function zs(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Ts(t[1]),i=Ts(t[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return Ds(e=e||[],Is(255*ks(a,o,n+1/3)),Is(255*ks(a,o,n)),Is(255*ks(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Bs(t,e){var n=Ns(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return js(n,4===n.length?"rgba":"rgb")}}function Vs(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=e[i],s=e[o],l=r-i;return n[0]=Is(Ls(a[0],s[0],l)),n[1]=Is(Ls(a[1],s[1],l)),n[2]=Is(Ls(a[2],s[2],l)),n[3]=Cs(Ls(a[3],s[3],l)),n}}function Fs(t,e,n,r){var i=Ns(t);if(t)return i=function(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,d=((s-o)/6+l/2)/l;r===s?e=d-h:i===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(i),null!=e&&(i[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(i[1]=Ts(n)),null!=r&&(i[2]=Ts(r)),js(zs(i),"rgba")}function Gs(t,e){var n=Ns(t);if(n&&null!=e)return n[3]=Cs(e),js(n,"rgba")}function js(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function Ws(t,e){var n=Ns(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var Hs=new Ss(100);function Us(t){if(Ui(t)){var e=Hs.get(t);return e||(e=Bs(t,-.1),Hs.put(t,e)),e}if(Qi(t)){var n=Di({},t);return n.colorStops=zi(t.colorStops,(function(t){return{offset:t.offset,color:Bs(t.color,-.1)}})),n}return t}var Zs=Math.round;function Ys(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Ns(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function Xs(t){return t<1e-4&&t>-1e-4}function qs(t){return Zs(1e3*t)/1e3}function Ks(t){return Zs(1e4*t)/1e4}var $s={left:"start",right:"end",center:"middle",middle:"middle"};function Qs(t){return t&&!!t.image}function Js(t){return Qs(t)||function(t){return t&&!!t.svgElement}(t)}function tl(t){return"linear"===t.type}function el(t){return"radial"===t.type}function nl(t){return t&&("linear"===t.type||"radial"===t.type)}function rl(t){return"url(#"+t+")"}function il(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function ol(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*xo,i=eo(t.scaleX,1),o=eo(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),1===i&&1===o||l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+Zs(a*xo)+"deg, "+Zs(s*xo)+"deg)"),l.join(" ")}var al=si.hasGlobalWindow&&Hi(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},sl=Array.prototype.slice;function ll(t,e,n){return(e-t)*n+t}function ul(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=ll(e[o],n[o],r);return t}function cl(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function hl(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function dl(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function pl(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:sl.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var u=0;u<l;u++)isNaN(r[s][u])&&(r[s][u]=i[s][u])}}function fl(t){if(Ei(t)){var e=t.length;if(Ei(t[0])){for(var n=[],r=0;r<e;r++)n.push(sl.call(t[r]));return n}return sl.call(t)}return t}function gl(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function yl(t){return 4===t||5===t}function vl(t){return 1===t||2===t}var ml=[0,0,0,0],_l=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=e;if(Ei(e)){var l=function(t){return Ei(t&&t[0])?2:1}(e);a=l,(1===l&&!Yi(e[0])||2===l&&!Yi(e[0][0]))&&(o=!0)}else if(Yi(e)&&!Ji(e))a=0;else if(Ui(e))if(isNaN(+e)){var u=Ns(e);u&&(s=u,a=3)}else a=0;else if(Qi(e)){var c=Di({},s);c.colorStops=zi(e.colorStops,(function(t){return{offset:t.offset,color:Ns(t.color)}})),tl(e)?a=4:el(e)&&(a=5),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Hi(n)?n:Xa[n]||_s(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=vl(r),l=yl(r),u=0;u<i;u++){var c=n[u],h=c.value,d=o.value;c.percent=c.time/t,a||(s&&u!==i-1?pl(h,d,r):l&&dl(h.colorStops,d.colorStops))}if(!a&&5!==r&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var p=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-p:3===r?n[u].additiveValue=cl([],n[u].value,p,-1):vl(r)&&(n[u].additiveValue=1===r?cl([],n[u].value,p,-1):hl([],n[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=3===s,d=this._lastFr,p=Math.min;if(1===u)r=i=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=p(d+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=d;n<u&&!(l[n].percent>e);n++);n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var f=i.percent-r.percent,g=0===f?1:p((e-r.percent)/f,1);i.easingFunc&&(g=i.easingFunc(g));var y=o?this._additiveValue:h?ml:t[c];if(!vl(s)&&!h||y||(y=this._additiveValue=[]),this.discrete)t[c]=g<1?r.rawValue:i.rawValue;else if(vl(s))1===s?ul(y,r[a],i[a],g):function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=ll(e[a][s],n[a][s],r)}}(y,r[a],i[a],g);else if(yl(s)){var v=r[a],m=i[a],_=4===s;t[c]={type:_?"linear":"radial",x:ll(v.x,m.x,g),y:ll(v.y,m.y,g),colorStops:zi(v.colorStops,(function(t,e){var n=m.colorStops[e];return{offset:ll(t.offset,n.offset,g),color:gl(ul([],t.color,n.color,g))}})),global:m.global},_?(t[c].x2=ll(v.x2,m.x2,g),t[c].y2=ll(v.y2,m.y2,g)):t[c].r=ll(v.r,m.r,g)}else if(h)ul(y,r[a],i[a],g),o||(t[c]=gl(y));else{var x=ll(r[a],i[a],g);o?this._additiveValue=x:t[c]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;0===e?t[n]=t[n]+r:3===e?(Ns(t[n],ml),cl(ml,ml,r,1),t[n]=gl(ml)):1===e?cl(t[n],t[n],r,1):2===e&&hl(t[n],t[n],r,1)},t}(),xl=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Ai("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Fi(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new _l(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=gl(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,fl(l),r),this._trackKeys.push(a)}s.addKeyframe(t,fl(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new xs({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return zi(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=fl(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Fi(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();function bl(){return(new Date).getTime()}var wl,Sl,Ml=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return a(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=bl()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next;r.step(e,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Za((function e(){t._running&&(Za(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=bl(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=bl(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=bl()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new xl(t,e.loop);return this.addAnimator(n),n},e}(Fo),Il=si.domSupported,Cl=(Sl={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:wl=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:zi(wl,(function(t){var e=t.replace("mouse","pointer");return Sl.hasOwnProperty(e)?e:t}))}),Al=["mousemove","mouseup"],Tl=["pointermove","pointerup"],kl=!1;function Ll(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Dl(t){t&&(t.zrByTouch=!0)}function Pl(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var Rl=function(t,e){this.stopPropagation=_o,this.stopImmediatePropagation=_o,this.preventDefault=_o,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Ol={mousedown:function(t){t=ra(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ra(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ra(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Pl(this,(t=ra(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){kl=!0,t=ra(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){kl||(t=ra(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Dl(t=ra(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ol.mousemove.call(this,t),Ol.mousedown.call(this,t)},touchmove:function(t){Dl(t=ra(this.dom,t)),this.handler.processGesture(t,"change"),Ol.mousemove.call(this,t)},touchend:function(t){Dl(t=ra(this.dom,t)),this.handler.processGesture(t,"end"),Ol.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Ol.click.call(this,t)},pointerdown:function(t){Ol.mousedown.call(this,t)},pointermove:function(t){Ll(t)||Ol.mousemove.call(this,t)},pointerup:function(t){Ol.mouseup.call(this,t)},pointerout:function(t){Ll(t)||Ol.mouseout.call(this,t)}};Ni(["click","dblclick","contextmenu"],(function(t){Ol[t]=function(e){e=ra(this.dom,e),this.trigger(t,e)}}));var El={pointermove:function(t){Ll(t)||El.mousemove.call(this,t)},pointerup:function(t){El.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Nl(t,e){var n=e.domHandlers;si.pointerEventsSupported?Ni(Cl.pointer,(function(r){Bl(e,r,(function(e){n[r].call(t,e)}))})):(si.touchEventsSupported&&Ni(Cl.touch,(function(r){Bl(e,r,(function(i){n[r].call(t,i),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),Ni(Cl.mouse,(function(r){Bl(e,r,(function(i){i=na(i),e.touching||n[r].call(t,i)}))})))}function zl(t,e){function n(n){Bl(e,n,(function(r){r=na(r),Pl(t,r.target)||(r=function(t,e){return ra(t.dom,new Rl(t,e),!0)}(t,r),e.domHandlers[n].call(t,r))}),{capture:!0})}si.pointerEventsSupported?Ni(Tl,n):si.touchEventsSupported||Ni(Al,n)}function Bl(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,ia(t.domTarget,e,n,r)}function Vl(t){var e,n,r,i,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,r=o[a],i=t.listenerOpts[a],e.removeEventListener(n,r,i));t.mounted={}}var Fl=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Gl=function(t){function e(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new Fl(e,Ol),Il&&(r._globalHandlerScope=new Fl(document,El)),Nl(r,r._localHandlerScope),r}return a(e,t),e.prototype.dispose=function(){Vl(this._localHandlerScope),Il&&Vl(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,Il&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?zl(this,e):Vl(e)}},e}(Fo),jl=1;si.hasGlobalWindow&&(jl=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Wl=jl,Hl="#333",Ul="#ccc",Zl=ca;function Yl(t){return t>5e-5||t<-5e-5}var Xl=[],ql=[],Kl=[1,0,0,1,0,0],$l=Math.abs,Ql=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Yl(this.rotation)||Yl(this.x)||Yl(this.y)||Yl(this.scaleX-1)||Yl(this.scaleY-1)||Yl(this.skewX)||Yl(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Zl(n),t&&(e?da(n,t,n):ha(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Zl(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Xl);var n=Xl[0]<0?-1:1,r=Xl[1]<0?-1:1,i=((Xl[0]-n)*e+n)/Xl[0]||0,o=((Xl[1]-r)*e+r)/Xl[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],ya(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],da(ql,t.invTransform,e),e=ql);var n=this.originX,r=this.originY;(n||r)&&(Kl[4]=n,Kl[5]=r,da(ql,e,Kl),ql[4]-=n,ql[5]-=r,e=ql),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&Eo(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&Eo(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&$l(t[0]-1)>1e-10&&$l(t[3]-1)>1e-10?Math.sqrt($l(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){tu(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var p=n+a,f=r+s;e[4]=-p*i-h*f*o,e[5]=-f*o-d*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=d*i,e[2]=h*o,l&&fa(e,e,l),e[4]+=n+u,e[5]+=r+c,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Jl=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function tu(t,e){for(var n=0;n<Jl.length;n++){var r=Jl[n];t[r]=e[r]}}var eu={};function nu(t,e){var n=eu[e=e||ui];n||(n=eu[e]=new Ss(500));var r=n.get(t);return null==r&&(r=pi.measureText(t,e).width,n.put(t,r)),r}function ru(t,e,n,r){var i=nu(t,e),o=su(e),a=ou(0,i,n),s=au(0,o,r);return new Ca(a,s,i,o)}function iu(t,e,n,r){var i=((t||"")+"").split("\n");if(1===i.length)return ru(i[0],e,n,r);for(var o=new Ca(0,0,0,0),a=0;a<i.length;a++){var s=ru(i[a],e,n,r);0===a?o.copy(s):o.union(s)}return o}function ou(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function au(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function su(t){return nu("国",t)}function lu(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function uu(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=lu(r[0],n.width),u+=lu(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var cu="__zr_normal__",hu=Jl.concat(["ignore"]),du=Bi(Jl,(function(t,e){return t[e]=!0,t}),{ignore:!1}),pu={},fu=new Ca(0,0,0,0),gu=function(){function t(t){this.id=Ci(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=fu;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(pu,n,u):uu(pu,n,u),i.x=pu.x,i.y=pu.y,o=pu.align,a=pu.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=lu(c[0],u.width),d=lu(c[1],u.height)),l=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+d+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;f&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(y),m=!0)),(y=y||"#000")===g.fill&&v===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ul:Hl},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Ns(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,js(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Di(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Xi(t))for(var n=Fi(t),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,t[i])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==cu)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,hu)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(cu,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===cu;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(Ri(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}Ai("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Ri(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Ri(r,t),o=Ri(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];Di(n,i),i.textConfig&&Di(e=e||{},i.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=Di({},r?this.textConfig:n.textConfig),Di(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<hu.length;u++){var c=hu[u],h=i&&du[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var d=this.animators[u],p=d.targetName;d.getLoop()||d.__changeFinalValue(p?(e||n)[p]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Ql,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Di(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this,i=new xl(r,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during((function(){r.updateDuringAnimation(e)})).done((function(){var e=r.animators,n=Ri(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){yu(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){yu(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=yu(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,r,i){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(e,t,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}})}e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function yu(t,e,n,r,i){var o=[];_u(t,"",t,e,n=n||{},r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d<o.length;d++){var p=o[d];c&&p.done(c),h&&p.aborted(h),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function vu(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function mu(t,e,n){if(Ei(e[n]))if(Ei(t[n])||(t[n]=[]),Ki(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),vu(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(Ei(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?vu(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else vu(o,i,a);o.length=i.length}else t[n]=e[n]}function _u(t,e,n,r,i,o,a,s){for(var l=Fi(r),u=i.duration,c=i.delay,h=i.additive,d=i.setToFinal,p=!Xi(o),f=t.animators,g=[],y=0;y<l.length;y++){var v=l[y],m=r[v];if(null!=m&&null!=n[v]&&(p||o[v]))if(!Xi(m)||Ei(m)||Qi(m))g.push(v);else{if(e){s||(n[v]=m,t.updateDuringAnimation(e));continue}_u(t,v,n[v],m,i,o&&o[v],a,s)}else s||(n[v]=m,t.updateDuringAnimation(e),g.push(v))}var _=g.length;if(!h&&_)for(var x=0;x<f.length;x++){if((w=f[x]).targetName===e)if(w.stopTracks(g)){var b=Ri(f,w);f.splice(b,1)}}if(i.force||(g=Vi(g,(function(t){return e=r[t],i=n[t],!(e===i||Ei(e)&&Ei(i)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}(e,i));var e,i})),_=g.length),_>0||i.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s){M={},d&&(S={});for(x=0;x<_;x++){M[v=g[x]]=n[v],d?S[v]=r[v]:n[v]=r[v]}}else if(d){I={};for(x=0;x<_;x++){I[v=g[x]]=fl(n[v]),mu(n,r,v)}}(w=new xl(n,!1,!1,h?Vi(f,(function(t){return t.targetName===e})):null)).targetName=e,i.scope&&(w.scope=i.scope),d&&S&&w.whenWithKeys(0,S,g),I&&w.whenWithKeys(0,I,g),w.whenWithKeys(null==u?500:u,s?M:r,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}Oi(gu,Fo),Oi(gu,Ql);var xu=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return a(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=Ri(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=Ri(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new Ca(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(Ca.applyTransform(e,s,l),(i=i||e.clone()).union(e)):(i=i||s.clone()).union(s)}}return i||e},e}(gu);xu.prototype.type="group";
  2. /*!
  3. * ZRender, a high performance 2d drawing library.
  4. *
  5. * Copyright (c) 2013, Baidu Inc.
  6. * All rights reserved.
  7. *
  8. * LICENSE
  9. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  10. */
  11. var bu={},wu={};var Su,Mu=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new Ya,o=n.renderer||"canvas";bu[o]||(o=Fi(bu)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new bu[o](e,i,n,t),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=si.node||si.worker||s?null:new Gl(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?si.touchEventsSupported:!!c)&&(l=eo(n.pointerSize,44)),this.handler=new Ra(i,a,u,a.root,l),this.animation=new Ml({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Ws(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=Ws(e[i].color,1);return(n/=r)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=bl();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=bl();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof xu&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;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,t=this.id,delete wu[t])},t}();function Iu(t,e){var n=new Mu(Ci(),t,e);return wu[n.id]=n,n}function Cu(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function Au(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return Ui(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function Tu(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function ku(t){return t.sort((function(t,e){return t-e})),t}function Lu(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return function(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}(t)}function Du(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function Pu(t,e){var n=Math.max(Lu(t),Lu(e)),r=t+e;return n>20?r:Tu(r,n)}var Ru=9007199254740991;function Ou(t){var e=2*Math.PI;return(t%e+e)%e}function Eu(t){return t>-1e-4&&t<1e-4}var Nu=/^(?:(\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 zu(t){if(t instanceof Date)return t;if(Ui(t)){var e=Nu.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Bu(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Vu(t,e){var n=Bu(t),r=Math.pow(10,n),i=t/r;return t=(i<1.5?1:i<2.5?2:i<4?3:i<7?5:10)*r,n>=-20?+t.toFixed(n<0?-n:0):t}function Fu(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function Gu(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!=1?t.splice(r,1):r++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]==(n?-1:1)||!n&&s(t,e,1))}}function ju(t){var e=parseFloat(t);return e==t&&(0!==e||!Ui(t)||t.indexOf("x")<=0)?e:NaN}function Wu(t){return!isNaN(ju(t))}function Hu(){return Math.round(9*Math.random())}function Uu(t,e){return 0===e?t:Uu(e,t%e)}function Zu(t,e){return null==t?e:null==e?t:t*e/Uu(t,e)}function Yu(t){throw new Error(t)}function Xu(t,e,n){return(e-t)*n+t}var qu="series\0",Ku="\0_ec_\0";function $u(t){return t instanceof Array?t:null==t?[]:[t]}function Qu(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Ju=["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 tc(t){return!Xi(t)||Wi(t)||t instanceof Date?t:t.value}function ec(t){return Xi(t)&&!(t instanceof Array)}function nc(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=fo();Ni(e,(function(t,n){Xi(t)||(e[n]=null)}));var s,l,u=function(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||sc(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(t,a,n);return(r||i)&&function(t,e,n,r){Ni(r,(function(i,o){if(i&&null!=i.id){var a=ic(i.id),s=n.get(a);if(null!=s){var l=t[s];oo(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}}))}(u,t,a,e),r&&function(t,e){Ni(e,(function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!sc(n)&&!sc(o)&&rc("name",o,n))return t[i].newOption=n,void(e[r]=null)}}))}(u,e),r||i?function(t,e,n){Ni(e,(function(e){if(e){for(var r,i=0;(r=t[i])&&(r.newOption||sc(r.existing)||r.existing&&null!=e.id&&!rc("id",e,r.existing));)i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}(u,e,i):o&&function(t,e){Ni(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(u,e),s=u,l=fo(),Ni(s,(function(t){var e=t.existing;e&&l.set(e.id,t)})),Ni(s,(function(t){var e=t.newOption;oo(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),Ni(s,(function(t,e){var n=t.existing,r=t.newOption,i=t.keyInfo;if(Xi(r)){if(i.name=null!=r.name?ic(r.name):n?n.name:qu+e,n)i.id=ic(n.id);else if(null!=r.id)i.id=ic(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(l.get(i.id))}l.set(i.id,t)}})),u}function rc(t,e,n){var r=oc(e[t],null),i=oc(n[t],null);return null!=r&&null!=i&&r===i}function ic(t){return oc(t,"")}function oc(t,e){return null==t?e:Ui(t)?t:Yi(t)||Zi(t)?t+"":e}function ac(t){var e=t.name;return!(!e||!e.indexOf(qu))}function sc(t){return t&&null!=t.id&&0===ic(t.id).indexOf(Ku)}function lc(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Wi(e.dataIndex)?zi(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Wi(e.name)?zi(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function uc(){var t="__ec_inner_"+cc++;return function(e){return e[t]||(e[t]={})}}var cc=Hu();function hc(t,e,n){var r=dc(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each((function(e,r){var i=gc(t,r,e,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]})),a}function dc(t,e){var n;if(Ui(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=fo(),o={},a=!1;return Ni(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&Ri(e.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[l]=t}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var pc={useDefault:!0,enableAll:!1,enableNone:!1},fc={useDefault:!1,enableAll:!0,enableNone:!0};function gc(t,e,n,r){r=r||pc;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===i||!1===i?(oo(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(oo(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function yc(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function vc(t,e){var n=fo(),r=[];return Ni(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}function mc(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(Yi(r))return Tu(f=Xu(n||0,r,i),o?Math.max(Lu(n||0),Lu(r)):e);if(Ui(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(i<1&&s?s:l)[c];else{var d=s&&s[c]?s[c]:0,p=l[c],f=Xu(d,p,i);a[c]=Tu(f,o?Math.max(Lu(d),Lu(p)):e)}}return a}var _c="___EC__COMPONENT__CONTAINER___",xc="___EC__EXTENDED_CLASS___";function bc(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function wc(t,e){t.$constructor=t,t.extend=function(t){var e,n,r=this;return Hi(n=r)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e}(r):(e=function(){(t.$constructor||r).apply(this,arguments)},function(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}(e,this)),Di(e.prototype,t),e[xc]=!0,e.extend=this.extend,e.superCall=Ic,e.superApply=Cc,e.superClass=r,e}}function Sc(t,e){t.extend=e.extend}var Mc=Math.round(10*Math.random());function Ic(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function Cc(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Ac(t){var e={};t.registerClass=function(t){var n,r=t.type||t.prototype.type;if(r){oo(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),t.prototype.type=r;var i=bc(r);if(i.sub){if(i.sub!==_c){var o=function(t){var n=e[t.main];n&&n[_c]||((n=e[t.main]={})[_c]=!0);return n}(i);o[i.sub]=t}}else e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[_c]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=bc(t),r=[],i=e[n.main];return i&&i[_c]?Ni(i,(function(t,e){e!==_c&&r.push(t)})):r.push(i),r},t.hasClass=function(t){var n=bc(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return Ni(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=bc(t),r=e[n.main];return r&&r[_c]}}function Tc(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&Ri(r,s)>=0||i&&Ri(i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var kc=Tc([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Lc=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return kc(this,t,e)},t}(),Dc=new Ss(50);function Pc(t){if("string"==typeof t){var e=Dc.get(t);return e&&e.image}return t}function Rc(t,e,n,r,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Dc.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?!Ec(e=o.image)&&o.pending.push(a):((e=pi.loadImage(t,Oc,Oc)).__zrImageSrc=t,Dc.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Oc(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Ec(t){return t&&t.width&&t.height}var Nc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function zc(t,e,n,r,i,o){if(!n)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=Bc(n,r,i,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)Vc(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function Bc(t,e,n,r){var i=Di({},r=r||{});i.font=e,n=eo(n,"..."),i.maxIterations=eo(r.maxIterations,2);var o=i.minChar=eo(r.minChar,0);i.cnCharWidth=nu("国",e);var a=i.ascCharWidth=nu("a",e);i.placeholder=eo(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=nu(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function Vc(t,e,n){var r=n.containerWidth,i=n.font,o=n.contentWidth;if(!r)return t.textLine="",void(t.isTruncated=!1);var a=nu(e,i);if(a<=r)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=o||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?Fc(e,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(e.length*o/a):0;a=nu(e=e.substr(0,l),i)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function Fc(t,e,n,r){for(var i=0,o=0,a=t.length;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}var Gc=function(){},jc=function(t){this.tokens=[],t&&(this.tokens=t)},Wc=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function Hc(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,c=l.font||n.font,h=!1;if(r){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=lu(l.width,r.width)+p;u.length>0&&f+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=f}else{var g=Yc(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var y=0;y<o.length;y++){var v=o[y],m=new Gc;if(m.styleName=i,m.text=v,m.isLineHolder=!v&&!s,"number"==typeof l.width?m.width=l.width:m.width=a?a[y]:nu(v,c),y||h)u.push(new jc([m]));else{var _=(u[u.length-1]||(u[0]=new jc)).tokens,x=_.length;1===x&&_[0].isLineHolder?_[0]=m:(v||!x||s)&&_.push(m)}}}var Uc=Bi(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Zc(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Uc[t]}function Yc(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var d=t.charAt(h);if("\n"!==d){var p=nu(d,e),f=!r&&!Zc(d);(o.length?c+p>n:i+c+p>n)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=d,s="",c=u+=p):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=p)):f?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p)):(c+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var Xc="__zr_style_"+Math.round(10*Math.random()),qc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Kc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};qc[Xc]=!0;var $c=["z","z2","invisible"],Qc=["invisible"],Jc=function(t){function e(e){return t.call(this,e)||this}var n;return a(e,t),e.prototype._init=function(e){for(var n=Fi(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[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,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){th.copy(t.getBoundingRect()),t.transform&&th.applyTransform(t.transform);return eh.width=e,eh.height=n,!th.intersect(eh)}(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Ca(0,0,0,0)),e?Ca.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Ca(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:Di(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return yo(qc,t)},e.prototype.useStyle=function(t){t[Xc]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Xc]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,$c)},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Fi(u),h=0;h<c.length;h++){(p=c[h])in s&&(s[p]=s[p],this.style[p]=u[p])}var d=Fi(s);for(h=0;h<d.length;h++){var p=d[h];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?Qc:$c;for(h=0;h<f.length;h++){p=f[h];n&&null!=n[p]?this[p]=n[p]:l&&null!=r[p]&&(this[p]=r[p])}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},e.prototype._mergeStyle=function(t,e){return Di(t,e),t},e.prototype.getAnimationStyleProps=function(){return Kc},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),e}(gu),th=new Ca(0,0,0,0),eh=new Ca(0,0,0,0);var nh=Math.min,rh=Math.max,ih=Math.sin,oh=Math.cos,ah=2*Math.PI,sh=bo(),lh=bo(),uh=bo();function ch(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],o=r[0],a=r[1],s=r[1],l=1;l<t.length;l++)r=t[l],i=nh(i,r[0]),o=rh(o,r[0]),a=nh(a,r[1]),s=rh(s,r[1]);e[0]=i,e[1]=a,n[0]=o,n[1]=s}}function hh(t,e,n,r,i,o){i[0]=nh(t,n),i[1]=nh(e,r),o[0]=rh(t,n),o[1]=rh(e,r)}var dh=[],ph=[];function fh(t,e,n,r,i,o,a,s,l,u){var c=ls,h=os,d=c(t,n,i,a,dh);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var f=h(t,n,i,a,dh[p]);l[0]=nh(f,l[0]),u[0]=rh(f,u[0])}d=c(e,r,o,s,ph);for(p=0;p<d;p++){var g=h(e,r,o,s,ph[p]);l[1]=nh(g,l[1]),u[1]=rh(g,u[1])}l[0]=nh(t,l[0]),u[0]=rh(t,u[0]),l[0]=nh(a,l[0]),u[0]=rh(a,u[0]),l[1]=nh(e,l[1]),u[1]=rh(e,u[1]),l[1]=nh(s,l[1]),u[1]=rh(s,u[1])}function gh(t,e,n,r,i,o,a,s){var l=fs,u=ds,c=rh(nh(l(t,n,i),1),0),h=rh(nh(l(e,r,o),1),0),d=u(t,n,i,c),p=u(e,r,o,h);a[0]=nh(t,i,d),a[1]=nh(e,o,p),s[0]=rh(t,i,d),s[1]=rh(e,o,p)}function yh(t,e,n,r,i,o,a,s,l){var u=No,c=zo,h=Math.abs(i-o);if(h%ah<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(sh[0]=oh(i)*n+t,sh[1]=ih(i)*r+e,lh[0]=oh(o)*n+t,lh[1]=ih(o)*r+e,u(s,sh,lh),c(l,sh,lh),(i%=ah)<0&&(i+=ah),(o%=ah)<0&&(o+=ah),i>o&&!a?o+=ah:i<o&&a&&(i+=ah),a){var d=o;o=i,i=d}for(var p=0;p<o;p+=Math.PI/2)p>i&&(uh[0]=oh(p)*n+t,uh[1]=ih(p)*r+e,u(s,uh,s),c(l,uh,l))}var vh={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},mh=[],_h=[],xh=[],bh=[],wh=[],Sh=[],Mh=Math.min,Ih=Math.max,Ch=Math.cos,Ah=Math.sin,Th=Math.abs,kh=Math.PI,Lh=2*kh,Dh="undefined"!=typeof Float32Array,Ph=[];function Rh(t){return Math.round(t/kh*1e8)/1e8%2*kh}function Oh(t,e){var n=Rh(t[0]);n<0&&(n+=Lh);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Lh?i=n+Lh:e&&n-i>=Lh?i=n-Lh:!e&&n>i?i=n+(Lh-Rh(n-i)):e&&n<i&&(i=n-(Lh-Rh(i-n))),t[0]=n,t[1]=i}var Eh=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=Th(n/Wl/t)||0,this._uy=Th(n/Wl/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(vh.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Th(t-this._xi),r=Th(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(vh.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(vh.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(vh.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),Ph[0]=r,Ph[1]=i,Oh(Ph,o),r=Ph[0];var a=(i=Ph[1])-r;return this.addData(vh.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=Ch(i)*n+t,this._yi=Ah(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(vh.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(vh.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Dh||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();Dh&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<e;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},t.prototype.addData=function(t,e,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Dh&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){xh[0]=xh[1]=wh[0]=wh[1]=Number.MAX_VALUE,bh[0]=bh[1]=Sh[0]=Sh[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=n=e[t],o=r=e[t+1]),a){case vh.M:n=i=e[t++],r=o=e[t++],wh[0]=i,wh[1]=o,Sh[0]=i,Sh[1]=o;break;case vh.L:hh(n,r,e[t],e[t+1],wh,Sh),n=e[t++],r=e[t++];break;case vh.C:fh(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],wh,Sh),n=e[t++],r=e[t++];break;case vh.Q:gh(n,r,e[t++],e[t++],e[t],e[t+1],wh,Sh),n=e[t++],r=e[t++];break;case vh.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],d=e[t++],p=e[t++]+d;t+=1;var f=!e[t++];s&&(i=Ch(d)*c+l,o=Ah(d)*h+u),yh(l,u,c,h,d,p,f,wh,Sh),n=Ch(p)*c+l,r=Ah(p)*h+u;break;case vh.R:hh(i=n=e[t++],o=r=e[t++],i+e[t++],o+e[t++],wh,Sh);break;case vh.Z:n=i,r=o}No(xh,xh,wh),zo(bh,bh,Sh)}return 0===t&&(xh[0]=xh[1]=bh[0]=bh[1]=0),new Ca(xh[0],xh[1],bh[0]-xh[0],bh[1]-xh[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var d=t[h++],p=1===h;p&&(a=i=t[h],s=o=t[h+1]);var f=-1;switch(d){case vh.M:i=a=t[h++],o=s=t[h++];break;case vh.L:var g=t[h++],y=(_=t[h++])-o;(Th(k=g-i)>n||Th(y)>r||h===e-1)&&(f=Math.sqrt(k*k+y*y),i=g,o=_);break;case vh.C:var v=t[h++],m=t[h++],_=(g=t[h++],t[h++]),x=t[h++],b=t[h++];f=hs(i,o,v,m,g,_,x,b,10),i=x,o=b;break;case vh.Q:f=vs(i,o,v=t[h++],m=t[h++],g=t[h++],_=t[h++],10),i=g,o=_;break;case vh.A:var w=t[h++],S=t[h++],M=t[h++],I=t[h++],C=t[h++],A=t[h++],T=A+C;h+=1,p&&(a=Ch(C)*M+w,s=Ah(C)*I+S),f=Ih(M,I)*Mh(Lh,Math.abs(A)),i=Ch(T)*M+w,o=Ah(T)*I+S;break;case vh.R:a=i=t[h++],s=o=t[h++],f=2*t[h++]+2*t[h++];break;case vh.Z:var k=a-i;y=s-o;f=Math.sqrt(k*k+y*y),i=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,d=this.data,p=this._ux,f=this._uy,g=this._len,y=e<1,v=0,m=0,_=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x<g;){var b=d[x++],w=1===x;switch(w&&(n=i=d[x],r=o=d[x+1]),b!==vh.L&&_>0&&(t.lineTo(c,h),_=0),b){case vh.M:n=i=d[x++],r=o=d[x++],t.moveTo(i,o);break;case vh.L:a=d[x++],s=d[x++];var S=Th(a-i),M=Th(s-o);if(S>p||M>f){if(y){if(v+(X=l[m++])>u){var I=(u-v)/X;t.lineTo(i*(1-I)+a*I,o*(1-I)+s*I);break t}v+=X}t.lineTo(a,s),i=a,o=s,_=0}else{var C=S*S+M*M;C>_&&(c=a,h=s,_=C)}break;case vh.C:var A=d[x++],T=d[x++],k=d[x++],L=d[x++],D=d[x++],P=d[x++];if(y){if(v+(X=l[m++])>u){us(i,A,k,D,I=(u-v)/X,mh),us(o,T,L,P,I,_h),t.bezierCurveTo(mh[1],_h[1],mh[2],_h[2],mh[3],_h[3]);break t}v+=X}t.bezierCurveTo(A,T,k,L,D,P),i=D,o=P;break;case vh.Q:A=d[x++],T=d[x++],k=d[x++],L=d[x++];if(y){if(v+(X=l[m++])>u){gs(i,A,k,I=(u-v)/X,mh),gs(o,T,L,I,_h),t.quadraticCurveTo(mh[1],_h[1],mh[2],_h[2]);break t}v+=X}t.quadraticCurveTo(A,T,k,L),i=k,o=L;break;case vh.A:var R=d[x++],O=d[x++],E=d[x++],N=d[x++],z=d[x++],B=d[x++],V=d[x++],F=!d[x++],G=E>N?E:N,j=Th(E-N)>.001,W=z+B,H=!1;if(y)v+(X=l[m++])>u&&(W=z+B*(u-v)/X,H=!0),v+=X;if(j&&t.ellipse?t.ellipse(R,O,E,N,V,z,W,F):t.arc(R,O,G,z,W,F),H)break t;w&&(n=Ch(z)*E+R,r=Ah(z)*N+O),i=Ch(W)*E+R,o=Ah(W)*N+O;break;case vh.R:n=i=d[x],r=o=d[x+1],a=d[x++],s=d[x++];var U=d[x++],Z=d[x++];if(y){if(v+(X=l[m++])>u){var Y=u-v;t.moveTo(a,s),t.lineTo(a+Mh(Y,U),s),(Y-=U)>0&&t.lineTo(a+U,s+Mh(Y,Z)),(Y-=Z)>0&&t.lineTo(a+Ih(U-Y,0),s+Z),(Y-=U)>0&&t.lineTo(a,s+Ih(Z-Y,0));break t}v+=X}t.rect(a,s,U,Z);break;case vh.Z:if(y){var X;if(v+(X=l[m++])>u){I=(u-v)/X;t.lineTo(i*(1-I)+n*I,o*(1-I)+r*I);break t}v+=X}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=vh,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function Nh(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>e+s&&a>r+s||a<e-s&&a<r-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var u=(l=(e-r)/(t-n))*o-a+(t*r-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2}function zh(t,e,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var h=l;return!(c>e+h&&c>r+h&&c>o+h&&c>s+h||c<e-h&&c<r-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>i+h&&u>a+h||u<t-h&&u<n-h&&u<i-h&&u<a-h)&&cs(t,e,n,r,i,o,a,s,u,c,null)<=h/2}function Bh(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)&&ys(t,e,n,r,i,o,s,l,null)<=u/2}var Vh=2*Math.PI;function Fh(t){return(t%=Vh)<0&&(t+=Vh),t}var Gh=2*Math.PI;function jh(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%Gh<1e-4)return!0;if(o){var h=r;r=Fh(i),i=Fh(h)}else r=Fh(r),i=Fh(i);r>i&&(i+=Gh);var d=Math.atan2(l,s);return d<0&&(d+=Gh),d>=r&&d<=i||d+Gh>=r&&d+Gh<=i}function Wh(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;1!==a&&0!==a||(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var Hh=Eh.CMD,Uh=2*Math.PI;var Zh=[-1,-1,-1],Yh=[-1,-1];function Xh(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var c,h=ss(e,r,o,s,u,Zh);if(0===h)return 0;for(var d=0,p=-1,f=void 0,g=void 0,y=0;y<h;y++){var v=Zh[y],m=0===v||1===v?.5:1;os(t,n,i,a,v)<l||(p<0&&(p=ls(e,r,o,s,Yh),Yh[1]<Yh[0]&&p>1&&(c=void 0,c=Yh[0],Yh[0]=Yh[1],Yh[1]=c),f=os(e,r,o,s,Yh[0]),p>1&&(g=os(e,r,o,s,Yh[1]))),2===p?v<Yh[0]?d+=f<e?m:-m:v<Yh[1]?d+=g<f?m:-m:d+=s<g?m:-m:v<Yh[0]?d+=f<e?m:-m:d+=s<f?m:-m)}return d}function qh(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=function(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(rs(o))is(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(rs(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,h=Ka(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}(e,r,o,s,Zh);if(0===l)return 0;var u=fs(e,r,o);if(u>=0&&u<=1){for(var c=0,h=ds(e,r,o,u),d=0;d<l;d++){var p=0===Zh[d]||1===Zh[d]?.5:1;ds(t,n,i,Zh[d])<a||(Zh[d]<u?c+=h<e?p:-p:c+=o<h?p:-p)}return c}p=0===Zh[0]||1===Zh[0]?.5:1;return ds(t,n,i,Zh[0])<a?0:o<e?p:-p}function Kh(t,e,n,r,i,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Zh[0]=-l,Zh[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Uh-1e-4){r=0,i=Uh;var c=o?1:-1;return a>=Zh[0]+t&&a<=Zh[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Uh,i+=Uh);for(var d=0,p=0;p<2;p++){var f=Zh[p];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=Uh+g),(g>=r&&g<=i||g+Uh>=r&&g+Uh<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function $h(t,e,n,r,i){for(var o,a,s,l,u=t.data,c=t.len(),h=0,d=0,p=0,f=0,g=0,y=0;y<c;){var v=u[y++],m=1===y;switch(v===Hh.M&&y>1&&(n||(h+=Wh(d,p,f,g,r,i))),m&&(f=d=u[y],g=p=u[y+1]),v){case Hh.M:d=f=u[y++],p=g=u[y++];break;case Hh.L:if(n){if(Nh(d,p,u[y],u[y+1],e,r,i))return!0}else h+=Wh(d,p,u[y],u[y+1],r,i)||0;d=u[y++],p=u[y++];break;case Hh.C:if(n){if(zh(d,p,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],e,r,i))return!0}else h+=Xh(d,p,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],r,i)||0;d=u[y++],p=u[y++];break;case Hh.Q:if(n){if(Bh(d,p,u[y++],u[y++],u[y],u[y+1],e,r,i))return!0}else h+=qh(d,p,u[y++],u[y++],u[y],u[y+1],r,i)||0;d=u[y++],p=u[y++];break;case Hh.A:var _=u[y++],x=u[y++],b=u[y++],w=u[y++],S=u[y++],M=u[y++];y+=1;var I=!!(1-u[y++]);o=Math.cos(S)*b+_,a=Math.sin(S)*w+x,m?(f=o,g=a):h+=Wh(d,p,o,a,r,i);var C=(r-_)*w/b+_;if(n){if(jh(_,x,w,S,S+M,I,e,C,i))return!0}else h+=Kh(_,x,w,S,S+M,I,C,i);d=Math.cos(S+M)*b+_,p=Math.sin(S+M)*w+x;break;case Hh.R:if(f=d=u[y++],g=p=u[y++],o=f+u[y++],a=g+u[y++],n){if(Nh(f,g,o,g,e,r,i)||Nh(o,g,o,a,e,r,i)||Nh(o,a,f,a,e,r,i)||Nh(f,a,f,g,e,r,i))return!0}else h+=Wh(o,g,o,a,r,i),h+=Wh(f,a,f,g,r,i);break;case Hh.Z:if(n){if(Nh(d,p,f,g,e,r,i))return!0}else h+=Wh(d,p,f,g,r,i);d=f,p=g}}return n||(s=p,l=g,Math.abs(s-l)<1e-4)||(h+=Wh(d,p,f,g,r,i)||0),0!==h}var Qh=Pi({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},qc),Jh={style:Pi({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Kc.style)},td=Jl.concat(["invisible","culling","z","z2","zlevel","parent"]),ed=function(t){function e(e){return t.call(this,e)||this}var n;return a(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<td.length;++s)i[td[s]]=this[td[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Fi(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?Di(this.style,a):this.useStyle(a):"shape"===o?Di(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Ui(t)){var e=Ws(t,0);return e>.5?Hl:e>.2?"#eee":Ul}if(t)return Ul}return Hl},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Ui(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Ws(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},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 Eh(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,r){return $h(t,e,!0,n,r)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return $h(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:Di(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return yo(Qh,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Di({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Di({},r.shape),Di(s,n.shape)):(s=Di({},i?this.shape:r.shape),Di(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Di({},this.shape);for(var u={},c=Fi(s),h=0;h<c.length;h++){var d=c[h];"object"==typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},e.prototype.getAnimationStyleProps=function(){return Jh},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return a(n,e),n.prototype.getDefaultStyle=function(){return Ti(t.style)},n.prototype.getDefaultShape=function(){return Ti(t.shape)},n}(e);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),e}(Jc),nd=Pi({strokeFirst:!0,font:ui,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Qh),rd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return yo(nd,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=iu(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Jc);rd.prototype.type="tspan";var id=Pi({x:0,y:0},qc),od={style:Pi({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Kc.style)};var ad=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.createStyle=function(t){return yo(id,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r,i=(r=e.image)&&"string"!=typeof r&&r.width&&r.height?e.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return od},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Ca(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Jc);ad.prototype.type="image";var sd=Math.round;function ld(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(sd(2*r)===sd(2*i)&&(t.x1=t.x2=cd(r,s,!0)),sd(2*o)===sd(2*a)&&(t.y1=t.y2=cd(o,s,!0)),t):t}}function ud(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=cd(r,s,!0),t.y=cd(i,s,!0),t.width=Math.max(cd(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(cd(i+a,s,!1)-t.y,0===a?0:1),t):t}}function cd(t,e,n){if(!e)return t;var r=sd(2*t);return(r+sd(e))%2==0?r/2:(r+(n?1:-1))/2}var hd=function(){this.x=0,this.y=0,this.width=0,this.height=0},dd={},pd=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultShape=function(){return new hd},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=ud(dd,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?function(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ed);pd.prototype.type="rect";var fd={fill:"#000"},gd={style:Pi({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},Kc.style)},yd=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=fd,n.attr(e),n}return a(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,Sd(t=this.style),Ni(t.rich,Sd),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Ca(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(r=r||t.clone()).union(t)):(r=r||a.clone()).union(a)}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||fd},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return Di(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=Fi(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},Di(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return gd},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||ui,n=t.padding,r=function(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=su(o),l=eo(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,h=!1,d=e.width,p=(n=null==d||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?Yc(t,e.font,d,"breakAll"===r,0).lines:[]).length*l,f=eo(e.height,p);if(p>f&&c){var g=Math.floor(f/l);h=h||n.length>g,n=n.slice(0,g)}if(t&&a&&null!=d)for(var y=Bc(d,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v={},m=0;m<n.length;m++)Vc(v,n[m],y),n[m]=v.textLine,h=h||v.isTruncated;var _=f,x=0;for(m=0;m<n.length;m++)x=Math.max(nu(n[m],o),x);null==d&&(d=x);var b=x;return i&&(_+=i[0]+i[2],b+=i[1]+i[3],d+=i[1]+i[3]),u&&(b=d),{lines:n,height:f,outerWidth:b,outerHeight:_,lineHeight:l,calculatedLineHeight:s,contentWidth:x,contentHeight:p,width:d,isTruncated:h}}(Ad(t),t),i=Td(t),o=!!t.backgroundColor,a=r.outerHeight,s=r.outerWidth,l=r.contentWidth,u=r.lines,c=r.lineHeight,h=this._defaultStyle;this.isTruncated=!!r.isTruncated;var d=t.x||0,p=t.y||0,f=t.align||h.align||"left",g=t.verticalAlign||h.verticalAlign||"top",y=d,v=au(p,r.contentHeight,g);if(i||n){var m=ou(d,s,f),_=au(p,a,g);i&&this._renderBackground(t,t,m,_,s,a)}v+=c/2,n&&(y=Cd(d,f,n),"top"===g?v+=n[0]:"bottom"===g&&(v-=n[2]));for(var x=0,b=!1,w=(Id("fill"in t?t.fill:(b=!0,h.fill))),S=(Md("stroke"in t?t.stroke:o||h.autoStroke&&!b?null:(x=2,h.stroke))),M=t.textShadowBlur>0,I=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=r.calculatedLineHeight,A=0;A<u.length;A++){var T=this._getOrCreateChild(rd),k=T.createStyle();T.useStyle(k),k.text=u[A],k.x=y,k.y=v,k.textAlign=f,k.textBaseline="middle",k.opacity=t.opacity,k.strokeFirst=!0,M&&(k.shadowBlur=t.textShadowBlur||0,k.shadowColor=t.textShadowColor||"transparent",k.shadowOffsetX=t.textShadowOffsetX||0,k.shadowOffsetY=t.textShadowOffsetY||0),k.stroke=S,k.fill=w,S&&(k.lineWidth=t.lineWidth||x,k.lineDash=t.lineDash,k.lineDashOffset=t.lineDashOffset||0),k.font=e,bd(k,t),v+=c,I&&T.setBoundingRect(new Ca(ou(k.x,l,k.textAlign),au(k.y,C,k.textBaseline),l,C))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var n=new Wc;if(null!=t&&(t+=""),!t)return n;for(var r,i=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=Nc.lastIndex=0;null!=(r=Nc.exec(t));){var u=r.index;u>l&&Hc(n,t.substring(l,u),e,s),Hc(n,r[2],e,s,r[1]),l=Nc.lastIndex}l<t.length&&Hc(n,t.substring(l,t.length),e,s);var c=[],h=0,d=0,p=e.padding,f="truncate"===a,g="truncate"===e.lineOverflow,y={};function v(t,e,n){t.width=e,t.lineHeight=n,h+=n,d=Math.max(d,e)}t:for(var m=0;m<n.lines.length;m++){for(var _=n.lines[m],x=0,b=0,w=0;w<_.tokens.length;w++){var S=(O=_.tokens[w]).styleName&&e.rich[O.styleName]||{},M=O.textPadding=S.padding,I=M?M[1]+M[3]:0,C=O.font=S.font||e.font;O.contentHeight=su(C);var A=eo(S.height,O.contentHeight);if(O.innerHeight=A,M&&(A+=M[0]+M[2]),O.height=A,O.lineHeight=no(S.lineHeight,e.lineHeight,A),O.align=S&&S.align||e.align,O.verticalAlign=S&&S.verticalAlign||"middle",g&&null!=o&&h+O.lineHeight>o){var T=n.lines.length;w>0?(_.tokens=_.tokens.slice(0,w),v(_,b,x),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m),n.isTruncated=n.isTruncated||n.lines.length<T;break t}var k=S.width,L=null==k||"auto"===k;if("string"==typeof k&&"%"===k.charAt(k.length-1))O.percentWidth=k,c.push(O),O.contentWidth=nu(O.text,C);else{if(L){var D=S.backgroundColor,P=D&&D.image;P&&Ec(P=Pc(P))&&(O.width=Math.max(O.width,P.width*A/P.height))}var R=f&&null!=i?i-b:null;null!=R&&R<O.width?!L||R<I?(O.text="",O.width=O.contentWidth=0):(zc(y,O.text,R-I,C,e.ellipsis,{minChar:e.truncateMinChar}),O.text=y.text,n.isTruncated=n.isTruncated||y.isTruncated,O.width=O.contentWidth=nu(O.text,C)):O.contentWidth=nu(O.text,C)}O.width+=I,b+=O.width,S&&(x=Math.max(x,O.lineHeight))}v(_,b,x)}for(n.outerWidth=n.width=eo(i,d),n.outerHeight=n.height=eo(o,h),n.contentHeight=h,n.contentWidth=d,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]),m=0;m<c.length;m++){var O,E=(O=c[m]).percentWidth;O.width=parseInt(E,10)/100*n.width}return n}(Ad(t),t),n=e.width,r=e.outerWidth,i=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,c=t.verticalAlign||l.verticalAlign;this.isTruncated=!!e.isTruncated;var h=ou(a,r,u),d=au(s,i,c),p=h,f=d;o&&(p+=o[3],f+=o[0]);var g=p+n;Td(t)&&this._renderBackground(t,t,h,d,r,i);for(var y=!!t.backgroundColor,v=0;v<e.lines.length;v++){for(var m=e.lines[v],_=m.tokens,x=_.length,b=m.lineHeight,w=m.width,S=0,M=p,I=g,C=x-1,A=void 0;S<x&&(!(A=_[S]).align||"left"===A.align);)this._placeToken(A,t,b,f,M,"left",y),w-=A.width,M+=A.width,S++;for(;C>=0&&"right"===(A=_[C]).align;)this._placeToken(A,t,b,f,I,"right",y),w-=A.width,I-=A.width,C--;for(M+=(n-(M-p)-(g-I)-w)/2;S<=C;)A=_[S],this._placeToken(A,t,b,f,M+A.width/2,"center",y),M+=A.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2),!t.isLineHolder&&Td(s)&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(i=Cd(i,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var d=this._getOrCreateChild(rd),p=d.createStyle();d.useStyle(p);var f=this._defaultStyle,g=!1,y=0,v=Id("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),m=Md("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||f.autoStroke&&!g?null:(y=2,f.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=i,p.y=u,_&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||ui,p.opacity=no(s.opacity,e.opacity,1),bd(p,s),m&&(p.lineWidth=no(s.lineWidth,e.lineWidth,y),p.lineDash=eo(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=m),v&&(p.fill=v);var x=t.contentWidth,b=t.contentHeight;d.setBoundingRect(new Ca(ou(p.x,x,p.textAlign),au(p.y,b,p.textBaseline),x,b))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,d=u&&u.image,p=u&&!d,f=t.borderRadius,g=this;if(p||t.lineHeight||c&&h){(a=this._getOrCreateChild(pd)).useStyle(a.createStyle()),a.style.fill=null;var y=a.shape;y.x=n,y.y=r,y.width=i,y.height=o,y.r=f,a.dirtyShape()}if(p)(l=a.style).fill=u||null,l.fillOpacity=eo(t.fillOpacity,1);else if(d){(s=this._getOrCreateChild(ad)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=r,v.width=i,v.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=eo(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=no(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return wd(t)&&(e=[t.fontStyle,t.fontWeight,xd(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&ao(e)||t.textFont||t.font},e}(Jc),vd={left:!0,right:1,center:1},md={top:1,bottom:1,middle:1},_d=["fontStyle","fontWeight","fontSize","fontFamily"];function xd(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function bd(t,e){for(var n=0;n<_d.length;n++){var r=_d[n],i=e[r];null!=i&&(t[r]=i)}}function wd(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Sd(t){if(t){t.font=yd.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||vd[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||md[n]?n:"top",t.padding&&(t.padding=io(t.padding))}}function Md(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Id(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Cd(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Ad(t){var e=t.text;return null!=e&&(e+=""),e}function Td(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var kd=uc(),Ld=function(t,e,n,r){if(r){var i=kd(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart","group"===r.type&&r.traverse((function(r){var i=kd(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e,i.ssrType="chart"}))}},Dd=1,Pd={},Rd=uc(),Od=uc(),Ed=["emphasis","blur","select"],Nd=["normal","emphasis","blur","select"],zd=10,Bd="highlight",Vd="downplay",Fd="select",Gd="unselect",jd="toggleSelect";function Wd(t){return null!=t&&"none"!==t}function Hd(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Ud(t){Hd(t,"emphasis",2)}function Zd(t){2===t.hoverState&&Hd(t,"normal",0)}function Yd(t){Hd(t,"blur",1)}function Xd(t){1===t.hoverState&&Hd(t,"normal",0)}function qd(t){t.selected=!0}function Kd(t){t.selected=!1}function $d(t,e,n){e(t,n)}function Qd(t,e,n){$d(t,e,n),t.isGroup&&t.traverse((function(t){$d(t,e,n)}))}function Jd(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function tp(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var i=n&&Ri(n,"select")>=0,o=!1;if(t instanceof ed){var a=Rd(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Wd(s)||Wd(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=Di({},r),(u=Di({},u)).fill=s):!Wd(u.fill)&&Wd(s)?(o=!0,r=Di({},r),(u=Di({},u)).fill=Us(s)):!Wd(u.stroke)&&Wd(l)&&(o||(r=Di({},r),u=Di({},u)),u.stroke=Us(l)),r.style=u}}if(r&&null==r.z2){o||(r=Di({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:zd)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=Ri(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:function(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=Di({},n),a=Di({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=Di({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function ep(t){t.stateProxy=tp;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=tp),n&&(n.stateProxy=tp)}function np(t,e){!cp(t,e)&&!t.__highByOuter&&Qd(t,Ud)}function rp(t,e){!cp(t,e)&&!t.__highByOuter&&Qd(t,Zd)}function ip(t,e){t.__highByOuter|=1<<(e||0),Qd(t,Ud)}function op(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Qd(t,Zd)}function ap(t){Qd(t,Yd)}function sp(t){Qd(t,Xd)}function lp(t){Qd(t,qd)}function up(t){Qd(t,Kd)}function cp(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function hp(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=Od(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){Xd(t)})),a&&n.push(i)),o.isBlured=!1})),Ni(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function dp(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&sp(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries((function(t){var i=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===e&&i)){if(r.getViewOfSeriesModel(t).group.traverse((function(t){t.__highByOuter&&i&&"self"===e||Yd(t)})),Ei(e))o(t.getData(),e);else if(Xi(e))for(var c=Fi(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);l.push(t),Od(t).isBlured=!0}})),i.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}}))}}function pp(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){Od(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){Yd(t)}))}}}function fp(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===kd(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function gp(t){Ni(t.getAllData(),(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?lp(e):up(e)}))}))}function yp(t){var e=[];return t.eachSeries((function(t){Ni(t.getAllData(),(function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function vp(t,e,n){Sp(t,!0),Qd(t,ep),_p(t,e,n)}function mp(t,e,n,r){r?function(t){Sp(t,!1)}(t):vp(t,e,n)}function _p(t,e,n){var r=kd(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var xp=["emphasis","blur","select"],bp={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function wp(t,e,n,r){n=n||"itemStyle";for(var i=0;i<xp.length;i++){var o=xp[i],a=e.getModel([o,n]);t.ensureState(o).style=r?r(a):a[bp[n]]()}}function Sp(t,e){var n=!1===e,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Mp(t){return!(!t||!t.__highDownDispatcher)}function Ip(t){var e=t.type;return e===Fd||e===Gd||e===jd}function Cp(t){var e=t.type;return e===Bd||e===Vd}var Ap=Eh.CMD,Tp=[[],[],[]],kp=Math.sqrt,Lp=Math.atan2;function Dp(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=Ap.M,h=Ap.C,d=Ap.L,p=Ap.R,f=Ap.A,g=Ap.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case d:r=1;break;case h:r=3;break;case g:r=2;break;case f:var y=e[4],v=e[5],m=kp(e[0]*e[0]+e[1]*e[1]),_=kp(e[2]*e[2]+e[3]*e[3]),x=Lp(-e[1]/_,e[0]/m);l[i]*=m,l[i++]+=y,l[i]*=_,l[i++]+=v,l[i++]*=m,l[i++]*=_,l[i++]+=x,l[i++]+=x,o=i+=2;break;case p:s[0]=l[i++],s[1]=l[i++],Eo(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],Eo(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var b=Tp[a];b[0]=l[i++],b[1]=l[i++],Eo(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}var Pp=Math.sqrt,Rp=Math.sin,Op=Math.cos,Ep=Math.PI;function Np(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function zp(t,e){return(t[0]*e[0]+t[1]*e[1])/(Np(t)*Np(e))}function Bp(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(zp(t,e))}function Vp(t,e,n,r,i,o,a,s,l,u,c){var h=l*(Ep/180),d=Op(h)*(t-n)/2+Rp(h)*(e-r)/2,p=-1*Rp(h)*(t-n)/2+Op(h)*(e-r)/2,f=d*d/(a*a)+p*p/(s*s);f>1&&(a*=Pp(f),s*=Pp(f));var g=(i===o?-1:1)*Pp((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,y=g*a*p/s,v=g*-s*d/a,m=(t+n)/2+Op(h)*y-Rp(h)*v,_=(e+r)/2+Rp(h)*y+Op(h)*v,x=Bp([1,0],[(d-y)/a,(p-v)/s]),b=[(d-y)/a,(p-v)/s],w=[(-1*d-y)/a,(-1*p-v)/s],S=Bp(b,w);if(zp(b,w)<=-1&&(S=Ep),zp(b,w)>=1&&(S=0),S<0){var M=Math.round(S/Ep*1e6)/1e6;S=2*Ep+M%2*Ep}c.addData(u,m,_,a,s,x,S,h,o)}var Fp=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Gp=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var jp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.applyTransform=function(t){},e}(ed);function Wp(t){return null!=t.setData}function Hp(t,e){var n=function(t){var e=new Eh;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Eh.CMD,l=t.match(Fp);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,p=c.match(Gp)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);for(var y=0;y<f;){var v=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=r,I=i,C=void 0,A=void 0;switch(h){case"l":r+=p[y++],i+=p[y++],d=s.L,e.addData(d,r,i);break;case"L":r=p[y++],i=p[y++],d=s.L,e.addData(d,r,i);break;case"m":r+=p[y++],i+=p[y++],d=s.M,e.addData(d,r,i),o=r,a=i,h="l";break;case"M":r=p[y++],i=p[y++],d=s.M,e.addData(d,r,i),o=r,a=i,h="L";break;case"h":r+=p[y++],d=s.L,e.addData(d,r,i);break;case"H":r=p[y++],d=s.L,e.addData(d,r,i);break;case"v":i+=p[y++],d=s.L,e.addData(d,r,i);break;case"V":i=p[y++],d=s.L,e.addData(d,r,i);break;case"C":d=s.C,e.addData(d,p[y++],p[y++],p[y++],p[y++],p[y++],p[y++]),r=p[y-2],i=p[y-1];break;case"c":d=s.C,e.addData(d,p[y++]+r,p[y++]+i,p[y++]+r,p[y++]+i,p[y++]+r,p[y++]+i),r+=p[y-2],i+=p[y-1];break;case"S":v=r,m=i,C=e.len(),A=e.data,n===s.C&&(v+=r-A[C-4],m+=i-A[C-3]),d=s.C,M=p[y++],I=p[y++],r=p[y++],i=p[y++],e.addData(d,v,m,M,I,r,i);break;case"s":v=r,m=i,C=e.len(),A=e.data,n===s.C&&(v+=r-A[C-4],m+=i-A[C-3]),d=s.C,M=r+p[y++],I=i+p[y++],r+=p[y++],i+=p[y++],e.addData(d,v,m,M,I,r,i);break;case"Q":M=p[y++],I=p[y++],r=p[y++],i=p[y++],d=s.Q,e.addData(d,M,I,r,i);break;case"q":M=p[y++]+r,I=p[y++]+i,r+=p[y++],i+=p[y++],d=s.Q,e.addData(d,M,I,r,i);break;case"T":v=r,m=i,C=e.len(),A=e.data,n===s.Q&&(v+=r-A[C-4],m+=i-A[C-3]),r=p[y++],i=p[y++],d=s.Q,e.addData(d,v,m,r,i);break;case"t":v=r,m=i,C=e.len(),A=e.data,n===s.Q&&(v+=r-A[C-4],m+=i-A[C-3]),r+=p[y++],i+=p[y++],d=s.Q,e.addData(d,v,m,r,i);break;case"A":_=p[y++],x=p[y++],b=p[y++],w=p[y++],S=p[y++],Vp(M=r,I=i,r=p[y++],i=p[y++],w,S,_,x,b,d=s.A,e);break;case"a":_=p[y++],x=p[y++],b=p[y++],w=p[y++],S=p[y++],Vp(M=r,I=i,r+=p[y++],i+=p[y++],w,S,_,x,b,d=s.A,e)}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),r=o,i=a),n=d}return e.toStatic(),e}(t),r=Di({},e);return r.buildPath=function(t){if(Wp(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){Dp(n,t),this.dirtyShape()},r}function Up(t,e){return new jp(Hp(t,e))}function Zp(t,e){e=e||{};var n=new ed;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Dp(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var Yp=function(){this.cx=0,this.cy=0,this.r=0},Xp=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultShape=function(){return new Yp},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(ed);Xp.prototype.type="circle";var qp=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Kp=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultShape=function(){return new qp},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},e}(ed);Kp.prototype.type="ellipse";var $p=Math.PI,Qp=2*$p,Jp=Math.sin,tf=Math.cos,ef=Math.acos,nf=Math.atan2,rf=Math.abs,of=Math.sqrt,af=Math.max,sf=Math.min,lf=1e-4;function uf(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/of(s*s+l*l),c=u*l,h=-u*s,d=t+c,p=e+h,f=n+c,g=r+h,y=(d+f)/2,v=(p+g)/2,m=f-d,_=g-p,x=m*m+_*_,b=i-o,w=d*g-f*p,S=(_<0?-1:1)*of(af(0,b*b*x-w*w)),M=(w*_-m*S)/x,I=(-w*m-_*S)/x,C=(w*_+m*S)/x,A=(-w*m+_*S)/x,T=M-y,k=I-v,L=C-y,D=A-v;return T*T+k*k>L*L+D*D&&(M=C,I=A),{cx:M,cy:I,x0:-c,y0:-h,x1:M*(i/b-1),y1:I*(i/b-1)}}function cf(t,e){var n,r=af(e.r,0),i=af(e.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,d=rf(l-s),p=d>Qp&&d%Qp;if(p>lf&&(d=p),r>lf)if(d>Qp-lf)t.moveTo(u+r*tf(s),c+r*Jp(s)),t.arc(u,c,r,s,l,!h),i>lf&&(t.moveTo(u+i*tf(l),c+i*Jp(l)),t.arc(u,c,i,l,s,h));else{var f=void 0,g=void 0,y=void 0,v=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=void 0,I=void 0,C=void 0,A=void 0,T=void 0,k=void 0,L=r*tf(s),D=r*Jp(s),P=i*tf(l),R=i*Jp(l),O=d>lf;if(O){var E=e.cornerRadius;E&&(n=function(t){var e;if(Wi(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(E),f=n[0],g=n[1],y=n[2],v=n[3]);var N=rf(r-i)/2;if(m=sf(N,y),_=sf(N,v),x=sf(N,f),b=sf(N,g),M=w=af(m,_),I=S=af(x,b),(w>lf||S>lf)&&(C=r*tf(l),A=r*Jp(l),T=i*tf(s),k=i*Jp(s),d<$p)){var z=function(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,d=h*l-c*u;if(!(d*d<lf))return[t+(d=(c*(e-o)-h*(t-i))/d)*l,e+d*u]}(L,D,T,k,C,A,P,R);if(z){var B=L-z[0],V=D-z[1],F=C-z[0],G=A-z[1],j=1/Jp(ef((B*F+V*G)/(of(B*B+V*V)*of(F*F+G*G)))/2),W=of(z[0]*z[0]+z[1]*z[1]);M=sf(w,(r-W)/(j+1)),I=sf(S,(i-W)/(j-1))}}}if(O)if(M>lf){var H=sf(y,M),U=sf(v,M),Z=uf(T,k,L,D,r,H,h),Y=uf(C,A,P,R,r,U,h);t.moveTo(u+Z.cx+Z.x0,c+Z.cy+Z.y0),M<w&&H===U?t.arc(u+Z.cx,c+Z.cy,M,nf(Z.y0,Z.x0),nf(Y.y0,Y.x0),!h):(H>0&&t.arc(u+Z.cx,c+Z.cy,H,nf(Z.y0,Z.x0),nf(Z.y1,Z.x1),!h),t.arc(u,c,r,nf(Z.cy+Z.y1,Z.cx+Z.x1),nf(Y.cy+Y.y1,Y.cx+Y.x1),!h),U>0&&t.arc(u+Y.cx,c+Y.cy,U,nf(Y.y1,Y.x1),nf(Y.y0,Y.x0),!h))}else t.moveTo(u+L,c+D),t.arc(u,c,r,s,l,!h);else t.moveTo(u+L,c+D);if(i>lf&&O)if(I>lf){H=sf(f,I),Z=uf(P,R,C,A,i,-(U=sf(g,I)),h),Y=uf(L,D,T,k,i,-H,h);t.lineTo(u+Z.cx+Z.x0,c+Z.cy+Z.y0),I<S&&H===U?t.arc(u+Z.cx,c+Z.cy,I,nf(Z.y0,Z.x0),nf(Y.y0,Y.x0),!h):(U>0&&t.arc(u+Z.cx,c+Z.cy,U,nf(Z.y0,Z.x0),nf(Z.y1,Z.x1),!h),t.arc(u,c,i,nf(Z.cy+Z.y1,Z.cx+Z.x1),nf(Y.cy+Y.y1,Y.cx+Y.x1),h),H>0&&t.arc(u+Y.cx,c+Y.cy,H,nf(Y.y1,Y.x1),nf(Y.y0,Y.x0),!h))}else t.lineTo(u+P,c+R),t.arc(u,c,i,l,s,h);else t.lineTo(u+P,c+R)}else t.moveTo(u,c);t.closePath()}}}var hf=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},df=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultShape=function(){return new hf},e.prototype.buildPath=function(t,e){cf(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ed);df.prototype.type="sector";var pf=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},ff=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultShape=function(){return new pf},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(ed);function gf(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=function(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;d<p;d++)No(a,a,t[d]),zo(s,s,t[d]);No(a,a,r[0]),zo(s,s,r[1])}for(d=0,p=t.length;d<p;d++){var f=t[d];if(n)i=t[d?d-1:p-1],o=t[(d+1)%p];else{if(0===d||d===p-1){l.push(So(t[d]));continue}i=t[d-1],o=t[d+1]}Ao(u,o,i),ko(u,u,e);var g=Do(f,i),y=Do(f,o),v=g+y;0!==v&&(g/=v,y/=v),ko(c,u,-g),ko(h,u,y);var m=Io([],f,c),_=Io([],f,h);r&&(zo(m,m,a),No(m,m,s),zo(_,_,a),No(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}ff.prototype.type="ring";var yf=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},vf=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultShape=function(){return new yf},e.prototype.buildPath=function(t,e){gf(t,e,!0)},e}(ed);vf.prototype.type="polygon";var mf=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},_f=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mf},e.prototype.buildPath=function(t,e){gf(t,e,!1)},e}(ed);_f.prototype.type="polyline";var xf={},bf=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},wf=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new bf},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=ld(xf,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(ed);wf.prototype.type="line";var Sf=[],Mf=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function If(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?as:os)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?as:os)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ps:ds)(t.x1,t.cpx1,t.x2,e),(n?ps:ds)(t.y1,t.cpy1,t.y2,e)]}var Cf=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Mf},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==l||null==u?(c<1&&(gs(n,a,i,c,Sf),a=Sf[1],i=Sf[2],gs(r,s,o,c,Sf),s=Sf[1],o=Sf[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&(us(n,a,l,i,c,Sf),a=Sf[1],l=Sf[2],i=Sf[3],us(r,s,u,o,c,Sf),s=Sf[1],u=Sf[2],o=Sf[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return If(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=If(this.shape,t,!0);return Lo(e,e)},e}(ed);Cf.prototype.type="bezier-curve";var Af=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Tf=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Af},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(ed);Tf.prototype.type="arc";var kf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return a(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ed.prototype.getBoundingRect.call(this)},e}(ed),Lf=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),Df=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return a(e,t),e}(Lf),Pf=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return a(e,t),e}(Lf),Rf=[0,0],Of=[0,0],Ef=new va,Nf=new va,zf=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new va;for(n=0;n<2;n++)this._axes[n]=new va;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);va.sub(r[0],n[1],n[0]),va.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return Ef.set(1/0,1/0),Nf.set(0,0),!this._intersectCheckOneSide(this,t,Ef,Nf,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,Ef,Nf,r,-1)&&(n=!1,r)||r||va.copy(e,n?Ef:Nf),n},t.prototype._intersectCheckOneSide=function(t,e,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Rf),this._getProjMinMaxOnAxis(s,e._corners,Of),Rf[1]<Of[0]||Rf[0]>Of[1]){if(a=!1,i)return a;var u=Math.abs(Of[0]-Rf[1]),c=Math.abs(Rf[0]-Of[1]);Math.min(u,c)>r.len()&&(u<c?va.scale(r,l,-u*o):va.scale(r,l,c*o))}else if(n){u=Math.abs(Of[0]-Rf[1]),c=Math.abs(Rf[0]-Of[1]);Math.min(u,c)<n.len()&&(u<c?va.scale(n,l,u*o):va.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),Bf=[],Vf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return a(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Ca(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Bf)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(t,e))return!0}return!1},e}(Jc),Ff=uc();function Gf(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=eo(r.duration,200),u=eo(r.easing,"cubicOut"),c=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),c=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),Hi(c)&&(c=c(n,i)),Hi(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}function jf(t,e,n,r,i,o,a){var s,l=!1;Hi(i)?(a=o,o=i,i=null):Xi(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=Gf(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var h={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Wf(t,e,n,r,i,o){jf("update",t,e,n,r,i,o)}function Hf(t,e,n,r,i,o){jf("enter",t,e,n,r,i,o)}function Uf(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function Zf(t,e,n,r,i,o){Uf(t)||jf("leave",t,e,n,r,i,o)}function Yf(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),Zf(t,{style:{opacity:0}},e,n,r)}function Xf(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||Yf(t,e,n,r)})):Yf(t,e,n,r)}function qf(t){Ff(t).oldStyle=t.style}var Kf=Math.max,$f=Math.min,Qf={};var Jf=function(t,e){var n=Hp(t,e);return function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return a(e,t),e}(jp)};function tg(t,e){Qf[t]=e}function eg(t){if(Qf.hasOwnProperty(t))return Qf[t]}function ng(t,e,n,r){var i=Up(t,e);return n&&("center"===r&&(n=ig(n,i.getBoundingRect())),ag(i,n)),i}function rg(t,e,n){var r=new ad({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(ig(e,i))}}});return r}function ig(t,e){var n,r=e.width/e.height,i=t.height*r;return n=i<=t.width?t.height:(i=t.width)/r,{x:t.x+t.width/2-i/2,y:t.y+t.height/2-n/2,width:i,height:n}}var og=function(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new ed(e);return a.createPathProxy(),a.buildPath=function(t){if(Wp(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function ag(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function sg(t,e){return ld(t,t,{lineWidth:e}),t}var lg=cd;function ug(t,e){for(var n=ca([]);t&&t!==e;)da(n,t.getLocalTransform(),n),t=t.parent;return n}function cg(t,e,n){return e&&!Ei(e)&&(e=Ql.getLocalTransform(e)),n&&(e=ya([],e)),Eo([],t,e)}function hg(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return o=cg(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function dg(t){return!t.isGroup}function pg(t,e,n){if(t&&e){var r,i=(r={},t.traverse((function(t){dg(t)&&t.anid&&(r[t.anid]=t)})),r);e.traverse((function(t){if(dg(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),Wf(t,r,n,kd(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=Di({},t.shape)),e}}function fg(t,e){return zi(t,(function(t){var n=t[0];n=Kf(n,e.x),n=$f(n,e.x+e.width);var r=t[1];return r=Kf(r,e.y),[n,r=$f(r,e.y+e.height)]}))}function gg(t,e,n){var r=Di({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Pi(i,n),new ad(r)):ng(t.replace("path://",""),r,n,"center")}function yg(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(vg(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function vg(t,e,n,r,i,o,a,s){var l,u=n-t,c=r-e,h=a-i,d=s-o,p=mg(h,d,u,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-i,g=e-o,y=mg(f,g,u,c)/p;if(y<0||y>1)return!1;var v=mg(f,g,h,d)/p;return!(v<0||v>1)}function mg(t,e,n,r){return t*r-n*e}function _g(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Ui(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Ni(Fi(l),(function(t){mo(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=kd(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Pi({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function xg(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function bg(t,e){if(t)if(Wi(t))for(var n=0;n<t.length;n++)xg(t[n],e);else xg(t,e)}tg("circle",Xp),tg("ellipse",Kp),tg("sector",df),tg("ring",ff),tg("polygon",vf),tg("polyline",_f),tg("rect",pd),tg("line",wf),tg("bezierCurve",Cf),tg("arc",Tf);var wg=Object.freeze({__proto__:null,Arc:Tf,BezierCurve:Cf,BoundingRect:Ca,Circle:Xp,CompoundPath:kf,Ellipse:Kp,Group:xu,Image:ad,IncrementalDisplayable:Vf,Line:wf,LinearGradient:Df,OrientedBoundingRect:zf,Path:ed,Point:va,Polygon:vf,Polyline:_f,RadialGradient:Pf,Rect:pd,Ring:ff,Sector:df,Text:yd,applyTransform:cg,clipPointsByRect:fg,clipRectByRect:function(t,e){var n=Kf(t.x,e.x),r=$f(t.x+t.width,e.x+e.width),i=Kf(t.y,e.y),o=$f(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}},createIcon:gg,extendPath:function(t,e){return Jf(t,e)},extendShape:function(t){return ed.extend(t)},getShapeClass:eg,getTransform:ug,groupTransition:pg,initProps:Hf,isElementRemoved:Uf,lineLineIntersect:vg,linePolygonIntersect:yg,makeImage:rg,makePath:ng,mergePath:og,registerShape:tg,removeElement:Zf,removeElementWithFadeOut:Xf,resizePath:ag,setTooltipConfig:_g,subPixelOptimize:lg,subPixelOptimizeLine:sg,subPixelOptimizeRect:function(t){return ud(t.shape,t.shape,t.style),t},transformDirection:hg,traverseElements:bg,updateProps:Wf}),Sg={};function Mg(t,e){for(var n=0;n<Ed.length;n++){var r=Ed[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Ig(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Hi(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<Ed.length;u++){var c=Ed[u],h=e[c];l[c]=eo(i?i.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,r)}return l}function Cg(t,e,n,r){n=n||Sg;for(var i=t instanceof yd,o=!1,a=0;a<Nd.length;a++){if((d=e[Nd[a]])&&d.getShallow("show")){o=!0;break}}var s=i?t:t.getTextContent();if(o){i||(s||(s=new yd,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Ig(n,e),u=e.normal,c=!!u.getShallow("show"),h=Tg(u,r&&r.normal,n,!1,!i);h.text=l.normal,i||t.setTextConfig(kg(u,n,!1));for(a=0;a<Ed.length;a++){var d,p=Ed[a];if(d=e[p]){var f=s.ensureState(p),g=!!eo(d.getShallow("show"),c);if(g!==c&&(f.ignore=!g),f.style=Tg(d,r&&r[p],n,!0,!i),f.style.text=l[p],!i)t.ensureState(p).textConfig=kg(d,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(Eg(s).setLabelText=function(t){var r=Ig(n,e,t);Mg(s,r)})}else s&&(s.ignore=!0);t.dirty()}function Ag(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Ed.length;r++){var i=Ed[r];n[i]=t.getModel([i,e])}return n}function Tg(t,e,n,r,i){var o={};return function(t,e,n,r,i){n=n||Sg;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||Sg).rich;if(n){e=e||{};for(var r=Fi(n),i=0;i<r.length;i++){e[r[i]]=1}}t=t.parentModel}return e}(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Rg(o[u]={},c,s,n,r,i,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("minMargin");null!=d&&(t.margin=d);Rg(t,e,s,n,r,i,!0,!1)}(o,t,n,r,i),e&&Di(o,e),o}function kg(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=eo(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(r=t.getShallow("position")||(n?null:"inside"))&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}var Lg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Dg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Pg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Rg(t,e,n,r,i,o,a,s){n=!i&&n||Sg;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=eo(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var d=eo(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(t.lineWidth=d);var p=eo(e.getShallow("textBorderType"),n.textBorderType);null!=p&&(t.lineDash=p);var f=eo(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(t.lineDashOffset=f),i||null!=h||s||(h=r&&r.defaultOpacity),null!=h&&(t.opacity=h),i||o||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var g=0;g<Lg.length;g++){var y=Lg[g];null!=(m=eo(e.getShallow(y),n[y]))&&(t[y]=m)}for(g=0;g<Dg.length;g++){y=Dg[g];null!=(m=e.getShallow(y))&&(t[y]=m)}if(null==t.verticalAlign){var v=e.getShallow("baseline");null!=v&&(t.verticalAlign=v)}if(!a||!r.disableBox){for(g=0;g<Pg.length;g++){var m;y=Pg[g];null!=(m=e.getShallow(y))&&(t[y]=m)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Og(t,e){var n=e&&e.getModel("textStyle");return ao([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Eg=uc();function Ng(t,e,n,r){if(t){var i=Eg(t);i.prevValue=i.value,i.value=n;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}function zg(t,e,n,r,i){var o=Eg(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=eo(o.interpolatedValue,o.prevValue),l=o.value;t.percent=0,(null==o.prevValue?Hf:Wf)(t,{percent:1},r,e,null,(function(r){var u=mc(n,o.precision,s,l,r);o.interpolatedValue=1===r?null:u;var c=Ig({labelDataIndex:e,labelFetcher:i,defaultText:a?a(u):u+""},o.statesModels,u);Mg(t,c)}))}}var Bg,Vg,Fg=["textStyle","color"],Gg=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],jg=new yd,Wg=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Fg):null)},t.prototype.getFont=function(){return Og({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Gg.length;n++)e[Gg[n]]=this.getShallow(Gg[n]);return jg.useStyle(e),jg.update(),jg.getBoundingRect()},t}(),Hg=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Ug=Tc(Hg),Zg=function(){function t(){}return t.prototype.getLineStyle=function(t){return Ug(this,t)},t}(),Yg=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Xg=Tc(Yg),qg=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Xg(this,t,e)},t}(),Kg=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){},t.prototype.mergeOption=function(t,e){ki(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null;return new t(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(Ti(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!si.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length&&(!t[r]||null!=(n=n&&"object"==typeof n?n[t[r]]:null));r++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();wc(Kg),Bg=Kg,Vg=["__\0is_clz",Mc++].join("_"),Bg.prototype[Vg]=!0,Bg.isInstance=function(t){return!(!t||!t[Vg])},Oi(Kg,Zg),Oi(Kg,qg),Oi(Kg,Lc),Oi(Kg,Wg);var $g=Math.round(10*Math.random());function Qg(t){return[t||"",$g++].join("_")}function Jg(t,e){return ki(ki({},t,!0),e,!0)}var ty="ZH",ey="EN",ny=ey,ry={},iy={},oy=si.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||ny).toUpperCase().indexOf(ty)>-1?ty:ny;function ay(t,e){t=t.toUpperCase(),iy[t]=new Kg(e),ry[t]=e}function sy(t){return iy[t]}ay(ey,{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:". "}}}}),ay(ty,{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 ly=1e3,uy=6e4,cy=36e5,hy=864e5,dy=31536e6,py={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}"},fy="{yyyy}-{MM}-{dd}",gy={year:"{yyyy}",month:"{yyyy}-{MM}",day:fy,hour:fy+" "+py.hour,minute:fy+" "+py.minute,second:fy+" "+py.second,millisecond:py.none},yy=["year","month","day","hour","minute","second","millisecond"],vy=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function my(t,e){return"0000".substr(0,e-(t+="").length)+t}function _y(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function xy(t){return t===_y(t)}function by(t,e,n,r){var i=zu(t),o=i[My(n)](),a=i[Iy(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[Cy(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Ay(n)](),h=(c-1)%12+1,d=i[Ty(n)](),p=i[ky(n)](),f=i[Ly(n)](),g=c>=12?"pm":"am",y=g.toUpperCase(),v=(r instanceof Kg?r:sy(r||oy)||iy[ny]).getModel("time"),m=v.get("month"),_=v.get("monthAbbr"),x=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,my(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,_[a-1]).replace(/{MM}/g,my(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,my(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,my(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,my(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,my(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,my(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,my(f,3)).replace(/{S}/g,f+"")}function wy(t,e){var n=zu(t),r=n[Iy(e)]()+1,i=n[Cy(e)](),o=n[Ay(e)](),a=n[Ty(e)](),s=n[ky(e)](),l=0===n[Ly(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,d=h&&1===i;return d&&1===r?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Sy(t,e,n){var r=Yi(t)?zu(t):t;switch(e=e||wy(t,n)){case"year":return r[My(n)]();case"half-year":return r[Iy(n)]()>=6?1:0;case"quarter":return Math.floor((r[Iy(n)]()+1)/4);case"month":return r[Iy(n)]();case"day":return r[Cy(n)]();case"half-day":return r[Ay(n)]()/24;case"hour":return r[Ay(n)]();case"minute":return r[Ty(n)]();case"second":return r[ky(n)]();case"millisecond":return r[Ly(n)]()}}function My(t){return t?"getUTCFullYear":"getFullYear"}function Iy(t){return t?"getUTCMonth":"getMonth"}function Cy(t){return t?"getUTCDate":"getDate"}function Ay(t){return t?"getUTCHours":"getHours"}function Ty(t){return t?"getUTCMinutes":"getMinutes"}function ky(t){return t?"getUTCSeconds":"getSeconds"}function Ly(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Dy(t){return t?"setUTCFullYear":"setFullYear"}function Py(t){return t?"setUTCMonth":"setMonth"}function Ry(t){return t?"setUTCDate":"setDate"}function Oy(t){return t?"setUTCHours":"setHours"}function Ey(t){return t?"setUTCMinutes":"setMinutes"}function Ny(t){return t?"setUTCSeconds":"setSeconds"}function zy(t){return t?"setUTCMilliseconds":"setMilliseconds"}function By(t){if(!Wu(t))return Ui(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Vy(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Fy=io;function Gy(t,e,n){function r(t){return t&&ao(t)?t:"-"}function i(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?zu(t):t;if(!isNaN(+s))return by(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return Zi(t)?r(t):Yi(t)&&i(t)?t+"":"-";var l=ju(t);return i(l)?By(l):Zi(t)?r(t):"boolean"==typeof t?t+"":"-"}var jy=["a","b","c","d","e","f","g"],Wy=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Hy(t,e,n){Wi(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=jy[o];t=t.replace(Wy(a),Wy(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(Wy(jy[l],s),n?Ko(u):u)}return t}function Uy(t,e){return e=e||"transparent",Ui(t)?t:Xi(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Zy(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Yy=Ni,Xy=["left","right","top","bottom","width","height"],qy=[["width","left","right"],["height","top","bottom"]];function Ky(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var y=d.height+(f?-f.y+d.y:0);(h=a+y)>i||l.newline?(o+=s+n,a=0,h=y,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var $y=Ky;function Qy(t,e,n){n=Fy(n||0);var r=e.width,i=e.height,o=Au(t.left,r),a=Au(t.top,i),s=Au(t.right,r),l=Au(t.bottom,i),u=Au(t.width,r),c=Au(t.height,i),h=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-c-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var f=new Ca(o+n[3],a+n[0],u,c);return f.margin=n,f}function Jy(t,e,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new Ca(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(a=a.clone()).applyTransform(c)}var h=Qy(Pi({width:a.width,height:a.height},e),n,r),d=s?h.x-a.x:0,p=l?h.y-a.y:0;return"raw"===u?(o.x=d,o.y=p):(o.x+=d,o.y+=p),o===t&&t.markRedraw(),!0}function tv(t){var e=t.layoutMode||t.constructor.layoutMode;return Xi(e)?e:e?{type:e}:null}function ev(t,e,n){var r=n&&n.ignoreSize;!Wi(r)&&(r=[r,r]);var i=a(qy[0],0),o=a(qy[1],1);function a(n,i){var o={},a=0,u={},c=0;if(Yy(n,(function(e){u[e]=t[e]})),Yy(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),r[i])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var h=0;h<n.length;h++){var d=n[h];if(!s(o,d)&&s(t,d)){o[d]=t[d];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){Yy(t,(function(t){e[t]=n[t]}))}u(qy[0],t,i),u(qy[1],t,o)}function nv(t){return rv({},t)}function rv(t,e){return e&&t&&Yy(Xy,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}ji(Ky,"vertical"),ji(Ky,"horizontal");var iv=uc(),ov=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=Qg("ec_cpt_model"),i}return a(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=tv(this),r=n?nv(t):{};ki(t,e.getTheme().get(this.mainType)),ki(t,this.getDefaultOption()),n&&ev(t,r,n)},e.prototype.mergeOption=function(t,e){ki(this.option,t,!0);var n=tv(this);n&&ev(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[xc])}(t))return t.defaultOption;var e=iv(this);if(!e.defaultOption){for(var n=[],r=t;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=ki(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return gc(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Kg);Sc(ov,Kg),Ac(ov),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=bc(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=bc(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}(ov),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,r,i,o){if(t.length){var a=function(t){var r={},i=[];return Ni(t,(function(o){var a=n(r,o),s=function(t,e){var n=[];return Ni(t,(function(t){Ri(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&i.push(o),Ni(s,(function(t){Ri(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(r,t);Ri(e.successor,t)<0&&e.successor.push(o)}))})),{graph:r,noEntryList:i}}(r),s=a.graph,l=a.noEntryList,u={};for(Ni(t,(function(t){u[t]=!0}));l.length;){var c=l.pop(),h=s[c],d=!!u[c];d&&(i.call(o,c,h.originalDeps.slice()),delete u[c]),Ni(h.successor,d?f:p)}Ni(u,(function(){throw new Error("")}))}function p(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){u[t]=!0,p(t)}}}(ov,(function(t){var e=[];Ni(ov.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=zi(e,(function(t){return bc(t).main})),"dataset"!==t&&Ri(e,"dataset")<=0&&e.unshift("dataset");return e}));var av="";"undefined"!=typeof navigator&&(av=navigator.platform||"");var sv="rgba(0, 0, 0, 0.2)",lv={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:sv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sv,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sv,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:av.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},uv=fo(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),cv="original",hv="arrayRows",dv="objectRows",pv="keyedColumns",fv="typedArray",gv="unknown",yv="column",vv="row",mv=1,_v=2,xv=3,bv=uc();function wv(t,e,n){var r={},i=Mv(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=bv(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;Ni(t=t.slice(),(function(e,n){var i=Xi(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=f(i)),r[i.name]=[]}));var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function p(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function f(t){var e=t.dimsDef;return e?e.length:1}return Ni(t,(function(t,e){var n=t.name,i=f(t);if(null==o){var a=d.valueWayDim;p(r[n],a,i),p(l,a,i),d.valueWayDim+=i}else if(o===e)p(r[n],0,i),p(s,0,i);else{a=d.categoryWayDim;p(r[n],a,i),p(l,a,i),d.categoryWayDim+=i}})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function Sv(t,e,n){var r={};if(!Mv(t))return r;var i,o=e.sourceFormat,a=e.dimensionsDefine;o!==dv&&o!==pv||Ni(a,(function(t,e){"name"===(Xi(t)?t.name:t)&&(i=e)}));var s=function(){for(var t={},r={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=Cv(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(c);var h=c===xv;if(h&&null==t.v&&l!==i&&(t.v=l),(null==t.n||t.n===t.v||!h&&s[t.n]===xv)&&(t.n=l),d(t)&&s[t.n]!==xv)return t;h||(c===_v&&null==r.v&&l!==i&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(r)?r:null}();if(s){r.value=[s.v];var l=null!=i?i:s.n;r.itemName=[l],r.seriesName=[l]}return r}function Mv(t){if(!t.get("data",!0))return gc(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},pc).models[0]}function Iv(t,e){return Cv(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Cv(t,e,n,r,i,o){var a,s,l;if(Ki(t))return xv;if(r){var u=r[o];Xi(u)?(s=u.name,l=u.type):Ui(u)&&(s=u)}if(null!=l)return"ordinal"===l?mv:xv;if(e===hv){var c=t;if(n===vv){for(var h=c[o],d=0;d<(h||[]).length&&d<5;d++)if(null!=(a=m(h[i+d])))return a}else for(d=0;d<c.length&&d<5;d++){var p=c[i+d];if(p&&null!=(a=m(p[o])))return a}}else if(e===dv){var f=t;if(!s)return xv;for(d=0;d<f.length&&d<5;d++){if((y=f[d])&&null!=(a=m(y[s])))return a}}else if(e===pv){if(!s)return xv;if(!(h=t[s])||Ki(h))return xv;for(d=0;d<h.length&&d<5;d++)if(null!=(a=m(h[d])))return a}else if(e===cv){var g=t;for(d=0;d<g.length&&d<5;d++){var y,v=tc(y=g[d]);if(!Wi(v))return xv;if(null!=(a=m(v[o])))return a}}function m(t){var e=Ui(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?_v:xv:e&&"-"!==t?mv:void 0}return xv}var Av=fo();var Tv,kv,Lv,Dv=uc(),Pv=uc(),Rv=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=$u(this.get("color",!0)),i=this.get("colorLayer",!0);return Ev(this,Dv,r,i,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,Dv)},t}();function Ov(t,e,n,r){var i=$u(t.get(["aria","decal","decals"]));return Ev(t,Pv,i,null,e,n,r)}function Ev(t,e,n,r,i,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}(r,a):n;if((c=c||n)&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}var Nv="\0_ec_inner",zv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new Kg(r),this._locale=new Kg(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=Fv(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Fv(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Lv(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&Ni(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=fo(),s=e&&e.replaceMergeMainTypeMap;bv(this).datasetMap=fo(),Ni(t,(function(t,e){null!=t&&(ov.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Ti(t):ki(n[e],t,!0))})),s&&s.each((function(t,e){ov.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),ov.topologicalTravel(o,ov.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var r=Av.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}(this,e,$u(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=nc(a,o,l);(function(t,e,n){Ni(t,(function(t){var r=t.newOption;Xi(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,r){return e.type?e.type:n?n.subType:r.determineSubType(t,e)}(e,r,t.existing,n))}))})(u,e,ov),n[e]=null,r.set(e,null),i.set(e,0);var c,h=[],d=[],p=0;Ni(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=ov.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return;c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Di({componentIndex:n},t.keyInfo);Di(r=new a(i,this,this,s),s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),d.push(r),p++):(h.push(void 0),d.push(void 0))}),this),n[e]=h,r.set(e,d),i.set(e,p),"series"===e&&Tv(this)}),this),this._seriesIndices||Tv(this)},e.prototype.getOption=function(){var t=Ti(this.option);return Ni(t,(function(e,n){if(ov.hasClass(n)){for(var r=$u(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!sc(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[Nv],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=r?(n=[],Ni($u(r),(function(t){a[t]&&n.push(a[t])}))):n=null!=i?Bv("id",i,a):null!=o?Bv("name",o,a):Vi(a,(function(t){return!!t})),Vv(n,t)):[]},e.prototype.findComponents=function(t){var e,n,r,i,o,a=t.query,s=t.mainType,l=(n=s+"Index",r=s+"Id",i=s+"Name",!(e=a)||null==e[n]&&null==e[r]&&null==e[i]?null:{mainType:s,index:e[n],id:e[r],name:e[i]}),u=l?this.queryComponents(l):Vi(this._componentsMap.get(s),(function(t){return!!t}));return o=Vv(u,t),t.filter?Vi(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(Hi(t)){var i=e,o=t;r.each((function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}}))}else for(var a=Ui(t)?r.get(t):Xi(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=oc(t,null);return Vi(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Vi(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Vi(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){kv(this),Ni(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){Ni(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){kv(this),Ni(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Ni(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return kv(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){kv(this);var n=[];Ni(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=fo(n)},e.prototype.restoreData=function(t){Tv(this);var e=this._componentsMap,n=[];e.each((function(t,e){ov.hasClass(e)&&n.push(e)})),ov.topologicalTravel(n,ov.getAllClassMainTypes(),(function(n){Ni(e.get(n),(function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}(e,t)||e.restoreData()}))}))},e.internalField=(Tv=function(t){var e=t._seriesIndices=[];Ni(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=fo(e)},kv=function(t){},void(Lv=function(t,e){t.option={},t.option[Nv]=1,t._componentsMap=fo({series:[]}),t._componentsCount=fo();var n=e.aria;Xi(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;Ni(e,(function(e,r){"colorLayer"===r&&n||ov.hasClass(r)||("object"==typeof e?t[r]=t[r]?ki(t[r],e,!1):Ti(e):null==t[r]&&(t[r]=e))}))}(e,t._theme.option),ki(e,lv,!1),t._mergeOption(e,null)})),e}(Kg);function Bv(t,e,n){if(Wi(e)){var r=fo();return Ni(e,(function(t){null!=t&&(null!=oc(t,null)&&r.set(t,!0))})),Vi(n,(function(e){return e&&r.get(e[t])}))}var i=oc(e,null);return Vi(n,(function(e){return e&&null!=i&&e[t]===i}))}function Vv(t,e){return e.hasOwnProperty("subType")?Vi(t,(function(t){return t&&t.subType===e.subType})):t}function Fv(t){var e=fo();return t&&Ni($u(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Oi(zv,Rv);var Gv=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],jv=function(t){Ni(Gv,(function(e){this[e]=Gi(t[e],t)}),this)},Wv={},Hv=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];Ni(Wv,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){Ni(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){Wv[t]=e},t.get=function(t){return Wv[t]},t}(),Uv=/^(min|max)?(.+)$/,Zv=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Ni($u(t.series),(function(t){t&&t.data&&Ki(t.data)&&lo(t.data)})),Ni($u(t.dataset),(function(t){t&&t.source&&Ki(t.source)&&lo(t.source)}))),t=Ti(t);var r=this._optionBackup,i=function(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((h||c)&&(t.options=t.media=null),i=t);c&&Wi(u)&&Ni(u,(function(t){t&&t.option&&(t.query?o.push(t):r||(r=t))}));function d(t){Ni(e,(function(e){e(t,n)}))}return d(i),Ni(l,(function(t){return d(t)})),Ni(o,(function(t){return d(t.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Ti(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=Ti(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)Yv(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=zi(s,(function(t){return Ti(-1===t?a.option:o[t].option)}))),this._currentMediaIndices=s,l},t}();function Yv(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return Ni(t,(function(t,e){var n=e.match(Uv);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(r[a],t,o)||(i=!1)}})),i}var Xv=Ni,qv=Xi,Kv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function $v(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=Kv.length;n<r;n++){var i=Kv[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?ki(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?ki(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function Qv(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,Pi(t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Jv(t){Qv(t,"itemStyle"),Qv(t,"lineStyle"),Qv(t,"areaStyle"),Qv(t,"label"),Qv(t,"labelLine"),Qv(t,"upperLabel"),Qv(t,"edgeLabel")}function tm(t,e){var n=qv(t)&&t[e],r=qv(n)&&n.textStyle;if(r)for(var i=0,o=Ju.length;i<o;i++){var a=Ju[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function em(t){t&&(Jv(t),tm(t,"label"),t.emphasis&&tm(t.emphasis,"label"))}function nm(t){return Wi(t)?t:t?[t]:[]}function rm(t){return(Wi(t)?t[0]:t)||{}}function im(t,e){Xv(nm(t.series),(function(t){qv(t)&&function(t){if(qv(t)){$v(t),Jv(t),tm(t,"label"),tm(t,"upperLabel"),tm(t,"edgeLabel"),t.emphasis&&(tm(t.emphasis,"label"),tm(t.emphasis,"upperLabel"),tm(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&($v(e),em(e));var n=t.markLine;n&&($v(n),em(n));var r=t.markArea;r&&em(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!Ki(o))for(var a=0;a<o.length;a++)em(o[a]);Ni(t.categories,(function(t){Jv(t)}))}if(i&&!Ki(i))for(a=0;a<i.length;a++)em(i[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)em(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)Wi(l[a])?(em(l[a][0]),em(l[a][1])):em(l[a])}"gauge"===t.type?(tm(t,"axisLabel"),tm(t,"title"),tm(t,"detail")):"treemap"===t.type?(Qv(t.breadcrumb,"itemStyle"),Ni(t.levels,(function(t){Jv(t)}))):"tree"===t.type&&Jv(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Xv(n,(function(e){Xv(nm(t[e]),(function(t){t&&(tm(t,"axisLabel"),tm(t.axisPointer,"label"))}))})),Xv(nm(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;tm(e,"axisLabel"),tm(e&&e.axisPointer,"label")})),Xv(nm(t.calendar),(function(t){Qv(t,"itemStyle"),tm(t,"dayLabel"),tm(t,"monthLabel"),tm(t,"yearLabel")})),Xv(nm(t.radar),(function(t){tm(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),Xv(nm(t.geo),(function(t){qv(t)&&(em(t),Xv(nm(t.regions),(function(t){em(t)})))})),Xv(nm(t.timeline),(function(t){em(t),Qv(t,"label"),Qv(t,"itemStyle"),Qv(t,"controlStyle",!0);var e=t.data;Wi(e)&&Ni(e,(function(t){Xi(t)&&(Qv(t,"label"),Qv(t,"itemStyle"))}))})),Xv(nm(t.toolbox),(function(t){Qv(t,"iconStyle"),Xv(t.feature,(function(t){Qv(t,"iconStyle")}))})),tm(rm(t.axisPointer),"label"),tm(rm(t.tooltip).axisPointer,"label")}function om(t){t&&Ni(am,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var am=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],sm=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],lm=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function um(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<lm.length;n++){var r=lm[n][1],i=lm[n][0];null!=e[r]&&(e[i]=e[r])}}function cm(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function hm(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function dm(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&dm(t[n].children,e)}function pm(t,e){im(t,e),t.series=$u(t.series),Ni(t.series,(function(t){if(Xi(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),cm(t.label),(i=t.data)&&!Ki(i))for(var n=0;n<i.length;n++)cm(i[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=function(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(t,"pointer.color");null!=r&&function(t,e,n){for(var r,i=e.split(","),o=t,a=0;a<i.length-1;a++)null==o[r=i[a]]&&(o[r]={}),o=o[r];null==o[i[a]]&&(o[i[a]]=n)}(t,"itemStyle.color",r)}else if("bar"===e){var i;if(um(t),um(t.backgroundStyle),um(t.emphasis),(i=t.data)&&!Ki(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(um(i[n]),um(i[n]&&i[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),hm(t),dm(t.data,hm)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Pi(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),om(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Ni(sm,(function(e){var n=t[e];n&&(Wi(n)||(n=[n]),Ni(n,(function(t){om(t)})))}))}function fm(t){Ni(t,(function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,d,p=a.get(e.stackedDimension,c);if(isNaN(p))return i;s?d=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var y=t[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var v=y.data.getByRawIndex(y.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=Pu(p,v),f=v;break}}}return r[0]=p,r[1]=f,r}))}))}var gm,ym,vm,mm,_m,xm=function(t){this.data=t.data||(t.sourceFormat===pv?{}:[]),this.sourceFormat=t.sourceFormat||gv,this.seriesLayoutBy=t.seriesLayoutBy||yv,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&Iv(this,n)===mv&&(r.type="ordinal")}};function bm(t){return t instanceof xm}function wm(t,e,n){n=n||Mm(t);var r=e.seriesLayoutBy,i=function(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:Im(i),startIndex:a,dimensionsDetectedCount:o};if(e===hv){var s=t;"auto"===r||null==r?Cm((function(t){null!=t&&"-"!==t&&(Ui(t)?null==a&&(a=1):a=0)}),n,s,10):a=Yi(r)?r:r?1:0,i||1!==a||(i=[],Cm((function(t,e){i[e]=null!=t?t+"":""}),n,s,1/0)),o=i?i.length:n===vv?s.length:s[0]?s[0].length:null}else if(e===dv)i||(i=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return Fi(e)}(t));else if(e===pv)i||(i=[],Ni(t,(function(t,e){i.push(e)})));else if(e===cv){var l=tc(t[0]);o=Wi(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Im(i),dimensionsDetectedCount:o}}(t,n,r,e.sourceHeader,e.dimensions);return new xm({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Ti(e)})}function Sm(t){return new xm({data:t,sourceFormat:Ki(t)?fv:cv})}function Mm(t){var e=gv;if(Ki(t))e=fv;else if(Wi(t)){0===t.length&&(e=hv);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(Wi(i)||Ki(i)){e=hv;break}if(Xi(i)){e=dv;break}}}}else if(Xi(t))for(var o in t)if(mo(t,o)&&Ei(t[o])){e=pv;break}return e}function Im(t){if(t){var e=fo();return zi(t,(function(t,n){var r={name:(t=Xi(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r}))}}function Cm(t,e,n,r){if(e===vv)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)t(o[i],i)}}function Am(t){var e=t.sourceFormat;return e===dv||e===pv}var Tm=function(){function t(t,e){var n=bm(t)?t:Sm(t);this._source=n;var r=this._data=n.data;n.sourceFormat===fv&&(this._offset=0,this._dimSize=e,this._data=r),_m(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;_m=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(Di(t,mm[Bm(a,s)]),a===fv)t.getItem=e,t.count=r,t.fillStorage=n;else{var c=Dm(a,s);t.getItem=Gi(c,null,i,l,u);var h=Om(a,s);t.count=Gi(h,null,i,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],d=0;d<c;d++){var p=i[d*o+a];h[t+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[hv+"_"+yv]={pure:!0,appendData:i},t[hv+"_"+vv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[dv]={pure:!0,appendData:i},t[pv]={pure:!0,appendData:function(t){var e=this._data;Ni(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t[cv]={appendData:i},t[fv]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},mm=t}(),t}(),km=function(t,e,n,r){return t[r]},Lm=((gm={})[hv+"_"+yv]=function(t,e,n,r){return t[r+e]},gm[hv+"_"+vv]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},gm[dv]=km,gm[pv]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=t[n[a].name];o[a]=s?s[r]:null}return o},gm[cv]=km,gm);function Dm(t,e){return Lm[Bm(t,e)]}var Pm=function(t,e,n){return t.length},Rm=((ym={})[hv+"_"+yv]=function(t,e,n){return Math.max(0,t.length-e)},ym[hv+"_"+vv]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},ym[dv]=Pm,ym[pv]=function(t,e,n){var r=t[n[0].name];return r?r.length:0},ym[cv]=Pm,ym);function Om(t,e){return Rm[Bm(t,e)]}var Em=function(t,e,n){return t[e]},Nm=((vm={})[hv]=Em,vm[dv]=function(t,e,n){return t[n]},vm[pv]=Em,vm[cv]=function(t,e,n){var r=tc(t);return r instanceof Array?r[e]:r},vm[fv]=Em,vm);function zm(t){return Nm[t]}function Bm(t,e){return t===hv?t+"_"+e:t}function Vm(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return zm(o)(r,a,s)}var l=r;return o===cv&&(l=tc(r)),l}}}var Fm=/\{@(.+?)\}/g,Gm=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);(o&&(s.value=o.interpolatedValue),null!=r&&Wi(s.value)&&(s.value=s.value[r]),i)||(i=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return Hi(i)?(s.status=e,s.dimensionIndex=r,i(s)):Ui(i)?Hy(i,s).replace(Fm,(function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=Vm(a,t,i);if(o&&Wi(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return Vm(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function jm(t){var e,n;return Xi(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Wm(t){return new Hm(t)}var Hm=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||d<p)){var f=this._progress;if(Wi(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],d,p,l,u);else this._doProgress(f,d,p,l,u)}this._dueIndex=p;var y=null!=this._settedOutputEnd?this._settedOutputEnd:p;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){Um.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Um.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Wi(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Um=function(){var t,e,n,r,i,o={reset:function(l,u,c,h){e=l,t=u,n=c,r=h,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}();function Zm(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Yi(t)||null==t||"-"===t||(t=+zu(t)),null==t||""===t?NaN:Number(t))}var Ym=fo({number:function(t){return parseFloat(t)},time:function(t){return+zu(t)},trim:function(t){return Ui(t)?ao(t):t}});function Xm(t){return Ym.get(t)}var qm={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},Km=function(){function t(t,e){if(!Yi(e)){Yu("")}this._opFn=qm[t],this._rvalFloat=ju(e)}return t.prototype.evaluate=function(t){return Yi(t)?this._opFn(t,this._rvalFloat):this._opFn(ju(t),this._rvalFloat)},t}(),$m=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Yi(t)?t:ju(t),r=Yi(e)?e:ju(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Ui(t),s=Ui(e);a&&(n=s?t:0),s&&(r=a?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}(),Qm=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ju(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=ju(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Jm(t,e){return"eq"===t||"ne"===t?new Qm("eq"===t,e):mo(qm,t)?new Km(t,e):null}var t_=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Zm(t,e)},t}();function e_(t){if(!s_(t.sourceFormat)){Yu("")}return t.data}function n_(t){var e=t.sourceFormat,n=t.data;if(!s_(e)){Yu("")}if(e===hv){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if(e===dv){for(r=[],i=0,o=n.length;i<o;i++)r.push(Di({},n[i]));return r}}function r_(t,e,n){if(null!=n)return Yi(n)||!isNaN(n)&&!mo(e,n)?t[n]:mo(e,n)?e[n]:void 0}function i_(t){return Ti(t)}var o_=fo();function a_(t,e,n,r){e.length||Yu(""),Xi(t)||Yu("");var i=t.type,o=o_.get(i);o||Yu("");var a=zi(e,(function(t){return function(t,e){var n=new t_,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==yv&&Yu("");var a=[],s={},l=t.dimensionsDefine;if(l)Ni(l,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};a.push(r),null!=n&&(mo(s,n)&&Yu(""),s[n]=r)}));else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var c=Dm(i,yv);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(r,o,a,t)},n.getRawData=Gi(e_,null,t)),n.cloneRawData=Gi(n_,null,t);var h=Om(i,yv);n.count=Gi(h,null,r,o,a);var d=zm(i);n.retrieveValue=function(t,e){var n=c(r,o,a,t);return p(n,e)};var p=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=Gi(r_,null,a,s),n.cloneAllDimensionInfo=Gi(i_,null,a),n}(t,o)}));return zi($u(o.transform({upstream:a[0],upstreamList:a,config:Ti(t.config)})),(function(t,n){var r;Xi(t)||Yu(""),t.data||Yu(""),s_(Mm(t.data))||Yu("");var i=e[0];if(i&&0===n&&!t.dimensions){var o=i.startIndex;o&&(t.data=i.data.slice(0,o).concat(t.data)),r={seriesLayoutBy:yv,sourceHeader:o,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:yv,sourceHeader:0,dimensions:t.dimensions};return wm(t.data,r,null)}))}function s_(t){return t===hv||t===dv}var l_,u_="undefined",c_=typeof Uint32Array===u_?Array:Uint32Array,h_=typeof Uint16Array===u_?Array:Uint16Array,d_=typeof Int32Array===u_?Array:Int32Array,p_=typeof Float64Array===u_?Array:Float64Array,f_={float:p_,int:d_,ordinal:Array,number:Array,time:p_};function g_(t){return t>65535?c_:h_}function y_(t,e,n,r,i){var o=f_[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var v_=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=fo()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=l_[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Am(r),this._dimensions=zi(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new f_[e||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=[1/0,-1/0]);for(var s=i[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++){y_(n,l,(p=r[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var h=c-a,d=0;d<i;d++){var p=r[d],f=l_.arrayRows.call(this,t[h]||u,p.property,h,d);n[d][c]=f;var g=o[d];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=zi(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),y_(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var h=[],d=t;d<e;d++){h=r.getItem(d,h);for(var p=0;p<a;p++){var f=i[p],g=this._dimValueGetter(h,l[p],d,p);f[d]=g;var y=s[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,r=this.count();n<r;n++){var i=this.get(t,n);isNaN(i)||(e+=i)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks[t],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=e-r[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<o||h===o&&c>=0&&a<0)&&(o=h,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{t=new(n=g_(this._rawCount))(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(g_(n._rawCount))(r),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<r;c++){var h=void 0,d=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a){h=e(u[l][d],c)}else{for(var p=0;p<a;p++)o[p]=u[t[p]][d];o[p]=c,h=e.apply(null,o)}h&&(i[s++]=d)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=Fi(t),i=r.length;if(!i)return this;var o=e.count(),a=new(g_(e._rawCount))(o),s=0,l=r[0],u=t[l][0],c=t[l][1],h=e._chunks,d=!1;if(!e._indices){var p=0;if(1===i){for(var f=h[r[0]],g=0;g<n;g++){((_=f[g])>=u&&_<=c||isNaN(_))&&(a[s++]=p),p++}d=!0}else if(2===i){f=h[r[0]];var y=h[r[1]],v=t[r[1]][0],m=t[r[1]][1];for(g=0;g<n;g++){var _=f[g],x=y[g];(_>=u&&_<=c||isNaN(_))&&(x>=v&&x<=m||isNaN(x))&&(a[s++]=p),p++}d=!0}}if(!d)if(1===i)for(g=0;g<o;g++){var b=e.getRawIndex(g);((_=h[r[0]][b])>=u&&_<=c||isNaN(_))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<i;S++){var M=r[S];((_=h[M][b])<t[M][0]||_>t[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),d=0;d<o;d++)s[d]=r[e[d]][h];s[o]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(i[0]=p,p=i);for(u=0;u<p.length;u++){var f=e[u],g=p[u],y=l[f],v=r[f];v&&(v[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(g_(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var d=1;d<s-1;d+=u){for(var p=Math.min(d+u,s-1),f=Math.min(d+2*u,s),g=(f+p)/2,y=0,v=p;v<f;v++){var m=a[I=this.getRawIndex(v)];isNaN(m)||(y+=m)}y/=f-p;var _=d,x=Math.min(d+u,s),b=d-1,w=a[c];n=-1,i=_;var S=-1,M=0;for(v=_;v<x;v++){var I;m=a[I=this.getRawIndex(v)];isNaN(m)?(M++,S<0&&(S=I)):(r=Math.abs((b-g)*(m-w)-(b-v)*(y-w)))>n&&(n=r,i=I)}M>0&&M<x-_&&(h[l++]=Math.min(S,i),i=Math.max(S,i)),h[l++]=i,c=i}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),r=n._chunks,i=Math.floor(1/e),o=r[t],a=this.count(),s=new(g_(this._rawCount))(2*Math.ceil(a/i)),l=0,u=0;u<a;u+=i){var c=u,h=o[this.getRawIndex(c)],d=u,p=o[this.getRawIndex(d)],f=i;u+i>a&&(f=a-u);for(var g=0;g<f;g++){var y=o[this.getRawIndex(u+g)];y<h&&(h=y,c=u+g),y>p&&(p=y,d=u+g)}var v=this.getRawIndex(c),m=this.getRawIndex(d);c<d?(s[l++]=v,s[l++]=m):(s[l++]=m,s[l++]=v)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=i._rawExtent[t]=[1/0,-1/0],h=new(g_(this._rawCount))(Math.ceil(u/s)),d=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var y=n(a),v=this.getRawIndex(Math.min(p+r(a,y)||0,u-1));l[v]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[d++]=v}return i._count=d,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r,i,o=new t,a=this._chunks,s=e&&Bi(e,(function(t,e){return t[e]=!0,t}),{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(r=a[l],i=void 0,(i=r.constructor)===Array?r.slice():new i(r)):a[l];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Ti(this._extent),t._rawExtent=Ti(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return Zm(t[r],this._dimensions[r])}l_={arrayRows:t,objectRows:function(t,e,n,r){return Zm(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return Zm(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),m_=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(x_(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=Ki(a=o.get("data",!0))?fv:cv,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=eo(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=eo(c.sourceHeader,h.sourceHeader),f=eo(c.dimensions,h.dimensions);t=d!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||f?[wm(a,{seriesLayoutBy:d,sourceHeader:p,dimensions:f},s)]:[]}else{var g=n;if(i){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else{t=[wm(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){1!==t.length&&b_("")}var o,a=[],s=[];return Ni(t,(function(t){t.prepareSource();var e=t.getSource(i||0);null==i||e||b_(""),a.push(e),s.push(t._getVersionSign())})),r?e=function(t,e){var n=$u(t),r=n.length;r||Yu("");for(var i=0,o=r;i<o;i++)e=a_(n[i],e),i!==o-1&&(e.length=Math.max(e.length,1));return e}(r,a,n.componentIndex):null!=i&&(e=[(o=a[0],new xm({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:Ti(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];x_(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new v_).initData(new Tm(e,t.length),t),i[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(x_(t)){var e=Mv(t);return e?[e.getSourceManager()]:[]}return zi(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?gc(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},pc).models:[]}(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(x_(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function __(t){t.option.transform&&lo(t.option.transform)}function x_(t){return"series"===t.mainType}function b_(t){throw new Error(t)}function w_(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+Ko(e+"")+"px"}function S_(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Ko(r+"")+"px;color:"+Ko(n)+";font-weight:"+Ko(i+""),valueStyle:"font-size:"+Ko(a+"")+"px;color:"+Ko(o)+";font-weight:"+Ko(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var M_=[0,10,20,30],I_=["","\n","\n\n","\n\n\n"];function C_(t,e){return e.type=t,e}function A_(t){return"section"===t.type}function T_(t){return A_(t)?L_:D_}function k_(t){if(A_(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return Ni(t.blocks,(function(t){var n=k_(t);n>=e&&(e=n+ +(r&&(!n||A_(t)&&!t.noHeader)))})),e}return 0}function L_(t,e,n,r){var i,o=e.noHeader,a=(i=k_(e),{html:M_[i],richText:I_[i]}),s=[],l=e.blocks||[];oo(!l||Wi(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(mo(c,u)){var h=new $m(c[u],null);l.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}Ni(l,(function(n,i){var o=e.valueFormatter,l=T_(n)(o?Di(Di({},t),{valueFormatter:o}):t,n,i>0?a.html:0,r);null!=l&&s.push(l)}));var d="richText"===t.renderMode?s.join(a.richText):R_(r,s.join(""),o?n:a.html);if(o)return d;var p=Gy(e.header,"ordinal",t.useUTC),f=S_(r,t.renderMode).nameStyle,g=w_(r);return"richText"===t.renderMode?O_(t,p,f)+a.richText+d:R_(r,'<div style="'+f+";"+g+';">'+Ko(p)+"</div>"+d,n)}function D_(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return zi(t=Wi(t)?t:[t],(function(t,e){return Gy(t,Wi(p)?p[e]:p,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),d=o?"":Gy(l,"ordinal",u),p=e.valueType,f=a?[]:c(e.value,e.dataIndex),g=!s||!o,y=!s&&o,v=S_(r,i),m=v.nameStyle,_=v.valueStyle;return"richText"===i?(s?"":h)+(o?"":O_(t,d,m))+(a?"":function(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Wi(e)?e.join(" "):e,o)}(t,f,g,y,_)):R_(r,(s?"":h)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Ko(t)+"</span>"}(d,!s,m))+(a?"":function(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=Wi(t)?t:[t],'<span style="'+o+";"+r+'">'+zi(t,(function(t){return Ko(t)})).join("&nbsp;&nbsp;")+"</span>"}(f,g,y,_)),n)}}function P_(t,e,n,r,i,o){if(t)return T_(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function R_(t,e,n){return'<div style="'+("margin: "+n+"px 0 0")+";"+w_(t)+';">'+e+'<div style="clear:both"></div></div>'}function O_(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function E_(t,e){return Uy(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function N_(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var z_=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Hu()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=function(t,e){var n=Ui(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ko(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ko(r)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:e,type:t,renderMode:n,markerId:r});return Ui(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Wi(e)?Ni(e,(function(t){return Di(n,t)})):Di(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function B_(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=Wi(h),p=E_(o,a);if(c>1||d&&!c){var f=function(t,e,n,r,i){var o=e.getData(),a=Bi(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(C_("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?Ni(r,(function(t){c(Vm(o,n,t),t)})):Ni(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,p);e=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=Vm(l,a,u[0]),n=g.type}else i=e=d?h[0]:h;var y=ac(o),v=y&&o.name||"",m=l.getName(a),_=s?v:m;return C_("section",{header:v,noHeader:s||!y,sortParam:i,blocks:[C_("nameValue",{markerType:"item",markerColor:p,name:_,noName:!ao(_),value:e,valueType:n,dataIndex:a})].concat(r||[])})}var V_=uc();function F_(t,e){return t.getName(e)||t.getId(e)}var G_="__universalTransitionEnabled",j_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return a(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Wm({count:H_,reset:U_}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(V_(this).sourceManager=new m_(this)).prepareSource();var r=this.getInitialData(t,n);Y_(r,this),this.dataTask.context.data=r,V_(this).dataBeforeProcessed=r,W_(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=tv(this),r=n?nv(t):{},i=this.subType;ov.hasClass(i)&&(i+="Series"),ki(t,e.getTheme().get(this.subType)),ki(t,this.getDefaultOption()),Qu(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ev(t,r,n)},e.prototype.mergeOption=function(t,e){t=ki(this.option,t,!0),this.fillDataTextStyle(t.data);var n=tv(this);n&&ev(this.option,t,n);var r=V_(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Y_(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,V_(this).dataBeforeProcessed=i,W_(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!Ki(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Qu(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=q_(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return V_(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=q_(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}V_(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return fo(t)},e.prototype.getSourceManager=function(){return V_(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return V_(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return B_({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(si.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Rv.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=F_(i,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=Fi(t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[F_(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[G_])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){Xi(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=e[l];s[h=F_(t,u)]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=F_(t,c);i.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((r={})[h]=t.getRawIndex(c),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return ov.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}(ov);function W_(t){var e=t.name;ac(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return Ni(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}(t)||e)}function H_(t){return t.model.getRawData().count()}function U_(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Z_}function Z_(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Y_(t,e){Ni(go(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,ji(X_,e))}))}function X_(t,e){var n=q_(t);return n&&n.setOutputEnd((e||this).count()),e}function q_(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}Oi(j_,Gm),Oi(j_,Rv),Sc(j_,ov);var K_=function(){function t(){this.group=new xu,this.uid=Qg("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();function $_(){var t=uc();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}wc(K_),Ac(K_);var Q_=uc(),J_=$_(),tx=function(){function t(){this.group=new xu,this.uid=Qg("viewChart"),this.renderTask=Wm({plan:rx,reset:ix}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&nx(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&nx(i,r,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){bg(this.group,t)},t.markUpdateMethod=function(t,e){Q_(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function ex(t,e,n){t&&Mp(t)&&("emphasis"===e?ip:op)(t,n)}function nx(t,e,n){var r=lc(t,e),i=e&&null!=e.highlightKey?function(t){var e=Pd[t];return null==e&&Dd<=32&&(e=Pd[t]=Dd++),e}(e.highlightKey):null;null!=r?Ni($u(r),(function(e){ex(t.getItemGraphicEl(e),n,i)})):t.eachItemGraphicEl((function(t){ex(t,n,i)}))}function rx(t){return J_(t.model)}function ix(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&Q_(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),ox[l]}wc(tx),Ac(tx);var ox={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},ax="\0__throttleOriginMethod",sx="\0__throttleRate",lx="\0__throttleType";function ux(t,e,n){var r,i,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];r=(new Date).getTime(),o=this,a=t;var p=s||e,f=s||n;s=null,i=r-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):i>=0?h():c=setTimeout(h,-i),l=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function cx(t,e,n,r){var i=t[e];if(i){var o=i[ax]||i,a=i[lx];if(i[sx]!==n||a!==r){if(null==n||!r)return t[e]=o;(i=t[e]=ux(o,n,"debounce"===r))[ax]=o,i[lx]=r,i[sx]=n}return i}}function hx(t,e){var n=t[e];n&&n[ax]&&(n.clear&&n.clear(),t[e]=n[ax])}var dx=uc(),px={itemStyle:Tc(Yg,!0),lineStyle:Tc(Hg,!0)},fx={lineStyle:"stroke",itemStyle:"fill"};function gx(t,e){var n=t.visualStyleMapper||px[e];return n||px.itemStyle}function yx(t,e){var n=t.visualDrawType||fx[e];return n||"fill"}var vx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=gx(t,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=yx(t,r),l=o[s],u=Hi(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Hi(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||Hi(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Di({},o);i[s]=u(r),e.setItemVisual(n,"style",i)}}}},mx=new Kg,_x={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=gx(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){mx.option=n[r];var a=i(mx);Di(t.ensureUniqueItemVisual(e,"style"),a),mx.option.decal&&(t.setItemVisual(e,"decal",mx.option.decal),mx.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},xx={performRawSeries:!0,overallReset:function(t){var e=fo();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),dx(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=dx(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=yx(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}}))}}))}},bx=Math.PI;var Sx=function(){function t(t,e,n,r){this._stageTaskMap=fo(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData().count(),i=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=fo();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Ni(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{});oo(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Ni(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){a(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,r.block);d.each((function(t){t.perform(p)})),c.perform(p)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=fo(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||Wm({plan:Tx,reset:kx,count:Px}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||Wm({reset:Mx});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=fo(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1;function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,Wm({reset:Ix,onDirty:Ax})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}oo(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,r).each(d):(c=!1,Ni(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Hi(t)&&(t={overallReset:t,seriesType:Rx(t)}),t.uid=Qg("stageHandler"),e&&(t.visualType=e),t},t}();function Mx(t){t.overallReset(t.ecModel,t.api,t.payload)}function Ix(t){return t.overallProgress&&Cx}function Cx(){this.agent.dirty(),this.getDownstream().dirty()}function Ax(){this.agent&&this.agent.dirty()}function Tx(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function kx(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=$u(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?zi(e,(function(t,e){return Dx(e)})):Lx}var Lx=Dx(0);function Dx(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function Px(t){return t.data.count()}function Rx(t){Ox=null;try{t(Ex,Nx)}catch(t){}return Ox}var Ox,Ex={},Nx={};function zx(t,e){for(var n in e.prototype)t[n]=_o}zx(Ex,zv),zx(Nx,jv),Ex.eachSeriesByType=Ex.eachRawSeriesByType=function(t){Ox=t},Ex.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Ox=t.subType)};var Bx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Vx={color:Bx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Bx]},Fx="#B9B8CE",Gx="#100C2A",jx=function(){return{axisLine:{lineStyle:{color:Fx}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Wx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Hx={darkMode:!0,color:Wx,backgroundColor:Gx,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Fx},pageTextStyle:{color:Fx}},textStyle:{color:Fx},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Fx}},dataZoom:{borderColor:"#71708A",textStyle:{color:Fx},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:Fx}},timeline:{lineStyle:{color:Fx},label:{color:Fx},controlStyle:{color:Fx,borderColor:Fx}},calendar:{itemStyle:{color:Gx},dayLabel:{color:Fx},monthLabel:{color:Fx},yearLabel:{color:Fx}},timeAxis:jx(),logAxis:jx(),valueAxis:jx(),categoryAxis:jx(),line:{symbol:"circle"},graph:{color:Wx},gauge:{title:{color:Fx},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Fx},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Hx.categoryAxis.splitLine.show=!1;var Ux=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(Ui(t)){var i=bc(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};Ni(t,(function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Zx=["symbol","symbolSize","symbolRotate","symbolOffset"],Yx=Zx.concat(["symbolKeepAspect"]),Xx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<Zx.length;a++){var s=Zx[a],l=t.get(s);Hi(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(Di({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=Fi(i);return{dataEach:o?function(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,i[s](r,o))}}:null}}}}},qx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),r=0;r<Yx.length;r++){var i=Yx[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}:null}}};function Kx(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function $x(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Qx(t,e,n,r){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r)}}function Jx(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}Ni([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,i){e=Di({},e),i.dispatchAction(Di(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function tb(t,e,n,r,i){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=lc(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:Wi(u)?l.getName(u[0]):l.getName(u),selected:Ui(r)?r:Di({},r)})}}))}function eb(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}var nb=Math.round(9*Math.random()),rb="function"==typeof Object.defineProperty,ib=function(){function t(){this._id="__ec_inner_"+nb++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return rb?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),ob=ed.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),ab=ed.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),sb=ed.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+d*p,n,r-f,n,r),t.bezierCurveTo(n,r-f,n-c+h*p,l+s+d*p,n-c,l+s),t.closePath()}}),lb=ed.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),ub={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},cb={};Ni({line:wf,rect:pd,roundRect:pd,square:pd,circle:Xp,diamond:ab,pin:sb,arrow:lb,triangle:ob},(function(t,e){cb[e]=new t}));var hb=ed.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=uu(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=cb[r];i||(i=cb[r="rect"]),ub[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function db(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function pb(t,e,n,r,i,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?rg(t.slice(8),new Ca(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?ng(t.slice(7),{},new Ca(e,n,r,i),a?"center":"cover"):new hb({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=db,o&&s.setColor(o),s}function fb(t){return Wi(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function gb(t,e){if(null!=t)return Wi(t)||(t=[t,t]),[Au(t[0],e[0])||0,Au(eo(t[1],t[0]),e[1])||0]}function yb(t){return isFinite(t)}function vb(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=yb(a)?a:.5,s=yb(s)?s:.5,l=l>=0&&yb(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=yb(r)?r:0,i=yb(i)?i:1,o=yb(o)?o:0,a=yb(a)?a:0,t.createLinearGradient(r,o,i,a)}(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function mb(t){return parseInt(t,10)}function _b(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||mb(s[r])||mb(t.style[r]))-(mb(s[o])||0)-(mb(s[a])||0)|0}function xb(t){var e,n,r=t.style,i=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:Yi(e)?[e]:Wi(e)?e:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(i=zi(i,(function(t){return t/a})),o/=a)}return[i,o]}var bb=new Eh(!0);function wb(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Sb(t){return"string"==typeof t&&"none"!==t}function Mb(t){var e=t.fill;return null!=e&&"none"!==e}function Ib(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Cb(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Ab(t,e,n){var r=Rc(e.image,e.__image,n);if(Ec(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*xo),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var Tb=["shadowBlur","shadowOffsetX","shadowOffsetY"],kb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Lb(t,e,n,r,i){var o=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){Rb(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?qc.opacity:a}(r||e.blend!==n.blend)&&(o||(Rb(t,i),o=!0),t.globalCompositeOperation=e.blend||qc.blend);for(var s=0;s<Tb.length;s++){var l=Tb[s];(r||e[l]!==n[l])&&(o||(Rb(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(Rb(t,i),o=!0),t.shadowColor=e.shadowColor||qc.shadowColor),o}function Db(t,e,n,r,i){var o=Ob(e,i.inHover),a=r?null:n&&Ob(n,i.inHover)||{};if(o===a)return!1;var s=Lb(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Rb(t,i),s=!0),Sb(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Rb(t,i),s=!0),Sb(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Rb(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Rb(t,i),s=!0),t.lineWidth=l)}for(var u=0;u<kb.length;u++){var c=kb[u],h=c[0];(r||o[h]!==a[h])&&(s||(Rb(t,i),s=!0),t[h]=o[h]||c[1])}return s}function Pb(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function Rb(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Ob(t,e){return e&&t.__hoverStyle||t.style}function Eb(t,e){Nb(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Nb(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,a)||(a&&a.length&&(Rb(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Rb(t,n),t.save(),function(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),Pb(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,h,d=e instanceof ed&&e.autoBatch&&function(t){var e=Mb(t),n=wb(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||(c=i,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(Rb(t,n),Pb(t,e)):d||Rb(t,n);var p=Ob(e,n.inHover);e instanceof ed?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),Db(t,e,u,l,n),d&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,r){var i,o=wb(n),a=Mb(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||bb,h=e.__dirty;if(!r){var d=n.fill,p=n.stroke,f=a&&!!d.colorStops,g=o&&!!p.colorStops,y=a&&!!d.image,v=o&&!!p.image,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(m=h?vb(t,d,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=h?vb(t,p,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),y&&(x=h||!e.__canvasFillPattern?Ab(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=x),v&&(b=h||!e.__canvasStrokePattern?Ab(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),f?t.fillStyle=m:y&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:v&&(b?t.strokeStyle=b:o=!1)}var S,M,I=e.getGlobalScale();c.setScale(I[0],I[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(i=xb(e))[0],M=i[1]);var C=!0;(u||4&h)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),C=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),C&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=M),r||(n.strokeFirst?(o&&Cb(t,n),a&&Ib(t,n)):(a&&Ib(t,n),o&&Cb(t,n))),S&&t.setLineDash([])}(t,e,p,d),d&&(n.batchFill=p.fill||"",n.batchStroke=p.stroke||"")):e instanceof rd?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),Db(t,e,u,l,n),function(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||ui,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(r=xb(e))[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(wb(n)&&t.strokeText(i,n.x,n.y),Mb(n)&&t.fillText(i,n.x,n.y)):(Mb(n)&&t.fillText(i,n.x,n.y),wb(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}(t,e,p)):e instanceof ad?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(t,e,n,r,i){Lb(t,Ob(e,i.inHover),n&&Ob(n,i.inHover),r,i)}(t,e,u,l,n),function(t,e,n){var r=e.__image=Rc(n.image,e.__image,e,e.onload);if(r&&Ec(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),d=s-(c=n.sy);t.drawImage(r,u,c,h,d,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}(t,e,p)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=r.length;o<a;o++){(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Nb(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Nb(t,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),d&&r&&Rb(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var zb=new ib,Bb=new Ss(100),Vb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Fb(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&zb.delete(t);var o=zb.get(t);if(o)return o;var a=Pi(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o=[n],s=!0,l=0;l<Vb.length;++l){var u=a[Vb[l]];if(null!=u&&!Wi(u)&&!Ui(u)&&!Yi(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(i?"-svg":"");var c=Bb.get(e);c&&(i?t.svgElement=c:t.image=c)}var h,d=jb(a.dashArrayX),p=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Yi(t)){var e=Math.ceil(t);return[e,e]}var n=zi(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(a.dashArrayY),f=Gb(a.symbol),g=(x=d,zi(x,(function(t){return Wb(t)}))),y=Wb(p),v=!i&&pi.createCanvas(),m=i&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=Zu(t,g[e]);var r=1;for(e=0,n=f.length;e<n;++e)r=Zu(r,f[e].length);t*=r;var i=y*g.length*f.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var x;v&&(v.width=_.width*n,v.height=_.height*n,h=v.getContext("2d"));(function(){h&&(h.clearRect(0,0,v.width,v.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,v.width,v.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(t<=0)return;var o=-y,s=0,l=0,u=0;for(;o<_.height;){if(s%2==0){for(var c=l/2%f.length,g=0,x=0,b=0;g<2*_.width;){var w=0;for(e=0;e<d[u].length;++e)w+=d[u][e];if(w<=0)break;if(x%2==0){var S=.5*(1-a.symbolSize),M=g+d[u][x]*S,I=o+p[s]*S,C=d[u][x]*a.symbolSize,A=p[s]*a.symbolSize,T=b/2%f[c].length;k(M,I,C,A,f[c][T])}g+=d[u][x],++b,++x===d[u].length&&(x=0)}++u===d.length&&(u=0)}o+=p[s],++l,++s===p.length&&(s=0)}function k(t,e,o,s,l){var u=i?1:n,c=pb(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(c);d&&m.children.push(d)}else Eb(h,c)}})(),s&&Bb.put(e,v||m);t.image=v,t.svgElement=m,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,zb.set(t,s),t.dirty=!1,s}function Gb(t){if(!t||0===t.length)return[["rect"]];if(Ui(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Ui(t[n])){e=!1;break}if(e)return Gb([t]);var r=[];for(n=0;n<t.length;++n)Ui(t[n])?r.push([t[n]]):r.push(t[n]);return r}function jb(t){if(!t||0===t.length)return[[0,0]];if(Yi(t))return[[i=Math.ceil(t),i]];for(var e=!0,n=0;n<t.length;++n)if(!Yi(t[n])){e=!1;break}if(e)return jb([t]);var r=[];for(n=0;n<t.length;++n)if(Yi(t[n])){var i=Math.ceil(t[n]);r.push([i,i])}else{(i=zi(t[n],(function(t){return Math.ceil(t)}))).length%2==1?r.push(i.concat(i)):r.push(i)}return r}function Wb(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var Hb=new Fo,Ub={};var Zb=2e3,Yb=4500,Xb={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:Zb,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:Yb,ARIA:6e3,DECAL:7e3}},qb="__flagInMainProcess",Kb="__pendingUpdate",$b="__needsUpdateStatus",Qb=/^[a-zA-Z0-9_]+$/,Jb="__connectUpdateStatus";function tw(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return nw(this,t,e);this.id}}function ew(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return nw(this,t,e)}}function nw(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Fo.prototype[e].apply(t,n)}var rw,iw,ow,aw,sw,lw,uw,cw,hw,dw,pw,fw,gw,yw,vw,mw,_w,xw,bw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(Fo),ww=bw.prototype;ww.on=ew("on"),ww.off=ew("off");var Sw=function(t){function e(e,n,r){var i=t.call(this,new Ux)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},Ui(n)&&(n=Dw[n]),i._dom=e;r.ssr&&(Su=function(t){var e=kd(t),n=e.dataIndex;if(null!=n){var r=fo();return r.set("series_index",e.seriesIndex),r.set("data_index",n),e.ssrType&&r.set("ssr_type",e.ssrType),r}});var o=i._zr=Iu(e,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:eo(r.useDirtyRect,!1),useCoarsePointer:eo(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=ux(Gi(o.flush,o),17),(n=Ti(n))&&pm(n,!0),i._theme=n,i._locale=function(t){if(Ui(t)){var e=ry[t.toUpperCase()]||{};return t===ty||t===ey?Ti(e):ki(Ti(e),Ti(ry[ny]),!1)}return ki(Ti(t),Ti(ry[ny]),!1)}(r.locale||oy),i._coordSysMgr=new Hv;var a=i._api=vw(i);function s(t,e){return t.__prio-e.__prio}return ja(Lw,s),ja(Tw,s),i._scheduler=new Sx(i,a,Tw,Lw),i._messageCenter=new bw,i._initEvents(),i.resize=Gi(i.resize,i),o.animation.on("frame",i._onframe,i),dw(o,i),pw(o,i),lo(i),i}return a(e,t),e.prototype._onframe=function(){if(!this._disposed){xw(this);var t=this._scheduler;if(this[Kb]){var e=this[Kb].silent;this[qb]=!0;try{rw(this),aw.update.call(this,null,this[Kb].updateParams)}catch(t){throw this[qb]=!1,this[Kb]=null,t}this._zr.flush(),this[qb]=!1,this[Kb]=null,cw.call(this,e),hw.call(this,e)}else if(t.unfinished){var n=1,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),lw(this,r),t.performVisualTasks(r),yw(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[qb])if(this._disposed)this.id;else{var r,i,o;if(Xi(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[qb]=!0,!this._model||e){var a=new Zv(this._api),s=this._theme,l=this._model=new zv;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},kw);var u={seriesTransition:o,optionChanged:!0};if(n)this[Kb]={silent:r,updateParams:u},this[qb]=!1,this.getZr().wakeUp();else{try{rw(this),aw.update.call(this,null,u)}catch(t){throw this[Kb]=null,this[qb]=!1,t}this._ssr||this._zr.flush(),this[Kb]=null,this[qb]=!1,cw.call(this,r),hw.call(this,r)}}},e.prototype.setTheme=function(){},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||si.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(si.svgSupported){var t=this._zr;return Ni(t.storage.getDisplayList(),(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,r=[],i=this;Ni(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Ni(r,(function(t){t.group.ignore=!1})),o}this.id},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(Ow[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Ni(Rw,(function(o,h){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Ti(t)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),c.push({dom:d,left:p.left,top:p.top})}}));var d=(l*=h)-(a*=h),p=(u*=h)-(s*=h),f=pi.createCanvas(),g=Iu(f,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:p}),e){var y="";return Ni(c,(function(t){var e=t.left-a,n=t.top-s;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new pd({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),Ni(c,(function(t){var e=new ad({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}this.id},e.prototype.convertToPixel=function(t,e){return sw(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return sw(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return Ni(hc(this._model,t),(function(t,r){r.indexOf("Models")>=0&&Ni(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}}),this)}),this),!!n;this.id},e.prototype.getVisual=function(t,e){var n=hc(this._model,t,{defaultMainType:"series"}),r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?Kx(r,i,e):$x(r,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n,r=this;Ni(Iw,(function(t){var e=function(e){var n,i=r.getModel(),o=e.target;if("globalout"===t?n={}:o&&eb(o,(function(t){var e=kd(t);if(e&&null!=e.dataIndex){var r=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return n=r&&r.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=Di({},e.eventData),!0}),!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var l=a&&null!=s&&i.getComponent(a,s),u=l&&r["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=e,n.type=t,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},r.trigger(t,n)}};e.zrEventfulCallAtLast=!0,r._zr.on(t,e,r)})),Ni(Aw,(function(t,e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),Ni(["selectchanged"],(function(t){r._messageCenter.on(t,(function(e){this.trigger(t,e)}),r)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(tb("map","selectchanged",e,r,t),tb("pie","selectchanged",e,r,t)):"select"===t.fromAction?(tb("map","selected",e,r,t),tb("pie","selected",e,r,t)):"unselect"===t.fromAction&&(tb("map","unselected",e,r,t),tb("pie","unselected",e,r,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&yc(this.getDom(),Nw,"");var t=this,e=t._api,n=t._model;Ni(t._componentsViews,(function(t){t.dispose(n,e)})),Ni(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Rw[t.id]}},e.prototype.resize=function(t){if(!this[qb])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[Kb]&&(null==r&&(r=this[Kb].silent),n=!0,this[Kb]=null),this[qb]=!0;try{n&&rw(this),aw.update.call(this,{type:"resize",animation:Di({duration:0},t&&t.animation)})}catch(t){throw this[qb]=!1,t}this[qb]=!1,cw.call(this,r),hw.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)this.id;else if(Xi(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Pw[t]){var n=Pw[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Di({},t);return e.type=Aw[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)this.id;else if(Xi(e)||(e={silent:!!e}),Cw[t.type]&&this._model)if(this[qb])this._pendingActions.push(t);else{var n=e.silent;uw.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&si.browser.weChat&&this._throttledZrFlush(),cw.call(this,n),hw.call(this,n)}},e.prototype.updateLabelLayout=function(){Hb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return r(t,n,i,-1/0),!0}))}}function r(t,e,n,i){var o=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(o&&(o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function i(t,e){e.eachRendered((function(t){if(!Uf(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function o(t,n){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(Uf(t))return;if(t instanceof ed&&function(t){var e=Rd(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}rw=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),iw(t,!0),iw(t,!1),e.plan()},iw=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=bc(t.type);(c=new(e?K_.getClass(h.main,h.sub):tx.getClass(h.sub))).init(n,s),o[u]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},ow=function(t,e,n,r,i){var o=t._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=fo(),Ni($u(u),(function(t){var e=oc(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){if(!(l&&null!=l.get(e.id)))if(Cp(n))if(e instanceof j_)n.type!==Bd||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=lc(i,e);o=(Wi(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=kd(a);dp(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&dp(r,c,h,n)}}}(e,n,t._api);else{var r=fp(e.mainType,e.componentIndex,n.name,t._api),i=r.focusSelf,o=r.dispatchers;n.type===Bd&&i&&!n.notBlur&&pp(e.mainType,e.componentIndex,t._api),o&&Ni(o,(function(t){n.type===Bd?ip(t):op(t)}))}else Ip(n)&&e instanceof j_&&(!function(t,e){if(Ip(e)){var n=e.dataType,r=lc(t.getData(n),e);Wi(r)||(r=[r]),t[e.type===jd?"toggleSelect":e.type===Fd?"select":"unselect"](r,n)}}(e,n,t._api),gp(e),_w(t))}),t),o&&o.eachComponent(s,(function(e){l&&null!=l.get(e.id)||c(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Ni([].concat(t._componentsViews).concat(t._chartsViews),c);function c(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},aw={prepareAndUpdate:function(t){rw(this),aw.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),lw(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),fw(this,r,i,e,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Hb.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=fo();r.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,r,i,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:a}),yw(this,r,i,e,{},a),Hb.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),tx.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),fw(this,n,this._api,e,{}),Hb.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries((function(t){t.getData().clearAllVisual()})),tx.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent((function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}})),r.eachSeries((function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)})),Hb.trigger("afterupdate",r,this._api))},updateLayout:function(t){aw.update.call(this,t)}},sw=function(t,e,n,r){if(t._disposed)t.id;else for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=hc(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[e](o,s,r)))return i}},lw=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},uw=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=Cw[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&bc(l[0]);this[qb]=!0;var h=[t],d=!1;t.batch&&(d=!0,h=zi(t.batch,(function(e){return(e=Pi(Di({},e),t)).batch=null,e})));var p,f=[],g=Ip(t),y=Cp(t);if(y&&hp(this._api),Ni(h,(function(e){if((p=(p=a.action(e,n._model,n._api))||Di({},e)).type=s.event||p.type,f.push(p),y){var r=dc(t),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";ow(n,u,e,o),_w(n)}else g?(ow(n,u,e,"series"),_w(n)):c&&ow(n,u,e,c.main,c.sub)})),"none"!==u&&!y&&!g&&!c)try{this[Kb]?(rw(this),aw.update.call(this,t),this[Kb]=null):aw[u].call(this,t)}catch(t){throw this[qb]=!1,t}if(p=d?{type:s.event||i,escapeConnect:o,batch:f}:f[0],this[qb]=!1,!e){var v=this._messageCenter;if(v.trigger(p.type,p),g){var m={type:"selectchanged",escapeConnect:o,selected:yp(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};v.trigger(m.type,m)}}},cw=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();uw.call(this,n,t)}},hw=function(t){!t&&this.trigger("updated")},dw=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Kb]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},pw=function(t,e){t.on("mouseover",(function(t){var n=eb(t.target,Mp);n&&(!function(t,e,n){var r=kd(t),i=fp(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&pp(r.componentMainType,r.componentIndex,n),Ni(o,(function(t){return np(t,e)}))):(dp(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&pp(r.componentMainType,r.componentIndex,n),np(t,e))}(n,t,e._api),_w(e))})).on("mouseout",(function(t){var n=eb(t.target,Mp);n&&(!function(t,e,n){hp(n);var r=kd(t),i=fp(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Ni(i,(function(t){return rp(t,e)})):rp(t,e)}(n,t,e._api),_w(e))})).on("click",(function(t){var n=eb(t.target,(function(t){return null!=kd(t).dataIndex}),!0);if(n){var r=n.selected?"unselect":"select",i=kd(n);e._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}}))},fw=function(t,e,n,r,i){!function(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);ja(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Ni(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}(e),gw(t,e,n,r,i),Ni(t._chartsViews,(function(t){t.__alive=!1})),yw(t,e,n,r,i),Ni(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},gw=function(t,e,r,a,s,l){Ni(l||t._componentsViews,(function(t){var s=t.__model;i(s,t),t.render(s,e,r,a),n(s,t),o(s,t)}))},yw=function(t,e,r,a,s,l){var u=t._scheduler;s=Di(s||{},{updatedSeries:e.getSeries()}),Hb.trigger("series:beforeupdate",e,r,s);var c=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,a),i(e,n),l&&l.get(e.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}(e,n),gp(e)})),u.unfinished=c||u.unfinished,Hb.trigger("series:layoutlabels",e,r,s),Hb.trigger("series:transition",e,r,s),e.eachSeries((function(e){var r=t._chartsMap[e.__viewId];n(e,r),o(e,r)})),function(t,e){var n=t._zr,r=n.storage,i=0;r.traverse((function(t){t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!si.node&&!si.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),Hb.trigger("series:afterupdate",e,r,s)},_w=function(t){t[$b]=!0,t.getZr().wakeUp()},xw=function(t){t[$b]&&(t.getZr().storage.traverse((function(t){Uf(t)||e(t)})),t[$b]=!1)},vw=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return a(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){ip(e,n),_w(t)},n.prototype.leaveEmphasis=function(e,n){op(e,n),_w(t)},n.prototype.enterBlur=function(e){ap(e),_w(t)},n.prototype.leaveBlur=function(e){sp(e),_w(t)},n.prototype.enterSelect=function(e){lp(e),_w(t)},n.prototype.leaveSelect=function(e){up(e),_w(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(jv))(t)},mw=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][Jb]=e}}Ni(Aw,(function(n,r){t._messageCenter.on(r,(function(n){if(Ow[t.group]&&0!==t[Jb]){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];Ni(Rw,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,0),Ni(i,(function(t){1!==t[Jb]&&t.dispatchAction(r)})),e(i,2)}}))}))}}(),e}(Fo),Mw=Sw.prototype;Mw.on=tw("on"),Mw.off=tw("off"),Mw.one=function(t,e,n){var r=this;this.on.call(this,t,(function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)}),n)};var Iw=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Cw={},Aw={},Tw=[],kw=[],Lw=[],Dw={},Pw={},Rw={},Ow={},Ew=+new Date-0,Nw="_echarts_instance_";function zw(t,e,n){var r=!(n&&n.ssr);if(r){var i=function(t){return Rw[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,Nw)]}(t);if(i)return i}var o=new Sw(t,e,n);return o.id="ec_"+Ew++,Rw[o.id]=o,r&&yc(t,Nw,o.id),mw(o),Hb.trigger("afterinit",o),o}function Bw(t,e){Dw[t]=e}function Vw(t){Ri(kw,t)<0&&kw.push(t)}function Fw(t,e){Uw(Tw,t,e,2e3)}function Gw(t,e){Hb.on(t,e)}function jw(t,e,n){Hi(e)&&(n=e,e="");var r=Xi(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,Aw[e]||(oo(Qb.test(r)&&Qb.test(e)),Cw[r]||(Cw[r]={action:n,actionInfo:t}),Aw[e]=r)}function Ww(t,e){Uw(Lw,t,e,3e3,"visual")}var Hw=[];function Uw(t,e,n,r,i){if((Hi(e)||Xi(e))&&(n=e,e=r),!(Ri(Hw,n)>=0)){Hw.push(n);var o=Sx.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function Zw(t,e){Pw[t]=e}var Yw=function(t){var e=(t=Ti(t)).type;e||Yu("");var n=e.split(":");2!==n.length&&Yu("");var r=!1;"echarts"===n[0]&&(e=n[1],r=!0),t.__isBuiltIn=r,o_.set(e,t)};Ww(Zb,vx),Ww(Yb,_x),Ww(Yb,xx),Ww(Zb,Xx),Ww(Yb,qx),Ww(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(t){var n=r.getItemVisual(t,"decal");n&&(r.ensureUniqueItemVisual(t,"style").decal=Fb(n,e))}));var i=r.getVisual("decal");if(i)r.getVisual("style").decal=Fb(i,e)}}))})),Vw(pm),Fw(900,(function(t){var e=fo();t.eachSeries((function(t){var n=t.get("stack");if(n){var r=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;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),e.each(fm)})),Zw("default",(function(t,e){Pi(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new xu,r=new pd({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new yd({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new pd({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new Tf({shape:{startAngle:-bx/2,endAngle:-bx/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*bx/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*bx/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),jw({type:Bd,event:Bd,update:Bd},_o),jw({type:Vd,event:Vd,update:Vd},_o),jw({type:Fd,event:Fd,update:Fd},_o),jw({type:Gd,event:Gd,update:Gd},_o),jw({type:jd,event:jd,update:jd},_o),Bw("light",Vx),Bw("dark",Hx);var Xw=[],qw={registerPreprocessor:Vw,registerProcessor:Fw,registerPostInit:function(t){Gw("afterinit",t)},registerPostUpdate:function(t){Gw("afterupdate",t)},registerUpdateLifecycle:Gw,registerAction:jw,registerCoordinateSystem:function(t,e){Hv.register(t,e)},registerLayout:function(t,e){Uw(Lw,t,e,1e3,"layout")},registerVisual:Ww,registerTransform:Yw,registerLoading:Zw,registerMap:function(t,e,n){var r=Ub["registerMap"];r&&r(t,e,n)},registerImpl:function(t,e){Ub[t]=e},PRIORITY:Xb,ComponentModel:ov,ComponentView:K_,SeriesModel:j_,ChartView:tx,registerComponentModel:function(t){ov.registerClass(t)},registerComponentView:function(t){K_.registerClass(t)},registerSeriesModel:function(t){j_.registerClass(t)},registerChartView:function(t){tx.registerClass(t)},registerSubTypeDefaulter:function(t,e){ov.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,bu[t]=n}};function Kw(t){Wi(t)?Ni(t,(function(t){Kw(t)})):Ri(Xw,t)>=0||(Xw.push(t),Hi(t)&&(t={install:t}),t.install(qw))}function $w(t){return null==t?0:t.length||1}function Qw(t){return t}var Jw=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Qw,this._newKeyGetter=r||Qw,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=$w(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=$w(l),h=$w(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=$w(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=$w(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),tS=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function eS(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function nS(t){return"category"===t?"ordinal":"time"===t?"time":"float"}var rS=function(t){this.otherDims={},null!=t&&Di(this,t)},iS=uc(),oS={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},aS=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=uS(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return eo(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Am(this.source),n=!cS(t),r="",i=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=oS[l]||"f",u&&(r+=u.uid),r+="$"}var d=this.source;return{dimensions:i,hash:[d.seriesLayoutBy,d.startIndex,r].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function sS(t){return t instanceof aS}function lS(t){for(var e=fo(),n=0;n<(t||[]).length;n++){var r=t[n],i=Xi(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function uS(t){var e=iS(t);return e.dimNameMap||(e.dimNameMap=lS(t.dimensionsDefine))}function cS(t){return t>30}var hS,dS,pS,fS,gS,yS,vS,mS=Xi,_S=zi,xS="undefined"==typeof Int32Array?Array:Int32Array,bS=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],wS=["_approximateExtent"],SS=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r=!1;sS(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=Ui(c)?new rS({name:c}):c instanceof rS?c:new rS(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(d),i[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(a[d]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),r&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=fo();Ni(o,(function(t){f.set(i[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(Yi(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof v_&&(r=t),!r){var o=this.dimensions,a=bm(t)||Ei(t)?new Tm(t,o.length):t;r=new v_;var s=_S(o,(function(t){return{type:i._dimInfos[t].type,property:t}}));r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(t,e){var n={},r=n.encode={},i=fo(),o=[],a=[],s={};Ni(t.dimensions,(function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){var c=l.coordDimIndex;eS(r,u)[c]=e,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),eS(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}uv.each((function(t,e){var n=eS(r,e),i=l.otherDims[e];null!=i&&!1!==i&&(n[i]=l.name)}))}));var l=[],u={};i.each((function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=zi(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var h=r.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new tS(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&vS(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==fv&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===cv&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&ec(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=oc(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=oc(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)vS(this,a);hS(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){mS(t)?Di(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=pS(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return dS(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return Wi(t)?r.getValues(_S(t,(function(t){return n._getStoreDimIndex(t)})),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],r=n&&n[e];return null==r||isNaN(r)?-1:r},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){Hi(t)&&(n=e,e=t,t=[]);var r=n||this,i=_S(fS(t),this._getStoreDimIndex,this);this._store.each(i,r?Gi(e,r):e)},t.prototype.filterSelf=function(t,e,n){Hi(t)&&(n=e,e=t,t=[]);var r=n||this,i=_S(fS(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?Gi(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={};return Ni(Fi(t),(function(r){var i=e._getStoreDimIndex(r);n[i]=t[r]})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){Hi(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=_S(fS(t),this._getStoreDimIndex,this),a=yS(this);return a._store=this._store.map(o,i?Gi(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this,o=_S(fS(t),this._getStoreDimIndex,this);this._store.modify(o,i?Gi(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=yS(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.minmaxDownSample=function(t,e){var n=yS(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=yS(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Kg(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new Jw(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return dS(t,e)}),(function(t){return dS(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},mS(t)?Di(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(Wi(i=this.getVisual(e))?i=i.slice():mS(i)&&(i=Di({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,mS(e)?Di(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){mS(t)?Di(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?Di(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Ld(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){Ni(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:_S(this.dimensions,this._getDimInfo,this),this.hostModel)),gS(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];Hi(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(ro(arguments)))})},t.internalField=(hS=function(t){var e=t._invertedIndicesMap;Ni(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new xS(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},pS=function(t,e,n){return oc(t._getCategory(e,n),null)},dS=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=pS(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},fS=function(t){return Wi(t)||(t=null!=t?[t]:[]),t},yS=function(e){var n=new t(e._schema?e._schema:_S(e.dimensions,e._getDimInfo,e),e.hostModel);return gS(n,e),n},gS=function(t,e){Ni(bS.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,Ni(wS,(function(n){t[n]=Ti(e[n])})),t._calculationInfo=Di({},e._calculationInfo)},void(vS=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=pS(t,i,e)),null==s&&null!=o&&(r[e]=s=pS(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}})),t}();function MS(t,e){bm(t)||(t=Sm(t));var n=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=fo(),o=[],a=function(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Ni(e,(function(t){var e;Xi(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&cS(a),l=r===t.dimensionsDefine,u=l?uS(t):lS(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=fo(c),d=new d_(a),p=0;p<d.length;p++)d[p]=-1;function f(t){var e=d[t];if(e<0){var n=r[t],i=Xi(n)?n:{name:n},a=new rS,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return d[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(p=0;p<a;p++)f(p);h.each((function(t,e){var n=$u(t).slice();if(1===n.length&&!Ui(n[0])&&n[0]<0)h.set(e,!1);else{var r=h.set(e,[]);Ni(n,(function(t,n){var i=Ui(t)?u.get(t):t;null!=i&&i<a&&(r[n]=i,y(f(i),e,n))}))}}));var g=0;function y(t,e,n){null!=uv.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,i.set(e,!0))}Ni(n,(function(t){var e,n,r,i;if(Ui(t))e=t,i={};else{e=(i=t).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=Di({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=$u(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}Ni(s,(function(t,o){var a=f(t);if(l&&null!=i.type&&(a.type=i.type),y(Pi(a,i),e,o),null==a.name&&n){var s=n[o];!Xi(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Pi(a.otherDims,r)}))}}));var v=e.generateCoord,m=e.generateCoordCount,_=null!=m;m=v?m||1:0;var x=v||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)Ni(o,(function(t){b(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=IS(x,i,_),S.coordDimIndex=0,(!v||m<=0)&&(S.isExtraCoord=!0),m--),b(S),null!=S.type||Iv(t,w)!==mv&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=fo(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}(o),new aS({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function IS(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var CS=function(t){this.coordSysDims=[],this.axisMap=fo(),this.categoryAxisMap=fo(),this.coordSysName=t};var AS={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",pc).models[0],o=t.getReferringComponents("yAxis",pc).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),TS(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),TS(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",pc).models[0];e.coordSysDims=["single"],n.set("single",i),TS(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",pc).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),TS(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),TS(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Ni(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),TS(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function TS(t){return"category"===t.get("type")}function kS(t,e,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!sS(t.schema)}(e)?(i=e.schema,r=i.dimensions,o=e.store):r=e;var l,u,c,h,d=!(!t||!t.get("stack"));if(Ni(r,(function(t,e){Ui(t)&&(r[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;Ni(r,(function(t){t.coordDim===p&&g++}));var y={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},v={name:h,coordDim:h,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(y.storeDimIndex=o.ensureCalculationDimension(h,f),v.storeDimIndex=o.ensureCalculationDimension(c,f)),i.appendCalculationDimension(y),i.appendCalculationDimension(v)):(r.push(y),r.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function LS(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function DS(t,e){return LS(t,e)?t.getCalculationInfo("stackResultDimension"):e}function PS(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=Sm(t)):o=(r=i.getSource()).sourceFormat===cv;var a=function(t){var e=t.get("coordinateSystem"),n=new CS(e),r=AS[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,r=t.get("coordinateSystem"),i=Hv.get(r);return e&&e.coordSysDims&&(n=zi(e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=nS(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=Hi(l)?l:l?ji(wv,s,e):null,c=MS(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var r,i;return n&&Ni(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,a),d=o?null:i.getSharedDataStore(c),p=kS(e,{schema:c,store:d}),f=new SS(c,e);f.setCalculationInfo(p);var g=null!=h&&function(t){if(t.sourceFormat===cv){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!Wi(tc(e))}}(r)?function(t,e,n,r){return r===h?n:this.defaultDimValueGetter(t,e,n,r)}:null;return f.hasItemOption=!1,f.initData(o?r:d,null,g),f}var RS=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Ac(RS);var OS=0,ES=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++OS}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&zi(r,NS);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Ui(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=fo(this.categories))},t}();function NS(t){return Xi(t)&&null!=t.value?t.value:t+""}function zS(t){return"interval"===t.type||"log"===t.type}function BS(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=Vu(o/e);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=FS(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),GS(t,0,e),GS(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(i.niceTickExtent=[Tu(Math.ceil(t[0]/a)*a,s),Tu(Math.floor(t[1]/a)*a,s)],t),i}function VS(t){var e=Math.pow(10,Bu(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Tu(n*e)}function FS(t){return Lu(t)+2}function GS(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function jS(t,e){return t>=e[0]&&t<=e[1]}function WS(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function HS(t,e){return t*(e[1]-e[0])+e[0]}var US=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new ES({})),Wi(r)&&(r=new ES({categories:zi(r,(function(t){return Xi(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return a(e,t),e.prototype.parse=function(t){return null==t?NaN:Ui(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return jS(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return WS(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(HS(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(RS);RS.registerClass(US);var ZS=Tu,YS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return a(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return jS(t,this._extent)},e.prototype.normalize=function(t){return WS(t,this._extent)},e.prototype.scale=function(t){return HS(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=FS(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;n[0]<r[0]&&(t?o.push({value:ZS(r[0]-e,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=ZS(a+e,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(t?o.push({value:ZS(s+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<e.length;i++){for(var o=e[i],a=e[i-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var c=ZS(a.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Lu(t.value)||0:"auto"===n&&(n=this._intervalPrecision),By(ZS(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=BS(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=ZS(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=ZS(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(RS);RS.registerClass(YS);var XS="undefined"!=typeof Float32Array,qS=XS?Float32Array:Array;function KS(t){return Wi(t)?XS?new Float32Array(t):t:new qS(t)}var $S="__ec_stack_";function QS(t){return t.get("stack")||$S+t.seriesIndex}function JS(t){return t.dim+t.index}function tM(t,e){var n=[];return e.eachSeriesByType(t,(function(t){oM(t)&&n.push(t)})),n}function eM(t){var e=function(t){var e={};Ni(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[i]?e[i].push(u):e[i]=[u]}}));var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort((function(t,e){return t-e}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(t),n=[];return Ni(t,(function(t){var r,i=t.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=e[a],l=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);r=s?l/c*s:l}else{var h=t.getData();r=Math.abs(o[1]-o[0])/h.count()}var d=Au(t.get("barWidth"),r),p=Au(t.get("barMaxWidth"),r),f=Au(t.get("barMinWidth")||(aM(t)?.5:1),r),g=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:d,barMaxWidth:p,barMinWidth:f,barGap:g,barCategoryGap:y,axisKey:JS(i),stackId:QS(t)})})),nM(n)}function nM(t){var e={};Ni(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return Ni(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=Fi(r).length;o=Math.max(35-4*a,15)+"%"}var s=Au(o,i),l=Au(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Ni(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--}else{var r=h;e&&e<r&&(r=Math.min(e,u)),n&&n>r&&(r=n),r!==h&&(t.width=r,u-=r+l*r,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,p=0;Ni(r,(function(t,e){t.width||(t.width=h),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;Ni(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function rM(t,e){var n=tM(t,e),r=eM(n);Ni(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=QS(t),o=r[JS(n)][i],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function iM(t){return{seriesType:t,plan:$_(),reset:function(t){if(oM(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=LS(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),d=function(t,e){var n=e.model.get("startValue");n||(n=0);return e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))}(0,i),p=aM(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){for(var r,i=t.count,l=p&&KS(3*i),u=p&&s&&KS(3*i),m=p&&KS(i),_=n.master.getRect(),x=h?_.width:_.height,b=e.getStore(),w=0;null!=(r=t.next());){var S=b.get(c?g:o,r),M=b.get(a,r),I=d,C=void 0;c&&(C=+S-b.get(o,r));var A=void 0,T=void 0,k=void 0,L=void 0;if(h){var D=n.dataToPoint([S,M]);if(c)I=n.dataToPoint([C,M])[0];A=I,T=D[1]+v,k=D[0]-I,L=y,Math.abs(k)<f&&(k=(k<0?-1:1)*f)}else{D=n.dataToPoint([M,S]);if(c)I=n.dataToPoint([M,C])[1];A=D[0]+v,T=I,k=y,L=D[1]-I,Math.abs(L)<f&&(L=(L<=0?-1:1)*f)}p?(l[w]=A,l[w+1]=T,l[w+2]=h?k:L,u&&(u[w]=h?_.x:A,u[w+1]=h?T:_.y,u[w+2]=x),m[r]=r):e.setItemLayout(r,{x:A,y:T,width:k,height:L}),w+=3}p&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}function oM(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function aM(t){return t.pipelineContext&&t.pipelineContext.large}var sM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return a(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return by(t.value,gy[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(_y(this._minLevelUnit))]||gy.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC");return function(t,e,n,r,i){var o=null;if(Ui(n))o=n;else if(Hi(n))o=n(t.value,e,{level:t.level});else{var a=Di({},py);if(t.level>0)for(var s=0;s<yy.length;++s)a[yy[s]]="{primary|"+a[yy[s]]+"}";var l=n?!1===n.inherit?n:Pi(n,a):a,u=wy(t.value,i);if(l[u])o=l[u];else if(l.inherit){for(s=vy.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(Wi(o)){var c=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[c=Math.min(c,o.length-1)]}}return by(new Date(t.value),o,i,r)}(t,e,n,this.getSetting("locale"),r)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),i=function(t,e,n,r){var i=1e4,o=vy,a=0;function s(t,e,n,i,o,a,s){for(var l=new Date(e),u=e,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,i,o){var a=[],l=!i.length;if(!function(t,e,n,r){var i=zu(e),o=zu(n),a=function(t){return Sy(i,t,r)===Sy(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")},p=function(){return d()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return p()}}(_y(t),r[0],r[1],n)){l&&(i=[{value:fM(new Date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,h=i[u+1].value;if(c!==h){var d=void 0,p=void 0,f=void 0,g=!1;switch(t){case"year":d=Math.max(1,Math.round(e/hy/365)),p=My(n),f=Dy(n);break;case"half-year":case"quarter":case"month":d=cM(e),p=Iy(n),f=Py(n);break;case"week":case"half-week":case"day":d=uM(e),p=Cy(n),f=Ry(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=hM(e),p=Ay(n),f=Oy(n);break;case"minute":d=dM(e,!0),p=Ty(n),f=Ey(n);break;case"second":d=dM(e,!1),p=ky(n),f=Ny(n);break;case"millisecond":d=pM(e),p=Ly(n),f=zy(n)}s(d,c,h,p,f,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,d=0,p=0;p<o.length&&a++<i;++p){var f=_y(o[p]);if(xy(o[p]))if(l(o[p],u[u.length-1]||[],c),f!==(o[p+1]?_y(o[p+1]):null)){if(c.length){d=h,c.sort((function(t,e){return t.value-e.value}));for(var g=[],y=0;y<c.length;++y){var v=c[y].value;0!==y&&c[y-1].value===v||(g.push(c[y]),v>=r[0]&&v<=r[1]&&h++)}var m=(r[1]-r[0])/e;if(h>1.5*m&&d>m/1.5)break;if(u.push(g),h>m||t===o[p])break}c=[]}}var _=Vi(zi(u,(function(t){return Vi(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),x=[],b=_.length-1;for(p=0;p<_.length;++p)for(var w=_[p],S=0;S<w.length;++S)x.push({value:w[S].value,level:b-p});x.sort((function(t,e){return t.value-e.value}));var M=[];for(p=0;p<x.length;++p)0!==p&&x[p].value===x[p-1].value||M.push(x[p]);return M}(this._minLevelUnit,this._approxInterval,r,e);return(n=n.concat(i)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=hy,e[1]+=hy),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-hy}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=lM.length,a=Math.min(function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n}(lM,this._approxInterval,0,o),o-1);this._interval=lM[a][1],this._minLevelUnit=lM[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Yi(t)?t:+zu(t)},e.prototype.contain=function(t){return jS(this.parse(t),this._extent)},e.prototype.normalize=function(t){return WS(this.parse(t),this._extent)},e.prototype.scale=function(t){return HS(t,this._extent)},e.type="time",e}(YS),lM=[["second",ly],["minute",uy],["hour",cy],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",dy/2],["year",dy]];function uM(t,e){return(t/=hy)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function cM(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function hM(t){return(t/=cy)>12?12:t>6?6:t>3.5?4:t>2?2:1}function dM(t,e){return(t/=e?uy:ly)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function pM(t){return Vu(t)}function fM(t,e,n){var r=new Date(t);switch(_y(e)){case"year":case"month":r[Py(n)](0);case"day":r[Ry(n)](1);case"hour":r[Oy(n)](0);case"minute":r[Ey(n)](0);case"second":r[Ny(n)](0),r[zy(n)](0)}return r.getTime()}RS.registerClass(sM);var gM=RS.prototype,yM=YS.prototype,vM=Tu,mM=Math.floor,_M=Math.ceil,xM=Math.pow,bM=Math.log,wM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new YS,e._interval=0,e}return a(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent();return zi(yM.getTicks.call(this,t),(function(t){var e=t.value,i=Tu(xM(this.base,e));return i=e===n[0]&&this._fixMin?MM(i,r[0]):i,{value:i=e===n[1]&&this._fixMax?MM(i,r[1]):i}}),this)},e.prototype.setExtent=function(t,e){var n=bM(this.base);t=bM(Math.max(0,t))/n,e=bM(Math.max(0,e))/n,yM.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=gM.getExtent.call(this);e[0]=xM(t,e[0]),e[1]=xM(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=MM(e[0],n[0])),this._fixMax&&(e[1]=MM(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=bM(t[0])/bM(e),t[1]=bM(t[1])/bM(e),gM.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var r,i=(r=n,Math.pow(10,Bu(r)));for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[Tu(_M(e[0]/i)*i),Tu(mM(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){yM.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 jS(t=bM(t)/bM(this.base),this._extent)},e.prototype.normalize=function(t){return WS(t=bM(t)/bM(this.base),this._extent)},e.prototype.scale=function(t){return t=HS(t,this._extent),xM(this.base,t)},e.type="log",e}(RS),SM=wM.prototype;function MM(t,e){return vM(t,Lu(e))}SM.getMinorTicks=yM.getMinorTicks,SM.getLabel=yM.getLabel,RS.registerClass(wM);var IM=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);null==i&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;Hi(o)?this._modelMinNum=kM(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=kM(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(Hi(a)?this._modelMaxNum=kM(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=kM(t,a)),r)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=Wi(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[lu(l[0],1),lu(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?r?0:NaN:e-i[0]*o),null==s&&(s=t?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=Ji(a)||Ji(s)||t&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[AM[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[CM[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),CM={min:"_determinedMin",max:"_determinedMax"},AM={min:"_dataMin",max:"_dataMax"};function TM(t,e,n){var r=t.rawExtentInfo;return r||(r=new IM(t,e,n),t.rawExtentInfo=r,r)}function kM(t,e){return null==e?null:Ji(e)?NaN:t.parse(e)}function LM(t,e){var n=t.type,r=TM(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=tM("bar",a),l=!1;if(Ni(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=eM(s),c=function(t,e,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=function(t,e){if(t&&e)return t[JS(e)]}(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;Ni(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;Ni(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return e+=h*(l/u),t-=h*(s/u),{min:t,max:e}}(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function DM(t,e){var n=e,r=LM(t,n),i=r.extent,o=n.get("splitNumber");t instanceof wM&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function PM(t,e){if(e=e||t.get("type"))switch(e){case"category":return new US({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new sM({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(RS.getClass(e)||YS)}}function RM(t){var e,n,r=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=r,function(e,r){return t.scale.getFormattedLabel(e,r,n)}):Ui(r)?function(e){return function(n){var r=t.scale.getLabel(n);return e.replace("{value}",null!=r?r:"")}}(r):Hi(r)?(e=r,function(n,r){return null!=i&&(r=n.value-i),e(OM(t,n),r,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function OM(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function EM(t,e){var n=e*Math.PI/180,r=t.width,i=t.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new Ca(t.x,t.y,o,a)}function NM(t){var e=t.get("interval");return null==e?"auto":e}function zM(t){return"category"===t.type&&0===NM(t.getLabelModel())}function BM(t,e){var n={};return Ni(t.mapDimensionsAll(e),(function(e){n[DS(t,e)]=!0})),Fi(n)}var VM=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();function FM(t,e){return Math.abs(t-e)<1e-8}function GM(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];r+=Wh(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return FM(i[0],s[0])&&FM(i[1],s[1])||(r+=Wh(i[0],i[1],s[0],s[1],e,n)),0!==r}var jM=[];function WM(t,e){for(var n=0;n<t.length;n++)Eo(t[n],t[n],e)}function HM(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(No(e,e,o),zo(n,n,o))}}var UM=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),ZM=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},YM=function(t){this.type="linestring",this.points=t},XM=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return a(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],o=i.exterior,a=o&&o.length;a>n&&(t=i,n=a)}if(t)return function(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0];return Ni(this.geometries,(function(e){"polygon"===e.type?HM(e.exterior,n,r,t):Ni(e.points,(function(e){HM(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new Ca(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(GM(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(GM(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new Ca(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(WM(c.exterior,s),Ni(c.interiors,(function(t){WM(t,s)}))):Ni(c.points,(function(t){WM(t,s)}))}(i=this._rect).copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(UM),qM=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return a(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=ca(jM),i=t;i&&!i.isGeoSVGGraphicRoot;)da(r,i.getLocalTransform(),r),i=i.parent;return ya(r,r),Eo(n,n,r),n},e}(UM);function KM(t,e,n){for(var r=0;r<t.length;r++)t[r]=$M(t[r],e[r],n)}function $M(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),i=s+=i,o=l+=o,r.push([s/n,l/n])}return r}function QM(t,e){return zi(Vi((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),Ni(e.features,(function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=$M(i,r,n);break;case"Polygon":case"MultiLineString":KM(i,r,n);break;case"MultiPolygon":Ni(i,(function(t,e){return KM(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}(t)).features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new ZM(o[0],o.slice(1)));break;case"MultiPolygon":Ni(r.coordinates,(function(t){t[0]&&i.push(new ZM(t[0],t.slice(1)))}));break;case"LineString":i.push(new YM([r.coordinates]));break;case"MultiLineString":i.push(new YM(r.coordinates))}var a=new XM(n[e||"name"],i,n.cp);return a.properties=n,a}))}var JM=uc();function tI(t,e){var n=zi(e,(function(e){return t.scale.parse(e)}));return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function eI(t){var e=t.getLabelModel().get("customValues");if(e){var n=RM(t),r=t.scale.getExtent();return{labels:zi(Vi(tI(t,e),(function(t){return t>=r[0]&&t<=r[1]})),(function(e){var r={value:e};return{formattedLabel:n(r),rawLabel:t.scale.getLabel(r),tickValue:e}}))}}return"category"===t.type?function(t){var e=t.getLabelModel(),n=rI(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=RM(t);return{labels:zi(e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function nI(t,e){var n=t.getTickModel().get("customValues");if(n){var r=t.scale.getExtent();return{ticks:Vi(tI(t,n),(function(t){return t>=r[0]&&t<=r[1]}))}}return"category"===t.type?function(t,e){var n,r,i=iI(t,"ticks"),o=NM(e),a=oI(i,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(Hi(o))n=lI(t,o,!0);else if("auto"===o){var s=rI(t,t.getLabelModel());r=s.labelCategoryInterval,n=zi(s.labels,(function(t){return t.tickValue}))}else n=sI(t,r=o,!0);return aI(i,o,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:zi(t.scale.getTicks(),(function(t){return t.value}))}}function rI(t,e){var n,r,i=iI(t,"labels"),o=NM(e),a=oI(i,o);return a||(Hi(o)?n=lI(t,o):(r="auto"===o?function(t){var e=JM(t).autoInterval;return null!=e?e:JM(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=sI(t,r)),aI(i,o,{labels:n,labelCategoryInterval:r}))}function iI(t,e){return JM(t)[e]||(JM(t)[e]=[])}function oI(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function aI(t,e,n){return t.push({key:e,value:n}),n}function sI(t,e,n){var r=RM(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=zM(t),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return p&&f-l!==o[1]&&g(o[1]),s}function lI(t,e,n){var r=t.scale,i=RM(t),o=[];return Ni(r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var uI=[0,1],cI=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Du(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&hI(n=n.slice(),r.count()),Cu(t,uI,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&hI(n=n.slice(),r.count());var i=Cu(t,n,uI,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=zi(nI(this,e).ticks,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,r){var i=e.length;if(!t.onBand||n||!i)return;var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[1],tickValue:e[0].tickValue};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;Ni(e,(function(t){t.coord-=u/2}));var c=t.scale.getExtent();a=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a,tickValue:c[1]+1},e.push(o)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift());r&&d(s[0],e[0].coord)&&e.unshift({coord:s[0]});d(s[1],o.coord)&&(r?o.coord=s[1]:e.pop());r&&d(o.coord,s[1])&&e.push({coord:s[1]});function d(t,e){return t=Tu(t),e=Tu(e),h?t>e:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),zi(this.scale.getMinorTicks(t),(function(t){return zi(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return eI(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=RM(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),d=0,p=0;l<=o[1];l+=s){var f,g,y=iu(n({value:l}),e.font,"center","top");f=1.3*y.width,g=1.3*y.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var v=d/c,m=p/h;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(v,m))),x=JM(t.model),b=t.getExtent(),w=x.lastAutoInterval,S=x.lastTickCount;return null!=w&&null!=S&&Math.abs(w-_)<=1&&Math.abs(S-a)<=1&&w>_&&x.axisExtent0===b[0]&&x.axisExtent1===b[1]?_=w:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=b[0],x.axisExtent1=b[1]),_}(this)},t}();function hI(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var dI=2*Math.PI,pI=Eh.CMD,fI=["top","right","bottom","left"];function gI(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0)}}function yI(t,e,n,r,i,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),c=(a/=u)*n+t,h=(s/=u)*n+e;if(Math.abs(r-i)%dI<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var d=r;r=Fh(i),i=Fh(d)}else r=Fh(r),i=Fh(i);r>i&&(i+=dI);var p=Math.atan2(s,a);if(p<0&&(p+=dI),p>=r&&p<=i||p+dI>=r&&p+dI<=i)return l[0]=c,l[1]=h,u-n;var f=n*Math.cos(r)+t,g=n*Math.sin(r)+e,y=n*Math.cos(i)+t,v=n*Math.sin(i)+e,m=(f-a)*(f-a)+(g-s)*(g-s),_=(y-a)*(y-a)+(v-s)*(v-s);return m<_?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(_))}function vI(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,h=r-e,d=Math.sqrt(c*c+h*h),p=(l*(c/=d)+u*(h/=d))/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var f=a[0]=t+p*c,g=a[1]=e+p*h;return Math.sqrt((f-i)*(f-i)+(g-o)*(g-o))}function mI(t,e,n,r,i,o,a){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var _I=[];function xI(t,e,n){var r=mI(e.x,e.y,e.width,e.height,t.x,t.y,_I);return n.set(_I[0],_I[1]),r}function bI(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,d=t.y,p=0;p<c.length;){var f=c[p++];1===p&&(s=o=c[p],l=a=c[p+1]);var g=u;switch(f){case pI.M:o=s=c[p++],a=l=c[p++];break;case pI.L:g=vI(o,a,c[p],c[p+1],h,d,_I,!0),o=c[p++],a=c[p++];break;case pI.C:g=cs(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,_I),o=c[p++],a=c[p++];break;case pI.Q:g=ys(o,a,c[p++],c[p++],c[p],c[p+1],h,d,_I),o=c[p++],a=c[p++];break;case pI.A:var y=c[p++],v=c[p++],m=c[p++],_=c[p++],x=c[p++],b=c[p++];p+=1;var w=!!(1-c[p++]);r=Math.cos(x)*m+y,i=Math.sin(x)*_+v,p<=1&&(s=r,l=i),g=yI(y,v,_,x,x+b,w,(h-y)*_/m+y,d,_I),o=Math.cos(x+b)*m+y,a=Math.sin(x+b)*_+v;break;case pI.R:g=mI(s=o=c[p++],l=a=c[p++],c[p++],c[p++],h,d,_I);break;case pI.Z:g=vI(o,a,s,l,h,d,_I,!0),o=s,a=l}g<u&&(u=g,n.set(_I[0],_I[1]))}return u}var wI=new va,SI=new va,MI=new va,II=new va,CI=new va;function AI(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||fI,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),h=c&&ya([],c),d=e.get("length2")||0;u&&MI.copy(u);for(var p=0;p<a.length;p++){gI(a[p],0,s,wI,II),va.scaleAndAdd(SI,wI,II,d),SI.transform(h);var f=t.getBoundingRect(),g=u?u.distance(SI):t instanceof ed?bI(SI,t.path,MI):xI(SI,f,MI);g<l&&(l=g,SI.transform(c),MI.transform(c),MI.toArray(o[0]),SI.toArray(o[1]),wI.toArray(o[2]))}LI(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var TI=[],kI=new va;function LI(t,e){if(e<=180&&e>0){e=e/180*Math.PI,wI.fromArray(t[0]),SI.fromArray(t[1]),MI.fromArray(t[2]),va.sub(II,wI,SI),va.sub(CI,MI,SI);var n=II.len(),r=CI.len();if(!(n<.001||r<.001)){II.scale(1/n),CI.scale(1/r);var i=II.dot(CI);if(Math.cos(e)<i){var o=vI(SI.x,SI.y,MI.x,MI.y,wI.x,wI.y,TI,!1);kI.fromArray(TI),kI.scaleAndAdd(CI,o/Math.tan(Math.PI-e));var a=MI.x!==SI.x?(kI.x-SI.x)/(MI.x-SI.x):(kI.y-SI.y)/(MI.y-SI.y);if(isNaN(a))return;a<0?va.copy(kI,SI):a>1&&va.copy(kI,MI),kI.toArray(t[1])}}}}function DI(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,wI.fromArray(t[0]),SI.fromArray(t[1]),MI.fromArray(t[2]),va.sub(II,SI,wI),va.sub(CI,MI,SI);var r=II.len(),i=CI.len();if(!(r<.001||i<.001))if(II.scale(1/r),CI.scale(1/i),II.dot(e)<Math.cos(n)){var o=vI(SI.x,SI.y,MI.x,MI.y,wI.x,wI.y,TI,!1);kI.fromArray(TI);var a=Math.PI/2,s=a+Math.acos(CI.dot(e))-n;if(s>=a)va.copy(kI,MI);else{kI.scaleAndAdd(CI,o/Math.tan(Math.PI/2-s));var l=MI.x!==SI.x?(kI.x-SI.x)/(MI.x-SI.x):(kI.y-SI.y)/(MI.y-SI.y);if(isNaN(l))return;l<0?va.copy(kI,SI):l>1&&va.copy(kI,MI)}kI.toArray(t[1])}}}function PI(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function RI(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Po(r[0],r[1]),o=Po(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=Oo([],r[1],r[0],a/i),l=Oo([],r[1],r[2],a/o),u=Oo([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function OI(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<Nd.length;l++){var u=Nd[l],c=e[u],h="normal"===u;if(c){var d=c.get("show");if((h?s:eo(i.states[u]&&i.states[u].ignore,s))||!eo(d,a)){var p=h?r:r&&r.states[u];p&&(p.ignore=!0),r&&PI(r,!0,u,c);continue}r||(r=new _f,t.setTextGuideLine(r),h||!s&&a||PI(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),PI(r,!1,u,c)}}if(r){Pi(r.style,n),r.style.fill=null;var f=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=f||!1,r.buildPath=RI}}else r&&t.removeTextGuideLine()}function EI(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Ed.length;r++){var i=Ed[r];n[i]=t.getModel([i,e])}return n}function NI(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new zf(a,o):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return e}function zI(t,e,n,r,i,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=0;c<a;c++){var h=t[c],d=h.rect;(s=d[e]-l)<0&&(d[e]-=s,h.label[e]-=s,u=!0),l=d[e]+d[n]}var p,f,g=t[0],y=t[a-1];return v(),p<0&&x(-p,.8),f<0&&x(f,.8),v(),m(p,f,1),m(f,p,-1),v(),p<0&&b(-p),f<0&&b(f),u}function v(){p=g.rect[e]-r,f=i-y.rect[e]-y.rect[n]}function m(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){_(r*n,0,a);var i=r+t;i<0&&x(-i*n,1)}else x(-t*n,1)}}function _(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function x(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++){_(o[l]*h,0,l+1)}else for(l=a-1;l>0;l--){_(-(o[l-1]*h),l,a)}}}function b(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r<a-1;r++)if(e>0?_(n,0,r+1):_(-n,a-r-1,a),(t-=n)<=0)return}}function BI(t,e,n,r){return zI(t,"y","height",e,n)}function VI(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Ca(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i<t.length;i++){var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,d=!1,p=0;p<e.length;p++){var f=e[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){d=!0;break}if(f.obb||(f.obb=new zf(f.localRect,f.transform)),h||(h=new zf(s,l)),h.intersect(f.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function FI(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function GI(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:FI(r&&r.shape.points)}}var jI=["align","verticalAlign","width","height","fontSize"],WI=new Ql,HI=uc(),UI=uc();function ZI(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var YI=["x","y","rotation"],XI=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,r,i){var o=r.style,a=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),l=r.getBoundingRect().plain();Ca.applyTransform(l,l,s),s?WI.setLocalTransform(s):(WI.x=WI.y=WI.rotation=WI.originX=WI.originY=0,WI.scaleX=WI.scaleY=1),WI.rotation=Fh(WI.rotation);var u,c=r.__hostTarget;if(c){u=c.getBoundingRect().plain();var h=c.getComputedTransform();Ca.applyTransform(u,u,h)}var d=u&&c.getTextGuideLine();this._labelList.push({label:r,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:d&&d.ignore,x:WI.x,y:WI.y,scaleX:WI.scaleX,scaleY:WI.scaleY,rotation:WI.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:a.position,attachedRot:a.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");(Hi(r)||Fi(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=kd(t);i&&!i.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,i,r)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function r(t,e){return function(){AI(t,e)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=(u=Hi(o.layoutOption)?o.layoutOption(GI(o,s)):o.layoutOption)||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(a.x=Au(u.x,e),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=Au(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),h=!1)}HI(a).needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var p=0;p<jI.length;p++){var f=jI[p];a.setStyle(f,null!=u[f]?u[f]:l.style[f])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var g=o.seriesModel;if(null!=o.dataIndex)g=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",r(s,g.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),r=NI(this._labelList),i=Vi(r,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=Vi(r,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));zI(i,"x","width",0,e),BI(o,0,n),VI(Vi(r,(function(t){return t.layoutOption.hideOverlap})))},t.prototype.processLabelsOverall=function(){var t=this;Ni(this._chartViewList,(function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!r,a=e.getTextContent();!o&&a&&(o=HI(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=kd(t),i=r.dataIndex;if(n&&null!=i){var o=e.getData(r.dataType),a=o.getItemModel(i),s={},l=o.getItemVisual(i,"style");if(l){var u=o.getVisual("drawType");s.stroke=l[u]}var c=a.getModel("labelLine");OI(t,EI(a),s),AI(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Uf(t))){var i=(p=HI(n)).oldLayout,o=kd(t),a=o.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=e.getData(o.dataType);if(i){n.attr(i);var u=t.prevStates;u&&(Ri(u,"select")>=0&&n.attr(p.oldLayoutSelect),Ri(u,"emphasis")>=0&&n.attr(p.oldLayoutEmphasis)),Wf(n,s,e,a)}else if(n.attr(s),!Eg(n).valueAnimation){var c=eo(n.style.opacity,1);n.style.opacity=0,Hf(n,{style:{opacity:c}},e,a)}if(p.oldLayout=s,n.states.select){var h=p.oldLayoutSelect={};ZI(h,s,YI),ZI(h,n.states.select,YI)}if(n.states.emphasis){var d=p.oldLayoutEmphasis={};ZI(d,s,YI),ZI(d,n.states.emphasis,YI)}zg(n,a,l,e,e)}if(r&&!r.ignore&&!r.invisible){i=(p=UI(r)).oldLayout;var p,f={points:r.shape.points};i?(r.attr({shape:i}),Wf(r,{shape:f},e)):(r.setShape(f),r.style.strokePercent=0,Hf(r,{style:{strokePercent:1}},e)),p.oldLayout=f}},t}(),qI=uc();var KI=Math.sin,$I=Math.cos,QI=Math.PI,JI=2*Math.PI,tC=180/QI,eC=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._add("C",t,e,n,r,i,o)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._add("Q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,o){this.ellipse(t,e,n,n,0,r,i,o)},t.prototype.ellipse=function(t,e,n,r,i,o,a,s){var l=a-o,u=!s,c=Math.abs(l),h=Xs(c-JI)||(u?l>=JI:-l>=JI),d=l>0?l%JI:l%JI+JI,p=!1;p=!!h||!Xs(c)&&d>=QI==!!u;var f=t+n*$I(o),g=e+r*KI(o);this._start&&this._add("M",f,g);var y=Math.round(i*tC);if(h){var v=1/this._p,m=(u?1:-1)*(JI-v);this._add("A",n,r,y,1,+u,t+n*$I(o+m),e+r*KI(o+m)),v>.01&&this._add("A",n,r,y,0,+u,f,g)}else{var _=t+n*$I(a),x=e+r*KI(a);this._add("A",n,r,y,+p,+u,_,x)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,o,a,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);u.push(Math.round(d*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),nC="none",rC=Math.round;var iC=["lineCap","miterLimit","lineJoin"],oC=zi(iC,(function(t){return"stroke-"+t.toLowerCase()}));function aC(t,e,n,r){var i=null==e.opacity?1:e.opacity;if(n instanceof ad)t("opacity",i);else{if(function(t){var e=t.fill;return null!=e&&e!==nC}(e)){var o=Ys(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*i:o.opacity*i;a<1&&t("fill-opacity",a)}else t("fill",nC);if(function(t){var e=t.stroke;return null!=e&&e!==nC}(e)){var s=Ys(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*i:s.opacity*i,h=e.strokeFirst;if(1!==u&&t("stroke-width",u),h&&t("paint-order",h?"stroke":"fill"),c<1&&t("stroke-opacity",c),e.lineDash){var d=xb(n),p=d[0],f=d[1];p&&(f=rC(f||0),t("stroke-dasharray",p.join(",")),(f||r)&&t("stroke-dashoffset",f))}for(var g=0;g<iC.length;g++){var y=iC[g];if(e[y]!==Qh[y]){var v=e[y]||Qh[y];v&&t(oC[g],v)}}}}}var sC="http://www.w3.org/2000/svg",lC="http://www.w3.org/1999/xlink",uC="ecmeta_";function cC(t){return document.createElementNS(sC,t)}function hC(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function dC(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var r=e.children,i=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(i,o)+("style"!==i?Ko(a):a||"")+(r?""+n+zi(r,(function(e){return t(e)})).join(n)+n:"")+("</"+i+">")}(t)}function pC(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function fC(t,e,n,r){return hC("svg","root",{width:t,height:e,xmlns:sC,"xmlns:xlink":lC,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}var gC=0;function yC(){return gC++}var vC={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"},mC="transform-origin";function _C(t,e,n){var r=Di({},t.shape);Di(r,e),t.buildPath(n,r);var i=new eC;return i.reset(il(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function xC(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[mC]=n+"px "+r+"px")}var bC={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function wC(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function SC(t){return Ui(t)?vC[t]?"cubic-bezier("+vC[t]+")":_s(t)?t:"":""}function MC(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof kf){var s=function(t,e,n){var r,i,o=t.shape.paths,a={};if(Ni(o,(function(t){var e=pC(n.zrId);e.animation=!0,MC(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=Fi(o),u=l.length;if(u){var c=o[i=l[u-1]];for(var h in c){var d=c[h];a[h]=a[h]||{d:""},a[h].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(i)>=0&&(r=f)}}})),r){e.d=!1;var s=wC(a,n);return r.replace(i,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=i[u],h=[c.getMaxTime()/1e3+"s"],d=SC(c.getClip().easing),p=c.getDelay();d?h.push(d):h.push("linear"),p&&h.push(p/1e3+"s"),c.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function g(i){var o,a=i[1],s=a.length,l={},u={},c={},h="animation-timing-function";function d(t,e,n){for(var r=t.getTracks(),i=t.getMaxTime(),o=0;o<r.length;o++){var a=r[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],d=Math.round(c.time/i*100)+"%",p=SC(c.easing),f=c.rawValue;(Ui(f)||Yi(f))&&(e[d]=e[d]||{},e[d][l]=c.rawValue,p&&(e[d][h]=p))}}}}for(var p=0;p<s;p++){(S=(w=a[p]).targetName)?"shape"===S&&d(w,u):!r&&d(w,l)}for(var f in l){var g={};tu(g,t),Di(g,l[f]);var y=ol(g),v=l[f][h];c[f]=y?{transform:y}:{},xC(c[f],g),v&&(c[f][h]=v)}var m=!0;for(var f in u){c[f]=c[f]||{};var _=!o;v=u[f][h];_&&(o=new Eh);var x=o.len();o.reset(),c[f].d=_C(t,u[f],o);var b=o.len();if(!_&&x!==b){m=!1;break}v&&(c[f][h]=v)}if(!m)for(var f in c)delete c[f].d;if(!r)for(p=0;p<s;p++){var w,S;"style"===(S=(w=a[p]).targetName)&&d(w,c,(function(t){return bC[t]}))}var M,I=Fi(c),C=!0;for(p=1;p<I.length;p++){var A=I[p-1],T=I[p];if(c[A][mC]!==c[T][mC]){C=!1;break}M=c[A][mC]}if(C&&M){for(var f in c)c[f][mC]&&delete c[f][mC];e[mC]=M}if(Vi(I,(function(t){return Fi(c[t]).length>0})).length)return wC(c,n)+" "+i[0]+" both"}for(var y in l){(s=g(l[y]))&&a.push(s)}if(a.length){var v=n.zrId+"-cls-"+yC();n.cssNodes["."+v]={animation:a.join(",")},e.class=v}}function IC(t,e,n,r){var i=JSON.stringify(t),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+yC(),n.cssStyleCache[i]=o,n.cssNodes["."+o+":hover"]=t),e.class=e.class?e.class+" "+o:o}var CC=Math.round;function AC(t){return t&&Ui(t.src)}function TC(t){return t&&Hi(t.toDataURL)}function kC(t,e,n,r){aC((function(i,o){var a="fill"===i||"stroke"===i;a&&nl(o)?FC(e,t,i,r):a&&Js(o)?GC(n,t,i,r):t[i]=o,a&&r.ssr&&"none"===o&&(t["pointer-events"]="visible")}),e,n,!1),function(t,e,n){var r=t.style;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(r)){var i=function(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(t),o=n.shadowCache,a=o[i];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,h=r.shadowOffsetY||0,d=r.shadowBlur,p=Ys(r.shadowColor),f=p.opacity,g=p.color,y=d/2/l+" "+d/2/u;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=hC("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[hC("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:y,"flood-color":g,"flood-opacity":f})]),o[i]=a}e.filter=rl(a)}}(n,t,r)}function LC(t,e){var n=function(t){if("function"==typeof Su)return Su(t)}(e);n&&(n.each((function(e,n){null!=e&&(t[(uC+n).toLowerCase()]=e+"")})),e.isSilent()&&(t[uC+"silent"]="true"))}function DC(t){return Xs(t[0]-1)&&Xs(t[1])&&Xs(t[2])&&Xs(t[3]-1)}function PC(t,e,n){if(e&&(!function(t){return Xs(t[4])&&Xs(t[5])}(e)||!DC(e))){var r=1e4;t.transform=DC(e)?"translate("+CC(e[4]*r)/r+" "+CC(e[5]*r)/r+")":function(t){return"matrix("+qs(t[0])+","+qs(t[1])+","+qs(t[2])+","+qs(t[3])+","+Ks(t[4])+","+Ks(t[5])+")"}(e)}}function RC(t,e,n){for(var r=t.points,i=[],o=0;o<r.length;o++)i.push(CC(r[o][0]*n)/n),i.push(CC(r[o][1]*n)/n);e.points=i.join(" ")}function OC(t){return!t.smooth}var EC,NC,zC={circle:[(EC=["cx","cy","r"],NC=zi(EC,(function(t){return"string"==typeof t?[t,t]:t})),function(t,e,n){for(var r=0;r<NC.length;r++){var i=NC[r],o=t[i[0]];null!=o&&(e[i[1]]=CC(o*n)/n)}})],polyline:[RC,OC],polygon:[RC,OC]};function BC(t,e){var n=t.style,r=t.shape,i=zC[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&il(t)||4;if(!i||e.willUpdate||i[1]&&!i[1](r)||a&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||l<1){var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var h=t.path;c&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var d=h.getVersion(),p=t,f=p.__svgPathBuilder;p.__svgPathVersion===d&&f&&l===p.__svgPathStrokePercent||(f||(f=p.__svgPathBuilder=new eC),f.reset(u),h.rebuildPath(f,l),f.generateStr(),p.__svgPathVersion=d,p.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=t.type;var g=Math.pow(10,u);i[0](r,o,g)}return PC(o,t.transform),kC(o,n,t,e),LC(o,t),e.animation&&MC(t,o,e),e.emphasis&&function(t,e,n){if(!t.ignore)if(t.isSilent())IC(u={"pointer-events":"none"},e,n);else{var r=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},i=r.fill;if(!i){var o=t.style&&t.style.fill,a=t.states.select&&t.states.select.style&&t.states.select.style.fill,s=t.currentStates.indexOf("select")>=0&&a||o;s&&(i=Us(s))}var l=r.lineWidth;l&&(l/=!r.strokeNoScale&&t.transform?t.transform[0]:1);var u={cursor:"pointer"};i&&(u.fill=i),r.stroke&&(u.stroke=r.stroke),l&&(u["stroke-width"]=l),IC(u,e,n)}}(t,o,e),hC(s,t.id+"",o)}function VC(t,e){return t instanceof ed?BC(t,e):t instanceof ad?function(t,e){var n=t.style,r=n.image;if(r&&!Ui(r)&&(AC(r)?r=r.src:TC(r)&&(r=r.toDataURL())),r){var i=n.x||0,o=n.y||0,a={href:r,width:n.width,height:n.height};return i&&(a.x=i),o&&(a.y=o),PC(a,t.transform),kC(a,n,t,e),LC(a,t),e.animation&&MC(t,a,e),hC("image",t.id+"",a)}}(t,e):t instanceof rd?function(t,e){var n=t.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||ui,o=n.x||0,a=function(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}(n.y||0,su(i),n.textBaseline),s={"dominant-baseline":"central","text-anchor":$s[n.textAlign]||n.textAlign};if(wd(n)){var l="",u=n.fontStyle,c=xd(n.fontSize);if(!parseFloat(c))return;var h=n.fontFamily||li,d=n.fontWeight;l+="font-size:"+c+";font-family:"+h+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),d&&"normal"!==d&&(l+="font-weight:"+d+";"),s.style=l}else s.style="font: "+i;return r.match(/\s/)&&(s["xml:space"]="preserve"),o&&(s.x=o),a&&(s.y=a),PC(s,t.transform),kC(s,n,t,e),LC(s,t),e.animation&&MC(t,s,e),hC("text",t.id+"",s,void 0,r)}}(t,e):void 0}function FC(t,e,n,r){var i,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(tl(o))i="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!el(o))return;i="radialGradient",a.cx=eo(o.x,.5),a.cy=eo(o.y,.5),a.r=eo(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=100*Ks(s[u].offset)+"%",d=Ys(s[u].color),p=d.color,f=d.opacity,g={offset:h};g["stop-color"]=p,f<1&&(g["stop-opacity"]=f),l.push(hC("stop",u+"",g))}var y=dC(hC(i,"",a,l)),v=r.gradientCache,m=v[y];m||(m=r.zrId+"-g"+r.gradientIdx++,v[y]=m,a.id=m,r.defs[m]=hC(i,m,a,l)),e[n]=rl(m)}function GC(t,e,n,r){var i,o=t.style[n],a=t.getBoundingRect(),s={},l=o.repeat,u="no-repeat"===l,c="repeat-x"===l,h="repeat-y"===l;if(Qs(o)){var d=o.imageWidth,p=o.imageHeight,f=void 0,g=o.image;if(Ui(g)?f=g:AC(g)?f=g.src:TC(g)&&(f=g.toDataURL()),"undefined"==typeof Image){var y="Image width/height must been given explictly in svg-ssr renderer.";oo(d,y),oo(p,y)}else if(null==d||null==p){var v=function(t,e){if(t){var n=t.elm,r=d||e.width,i=p||e.height;"pattern"===t.tag&&(c?(i=1,r/=a.width):h&&(r=1,i/=a.height)),t.attrs.width=r,t.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},m=Rc(f,null,t,(function(t){u||v(w,t),v(i,t)}));m&&m.width&&m.height&&(d=d||m.width,p=p||m.height)}i=hC("image","img",{href:f,width:d,height:p}),s.width=d,s.height=p}else o.svgElement&&(i=Ti(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(i){var _,x;u?_=x=1:c?(x=1,_=s.width/a.width):h?(_=1,x=s.height/a.height):s.patternUnits="userSpaceOnUse",null==_||isNaN(_)||(s.width=_),null==x||isNaN(x)||(s.height=x);var b=ol(o);b&&(s.patternTransform=b);var w=hC("pattern","",s,[i]),S=dC(w),M=r.patternCache,I=M[S];I||(I=r.zrId+"-p"+r.patternIdx++,M[S]=I,s.id=I,w=r.defs[I]=hC("pattern",I,s,[i])),e[n]=rl(I)}}function jC(t,e,n){var r=n.clipPathCache,i=n.defs,o=r[t.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};r[t.id]=o,i[o]=hC("clipPath",o,a,[BC(t,n)])}e["clip-path"]=rl(o)}function WC(t){return document.createTextNode(t)}function HC(t,e,n){t.insertBefore(e,n)}function UC(t,e){t.removeChild(e)}function ZC(t,e){t.appendChild(e)}function YC(t){return t.parentNode}function XC(t){return t.nextSibling}function qC(t,e){t.textContent=e}var KC=hC("","");function $C(t){return void 0===t}function QC(t){return void 0!==t}function JC(t,e,n){for(var r={},i=e;i<=n;++i){var o=t[i].key;void 0!==o&&(r[o]=i)}return r}function tA(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function eA(t){var e,n=t.children,r=t.tag;if(QC(r)){var i=t.elm=cC(r);if(iA(KC,t),Wi(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&ZC(i,eA(o))}else QC(t.text)&&!Xi(t.text)&&ZC(i,WC(t.text))}else t.elm=WC(t.text);return t.elm}function nA(t,e,n,r,i){for(;r<=i;++r){var o=n[r];null!=o&&HC(t,eA(o),e)}}function rA(t,e,n,r){for(;n<=r;++n){var i=e[n];if(null!=i)if(QC(i.tag))UC(YC(i.elm),i.elm);else UC(t,i.elm)}}function iA(t,e){var n,r=e.elm,i=t&&t.attrs||{},o=e.attrs||{};if(i!==o){for(n in o){var a=o[n];i[n]!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):"style"===n?r.style.cssText=a:120!==n.charCodeAt(0)?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?r.setAttributeNS(lC,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function oA(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(iA(t,e),$C(e.text)?QC(r)&&QC(i)?r!==i&&function(t,e,n){for(var r,i,o,a=0,s=0,l=e.length-1,u=e[0],c=e[l],h=n.length-1,d=n[0],p=n[h];a<=l&&s<=h;)null==u?u=e[++a]:null==c?c=e[--l]:null==d?d=n[++s]:null==p?p=n[--h]:tA(u,d)?(oA(u,d),u=e[++a],d=n[++s]):tA(c,p)?(oA(c,p),c=e[--l],p=n[--h]):tA(u,p)?(oA(u,p),HC(t,u.elm,XC(c.elm)),u=e[++a],p=n[--h]):tA(c,d)?(oA(c,d),HC(t,c.elm,u.elm),c=e[--l],d=n[++s]):($C(r)&&(r=JC(e,a,l)),$C(i=r[d.key])||(o=e[i]).tag!==d.tag?HC(t,eA(d),u.elm):(oA(o,d),e[i]=void 0,HC(t,o.elm,u.elm)),d=n[++s]);(a<=l||s<=h)&&(a>l?nA(t,null==n[h+1]?null:n[h+1].elm,n,s,h):rA(t,e,a,l))}(n,r,i):QC(i)?(QC(t.text)&&qC(n,""),nA(n,null,i,0,i.length-1)):QC(r)?rA(n,r,0,r.length-1):QC(t.text)&&qC(n,""):t.text!==e.text&&(QC(r)&&rA(n,r,0,r.length-1),qC(n,e.text)))}var aA=0,sA=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=e,this._opts=n=Di({},n),this.root=t,this._id="zr"+aA++,this._oldVNode=fC(n.width,n.height),t&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=cC("svg");iA(null,this._oldVNode),r.appendChild(i),t.appendChild(r)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(tA(t,e))oA(t,e);else{var n=t.elm,r=YC(n);eA(e),null!==r&&(HC(r,e.elm,XC(n)),rA(r,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return VC(t,pC(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=pC(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,n,r){var i;if(n&&"none"!==n)if(i=hC("rect","bg",{width:t,height:e,x:"0",y:"0"}),nl(n))FC({fill:n},i.attrs,"fill",r);else if(Js(n))GC({style:{fill:n},dirty:_o,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",r);else{var o=Ys(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}(n,r,this._backgroundColor,i);a&&o.push(a);var s=t.compress?null:this._mainVNode=hC("g","main",{},[]);this._paintList(e,i,s?s.children:o),s&&o.push(s);var l=zi(Fi(i.defs),(function(t){return i.defs[t]}));if(l.length&&o.push(hC("defs","defs",{},l)),t.animation){var u=function(t,e,n){var r=(n=n||{}).newline?"\n":"",i=" {"+r,o=r+"}",a=zi(Fi(t),(function(e){return e+i+zi(Fi(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(r)+o})).join(r),s=zi(Fi(e),(function(t){return"@keyframes "+t+i+zi(Fi(e[t]),(function(n){return n+i+zi(Fi(e[t][n]),(function(r){var i=e[t][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+o})).join(r)+o})).join(r);return a||s?["<![CDATA[",a,s,"]]>"].join(r):""}(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=hC("style","stl",{},[],u);o.push(c)}}return fC(n,r,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},dC(this.renderToVNode({animation:eo(t.cssAnimation,!0),emphasis:eo(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:eo(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var r,i,o=t.length,a=[],s=0,l=0,u=0;u<o;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,d=h&&h.length||0,p=i&&i.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0&&(!h||!i||h[f]!==i[f]);f--);for(var g=p-1;g>f;g--)r=a[--s-1];for(var y=f+1;y<d;y++){var v={};jC(h[y],v,e);var m=hC("g","clip-g-"+l++,v,[]);(r?r.children:n).push(m),a[s++]=m,r=m}i=h;var _=VC(c,e);_&&(r?r.children:n).push(_)}}},t.prototype.resize=function(t,e){var n=this._opts,r=this.root,i=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),r&&i&&(i.style.display="none",t=_b(r,0,n),e=_b(r,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(Js(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=al(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();function lA(t,e,n){var r=pi.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}var uA=function(t){function e(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||Wl,"string"==typeof e?i=lA(e,n,r):Xi(e)&&(e=(i=e).id),o.id=e,o.dom=i;var a=i.style;return a&&(vo(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return a(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=lA("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new Ca(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new Ca(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new Ca(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var d=t.width*t.height,p=c.width*c.height,f=l.width*l.height-d-p;f<r&&(r=f,i=u)}}if(s&&(o[i].union(t),n=!0),!n)(e=new Ca(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(p=t[c]){var h=p.shouldBePainted(n,r,!0,!0);(f=p.__isRendered&&(1&p.__dirty||!h)?p.getPrevPaintRect():null)&&u(f);var d=h&&(1&p.__dirty||!p.__isRendered)?p.getPaintRect():null;d&&u(d)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var p,f;h=(p=e[c])&&p.shouldBePainted(n,r,!0,!0);if(p&&(!h||!p.__zr)&&p.__isRendered)(f=p.getPrevPaintRect())&&u(f)}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var h=this.domBack;function d(t,n,r,o){if(i.clearRect(t,n,r,o),e&&"transparent"!==e){var a=void 0;if(Qi(e))a=(e.global||e.__width===r&&e.__height===o)&&e.__canvasGradient||vb(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a,e.__width=r,e.__height=o;else null!=e.image&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=Ab(i,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));i.save(),i.fillStyle=a||e,i.fillRect(t,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(h,t,n,r,o),i.restore())}!n||s?d(0,0,o,a):n.length&&Ni(n,(function(t){d(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(Fo),cA=1e5,hA=314159,dA=.01;var pA=function(){function t(t,e,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=Di({},n||{}),this.dpr=n.devicePixelRatio||Wl,this._singleCanvas=i,this.root=t,t.style&&(vo(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new uA(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=hA,o.push(hA),this._domRoot=t}else{this._width=_b(t,0,n),this._height=_b(t,1,n);var h=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(h)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(cA)),r||(r=n.ctx).save(),Nb(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(cA)},t.prototype.paintOne=function(t,e){Eb(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;Za((function(){s._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(hA).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=i[a],h=l.ctx,p=o&&l.createRepaintRects(t,e,d._width,d._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,y=g&&Date.now(),v=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,p);else if(f===l.__startIndex){var m=t[f];m.incremental&&m.notClear&&!n||l.clear(!1,v,p)}-1===f&&(f=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=t[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,e,n,s===l.__endIndex-1),g)if(Date.now()-y>15)break}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var x=d.dpr,b=0;b<p.length;++b){var w=p[b];h.save(),h.beginPath(),h.rect(w.x*x,w.y*x,w.width*x,w.height*x),h.clip(),_(w),h.restore()}else h.save(),_(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},d=this,p=0;p<i.length;p++)h(p);return si.wxa&&Ni(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(Nb(a,t,i,o),t.setPrevPaintRect(s))}else Nb(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=hA);var n=this._layers[t];return n||((n=new uA("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?ki(n,this._layerConfig[t],!0):this._layerConfig[t-dA]&&ki(n,this._layerConfig[t-dA],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(i>0&&t>r[0]){for(s=0;s<i-1&&!(r[s]<t&&r[s+1]>t);s++);a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,o=null,a=0;for(i=0;i<t.length;i++){var s,l=(s=t[i]).zlevel,u=void 0;r!==l&&(r=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?dA:0),this._needsManuallyCompositing),u.__builtin__||Ai("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,e(i),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}e(i),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Ni(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?ki(n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===t||i===t+dA)ki(this._layers[i],n[t],!0)}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(Ri(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=_b(i,0,r),e=_b(i,1,r),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(hA).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new uA("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Nb(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();var fA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return a(e,t),e.prototype.getInitialData=function(t){return PS(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new xu,n=pb("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=pb(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(j_);function gA(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Vm(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(Vm(t,e,n[a]));return o.join(" ")}}function yA(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Wi(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);o>=0&&r.push(e[o])}return r.join(" ")}var vA=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return a(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=pb(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=mA,this._symbolType=t,this.add(o)},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(){ip(this.childAt(0))},e.prototype.downplay=function(){op(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{(d=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(h):Wf(d,h,a,n),qf(d)}if(this._updateCommon(t,n,s,r,i),l){var d=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Hf(d,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,h,d,p,f=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,h=r.labelStatesModels,d=r.hoverScale,p=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var y=r&&r.itemModel?r.itemModel:t.getItemModel(e),v=y.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=v.get("disabled"),h=Ag(y),d=v.getShallow("scale"),p=y.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var _=gb(t.getItemVisual(e,"symbolOffset"),n);_&&(f.x=_[0],f.y=_[1]),p&&f.attr("cursor",p);var x=t.getItemVisual(e,"style"),b=x.fill;if(f instanceof ad){var w=f.style;f.useStyle(Di({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else f.__isEmptyBrush?f.useStyle(Di({},x)):f.useStyle(x),f.style.decal=null,f.setColor(b,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var I=i&&i.useNameLabel;Cg(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return I?t.getName(e):gA(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");C.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var A=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;C.scaleX=this._sizeX*A,C.scaleY=this._sizeY*A,this.setSymbolScale(1),mp(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=kd(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&Zf(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Zf(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return fb(t.getItemVisual(e,"symbolSize"))},e}(xu);function mA(t,e){this.parent.drift(t,e)}function _A(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function xA(t){return null==t||Xi(t)||(t={isIgnore:t}),t||{}}function bA(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Ag(e),cursorStyle:e.get("cursor")}}var wA=function(){function t(t){this.group=new xu,this._SymbolCtor=t||vA}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=xA(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=bA(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=u(r);if(_A(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,h){var d=i.getItemGraphicEl(h),p=u(c);if(_A(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),(d=new o(t,c,s,l)).setPosition(p);else{d.updateData(t,c,s,l);var y={x:p[0],y:p[1]};a?d.attr(y):Wf(d,y,r)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=bA(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=xA(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(_A(e,o,i,n)){var a=new this._SymbolCtor(e,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){bg(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}();function SA(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=function(t,e){var n=0,r=t.scale.getExtent();"start"===e?n=r[0]:"end"===e?n=r[1]:Yi(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),a=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=zi(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return LS(e,h[0])&&(d=!0,h[0]=p),LS(e,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function MA(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}var IA=Math.min,CA=Math.max;function AA(t,e){return isNaN(t)||isNaN(e)}function TA(t,e,n,r,i,o,a,s,l){for(var u,c,h,d,p,f,g=n,y=0;y<r;y++){var v=e[2*g],m=e[2*g+1];if(g>=i||g<0)break;if(AA(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,m),h=v,d=m;else{var _=v-u,x=m-c;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===v&&S===m&&y<r;)y++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],_=(v=e[2*g])-u,x=(m=e[2*g+1])-c;var M=y+1;if(l)for(;AA(w,S)&&M<r;)M++,w=e[2*(b+=o)],S=e[2*b+1];var I=.5,C=0,A=0,T=void 0,k=void 0;if(M>=r||AA(w,S))p=v,f=m;else{C=w-u,A=S-c;var L=v-u,D=w-v,P=m-c,R=S-m,O=void 0,E=void 0;if("x"===s){var N=C>0?1:-1;p=v-N*(O=Math.abs(L))*a,f=m,T=v+N*(E=Math.abs(D))*a,k=m}else if("y"===s){var z=A>0?1:-1;p=v,f=m-z*(O=Math.abs(P))*a,T=v,k=m+z*(E=Math.abs(R))*a}else O=Math.sqrt(L*L+P*P),p=v-C*a*(1-(I=(E=Math.sqrt(D*D+R*R))/(E+O))),f=m-A*a*(1-I),k=m+A*a*I,T=IA(T=v+C*a*I,CA(w,v)),k=IA(k,CA(S,m)),T=CA(T,IA(w,v)),f=m-(A=(k=CA(k,IA(S,m)))-m)*O/E,p=IA(p=v-(C=T-v)*O/E,CA(u,v)),f=IA(f,CA(c,m)),T=v+(C=v-(p=CA(p,IA(u,v))))*E/O,k=m+(A=m-(f=CA(f,IA(c,m))))*E/O}t.bezierCurveTo(h,d,p,f,v,m),h=T,d=k}else t.lineTo(v,m)}u=v,c=m,g+=o}return y}var kA=function(){this.smooth=0,this.smoothConstraint=!0},LA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return a(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new kA},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&AA(n[2*i-2],n[2*i-1]);i--);for(;r<i&&AA(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=TA(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=Eh.CMD,a="x"===e,s=[],l=0;l<i.length;){var u=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(t-n)/(u-n):(t-r)/(c-r))<=1&&g>=0){var y=a?(c-r)*g+r:(u-n)*g+n;return a?[t,y]:[y,t]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],h=i[l++],d=i[l++],p=i[l++],f=i[l++];var v=a?ss(n,u,h,p,t,s):ss(r,c,d,f,t,s);if(v>0)for(var m=0;m<v;m++){var _=s[m];if(_<=1&&_>=0){y=a?os(r,c,d,f,_):os(n,u,h,p,_);return a?[t,y]:[y,t]}}n=p,r=f}}},e}(ed),DA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(kA),PA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return a(e,t),e.prototype.getDefaultShape=function(){return new DA},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&AA(n[2*o-2],n[2*o-1]);o--);for(;i<o&&AA(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=TA(t,n,i,o,o,1,e.smooth,a,e.connectNulls);TA(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(ed);function RA(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new pd({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=Hi(i)?function(t){i(t,h)}:null;Hf(h,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return h}function OA(t,e,n){var r=t.getArea(),i=Tu(r.r0,1),o=Tu(r.r,1),a=new df({shape:{cx:Tu(t.cx,1),cy:Tu(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,Hf(a,{shape:{endAngle:r.endAngle,r:o}},n));return a}function EA(t,e,n,r,i){return t?"polar"===t.type?OA(t,e,n):"cartesian2d"===t.type?RA(t,e,n,r,i):null:null}function NA(t,e){return t.type===e}function zA(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function BA(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function VA(t,e){var n=BA(t),r=n[0],i=n[1],o=BA(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function FA(t){return Yi(t)?t:t?.5:0}function GA(t,e,n,r,i){var o=n.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(i){for(l=0;l<t.length;l+=2){var p=e||t;isNaN(p[l])||isNaN(p[l+1])||d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),r){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var f=(c[a]+h[a])/2,g=[];u[a]=g[a]=f,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function jA(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord;return{coord:n,color:function(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=Ns(e[i]),s=Ns(e[o]),l=r-i,u=js([Is(Ls(a[0],s[0],l)),Is(Ls(a[1],s[1],l)),Is(Ls(a[2],s[2],l)),Cs(Ls(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}((n-r)/(e.coord-r),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function WA(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*vA.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return Ni(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function HA(t,e){return[t[2*e],t[2*e+1]]}function UA(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Ed.length;e++)if(t.get([Ed[e],"endLabel","show"]))return!0;return!1}function ZA(t,e,n,r){if(NA(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=UA(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=RA(e,n,r,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return OA(e,n,r)}var YA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(){var t=new xu,e=new wA;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=Gi(this._changePolyState,this)},e.prototype.render=function(t,e,n){var r=t.coordinateSystem,i=this.group,o=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===r.type,c=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,f=this._lineGroup,g=!e.ssr&&t.get("animation"),y=!s.isEmpty(),v=s.get("origin"),m=SA(r,o,v),_=y&&function(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=KS(2*r),o=0;o<r;o++){var a=MA(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(r,o,m),x=t.get("showSymbol"),b=t.get("connectNulls"),w=x&&!u&&WA(t,o,r),S=this._data;S&&S.eachItemGraphicEl((function(t,e){t.__temp&&(i.remove(t),S.setItemGraphicEl(e,null))})),x||h.remove(),i.add(f);var M,I=!u&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(M=r.getArea()).width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var C=function(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),u=zi(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=jA(u,"x"===i?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=d[0].coord-10,g=d[p-1].coord+10,y=g-f;if(y<.001)return"transparent";Ni(d,(function(t){t.offset=(t.coord-f)/y})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var v=new Df(0,0,0,0,d,!0);return v[i]=f,v[i+"2"]=g,v}}}(o,r,n)||o.getVisual("style")[o.getVisual("drawType")];if(d&&c.type===r.type&&I===this._step){y&&!p?p=this._newPolygon(l,_):p&&!y&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,Uy(C));var A=f.getClipPath();if(A)Hf(A,{shape:ZA(this,r,!1,t).shape},t);else f.setClipPath(ZA(this,r,!0,t));x&&h.updateData(o,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),zA(this._stackedOnPoints,_)&&zA(this._points,l)||(g?this._doUpdateAnimation(o,_,r,n,I,v,b):(I&&(_&&(_=GA(_,l,r,I,b)),l=GA(l,null,r,I,b)),d.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:_})))}else x&&h.updateData(o,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(o,r,M),I&&(_&&(_=GA(_,l,r,I,b)),l=GA(l,null,r,I,b)),d=this._newPolyline(l),y?p=this._newPolygon(l,_):p&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,Uy(C)),f.setClipPath(ZA(this,r,!0,t));var T=t.getModel("emphasis"),k=T.get("focus"),L=T.get("blurScope"),D=T.get("disabled");(d.useStyle(Pi(a.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),wp(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1);kd(d).seriesIndex=t.seriesIndex,mp(d,k,L,D);var P=FA(t.get("smooth")),R=t.get("smoothMonotone");if(d.setShape({smooth:P,smoothMonotone:R,connectNulls:b}),p){var O=o.getCalculationInfo("stackedOnSeries"),E=0;p.useStyle(Pi(s.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),O&&(E=FA(O.get("smooth"))),p.setShape({smooth:P,stackedOnSmooth:E,smoothMonotone:R,connectNulls:b}),wp(p,t,"areaStyle"),kd(p).seriesIndex=t.seriesIndex,mp(p,k,L,D)}var N=this._changePolyState;o.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=N)})),this._polyline.onHoverStateChange=N,this._data=o,this._coordSys=r,this._stackedOnPoints=_,this._points=l,this._step=I,this._valueOrigin=v,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){kd(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=lc(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new vA(i,o)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else tx.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=lc(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else tx.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;Jd(this._polyline,t),e&&Jd(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new LA({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new PA({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");Hi(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=Hi(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(n)if(i){var g=n,y=e.pointToCoord(h);r?(d=g.startAngle,p=g.endAngle,f=-y[1]/180*Math.PI):(d=g.r0,p=g.r,f=y[0])}else{var v=n;r?(d=v.x,p=v.x+v.width,f=t.x):(d=v.y+v.height,p=v.y,f=t.y)}var m=p===d?0:(f-d)/(p-d);a&&(m=1-m);var _=Hi(u)?u(o):l*m+c,x=s.getSymbolPath(),b=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(UA(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new yd({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,r=t.length/2;r>0&&(e=t[2*r-2],n=t[2*r-1],isNaN(e)||isNaN(n));r--);return r-1}(a);l>=0&&(Cg(o,Ag(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?yA(i,n):gA(i,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?p:0)*(y?-1:1),x=(g?0:-p)*(y?-1:1),b=g?"x":"y",w=function(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=t[2*u+a],!isNaN(i)&&!isNaN(t[2*u+1-a]))if(0!==u){if(r<=e&&i>=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}(u,m,b),S=w.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!h){var C=HA(u,S[0]);s.attr({x:C[0]+_,y:C[1]+x}),i&&(I=c.getRawValue(S[0]))}else{(C=l.getPointOn(m,b))&&s.attr({x:C[0]+_,y:C[1]+x});var A=c.getRawValue(S[0]),T=c.getRawValue(S[1]);i&&(I=mc(n,d,A,T,w.t))}r.lastFrameIndex=S[0]}else{var k=1===t||r.lastFrameIndex>0?S[0]:0;C=HA(u,k);i&&(I=c.getRawValue(k)),s.attr({x:C[0]+_,y:C[1]+x})}if(i){var L=Eg(s);"function"==typeof L.setLabelText&&L.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,r,i,o,a){for(var s=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),l=[],u=[],c=[],h=[],d=[],p=[],f=[],g=SA(i,e,a),y=t.getLayout("points")||[],v=e.getLayout("points")||[],m=0;m<s.length;m++){var _=s[m],x=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=2*_.idx,w=2*_.idx1;var S=y[b],M=y[b+1],I=v[w],C=v[w+1];(isNaN(S)||isNaN(M))&&(S=I,M=C),l.push(S,M),u.push(I,C),c.push(n[b],n[b+1]),h.push(r[w],r[w+1]),f.push(e.getRawIndex(_.idx1));break;case"+":var A=_.idx,T=g.dataDimsForPoint,k=i.dataToPoint([e.get(T[0],A),e.get(T[1],A)]);w=2*A,l.push(k[0],k[1]),u.push(v[w],v[w+1]);var L=MA(g,i,e,A);c.push(L[0],L[1]),h.push(r[w],r[w+1]),f.push(e.getRawIndex(A));break;case"-":x=!1}x&&(d.push(_),p.push(p.length))}p.sort((function(t,e){return f[t]-f[e]}));var D=l.length,P=KS(D),R=KS(D),O=KS(D),E=KS(D),N=[];for(m=0;m<p.length;m++){var z=p[m],B=2*m,V=2*z;P[B]=l[V],P[B+1]=l[V+1],R[B]=u[V],R[B+1]=u[V+1],O[B]=c[V],O[B+1]=c[V+1],E[B]=h[V],E[B+1]=h[V+1],N[m]=d[z]}return{current:P,next:R,stackedOnCurrent:O,stackedOnNext:E,status:N}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(i&&(d=GA(c.stackedOnCurrent,c.current,n,i,a),h=GA(c.current,null,n,i,a),f=GA(c.stackedOnNext,c.next,n,i,a),p=GA(c.next,null,n,i,a)),VA(h,p)>3e3||l&&VA(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Wf(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Wf(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=c.status,m=0;m<v.length;m++){if("="===v[m].cmd){var _=t.getItemGraphicEl(v[m].idx1);_&&y.push({el:_,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<y.length;e++){var n=y[e].el,r=2*y[e].ptIdx;n.x=t[r],n.y=t[r+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(tx);function XA(t,e){return{seriesType:t,plan:$_(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(r){var a=zi(r.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");LS(n,a[0])&&(a[0]=l),LS(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,i=o&&KS(n*s),a=[],l=[],d=t.start,p=0;d<t.end;d++){var f=void 0;if(1===s){var g=u.get(c,d);f=r.dataToPoint(g,null,l)}else a[0]=u.get(c,d),a[1]=u.get(h,d),f=r.dataToPoint(a,null,l);o?(i[p++]=f[0],i[p++]=f[1]):e.setItemLayout(d,f.slice())}o&&e.setLayout("points",i)}}}}}}var qA={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},KA=function(t){return Math.round(t.length/2)};function $A(t){return{seriesType:t,reset:function(t,e,n){var r=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===i?t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/d)):"minmax"===i&&t.setData(r.minmaxDownSample(r.mapDimension(l.dim),1/d));var p=void 0;Ui(i)?p=qA[i]:Hi(i)&&(p=i),p&&t.setData(r.downSample(r.mapDimension(l.dim),1/d,p,KA))}}}}}var QA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.getInitialData=function(t,e){return PS(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(t),o=r.dataToPoint(i);if(n)Ni(r.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var r=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=i[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),r.length<2)return;if(2===r.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var u=void 0,c=void 0,h=1,d=0;d<r.length;d++){var p=r[d].coord,f=d===r.length-1?r[d-1].tickValue+h:r[d].tickValue;if(f===s){c=p;break}if(f<s)u=p;else if(null!=u&&f>s){c=(p+u)/2;break}1===d&&(h=f-r[0].tickValue)}null==c&&(u?u&&(c=r[r.length-1].coord):c=r[0].coord),o[n]=t.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=r.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}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}(j_);j_.registerClass(QA);var JA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.getInitialData=function(){return PS(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Jg(QA.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}(QA),tT=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},eT=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return a(e,t),e.prototype.getDefaultShape=function(){return new tT},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);d?(t.moveTo(p*i+n,f*i+r),t.arc(p*s+n,f*s+r,a,-Math.PI+l,l,!c)):t.moveTo(p*o+n,f*o+r),t.arc(n,r,o,l,u,!c),t.arc(g*s+n,y*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&t.arc(n,r,i,u,l,c)},e}(ed);function nT(t,e,n){return e*Math.sin(t)*(n?-1:1)}function rT(t,e,n){return e*Math.cos(t)*(n?1:-1)}function iT(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Wi(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:zi(r,(function(t){return lu(t,i)}))}}var oT=Math.max,aT=Math.min;var sT=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return a(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");"cartesian2d"!==i&&"polar"!==i||(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){bg(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var d=t.get("clip",!0)||h,p=function(t,e){var n=t.getArea&&t.getArea();if(NA(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),v=y.get("borderRadius")||0,m=[],_=this._backgroundEls,x=r&&r.isInitSort,b=r&&"changeAxisOrder"===r.type;function w(t){var e=gT[l.type](a,t),n=function(t,e,n){var r="polar"===t.type?df:pd;return new r({shape:wT(e,n,t),silent:!0,z2:0})}(l,i,e);return n.useStyle(y.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=gT[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&fT[l.type](r)){var s=!1;d&&(s=lT[l.type](p,r));var y=uT[l.type](t,a,e,r,i,c,u.model,!1,f);h&&(y.forceLabelAnimation=!0),vT(y,a,e,n,r,t,i,"polar"===l.type),x?y.attr({shape:r}):h?cT(h,c,y,r,e,i,!1,!1):Hf(y,{shape:r},t,e),a.setItemGraphicEl(e,y),o.add(y),y.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),S=gT[l.type](a,e,r);if(g){var M=void 0;0===_.length?M=w(n):((M=_[n]).useStyle(y.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",v):M.setShape("cornerRadius",v),m[e]=M);var I=gT[l.type](a,e);Wf(M,{shape:wT(i,I,l)},c,e)}var C=s.getItemGraphicEl(n);if(a.hasValue(e)&&fT[l.type](S)){var A=!1;if(d&&(A=lT[l.type](p,S))&&o.remove(C),C?qf(C):C=uT[l.type](t,a,e,S,i,c,u.model,!!C,f),h&&(C.forceLabelAnimation=!0),b){var T=C.getTextContent();if(T){var k=Eg(T);null!=k.prevValue&&(k.prevValue=k.value)}}else vT(C,a,e,r,S,t,i,"polar"===l.type);x?C.attr({shape:S}):h?cT(h,c,C,S,e,i,!0,b):Wf(C,{shape:S},t,e,null),a.setItemGraphicEl(e,C),C.ignore=A,o.add(C)}else o.remove(C)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&Xf(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new xu);S.removeAll();for(var M=0;M<m.length;++M)S.add(m[M]);o.add(S),this._backgroundEls=m,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),xT(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),xT(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&EA(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),(function(t,e){var i=n(e);i=null==i?NaN:i,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})})),r.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:zi(r,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Xf(e,t,kd(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(tx),lT={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=oT(e.x,t.x),s=aT(e.x+e.width,i),l=oT(e.y,t.y),u=aT(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>i?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=aT(e.r,t.r),o=oT(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},uT={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new pd({shape:Di({},r),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[i?"height":"width"]=0);return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?eT:df,c=new u({shape:r,z2:1});c.name="item";var h,d,p=yT(i);if(c.calculateTextPosition=(h=p,d=({isRoundCap:u===eT}||{}).isRoundCap,function(t,e,n){var r=e.position;if(!r||r instanceof Array)return uu(t,e,n);var i=h(r),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,p=(u+c)/2,f=a.startAngle,g=a.endAngle,y=(f+g)/2,v=d?Math.abs(u-c)/2:0,m=Math.cos,_=Math.sin,x=s+u*m(f),b=l+u*_(f),w="left",S="top";switch(i){case"startArc":x=s+(c-o)*m(y),b=l+(c-o)*_(y),w="center",S="top";break;case"insideStartArc":x=s+(c+o)*m(y),b=l+(c+o)*_(y),w="center",S="bottom";break;case"startAngle":x=s+p*m(f)+nT(f,o+v,!1),b=l+p*_(f)+rT(f,o+v,!1),w="right",S="middle";break;case"insideStartAngle":x=s+p*m(f)+nT(f,-o+v,!1),b=l+p*_(f)+rT(f,-o+v,!1),w="left",S="middle";break;case"middle":x=s+p*m(y),b=l+p*_(y),w="center",S="middle";break;case"endArc":x=s+(u+o)*m(y),b=l+(u+o)*_(y),w="center",S="bottom";break;case"insideEndArc":x=s+(u-o)*m(y),b=l+(u-o)*_(y),w="center",S="top";break;case"endAngle":x=s+p*m(g)+nT(g,o+v,!0),b=l+p*_(g)+rT(g,o+v,!0),w="left",S="middle";break;case"insideEndAngle":x=s+p*m(g)+nT(g,-o+v,!0),b=l+p*_(g)+rT(g,-o+v,!0),w="right",S="middle";break;default:return uu(t,e,n)}return(t=t||{}).x=x,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=i?"r":"endAngle",g={};c.shape[f]=i?r.r0:r.startAngle,g[f]=r[f],(s?Wf:Hf)(c,{shape:g},o)}return c}};function cT(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?Wf:Hf)(n,{shape:l},e,i,null),(a?Wf:Hf)(n,{shape:u},e?t.baseAxis.model:null,i)}function hT(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var dT=["x","y","width","height"],pT=["cx","cy","r","startAngle","endAngle"],fT={cartesian2d:function(t){return!hT(t,dT)},polar:function(t){return!hT(t,pT)}},gT={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function yT(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function vT(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape;Di(u,iT(r.getModel("itemStyle"),u,!0)),t.setShape(u)}}else{var c=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var h=r.getShallow("cursor");h&&t.attr("cursor",h);var d=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=Ag(r);Cg(t,p,{labelFetcher:o,labelDataIndex:n,defaultText:gA(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var f=t.getTextContent();if(s&&f){var g=r.get(["label","position"]);t.textConfig.inside="middle"===g||null,function(t,e,n,r){if(Yi(r))t.setTextConfig({rotation:r});else if(Wi(e))t.setTextConfig({rotation:0});else{var i,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===g?d:g,yT(a),r.get(["label","rotate"]))}Ng(f,p,o.getRawValue(n),(function(t){return yA(e,t)}));var y=r.getModel(["emphasis"]);mp(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),wp(t,r),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(i)&&(t.style.fill="none",t.style.stroke="none",Ni(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var mT=function(){},_T=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return a(e,t),e.prototype.getDefaultShape=function(){return new mT},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],t.rect(o[0],o[1],a[0],a[1])},e}(ed);function xT(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new _T({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var h=new _T({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,kd(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",bT),h.on("mousemove",bT)),n&&n.push(h)}var bT=ux((function(t){var e=function(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c<h;c++){var d=3*c;if(l[r]=u,l[i]=o[d+2],s[r]=o[d+r],s[i]=o[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);kd(this).dataIndex=e>=0?e:null}),30,!1);function wT(t,e,n){if(NA(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}var o=e;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}var ST=2*Math.PI,MT=Math.PI/180;function IT(t,e){return Qy(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function CT(t,e){var n=IT(t,e),r=t.get("center"),i=t.get("radius");Wi(i)||(i=[0,i]);var o,a,s=Au(n.width,e.getWidth()),l=Au(n.height,e.getHeight()),u=Math.min(s,l),c=Au(i[0],u/2),h=Au(i[1],u/2),d=t.coordinateSystem;if(d){var p=d.dataToPoint(r);o=p[0]||0,a=p[1]||0}else Wi(r)||(r=[r,r]),o=Au(r[0],s)+n.x,a=Au(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:h}}function AT(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=IT(t,n),o=CT(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*MT,h=t.get("endAngle"),d=t.get("padAngle")*MT;h="auto"===h?c-ST:-h*MT;var p=t.get("minAngle")*MT+d,f=0;e.each(r,(function(t){!isNaN(t)&&f++}));var g=e.getSum(r),y=Math.PI/(g||f)*2,v=t.get("clockwise"),m=t.get("roseType"),_=t.get("stillShowZeroSum"),x=e.getDataExtent(r);x[0]=0;var b=v?1:-1,w=[c,h],S=b*d/2;Oh(w,!v),c=w[0],h=w[1];var M=TT(t);M.startAngle=c,M.endAngle=h,M.clockwise=v;var I=Math.abs(h-c),C=I,A=0,T=c;if(e.setLayout({viewRect:i,r:l}),e.each(r,(function(t,n){var r;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:s,r0:u,r:m?NaN:l});else{(r="area"!==m?0===g&&_?y:t*y:I/f)<p?(r=p,C-=p):A+=t;var i=T+b*r,o=0,c=0;d>r?c=o=T+b*r/2:(o=T+S,c=i-S),e.setItemLayout(n,{angle:r,startAngle:o,endAngle:c,clockwise:v,cx:a,cy:s,r0:u,r:m?Cu(t,x,[u,l]):l}),T=i}})),C<ST&&f)if(C<=.001){var k=I/f;e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=k;var i=0,o=0;k<d?o=i=c+b*(n+.5)*k:(i=c+b*n*k+S,o=c+b*(n+1)*k-S),r.startAngle=i,r.endAngle=o}}))}else y=C/A,T=c,e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n),i=r.angle===p?p:t*y,o=0,a=0;i<d?a=o=T+b*i/2:(o=T+S,a=T+b*i-S),r.startAngle=o,r.endAngle=a,T+=b*i}}))}))}var TT=uc();function kT(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf((function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0}))}}}}var LT=Math.PI/180;function DT(t,e,n,r,i,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}BI(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*i,d=r+l.len,f=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=f,u.maxY=c}u.list.push(l)}p(o),p(a)}(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=r+l.len,h=c*c,d=Math.sqrt(Math.abs((1-u*u/a)*h)),p=e+(d+l.len2)*i,f=p-l.label.x;PT(l,l.targetTextWidth-f*i,!0),l.label.x=p}}}function PT(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var d=r.getBoundingRect();r.setStyle("width",Math.ceil(d.width)),r.setStyle("backgroundColor",a)}else{var p=e-l,f=e<c?p:n?p>t.unconstrainedWidth?null:p:null;r.setStyle("width",f)}var g=r.getBoundingRect();o.width=g.width;var y=(r.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-h)/2}}}function RT(t){return"center"===t.position}function OT(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*LT,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function p(t){t.ignore=!0}r.each((function(t){var s=r.getItemGraphicEl(t),h=s.shape,d=s.getTextContent(),f=s.getTextGuideLine(),g=r.getItemModel(t),y=g.getModel("label"),v=y.get("position")||g.get(["emphasis","label","position"]),m=y.get("distanceToLabelLine"),_=y.get("alignTo"),x=Au(y.get("edgeDistance"),u),b=y.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=Au(S,u);var M=w.get("length2");if(M=Au(M,u),Math.abs(h.endAngle-h.startAngle)<a)return Ni(d.states,p),d.ignore=!0,void(f&&(Ni(f.states,p),f.ignore=!0));if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(d)){var I,C,A,T,k=(h.startAngle+h.endAngle)/2,L=Math.cos(k),D=Math.sin(k);e=h.cx,n=h.cy;var P="inside"===v||"inner"===v;if("center"===v)I=h.cx,C=h.cy,T="center";else{var R=(P?(h.r+h.r0)/2*L:h.r*L)+e,O=(P?(h.r+h.r0)/2*D:h.r*D)+n;if(I=R+3*L,C=O+3*D,!P){var E=R+L*(S+l-h.r),N=O+D*(S+l-h.r),z=E+(L<0?-1:1)*M;I="edge"===_?L<0?c+x:c+u-x:z+(L<0?-m:m),C=N,A=[[R,O],[E,N],[z,N]]}T=P?"center":"edge"===_?L>0?"right":"left":L>0?"left":"right"}var B=Math.PI,V=0,F=y.get("rotate");if(Yi(F))V=F*(B/180);else if("center"===v)V=0;else if("radial"===F||!0===F){V=L<0?-k+B:-k}else if("tangential"===F&&"outside"!==v&&"outer"!==v){var G=Math.atan2(L,D);G<0&&(G=2*B+G),D>0&&(G=B+G),V=G-B}if(o=!!V,d.x=I,d.y=C,d.rotation=V,d.setStyle({verticalAlign:"middle"}),P){d.setStyle({align:T});var j=d.states.select;j&&(j.x+=d.x,j.y+=d.y)}else{var W=d.getBoundingRect().clone();W.applyTransform(d.getComputedTransform());var H=(d.style.margin||0)+2.1;W.y-=H/2,W.height+=H,i.push({label:d,labelLine:f,position:v,len:S,len2:M,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new va(L,D),linePoints:A,textAlign:T,labelDistance:m,labelAlignTo:_,edgeDistance:x,bleedMargin:b,rect:W,unconstrainedWidth:W.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:P})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;RT(t[d])||(p.x<e?(c=Math.min(c,p.x),l.push(t[d])):(h=Math.max(h,p.x),u.push(t[d])))}for(d=0;d<t.length;d++)if(!RT(y=t[d])&&y.linePoints){if(null!=y.labelStyleWidth)continue;p=y.label;var f=y.linePoints,g=void 0;g="edge"===y.labelAlignTo?p.x<e?f[2][0]-y.labelDistance-a-y.edgeDistance:a+i-y.edgeDistance-f[2][0]-y.labelDistance:"labelLine"===y.labelAlignTo?p.x<e?c-a-y.bleedMargin:a+i-h-y.bleedMargin:p.x<e?p.x-a-y.bleedMargin:a+i-p.x-y.bleedMargin,y.targetTextWidth=g,PT(y,g)}for(DT(u,e,n,r,1,0,o,0,s,h),DT(l,e,n,r,-1,0,o,0,s,c),d=0;d<t.length;d++){var y;if(!RT(y=t[d])&&y.linePoints){p=y.label,f=y.linePoints;var v="edge"===y.labelAlignTo,m=p.style.padding,_=m?m[1]+m[3]:0,x=p.style.backgroundColor?0:_,b=y.rect.width+x,w=f[1][0]-f[2][0];v?p.x<e?f[2][0]=a+y.edgeDistance+b+y.labelDistance:f[2][0]=a+i-y.edgeDistance-b-y.labelDistance:(p.x<e?f[2][0]=p.x+y.labelDistance:f[2][0]=p.x-y.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=p.y}}}(i,e,n,l,u,d,c,h);for(var f=0;f<i.length;f++){var g=i[f],y=g.label,v=g.labelLine,m=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),m&&(Ni(y.states,p),y.ignore=!0);var _=y.states.select;_&&(_.x+=y.x,_.y+=y.y)}if(v){var x=g.linePoints;m||!x?(Ni(v.states,p),v.ignore=!0):(LI(x,g.minTurnAngle),DI(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new va(x[0][0],x[0][1])})}}}var ET=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new yd;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return a(e,t),e.prototype.updateData=function(t,e,n,r){var i=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=Di(iT(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(Hf(i,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,Hf(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),Hf(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,Wf(i,{shape:{endAngle:l.endAngle}},o,e))}else qf(i),Wf(i,{shape:u},o,e);i.useStyle(t.getItemVisual(e,"style")),wp(i,a);var h=(l.startAngle+l.endAngle)/2,d=o.get("selectedOffset"),p=Math.cos(h)*d,f=Math.sin(h)*d,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=Di({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},iT(s.getModel("itemStyle"),l)),Di(i.ensureState("select"),{x:p,y:f,shape:iT(a.getModel(["select","itemStyle"]),l)}),Di(i.ensureState("blur"),{shape:iT(a.getModel(["blur","itemStyle"]),l)});var y=i.getTextGuideLine(),v=i.getTextContent();y&&Di(y.ensureState("select"),{x:p,y:f}),Di(v.ensureState("select"),{x:p,y:f}),mp(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=this,i=e.getItemModel(n),o=i.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;Cg(r,Ag(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new _f,this.setTextGuideLine(h)),OI(this,EI(i),{stroke:s,opacity:no(o.get(["lineStyle","opacity"]),l,1)})}},e}(df),NT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return a(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=TT(t),h=new df({shape:Di(CT(t,n),c)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}o.diff(a).add((function(t){var e=new ET(o,t,i);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){Xf(a.getItemGraphicEl(e),t,e)})).execute(),OT(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,i=t[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},e.type="pie",e}(tx);function zT(t,e,n){e=Wi(e)&&{coordDimensions:e}||Di({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=MS(r,e).dimensions,o=new SS(i,t);return o.initData(r,n),o}var BT=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),VT=uc(),FT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new BT(Gi(this.getData,this),Gi(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return zT(this,{coordDimensions:["value"],encodeDefaulter:ji(Sv,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=VT(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),i=r.seats=function(t,e){var n=Bi(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var r=Math.pow(10,e),i=zi(t,(function(t){return(isNaN(t)?0:t)/n*r*100})),o=100*r,a=zi(i,(function(t){return Math.floor(t)})),s=Bi(a,(function(t,e){return t+e}),0),l=zi(i,(function(t,e){return t-a[e]}));s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,d=l.length;h<d;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return zi(a,(function(t){return t/r}))}(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=i[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){Qu(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,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}(j_);var GT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return a(e,t),e.prototype.getInitialData=function(t,e){return PS(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(j_),jT=function(){},WT=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return a(e,t),e.prototype.getDefaultShape=function(){return new jT},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,r=e.points,i=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&i[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],h=r[n++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(a.x=c-i[0]/2,a.y=h-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,r=e.size,i=this._ctx,o=this.softClipShape;if(i){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return t=n[0],e=n[1],r.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,r=e.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],d=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(d,s),u=Math.max(d,u)}t=this._rect=new Ca(a-i/2,s-o/2,l-a+i,u-s+o)}return t},e}(ed),HT=function(){function t(){this.group=new xu}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),r=4*t.startIndex*2;e=new Float32Array(e.buffer,r,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var r=this._newAdded[0],i=e.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=t.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new WT({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=pb(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=kd(t);l.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),UT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=XA("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new HT:new wA,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(tx),ZT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(ov),YT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",pc).models[0]},e.type="cartesian2dAxis",e}(ov);Oi(YT,VM);var XT={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)"]}}},qT=ki({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},XT),KT=ki({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}}},XT),$T={category:qT,value:KT,time:ki({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},KT),log:Pi({logBase:10},KT)},QT={value:1,category:1,time:1,log:1};function JT(t,e,n,r){Ni(QT,(function(i,o){var s=ki(ki({},$T[o],!0),r,!0),l=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return a(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=tv(this),r=n?nv(t):{};ki(t,e.getTheme().get(o+"Axis")),ki(t,this.getDefaultOption()),t.type=tk(t),n&&ev(t,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=ES.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=s,n}(n);t.registerComponentModel(l)})),t.registerSubTypeDefaulter(e+"Axis",tk)}function tk(t){return t.type||(t.data?"category":"value")}var ek=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return zi(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Vi(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),nk=["x","y"];function rk(t){return"interval"===t.type||"time"===t.type}var ik=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=nk,e}return a(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(rk(t)&&rk(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,h=i[1]-r[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=ya([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),o=new Ca(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Eo(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Eo(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(e[0],e[1])-t,i=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-r+t,a=Math.max(n[0],n[1])-i+t;return new Ca(r,i,o,a)},e}(ek),ok=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return a(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cI);function ak(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f="x"===u?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[d[l]]:h[0],"x"===u?f[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[d[s]]-f[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),to(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function sk(t){return"cartesian2d"===t.get("coordinateSystem")}function lk(t){var e={xAxisModel:null,yAxisModel:null};return Ni(e,(function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,pc).models[0];e[r]=o})),e}var uk=Math.log;function ck(t,e,n){var r=YS.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=LM(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var d=uk(t.base);u=[uk(u[0])/d,uk(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var p=r.getExtent.call(t);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var f=r.getInterval.call(t),g=u[0],y=u[1];if(c&&h)f=(y-g)/a;else if(c)for(y=u[0]+f*a;y<u[1]&&isFinite(y)&&isFinite(u[1]);)f=VS(f),y=u[0]+f*a;else if(h)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=VS(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=VS(f));var v=f*a;(g=Tu((y=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(g=0,y=Tu(v)):y>0&&u[1]<=0&&(y=0,g=-Tu(v))}var m=(i[0].value-o[0].value)/s,_=(i[a].value-o[a].value)/s;r.setExtent.call(t,g+f*m,y+f*_),r.setInterval.call(t,f),(m||_)&&r.setNiceExtent.call(t,g+f,y-f)}var hk=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nk,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=Fi(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;zS(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(DM(l,s),zS(l)&&(e=a))}i.length&&(e||DM((e=i.pop()).scale,e.model),Ni(i,(function(t){ck(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};Ni(n.x,(function(t){pk(n,"y",t,i)})),Ni(n.y,(function(t){pk(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Qy(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Ni(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),function(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}(t,e?o.x:o.y)}))}s(),i&&(Ni(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();i=n instanceof US?n.count():(r=n.getTicks()).length;var a,s=t.getLabelModel(),l=RM(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var h=l(r?r[c]:{value:o[0]+c},c),d=EM(s.getTextRect(h),s.get("rotate")||0);a?a.union(d):a=d}return a}}(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+r,"top"===t.position?o.y+=e.height+r:"left"===t.position&&(o.x+=e.width+r)}}})),s()),Ni(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Xi(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===t||i[r].getAxis("y").index===e)return i[r]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",pc).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",pc).models[0],a=t.gridModel,s=this._coordsList;if(r)Ri(s,e=r.coordinateSystem)<0&&(e=null);else if(i&&o)e=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,r){if(dk(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new ok(e,PM(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[e][r]=u,s[e]++}}}this._axesMap=a,Ni(a.x,(function(e,n){Ni(a.y,(function(i,o){var a="x"+n+"y"+o,s=new ik(a);s.master=r,s.model=t,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(e),s.addAxis(i)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){Ni(BM(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}Ni(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(sk(t)){var r=lk(t),i=r.xAxisModel,o=r.yAxisModel;if(!dk(i,e)||!dk(o,e))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Ni(this.getCartesians(),(function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);Ri(e,i)<0&&e.push(i),Ri(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var r=[];return e.eachComponent("grid",(function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),e.eachSeries((function(t){if(sk(t)){var e=lk(t),n=e.xAxisModel,r=e.yAxisModel,i=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=i.getCartesian(n.componentIndex,r.componentIndex)}})),r},t.dimensions=nk,t}();function dk(t,e){return t.getCoordSysModel()===e}function pk(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)fk(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&fk(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function fk(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}(t)}var gk=Math.PI,yk=function(){function t(t,e){this.group=new xu,this.opt=e,this.axisModel=t,Pi(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new xu({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!vk[t]},t.prototype.add=function(t){vk[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=Ou(e-t);return Eu(o)?(i=n>0?"top":"bottom",r="center"):Eu(o-gk)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<gk?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),vk={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Eo(s,s,a),Eo(l,l,a));var c=Di({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new wf({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});sg(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var d=e.get(["axisLine","symbol"]);if(null!=d){var p=e.get(["axisLine","symbolSize"]);Ui(d)&&(d=[d,d]),(Ui(p)||Yi(p))&&(p=[p,p]);var f=gb(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],y=p[1];Ni([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==d[r]&&null!=d[r]){var i=pb(d[r],-g/2,-y/2,g,y,c.stroke,!0),o=e.r+e.offset,a=u?l:s;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=function(t,e,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick"));if(!a||i.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=bk(i.getTicksCoords(),e.transform,l,Pi(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)t.add(u[c]);return u}(n,r,e,t),o=function(t,e,n,r){var i=n.axis,o=to(r.axisLabelShow,n.get(["axisLabel","show"]));if(!o||i.scale.isBlank())return;var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(to(r.labelRotate,a.get("rotate"))||0)*gk/180,c=yk.innerTextLayout(r.rotation,u,r.labelDirection),h=n.getCategories&&n.getCategories(!0),d=[],p=yk.isLabelSilent(n),f=n.get("triggerEvent");return Ni(l,(function(o,u){var g="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,y=o.formattedLabel,v=o.rawLabel,m=a;if(h&&h[g]){var _=h[g];Xi(_)&&_.textStyle&&(m=new Kg(_.textStyle,a,n.ecModel))}var x=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),b=i.dataToCoord(g),w=m.getShallow("align",!0)||c.textAlign,S=eo(m.getShallow("alignMinLabel",!0),w),M=eo(m.getShallow("alignMaxLabel",!0),w),I=m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||c.textVerticalAlign,C=eo(m.getShallow("verticalAlignMinLabel",!0),I),A=eo(m.getShallow("verticalAlignMaxLabel",!0),I),T=new yd({x:b,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(o.level||0),style:Tg(m,{text:y,align:0===u?S:u===l.length-1?M:w,verticalAlign:0===u?C:u===l.length-1?A:I,fill:Hi(x)?x("category"===i.type?v:"value"===i.type?g+"":g,u):x})});if(T.anid="label_"+g,_g({el:T,componentModel:n,itemName:y,formatterParamsExtra:{isTruncated:function(){return T.isTruncated},value:v,tickIndex:u}}),f){var k=yk.makeAxisEventDataBase(n);k.targetType="axisLabel",k.value=v,k.tickIndex=u,"category"===i.type&&(k.dataIndex=g),kd(T).eventData=k}e.add(T),T.updateTransform(),d.push(T),t.add(T),T.decomposeTransform()})),d}(n,r,e,t);(function(t,e,n){if(zM(t.axis))return;var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===r?(mk(o),mk(u)):_k(o,a)&&(r?(mk(a),mk(c)):(mk(o),mk(u)));!1===i?(mk(s),mk(h)):_k(l,s)&&(i?(mk(l),mk(d)):(mk(s),mk(h)))}(e,o,i),function(t,e,n,r){var i=n.axis,o=n.getModel("minorTick");if(!o.get("show")||i.scale.isBlank())return;var a=i.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Pi(s.getLineStyle(),Pi(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=bk(a[c],e.transform,l,u,"minorticks_"+c),d=0;d<h.length;d++)t.add(h[d])}(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"]))&&VI(NI(zi(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}))))},axisName:function(t,e,n,r){var i=to(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),d=h[0]>h[1]?-1:1,p=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,xk(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*gk/180),xk(s)?o=yk.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,r){var i,o,a=Ou(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;Eu(a-gk/2)?(o=l?"bottom":"top",i="center"):Eu(a-1.5*gk)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*gk&&a>gk/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,s,f||0,h),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,m=to(t.nameTruncateMaxWidth,y.maxWidth,a),_=new yd({x:p[0],y:p[1],rotation:o.rotation,silent:yk.isLabelSilent(e),style:Tg(u,{text:i,font:g,overflow:"truncate",width:m,ellipsis:v,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(_g({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var x=yk.makeAxisEventDataBase(e);x.targetType="axisName",x.name=i,kd(_).eventData=x}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function mk(t){t&&(t.ignore=!0)}function _k(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=ca([]);return fa(i,i,-t.rotation),n.applyTransform(da([],i,t.getLocalTransform())),r.applyTransform(da([],i,e.getLocalTransform())),n.intersect(r)}}function xk(t){return"middle"===t||"center"===t}function bk(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(Eo(a,a,e),Eo(s,s,e));var c=new wf({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});sg(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}function wk(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Ni(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=Ck(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if(Ni(n.getAxes(),ji(p,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&Ni(d.baseAxes,ji(p,!h||"cross",c)),h&&Ni(d.otherAxes,ji(p,"cross",!1))}}function p(r,s,c){var h=c.model.getModel("axisPointer",i),d=h.get("show");if(d&&("auto"!==d||r||Ik(h))){null==s&&(s=h.get("triggerTooltip")),h=r?function(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s={};Ni(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=Ti(a.get(t))})),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&Pi(l,c.textStyle)}}return t.model.getModel("axisPointer",new Kg(s,n,r))}(c,u,i,e,r,s):h;var p=h.get("snap"),f=h.get("triggerEmphasis"),g=Ck(c.model),y=s||p||"category"===c.type,v=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:f,involveSeries:y,snap:p,useHandle:Ik(h),seriesModels:[],linkGroup:null};l[g]=v,t.seriesInvolved=t.seriesInvolved||y;var m=function(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(Sk(o[r+"AxisId"],n.id)||Sk(o[r+"AxisIndex"],n.componentIndex)||Sk(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=m){var _=a[m]||(a[m]={axesInfo:{}});_.axesInfo[g]=v,_.mapper=o[m].mapper,v.linkGroup=_}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&Ni(t.coordSysAxesInfo[Ck(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}function Sk(t,e){return"all"===t||Wi(t)&&Ri(t,e)>=0||t===e}function Mk(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Ck(t)]}function Ik(t){return!!t.get(["handle","show"])}function Ck(t){return t.type+"||"+t.id}var Ak={},Tk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&function(t){var e=Mk(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=Ik(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(t){var e=Mk(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){Ak[t]=e},e.getAxisPointerClass=function(t){return t&&Ak[t]},e.type="axis",e}(K_),kk=uc();function Lk(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=kk(t).splitAreaColors,d=fo(),p=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var y=i.toGlobalCoord(u[0].coord),v=a.getAreaStyle();s=Wi(s)?s:[s];for(f=1;f<u.length;f++){var m=i.toGlobalCoord(u[f].coord),_=void 0,x=void 0,b=void 0,w=void 0;i.isHorizontal()?(_=y,x=l.y,b=m-_,w=l.height,y=_+b):(_=l.x,x=y,b=l.width,y=x+(w=m-x));var S=u[f-1].tickValue;null!=S&&d.set(S,p),e.add(new pd({anid:null!=S?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:Pi({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%c}kk(t).splitAreaColors=d}}}function Dk(t){kk(t).splitAreaColors=null}var Pk=["axisLine","axisTickLabel","axisName"],Rk=["splitArea","splitLine","minorSplitLine"],Ok=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return a(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new xu,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=ak(a,e),l=new yk(e,Di({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(zS(n[r].getOtherAxis(e.axis).scale))return!0;return!1}},s));Ni(Pk,l.add,l),this._axisGroup.add(l.getGroup()),Ni(Rk,(function(t){e.get([t,"show"])&&Ek[t](this,this._axisGroup,e,a)}),this),i&&"changeAxisOrder"===i.type&&i.isInitSort||pg(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)}},e.prototype.remove=function(){Dk(this)},e.type="cartesianAxis",e}(Tk),Ek={splitLine:function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color"),l=!1!==o.get("showMinLine"),u=!1!==o.get("showMaxLine");s=Wi(s)?s:[s];for(var c=r.coordinateSystem.getRect(),h=i.isHorizontal(),d=0,p=i.getTicksCoords({tickModel:o}),f=[],g=[],y=a.getLineStyle(),v=0;v<p.length;v++){var m=i.toGlobalCoord(p[v].coord);if((0!==v||l)&&(v!==p.length-1||u)){var _=p[v].tickValue;h?(f[0]=m,f[1]=c.y,g[0]=m,g[1]=c.y+c.height):(f[0]=c.x,f[1]=m,g[0]=c.x+c.width,g[1]=m);var x=d++%s.length,b=new wf({anid:null!=_?"line_"+_:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},style:Pi({stroke:s[x]},y),silent:!0});sg(b.shape,y.lineWidth),e.add(b)}}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),d=0;d<l.length;d++)for(var p=0;p<l[d].length;p++){var f=i.toGlobalCoord(l[d][p].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new wf({anid:"minor_line_"+l[d][p].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0});sg(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,n,r){Lk(t,e,n,r)}},Nk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="xAxis",e}(Ok),zk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=Nk.type,e}return a(e,t),e.type="yAxis",e}(Ok),Bk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return a(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new pd({shape:t.coordinateSystem.getRect(),style:Pi({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(K_),Vk={offset:0};function Fk(t){t.registerComponentView(Bk),t.registerComponentModel(ZT),t.registerCoordinateSystem("cartesian2d",hk),JT(t,"x",YT,Vk),JT(t,"y",YT,Vk),t.registerComponentView(Nk),t.registerComponentView(zk),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function Gk(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],r=t.coordinateSystem;if(r){var i=r.getIndicatorAxes();Ni(i,(function(t,o){e.each(e.mapDimension(i[o].dim),(function(t,e){n[e]=n[e]||[];var i=r.dataToPoint(t,o);n[e][o]=jk(i)?i:Wk(r)}))})),e.each((function(t){var i=function(t,e,n){if(t&&e)for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}(n[t],(function(t){return jk(t)}))||Wk(r);n[t].push(i.slice()),e.setItemLayout(t,n[t])}))}}))}function jk(t){return!isNaN(t[0])&&!isNaN(t[1])}function Wk(t){return[t.cx,t.cy]}function Hk(t){var e=t.polar;if(e){Wi(e)||(e=[e]);var n=[];Ni(e,(function(e,r){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],Wi(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}Ni(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var Uk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){var r=t.coordinateSystem,i=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var r=fb(t.getItemVisual(e,"symbolSize")),i=pb(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:o*Math.PI/180||0}),i}}function l(e,n,r,i,o,a){r.removeAll();for(var l=0;l<n.length-1;l++){var u=s(i,o);u&&(u.__dimIdx=l,e[l]?(u.setPosition(e[l]),wg[a?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},t,o)):u.setPosition(n[l]),r.add(u))}}function u(t){return zi(t,(function(t){return[r.cx,r.cy]}))}o.diff(a).add((function(e){var n=o.getItemLayout(e);if(n){var r=new vf,i=new _f,a={shape:{points:n}};r.shape.points=u(n),i.shape.points=u(n),Hf(r,a,t,e),Hf(i,a,t,e);var s=new xu,c=new xu;s.add(i),s.add(r),s.add(c),l(i.shape.points,n,c,o,e,!0),o.setItemGraphicEl(e,s)}})).update((function(e,n){var r=a.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),u=r.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(l(i.shape.points,c.shape.points,u,o,e,!1),qf(s),qf(i),Wf(i,c,t),Wf(s,c,t),o.setItemGraphicEl(e,r))})).remove((function(t){i.remove(a.getItemGraphicEl(t))})).execute(),o.eachItemGraphicEl((function(t,e){var n=o.getItemModel(e),r=t.childAt(0),a=t.childAt(1),s=t.childAt(2),l=o.getItemVisual(e,"style"),u=l.fill;i.add(t),r.useStyle(Pi(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),wp(r,n,"lineStyle"),wp(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,Ni(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),r=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=r&&h})),a.useStyle(Pi(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),p=d.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof ad){var r=t.style;t.useStyle(Di({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=Ti(p);var i=o.getStore().get(o.getDimensionIndex(t.__dimIdx),e);(null==i||isNaN(i))&&(i=""),Cg(t,Ag(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:i,inheritColor:u,defaultOpacity:l.opacity})})),mp(t,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(tx),Zk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return a(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new BT(Gi(this.getData,this),Gi(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return zT(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(t),a=""===o?this.name:o,s=E_(this,t);return C_("section",{header:a,sortBlocks:!0,blocks:zi(i,(function(e){var n=r.get(r.mapDimension(e.dim),t);return C_("nameValue",{markerType:"subItem",markerColor:s,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,r=e.getValues(zi(n.dimensions,(function(t){return e.mapDimension(t)})),t),i=0,o=r.length;i<o;i++)if(!isNaN(r[i])){var a=n.getIndicatorAxes();return n.coordToPoint(a[i].dataToCoord(r[i]),i)}},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}(j_),Yk=$T.value;function Xk(t,e){return Pi({show:e},t)}var qk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=zi(this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=a;null!=h.color&&(d=Pi({color:h.color},a));var p=ki(Ti(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(Ui(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else Hi(l)&&(p.name=l(p.name,p));var g=new Kg(p,null,this.ecModel);return Oi(g,VM.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ki({lineStyle:{color:"#bbb"}},Yk.axisLine),axisLabel:Xk(Yk.axisLabel,!1),axisTick:Xk(Yk.axisTick,!1),splitLine:Xk(Yk.splitLine,!0),splitArea:Xk(Yk.splitArea,!0),indicator:[]},e}(ov),Kk=["axisLine","axisTickLabel","axisName"],$k=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem;Ni(zi(e.getIndicatorAxes(),(function(t){var n=t.model.get("showName")?t.name:"";return new yk(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(t){Ni(Kk,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var r=t.get("shape"),i=t.getModel("splitLine"),o=t.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),l=i.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),d=Wi(c)?c:[c],p=Wi(h)?h:[h],f=[],g=[];if("circle"===r)for(var y=n[0].getTicksCoords(),v=e.cx,m=e.cy,_=0;_<y.length;_++){if(l)f[A(f,d,_)].push(new Xp({shape:{cx:v,cy:m,r:y[_].coord}}));if(u&&_<y.length-1)g[A(g,p,_)].push(new ff({shape:{cx:v,cy:m,r0:y[_].coord,r:y[_+1].coord}}))}else{var x,b=zi(n,(function(t,n){var r=t.getTicksCoords();return x=null==x?r.length-1:Math.min(r.length-1,x),zi(r,(function(t){return e.coordToPoint(t.coord,n)}))})),w=[];for(_=0;_<=x;_++){for(var S=[],M=0;M<n.length;M++)S.push(b[M][_]);if(S[0]&&S.push(S[0].slice()),l)f[A(f,d,_)].push(new _f({shape:{points:S}}));if(u&&w)g[A(g,p,_-1)].push(new vf({shape:{points:S.concat(w)}}));w=S.slice().reverse()}}var I=a.getLineStyle(),C=s.getAreaStyle();Ni(g,(function(t,e){this.group.add(og(t,{style:Pi({stroke:"none",fill:p[e%p.length]},C),silent:!0}))}),this),Ni(f,(function(t,e){this.group.add(og(t,{style:Pi({fill:"none",stroke:d[e%d.length]},I),silent:!0}))}),this)}function A(t,e,n){var r=n%e.length;return t[r]=t[r]||[],r}},e.type="radar",e}(K_),Qk=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return a(e,t),e}(cI),Jk=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=zi(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,r=new Qk(n,new YS);return r.name=t.get("name"),r.model=t,t.axis=r,this.dimensions.push(n),r}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=Math.sqrt(e*e+n*n);e/=r,n/=r;for(var i,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(i=u,s=l,a=c)}return[s,+(i&&i.coordToData(r))]},t.prototype.resize=function(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i)/2;this.cx=Au(n[0],r),this.cy=Au(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");(Ui(a)||Yi(a))&&(a=[0,a]),this.r0=Au(a[0],o),this.r=Au(a[1],o),Ni(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,r=this._model;Ni(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,i){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var o=e.getData();Ni(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var i=r.get("splitNumber"),o=new YS;o.setExtent(0,i),o.setInterval(1),Ni(n,(function(t,e){ck(t.scale,t.model,o)}))},t.prototype.convertToPixel=function(t,e,n){return null},t.prototype.convertFromPixel=function(t,e,n){return null},t.prototype.containPoint=function(t){return!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",(function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("radarIndex")||0])})),r},t.dimensions=[],t}();function tL(t){t.registerCoordinateSystem("radar",Jk),t.registerComponentModel(qk),t.registerComponentView($k),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}var eL="\0_ec_interaction_mutex";function nL(t,e){return!!rL(t)[e]}function rL(t){return t[eL]||(t[eL]={})}jw({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},_o);var iL=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var r=Gi(n._mousedownHandler,n),i=Gi(n._mousemoveHandler,n),o=Gi(n._mouseupHandler,n),a=Gi(n._mousewheelHandler,n),s=Gi(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Pi(Ti(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",r),e.on("mousemove",i),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",r),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return a(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!aa(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,r=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&sL("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!nL(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,r=this._x,i=this._y,o=e-r,a=n-i;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&oa(t.event),aL(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:r,oldY:i,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){aa(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=sL("zoomOnMouseWheel",t,this._opt),n=sL("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,i=Math.abs(r),o=t.offsetX,a=t.offsetY;if(0!==r&&(e||n)){if(e){var s=i>3?1.4:i>1?1.2:1.1;oL(this,"zoom","zoomOnMouseWheel",t,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(r);oL(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){nL(this._zr,"globalPan")||oL(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(Fo);function oL(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(oa(r.event),aL(t,e,n,r,i))}function aL(t,e,n,r,i){i.isAvailableBehavior=Gi(sL,null,n,r),t.trigger(e,i)}function sL(t,e,n){var r=n[t];return!t||r&&(!Ui(r)||e.event[r+"Key"])}function lL(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function uL(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var cL,hL={axisPointer:1,tooltip:1,brush:1};function dL(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!hL.hasOwnProperty(r.mainType)&&i&&i.model!==n}function pL(t){Ui(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var fL={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"},gL=Fi(fL),yL={"alignment-baseline":"textBaseline","stop-color":"stopColor"},vL=Fi(yL),mL=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=pL(t);this._defsUsePending=[];var r=new xu;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),ML(n,r,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=TL(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=RL(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=r;(r=new xu).add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==a||null==s||r.setClipPath(new pd({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},t.prototype._parseNode=function(t,e,n,r,i,o){var a,s=t.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!i){var u=cL[s];if(u&&mo(cL,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});e.add(a)}}var d=_L[s];if(d&&mo(_L,s)){var p=d.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new rd({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});wL(e,n),ML(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(cL={g:function(t,e){var n=new xu;return wL(e,n),ML(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new pd;return wL(e,n),ML(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Xp;return wL(e,n),ML(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new wf;return wL(e,n),ML(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new Kp;return wL(e,n),ML(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=SL(r));var i=new vf({shape:{points:n||[]},silent:!0});return wL(e,i),ML(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=SL(r));var i=new _f({shape:{points:n||[]},silent:!0});return wL(e,i),ML(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new ad;return wL(e,n),ML(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new xu;return wL(e,a),ML(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new xu;return wL(e,a),ML(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(t,e){var n=Up(t.getAttribute("d")||"");return wL(e,n),ML(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),_L={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new Df(e,n,r,i);return xL(t,o),bL(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new Pf(e,n,r);return xL(t,i),bL(t,i),i}};function xL(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function bL(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};PL(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function wL(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Pi(e.__inheritedStyle,t.__inheritedStyle))}function SL(t){for(var e=TL(t),n=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),o=parseFloat(e[r+1]);n.push([i,o])}return n}function ML(t,e,n,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(kL,(function(t,e,n){return r.push(e,n),""}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=TL(a);switch(i=i||[1,0,0,1,0,0],s){case"translate":pa(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":ga(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":fa(i,i,-parseFloat(l[0])*LL,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":da(i,[1,0,Math.tan(parseFloat(l[0])*LL),1,0,0],i);break;case"skewY":da(i,[1,Math.tan(parseFloat(l[0])*LL),0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5])}}e.setLocalTransform(i)}}(t,e),PL(t,a,s),r||function(t,e,n){for(var r=0;r<gL.length;r++){var i=gL[r];null!=(o=t.getAttribute(i))&&(e[fL[i]]=o)}for(r=0;r<vL.length;r++){var o;i=vL[r];null!=(o=t.getAttribute(i))&&(n[yL[i]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=CL(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=CL(o,"stroke",a.stroke,n)),Ni(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),Ni(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=zi(TL(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var IL=/^url\(\s*#(.*?)\)/;function CL(t,e,n,r){var i=n&&n.match(IL);if(!i)return"none"===n&&(n=null),n;var o=ao(i[1]);r.push([t,e,o])}var AL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function TL(t){return t.match(AL)||[]}var kL=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,LL=Math.PI/180;var DL=/([^\s:;]+)\s*:\s*([^:;]+)/g;function PL(t,e,n){var r,i=t.getAttribute("style");if(i)for(DL.lastIndex=0;null!=(r=DL.exec(i));){var o=r[1],a=mo(fL,o)?fL[o]:null;a&&(e[a]=r[2]);var s=mo(yL,o)?yL[o]:null;s&&(n[s]=r[2])}}function RL(t,e){var n=e.width/t.width,r=e.height/t.height,i=Math.min(n,r);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}var OL=fo(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),EL=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=fo(),this._freedGraphics=[],this._mapName=t,this._parsedXML=pL(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],n=fo();return Ni(t,(function(t){if(null==t.namedFrom){var r=new qM(t.name,t.el);e.push(r),n.set(t.name,r)}})),{regions:e,regionsMap:n}}(t.named),n=e.regions,r=e.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,r,i;try{oo(null!=(n=(e=t&&(r=t,i={ignoreViewBox:!0,ignoreRootClip:!0},(new mL).parse(r,i))||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var o=new xu;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=e.width,s=e.height,l=e.viewBoxRect,u=this._boundingRect;if(!u){var c=void 0,h=void 0,d=void 0,p=void 0;if(null!=a?(c=0,d=a):l&&(c=l.x,d=l.width),null!=s?(h=0,p=s):l&&(h=l.y,p=l.height),null==c||null==h){var f=n.getBoundingRect();null==c&&(c=f.x,d=f.width),null==h&&(h=f.y,p=f.height)}u=this._boundingRect=new Ca(c,h,d,p)}if(l){var g=RL(l,u);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new pd({shape:u.plain()}));var y=[];return Ni(e.named,(function(t){var e;null!=OL.get(t.svgNodeTagLower)&&(y.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse((function(t){t.silent=!1})))})),{root:o,boundingRect:u,named:y}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();for(var NL=[126,25],zL="南海诸岛",BL=[[[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]]],VL=0;VL<BL.length;VL++)for(var FL=0;FL<BL[VL].length;FL++)BL[VL][FL][0]/=10.5,BL[VL][FL][1]/=-14,BL[VL][FL][0]+=NL[0],BL[VL][FL][1]+=NL[1];var GL={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var jL=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var WL=function(){function t(t,e,n){var r;this.type="geoJSON",this._parsedMap=fo(),this._mapName=t,this._specialAreas=n,this._geoJSON=Ui(r=e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var r=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:r,boundingRect:HL(r)})}var i=fo(),o=[];return Ni(n.regions,(function(e){var n=e.name;t&&mo(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),i.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new Ca(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,r=this._geoJSON;try{e=r?QM(r,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===zL)return;e.push(new XM(zL,zi(BL,(function(t){return{type:"polygon",exterior:t}})),NL))}}(n,e),Ni(e,(function(t){var e=t.name;!function(t,e){if("china"===t){var n=GL[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}}(n,t),function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:jL[0]})}(n,t);var r=this._specialAreas&&this._specialAreas[e];r&&t.transformTo(r.left,r.top,r.width,r.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function HL(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();(e=e||r.clone()).union(r)}return e}var UL=fo(),ZL=function(t,e,n){if(e.svg){var r=new EL(t,e.svg);UL.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;r=new WL(t,i,n);UL.set(t,r)}},YL=function(t){return UL.get(t)},XL=function(t){var e=UL.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},qL=function(t,e,n){var r=UL.get(t);if(r)return r.load(e,n)},KL=["rect","circle","line","ellipse","polygon","polyline","path"],$L=fo(KL),QL=fo(KL.concat(["g"])),JL=fo(KL.concat(["g"])),tD=uc();function eD(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function nD(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var rD=function(){function t(t){var e=new xu;this.uid=Qg("ec_map_draw"),this._controller=new iL(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new xu),e.add(this._svgGroup=new xu)}return t.prototype.draw=function(t,e,n,r,i){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam;!l.childAt(0)||i?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):Wf(u,d,t);var p=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=fo(),n=fo(),r=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*i.scaleX+i.x,t[1]*i.scaleY+i.y]}function c(t){for(var e=[],n=!l&&s&&s.project,r=0;r<t.length;++r){var i=u(t[r],n);i&&e.push(i)}return e}function h(t){return{shape:{points:c(t)}}}r.removeAll(),Ni(t.geo.regions,(function(i){var c=i.name,d=e.get(c),p=n.get(c)||{},f=p.dataIdx,g=p.regionModel;if(!d){d=e.set(c,new xu),r.add(d),f=a?a.indexOfName(c):null;var y=(g=t.isGeo?o.getRegionModel(c):a?a.getItemModel(f):null).get("silent",!0);null!=y&&(d.silent=y),n.set(c,{dataIdx:f,regionModel:g})}var v=[],m=[];Ni(i.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=uD(e,l)),Ni(e,(function(t){v.push(new vf(h(t)))}))}else{var n=t.points;l&&(n=uD(n,l,!0)),Ni(n,(function(t){m.push(new _f(h(t)))}))}}));var _=u(i.getCenter(),s&&s.project);function x(e,n){if(e.length){var r=new kf({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(r),iD(t,r,f,g),oD(t,r,c,g,o,f,_),n&&(nD(r),Ni(r.states,nD))}}x(v),x(m,!0)})),e.each((function(e,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;aD(t,e,r,s,o,a),sD(t,e,r,s,o),lD(t,e,r,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var r=this._svgDispatcherMap=fo(),i=!1;Ni(this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);null!=$L.get(s)&&l instanceof Jc&&iD(t,l,u,c),l instanceof Jc&&(l.culling=!0);var h=c.get("silent",!0);(null!=h&&(l.silent=h),l.z2EmphasisLift=0,e.namedFrom)||(null!=JL.get(s)&&oD(t,l,n,c,o,u,null),aD(t,l,n,c,o,u),sD(t,l,n,c,o),null!=QL.get(s)&&("self"===lD(t,l,n,c,o)&&(i=!0),(r.get(n)||r.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(i,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){ep(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(t);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=YL(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=YL(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var r=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}i.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,lL(o,t.dx,t.dy),n.dispatchAction(Di(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,uL(o,t.scale,t.originX,t.originY),n.dispatchAction(Di(s(),{totalZoom:o.zoom,zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(e,i,o){return r.containPoint([i,o])&&!dL(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=tD(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,r){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){i._mouseDownFlag=!0})),e.on("click",(function(t){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},t}();function iD(t,e,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=eD(i),u=eD(o),c=eD(s),h=eD(a),d=t.data;if(d){var p=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=Fb(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,ep(e)}function oD(t,e,n,r,i,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=i);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Cg(e,Ag(r),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var f=e.getTextContent();if(f&&(tD(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function aD(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):kd(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function sD(t,e,n,r,i){t.data||_g({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function lD(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return mp(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var r=kd(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}(e,i,n),a}function uD(t,e,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&r.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),Ni(t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),i}var cD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id)(o=this._mapDraw)&&i.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new rD(n);i.add(o.group),o.draw(t,e,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var r=t.originalData,i=this.group;r.each(r.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new Xp({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var u=t.mainSeries.getData(),c=r.getName(n),h=u.indexOfName(c),d=r.getItemModel(n),p=d.getModel("label"),f=u.getItemGraphicEl(h);Cg(l,Ag(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){Jd(l,t)}}i.add(l)}}}))},e.type="map",e}(tx),hD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,r=n.getRegion(e);return r&&n.dataToPoint(r.getCenter())}},n}return a(e,t),e.prototype.getInitialData=function(t){for(var e=zT(this,{coordDimensions:["value"],encodeDefaulter:ji(Sv,this)}),n=fo(),r=[],i=0,o=e.count();i<o;i++){var a=e.getName(i);n.set(a,i)}return Ni(qL(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,(function(t){var i,o=t.name,a=n.get(o),s=t.properties&&t.properties.echartsStyle;null==a?(i={name:o},r.push(i)):i=e.getRawDataItem(a),s&&ki(i,s)})),e.appendData(r),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData(),i=this.getRawValue(t),o=r.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=r.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return C_("section",{header:s.join(", "),noHeader:!s.length,blocks:[C_("nameValue",{name:o,value:i})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=pb(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(j_);function dD(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),r=n?"o"+n.id:"i"+t.getMapType();(e[r]=e[r]||[]).push(t)})),Ni(e,(function(t,e){for(var n,r,i,o=(n=zi(t,(function(t){return t.getData()})),r=t[0].get("mapValueCalculation"),i={},Ni(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var r="ec-"+t.getName(n);i[r]=i[r]||[],isNaN(e)||i[r].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=i[o].length,c=0;c<u;c++)s=Math.min(s,i[o][c]),l=Math.max(l,i[o][c]),a+=i[o][c];return 0===u?NaN:"min"===r?s:"max"===r?l:"average"===r?a/u:a}))),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(o.cloneShallow()),t[a].mainSeries=t[0]}))}function pD(t){var e={};t.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var i={};Ni(n.seriesGroup,(function(e){var n=e.coordinateSystem,r=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&r.each(r.mapDimension("value"),(function(t,e){var o=r.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=i[o]||0,l=n.dataToPoint(a.getCenter());i[o]=s+1,r.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!i[e],o.setItemLayout(t,n)})),e[r]=!0}}))}var fD=Eo,gD=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Ql,n._rawTransformable=new Ql,n.name=e,n}return a(e,t),e.prototype.setBoundingRect=function(t,e,n,r){return this._rect=new Ca(t,e,n,r),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,r){this._transformTo(t,e,n,r),this._viewRect=new Ca(t,e,n,r)},e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new Ca(t,e,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[Au(t[0],e.getWidth()),Au(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=Eo([],r,t),n=Eo([],n,t),e.originX=r[0],e.originY=r[1],e.x=n[0]-r[0],e.y=n[1]-r[1],e.scaleX=e.scaleY=i,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),ha(this.transform||(this.transform=[]),e.transform||[1,0,0,1,0,0]),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],ya(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new Ql;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var r=e?this._rawTransform:this.transform;return n=n||[],r?fD(n,t,r):wo(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?fD([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var r=yD(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=yD(e);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(Ql);function yD(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var vD={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},mD=["lng","lat"],_D=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.dimensions=mD,i.type="geo",i._nameCoordMap=fo(),i.map=n;var o=r.projection,a=qL(n,r.nameMap,r.nameProperty),s=YL(n);i.resourceType=s?s.type:null;var l,u=i.regions=a.regions,c=vD[s.type];if(i._regionsMap=a.regionsMap,i.regions=a.regions,i.projection=o,o)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(o);(l=l||d.clone()).union(d)}else l=a.boundingRect;return i.setBoundingRect(l.x,l.y,l.width,l.height),i.aspectScale=o?1:eo(r.aspectScale,c.aspectScale),i._invertLongitute=!o&&c.invertLongitute,i}return a(e,t),e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new Ca(t,e,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var r=e[n];if("geoJSON"===r.type&&r.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(Ui(t)&&(t=this.getGeoCoord(t)),t){var r=this.projection;return r&&(t=r.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,r){return t.prototype.dataToPoint.call(this,e,n,r)},e.prototype.convertToPixel=function(t,e,n){var r=xD(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=xD(e);return r===this?r.pointToData(n):null},e}(gD);function xD(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",pc).models[0]||{}).coordinateSystem:null}function bD(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(t,e,n,a){for(var s=n-t,l=a-e,u=0;u<=100;u++){var c=u/100,h=o.project([t+s*c,e+l*c]);No(r,r,h),zo(i,i,h)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else;}var h,d,p,f=this.getBoundingRect(),g=t.get("layoutCenter"),y=t.get("layoutSize"),v=e.getWidth(),m=e.getHeight(),_=f.width/f.height*this.aspectScale,x=!1;if(g&&y&&(h=[Au(g[0],v),Au(g[1],m)],d=Au(y,Math.min(v,m)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(x=!0)),x)p={},_>1?(p.width=d,p.height=d/_):(p.height=d,p.width=d*_),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var b=t.getBoxLayoutParams();b.aspect=_,p=Qy(b,{width:v,height:m})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}Oi(_D,gD);var wD=function(){function t(){this.dimensions=mD}return t.prototype.create=function(t,e){var n=[];function r(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,i){var o=t.get("map"),a=new _D(o+i,o,Di({nameMap:t.get("nameMap")},r(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=bD,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),Ni(i,(function(t,i){var o=zi(t,(function(t){return t.get("nameMap")})),a=new _D(i,i,Di({nameMap:Li(o)},r(t[0])));a.zoomLimit=to.apply(null,zi(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=bD,a.resize(t[0],e),Ni(t,(function(t){t.coordinateSystem=a,function(t,e){Ni(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,r){for(var i=(t||[]).slice(),o=fo(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);return Ni(qL(e,n,r).regions,(function(t){var e=t.name,n=o.get(e),r=t.properties&&t.properties.echartsStyle;n||(n={name:e},i.push(n)),r&&ki(n,r)})),i},t}(),SD=new wD,MD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(t,e,n){var r=YL(t.map);if(r&&"geoJSON"===r.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(t,n),Qu(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=SD.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=Bi(e.regions||[],(function(e,r){var i=r.name;return i&&(e.set(i,new Kg(r,t,t.ecModel)),r.selected&&(n[i]=!0)),e}),fo()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Kg(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),r="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:t};return Hi(r)?(i.status=e,r(i)):Ui(r)?r.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(ov);function ID(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function CD(t,e,n,r){var i=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(ID(t,s),r)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(i*a,u),l)/i}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),h=(e.originY-t.y)*(a-1);t.x-=c,t.y-=h,t.updateTransform(),t.setCenter(ID(t,s),r),t.setZoom(a*i)}return{center:t.getCenter(),zoom:t.getZoom()}}var AD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return a(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,r){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new rD(n));var i=this._mapDraw;i.draw(t,e,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=t.get("silent"),this.group.add(i.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;eb(t.target,(function(t){return null!=(e=kd(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var r=this;this._mapDraw.group.traverse((function(t){var e=kd(t).eventData;if(e)return r._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(K_);function TD(t,e,n){ZL(t,e,n)}function kD(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name),Ni(n.coordinateSystem.regions,(function(t){r[t.name]=n.isSelected(t.name)||!1}));var o=[];Ni(r,(function(t,e){r[e]&&o.push(e)})),i.push({geoIndex:n.componentIndex,name:o})})),{selected:r,allSelected:i,name:t.name}}))}t.registerCoordinateSystem("geo",SD),t.registerComponentModel(MD),t.registerComponentView(AD),t.registerImpl("registerMap",TD),t.registerImpl("getMap",(function(t){return XL(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var r=t.componentType||"series";e.eachComponent({mainType:r,query:t},(function(e){var i=e.coordinateSystem;if("geo"===i.type){var o=CD(i,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===r&&Ni(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))}function LD(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){!function(t){var e=t.children,n=e.length,r=0,i=0;for(;--n>=0;){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=function(t,e,n,r){if(e){for(var i=t,o=t,a=o.parentNode.children[0],s=e,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=OD(s),o=ED(o),s&&o;){i=OD(i),a=ED(a),i.hierNode.ancestor=t;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+r(s,o);d>0&&(zD(ND(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!OD(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),o&&!ED(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function DD(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function PD(t){return arguments.length?t:BD}function RD(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function OD(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function ED(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function ND(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function zD(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function BD(t,e){return t.parentNode===e.parentNode?1:2}var VD=function(){this.parentPoint=[],this.childPoints=[]},FD=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new VD},e.prototype.buildPath=function(t,e){var n=e.childPoints,r=n.length,i=e.parentPoint,o=n[0],a=n[r-1];if(1===r)return t.moveTo(i[0],i[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Au(e.forkPosition,1),h=[];h[l]=i[l],h[u]=i[u]+(a[u]-i[u])*c,t.moveTo(i[0],i[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;d<r-1;d++){var p=n[d];t.moveTo(p[0],p[1]),h[l]=p[l],t.lineTo(h[0],h[1])}},e}(ed),GD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new xu,n}return a(e,t),e.prototype.init=function(t,e){this._controller=new iL(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var r=t.getData(),i=t.layoutInfo,o=this._mainGroup;"radial"===t.get("layout")?(o.x=i.x+i.width/2,o.y=i.y+i.height/2):(o.x=i.x,o.y=i.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var a=this._data;r.diff(a).add((function(e){jD(r,e)&&WD(r,e,null,o,t)})).update((function(e,n){var i=a.getItemGraphicEl(n);jD(r,e)?WD(r,e,i,o,t):i&&ZD(a,n,i,o,t)})).remove((function(e){var n=a.getItemGraphicEl(e);n&&ZD(a,e,n,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&r.eachItemGraphicEl((function(e,r){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:r})}))})),this._data=r},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),r=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||r.push([+e.x,+e.y])}));var i=[],o=[];ch(r,i,o);var a=this._min,s=this._max;o[0]-i[0]==0&&(i[0]=a?a[0]:i[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-i[1]==0&&(i[1]=a?a[1]:i[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new gD;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=i,this._max=o},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!dL(e,n,t)})),i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){lL(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){uL(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,r=e.scaleX||1;return((e.getZoom()-1)*n+1)/r},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}(tx);function jD(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function WD(t,e,n,r,i){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=t.tree.root,h=a.parentNode===c?a:a.parentNode||a,d=t.getItemGraphicEl(h.dataIndex),p=h.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=a.getLayout();o?((n=new vA(t,e,null,{symbolInnerColor:u,useNameLabel:!0})).x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,Wf(n,{x:g.x,y:g.y},i);var y=n.getSymbolPath();if("radial"===i.get("layout")){var v=c.children[0],m=v.getLayout(),_=v.children.length,x=void 0,b=void 0;if(g.x===m.x&&!0===a.isExpand&&v.children.length){var w={x:(v.children[0].getLayout().x+v.children[_-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[_-1].getLayout().y)/2};(x=Math.atan2(w.y-m.y,w.x-m.x))<0&&(x=2*Math.PI+x),(b=w.x<m.x)&&(x-=Math.PI)}else(x=Math.atan2(g.y-m.y,g.x-m.x))<0&&(x=2*Math.PI+x),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(b=g.x<m.x)&&(x-=Math.PI):(b=g.x>m.x)||(x-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),I=M.get("rotate"),C=I*(Math.PI/180),A=y.getTextContent();A&&(y.setTextConfig({position:M.get("position")||S,rotation:null==I?-x:C,origin:"center"}),A.setStyle("verticalAlign","middle"))}var T=s.get(["emphasis","focus"]),k="relative"===T?go(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===T?a.getAncestorsIndices():"descendant"===T?a.getDescendantIndices():null;k&&(kd(n).focus=k),function(t,e,n,r,i,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=r.__edge=new Cf({shape:YD(c,h,d,i,i)})),Wf(g,{shape:YD(c,h,d,o,a)},t));else if("polyline"===u&&"orthogonal"===c&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],m=0;m<y.length;m++){var _=y[m].getLayout();v.push([_.x,_.y])}g||(g=r.__edge=new FD({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:p}})),Wf(g,{shape:{parentPoint:[a.x,a.y],childPoints:v}},t)}g&&("polyline"!==u||e.isExpand)&&(g.useStyle(Pi({strokeNoScale:!0,fill:null},f)),wp(g,l,"lineStyle"),ep(g),s.add(g))}(i,a,c,n,f,p,g,r),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var r=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);r&&1===r.hoverState||Jd(n.__edge,e)}})}function HD(t,e,n,r,i){var o=UD(e.tree.root,t),a=o.source,s=o.sourceLayout,l=e.getItemGraphicEl(t.dataIndex);if(l){var u=e.getItemGraphicEl(a.dataIndex).__edge,c=l.__edge||(!1===a.isExpand||1===a.children.length?u:void 0),h=r.get("edgeShape"),d=r.get("layout"),p=r.get("orient"),f=r.get(["lineStyle","curveness"]);c&&("curve"===h?Zf(c,{shape:YD(d,p,f,s,s),style:{opacity:0}},r,{cb:function(){n.remove(c)},removeOpt:i}):"polyline"===h&&"orthogonal"===r.get("layout")&&Zf(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},r,{cb:function(){n.remove(c)},removeOpt:i}))}}function UD(t,e){for(var n,r=e.parentNode===t?e:e.parentNode||e;null==(n=r.getLayout());)r=r.parentNode===t?r:r.parentNode||r;return{source:r,sourceLayout:n}}function ZD(t,e,n,r,i){var o=t.tree.getNodeByDataIndex(e),a=UD(t.tree.root,o).sourceLayout,s={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Zf(n,{x:a.x+1,y:a.y+1},i,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach((function(e){HD(e,t,r,i,s)})),HD(o,t,r,i,s)}function YD(t,e,n,r,i){var o,a,s,l,u,c,h,d;if("radial"===t){u=r.rawX,h=r.rawY,c=i.rawX,d=i.rawY;var p=RD(u,h),f=RD(u,h+(d-h)*n),g=RD(c,d+(h-d)*n),y=RD(c,d);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=r.x,h=r.y,c=i.x,d=i.y,"LR"!==e&&"RL"!==e||(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=d),"TB"!==e&&"BT"!==e||(o=u,a=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var XD=uc();function qD(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,eP(e,n,t),Ni(n,(function(n){Ni(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,ji(KD,t))}))})),e.wrapMethod("cloneShallow",ji(QD,t)),Ni(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,ji($D,t))})),oo(n[e.dataType]===e)}function KD(t,e){if(XD(r=this).mainData===r){var n=Di({},XD(this).datas);n[this.dataType]=e,eP(e,n,t)}else nP(e,this.dataType,XD(this).mainData,t);var r;return e}function $D(t,e){return t.struct&&t.struct.update(),e}function QD(t,e){return Ni(XD(e).datas,(function(n,r){n!==e&&nP(n.cloneShallow(),r,e,t)})),e}function JD(t){var e=XD(this).mainData;return null==t||null==e?e:XD(e).datas[t]}function tP(){var t=XD(this).mainData;return null==t?[{data:t}]:zi(Fi(XD(t).datas),(function(e){return{type:e,data:XD(t).datas[e]}}))}function eP(t,e,n){XD(t).datas={},Ni(e,(function(e,r){nP(e,r,t,n)}))}function nP(t,e,n,r){XD(n).datas[e]=t,XD(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=JD,t.getLinkedDataAll=tP}var rP=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){Hi(t)&&(n=e,e=t,t=null),Ui(t=t||{})&&(t={order:t});var r,i=t.order||"preorder",o=this[t.attr||"children"];"preorder"===i&&(r=e.call(n,this));for(var a=0;!r&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===i&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(t+1),r.height>e&&(e=r.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].getNodeById(t);if(i)return i}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].contains(t);if(i)return i}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),iP=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,r=e.length;n<r;n++)e[n].dataIndex=-1;for(n=0,r=t.count();n<r;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,r){var i=new t(n),o=[],a=1;!function t(e,n){var r=e.value;a=Math.max(a,Wi(r)?r.length:1),o.push(e);var s=new rP(oc(e.name,""),i);n?function(t,e){var n=e.children;if(t.parentNode===e)return;n.push(t),t.parentNode=e}(s,n):i.root=s,i._nodes.push(s);var l=e.children;if(l)for(var u=0;u<l.length;u++)t(l[u],s)}(e),i.root.updateDepthAndHeight(0);var s=MS(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new SS(s,n);return l.initData(o),r&&r(l),qD({mainData:l,struct:i,structAttr:"tree"}),i.update(),i},t}();function oP(t,e,n){if(t&&Ri(e,t.type)>=0){var r=n.getData().tree.root,i=t.targetNode;if(Ui(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=t.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function aP(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function sP(t,e){return Ri(aP(t),e)>=0}function lP(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var uP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return a(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},r=new Kg(n,this,this.ecModel),i=iP.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=r),t}))}));var o=0;i.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return i.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==i;)s=o.parentNode.name+"."+s,o=o.parentNode;return C_("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=lP(r,this),n.collapsed=!r.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}(j_);function cP(t,e){for(var n,r=[t];n=r.pop();)if(e(n),n.isExpand){var i=n.children;if(i.length)for(var o=i.length-1;o>=0;o--)r.push(i[o])}}function hP(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=function(t,e){return Qy(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var r=t.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=PD((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(i=n.width,o=n.height,a=PD());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[e];n=i.pop();)if(r=n.children,n.isExpand&&r.length)for(var o=r.length-1;o>=0;o--){var a=r[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}(s),function(t,e,n){for(var r,i=[t],o=[];r=i.pop();)if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)i.push(a[s])}for(;r=o.pop();)e(r,n)}(l,LD,a),s.hierNode.modifier=-l.hierNode.prelim,cP(l,DD);var u=l,c=l,h=l;cP(l,(function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)}));var d=u===c?1:a(u,c)/2,p=d-u.getLayout().x,f=0,g=0,y=0,v=0;if("radial"===r)f=i/(c.getLayout().x+d+p),g=o/(h.depth-1||1),cP(l,(function(t){y=(t.getLayout().x+p)*f,v=(t.depth-1)*g;var e=RD(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)}));else{var m=t.getOrient();"RL"===m||"LR"===m?(g=o/(c.getLayout().x+d+p),f=i/(h.depth-1||1),cP(l,(function(t){v=(t.getLayout().x+p)*g,y="LR"===m?(t.depth-1)*f:i-(t.depth-1)*f,t.setLayout({x:y,y:v},!0)}))):"TB"!==m&&"BT"!==m||(f=i/(c.getLayout().x+d+p),g=o/(h.depth-1||1),cP(l,(function(t){y=(t.getLayout().x+p)*f,v="TB"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)})))}}}(t,e)}))}function dP(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();Di(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)}))}))}var pP=["treemapZoomToNode","treemapRender","treemapMove"];function fP(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var r=e;r&&r.depth>1;)r=r.parentNode;var i=Ov(t.ecModel,r.name||r.dataIndex+"",n);e.setVisual("decal",i)}))}var gP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return a(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};yP(n);var r=t.levels||[],i=this.designatedVisualItemStyle={},o=new Kg({itemStyle:i},this,e);r=t.levels=function(t,e){var n,r,i=$u(e.get("color")),o=$u(e.get(["aria","decal","decals"]));if(!i)return;t=t||[],Ni(t,(function(t){var e=new Kg(t),i=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||i&&"none"!==i)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(r=!0)}));var a=t[0]||(t[0]={});n||(a.color=i.slice());!r&&o&&(a.decal=o.slice());return t}(r,e);var a=zi(r||[],(function(t){return new Kg(t,o,e)}),this),s=iP.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),r=n?a[n.depth]:null;return t.parentModel=r||o,t}))}));return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t);return C_("nameValue",{name:r.getName(t),value:i})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=lP(r,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},Di(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=fo(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){fP(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,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}(j_);function yP(t){var e=0;Ni(t.children,(function(t){yP(t);var n=t.value;Wi(n)&&(n=n[0]),e+=n}));var n=t.value;Wi(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),Wi(t.value)?t.value[0]=n:t.value=n}var vP=function(){function t(t){this.group=new xu,t.add(this.group)}return t.prototype.render=function(t,e,n,r){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,u,r),Jy(o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var r=t;r;r=r.parentNode){var i=oc(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:r,text:i,width:a})}},t.prototype._renderContent=function(t,e,n,r,i,o,a){for(var s,l,u,c,h,d,p,f,g,y=0,v=e.emptyItemWidth,m=t.get(["breadcrumb","height"]),_=(s=e.pos,l=e.box,c=l.width,h=l.height,d=Au(s.left,c),p=Au(s.top,h),f=Au(s.right,c),g=Au(s.bottom,h),(isNaN(d)||isNaN(parseFloat(s.left)))&&(d=0),(isNaN(f)||isNaN(parseFloat(s.right)))&&(f=c),(isNaN(p)||isNaN(parseFloat(s.top)))&&(p=0),(isNaN(g)||isNaN(parseFloat(s.bottom)))&&(g=h),u=Fy(u||0),{width:Math.max(f-d-u[1]-u[3],0),height:Math.max(g-p-u[0]-u[2],0)}),x=e.totalWidth,b=e.renderList,w=r.getModel("itemStyle").getItemStyle(),S=b.length-1;S>=0;S--){var M=b[S],I=M.node,C=M.width,A=M.text;x>_.width&&(x-=C-v,C=v,A=null);var T=new vf({shape:{points:mP(y,0,C,m,S===b.length-1,0===S)},style:Pi(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new yd({style:Tg(i,{text:A})}),textConfig:{position:"inside"},z2:1e5,onclick:ji(a,I)});T.disableLabelAnimation=!0,T.getTextContent().ensureState("emphasis").style=Tg(o,{text:A}),T.ensureState("emphasis").style=w,mp(T,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(T),_P(T,t,I),y+=C+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function mP(t,e,n,r,i,o){var a=[[i?t:t-5,e],[t+n,e],[t+n,e+r],[i?t:t-5,e+r]];return!o&&a.splice(2,0,[t+n+5,e+r/2]),!i&&a.push([t,e+r/2]),a}function _P(t,e,n){kd(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&lP(n,e)}}var xP=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,r,i){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:r,easing:i}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var o=this._storage[r];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();var bP=xu,wP=pd,SP="label",MP="upperLabel",IP=Tc([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),CP=function(t){var e=IP(t);return e.stroke=e.fill=e.lineWidth=null,e},AP=uc(),TP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return a(e,t),e.prototype.render=function(t,e,n,r){if(!(Ri(e.findComponents({mainType:"series",subType:"treemap",query:r}),t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var i=oP(r,["treemapZoomToNode","treemapRootToNode"],t),o=r&&r.type,a=t.layoutInfo,s=!this._oldTree,l=this._storage,u="treemapRootToNode"===o&&i&&l?{rootNodeGroup:l.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,c=this._giveContainerGroup(a),h=t.get("animation"),d=this._doRender(c,t,u);!h||s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?d.renderFinally():this._doAnimation(c,d,t,u),this._resetController(n),this._renderBreadcrumb(t,n,i)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new bP,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var r=e.getData().tree,i=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function u(t,r,i,u){return function(t,e,n,r,i,o,a,s,l,u){if(!a)return;var c=a.getLayout(),h=t.getData(),d=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var p=c.width,f=c.height,g=c.borderWidth,y=c.invisible,v=a.getRawIndex(),m=s&&s.getRawIndex(),_=a.viewChildren,x=c.upperHeight,b=_&&_.length,w=d.getModel("itemStyle"),S=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),I=d.getModel(["select","itemStyle"]),C=w.get("borderRadius")||0,A=G("nodeGroup",bP);if(!A)return;if(l.add(A),A.x=c.x||0,A.y=c.y||0,A.markRedraw(),AP(A).nodeWidth=p,AP(A).nodeHeight=f,c.isAboveViewRoot)return A;var T=G("background",wP,u,20);T&&N(A,T,b&&c.upperLabelHeight);var k=d.getModel("emphasis"),L=k.get("focus"),D=k.get("blurScope"),P=k.get("disabled"),R="ancestor"===L?a.getAncestorsIndices():"descendant"===L?a.getDescendantIndices():L;if(b)Mp(A)&&Sp(A,!1),T&&(Sp(T,!P),h.setItemGraphicEl(a.dataIndex,T),_p(T,R,D));else{var O=G("content",wP,u,30);O&&z(A,O),T.disableMorphing=!0,T&&Mp(T)&&Sp(T,!1),Sp(A,!P),h.setItemGraphicEl(a.dataIndex,A);var E=d.getShallow("cursor");E&&O.attr("cursor",E),_p(A,R,D)}return A;function N(e,n,r){var i=kd(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:C}),y)B(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=CP(w);l.fill=s;var u=IP(S);u.fill=S.get("borderColor");var c=IP(M);c.fill=M.get("borderColor");var h=IP(I);if(h.fill=I.get("borderColor"),r){var d=p-2*g;V(n,s,o.opacity,{x:g,y:0,width:d,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,ep(n)}e.add(n)}function z(e,n){var r=kd(n);r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex;var i=Math.max(p-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:o,r:C}),y)B(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=CP(w);u.fill=l,u.decal=s.decal;var c=IP(S),h=IP(M),d=IP(I);V(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,ep(n)}e.add(n)}function B(t){!t.invisible&&o.push(t)}function V(e,n,r,i){var o=d.getModel(i?MP:SP),s=oc(d.get("name"),null),l=o.getShallow("show");Cg(e,Ag(d,i?MP:SP),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var h=u.style,p=io(h.padding||0);i&&(e.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((i?i.width:e.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:e.shape.height)-p[0]-p[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",F(h,i,c);var f=u.getState("emphasis");F(f?f.style:null,i,c)}}function F(e,n,r){var i=e?e.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+i:i}}function G(t,r,o,a){var s=null!=m&&n[t][m],l=i[t];return s?(n[t][m]=null,j(l,s)):y||((s=new r)instanceof Jc&&(s.z2=function(t,e){return 100*t+e}(o,a)),W(l,s)),e[t][v]=s}function j(t,e){var n=t[v]={};e instanceof bP?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Di({},e.shape)}function W(t,e){var n=t[v]={},o=a.parentNode,s=e instanceof xu;if(o&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[o.getRawIndex()];!r&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}(e,a,s,n,o,l,t,r,i,u)}!function t(e,n,r,i,o){i?(n=e,Ni(e,(function(t,e){!t.isRemoved()&&s(e,e)}))):new Jw(n,e,a,a).add(s).update(s).remove(ji(s,null)).execute();function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,c=null!=s?n[s]:null,h=u(l,c,r,o);h&&t(l&&l.viewChildren||[],c&&c.viewChildren||[],h,i,o+1)}}(r.root?[r.root]:[],i&&i.root?[i.root]:[],t,r===i||!i,0);var c=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&Ni(t,(function(t,n){var r=e[n];Ni(t,(function(t){t&&(r.push(t),AP(t).willDelete=!0)}))})),e}(s);if(this._oldTree=r,this._storage=a,this._controllerHost){var h=this.seriesModel.layoutInfo,d=r.root.getLayout();d.width===h.width&&d.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:o,willDeleteEls:c,renderFinally:function(){Ni(c,(function(t){Ni(t,(function(t){t.parent&&t.parent.remove(t)}))})),Ni(l,(function(t){t.invisible=!0,t.dirty()}))}}},e.prototype._doAnimation=function(t,e,n,r){var i=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Hi(i)?0:i)||0,s=(Hi(o)?null:o)||"cubicOut",l=new xP;Ni(e.willDeleteEls,(function(t,e){Ni(t,(function(t,n){if(!t.invisible){var i,o=t.parent,u=AP(o);if(r&&"drillDown"===r.direction)i=o===r.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),i="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}i&&l.add(t,i,a,0,s)}}))})),Ni(this._storage,(function(t,n){Ni(t,(function(t,r){var i=e.lastsForAnimation[n][r],o={};i&&(t instanceof xu?null!=i.oldX&&(o.x=t.x,o.y=t.y,t.x=i.oldX,t.y=i.oldY):(i.oldShape&&(o.shape=Di({},t.shape),t.setShape(i.oldShape)),i.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))}))}),this),this._state="animating",l.finished(Gi((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),e||((e=this._controller=new iL(t.getZr())).enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),e.on("pan",Gi(this._onPan,this)),e.on("zoom",Gi(this._onZoom,this)));var r=new Ca(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,n){return r.contain(e,n)}))},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY,r=t.scale;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var a,s=new Ca(o.x,o.y,o.width,o.height),l=this._controllerHost;a=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=r,a){var c=a.min||0,h=a.max||1/0;u=Math.max(Math.min(h,u),c)}var d=u/l.zoom;l.zoom=u;var p=this.seriesModel.layoutInfo,f=[1,0,0,1,0,0];pa(f,f,[-(e-=p.x),-(n-=p.y)]),ga(f,f,[d,d]),pa(f,f,[e,n]),s.applyTransform(f),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var r=e.findTarget(t.offsetX,t.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)e._rootToNode(r);else if("zoomToNode"===n)e._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Zy(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var r=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new vP(this.group))).render(t,e,n.node,(function(e){"animating"!==r._state&&(sP(t.getViewRoot(),e)?r._rootToNode({node:e}):r._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(t,e),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:r,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(tx);var kP=Ni,LP=Xi,DP=-1,PP=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=Ti(e);this.type=r,this.mappingMethod=n,this._normalizeData=jP[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(RP(i),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,Ni(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(i)):"category"===n?i.categories?function(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(kP(e,(function(t,e){n[t]=e})),!Wi(r)){var i=[];Xi(r)?kP(r,(function(t,e){var r=n[e];i[null!=r?r:DP]=t})):i[-1]=r,r=GP(t,i)}for(var o=e.length-1;o>=0;o--)null==r[o]&&(delete n[e[o]],e.pop())}(i):RP(i,!0):(oo("linear"!==n||i.dataExtent),RP(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return Gi(this._normalizeData,this)},t.listVisualTypes=function(){return Fi(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){Xi(t)?Ni(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var i,o=Wi(e)?[]:Xi(e)?{}:(i=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(r,t,e);i?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,r={};return e&&kP(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(Wi(t))t=t.slice();else{if(!LP(t))return[];var e=[];kP(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var r,i=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||Ui(s)&&s===t+"")return o;n&&h(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(WP(c[1],t,u[1]))return o}else if(u[1]===1/0){if(WP(c[0],u[0],t))return o}else if(WP(c[0],u[0],t)&&WP(c[1],t,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:r;function h(e,n){var o=Math.abs(e-t);o<i&&(i=o,r=n)}},t.visualHandlers={color:{applyVisual:NP("color"),getColorMapper:function(){var t=this.option;return Gi("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),zP.call(this,t)}:function(e,n,r){var i=!!r;return!n&&(e=this._normalizeData(e)),r=Vs(e,t.parsedVisual,r),i?r:js(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return js(Vs(t,this.option.parsedVisual),"rgba")},category:zP,piecewise:function(t,e){var n=FP.call(this,e);return null==n&&(n=js(Vs(t,this.option.parsedVisual),"rgba")),n},fixed:BP}},colorHue:OP((function(t,e){return Fs(t,e)})),colorSaturation:OP((function(t,e){return Fs(t,null,e)})),colorLightness:OP((function(t,e){return Fs(t,null,null,e)})),colorAlpha:OP((function(t,e){return Gs(t,e)})),decal:{applyVisual:NP("decal"),_normalizedToVisual:{linear:null,category:zP,piecewise:null,fixed:null}},opacity:{applyVisual:NP("opacity"),_normalizedToVisual:VP([0,1])},liftZ:{applyVisual:NP("liftZ"),_normalizedToVisual:{linear:BP,category:BP,piecewise:BP,fixed:BP}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:EP,category:zP,piecewise:function(t,e){var n=FP.call(this,e);return null==n&&(n=EP.call(this,t)),n},fixed:BP}},symbolSize:{applyVisual:NP("symbolSize"),_normalizedToVisual:VP([0,1])}},t}();function RP(t,e){var n=t.visual,r=[];Xi(n)?kP(n,(function(t){r.push(t)})):null!=n&&r.push(n);e||1!==r.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(r[1]=r[0]),GP(t,r)}function OP(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:VP([0,1])}}function EP(t){var e=this.option.visual;return e[Math.round(Cu(t,[0,1],[0,e.length-1],!0))]||{}}function NP(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function zP(t){var e=this.option.visual;return e[this.option.loop&&t!==DP?t%e.length:t]}function BP(){return this.option.visual[0]}function VP(t){return{linear:function(e){return Cu(e,t,this.option.visual,!0)},category:zP,piecewise:function(e,n){var r=FP.call(this,n);return null==r&&(r=Cu(e,t,this.option.visual,!0)),r},fixed:BP}}function FP(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=n[PP.findPieceIndex(t,n)];if(r&&r.visual)return r.visual[this.type]}}function GP(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=zi(e,(function(t){return Ns(t)||[0,0,0,1]}))),e}var jP={linear:function(t){return Cu(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=PP.findPieceIndex(t,e,!0);if(null!=n)return Cu(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?DP:e},fixed:_o};function WP(t,e,n){return t?e<=n:e<n}var HP=uc(),UP={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||ZP(e,{},t.getViewRoot().getAncestors(),t)}};function ZP(t,e,n,r){var i=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=i.getModel("itemStyle"),u=function(t,e,n){var r=Di({},e),i=n.designatedVisualItemStyle;return Ni(["color","colorAlpha","colorSaturation"],(function(n){i[n]=e[n];var o=t.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}(l,e,r),c=a.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(h=function(t,e){return null!=e?Fs(e,null,null,t):null}(d,s=YP(u))),c.stroke=h;var p=t.viewChildren;if(p&&p.length){var f=function(t,e,n,r,i,o){if(!o||!o.length)return;var a=qP(e,"color")||null!=i.color&&"none"!==i.color&&(qP(e,"colorAlpha")||qP(e,"colorSaturation"));if(!a)return;var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new PP(h);return HP(d).drColorMappingBy=c,d}(0,i,o,0,u,p);Ni(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,r,i,o){var a=Di({},e);if(i){var s=i.type,l="color"===s&&HP(i).drColorMappingBy,u="index"===l?r:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}(i,u,t,e,f,r);ZP(t,o,n,r)}}))}else s=YP(u),c.fill=s}}function YP(t){var e=XP(t,"color");if(e){var n=XP(t,"colorAlpha"),r=XP(t,"colorSaturation");return r&&(e=Fs(e,null,null,r)),n&&(e=Gs(e,n)),e}}function XP(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function qP(t,e){var n=t.get(e);return Wi(n)&&n.length?{name:e,range:n}:null}var KP=Math.max,$P=Math.min,QP=to,JP=Ni,tR=["itemStyle","borderWidth"],eR=["itemStyle","gapWidth"],nR=["upperLabel","show"],rR=["upperLabel","height"],iR={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),o=n.getHeight(),a=t.option,s=Qy(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Au(QP(s.width,l[0]),i),c=Au(QP(s.height,l[1]),o),h=r&&r.type,d=oP(r,["treemapZoomToNode","treemapRootToNode"],t),p="treemapRender"===h||"treemapMove"===h?r.rootRect:null,f=t.getViewRoot(),g=aP(f);if("treemapMove"!==h){var y="treemapZoomToNode"===h?function(t,e,n,r,i){var o,a=(e||{}).node,s=[r,i];if(!a||a===n)return s;var l=r*i,u=l*t.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var c=0,h=o.children,d=0,p=h.length;d<p;d++)c+=h[d].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=o.getModel(),y=g.get(tR);(u+=4*y*y+(3*y+Math.max(y,uR(g)))*Math.pow(u,.5))>Ru&&(u=Ru),a=o}u<l&&(u=l);var v=Math.pow(u/l,.5);return[r*v,i*v]}(t,d,f,u,c):p?[p.width,p.height]:[u,c],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var m={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};f.hostTree.clearLayouts();var _={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};f.setLayout(_),oR(f,m,!1,0),_=f.getLayout(),JP(g,(function(t,e){var n=(g[e+1]||f).getValue();t.setLayout(Di({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var x=t.getData().tree.root;x.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;var a=[o.width/2,o.height/2],s=i;for(;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}(s,p,d),!0),t.setLayoutInfo(s),lR(x,new Ca(-s.x,-s.y,i,o),g,f,0)}};function oR(t,e,n,r){var i,o;if(!t.isRemoved()){var a=t.getLayout();i=a.width,o=a.height;var s=t.getModel(),l=s.get(tR),u=s.get(eR)/2,c=uR(s),h=Math.max(l,c),d=l-u,p=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0);var f=(i=KP(i-2*d,0))*(o=KP(o-d-p,0)),g=function(t,e,n,r,i,o){var a=t.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=r.leafDepth&&r.leafDepth<=o;if(i&&!l)return t.viewChildren=[];a=Vi(a,(function(t){return!t.isRemoved()})),function(t,e){e&&t.sort((function(t,n){var r="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===r?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:r}))}(a,s);var u=function(t,e,n){for(var r=0,i=0,o=e.length;i<o;i++)r+=e[i].getValue();var a,s=t.get("visualDimension");e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],JP(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN];return{sum:r,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,r,i){if(!r)return n;for(var o=t.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var d=a[c].getValue()/u.sum*n;a[c].setLayout({area:d})}l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0);return t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}(t,s,f,e,n,r);if(g.length){var y={x:d,y:p,width:i,height:o},v=$P(i,o),m=1/0,_=[];_.area=0;for(var x=0,b=g.length;x<b;){var w=g[x];_.push(w),_.area+=w.getLayout().area;var S=aR(_,v,e.squareRatio);S<=m?(x++,m=S):(_.area-=_.pop().getLayout().area,sR(_,v,y,u,!1),v=$P(y.width,y.height),_.length=_.area=0,m=1/0)}if(_.length&&sR(_,v,y,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(x=0,b=g.length;x<b;x++)oR(g[x],e,n,r+1)}}}function aR(t,e,n){for(var r=0,i=1/0,o=0,a=void 0,s=t.length;o<s;o++)(a=t[o].getLayout().area)&&(a<i&&(i=a),a>r&&(r=a));var l=t.area*t.area,u=e*e*n;return l?KP(u*r/l,l/(u*i)):1/0}function sR(t,e,n,r,i){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=t.length;h<d;h++){var p=t[h],f={},g=c?p.getLayout().area/c:0,y=f[l[a]]=KP(c-2*r,0),v=n[s[o]]+n[l[o]]-u,m=h===d-1||v<g?v:g,_=f[l[o]]=KP(m-2*r,0);f[s[a]]=n[s[a]]+$P(r,y/2),f[s[o]]=u+$P(r,_/2),u+=m,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function lR(t,e,n,r,i){var o=t.getLayout(),a=n[i],s=a&&a===t;if(!(a&&!s||i===n.length&&t!==r)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new Ca(e.x-o.x,e.y-o.y,e.width,e.height);JP(t.viewChildren||[],(function(t){lR(t,l,n,r,i+1)}))}}function uR(t){return t.get(nR)?t.get(rR):0}function cR(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),r=t.getGraph().data,i=n.mapArray(n.getName);r.filterSelf((function(t){var n=r.getItemModel(t).getShallow("category");if(null!=n){Yi(n)&&(n=i[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0}))}))}function hR(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),r=t.getData(),i={};n.each((function(r){var o=n.getName(r);i["ec-"+o]=r;var a=n.getItemModel(r),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}})),n.count()&&r.each((function(t){var e=r.getItemModel(t).getShallow("category");if(null!=e){Ui(e)&&(e=i["ec-"+e]);var o=n.getItemVisual(e,"style");Di(r.ensureUniqueItemVisual(t,"style"),o);for(var a=["symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)r.setItemVisual(t,a[s],n.getItemVisual(e,a[s]))}}))}))}function dR(t){return t instanceof Array||(t=[t,t]),t}function pR(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),r=dR(t.get("edgeSymbol")),i=dR(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var r=n.getItemModel(t),i=e.getEdgeByIndex(t),o=dR(r.getShallow("symbol",!0)),a=dR(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(Di(l,s),l.stroke){case"source":var u=i.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=i.node2.getVisual("style");l.stroke=u&&u.fill}o[0]&&i.setVisual("fromSymbol",o[0]),o[1]&&i.setVisual("toSymbol",o[1]),a[0]&&i.setVisual("fromSymbolSize",a[0]),a[1]&&i.setVisual("toSymbolSize",a[1])}))}))}var fR="--\x3e",gR=function(t){return t.get("autoCurveness")||null},yR=function(t,e){var n=gR(t),r=20,i=[];if(Yi(n))r=n;else if(Wi(n))return void(t.__curvenessList=n);e>r&&(r=e);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=i},vR=function(t,e,n){var r=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[n.uid,r,i].join(fR)},mR=function(t){var e=t.split(fR);return[e[0],e[2],e[1]].join(fR)},_R=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function xR(t,e,n,r){var i=gR(e),o=Wi(i);if(!i)return null;var a=function(t,e){var n=vR(t.node1,t.node2,e);return e.__edgeMap[n]}(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=function(t,e){return _R(vR(t.node1,t.node2,e),e)+_R(vR(t.node2,t.node1,e),e)}(t,e);yR(e,u),t.lineStyle=t.lineStyle||{};var c=vR(t.node1,t.node2,e),h=e.__curvenessList,d=o||u%2?0:1;if(a.isForward)return h[d+s];var p=mR(c),f=_R(p,e),g=h[s+f+d];return r?o?i&&0===i[0]?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:h[s+f+d]}function bR(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),wR(n,t)}}function wR(t,e){t.eachEdge((function(t,n){var r=no(t.getModel().get(["lineStyle","curveness"]),-xR(t,e,n,!0),0),i=So(t.node1.getLayout()),o=So(t.node2.getLayout()),a=[i,o];+r&&a.push([(i[0]+o[0])/2-(i[1]-o[1])*r,(i[1]+o[1])/2-(o[0]-i[0])*r]),t.setLayout(a)}))}function SR(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var r=t.getData(),i=[];Ni(n.dimensions,(function(t){i=i.concat(r.mapDimensionsAll(t))}));for(var o=0;o<r.count();o++){for(var a=[],s=!1,l=0;l<i.length;l++){var u=r.get(i[l],o);isNaN(u)||(s=!0),a.push(u)}s?r.setItemLayout(o,n.dataToPoint(a)):r.setItemLayout(o,[NaN,NaN])}wR(r.graph,t)}else e&&"none"!==e||bR(t)}))}function MR(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,r=e.scaleX;return((e.getZoom()-1)*n+1)/r}function IR(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var CR=Math.PI,AR=[];function TR(t,e,n,r){var i=t.coordinateSystem;if(!i||"view"===i.type){var o=i.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),h){if(n){var d=i.pointToData(r),p=d[0],f=d[1],g=[p-l,f-u];Lo(g,g),ko(g,g,c),n.setLayout([l+g[0],u+g[1]],!0),LR(n,t.get(["circular","rotateLabel"]),l,u)}kR[e](t,s,a,c,l,u,h),s.eachEdge((function(e,n){var r,i=no(e.getModel().get(["lineStyle","curveness"]),xR(e,t,n),0),o=So(e.node1.getLayout()),a=So(e.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+i&&(r=[l*(i*=3)+s*(1-i),u*i+c*(1-i)]),e.setLayout([o,a,r])}))}}}var kR={value:function(t,e,n,r,i,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,r,i,o,a){var s=0;AR.length=a;var l=MR(t);e.eachNode((function(t){var e=IR(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/r);isNaN(n)&&(n=CR/2),AR[t.dataIndex]=n,s+=2*n}));var u=(2*CR-s)/a/2,c=0;e.eachNode((function(t){var e=u+AR[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=e}))}};function LR(t,e,n,r){var i=t.getGraphicEl();if(i){var o=t.getModel().get(["label","rotate"])||0,a=i.getSymbolPath();if(e){var s=t.getLayout(),l=Math.atan2(s[1]-r,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var c=u?"left":"right";a.setTextConfig({rotation:-l,position:c,origin:"center"});var h=a.ensureState("emphasis");Di(h.textConfig||(h.textConfig={}),{position:c})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function DR(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&TR(t,"symbolSize")}))}var PR=Co;function RR(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},r=t.getGraph(),i=r.data,o=r.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?i.each((function(t){var e=i.getId(t);i.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&TR(t,"value"):bR(t);var l=i.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength"),d=Wi(c)?c:[c,c],p=Wi(h)?h:[h,h];p=[p[1],p[0]];var f=i.mapArray("value",(function(t,e){var n=i.getItemLayout(e),r=Cu(t,l,d);return isNaN(r)&&(r=(d[0]+d[1])/2),{w:r,rep:r,fixed:i.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(e,n){var i=r.getEdgeByIndex(n),o=Cu(e,u,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=i.getModel(),s=no(i.getModel().get(["lineStyle","curveness"]),-xR(i,t,n,!0),0);return{n1:f[i.node1.dataIndex],n2:f[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),y=e.getBoundingRect(),v=function(t,e,n){for(var r=t,i=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var h=r[c];h.p||(h.p=bo(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=So(h.p),h.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){r[t].fixed=!0},setUnfixed:function(t){r[t].fixed=!1},beforeStep:function(t){d=t},afterStep:function(t){p=t},step:function(t){d&&d(r,i);for(var e=[],n=r.length,o=0;o<i.length;o++){var a=i[o];if(!a.ignoreForceLayout){var s=a.n1;Ao(e,(y=a.n2).p,s.p);var c=To(e)-a.d,h=y.w/(s.w+y.w);isNaN(h)&&(h=0),Lo(e,e),!s.fixed&&PR(s.p,s.p,e,h*c*g),!y.fixed&&PR(y.p,y.p,e,-(1-h)*c*g)}}for(o=0;o<n;o++)(_=r[o]).fixed||(Ao(e,l,_.p),PR(_.p,_.p,e,u*g));for(o=0;o<n;o++){s=r[o];for(var f=o+1;f<n;f++){var y;Ao(e,(y=r[f]).p,s.p),0===(c=To(e))&&(Mo(e,Math.random()-.5,Math.random()-.5),c=1);var v=(s.rep+y.rep)/c/c;!s.fixed&&PR(s.pp,s.pp,e,v),!y.fixed&&PR(y.pp,y.pp,e,-v)}}var m=[];for(o=0;o<n;o++){var _;(_=r[o]).fixed||(Ao(m,_.p,_.pp),PR(_.p,_.p,m,g),wo(_.pp,_.p))}var x=(g*=.992)<.01;p&&p(r,i,x),t&&t(x)}}}(f,g,{rect:y,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep((function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&wo(t[n].p,r.getNodeByIndex(n).getLayout())})),v.afterStep((function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||r.getNodeByIndex(a).setLayout(t[a].p),n[i.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],u=r.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,d=u.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],wo(d[0],c),wo(d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}})),t.forceLayout=v,t.preservedPoints=n,v.step()}else t.forceLayout=null}))}function OR(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var r=t.get("coordinateSystem");if(!r||"view"===r){var i=t.getData(),o=[],a=[];ch(i.mapArray((function(t){var e=i.getItemModel(t);return[+e.get("x"),+e.get("y")]})),o,a),a[0]-o[0]==0&&(a[0]+=1,o[0]-=1),a[1]-o[1]==0&&(a[1]+=1,o[1]-=1);var s=(a[0]-o[0])/(a[1]-o[1]),l=function(t,e,n){return Qy(Di(t.getBoxLayoutParams(),{aspect:n}),{width:e.getWidth(),height:e.getHeight()})}(t,e,s);isNaN(s)&&(o=[l.x,l.y],a=[l.x+l.width,l.y+l.height]);var u=a[0]-o[0],c=a[1]-o[1],h=l.width,d=l.height,p=t.coordinateSystem=new gD;p.zoomLimit=t.get("scaleLimit"),p.setBoundingRect(o[0],o[1],u,c),p.setViewRect(l.x,l.y,h,d),p.setCenter(t.get("center"),e),p.setZoom(t.get("zoom")),n.push(p)}})),n}var ER=wf.prototype,NR=Cf.prototype,zR=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function BR(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}a(e,t)}(zR);var VR=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return a(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zR},e.prototype.buildPath=function(t,e){BR(e)?ER.buildPath.call(this,t,e):NR.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return BR(this.shape)?ER.pointAt.call(this,t):NR.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=BR(e)?[e.x2-e.x1,e.y2-e.y1]:NR.tangentAt.call(this,t);return Lo(n,n)},e}(ed),FR=["fromSymbol","toSymbol"];function GR(t){return"_"+t+"Type"}function jR(t,e,n){var r=e.getItemVisual(n,t);if(!r||"none"===r)return r;var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=fb(i);return r+l+gb(a||0,l)+(o||"")+(s||"")}function WR(t,e,n){var r=e.getItemVisual(n,t);if(r&&"none"!==r){var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=fb(i),u=gb(a||0,l),c=pb(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function HR(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var UR=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createLine(e,n,r),i}return a(e,t),e.prototype._createLine=function(t,e,n){var r=t.hostModel,i=function(t){var e=new VR({name:"line",subPixelOptimize:!0});return HR(e.shape,t),e}(t.getItemLayout(e));i.shape.percent=0,Hf(i,{shape:{percent:1}},r,e),this.add(i),Ni(FR,(function(n){var r=WR(n,t,e);this.add(r),this[GR(n)]=jR(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};HR(a.shape,o),Wf(i,a,r,e),Ni(FR,(function(n){var r=jR(n,t,e),i=GR(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=WR(n,t,e);this.add(o)}this[i]=r}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(e),p=d.getModel("emphasis");o=p.getModel("lineStyle").getLineStyle(),a=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),u=p.get("disabled"),c=p.get("focus"),h=p.get("blurScope"),l=Ag(d)}var f=t.getItemVisual(e,"style"),g=f.stroke;i.useStyle(f),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=a,i.ensureState("select").style=s,Ni(FR,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<Ed.length;n++){var r=Ed[n],o=i.getState(r);if(o){var a=o.style||{},s=e.ensureState(r),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var y=r.getRawValue(e);Cg(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return r.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==y?t.getName(e):isFinite(y)?Tu(y):y)+""});var v=this.getTextContent();if(v){var m=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=m.get("position")||"middle";var _=m.get("distance");Wi(_)||(_=[_,_]),v.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),mp(this,c,h,u)},e.prototype.highlight=function(){ip(this)},e.prototype.downplay=function(){op(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");HR(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),r=t.getTextContent();if(e||n||r&&!r.ignore){for(var i=1,o=this.parent;o;)o.scaleX&&(i/=o.scaleX),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=Ao([],u,l);if(Lo(c,c),e&&(e.setPosition(l),S(e,0),e.scaleX=e.scaleY=i*s,e.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var h=void 0,d=void 0,p=r.__labelDistance,f=p[0]*i,g=p[1]*i,y=s/2,v=a.tangentAt(y),m=[v[1],-v[0]],_=a.pointAt(y);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var x=v[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var b=-Math.atan2(v[1],v[0]);u[0]<l[0]&&(b=Math.PI+b),r.rotation=b}var w=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,d="top";break;default:w=0,d="middle"}switch(r.__position){case"end":r.x=c[0]*f+u[0],r.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*f+l[0],r.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=f*x+l[0],r.y=l[1]+w,h=v[0]<0?"right":"left",r.originX=-f*x,r.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=_[0],r.y=_[1]+w,h="center",r.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-f*x+u[0],r.y=u[1]+w,h=v[0]>=0?"right":"left",r.originX=f*x,r.originY=-w}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||d,align:r.__align||h})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var r=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else t.attr("rotation",n)}},e}(xu),ZR=function(){function t(t){this.group=new xu,this._LineCtor=t||UR}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=t,i||r.removeAll();var o=YR(t);t.diff(i).add((function(n){e._doAdd(t,n,o)})).update((function(n,r){e._doUpdate(i,t,r,n,o)})).remove((function(t){r.remove(i.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=YR(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=t.start;r<t.end;r++){if(qR(e.getItemLayout(r))){var i=new this._LineCtor(e,r,this._seriesScope);i.traverse(n),this.group.add(i),e.setItemGraphicEl(r,i),this._progressiveEls.push(i)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){bg(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(qR(t.getItemLayout(e))){var r=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,r),this.group.add(r)}},t.prototype._doUpdate=function(t,e,n,r,i){var o=t.getItemGraphicEl(n);qR(e.getItemLayout(r))?(o?o.updateData(e,r,i):o=new this._LineCtor(e,r,i),e.setItemGraphicEl(r,o),this.group.add(o)):this.group.remove(o)},t}();function YR(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Ag(e)}}function XR(t){return isNaN(t[0])||isNaN(t[1])}function qR(t){return t&&!XR(t[0])&&!XR(t[1])}var KR=[],$R=[],QR=[],JR=ds,tO=Ro,eO=Math.abs;function nO(t,e,n){for(var r,i=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){KR[0]=JR(i[0],o[0],a[0],c),KR[1]=JR(i[1],o[1],a[1],c),(p=eO(tO(KR,e)-l))<s&&(s=p,r=c)}for(var h=0;h<32;h++){var d=r+u;$R[0]=JR(i[0],o[0],a[0],r),$R[1]=JR(i[1],o[1],a[1],r),QR[0]=JR(i[0],o[0],a[0],d),QR[1]=JR(i[1],o[1],a[1],d);var p=tO($R,e)-l;if(eO(p)<.01)break;var f=tO(QR,e)-l;u/=2,p<0?f>=0?r+=u:r-=u:f>=0?r-=u:r+=u}return r}function rO(t,e){var n=[],r=gs,i=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[So(l[0]),So(l[1])],l[2]&&l.__original.push(So(l[2])));var h=l.__original;if(null!=l[2]){if(wo(i[0],h[0]),wo(i[1],h[2]),wo(i[2],h[1]),u&&"none"!==u){var d=IR(t.node1),p=nO(i,h[0],d*e);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){d=IR(t.node2),p=nO(i,h[1],d*e);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}wo(l[0],i[0]),wo(l[1],i[2]),wo(l[2],i[1])}else{if(wo(o[0],h[0]),wo(o[1],h[1]),Ao(a,o[1],o[0]),Lo(a,a),u&&"none"!==u){d=IR(t.node1);Co(o[0],o[0],a,d*e)}if(c&&"none"!==c){d=IR(t.node2);Co(o[1],o[1],a,-d*e)}wo(l[0],o[0]),wo(l[1],o[1])}}))}function iO(t){return"view"===t.type}var oO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(t,e){var n=new wA,r=new ZR,i=this.group;this._controller=new iL(e.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(iO(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):Wf(s,l,t)}rO(t.getGraph(),MR(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var p=t.get("layout");u.graph.eachNode((function(e){var n=e.dataIndex,i=e.getGraphicEl(),o=e.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",(function(o){switch(p){case"force":h.warmUp(),!r._layouting&&r._startForceLayoutIteration(h,d),h.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),e.setLayout({fixed:!0},!0),TR(t,"symbolSize",e,[o.offsetX,o.offsetY]),r.updateLayout(t);break;default:u.setItemLayout(n,[i.x,i.y]),wR(t.getGraph(),t),r.updateLayout(t)}})).on("dragend",(function(){h&&h.setUnfixed(n)})),i.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(kd(i).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(kd(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),y=u.getLayout("cy");u.graph.eachNode((function(t){LR(t,f,g,y)})),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function r(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(r,16):r())}))}()},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!dL(e,n,t)})),iO(t.coordinateSystem)?(i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){lL(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){uL(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(),rO(t.getGraph(),MR(t)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=MR(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){rO(t.getGraph(),MR(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}(tx);function aO(t){return"_EC_"+t}var sO=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[aO(t)]){var r=new lO(t,e);return r.hostGraph=this,this.nodes.push(r),n[aO(t)]=r,r}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[aO(t)]},t.prototype.addEdge=function(t,e,n){var r=this._nodesMap,i=this._edgesMap;if(Yi(t)&&(t=this.nodes[t]),Yi(e)&&(e=this.nodes[e]),t instanceof lO||(t=r[aO(t)]),e instanceof lO||(e=r[aO(e)]),t&&e){var o=t.id+"-"+e.id,a=new uO(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),i[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof lO&&(t=t.id),e instanceof lO&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},t.prototype.breadthFirstTraverse=function(t,e,n,r){if(e instanceof lO||(e=this._nodesMap[aO(e)]),e){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(r,e,null))for(var a=[e];a.length;){var s=a.shift(),l=s[i];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(r,c,s))return;a.push(c),c.__visited=!0}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;e.filterSelf((function(t){var n=r[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)r[e.getRawIndex(i)].dataIndex=i},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)e.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var o=r[i];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),lO=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=fo(),e=fo(),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){t.set(r.dataIndex,!0);for(var i=[r.node1],o=[r.node2],a=0;a<i.length;){var s=i[a];a++,e.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)t.set(s.inEdges[l].dataIndex,!0),i.push(s.inEdges[l].node1)}for(a=0;a<o.length;){var u=o[a];a++,e.set(u.dataIndex,!0);for(l=0;l<u.outEdges.length;l++)t.set(u.outEdges[l].dataIndex,!0),o.push(u.outEdges[l].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),uO=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=fo(),e=fo();t.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i<n.length;){var o=n[i];i++,e.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)t.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}for(i=0;i<r.length;){var s=r[i];i++,e.set(s.dataIndex,!0);for(a=0;a<s.outEdges.length;a++)t.set(s.outEdges[a].dataIndex,!0),r.push(s.outEdges[a].node2)}return{edge:t.keys(),node:e.keys()}},t}();function cO(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}function hO(t,e,n,r,i){for(var o=new sO(r),a=0;a<t.length;a++)o.addNode(to(t[a].id,t[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<e.length;a++){var c=e[a],h=c.source,d=c.target;o.addEdge(h,d,u)&&(l.push(c),s.push(to(oc(c.id,null),h+" > "+d)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=PS(t,n);else{var g=Hv.get(f),y=g&&g.dimensions||[];Ri(y,"value")<0&&y.concat(["value"]);var v=MS(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;(p=new SS(v,n)).initData(t)}var m=new SS(["value"],n);return m.initData(l,s),i&&i(p,m),qD({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}Oi(lO,cO("hostGraph","data")),Oi(uO,cO("hostGraph","edgeData"));var dO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return a(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new BT(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Qu(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,r=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&r){gR(n=this)&&(n.__curvenessList=[],n.__edgeMap={},yR(n));var a=hO(i,r,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=Kg.prototype.getModel;function r(t,e){var r=n.call(this,t,e);return r.resolveParentPath=i,r}function i(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=i,t.getModel=r,t}))}));return Ni(a.edges,(function(t){!function(t,e,n,r){if(gR(n)){var i=vR(t,e,n),o=n.__edgeMap,a=o[mR(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}(t.node1,t.node2,this,t.dataIndex)}),this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(t,n),o=r.graph.getEdgeByIndex(t),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),C_("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return B_({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=zi(this.option.categories||[],(function(t){return null!=t.value?t:Di({value:0},t)})),e=new SS(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(j_),pO={type:"graphRoam",event:"graphRoam",update:"none"};var fO=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},gO=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return a(e,t),e.prototype.getDefaultShape=function(){return new fO},e.prototype.buildPath=function(t,e){var n=Math.cos,r=Math.sin,i=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=i/3?1:2),l=e.y-r(a)*o*(o>=i/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+r(a)*o),t.lineTo(e.x+n(e.angle)*i,e.y+r(e.angle)*i),t.lineTo(e.x-n(a)*o,e.y-r(a)*o),t.lineTo(s,l)},e}(ed);function yO(t,e){var n=null==t?"":t+"";return e&&(Ui(e)?n=e.replace("{value}",n):Hi(e)&&(n=e(t))),n}var vO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),i=function(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i);return{cx:Au(n[0],e.getWidth()),cy:Au(n[1],e.getHeight()),r:Au(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,r,i),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,r,i){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?eT:df,h=u.get("show"),d=u.getModel("lineStyle"),p=d.get("width"),f=[s,l];Oh(f,!a);for(var g=(l=f[1])-(s=f[0]),y=s,v=[],m=0;h&&m<r.length;m++){var _=new c({shape:{startAngle:y,endAngle:l=s+g*Math.min(Math.max(r[m][0],0),1),cx:i.cx,cy:i.cy,clockwise:a,r0:i.r-p,r:i.r},silent:!0});_.setStyle({fill:r[m][1]}),_.setStyle(d.getLineStyle(["color","width"])),v.push(_),y=l}v.reverse(),Ni(v,(function(t){return o.add(t)}));var x=function(t){if(t<=0)return r[0][1];var e;for(e=0;e<r.length;e++)if(r[e][0]>=t&&(0===e?0:r[e-1][0])<t)return r[e][1];return r[e-1][1]};this._renderTicks(t,e,n,x,i,s,l,a,p),this._renderTitleAndDetail(t,e,n,x,i),this._renderAnchor(t,i),this._renderPointer(t,e,n,x,i,s,l,a,p)},e.prototype._renderTicks=function(t,e,n,r,i,o,a,s,l){for(var u,c,h=this.group,d=i.cx,p=i.cy,f=i.r,g=+t.get("min"),y=+t.get("max"),v=t.getModel("splitLine"),m=t.getModel("axisTick"),_=t.getModel("axisLabel"),x=t.get("splitNumber"),b=m.get("splitNumber"),w=Au(v.get("length"),f),S=Au(m.get("length"),f),M=o,I=(a-o)/x,C=I/b,A=v.getModel("lineStyle").getLineStyle(),T=m.getModel("lineStyle").getLineStyle(),k=v.get("distance"),L=0;L<=x;L++){if(u=Math.cos(M),c=Math.sin(M),v.get("show")){var D=new wf({shape:{x1:u*(f-(P=k?k+l:l))+d,y1:c*(f-P)+p,x2:u*(f-w-P)+d,y2:c*(f-w-P)+p},style:A,silent:!0});"auto"===A.stroke&&D.setStyle({stroke:r(L/x)}),h.add(D)}if(_.get("show")){var P=_.get("distance")+k,R=yO(Tu(L/x*(y-g)+g),_.get("formatter")),O=r(L/x),E=u*(f-w-P)+d,N=c*(f-w-P)+p,z=_.get("rotate"),B=0;"radial"===z?(B=-M+2*Math.PI)>Math.PI/2&&(B+=Math.PI):"tangential"===z?B=-M-Math.PI/2:Yi(z)&&(B=z*Math.PI/180),0===B?h.add(new yd({style:Tg(_,{text:R,x:E,y:N,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:O}),silent:!0})):h.add(new yd({style:Tg(_,{text:R,x:E,y:N,verticalAlign:"middle",align:"center"},{inheritColor:O}),silent:!0,originX:E,originY:N,rotation:B}))}if(m.get("show")&&L!==x){P=(P=m.get("distance"))?P+l:l;for(var V=0;V<=b;V++){u=Math.cos(M),c=Math.sin(M);var F=new wf({shape:{x1:u*(f-P)+d,y1:c*(f-P)+p,x2:u*(f-S-P)+d,y2:c*(f-S-P)+p},silent:!0,style:T});"auto"===T.stroke&&F.setStyle({stroke:r((L+V/b)/x)}),h.add(F),M+=C}M-=C}else M+=I}},e.prototype._renderPointer=function(t,e,n,r,i,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],p=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),y=t.getData(),v=y.mapDimension("value"),m=+t.get("min"),_=+t.get("max"),x=[m,_],b=[o,a];function w(e,n){var r,o=y.getItemModel(e).getModel("pointer"),a=Au(o.get("width"),i.r),s=Au(o.get("length"),i.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),c=Au(u[0],i.r),h=Au(u[1],i.r),d=o.get("keepAspect");return(r=l?pb(l,c-a/2,h-s,a,s,null,d):new gO({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:h}})).rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function S(t,e){var n=f.get("roundCap")?eT:df,r=f.get("overlap"),a=r?f.get("width"):l/y.count(),u=r?i.r-a:i.r-(t+1)*a,c=r?i.r:i.r-t*a,h=new n({shape:{startAngle:o,endAngle:e,cx:i.cx,cy:i.cy,clockwise:s,r0:u,r:c}});return r&&(h.z2=Cu(y.get(v,t),[m,_],[100,0],!0)),h}(g||p)&&(y.diff(c).add((function(e){var n=y.get(v,e);if(p){var r=w(e,o);Hf(r,{rotation:-((isNaN(+n)?b[0]:Cu(n,x,b,!0))+Math.PI/2)},t),u.add(r),y.setItemGraphicEl(e,r)}if(g){var i=S(e,o),a=f.get("clip");Hf(i,{shape:{endAngle:Cu(n,x,b,a)}},t),u.add(i),Ld(t.seriesIndex,y.dataType,e,i),d[e]=i}})).update((function(e,n){var r=y.get(v,e);if(p){var i=c.getItemGraphicEl(n),a=i?i.rotation:o,s=w(e,a);s.rotation=a,Wf(s,{rotation:-((isNaN(+r)?b[0]:Cu(r,x,b,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=h[n],m=S(e,l?l.shape.endAngle:o),_=f.get("clip");Wf(m,{shape:{endAngle:Cu(r,x,b,_)}},t),u.add(m),Ld(t.seriesIndex,y.dataType,e,m),d[e]=m}})).execute(),y.each((function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=y.getItemGraphicEl(t),l=y.getItemVisual(t,"style"),u=l.fill;if(s instanceof ad){var c=s.style;s.useStyle(Di({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(Cu(y.get(v,t),x,[0,1],!0))),s.z2EmphasisLift=0,wp(s,e),mp(s,i,o,a)}if(g){var h=d[t];h.useStyle(y.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,wp(h,e),mp(h,i,o,a)}})),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var r=n.get("size"),i=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=pb(i,e.cx-r/2+Au(o[0],e.r),e.cy-r/2+Au(o[1],e.r),r,r,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,r,i){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new xu,h=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new yd({silent:!0}),d[t]=new yd({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],d[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new xu,y=r(Cu(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),_=i.cx+Au(m[0],i.r),x=i.cy+Au(m[1],i.r);(T=h[e]).attr({z2:f?0:2,style:Tg(v,{x:_,y:x,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(T)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),S=i.cx+Au(w[0],i.r),M=i.cy+Au(w[1],i.r),I=Au(b.get("width"),i.r),C=Au(b.get("height"),i.r),A=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:y,T=d[e],k=b.get("formatter");T.attr({z2:f?0:2,style:Tg(b,{x:S,y:M,text:yO(o,k),width:isNaN(I)?null:I,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:A})}),Ng(T,{normal:b},o,(function(t){return yO(t,k)})),p&&zg(T,e,a,t,{getFormattedLabel:function(t,e,n,r,i,a){return yO(a?a.interpolatedValue:o,k)}}),g.add(T)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(tx),mO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return a(e,t),e.prototype.getInitialData=function(t,e){return zT(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}(j_);var _O=["itemStyle","opacity"],xO=function(t){function e(e,n){var r=t.call(this)||this,i=r,o=new _f,a=new yd;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(e,n,!0),r}return a(e,t),e.prototype.updateData=function(t,e,n){var r=this,i=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(_O);l=null==l?1:l,n||qf(r),r.useStyle(t.getItemVisual(e,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,Hf(r,{style:{opacity:l}},i,e)):Wf(r,{style:{opacity:l},shape:{points:a.points}},i,e),wp(r,o),this._updateLabel(t,e),mp(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;Cg(i,Ag(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var c=s.linePoints;r.setShape({points:c}),n.textGuideLineConfig={anchor:c?new va(c[0][0],c[0][1]):null},Wf(i,{style:{x:s.x,y:s.y}},o,e),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),OI(n,EI(a),{stroke:u})},e}(vf),bO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return a(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._data,o=this.group;r.diff(i).add((function(t){var e=new xO(r,t);r.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=i.getItemGraphicEl(e);n.updateData(r,t),o.add(n),r.setItemGraphicEl(t,n)})).remove((function(e){Xf(i.getItemGraphicEl(e),t,e)})).execute(),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(tx),wO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new BT(Gi(this.getData,this),Gi(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return zT(this,{coordDimensions:["value"],encodeDefaulter:ji(Sv,this)})},e.prototype._defaultLabelLine=function(t){Qu(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,e)/o*100).toFixed(2):0,r.$vars.push("percent"),r},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}(j_);function SO(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),r=n.mapDimension("value"),i=t.get("sort"),o=function(t,e){return Qy(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,u=function(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,(function(t){return t})),i=[],o="ascending"===e,a=0,s=t.count();a<s;a++)i[a]=a;return Hi(e)?i.sort(e):"none"!==e&&i.sort((function(t,e){return o?r[t]-r[e]:r[e]-r[t]})),i}(n,i),c=o.x,h=o.y,d="horizontal"===a?[Au(t.get("minSize"),l),Au(t.get("maxSize"),l)]:[Au(t.get("minSize"),s),Au(t.get("maxSize"),s)],p=n.getDataExtent(r),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var y=t.get("funnelAlign"),v=t.get("gap"),m=(("horizontal"===a?s:l)-v*(n.count()-1))/n.count(),_=function(t,e){if("horizontal"===a){var i=Cu(n.get(r,t)||0,[f,g],d,!0),o=void 0;switch(y){case"top":o=h;break;case"center":o=h+(l-i)/2;break;case"bottom":o=h+(l-i)}return[[e,o],[e,o+i]]}var u,p=Cu(n.get(r,t)||0,[f,g],d,!0);switch(y){case"left":u=c;break;case"center":u=c+(s-p)/2;break;case"right":u=c+s-p}return[[u,e],[u+p,e]]};"ascending"===i&&(m=-m,v=-v,"horizontal"===a?c+=s:h+=l,u=u.reverse());for(var x=0;x<u.length;x++){var b=u[x],w=u[x+1],S=n.getItemModel(b);if("horizontal"===a){var M=S.get(["itemStyle","width"]);null==M?M=m:(M=Au(M,s),"ascending"===i&&(M=-M));var I=_(b,c),C=_(w,c+M);c+=M+v,n.setItemLayout(b,{points:I.concat(C.slice().reverse())})}else{var A=S.get(["itemStyle","height"]);null==A?A=m:(A=Au(A,l),"ascending"===i&&(A=-A));I=_(b,h),C=_(w,h+A);h+=A+v,n.setItemLayout(b,{points:I.concat(C.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each((function(n){var r,i,o,a,s=t.getItemModel(n),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=t.getItemLayout(n),h=c.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(i=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,r="left"):"insideRight"===l?(i=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,r="right"):(i=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,r="center"),a=[[i,o],[i,o]];else{var p=void 0,f=void 0,g=void 0,y=void 0,v=u.get("length");"left"===l?(p=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,i=(g=p-v)-5,r="right"):"right"===l?(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,i=(g=p+v)+5,r="left"):"top"===l?(p=(h[3][0]+h[0][0])/2,o=(y=(f=(h[3][1]+h[0][1])/2)-v)-5,r="center"):"bottom"===l?(p=(h[1][0]+h[2][0])/2,o=(y=(f=(h[1][1]+h[2][1])/2)+v)+5,r="center"):"rightTop"===l?(p="horizontal"===e?h[3][0]:h[1][0],f="horizontal"===e?h[3][1]:h[1][1],"horizontal"===e?(o=(y=f-v)-5,r="center"):(i=(g=p+v)+5,r="top")):"rightBottom"===l?(p=h[2][0],f=h[2][1],"horizontal"===e?(o=(y=f+v)+5,r="center"):(i=(g=p+v)+5,r="bottom")):"leftTop"===l?(p=h[0][0],f="horizontal"===e?h[0][1]:h[1][1],"horizontal"===e?(o=(y=f-v)-5,r="center"):(i=(g=p-v)-5,r="right")):"leftBottom"===l?(p="horizontal"===e?h[1][0]:h[3][0],f="horizontal"===e?h[1][1]:h[2][1],"horizontal"===e?(o=(y=f+v)+5,r="center"):(i=(g=p-v)-5,r="right")):(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,"horizontal"===e?(o=(y=f+v)+5,r="center"):(i=(g=p+v)+5,r="left")),"horizontal"===e?i=g=p:o=y=f,a=[[p,f],[g,y]]}c.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:d}}))}(n)}))}var MO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new xu,n._initialized=!1,n}return a(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=AO(t);if(o.diff(a).add((function(t){TO(CO(o,i,t,l,s),o,t,u)})).update((function(e,n){var r=a.getItemGraphicEl(n),i=IO(o,e,l,s);o.setItemGraphicEl(e,r),Wf(r,{shape:{points:i}},t,e),qf(r),TO(r,o,e,u)})).remove((function(t){var e=a.getItemGraphicEl(t);i.remove(e)})).execute(),!this._initialized){this._initialized=!0;var c=function(t,e,n){var r=t.model,i=t.getRect(),o=new pd({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a="horizontal"===r.get("layout")?"width":"height";return o.setShape(a,0),Hf(o,{shape:{width:i.width,height:i.height}},e,n),o}(s,t,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(c)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var r=e.getData(),i=e.coordinateSystem,o=i.dimensions,a=AO(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=CO(r,this._dataGroup,l,o,i);u.incremental=!0,TO(u,r,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(tx);function IO(t,e,n,r){for(var i,o=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);i=l,("category"===r.getAxis(s).type?null==i:null==i||isNaN(i))||o.push(r.dataToPoint(l,s))}return o}function CO(t,e,n,r,i){var o=IO(t,n,r,i),a=new _f({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function AO(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),Ji(e=ju(e))&&(e=0),{smooth:e}}function TO(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var i=e.getItemModel(n),o=i.getModel("emphasis");wp(t,i,"lineStyle"),mp(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var kO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return a(e,t),e.prototype.getInitialData=function(t,e){return PS(null,this,{useEncodeDefaulter:Gi(LO,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),r=[];return e.eachActiveState(n,(function(e,i){t===e&&r.push(n.getRawIndex(i))})),r},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}(j_);function LO(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Ni(e.dimensions,(function(t){var e=+t.replace("dim","");n[t]=e})),n}}var DO=["lineStyle","opacity"],PO={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,r={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var i=r[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(DO,!0);null!=o&&(i=o)}e.ensureUniqueItemVisual(n,"style").opacity=i}),t.start,t.end)}}}};function RO(t){!function(t){if(t.parallel)return;var e=!1;Ni(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}(t),function(t){var e=$u(t.parallelAxis);Ni(e,(function(e){if(Xi(e)){var n=e.parallelIndex||0,r=$u(t.parallel)[n];r&&r.parallelAxisDefault&&ki(e,r.parallelAxisDefault,!1)}}))}(t)}var OO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Ni(EO,(function(t,e){n.getZr().on(e,this._handlers[e]=Gi(t,this))}),this)),cx(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){hx(this,"_throttledDispatchExpand"),Ni(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Di({type:"parallelAxisExpand"},t))},e.type="parallel",e}(K_),EO={mousedown:function(t){NO(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(NO(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&NO(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function NO(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var zO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&ki(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){Ni(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];Ni(Vi(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this),(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(ov),BO=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return a(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(cI);function VO(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(null!=i&&(i=GO(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(e[1]-e[0]);s=GO(s,[0,a]),i=o=GO(s,[i,o]),r=0}e[0]=GO(e[0],n),e[1]=GO(e[1],n);var l=FO(e,r);e[r]+=t;var u,c=i||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[r]=GO(e[r],h),u=FO(e,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(e[1-r]=e[r]+l.sign*i),u=FO(e,r),null!=o&&u.span>o&&(e[1-r]=e[r]+u.sign*o),e}function FO(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function GO(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var jO=Ni,WO=Math.min,HO=Math.max,UO=Math.floor,ZO=Math.ceil,YO=Tu,XO=Math.PI,qO=function(){function t(t,e,n){this.type="parallel",this._axesMap=fo(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=t.dimensions,i=t.parallelAxisIndex;jO(r,(function(t,n){var r=i[n],o=e.getComponent("parallelAxis",r),a=this._axesMap.set(t,new BO(t,PM(o),[0,0],o.get("type"),r)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,r=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],a=t[i];return o>=n&&o<=n+e.axisLength&&a>=r&&a<=r+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var r=n.getData();jO(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(r,r.mapDimension(t)),DM(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Qy(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=KO(e.get("axisExpandWidth"),l),h=KO(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow");p?(t=KO(p[1]-p[0],l),p[1]=p[0]+t):(t=KO(c*(h-1),l),(p=[c*(e.get("axisExpandCenter")||UO(u/2))-t/2])[1]=p[0]+t);var f=(s-t)/(u-h);f<3&&(f=0);var g=[UO(YO(p[0]/c,1))+1,ZO(YO(p[1]/c,1))-1],y=f/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:f,axisExpandWindow:p,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;e.each((function(t){var e=[0,r.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),jO(n,(function(e,n){var o=(r.axisExpandable?QO:$O)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:XO/2,vertical:0},l=[a[i].x+t.x,a[i].y+t.y],u=s[i],c=[1,0,0,1,0,0];fa(c,c,u),pa(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,r){null==n&&(n=0),null==r&&(r=t.count());var i=this._axesMap,o=this.dimensions,a=[],s=[];Ni(o,(function(e){a.push(t.mapDimension(e)),s.push(i.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;u<r;u++){var c=void 0;if(l){c="active";for(var h=t.getValues(a,u),d=0,p=o.length;d<p;d++){if("inactive"===s[d].getActiveState(h[d])){c="inactive";break}}}else c="normal";e(c,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,r=0,i=t.length;r<i;r++)"normal"!==e.get(t[r]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){return cg([t,0],this._axesLayout[e].transform)},t.prototype.getAxisLayout=function(t){return Ti(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,r=e.axisExpandWindow.slice(),i=r[1]-r[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:r};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<i*c[0]?(l="jump",a=s-i*c[2]):h&&u&&s>i*(1-c[0])?(l="jump",a=s-i*(1-c[2])):(a=s-i*c[1])>=0&&(a=s-i*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?VO(a,r,o,"all"):l="none";else{var d=r[1]-r[0];(r=[HO(0,o[1]*s/d-d/2)])[1]=WO(o[1],r[0]+d),r[0]=r[1]-d}return{axisExpandWindow:r,behavior:l}},t}();function KO(t,e){return WO(HO(t,e[0]),e[1])}function $O(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function QO(t,e){var n,r,i=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,r=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(n=i-(a-1-t)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}var JO={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(r,i){var o=new qO(r,t,e);o.name="parallel_"+i,o.resize(r,e),r.coordinateSystem=o,o.model=r,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",pc).models[0];t.coordinateSystem=e.coordinateSystem}})),n}},tE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return a(e,t),e.prototype.getAreaSelectStyle=function(){return Tc([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=Ti(t);if(e)for(var n=e.length-1;n>=0;n--)ku(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var r=0,i=e.length;r<i;r++)if(e[r][0]<=t&&t<=e[r][1])return"active";return"inactive"},e}(ov);Oi(tE,VM);var eE=!0,nE=Math.min,rE=Math.max,iE=Math.pow,oE="globalPan",aE={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},sE={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},lE={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},uE=0,cE=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new xu,n._uid="brushController_"+uE++,Ni(zE,(function(t,e){this._handlers[e]=Gi(t,this)}),n),n}return a(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||function(t,e,n){rL(t)[e]=n}(e,oE,this._uid),Ni(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=ki(Ti(lE),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;!function(t,e,n){var r=rL(t);r[e]===n&&(r[e]=null)}(t,oE,this._uid),Ni(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Ni(t,(function(t){e[t.panelId]=Ti(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=zi(t,(function(t){return ki(Ti(lE),t,!0)}));var e=this._covers,n=this._covers=[],r=this,i=this._creatingCover;return new Jw(e,t,(function(t,e){return o(t.__brushOption,e)}),o).add(a).update(a).remove((function(t){e[t]!==i&&r.group.remove(e[t])})).execute(),this;function o(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function a(o,a){var s=t[o];if(null!=a&&e[a]===i)n[o]=e[a];else{var l=n[o]=null!=a?(e[a].__brushOption=s,e[a]):dE(r,hE(r,s));gE(r,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),_E(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Fo);function hE(t,e){var n=VE[e.brushType].createCover(t,e);return n.__brushOption=e,fE(n,e),t.group.add(n),n}function dE(t,e){var n=yE(e);return n.endCreating&&(n.endCreating(t,e),fE(e,e.__brushOption)),e}function pE(t,e){var n=e.__brushOption;yE(e).updateCoverShape(t,e,n.range,n)}function fE(t,e){var n=e.z;null==n&&(n=1e4),t.traverse((function(t){t.z=n,t.z2=n}))}function gE(t,e){yE(e).updateCommon(t,e),pE(t,e)}function yE(t){return VE[t.__brushOption.brushType]}function vE(t,e,n){var r,i=t._panels;if(!i)return eE;var o=t._transform;return Ni(i,(function(t){t.isTargetByCursor(e,n,o)&&(r=t)})),r}function mE(t,e){var n=t._panels;if(!n)return eE;var r=e.__brushOption.panelId;return null!=r?n[r]:eE}function _E(t){var e=t._covers,n=e.length;return Ni(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function xE(t,e){var n=zi(t._covers,(function(t){var e=t.__brushOption,n=Ti(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function bE(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function wE(t,e,n,r){var i=new xu;return i.add(new pd({name:"main",style:CE(n),silent:!0,draggable:!0,cursor:"move",drift:ji(kE,t,e,i,["n","s","w","e"]),ondragend:ji(xE,e,{isEnd:!0})})),Ni(r,(function(n){i.add(new pd({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ji(kE,t,e,i,n),ondragend:ji(xE,e,{isEnd:!0})}))})),i}function SE(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=rE(i,6),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],h=n[1][1],d=c-o+i/2,p=h-o+i/2,f=c-a,g=h-s,y=f+i,v=g+i;IE(t,e,"main",a,s,f,g),r.transformable&&(IE(t,e,"w",l,u,o,v),IE(t,e,"e",d,u,o,v),IE(t,e,"n",l,u,y,o),IE(t,e,"s",l,p,y,o),IE(t,e,"nw",l,u,o,o),IE(t,e,"ne",d,u,o,o),IE(t,e,"sw",l,p,o,o),IE(t,e,"se",d,p,o,o))}function ME(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(CE(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Ni([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=e.childOfName(n.join("")),o=1===n.length?TE(t,n[0]):function(t,e){var n=[TE(t,e[0]),TE(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?sE[o]+"-resize":null})}))}function IE(t,e,n,r,i,o,a){var s=e.childOfName(n);s&&s.setShape(function(t){var e=nE(t[0][0],t[1][0]),n=nE(t[0][1],t[1][1]),r=rE(t[0][0],t[1][0]),i=rE(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}(PE(t,e,[[r,i],[r+o,i+a]])))}function CE(t){return Pi({strokeNoScale:!0},t.brushStyle)}function AE(t,e,n,r){var i=[nE(t,n),nE(e,r)],o=[rE(t,n),rE(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function TE(t,e){var n=hg({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return ug(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function kE(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=DE(e,i,o);Ni(r,(function(t){var e=aE[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(AE(s[0][0],s[1][0],s[0][1],s[1][1])),gE(e,n),xE(e,{isEnd:!1})}function LE(t,e,n,r){var i=e.__brushOption.range,o=DE(t,n,r);Ni(i,(function(t){t[0]+=o[0],t[1]+=o[1]})),gE(t,e),xE(t,{isEnd:!1})}function DE(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function PE(t,e,n){var r=mE(t,e);return r&&r!==eE?r.clipPath(n,t._transform):Ti(n)}function RE(t){var e=t.event;e.preventDefault&&e.preventDefault()}function OE(t,e,n){return t.childOfName("main").contain(e,n)}function EE(t,e,n,r){var i,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],o=n[1]-r[1];return iE(i*i+o*o,.5)>6}(t)||o){if(a&&!o){"single"===s.brushMode&&_E(t);var l=Ti(s);l.brushType=NE(l.brushType,a),l.panelId=a===eE?null:a.panelId,o=t._creatingCover=hE(t,l),t._covers.push(o)}if(o){var u=VE[NE(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(PE(t,o,t._track)),r&&(dE(t,o),u.updateCommon(t,o)),pE(t,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&vE(t,e,n)&&_E(t)&&(i={isEnd:r,removeOnClick:!0});return i}function NE(t,e){return"auto"===t?e.defaultBrushType:t}var zE={mousedown:function(t){if(this._dragging)BE(this,t);else if(!t.target||!t.target.draggable){RE(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=vE(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,o=vE(t,e,n);if(!t._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===eE||s.panelId===o.panelId)&&VE[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}(this,t,r),this._dragging){RE(t);var i=EE(this,t,r,!1);i&&xE(this,i)}},mouseup:function(t){BE(this,t)}};function BE(t,e){if(t._dragging){RE(e);var n=e.offsetX,r=e.offsetY,i=t.group.transformCoordToLocal(n,r),o=EE(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&xE(t,o)}}var VE={lineX:FE(0),lineY:FE(1),rect:{createCover:function(t,e){function n(t){return t}return wE({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=bE(t);return AE(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){SE(t,e,n,r)},updateCommon:ME,contain:OE},polygon:{createCover:function(t,e){var n=new xu;return n.add(new _f({name:"main",style:CE(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new vf({name:"main",draggable:!0,drift:ji(LE,t,e),ondragend:ji(xE,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:PE(t,e,n)})},updateCommon:ME,contain:OE}};function FE(t){return{createCover:function(e,n){return wE({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=bE(e);return[nE(n[0][t],n[1][t]),rE(n[0][t],n[1][t])]},updateCoverShape:function(e,n,r,i){var o,a=mE(e,n);if(a!==eE&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,o];t&&l.reverse(),SE(e,n,l,i)},updateCommon:ME,contain:OE}}function GE(t){return t=HE(t),function(e){return fg(e,t)}}function jE(t,e){return t=HE(t),function(n){var r=null!=e?e:n,i=r?t.width:t.height,o=r?t.x:t.y;return[o,o+(i||0)]}}function WE(t,e,n){var r=HE(t);return function(t,i){return r.contain(i[0],i[1])&&!dL(t,e,n)}}function HE(t){return Ca.create(t)}var UE=["axisLine","axisTickLabel","axisName"],ZE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new cE(n.getZr())).on("brush",Gi(this._onBrush,this))},e.prototype.render=function(t,e,n,r){if(!function(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}(t,e,r)){this.axisModel=t,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new xu,this.group.add(this._axisGroup),t.get("show")){var o=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=Di({strokeContainThreshold:l},a.getAxisLayout(u)),h=new yk(t,c);Ni(UE,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(c,s,t,o,l,n),pg(i,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=Ca.create({x:a[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:GE(u),isTargetByCursor:WE(u,o,r),getLinearBrushOtherExtent:jE(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return zi(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,r=n.axis,i=zi(e,(function(t){return[r.coordToData(t.range[0],!0),r.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(K_);var YE={type:"axisAreaSelect",event:"axisAreaSelected"};var XE={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function qE(t){t.registerComponentView(OO),t.registerComponentModel(zO),t.registerCoordinateSystem("parallel",JO),t.registerPreprocessor(RO),t.registerComponentModel(tE),t.registerComponentView(ZE),JT(t,"parallel",tE,XE),function(t){t.registerAction(YE,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}(t)}var KE=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},$E=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultShape=function(){return new KE},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){ip(this)},e.prototype.downplay=function(){op(this)},e}(ed),QE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return a(e,t),e.prototype.render=function(t,e,n){var r=this,i=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,i.eachEdge((function(e){var n=new $E,r=kd(n);r.dataIndex=e.dataIndex,r.seriesIndex=t.seriesIndex,r.dataType="edge";var i,a,u,d,p,f,g,y,v=e.getModel(),m=v.getModel("lineStyle"),_=m.get("curveness"),x=e.node1.getLayout(),b=e.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=e.node2.getLayout(),I=e.node2.getModel(),C=I.get("localX"),A=I.get("localY"),T=e.getLayout();n.shape.extent=Math.max(1,T.dy),n.shape.orient=h,"vertical"===h?(i=(null!=w?w*s:x.x)+T.sy,a=(null!=S?S*l:x.y)+x.dy,u=(null!=C?C*s:M.x)+T.ty,p=i,f=a*(1-_)+(d=null!=A?A*l:M.y)*_,g=u,y=a*_+d*(1-_)):(i=(null!=w?w*s:x.x)+x.dx,a=(null!=S?S*l:x.y)+T.sy,p=i*(1-_)+(u=null!=C?C*s:M.x)*_,f=a,g=i*_+u*(1-_),y=d=(null!=A?A*l:M.y)+T.ty),n.setShape({x1:i,y1:a,x2:u,y2:d,cpx1:p,cpy1:f,cpx2:g,cpy2:y}),n.useStyle(m.getItemStyle()),JE(n.style,h,e);var k=""+v.get("value"),L=Ag(v,"edgeLabel");Cg(n,L,{labelFetcher:{getFormattedLabel:function(e,n,r,i,o,a){return t.getFormattedLabel(e,n,"edge",i,no(o,L.normal&&L.normal.get("formatter"),k),a)}},labelDataIndex:e.dataIndex,defaultText:k}),n.setTextConfig({position:"inside"});var D=v.getModel("emphasis");wp(n,v,"lineStyle",(function(t){var n=t.getItemStyle();return JE(n,h,e),n})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var P=D.get("focus");mp(n,"adjacency"===P?e.getAdjacentDataIndices():"trajectory"===P?e.getTrajectoryDataIndices():P,D.get("blurScope"),D.get("disabled"))})),i.eachNode((function(e){var n=e.getLayout(),r=e.getModel(),i=r.get("localX"),a=r.get("localY"),c=r.getModel("emphasis"),h=r.get(["itemStyle","borderRadius"])||0,d=new pd({shape:{x:null!=i?i*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy,r:h},style:r.getModel("itemStyle").getItemStyle(),z2:10});Cg(d,Ag(r),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),d.disableLabelAnimation=!0,d.setStyle("fill",e.getVisual("color")),d.setStyle("decal",e.getVisual("style").decal),wp(d,r),o.add(d),u.setItemGraphicEl(e.dataIndex,d),kd(d).dataType="node";var p=c.get("focus");mp(d,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(e,i){u.getItemModel(i).get("draggable")&&(e.drift=function(e,o){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(function(t,e,n){var r=new pd({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Hf(r,{shape:{width:t.width+20}},e,n),r}(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(tx);function JE(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");Ui(r)&&Ui(i)&&(t.fill=new Df(0,0,+("horizontal"===e),+("vertical"===e),[{color:r,offset:0},{color:i,offset:1}]))}}var tN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],r=t.data||t.nodes||[],i=t.levels||[];this.levelModels=[];for(var o=this.levelModels,a=0;a<i.length;a++)null!=i[a].depth&&i[a].depth>=0&&(o[i[a].depth]=new Kg(i[a],this,e));var s=hO(r,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getData().getItemLayout(e);if(r){var i=r.depth,o=n.levelModels[i];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(r){var i=r.depth,o=n.levelModels[i];o&&(t.parentModel=o)}return t}))}));return s.data},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function r(t){return isNaN(t)||null==t}if("edge"===n){var i=this.getDataParams(t,n),o=i.data,a=i.value;return C_("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:r(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return C_("nameValue",{name:null!=l?l+"":null,value:s,noValue:r(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var r=t.prototype.getDataParams.call(this,e,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(e).getLayout().value;r.value=i}return r},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}(j_);function eN(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),r=t.get("nodeGap"),i=function(t,e){return Qy(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=i;var o=i.width,a=i.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){Ni(t,(function(t){var e=hN(t.outEdges,cN),n=hN(t.inEdges,cN),r=t.getValue()||0,i=Math.max(e,n,r);t.setLayout({value:i},!0)}))}(l);var c=Vi(l,(function(t){return 0===t.getLayout().value}));!function(t,e,n,r,i,o,a,s,l){(function(t,e,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<e.length;d++)s[d]=1;for(d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&u.push(t[d]);var p=-1;for(;u.length;){for(var f=0;f<u.length;f++){var g=u[f],y=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=y.depth&&y.depth>=0;v&&y.depth>p&&(p=y.depth),g.setLayout({depth:v?y.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;m<g.outEdges.length;m++){var _=g.outEdges[m];s[e.indexOf(_)]=0;var x=_.node2;0==--l[t.indexOf(x)]&&c.indexOf(x)<0&&c.push(x)}}++h,u=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var b=p>h-1?p:h-1;a&&"left"!==a&&function(t,e,n,r){if("right"===e){for(var i=[],o=t,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}o=i,i=[],++a}Ni(t,(function(t){nN(t)||t.setLayout({depth:Math.max(0,r-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&function(t,e){Ni(t,(function(t){nN(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}(t,r)}(t,a,0,b);var w="vertical"===o?(i-n)/b:(r-n)/b;!function(t,e,n){Ni(t,(function(t){var r=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:r},!0):t.setLayout({x:r},!0)}))}(t,w,o)})(t,e,n,i,o,s,l),function(t,e,n,r,i,o,a){var s=function(t,e){var n=[],r="vertical"===e?"y":"x",i=vc(t,(function(t){return t.getLayout()[r]}));return i.keys.sort((function(t,e){return t-e})),Ni(i.keys,(function(t){n.push(i.buckets.get(t))})),n}(t,a);(function(t,e,n,r,i,o){var a=1/0;Ni(t,(function(t){var e=t.length,s=0;Ni(t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(r-(e-1)*i)/s:(n-(e-1)*i)/s;l<a&&(a=l)})),Ni(t,(function(t){Ni(t,(function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),Ni(e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))})(s,e,n,r,i,a),rN(s,i,n,r,a);for(var l=1;o>0;o--)iN(s,l*=.99,a),rN(s,i,n,r,a),dN(s,l,a),rN(s,i,n,r,a)}(t,e,o,i,r,a,s),function(t,e){var n="vertical"===e?"x":"y";Ni(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),Ni(t,(function(t){var e=0,n=0;Ni(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),Ni(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(l,u,n,r,o,a,0!==c.length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function nN(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function rN(t,e,n,r,i){var o="vertical"===i?"x":"y";Ni(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,c=t.length,h="vertical"===i?"dx":"dy",d=0;d<c;d++)(l=u-(s=t[d]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;if((l=u-e-("vertical"===i?r:n))>0){a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[o]+s.getLayout()[h]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function iN(t,e,n){Ni(t.slice().reverse(),(function(t){Ni(t,(function(t){if(t.outEdges.length){var r=hN(t.outEdges,oN,n)/hN(t.outEdges,cN);if(isNaN(r)){var i=t.outEdges.length;r=i?hN(t.outEdges,aN,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-uN(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-uN(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function oN(t,e){return uN(t.node2,e)*t.getValue()}function aN(t,e){return uN(t.node2,e)}function sN(t,e){return uN(t.node1,e)*t.getValue()}function lN(t,e){return uN(t.node1,e)}function uN(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function cN(t){return t.getValue()}function hN(t,e,n){for(var r=0,i=t.length,o=-1;++o<i;){var a=+e(t[o],n);isNaN(a)||(r+=a)}return r}function dN(t,e,n){Ni(t,(function(t){Ni(t,(function(t){if(t.inEdges.length){var r=hN(t.inEdges,sN,n)/hN(t.inEdges,cN);if(isNaN(r)){var i=t.inEdges.length;r=i?hN(t.inEdges,lN,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-uN(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-uN(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function pN(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes,r=e.edges;if(n.length){var i=1/0,o=-1/0;Ni(n,(function(t){var e=t.getLayout().value;e<i&&(i=e),e>o&&(o=e)})),Ni(n,(function(e){var n=new PP({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),r=e.getModel().get(["itemStyle","color"]);null!=r?(e.setVisual("color",r),e.setVisual("style",{fill:r})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))}))}r.length&&Ni(r,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}var fN=function(){function t(){}return t.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},t.prototype.getInitialData=function(t,e){var n,r,i=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=i.getOrdinalMeta(),r=!this._hasEncodeRule("x")):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),r=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[i,o],p=d[u].get("type"),f=d[1-u].get("type"),g=t.data;if(g&&r){var y=[];Ni(g,(function(t,e){var n;Wi(t)?(n=t.slice(),t.unshift(e)):Wi(t.value)?((n=Di({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)})),t.data=y}var v=this.defaultValueDimensions,m=[{name:c,type:nS(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:nS(f),dimsDef:v.slice()}];return zT(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:ji(wv,m,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),gN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return a(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(j_);Oi(gN,fN,!0);var yN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===t.get("layout")?1:0;r.diff(o).add((function(t){if(r.hasValue(t)){var e=_N(r.getItemLayout(t),r,t,a,!0);r.setItemGraphicEl(t,e),i.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var s=r.getItemLayout(t);n?(qf(n),xN(s,n,r,t)):n=_N(s,r,t,a),i.add(n),r.setItemGraphicEl(t,n)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=r},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(tx),vN=function(){},mN=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return a(e,t),e.prototype.getDefaultShape=function(){return new vN},e.prototype.buildPath=function(t,e){var n=e.points,r=0;for(t.moveTo(n[r][0],n[r][1]),r++;r<4;r++)t.lineTo(n[r][0],n[r][1]);for(t.closePath();r<n.length;r++)t.moveTo(n[r][0],n[r][1]),r++,t.lineTo(n[r][0],n[r][1])},e}(ed);function _N(t,e,n,r,i){var o=t.ends,a=new mN({shape:{points:i?bN(o,r,t):o}});return xN(t,a,e,n,i),a}function xN(t,e,n,r,i){var o=n.hostModel;(0,wg[i?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var a=n.getItemModel(r),s=a.getModel("emphasis");wp(e,a),mp(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function bN(t,e,n){return zi(t,(function(t){return(t=t.slice())[e]=n.initBaseline,t}))}var wN=Ni;function SN(t){var e=function(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var r=t.getBaseAxis(),i=Ri(n,r);i<0&&(i=n.length,n[i]=r,e[i]={axis:r,seriesModels:[]}),e[i].seriesModels.push(t)})),e}(t);wN(e,(function(t){var e=t.seriesModels;e.length&&(!function(t){var e,n=t.axis,r=t.seriesModels,i=r.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;wN(r,(function(t){l=Math.max(l,t.getData().count())}));var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}wN(r,(function(t){var n=t.get("boxWidth");Wi(n)||(n=[n,n]),s.push([Au(n[0],e)||0,Au(n[1],e)||0])}));var c=.8*e-2,h=c/i*.3,d=(c-h*(i-1))/i,p=d/2-c/2;wN(r,(function(t,e){a.push(p),p+=h+d,o.push(Math.min(Math.max(d,s[e][0]),s[e][1]))}))}(t),wN(e,(function(e,n){!function(t,e,n){var r=t.coordinateSystem,i=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=i.mapDimension(l[a]),c=i.mapDimensionsAll(l[s]);if(null==u||c.length<5)return;for(var h=0;h<i.count();h++){var d=i.get(u,h),p=_(d,c[2],h),f=_(d,c[0],h),g=_(d,c[1],h),y=_(d,c[3],h),v=_(d,c[4],h),m=[];x(m,g,!1),x(m,y,!0),m.push(f,g,v,y),b(m,f),b(m,v),b(m,p),i.setItemLayout(h,{initBaseline:p[s],ends:m})}function _(t,n,o){var l,u=i.get(n,o),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c))[a]+=e,l}function x(t,e,n){var r=e.slice(),i=e.slice();r[a]+=o,i[a]-=o,n?t.push(r,i):t.push(i,r)}function b(t,e){var n=e.slice(),r=e.slice();n[a]-=o,r[a]+=o,t.push(n,r)}}(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}var MN={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==hv){Yu("")}var n=function(t,e){for(var n=[],r=[],i=(e=e||{}).boundIQR,o="none"===i||0===i,a=0;a<t.length;a++){var s=ku(t[a].slice()),l=Fu(s,.25),u=Fu(s,.5),c=Fu(s,.75),h=s[0],d=s[s.length-1],p=(null==i?1.5:i)*(c-l),f=o?h:Math.max(h,l-p),g=o?d:Math.min(d,c+p),y=e.itemNameFormatter,v=Hi(y)?y({value:a}):Ui(y)?y.replace("{value}",a+""):a+"";n.push([v,f,l,u,c,g]);for(var m=0;m<s.length;m++){var _=s[m];if(_<f||_>g){var x=[v,_];r.push(x)}}}return{boxData:n,outliers:r}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var IN=["itemStyle","borderColor"],CN=["itemStyle","borderColor0"],AN=["itemStyle","borderColorDoji"],TN=["itemStyle","color"],kN=["itemStyle","color0"];function LN(t,e){return e.get(t>0?TN:kN)}function DN(t,e){return e.get(0===t?AN:t>0?IN:CN)}var PN={seriesType:"candlestick",plan:$_(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var r=e.getItemModel(n),i=e.getItemLayout(n).sign,o=r.getItemStyle();o.fill=LN(i,r),o.stroke=DN(i,r)||o.fill,Di(e.ensureUniqueItemVisual(n,"style"),o)}}}}},RN=["color","borderColor"],ON=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){bg(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,r=this.group,i=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&BN(s,a))return;var l=zN(a,n,!0);Hf(l,{shape:{points:a.ends}},t,n),VN(l,e,n,i),r.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&BN(s,c)?r.remove(u):(u?(Wf(u,{shape:{points:c.ends}},t,a),qf(u)):u=zN(c),VN(u,e,a,i),r.add(u),e.setItemGraphicEl(a,u))}else r.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),WN(t,this.group);var e=t.get("clip",!0)?EA(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,r=e.getData(),i=r.getLayout("isSimpleBox");null!=(n=t.next());){var o=zN(r.getItemLayout(n));VN(o,r,n,i),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){WN(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(tx),EN=function(){},NN=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return a(e,t),e.prototype.getDefaultShape=function(){return new EN},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(ed);function zN(t,e,n){var r=t.ends;return new NN({shape:{points:n?FN(r,t):r},z2:100})}function BN(t,e){for(var n=!0,r=0;r<e.ends.length;r++)if(t.contain(e.ends[r][0],e.ends[r][1])){n=!1;break}return n}function VN(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,wp(t,i);var o=e.getItemLayout(n).sign;Ni(t.states,(function(t,e){var n=i.getModel(e),r=LN(o,n),a=DN(o,n)||r,s=t.style||(t.style={});r&&(s.fill=r),a&&(s.stroke=a)}));var a=i.getModel("emphasis");mp(t,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function FN(t,e){return zi(t,(function(t){return(t=t.slice())[1]=e.initBaseline,t}))}var GN=function(){},jN=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return a(e,t),e.prototype.getDefaultShape=function(){return new GN},e.prototype.buildPath=function(t,e){for(var n=e.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];t.moveTo(i,n[r++]),t.lineTo(i,n[r++])}else r+=3},e}(ed);function WN(t,e,n,r){var i=t.getData().getLayout("largePoints"),o=new jN({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var a=new jN({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(a);var s=new jN({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(s),HN(1,o,t),HN(-1,a,t),HN(0,s,t),r&&(o.incremental=!0,a.incremental=!0),n&&n.push(o,a)}function HN(t,e,n,r){var i=DN(t,n)||LN(t,n),o=n.getModel("itemStyle").getItemStyle(RN);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var UN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return a(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var r=e.getItemLayout(t);return r&&n.rect(r.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}(j_);function ZN(t){t&&Wi(t.series)&&Ni(t.series,(function(t){Xi(t)&&"k"===t.type&&(t.type="candlestick")}))}Oi(UN,fN,!0);var YN={seriesType:"candlestick",plan:$_(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=function(t,e){var n,r=t.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=Au(eo(t.get("barMaxWidth"),i),i),a=Au(eo(t.get("barMinWidth"),1),i),s=t.get("barWidth");return null!=s?Au(s,i):Math.max(Math.min(i/2,o),a)}(t,n),i=["x","y"],o=n.getDimensionIndex(n.mapDimension(i[0])),a=zi(n.mapDimensionsAll(i[1]),n.getDimensionIndex,n),s=a[0],l=a[1],u=a[2],c=a[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(o<0||a.length<4))return{progress:t.pipelineContext.large?function(n,r){var i,a,h=KS(4*n.count),d=0,p=[],f=[],g=r.getStore(),y=!!t.get(["itemStyle","borderColorDoji"]);for(;null!=(a=n.next());){var v=g.get(o,a),m=g.get(s,a),_=g.get(l,a),x=g.get(u,a),b=g.get(c,a);isNaN(v)||isNaN(x)||isNaN(b)?(h[d++]=NaN,d+=3):(h[d++]=XN(g,a,m,_,l,y),p[0]=v,p[1]=x,i=e.dataToPoint(p,null,f),h[d++]=i?i[0]:NaN,h[d++]=i?i[1]:NaN,p[1]=b,i=e.dataToPoint(p,null,f),h[d++]=i?i[1]:NaN)}r.setLayout("largePoints",h)}:function(t,n){var i,a=n.getStore();for(;null!=(i=t.next());){var h=a.get(o,i),d=a.get(s,i),p=a.get(l,i),f=a.get(u,i),g=a.get(c,i),y=Math.min(d,p),v=Math.max(d,p),m=M(y,h),_=M(v,h),x=M(f,h),b=M(g,h),w=[];I(w,_,0),I(w,m,1),w.push(A(b),A(_),A(x),A(m));var S=!!n.getItemModel(i).get(["itemStyle","borderColorDoji"]);n.setItemLayout(i,{sign:XN(a,i,d,p,l,S),initBaseline:d>p?_[1]:m[1],ends:w,brushRect:C(f,g,h)})}function M(t,n){var r=[];return r[0]=n,r[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(r)}function I(t,e,n){var i=e.slice(),o=e.slice();i[0]=lg(i[0]+r/2,1,!1),o[0]=lg(o[0]-r/2,1,!0),n?t.push(i,o):t.push(o,i)}function C(t,e,n){var i=M(t,n),o=M(e,n);return i[0]-=r/2,o[0]-=r/2,{x:i[0],y:i[1],width:r,height:o[1]-i[1]}}function A(t){return t[0]=lg(t[0],1),t}}}}};function XN(t,e,n,r,i,o){return n>r?-1:n<r?1:o?0:e>0?t.get(i,e-1)<=r?1:-1:1}function qN(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var KN=function(t){function e(e,n){var r=t.call(this)||this,i=new vA(e,n),o=new xu;return r.add(i),r.add(o),r.updateData(e,n),r}return a(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,r=t.rippleNumber,i=this.childAt(1),o=0;o<r;o++){var a=pb(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/r*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),i.add(a)}qN(i,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}qN(n,t)},e.prototype.highlight=function(){ip(this)},e.prototype.downplay=function(){op(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,r=t.hostModel;this.childAt(0).updateData(t,e);var i=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=fb(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=o.getModel("emphasis");i.setScale(s),i.traverse((function(t){t.setStyle("fill",u)}));var h=gb(t.getItemVisual(e,"symbolOffset"),s);h&&(i.x=h[0],i.y=h[1]);var d=t.getItemVisual(e,"symbolRotate");i.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=r.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=r.getShallow("z")||0,p.zlevel=r.getShallow("zlevel")||0,p.symbolType=a,p.color=u,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,mp(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(xu),$N=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(){this._symbolDraw=new wA(KN)},e.prototype.render=function(t,e,n){var r=t.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(t)}),this.group.add(i.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var r=t.getData();this.group.dirty();var i=XA("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e,n,r=t.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=(e=r.getRoamTransform(),ha(n=[1,0,0,1,0,0],e),n),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(tx),QN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return a(e,t),e.prototype.getInitialData=function(t,e){return PS(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(j_);var JN=function(t){function e(e,n,r){var i=t.call(this)||this;return i.add(i.createLine(e,n,r)),i._updateEffectSymbol(e,n),i}return a(e,t),e.prototype.createLine=function(t,e,n){return new UR(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),r=n.get("symbolSize"),i=n.get("symbol");Wi(r)||(r=[r,r]);var o=t.getItemVisual(e,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),(s=pb(i,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(a),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(t,n,e))},e.prototype._updateEffectAnimation=function(t,e,n){var r=this.childAt(1);if(r){var i=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),u=to(e.get("delay"),(function(e){return e/t.count()*o/3}));if(r.ignore=!0,this._updateAnimationPoints(r,i),l>0&&(o=this._getLineLength(r)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){r.stopAnimation();var c=void 0;c=Hi(u)?u(n):u,r.__t>0&&(c=-o*r.__t),this._animateSymbol(r,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,r,i){if(e>0){t.__t=0;var o=this,a=t.animate("",r).when(i?2*e:e,{__t:i?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));r||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return Po(t.__p1,t.__cp1)+Po(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,r=t.__cp1,i=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=ds,l=ps;o[0]=s(e[0],r[0],n[0],i),o[1]=s(e[1],r[1],n[1],i);var u=t.__t<1?l(e[0],r[0],n[0],i):l(n[0],r[0],e[0],1-i),c=t.__t<1?l(e[1],r[1],n[1],i):l(n[1],r[1],e[1],1-i);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*Po(a,o),1===i&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*Po(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(xu),tz=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createPolyline(e,n,r),i}return a(e,t),e.prototype._createPolyline=function(t,e,n){var r=t.getItemLayout(e),i=new _f({shape:{points:r}});this.add(i),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel;Wf(this.childAt(0),{shape:{points:t.getItemLayout(e)}},r,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var r=this.childAt(0),i=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=i.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,mp(this,a,s,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(xu),ez=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return a(e,t),e.prototype.createLine=function(t,e,n){return new tz(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],r=0,i=1;i<e.length;i++){var o=e[i-1],a=e[i];r+=Po(o,a),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,r=this._offsets,i=n.length;if(r){var o,a=this._lastFrame;if(e<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=e);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>e);o++);o=Math.min(o-1,i-2)}var s=(e-r[o])/(r[o+1]-r[o]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var c=t.__t<1?u[0]-l[0]:l[0]-u[0],h=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(h,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(JN),nz=function(){this.polyline=!1,this.curveness=0,this.segs=[]},rz=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return a(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nz},e.prototype.buildPath=function(t,e){var n,r=e.segs,i=e.curveness;if(e.polyline)for(n=this._off;n<r.length;){var o=r[n++];if(o>0){t.moveTo(r[n++],r[n++]);for(var a=1;a<o;a++)t.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],l=r[n++],u=r[n++],c=r[n++];if(t.moveTo(s,l),i>0){var h=(s+u)/2-(l-c)*i,d=(l+c)/2-(u-s)*i;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,r=n.segs,i=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<r.length;){var l=r[s++];if(l>0)for(var u=r[s++],c=r[s++],h=1;h<l;h++){if(Nh(u,c,d=r[s++],p=r[s++],o,t,e))return a}a++}else for(a=0,s=0;s<r.length;){u=r[s++],c=r[s++];var d=r[s++],p=r[s++];if(i>0){if(Bh(u,c,(u+d)/2-(c-p)*i,(c+p)/2-(d-u)*i,d,p,o,t,e))return a}else if(Nh(u,c,d,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return t=n[0],e=n[1],r.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,r=1/0,i=-1/0,o=-1/0,a=0;a<e.length;){var s=e[a++],l=e[a++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(l,r),o=Math.max(l,o)}t=this._rect=new Ca(n,r,i,o)}return t},e}(ed),iz=function(){function t(){this.group=new xu}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],r=e.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,a=new Float32Array(o+r.length);a.set(i),a.set(r,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new rz({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;t.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),t.useStyle(r.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=kd(t);o.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),oz={seriesType:"lines",plan:$_(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=i.start;c<i.end;c++){var p=t.getLineCoords(c,a);n&&(s[h++]=p);for(var f=0;f<p;f++)d=e.dataToPoint(a[f],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=o.getItemModel(c),y=(p=t.getLineCoords(c,a),[]);if(n)for(var v=0;v<p;v++)y.push(e.dataToPoint(a[v]));else{y[0]=e.dataToPoint(a[0]),y[1]=e.dataToPoint(a[1]);var m=g.get(["lineStyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}o.setItemLayout(c,y)}}}}}},az=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._updateLineDraw(r,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var u=t.get("clip",!0)&&EA(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateLineDraw(r,t).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var r=t.getData(),i=t.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=oz.reset(t,e,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,r=this._showEffect(e),i=!!e.get("polyline"),o=e.pipelineContext.large;return n&&r===this._hasEffet&&i===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new iz:new ZR(i?r?ez:tz:r?JN:UR),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(tx),sz="undefined"==typeof Uint32Array?Array:Uint32Array,lz="undefined"==typeof Float64Array?Array:Float64Array;function uz(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=zi(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),Li([e,t[0],t[1]])})))}var cz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return a(e,t),e.prototype.init=function(e){e.data=e.data||[],uz(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(uz(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=go(this._flatCoords,e.flatCoords),this._flatCoordsOffset=go(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],r=this._flatCoordsOffset[2*t+1],i=0;i<r;i++)e[i]=e[i]||[],e[i][0]=this._flatCoords[n+2*i],e[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(t);for(i=0;i<o.length;i++)e[i]=e[i]||[],e[i][0]=o[i][0],e[i][1]=o[i][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Yi(t[0])){for(var n=t.length,r=new sz(n),i=new lz(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];r[a++]=o+e,r[a++]=u;for(var c=0;c<u;c++){var h=t[l++],d=t[l++];i[o++]=h,i[o++]=d}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new SS(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,r,i){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[i]:o:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var r=this.getData().getItemModel(t),i=r.get("name");if(i)return i;var o=r.get("fromName"),a=r.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),C_("nameValue",{name:s.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(j_);function hz(t){return t instanceof Array||(t=[t,t]),t}var dz={seriesType:"lines",reset:function(t){var e=hz(t.get("symbol")),n=hz(t.get("symbolSize")),r=t.getData();return r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?function(t,e){var n=t.getItemModel(e),r=hz(n.getShallow("symbol",!0)),i=hz(n.getShallow("symbolSize",!0));r[0]&&t.setItemVisual(e,"fromSymbol",r[0]),r[1]&&t.setItemVisual(e,"toSymbol",r[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1])}:null}}};var pz=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=pi.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],y=f[1],v=r(f[2]);h.globalAlpha=v,h.drawImage(a,g-u,y-u)}if(!c.width||!c.height)return c;for(var m=h.getImageData(0,0,c.width,c.height),_=m.data,x=0,b=_.length,w=this.minOpacity,S=this.maxOpacity-w;x<b;){v=_[x+3]/256;var M=4*Math.floor(255*v);if(v>0){var I=o(v)?s:l;v>0&&(v=v*S+w),_[x++]=I[M],_[x++]=I[M+1],_[x++]=I[M+2],_[x++]=I[M+3]*v*256}else x+=4}return h.putImageData(m,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=pi.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var r=t.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,r=n[e]||(n[e]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},t}();function fz(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var gz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){var r;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(r=e)}))})),this._progressiveEls=null,this.group.removeAll();var i=t.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):fz(i)&&this._renderOnGeo(i,t,r,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,r){var i=e.coordinateSystem;i&&(fz(i)?this.render(e,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){bg(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,r,i){var o,a,s,l,u=t.coordinateSystem,c=NA(u,"cartesian2d");if(c){var h=u.getAxis("x"),d=u.getAxis("y");o=h.getBandWidth()+.5,a=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),_=Ag(t),x=t.getModel("emphasis"),b=x.get("focus"),w=x.get("blurScope"),S=x.get("disabled"),M=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],I=n;I<r;I++){var C=void 0,A=f.getItemVisual(I,"style");if(c){var T=f.get(M[0],I),k=f.get(M[1],I);if(isNaN(f.get(M[2],I))||isNaN(T)||isNaN(k)||T<s[0]||T>s[1]||k<l[0]||k>l[1])continue;var L=u.dataToPoint([T,k]);C=new pd({shape:{x:L[0]-o/2,y:L[1]-a/2,width:o,height:a},style:A})}else{if(isNaN(f.get(M[1],I)))continue;C=new pd({z2:1,shape:u.dataToRect([f.get(M[0],I)]).contentShape,style:A})}if(f.hasItemOption){var D=f.getItemModel(I),P=D.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=D.getModel(["blur","itemStyle"]).getItemStyle(),v=D.getModel(["select","itemStyle"]).getItemStyle(),m=D.get(["itemStyle","borderRadius"]),b=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),_=Ag(D)}C.shape.r=m;var R=t.getRawValue(I),O="-";R&&null!=R[2]&&(O=R[2]+""),Cg(C,_,{labelFetcher:t,labelDataIndex:I,defaultOpacity:A.opacity,defaultText:O}),C.ensureState("emphasis").style=g,C.ensureState("blur").style=y,C.ensureState("select").style=v,mp(C,b,w,S),C.incremental=i,i&&(C.states.emphasis.hoverLayer=!0),p.add(C),f.setItemGraphicEl(I,C),this._progressiveEls&&this._progressiveEls.push(C)}},e.prototype._renderOnGeo=function(t,e,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new pz;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,r.getWidth()),p=Math.min(l.height+l.y,r.getHeight()),f=d-c,g=p-h,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(y,(function(e,n,r){var i=t.dataToPoint([e,n]);return i[0]-=c,i[1]-=h,i.push(r),i})),m=n.getExtent(),_="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(m,n.option.range):function(t,e,n){var r=t[1]-t[0],i=(e=zi(e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}))).length,o=0;return function(t){var r;for(r=o;r<i;r++)if((a=e[r].interval)[0]<=t&&t<=a[1]){o=r;break}if(r===i)for(r=o-1;r>=0;r--){var a;if((a=e[r].interval)[0]<=t&&t<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}(m,n.getPieceList(),n.option.selected);s.update(v,f,g,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var x=new ad({style:{width:f,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(tx),yz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.getInitialData=function(t,e){return PS(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Hv.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(j_);var vz=["itemStyle","borderWidth"],mz=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],_z=new Xp,xz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){var r=this.group,i=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:mz[+s],categoryDim:mz[1-+s]};i.diff(o).add((function(t){if(i.hasValue(t)){var e=Tz(i,t),n=bz(i,t,e,u),o=Dz(i,u,n);i.setItemGraphicEl(t,o),r.add(o),Nz(o,u,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var a=Tz(i,t),s=bz(i,t,a,u),l=Rz(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var r=n.animationModel,i=n.dataIndex,o=t.__pictorialBundle;Wf(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?Mz(t,e,n,!0):Iz(t,e,n,!0);Cz(t,n,!0),Az(t,e,n,!0)}(n,u,s):n=Dz(i,u,s,!0),i.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,r.add(n),Nz(n,u,s)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&Pz(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute();var c=t.get("clip",!0)?EA(t.coordinateSystem,!1,t):null;return c?r.setClipPath(c):r.removeClipPath(),this._data=i,this.group},e.prototype.remove=function(t,e){var n=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl((function(e){Pz(r,kd(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(tx);function bz(t,e,n,r){var i=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),h={dataIndex:e,layout:i,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?n:null,hoverScale:c&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,r,i){var o,a=r.valueDim,s=t.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(Wi(s)){var h=[wz(l,s[0])-u,wz(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?wz(l,s)-u:e?r.coordSysExtent[a.index][c]-u:n[a.wh];i.boundingLength=o,e&&(i.repeatCutLength=n[a.wh]);var d="x"===a.xy,p=l.inverse;i.pxSign=d&&!p||!d&&p?o>=0?1:-1:o>0?1:-1}(n,o,i,r,h),function(t,e,n,r,i,o,a,s,l,u){var c,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=t.getItemVisual(e,"symbolSize");c=Wi(f)?f.slice():null==f?["100%","100%"]:[f,f];c[d.index]=Au(c[d.index],p),c[h.index]=Au(c[h.index],r?p:Math.abs(o)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,i,o,0,h.boundingLength,h.pxSign,u,r,h),function(t,e,n,r,i){var o=t.get(vz)||0;o&&(_z.attr({scaleX:e[0],scaleY:e[1],rotation:n}),_z.updateTransform(),o/=_z.getLineScale(),o*=e[r.valueDim.index]);i.valueLineWidth=o||0}(n,h.symbolScale,l,r,h);var d=h.symbolSize,p=gb(n.get("symbolOffset"),d);return function(t,e,n,r,i,o,a,s,l,u,c,h){var d=c.categoryDim,p=c.valueDim,f=h.pxSign,g=Math.max(e[p.index]+s,0),y=g;if(r){var v=Math.abs(l),m=to(t.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var x=Au(m,e[p.index]),b=Math.max(g+2*x,0),w=_?0:2*x,S=Wu(r),M=S?r:zz((v+w)/b);b=g+2*(x=(v-M*g)/2/(_?M:Math.max(M-1,1))),w=_?0:2*x,S||"fixed"===r||(M=u?zz((Math.abs(u)+w)/b):0),y=M*b-w,h.repeatTimes=M,h.symbolMargin=x}var I=f*(y/2),C=h.pathPosition=[];C[d.index]=n[d.wh]/2,C[p.index]="start"===a?I:"end"===a?l-I:l/2,o&&(C[0]+=o[0],C[1]+=o[1]);var A=h.bundlePosition=[];A[d.index]=n[d.xy],A[p.index]=n[p.xy];var T=h.barRectShape=Di({},n);T[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(C[p.index]+I)),T[d.wh]=n[d.wh];var k=h.clipShape={};k[d.xy]=-n[d.xy],k[d.wh]=c.ecSize[d.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}(n,d,i,o,0,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function wz(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Sz(t){var e=t.symbolPatternSize,n=pb(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Mz(t,e,n,r){var i=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(Oz(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?Ez(t,null,f(c),n,r):Ez(t,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(t)})),c++}));c<u;c++){var d=Sz(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var p=f(c);Ez(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function f(t){var e=s.slice(),r=n.pxSign,i=t;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=u-1-t),e[l.index]=h*(i-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Iz(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?Ez(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=t.__pictorialMainPath=Sz(n),i.add(o),Ez(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function Cz(t,e,n){var r=Di({},e.barRectShape),i=t.__pictorialBarRect;i?Ez(i,null,{shape:r},e,n):((i=t.__pictorialBarRect=new pd({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(i))}function Az(t,e,n,r){if(n.symbolClip){var i=t.__pictorialClipPath,o=Di({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(i)Wf(i,{shape:o},s,l);else{o[a.wh]=0,i=new pd({shape:o}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var u={};u[a.wh]=n.clipShape[a.wh],wg[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function Tz(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=kz,n.isAnimationEnabled=Lz,n}function kz(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Lz(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Dz(t,e,n,r){var i=new xu,o=new xu;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Mz(i,e,n):Iz(i,0,n),Cz(i,n,r),Az(i,e,n,r),i.__pictorialShapeStr=Rz(t,n),i.__pictorialSymbolMeta=n,i}function Pz(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];Oz(r,(function(t){o.push(t)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),Ni(o,(function(t){Zf(t,{scaleX:0,scaleY:0},n,e,(function(){r.parent&&r.parent.remove(r)}))})),t.setItemGraphicEl(e,null)}function Rz(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Oz(t,e,n){Ni(t.__pictorialBundle.children(),(function(r){r!==t.__pictorialBarRect&&e.call(n,r)}))}function Ez(t,e,n,r,i,o){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&wg[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,o)}function Nz(t,e,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");Oz(t,(function(t){if(t instanceof ad){var e=t.style;t.useStyle(Di({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var r=t.ensureState("emphasis");r.style=a,d&&(r.scaleX=1.1*t.scaleX,r.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var p=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,Cg(f,Ag(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:gA(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),mp(t,c,h,o.get("disabled"))}function zz(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var Bz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return a(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Jg(QA.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}(QA);var Vz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return a(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this,o=this.group,a=t.getLayerSeries(),s=r.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=new Jw(this._layersSeries||[],a,c,c),d=[];function p(e,n,s){var l=i._layers;if("remove"!==e){for(var u,c,h=[],p=[],f=a[n].indices,g=0;g<f.length;g++){var y=r.getItemLayout(f[g]),v=y.x,m=y.y0,_=y.y;h.push(v,m),p.push(v,m+_),u=r.getItemVisual(f[g],"style")}var x=r.getItemLayout(f[0]),b=t.getModel("label").get("margin"),w=t.getModel("emphasis");if("add"===e){var S=d[n]=new xu;c=new PA({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(c),o.add(S),t.isAnimationEnabled()&&c.setClipPath(function(t,e,n){var r=new pd({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Hf(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}(c.getBoundingRect(),t,(function(){c.removeClipPath()})))}else{S=l[s];c=S.childAt(0),o.add(S),d[n]=S,Wf(c,{shape:{points:h,stackedOnPoints:p}},t),qf(c)}Cg(c,Ag(t),{labelDataIndex:f[g-1],defaultText:r.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var M=c.getTextContent();M&&(M.x=x.x-b,M.y=x.y0+x.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),wp(c,t),mp(c,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else o.remove(l[n])}h.add(Gi(p,this,"add")).update(Gi(p,this,"update")).remove(Gi(p,this,"remove")).execute(),this._layersSeries=a,this._layers=d},e.type="themeRiver",e}(tx);var Fz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new BT(Gi(this.getData,this),Gi(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},r=vc(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),i=[];r.buckets.each((function(t,e){i.push({name:e,dataList:t})}));for(var o=i.length,a=0;a<o;++a){for(var s=i[a].name,l=0;l<i[a].dataList.length;++l){var u=i[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",pc).models[0].get("type"),r=Vi(t.data,(function(t){return void 0!==t[2]})),i=this.fixData(r||[]),o=[],a=this.nameMap=fo(),s=0,l=0;l<i.length;++l)o.push(i[l][2]),a.get(i[l][2])||(a.set(i[l][2],s),s++);var u=MS(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:nS(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new SS(u,this);return c.initData(i),c},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],r=0;r<e;++r)n[r]=r;var i=t.mapDimension("single"),o=vc(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(i,e)-t.get(i,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){Wi(t)||(t=t?[t]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,d=0;d<h;++d){var p=i.get(t[0],o[l].indices[d]),f=Math.abs(p-e);f<=u&&(r=p,u=f,c=o[l].indices[d])}a.push(c)}return{dataIndices:a,nestestValue:r}},e.prototype.formatTooltip=function(t,e,n){var r=this.getData();return C_("nameValue",{name:r.getName(t),value:r.get(r.mapDimension("value"),t)})},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}(j_);function Gz(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,r={},i=n.getRect();r.rect=i;var o=t.get("boundaryGap"),a=n.getAxis();(r.boundaryGap=o,"horizontal"===a.orient)?(o[0]=Au(o[0],i.height),o[1]=Au(o[1],i.height),jz(e,t,i.height-o[0]-o[1])):(o[0]=Au(o[0],i.width),o[1]=Au(o[1],i.width),jz(e,t,i.width-o[0]-o[1]));e.setLayout("layoutInfo",r)}))}function jz(t,e,n){if(t.count())for(var r,i=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=zi(o,(function(e){return zi(e.indices,(function(e){var n=i.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),u=function(t){for(var e=t.length,n=t[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(o-r[u])/2;o=0;for(var c=0;c<n;++c){var h=r[c]+i[c];h>o&&(o=h)}return{y0:i,max:o}}(l),c=u.y0,h=n/u.max,d=o.length,p=o[0].indices.length,f=0;f<p;++f){r=c[f]*h,t.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:r,y:l[0][f][1]*h});for(var g=1;g<d;++g)r+=l[g-1][f][1]*h,t.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:r,y:l[g][f][1]*h})}}var Wz=function(t){function e(e,n,r,i){var o=t.call(this)||this;o.z2=2,o.textConfig={inside:!0},kd(o).seriesIndex=n.seriesIndex;var a=new yd({z2:4,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,r,i),o}return a(e,t),e.prototype.updateData=function(t,e,n,r,i){this.node=e,e.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var o=this;kd(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=Di({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=Fb(h,i));var d=iT(a.getModel("itemStyle"),u,!0);Di(u,d),Ni(Ed,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var r=iT(n,u);r&&(e.shape=r)})),t?(o.setShape(u),o.shape.r=l.r0,Hf(o,{shape:{r:l.r}},n,e.dataIndex)):(Wf(o,{shape:u},n),qf(o)),o.useStyle(c),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var f=s.get("focus");mp(this,"relative"===f?go(e.getAncestorsIndices(),e.getDescendantIndices()):"ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),o=i.endAngle-i.startAngle,a=(i.startAngle+i.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,d=r.get("minAngle")/180*Math.PI,p=r.get("show")&&!(null!=d&&Math.abs(o)<d);function f(t,e){var n=t.get(e);return null==n?r.get(e):n}c.ignore=!p,Ni(Nd,(function(r){var d="normal"===r?n.getModel("label"):n.getModel([r,"label"]),p="normal"===r,g=p?c:c.ensureState(r),y=t.getFormattedLabel(h,r);p&&(y=y||e.node.name),g.style=Tg(d,{},null,"normal"!==r,!0),y&&(g.style.text=y);var v=d.get("show");null==v||p||(g.ignore=!v);var m,_=f(d,"position"),x=p?u:u.states[r],b=x.style.fill;x.textConfig={outsideFill:"inherit"===d.get("color")?b:null,inside:"outside"!==_};var w=f(d,"distance")||0,S=f(d,"align"),M=f(d,"rotate"),I=.5*Math.PI,C=1.5*Math.PI,A=Fh("tangential"===M?Math.PI/2-a:a),T=A>I&&!Eu(A-I)&&A<C;"outside"===_?(m=i.r+w,S=T?"right":"left"):S&&"center"!==S?"left"===S?(m=i.r0+w,S=T?"right":"left"):"right"===S&&(m=i.r-w,S=T?"left":"right"):(m=o===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=m*s+i.cx,g.y=m*l+i.cy;var k=0;"radial"===M?k=Fh(-a)+(T?Math.PI:0):"tangential"===M?k=Fh(Math.PI/2-a)+(T?Math.PI:0):Yi(M)&&(k=M*Math.PI/180),g.rotation=Fh(k)})),c.dirtyStyle()},e}(df),Hz="sunburstRootToNode",Uz="sunburstHighlight";var Zz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n,r){var i=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var h=this._oldChildren||[];!function(r,i){if(0===r.length&&0===i.length)return;function s(t){return t.getId()}function c(s,c){!function(r,i){u||!r||r.getValue()||(r=null);if(r!==a&&i!==a)if(i&&i.piece)r?(i.piece.updateData(!1,r,t,e,n),o.setItemGraphicEl(r.dataIndex,i.piece)):function(t){if(!t)return;t.piece&&(l.remove(t.piece),t.piece=null)}(i);else if(r){var s=new Wz(r,t,e,n);l.add(s),o.setItemGraphicEl(r.dataIndex,s)}}(null==s?null:r[s],null==c?null:i[c])}new Jw(i,r,s,s).add(c).update(c).remove(ji(c,null)).execute()}(c,h),function(r,o){o.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,t,e,n):(i.virtualPiece=new Wz(r,t,e,n),l.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",(function(t){i._rootToNode(o.parentNode)}))):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(r){if(!n&&r.piece&&r.piece===e.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)t._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a)Zy(a,o.get("target",!0)||"_blank")}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Hz,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,i=t[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(tx),Yz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return a(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};Xz(n);var r=this._levelModels=zi(t.levels||[],(function(t){return new Kg(t,this,e)}),this),i=iP.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e),o=r[n.depth];return o&&(t.parentModel=o),t}))}));return i.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=lP(r,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){fP(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}(j_);function Xz(t){var e=0;Ni(t.children,(function(t){Xz(t);var n=t.value;Wi(n)&&(n=n[0]),e+=n}));var n=t.value;Wi(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),Wi(t.value)?t.value[0]=n:t.value=n}var qz=Math.PI/180;function Kz(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),r=t.get("radius");Wi(r)||(r=[0,r]),Wi(e)||(e=[e,e]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=Au(e[0],i),l=Au(e[1],o),u=Au(r[0],a/2),c=Au(r[1],a/2),h=-t.get("startAngle")*qz,d=t.get("minAngle")*qz,p=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,y=t.get("sort");null!=y&&$z(f,y);var v=0;Ni(f.children,(function(t){!isNaN(t.getValue())&&v++}));var m=f.getValue(),_=Math.PI/(m||v)*2,x=f.depth>0,b=f.height-(x?-1:1),w=(c-u)/(b||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=S?1:-1,C=function(e,n){if(e){var r=n;if(e!==p){var i=e.getValue(),o=0===m&&M?_:i*_;o<d&&(o=d),r=n+I*o;var c=e.depth-g-(x?-1:1),h=u+w*c,f=u+w*(c+1),y=t.getLevelModel(e);if(y){var v=y.get("r0",!0),b=y.get("r",!0),A=y.get("radius",!0);null!=A&&(v=A[0],b=A[1]),null!=v&&(h=Au(v,a/2)),null!=b&&(f=Au(b,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:r,clockwise:S,cx:s,cy:l,r0:h,r:f})}if(e.children&&e.children.length){var T=0;Ni(e.children,(function(t){T+=C(t,n+T)}))}return r-n}};if(x){var A=u,T=u+w,k=2*Math.PI;p.setLayout({angle:k,startAngle:h,endAngle:h+k,clockwise:S,cx:s,cy:l,r0:A,r:T})}C(f,h)}))}function $z(t,e){var n=t.children||[];t.children=function(t,e){if(Hi(e)){var n=zi(t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),zi(n,(function(e){return t[e.index]}))}var r="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(r?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(r?-1:1):n}))}(n,e),n.length&&Ni(t.children,(function(t){$z(t,e)}))}function Qz(t){var e={};t.eachSeriesByType("sunburst",(function(t){var n=t.getData(),r=n.tree;r.eachNode((function(i){var o=i.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(t,n,r){for(var i=t;i&&i.depth>1;)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",e);return t.depth>1&&Ui(o)&&(o=Bs(o,(t.depth-1)/(r-1)*.5)),o}(i,t,r.root.height)),Di(n.ensureUniqueItemVisual(i.dataIndex,"style"),o)}))}))}var Jz={color:"fill",borderColor:"stroke"},tB={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},eB=uc(),nB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return PS(null,this)},e.prototype.getDataParams=function(e,n,r){var i=t.prototype.getDataParams.call(this,e,n);return r&&(i.info=eB(r).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(j_);function rB(t,e){return e=e||[0,0],zi(["x","y"],(function(n,r){var i=this.getAxis(n),o=e[r],a=t[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function iB(t,e){return e=e||[0,0],zi([0,1],(function(n){var r=e[n],i=t[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function oB(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function aB(t,e){return e=e||[0,0],zi(["Radius","Angle"],(function(n,r){var i=this["get"+n+"Axis"](),o=e[r],a=t[r]/2,s="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}function sB(t,e,n,r){return t&&(t.legacy||!1!==t.legacy&&!n&&!r&&"tspan"!==e&&("text"===e||mo(t,"text")))}function lB(t,e,n){var r,i,o,a=t;if("text"===e)o=a;else{o={},mo(a,"text")&&(o.text=a.text),mo(a,"rich")&&(o.rich=a.rich),mo(a,"textFill")&&(o.fill=a.textFill),mo(a,"textStroke")&&(o.stroke=a.textStroke),mo(a,"fontFamily")&&(o.fontFamily=a.fontFamily),mo(a,"fontSize")&&(o.fontSize=a.fontSize),mo(a,"fontStyle")&&(o.fontStyle=a.fontStyle),mo(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},r={};var s=mo(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),mo(a,"textPosition")&&(r.position=a.textPosition),mo(a,"textOffset")&&(r.offset=a.textOffset),mo(a,"textRotation")&&(r.rotation=a.textRotation),mo(a,"textDistance")&&(r.distance=a.textDistance)}return uB(o,t),Ni(o.rich,(function(t){uB(t,t)})),{textConfig:r,textContent:i}}function uB(t,e){e&&(e.font=e.textFont||e.font,mo(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),mo(e,"textAlign")&&(t.align=e.textAlign),mo(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),mo(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),mo(e,"textWidth")&&(t.width=e.textWidth),mo(e,"textHeight")&&(t.height=e.textHeight),mo(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),mo(e,"textPadding")&&(t.padding=e.textPadding),mo(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),mo(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),mo(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),mo(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),mo(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),mo(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),mo(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function cB(t,e,n){var r=t;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=t.fill||"#000";hB(r,e);var a=null==r.textFill;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,Ni(e.rich,(function(t){hB(t,t)})),r}function hB(t,e){e&&(mo(e,"fill")&&(t.textFill=e.fill),mo(e,"stroke")&&(t.textStroke=e.fill),mo(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),mo(e,"font")&&(t.font=e.font),mo(e,"fontStyle")&&(t.fontStyle=e.fontStyle),mo(e,"fontWeight")&&(t.fontWeight=e.fontWeight),mo(e,"fontSize")&&(t.fontSize=e.fontSize),mo(e,"fontFamily")&&(t.fontFamily=e.fontFamily),mo(e,"align")&&(t.textAlign=e.align),mo(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),mo(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),mo(e,"width")&&(t.textWidth=e.width),mo(e,"height")&&(t.textHeight=e.height),mo(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),mo(e,"padding")&&(t.textPadding=e.padding),mo(e,"borderColor")&&(t.textBorderColor=e.borderColor),mo(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),mo(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),mo(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),mo(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),mo(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),mo(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),mo(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),mo(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),mo(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),mo(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var dB={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},pB=Fi(dB);Bi(Jl,(function(t,e){return t[e]=1,t}),{}),Jl.join(", ");var fB=["","style","shape","extra"],gB=uc();function yB(t,e,n,r,i){var o=t+"Animation",a=Gf(t,r,i)||{},s=gB(e).userDuring;return a.duration>0&&(a.during=s?Gi(SB,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Di(a,n[o]),a}function vB(t,e,n,r){var i=(r=r||{}).dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=gB(t),u=e.style;l.userDuring=e.during;var c={},h={};if(function(t,e,n){for(var r=0;r<pB.length;r++){var i=pB[r],o=dB[i],a=e[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(r=0;r<Jl.length;r++){var s=Jl[r];null!=e[s]&&(n[s]=e[s])}}(0,e,h),IB("shape",e,h),IB("extra",e,h),!o&&s&&(function(t,e,n){for(var r=e.transition,i=xB(r)?Jl:$u(r||[]),o=0;o<i.length;o++){var a=i[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];n[a]=s}}}(t,e,c),MB("shape",t,e,c),MB("extra",t,e,c),function(t,e,n,r){if(!n)return;var i,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!xB(a)){var l=$u(a);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=o[f=l[u]];i[f]=c}}else if(t.getAnimationStyleProps&&(xB(s)||xB(a)||Ri(s,"style")>=0)){var h=t.getAnimationStyleProps(),d=h?h.style:null;if(d){!i&&(i=r.style={});var p=Fi(n);for(u=0;u<p.length;u++){var f;if(d[f=p[u]]){c=o[f];i[f]=c}}}}}}(t,e,u,c)),h.style=u,function(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var i=t.animators,o=0;o<i.length;o++){var a=i[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}(t,h,a),function(t,e){mo(e,"silent")&&(t.silent=e.silent),mo(e,"ignore")&&(t.ignore=e.ignore),t instanceof Jc&&mo(e,"invisible")&&(t.invisible=e.invisible);t instanceof ed&&mo(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(o){var d={};Ni(fB,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(d[t]=d[t]||{}),Di(t?d[t]:d,n.enterFrom))}));var p=yB("enter",t,e,n,i);p.duration>0&&t.animateFrom(d,p)}else!function(t,e,n,r,i){if(i){var o=yB("update",t,e,r,n);o.duration>0&&t.animateFrom(i,o)}}(t,e,i||0,n,c);mB(t,e),u?t.dirty():t.markRedraw()}function mB(t,e){for(var n=gB(t).leaveToProps,r=0;r<fB.length;r++){var i=fB[r],o=i?e[i]:e;o&&o.leaveTo&&(n||(n=gB(t).leaveToProps={}),i&&(n[i]=n[i]||{}),Di(i?n[i]:n,o.leaveTo))}}function _B(t,e,n,r){if(t){var i=t.parent,o=gB(t).leaveToProps;if(o){var a=yB("update",t,e,n,0);a.done=function(){i.remove(t)},t.animateTo(o,a)}else i.remove(t)}}function xB(t){return"all"===t}var bB={},wB={setTransform:function(t,e){return bB.el[t]=e,this},getTransform:function(t){return bB.el[t]},setShape:function(t,e){var n=bB.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=bB.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=bB.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=bB.el.style;if(e)return e[t]},setExtra:function(t,e){return(bB.el.extra||(bB.el.extra={}))[t]=e,this},getExtra:function(t){var e=bB.el.extra;if(e)return e[t]}};function SB(){var t=this,e=t.el;if(e){var n=gB(e).userDuring,r=t.userDuring;n===r?(bB.el=e,r(wB)):t.el=t.userDuring=null}}function MB(t,e,n,r){var i=n[t];if(i){var o,a=e[t];if(a){var s=n.transition,l=i.transition;if(l)if(!o&&(o=r[t]={}),xB(l))Di(o,a);else for(var u=$u(l),c=0;c<u.length;c++){var h=a[p=u[c]];o[p]=h}else if(xB(s)||Ri(s,t)>=0){!o&&(o=r[t]={});var d=Fi(a);for(c=0;c<d.length;c++){var p;h=a[p=d[c]];CB(i[p],h)&&(o[p]=h)}}}}}function IB(t,e,n){var r=e[t];if(r)for(var i=n[t]={},o=Fi(r),a=0;a<o.length;a++){var s=o[a];i[s]=fl(r[s])}}function CB(t,e){return Ei(t)?t!==e:null!=t&&isFinite(t)}var AB=uc(),TB=["percent","easing","shape","style","extra"];function kB(t){t.stopAnimation("keyframe"),t.attr(AB(t))}function LB(t,e,n){if(n.isAnimationEnabled()&&e)if(Wi(e))Ni(e,(function(e){LB(t,e,n)}));else{var r=e.keyframes,i=e.duration;if(n&&null==i){var o=Gf("enter",n,0);i=o&&o.duration}if(r&&i){var a=AB(t);Ni(fB,(function(n){var o;n&&!t[n]||(r.sort((function(t,e){return t.percent-e.percent})),Ni(r,(function(r){var s=t.animators,l=n?r[n]:r;if(l){var u=Fi(l);if(n||(u=Vi(u,(function(t){return Ri(TB,t)<0}))),u.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var h=n?a[n]:a;Ni(u,(function(e){h[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(i*r.percent,l,u,r.easing)}}})),o&&o.delay(e.delay||0).duration(i).start(e.easing))}))}}}var DB="emphasis",PB="normal",RB="blur",OB="select",EB=[PB,DB,RB,OB],NB={normal:["itemStyle"],emphasis:[DB,"itemStyle"],blur:[RB,"itemStyle"],select:[OB,"itemStyle"]},zB={normal:["label"],emphasis:[DB,"label"],blur:[RB,"label"],select:[OB,"label"]},BB=["x","y"],VB={normal:{},emphasis:{},blur:{},select:{}},FB={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Gi(rB,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:Gi(iB,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Gi(oB,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=e.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=t.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:Gi(aB,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function GB(t){return t instanceof ed}function jB(t){return t instanceof Jc}var WB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._data,o=t.getData(),a=this.group,s=XB(t,o,e,n);i||a.removeAll(),o.diff(i).add((function(e){KB(n,null,e,s(e,r),t,a,o)})).remove((function(e){var n=i.getItemGraphicEl(e);n&&_B(n,eB(n).option,t)})).update((function(e,l){var u=i.getItemGraphicEl(l);KB(n,u,e,s(e,r),t,a,o)})).execute();var l=t.get("clip",!0)?EA(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,r,i){var o=e.getData(),a=XB(e,o,n,r),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=KB(null,null,u,a(u,i),e,this.group,o);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){bg(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,r){var i=e.element;if(null==i||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},e.type="custom",e}(tx);function HB(t){var e,n=t.type;if("path"===n){var r=t.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=aV(r);e=ng(o,null,i,r.layout||"center"),eB(e).customPathData=o}else if("image"===n)e=new ad({}),eB(e).customImagePath=t.style.image;else if("text"===n)e=new yd({});else if("group"===n)e=new xu;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=eg(n);if(!a){Yu("")}e=new a}return eB(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function UB(t,e,n,r,i,o,a){kB(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&null==r.transition&&(r.transition=BB);var l=r&&r.style;if(l){if("text"===e.type){var u=l;mo(u,"textFill")&&(u.fill=u.textFill),mo(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=GB(e)?l.decal:null;t&&h&&(h.dirty=!0,c=Fb(h,t)),l.__decalPattern=c}jB(e)&&(l&&(c=l.__decalPattern)&&(l.decal=c));vB(e,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),LB(e,r.keyframeAnimation,o)}function ZB(t,e,n,r,i){var o=e.isGroup?null:e,a=i&&i[t].cfg;if(o){var s=o.ensureState(t);if(!1===r){var l=o.getState(t);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),ep(o)}}function YB(t,e,n){var r=n===PB,i=r?e:tV(e,n),o=i?i.z2:null;null!=o&&((r?t:t.ensureState(n)).z2=o||0)}function XB(t,e,n,r){var i=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):FB[o.type](o));for(var s,l,u=Pi({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:function(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,r){null==r&&(r=s);var i=e.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,l=m(r,PB).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:Ui(o)?o:"#000"},c=_(r,PB),h=Tg(c,null,u,!1,!0);h.text=c.getShallow("show")?eo(t.getFormattedLabel(r,PB),gA(e,r)):null;var d=kg(c,u,!1);return b(n,l),l=cB(l,h,d),n&&x(l,n),l.legacy=!0,l},ordinalRawValue:function(t,n){null==n&&(n=s),t=t||0;var r=e.getDimensionInfo(t);if(!r){var i=e.getDimensionIndex(t);return i>=0?e.getStore().get(i,n):void 0}var o=e.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,r){null==r&&(r=s);var i=m(r,DB).getItemStyle(),o=_(r,DB),a=Tg(o,null,null,!0,!0);a.text=o.getShallow("show")?no(t.getFormattedLabel(r,DB),t.getFormattedLabel(r,PB),gA(e,r)):null;var l=kg(o,null,!0);return b(n,i),i=cB(i,a,l),n&&x(i,n),i.legacy=!0,i},visual:function(t,n){if(null==n&&(n=s),mo(Jz,t)){var r=e.getItemVisual(n,"style");return r?r[Jz[t]]:null}if(mo(tB,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type){return function(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<t.count;o++)e.push(Pi({bandWidth:i,axisKey:r,stackId:$S+o},t));var a=nM(e),s=[];for(o=0;o<t.count;o++){var l=a[r][$S+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}(Pi({axis:o.getBaseAxis()},t))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return Og(t,n)}},a.api||{}),c={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:qB(t.getData())},h={},d={},p={},f={},g=0;g<EB.length;g++){var y=EB[g];p[y]=t.getModel(NB[y]),f[y]=t.getModel(zB[y])}function v(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function m(t,n){return e.hasItemOption?t===s?h[n]||(h[n]=v(t).getModel(NB[n])):v(t).getModel(NB[n]):p[n]}function _(t,n){return e.hasItemOption?t===s?d[n]||(d[n]=v(t).getModel(zB[n])):v(t).getModel(zB[n]):f[n]}return function(t,n){return s=t,l=null,h={},d={},i&&i(Pi({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},c),u)};function x(t,e){for(var n in e)mo(e,n)&&(t[n]=e[n])}function b(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function qB(t){var e={};return Ni(t.dimensions,(function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim;(e[i]=e[i]||[])[r.coordDimIndex]=t.getDimensionIndex(n)}})),e}function KB(t,e,n,r,i,o,a){if(r){var s=$B(t,e,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&mp(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(e)}function $B(t,e,n,r,i,o){var a=-1,s=e;e&&QB(e,r,i)&&(a=Ri(o.childrenRef(),e),e=null);var l,u,c=!e,h=e;h?h.clearStates():(h=HB(r),s&&(l=s,(u=h).copyTransform(l),jB(u)&&jB(l)&&(u.setStyle(l.style),u.z=l.z,u.z2=l.z2,u.zlevel=l.zlevel,u.invisible=l.invisible,u.ignore=l.ignore,GB(u)&&GB(l)&&u.setShape(l.shape)))),!1===r.morph?h.disableMorphing=!0:h.disableMorphing&&(h.disableMorphing=!1),VB.normal.cfg=VB.normal.conOpt=VB.emphasis.cfg=VB.emphasis.conOpt=VB.blur.cfg=VB.blur.conOpt=VB.select.cfg=VB.select.conOpt=null,VB.isLegacy=!1,function(t,e,n,r,i,o){if(t.isGroup)return;JB(n,null,o),JB(n,DB,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=HB(a),t.setTextContent(c)),UB(null,c,e,a,null,r,i);for(var h=a&&a.style,d=0;d<EB.length;d++){var p=EB[d];if(p!==PB){var f=o[p].conOpt;ZB(p,c,0,eV(a,f,p),null)}}h?c.dirty():c.markRedraw()}}}(h,n,r,i,c,VB),function(t,e,n,r,i){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&QB(a,o,r)&&(a=null),a||(a=HB(o),t.setClipPath(a)),UB(null,a,e,o,null,r,i)}}(h,n,r,i,c),UB(t,h,n,r,VB,i,c),mo(r,"info")&&(eB(h).info=r.info);for(var d=0;d<EB.length;d++){var p=EB[d];if(p!==PB){var f=tV(r,p);ZB(p,h,0,eV(r,f,p),VB)}}return function(t,e,n){if(!t.isGroup){var r=t,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=e.z2;null!=a&&(r.z2=a||0);for(var s=0;s<EB.length;s++)YB(r,e,EB[s])}}(h,r,i),"group"===r.type&&function(t,e,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,u=!1===s;if(!a&&!l&&!u)return;if(l)return c={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:e},void new Jw(c.oldChildren,c.newChildren,rV,rV,c).add(iV).update(iV).remove(oV).execute();var c;u&&e.removeAll();for(var h=0;h<a;h++){var d=o[h],p=e.childAt(h);d?(null==d.ignore&&(d.ignore=!1),$B(t,p,n,d,i,e)):p.ignore=!0}for(var f=e.childCount()-1;f>=h;f--){var g=e.childAt(f);nV(e,g,i)}}(t,h,n,r,i),a>=0?o.replaceAt(h,a):o.add(h),h}function QB(t,e,n){var r,i=eB(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==i.customGraphicType||"path"===o&&((r=a)&&(mo(r,"pathData")||mo(r,"d")))&&aV(a)!==i.customPathData||"image"===o&&mo(s,"image")&&s.image!==i.customImagePath}function JB(t,e,n){var r=e?tV(t,e):t,i=e?eV(t,r,DB):t.style,o=t.type,a=r?r.textConfig:null,s=t.textContent,l=s?e?tV(s,e):s:null;if(i&&(n.isLegacy||sB(i,o,!!a,!!l))){n.isLegacy=!0;var u=lB(i,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function tV(t,e){return e?t?t[e]:null:t}function eV(t,e,n){var r=e&&e.style;return null==r&&n===DB&&t&&(r=t.styleEmphasis),r}function nV(t,e,n){e&&_B(e,eB(t).option,n)}function rV(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function iV(t,e){var n=this.context,r=null!=t?n.newChildren[t]:null,i=null!=e?n.oldChildren[e]:null;$B(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function oV(t){var e=this.context,n=e.oldChildren[t];n&&_B(n,eB(n).option,e.seriesModel)}function aV(t){return t&&(t.pathData||t.d)}var sV=uc(),lV=Ti,uV=Gi,cV=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=ji(hV,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new xu,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);gV(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=Mk(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=sV(t).pointerEl=new wg[i.type](lV(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=sV(t).labelEl=new yd(lV(e.label));t.add(i),pV(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=sV(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=sV(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),pV(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=gg(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){oa(t.event)},onmousedown:uV(this._onHandleDragMove,this,0,0),drift:uV(this._onHandleDragMove,this),ondragend:uV(this._onHandleDragEnd,this)}),r.add(i)),gV(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");Wi(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,cx(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){hV(this._axisPointerModel,!e&&this._moveAnimation,this._handle,fV(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(fV(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(fV(r)),sV(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),hx(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function hV(t,e,n,r){dV(sV(n).lastProp,r)||(sV(n).lastProp=r,e?Wf(n,r,t):(n.stopAnimation(),n.attr(r)))}function dV(t,e){if(Xi(t)&&Xi(e)){var n=!0;return Ni(e,(function(e,r){n=n&&dV(t[r],e)})),!!n}return t===e}function pV(t,e){t[e.get(["label","show"])?"show":"hide"]()}function fV(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function gV(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}function yV(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle()).fill=null:"shadow"===n&&((e=r.getAreaStyle()).stroke=null),e}function vV(t,e,n,r,i){var o=mV(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Fy(a.get("padding")||0),l=a.getFont(),u=iu(o,l),c=i.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],p=i.align;"right"===p&&(c[0]-=h),"center"===p&&(c[0]-=h/2);var f=i.verticalAlign;"bottom"===f&&(c[1]-=d),"middle"===f&&(c[1]-=d/2),function(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,d,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Tg(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function mV(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:OM(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};Ni(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)})),Ui(a)?o=a.replace("{value}",o):Hi(a)&&(o=a(s))}return o}function _V(t,e,n){var r=[1,0,0,1,0,0];return fa(r,r,n.rotation),pa(r,r,n.position),cg([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function xV(t,e,n,r,i,o){var a=yk.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),vV(e,r,i,o,{position:_V(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function bV(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function wV(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function SV(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var MV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=IV(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=yV(r),h=CV[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}xV(e,t,ak(a.model,n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=ak(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=_V(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=IV(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(cV);function IV(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var CV={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:bV([e,n[0]],[e,n[1]],AV(t))}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:wV([e-r/2,n[0]],[r,i],AV(t))}}};function AV(t){return"x"===t.dim?0:1}var TV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),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}(ov),kV=uc(),LV=Ni;function DV(t,e,n){if(!si.node){var r=e.getZr();kV(r).records||(kV(r).records={}),function(t,e){if(kV(t).initialized)return;function n(n,r){t.on(n,(function(n){var i=function(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}(e);LV(kV(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),function(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(i.pendings,e)}))}kV(t).initialized=!0,n("click",ji(RV,"click")),n("mousemove",ji(RV,"mousemove")),n("globalout",PV)}(r,e),(kV(r).records[t]||(kV(r).records[t]={})).handler=n}}function PV(t,e,n){t.handler("leave",null,n)}function RV(t,e,n,r){e.handler(t,n,r)}function OV(t,e){if(!si.node){var n=e.getZr();(kV(n).records||{})[t]&&(kV(n).records[t]=null)}}var EV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";DV("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){OV("axisPointer",e)},e.prototype.dispose=function(t,e){OV("axisPointer",e)},e.type="axisPointer",e}(K_);function NV(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=lc(o,t);if(null==a||a<0||Wi(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,d="x"===c||"radius"===c?1:0,p=o.mapDimension(h),f=[];f[d]=o.get(p,a),f[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(f)||[]}else r=l.dataToPoint(o.getValues(zi(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var zV=uc();function BV(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Gi(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){WV(i)&&(i=NV({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=WV(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||WV(i),d={},p={},f={list:[],map:{}},g={showPointer:ji(FV,p),showTooltip:ji(GV,f)};Ni(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);Ni(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&VV(t,a,g,!1,d)}}))}));var y={};return Ni(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Ni(n.axesInfo,(function(e,r){var i=p[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,jV(e),jV(t)))),y[t.key]=o}}))})),Ni(y,(function(t,e){VV(c[e],t,g,!0,d)})),function(t,e,n){var r=n.axesInfo=[];Ni(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}(p,c,d),function(t,e,n,r){if(WV(e)||!t.list.length)return void r({type:"hideTip"});var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}(f,i,t,a),function(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=zV(r)[i]||{},a=zV(r)[i]={};Ni(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Ni(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Ni(o,(function(t,e){!a[e]&&l.push(t)})),Ni(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function VV(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return Ni(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,i=u,o.length=0),Ni(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Di(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function FV(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function GV(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=Ck(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function jV(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function WV(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function HV(t){Tk.registerAxisPointerClass("CartesianAxisPointer",MV),t.registerComponentModel(TV),t.registerComponentView(EV),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Wi(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=wk(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},BV)}var UV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(e),u=r.get("type");if(u&&"none"!==u){var c=yV(r),h=ZV[u](o,a,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=function(t,e,n,r,i){var o=e.axis,a=o.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=r.getRadiusAxis().getExtent();if("radius"===o.dim){var d=[1,0,0,1,0,0];fa(d,d,s),pa(d,d,[r.cx,r.cy]),l=cg([a,-i],d);var p=e.getModel("axisLabel").get("rotate")||0,f=yk.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=r.coordToPoint([g+i,a]);var y=r.cx,v=r.cy;u=Math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,n,0,a,r.get(["label","margin"]));vV(t,n,r,i,d)},e}(cV);var ZV={line:function(t,e,n,r){return"angle"===t.dim?{type:"Line",shape:bV(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var i=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:SV(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:SV(e.cx,e.cy,n-i/2,n+i/2,0,2*Math.PI)}}},YV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(ov),XV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",pc).models[0]},e.type="polarAxis",e}(ov);Oi(XV,VM);var qV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="angleAxis",e}(XV),KV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="radiusAxis",e}(XV),$V=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return a(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(cI);$V.prototype.dataToRadius=cI.prototype.dataToCoord,$V.prototype.radiusToData=cI.prototype.coordToData;var QV=uc(),JV=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return a(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var o=r[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=iu(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),h=QV(t.model),d=h.lastAutoInterval,p=h.lastTickCount;return null!=d&&null!=p&&Math.abs(d-c)<=1&&Math.abs(p-i)<=1&&d>c?c=d:(h.lastTickCount=i,h.lastAutoInterval=c),c},e}(cI);JV.prototype.dataToAngle=cI.prototype.dataToCoord,JV.prototype.angleToData=cI.prototype.coordToData;var tF=["radius","angle"],eF=function(){function t(t){this.dimensions=tF,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new $V,this._angleAxis=new JV,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===t&&e.push(n),r.scale.type===t&&e.push(r),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),r=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,r=e-this.cy,o=n*n+r*r,a=this.r,s=this.r0;return a!==s&&o-i<=a*a&&o+i>=s*s}}},t.prototype.convertToPixel=function(t,e,n){return nF(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return nF(e)===this?this.pointToData(n):null},t}();function nF(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function rF(t,e){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();Ni(BM(e,"radius"),(function(t){i.scale.unionExtentFromData(e,t)})),Ni(BM(e,"angle"),(function(t){r.scale.unionExtentFromData(e,t)}))}})),DM(r.scale,r.model),DM(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function iF(t,e){var n;if(t.type=e.get("type"),t.scale=PM(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var r=e.get("startAngle"),i=null!==(n=e.get("endAngle"))&&void 0!==n?n:r+(t.inverse?-360:360);t.setExtent(r,i)}e.axis=t,t.model=e}var oF={dimensions:tF,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,r){var i=new eF(r+"");i.update=rF;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");iF(o,s),iF(a,l),function(t,e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight();t.cx=Au(r[0],i),t.cy=Au(r[1],o);var a=t.getRadiusAxis(),s=Math.min(i,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:Wi(l)||(l=[0,l]);var u=[Au(l[0],s),Au(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(i,t,e),n.push(i),t.coordinateSystem=i,i.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",pc).models[0];t.coordinateSystem=e.coordinateSystem}})),n}},aF=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function sF(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),i=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function lF(t){return t.getRadiusAxis().inverse?0:1}function uF(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var cF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return a(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=zi(n.getViewLabels(),(function(t){t=Ti(t);var e=n.scale,r="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(r),t}));uF(s),uF(o),Ni(aF,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||hF[e](this.group,t,r,o,a,i,s)}),this)}},e.type="angleAxis",e}(Tk),hF={axisLine:function(t,e,n,r,i,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,c=l.getExtent(),h=lF(n),d=h?0:1,p=360===Math.abs(c[1]-c[0])?"Circle":"Arc";(a=0===o[d]?new wg[p]({shape:{cx:n.cx,cy:n.cy,r:o[h],startAngle:-c[0]*u,endAngle:-c[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new ff({shape:{cx:n.cx,cy:n.cy,r:o[h],r0:o[d]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,r,i,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[lF(n)],u=zi(r,(function(t){return new wf({shape:sF(n,[l,l+s],t.coord)})}));t.add(og(u,{style:Pi(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[lF(n)],c=[],h=0;h<i.length;h++)for(var d=0;d<i[h].length;d++)c.push(new wf({shape:sF(n,[u,u+l],i[h][d].coord)}));t.add(og(c,{style:Pi(s.getModel("lineStyle").getLineStyle(),Pi(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,i,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");Ni(a,(function(r,i){var a=l,h=r.tickValue,d=o[lF(n)],p=n.coordToPoint([d+u,r.coord]),f=n.cx,g=n.cy,y=Math.abs(p[0]-f)/d<.3?"center":p[0]>f?"left":"right",v=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[h]){var m=s[h];Xi(m)&&m.textStyle&&(a=new Kg(m.textStyle,l,l.ecModel))}var _=new yd({silent:yk.isLabelSilent(e),style:Tg(a,{x:p[0],y:p[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:y,verticalAlign:v})});if(t.add(_),c){var x=yk.makeAxisEventDataBase(e);x.targetType="axisLabel",x.value=r.rawLabel,kd(_).eventData=x}}),this)},splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<r.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new wf({shape:sF(n,o,r[c].coord)}))}for(c=0;c<u.length;c++)t.add(og(u[c],{style:Pi({stroke:s[c%s.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<i.length;l++)for(var u=0;u<i[l].length;u++)s.push(new wf({shape:sF(n,o,i[l][u].coord)}));t.add(og(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,i,o){if(r.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=Math.PI/180,h=-r[0].coord*c,d=Math.min(o[0],o[1]),p=Math.max(o[0],o[1]),f=e.get("clockwise"),g=1,y=r.length;g<=y;g++){var v=g===y?r[0].coord:r[g].coord,m=l++%s.length;u[m]=u[m]||[],u[m].push(new df({shape:{cx:n.cx,cy:n.cy,r0:d,r:p,startAngle:h,endAngle:-v*c,clockwise:f},silent:!0})),h=-v*c}for(g=0;g<u.length;g++)t.add(og(u[g],{style:Pi({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}},dF=["axisLine","axisTickLabel","axisName"],pF=["splitLine","splitArea","minorSplitLine"],fF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return a(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,r=this._axisGroup=new xu;this.group.add(r);var i=t.axis,o=i.polar,a=o.getAngleAxis(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=a.getExtent()[0],c=i.getExtent(),h=function(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(o,t,u),d=new yk(t,h);Ni(dF,d.add,d),r.add(d.getGroup()),pg(n,r,t),Ni(pF,(function(e){t.get([e,"show"])&&!i.scale.isBlank()&&gF[e](this.group,t,o,u,c,s,l)}),this)}},e.type="radiusAxis",e}(Tk),gF={splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,u=n.getAngleAxis(),c=Math.PI/180,h=u.getExtent(),d=360===Math.abs(h[1]-h[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var p=[],f=0;f<o.length;f++){var g=l++%s.length;p[g]=p[g]||[],p[g].push(new wg[d]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[f].coord,0),startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:u.inverse}}))}for(f=0;f<p.length;f++)t.add(og(p[f],{style:Pi({stroke:s[f%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,i,o,a){if(a.length){for(var s=e.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new Xp({shape:{cx:n.cx,cy:n.cy,r:a[u][c].coord}}));t.add(og(l,{style:Pi({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,i,o){if(o.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=o[0].coord,h=1;h<o.length;h++){var d=l++%s.length;u[d]=u[d]||[],u[d].push(new df({shape:{cx:n.cx,cy:n.cy,r0:c,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[h].coord}for(h=0;h<u.length;h++)t.add(og(u[h],{style:Pi({fill:s[h%s.length]},a.getAreaStyle()),silent:!0}))}}};function yF(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function vF(t,e){return e.dim+t.model.componentIndex}function mF(t,e,n){var r={},i=function(t){var e={};Ni(t,(function(t,n){var r=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=vF(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var h=yF(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=Au(t.get("barWidth"),l),p=Au(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),p&&(c[h].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return Ni(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=Au(t.categoryGap,i),a=Au(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),Ni(r,(function(t,e){var n=t.maxWidth;n&&n<u&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,h=0;Ni(r,(function(t,e){t.width||(t.width=u),c=t,h+=t.width*(1+a)})),c&&(h-=c.width*a);var d=-h/2;Ni(r,(function(t,r){n[e][r]=n[e][r]||{offset:d,width:t.width},d+=t.width*(1+a)}))})),n}(Vi(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=vF(n,o),s=yF(t),l=i[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(o),d=t.coordinateSystem.cx,p=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;r[s]=r[s]||[];for(var y=e.mapDimension(h.dim),v=e.mapDimension(o.dim),m=LS(e,y),_="radius"!==o.dim||!t.get("roundCap",!0),x=h.model.get("startValue"),b=h.dataToCoord(x||0),w=0,S=e.count();w<S;w++){var M=e.get(y,w),I=e.get(v,w),C=M>=0?"p":"n",A=b;m&&(r[s][I]||(r[s][I]={p:b,n:b}),A=r[s][I][C]);var T=void 0,k=void 0,L=void 0,D=void 0;if("radius"===h.dim){var P=h.dataToCoord(M)-b,R=o.dataToCoord(I);Math.abs(P)<f&&(P=(P<0?-1:1)*f),T=A,k=A+P,D=(L=R-u)-c,m&&(r[s][I][C]=k)}else{var O=h.dataToCoord(M,_)-b,E=o.dataToCoord(I);Math.abs(O)<g&&(O=(O<0?-1:1)*g),k=(T=E+u)+c,L=A,D=A+O,m&&(r[s][I][C]=D)}e.setItemLayout(w,{cx:d,cy:p,r0:T,r:k,startAngle:-L*Math.PI/180,endAngle:-D*Math.PI/180,clockwise:L>=D})}}}))}var _F={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},xF={splitNumber:5},bF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="polar",e}(K_);function wF(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,i={},o=r.position,a=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];i.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),to(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var c=e.rotate;return null==c&&(c=t.get(["axisLabel","rotate"])),i.labelRotation="top"===o?-c:c,i.z2=1,i}var SF=["axisLine","axisTickLabel","axisName"],MF=["splitArea","splitLine"],IF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return a(e,t),e.prototype.render=function(e,n,r,i){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new xu;var s=wF(e),l=new yk(e,s);Ni(SF,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),Ni(MF,(function(t){e.get([t,"show"])&&CF[t](this,this.group,this._axisGroup,e)}),this),pg(a,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)},e.prototype.remove=function(){Dk(this)},e.type="singleAxis",e}(Tk),CF={splitLine:function(t,e,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),h=[],d=0,p=i.getTicksCoords({tickModel:o}),f=[],g=[],y=0;y<p.length;++y){var v=i.toGlobalCoord(p[y].coord);c?(f[0]=v,f[1]=u.y,g[0]=v,g[1]=u.y+u.height):(f[0]=u.x,f[1]=v,g[0]=u.x+u.width,g[1]=v);var m=new wf({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});sg(m.shape,l);var _=d++%s.length;h[_]=h[_]||[],h[_].push(m)}var x=a.getLineStyle(["color"]);for(y=0;y<h.length;++y)e.add(og(h[y],{style:Pi({stroke:s[y%s.length]},x),silent:!0}))}},splitArea:function(t,e,n,r){Lk(t,n,r,r)}},AF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(ov);Oi(AF,VM.prototype);var TF=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.position=o||"bottom",a}return a(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(cI),kF=["single"],LF=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=kF,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=this.dimension,i=new TF(r,PM(t),[0,0],t.get("type"),t.get("position")),o="category"===i.type;i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Ni(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),DM(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=Qy({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),r=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),r=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord=i?function(t){return t-e}:function(t){return r-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),r[i]=e.toGlobalCoord(e.dataToCoord(+t)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},t.prototype.convertToPixel=function(t,e,n){return DF(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return DF(e)===this?this.pointToData(n):null},t}();function DF(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var PF={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(r,i){var o=new LF(r,t,e);o.name="single_"+i,o.resize(r,e),r.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",pc).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:kF},RF=["x","y"],OF=["width","height"],EF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.coordinateSystem,s=BF(a,1-zF(o)),l=a.dataToPoint(e)[0],u=r.get("type");if(u&&"none"!==u){var c=yV(r),h=NF[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}xV(e,t,wF(n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=wF(e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=_V(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.coordinateSystem,a=zF(i),s=BF(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=BF(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(cV),NF={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:bV([e,n[0]],[e,n[1]],zF(t))}},shadow:function(t,e,n){var r=t.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:wV([e-r/2,n[0]],[r,i],zF(t))}}};function zF(t){return t.isHorizontal()?0:1}function BF(t,e){var n=t.getRect();return[n[RF[e]],n[RF[e]]+n[OF[e]]]}var VF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="single",e}(K_);var FF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(e,n,r){var i=nv(e);t.prototype.init.apply(this,arguments),GF(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),GF(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(ov);function GF(t,e){var n,r=t.cellSize;1===(n=Wi(r)?r:t.cellSize=[r,r]).length&&(n[1]=n[0]);var i=zi([0,1],(function(t){return function(t,e){return null!=t[qy[e][0]]||null!=t[qy[e][1]]&&null!=t[qy[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));ev(t,e,{type:"box",ignoreSize:i})}var jF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll();var i=t.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,r),this._renderLines(t,o,a,r),this._renderYearText(t,o,a,r),this._renderMonthText(t,s,a,r),this._renderWeekText(t,s,o,a,r)},e.prototype._renderDayRect=function(t,e,n){for(var r=t.coordinateSystem,i=t.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),a=r.getCellHeight(),s=e.start.time;s<=e.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new pd({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:i});n.add(u)}},e.prototype._renderLines=function(t,e,n,r){var i=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(e){i._firstDayOfMonth.push(o.getDateInfo(e)),i._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=i._getLinePointsOfOneWeek(t,e,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),a,r)},e.prototype._getEdgesPoints=function(t,e,n){var r=[t[0].slice(),t[t.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-e/2,r[1][i]=r[1][i]+e/2,r},e.prototype._drawSplitline=function(t,e,n){var r=new _f({z2:20,shape:{points:t},style:e});n.add(r)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var r=t.coordinateSystem,i=r.getDateInfo(e),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),l=r.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Ui(t)&&t?(n=t,Ni(e,(function(t,e){n=n.replace("{"+e+"}",t)})),n):Hi(t)?t(e):e.nameMap;var n},e.prototype._yearTextPositionControl=function(t,e,n,r,i){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,r){var i=t.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=i.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),y=new yd({z2:30,style:Tg(i,{text:g}),silent:i.get("silent")});y.attr(this._yearTextPositionControl(y,h[a],n,a,o)),r.add(y)}},e.prototype._monthTextPositionControl=function(t,e,n,r,i){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=i,e&&(o="center"),"start"===r&&(a="bottom")):(s+=i,e&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,r){var i=t.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),a=i.get("margin"),s=i.get("position"),l=i.get("align"),u=[this._tlpoints,this._blpoints];o&&!Ui(o)||(o&&(e=sy(o)||e),o=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,p=i.get("silent"),f=0;f<u[c].length-1;f++){var g=u[c][f].slice(),y=this._firstDayOfMonth[f];if(d){var v=this._firstDayPoints[f];g[h]=(v[h]+u[0][f+1][h])/2}var m=i.get("formatter"),_=o[+y.m-1],x={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:_},b=this._formatterLabel(m,x),w=new yd({z2:30,style:Di(Tg(i,{text:b}),this._monthTextPositionControl(g,d,n,s,a)),silent:p});r.add(w)}}},e.prototype._weekTextPositionControl=function(t,e,n,r,i){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+r+(u?1:-1)*i[0]/2,o=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,r,i){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||Ui(l))l&&(e=sy(l)||e),l=e.get(["time","dayOfWeekShort"])||zi(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}));var h=a.getNextNDay(n.end.time,7-n.lweek).time,d=[a.getCellWidth(),a.getCellHeight()];u=Au(u,Math.min(d[1],d[0])),"start"===s&&(h=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var p=o.get("silent"),f=0;f<7;f++){var g,y=a.getNextNDay(h,f),v=a.dataToRect([y.time],!1).center;g=Math.abs((f+c)%7);var m=new yd({z2:30,style:Di(Tg(o,{text:l[g]}),this._weekTextPositionControl(v,r,s,u,d)),silent:p});i.add(m)}}},e.type="calendar",e}(K_),WF=864e5,HF=function(){function t(e,n,r){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){var e=(t=zu(t)).getFullYear(),n=t.getMonth()+1,r=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,a=t.getDay();return{y:e+"",m:r,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+r+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];Ni([0,1],(function(t){u(i,t)&&(o[r[t]]=i[t]*a[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=Qy(o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}Ni([0,1],(function(t){u(i,t)||(i[t]=l[r[t]]/a[t])})),this._sw=i[0],this._sh=i[1]},t.prototype.dataToPoint=function(t,e){Wi(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),r=this._rangeInfo,i=n.formatedDate;if(e&&!(n.time>=r.start.time&&n.time<r.end.time+WF))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,r):this._getDateByWeeksAndDay(e,n-1,r)},t.prototype.convertToPixel=function(t,e,n){var r=UF(e);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=UF(e);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(t){return!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(Wi(e)&&1===e.length&&(e=e[0]),Wi(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 r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[r.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var r=Math.floor(n[1].time/WF)-Math.floor(n[0].time/WF)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a)for(var l=i.getTime()-n[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-n[1].time)*l>0;)r-=l,i.setDate(s-l);var u=Math.floor((r+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var r=this._getRangeInfo(n);if(t>r.weeks||0===t&&e<r.fweek||t===r.weeks&&e>r.lweek)return null;var i=7*(t-1)-r.fweek+e,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",(function(e){var n=new t(e);r.push(n),e.coordinateSystem=n})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("calendarIndex")||0])})),r},t.dimensions=["time","value"],t}();function UF(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}function ZF(t,e){var n;return Ni(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var YF=["transition","enterFrom","leaveTo"],XF=YF.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function qF(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var r=n?YF:XF,i=0;i<r.length;i++){var o=r[i];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var KF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return a(e,t),e.prototype.mergeOption=function(e,n){var r=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=r},e.prototype.optionUpdated=function(t,e){var n=this.option,r=(e?n:t).elements,i=n.elements=e?[]:n.elements,o=[];this._flatten(r,o,null);var a=nc(i,o,"normalMerge"),s=this._elOptionsToUpdate=[];Ni(a,(function(t,e){var n=t.newOption;n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var r=Di({},n),i=t[e],o=n.$action||"merge";"merge"===o?i?(ki(i,r,!0),ev(i,r,{ignoreSize:!0}),rv(n,i),qF(n,i),qF(n,i,"shape"),qF(n,i,"style"),qF(n,i,"extra"),n.clipPath=i.clipPath):t[e]=r:"replace"===o?t[e]=r:"remove"===o&&i&&(t[e]=null)}(i,e,n),function(t,e){if(t&&(t.hv=e.hv=[ZF(e,["left","right"]),ZF(e,["top","bottom"])],"group"===t.type)){var n=t,r=e;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}(i[e],n))}),this),n.elements=Vi(i,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){Ni(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var r=t.children;r&&r.length&&this._flatten(r,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(ov),$F={path:null,compoundPath:null,group:xu,image:ad,text:yd},QF=uc(),JF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(){this._elMap=fo()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,r=this.group,i=t.get("z"),o=t.get("zlevel");Ni(e,(function(e){var a=oc(e.id,null),s=null!=a?n.get(a):null,l=oc(e.parentId,null),u=null!=l?n.get(l):r,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=e.textContent,p=e.textConfig;if(h&&sB(h,c,!!p,!!d)){var f=lB(h,c,!0);!p&&f.textConfig&&(p=e.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=function(t){return t=Di({},t),Ni(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Xy),(function(e){delete t[e]})),t}(e),y=e.$action||"merge",v="merge"===y,m="replace"===y;if(v){var _=s;(C=!s)?_=eG(a,u,e.type,n):(_&&(QF(_).isNew=!1),kB(_)),_&&(vB(_,g,t,{isInit:C}),rG(_,e,i,o))}else if(m){nG(s,e,n,t);var x=eG(a,u,e.type,n);x&&(vB(x,g,t,{isInit:!0}),rG(x,e,i,o))}else"remove"===y&&(mB(s,e),nG(s,e,n,t));var b=n.get(a);if(b&&d)if(v){var w=b.getTextContent();w?w.attr(d):b.setTextContent(new yd(d))}else m&&b.setTextContent(new yd(d));if(b){var S=e.clipPath;if(S){var M=S.type,I=void 0,C=!1;if(v){var A=b.getClipPath();I=(C=!A||QF(A).type!==M)?tG(M):A}else m&&(C=!0,I=tG(M));b.setClipPath(I),vB(I,S,t,{isInit:C}),LB(I,S.keyframeAnimation,t)}var T=QF(b);b.setTextConfig(p),T.option=e,function(t,e,n){var r=kd(t).eventData;t.silent||t.ignore||r||(r=kd(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});r&&(r.info=n.info)}(b,t,e),_g({el:b,componentModel:t,itemName:b.name,itemTooltipOption:e.tooltip}),LB(b,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,r=this.group,i=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){if((f=null!=(p=oc((d=n[l]).id,null))?i.get(p):null)&&f.isGroup){var u=(g=f.parent)===r,c=QF(f),h=QF(g);c.width=Au(c.option.width,u?o:h.width)||0,c.height=Au(c.option.height,u?a:h.height)||0}}for(l=n.length-1;l>=0;l--){var d,p,f;if(f=null!=(p=oc((d=n[l]).id,null))?i.get(p):null){var g=f.parent,y=(h=QF(g),{}),v=Jy(f,d,g===r?{width:o,height:a}:{width:h.width,height:h.height},null,{hv:d.hv,boundingMode:d.bounding},y);if(!QF(f).isNew&&v){for(var m=d.transition,_={},x=0;x<s.length;x++){var b=s[x],w=y[b];m&&(xB(m)||Ri(m,b)>=0)?_[b]=w:f[b]=w}Wf(f,_,t,0)}else f.attr(y)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){nG(n,QF(n).option,e,t._lastGraphicModel)})),this._elMap=fo()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(K_);function tG(t){var e=new(mo($F,t)?$F[t]:eg(t))({});return QF(e).type=t,e}function eG(t,e,n,r){var i=tG(n);return e.add(i),r.set(t,i),QF(i).id=t,QF(i).isNew=!0,i}function nG(t,e,n,r){t&&t.parent&&("group"===t.type&&t.traverse((function(t){nG(t,e,n,r)})),_B(t,e,r),n.removeKey(QF(t).id))}function rG(t,e,n,r){t.isGroup||Ni([["cursor",Jc.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];mo(e,r)?t[r]=eo(e[r],n[1]):null==t[r]&&(t[r]=n[1])})),Ni(Fi(e),(function(n){if(0===n.indexOf("on")){var r=e[n];t[n]=Hi(r)?r:null}})),mo(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var iG=["x","y","radius","angle","single"],oG=["cartesian2d","polar","singleAxis"];function aG(t){return t+"Axis"}function sG(t,e){var n,r=fo(),i=[],o=fo();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var i=r.get(t);i&&i[n]&&(e=!0)})),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),i.push(t),t.eachTargetAxis((function(t,e){(r.get(t)||r.set(t,[]))[e]=!0}))}return i}function lG(t){var e=t.ecModel,n={infoList:[],infoMap:fo()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(aG(t),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(i)}}})),n}var uG=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),cG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return a(e,t),e.prototype.init=function(t,e,n){var r=hG(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},e.prototype.mergeOption=function(t){var e=hG(t);ki(this.option,t,!0),ki(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Ni([["start","startValue"],["end","endValue"]],(function(t,r){"value"===this._rangePropMode[r]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=fo();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Ni(iG,(function(n){var r=this.getReferringComponents(aG(n),fc);if(r.specified){e=!0;var i=new uG;Ni(r.models,(function(t){i.add(t.componentIndex)})),t.set(n,i)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,r=!0;if(r){var i="vertical"===e?"y":"x";o(n.findComponents({mainType:i+"Axis"}),i)}r&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function o(e,n){var i=e[0];if(i){var o=new uG;if(o.add(i.componentIndex),t.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",pc).models[0];a&&Ni(e,(function(t){i.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",pc).models[0]&&o.add(t.componentIndex)}))}}}r&&Ni(iG,(function(e){if(r){var i=n.findComponents({mainType:aG(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var o=new uG;o.add(i[0].componentIndex),t.set(e,o),r=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Ni([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=t[r[0]],a=null!=t[r[1]];o&&!a?e[i]="percent":!o&&a?e[i]="value":n?e[i]=n[i]:o&&(e[i]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(aG(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){Ni(n.indexList,(function(n){t.call(e,r,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(aG(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Ni([["start","startValue"],["end","endValue"]],(function(r){null==t[r[0]]&&null==t[r[1]]||(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Ni(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(ov);function hG(t){var e={};return Ni(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var dG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="dataZoom.select",e}(cG),pG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n,r){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(K_),fG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="dataZoom.select",e}(pG),gG=Ni,yG=ku,vG=function(){function t(t,e,n,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(function(t){var e=t.get("coordinateSystem");return Ri(oG,e)>=0}(e)){var n=aG(this._dimName),r=e.getReferringComponents(n,pc).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return Ti(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,r=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];gG(["start","end"],(function(l,u){var c=t[l],h=t[l+"Value"];"percent"===i[u]?(null==c&&(c=o[u]),h=r.parse(Cu(c,o,n))):(e=!0,c=Cu(h=null==h?n[u]:r.parse(h),n,o)),s[u]=null==h||isNaN(h)?n[u]:h,a[u]=null==c||isNaN(c)?o[u]:c})),yG(s),yG(a);var l=this._minMaxSpan;function u(t,e,n,i,o){var a=o?"Span":"ValueSpan";VO(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=Cu(t[s],n,i,!0),o&&(e[s]=r.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var r=[1/0,-1/0];gG(n,(function(t){!function(t,e,n){e&&Ni(BM(e,n),(function(n){var r=e.getApproximateExtent(n);r[0]<t[0]&&(t[0]=r[0]),r[1]>t[1]&&(t[1]=r[1])}))}(r,t.getData(),e)}));var i=t.getAxisModel(),o=TM(i.axis.scale,i,r).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;"none"!==i&&gG(r,(function(t){var e=t.getData(),r=e.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var a=e.getStore(),s=zi(r,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,i,l=0;l<r.length;l++){var u=a.get(s[l],t),c=!isNaN(u),h=u<o[0],d=u>o[1];if(c&&!h&&!d)return!0;c&&(i=!0),h&&(e=!0),d&&(n=!0)}return i&&e&&n}))}else gG(r,(function(n){if("empty"===i)t.setData(e=e.map(n,(function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN})));else{var r={};r[n]=o,e.selectRange(r)}}));gG(r,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;gG(["min","max"],(function(r){var i=e.get(r+"Span"),o=e.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=Cu(n[0]+o,n,[0,100],!0):null!=i&&(o=Cu(i,[0,100],n,!0)-n[0]),t[r+"Span"]=i,t[r+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var r=Du(n,[0,500]);r=Math.min(r,20);var i=t.axis.scale.rawExtentInfo;0!==e[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==e[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},t}();var mG={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=t.getComponent(aG(r),i);e(r,i,o,n)}))}))}e((function(t,e,n,r){n.__dzAxisProxy=null}));var n=[];e((function(e,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new vG(e,r,o,t),n.push(i.__dzAxisProxy))}));var r=fo();return Ni(n,(function(t){Ni(t.getTargetSeriesModels(),(function(t){r.set(t.uid,t)}))})),r},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,r){t.getAxisProxy(n,r).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),r=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}};var _G=!1;function xG(t){_G||(_G=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,mG),function(t){t.registerAction("dataZoom",(function(t,e){Ni(sG(e,t),(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function bG(t){t.registerComponentModel(dG),t.registerComponentView(fG),xG(t)}var wG=function(){},SG={};function MG(t,e){SG[t]=e}function IG(t){return SG[t]}var CG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;Ni(this.option.feature,(function(t,n){var r=IG(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(e)),ki(t,r.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}(ov);function AG(t,e){var n=Fy(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new pd({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1})}var TG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(t,e,n,r){var i=this.group;if(i.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];Ni(s,(function(t,e){u.push(e)})),new Jw(this._featureNames||[],u).add(c).update(c).remove(ji(c,null)).execute(),this._featureNames=u,function(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Qy(r,o,i);$y(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Jy(t,r,o,i)}(i,t,n),i.add(AG(i.getBoundingRect(),t)),a||i.eachChild((function(t){var e=t.__title,r=t.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!Hi(l)&&e){var u=l.style||(l.style={}),c=iu(e,yd.makeFont(u)),h=t.x+i.x,d=!1;t.y+i.y+o+c.height>n.getHeight()&&(a.position="top",d=!0);var p=d?-5-c.height:o+10;h+c.width/2>n.getWidth()?(a.position=["100%",p],u.align="right"):h-c.width/2<0&&(a.position=[0,p],u.align="left")}}))}function c(c,h){var d,p=u[c],f=u[h],g=s[p],y=new Kg(g,t,t.ecModel);if(r&&null!=r.newTitle&&r.featureName===p&&(g.title=r.newTitle),p&&!f){if(function(t){return 0===t.indexOf("my")}(p))d={onclick:y.option.onclick,featureName:p};else{var v=IG(p);if(!v)return;d=new v}l[p]=d}else if(!(d=l[f]))return;d.uid=Qg("toolbox-feature"),d.model=y,d.ecModel=e,d.api=n;var m=d instanceof wG;p||!f?!y.get("show")||m&&d.unusable?m&&d.remove&&d.remove(e,n):(!function(r,s,l){var u,c,h=r.getModel("iconStyle"),d=r.getModel(["emphasis","iconStyle"]),p=s instanceof wG&&s.getIcons?s.getIcons():r.get("icon"),f=r.get("title")||{};Ui(p)?(u={})[l]=p:u=p;Ui(f)?(c={})[l]=f:c=f;var g=r.iconPaths={};Ni(u,(function(l,u){var p=gg(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(h.getItemStyle()),p.ensureState("emphasis").style=d.getItemStyle();var f=new yd({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:Og({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},e)},ignore:!0});p.setTextContent(f),_g({el:p,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var e=d.getItemStyle(),r=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";f.setStyle({fill:d.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||r}),f.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===r.get(["iconStatus",u])?ip:op)(p),i.add(p),p.on("click",Gi(s.onclick,s,e,n,u)),g[u]=p}))}(y,d,p),y.setIconStatus=function(t,e){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,r[t]&&("emphasis"===e?ip:op)(r[t])},d instanceof wG&&d.render&&d.render(y,e,n,r)):m&&d.dispose&&d.dispose(e,n)}},e.prototype.updateView=function(t,e,n,r){Ni(this._features,(function(t){t instanceof wG&&t.updateView&&t.updateView(t.model,e,n,r)}))},e.prototype.remove=function(t,e){Ni(this._features,(function(n){n instanceof wG&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){Ni(this._features,(function(n){n instanceof wG&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(K_);var kG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",i="svg"===e.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=si.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||i){var l=a.split(","),u=l[0].indexOf("base64")>-1,c=i?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var h=r+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var d=c.length,p=new Uint8Array(d);d--;)p[d]=c.charCodeAt(d);var f=new Blob([p]);window.navigator.msSaveOrOpenBlob(f,h)}else{var g=document.createElement("iframe");document.body.appendChild(g);var y=g.contentWindow,v=y.document;v.open("image/svg+xml","replace"),v.write(c),v.close(),y.focus(),v.execCommand("SaveAs",!0,h),document.body.removeChild(g)}}else{var m=n.get("lang"),_='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(m&&m[0]||"")+'" /></body>',x=window.open();x.document.write(_),x.document.title=r}else{var b=document.createElement("a");b.download=r+"."+o,b.target="_blank",b.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(w)}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(wG),LG="__ec_magicType_stack__",DG=[["line","bar"],["stack"]],PG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return Ni(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var r=this.model,i=r.get(["seriesIndex",n]);if(RG[n]){var o,a={series:[]};Ni(DG,(function(t){Ri(t,n)>=0&&Ni(t,(function(t){r.setIconStatus(t,"normal")}))})),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},(function(t){var e=t.subType,i=t.id,o=RG[n](e,i,t,r);o&&(Pi(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=t.getReferringComponents(u,pc).models[0].componentIndex;a[u]=a[u]||[];for(var h=0;h<=c;h++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=ki({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(wG),RG={line:function(t,e,n,r){if("bar"===t)return ki({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if("line"===t)return ki({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var i=n.get("stack")===LG;if("line"===t||"bar"===t)return r.setIconStatus("stack",i?"normal":"emphasis"),ki({id:e,stack:i?"":LG},r.get(["option","stack"])||{},!0)}};jw({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var OG=new Array(60).join("-"),EG="\t";function NG(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var zG=new RegExp("[\t]+","g");function BG(t,e){var n=t.split(new RegExp("\n*"+OG+"\n*","g")),r={series:[]};return Ni(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(EG)>=0)return!0}(t)){var i=function(t){for(var e=t.split(/\n+/g),n=[],r=zi(NG(e.shift()).split(zG),(function(t){return{name:t,data:[]}})),i=0;i<e.length;i++){var o=NG(e[i]).split(zG);n.push(o.shift());for(var a=0;a<o.length;a++)r[a]&&(r[a].data[i]=o[a])}return{series:r,categories:n}}(t),o=e[n],a=o.axisDim+"Axis";o&&(r[a]=r[a]||[],r[a][o.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=function(t){for(var e=t.split(/\n+/g),n=NG(e.shift()),r=[],i=0;i<e.length;i++){var o=NG(e[i]);if(o){var a=o.split(zG),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}(t);r.series.push(i)}})),r}var VG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=r.get("lang")||[];o.innerHTML=a[0]||r.get("title"),o.style.cssText="margin:10px 20px",o.style.color=r.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=r.get("optionToContent"),c=r.get("contentToOption"),h=function(t){var e,n,r,i=function(t){var e={},n=[],r=[];return t.eachRawSeries((function(t){var i=t.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(t);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:r}}(t);return{value:Vi([(n=i.seriesGroupByCategoryAxis,r=[],Ni(n,(function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(zi(t.series,(function(t){return t.name}))),a=[n.model.getCategories()];Ni(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(i),(function(t){return t})))}));for(var s=[o.join(EG)],l=0;l<a[0].length;l++){for(var u=[],c=0;c<a.length;c++)u.push(a[c][l]);s.push(u.join(EG))}r.push(s.join("\n"))})),r.join("\n\n"+OG+"\n\n")),(e=i.other,zi(e,(function(t){var e=t.getRawData(),n=[t.name],r=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,i=arguments[t-1],o=e.getName(i),a=0;a<t-1;a++)r[a]=arguments[a];n.push((o?o+EG:"")+r.join(EG))})),n.join("\n")})).join("\n\n"+OG+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+OG+"\n\n"),meta:i.meta}}(t);if(Hi(u)){var d=u(e.getOption());Ui(d)?s.innerHTML=d:$i(d)&&s.appendChild(d)}else{l.readOnly=r.get("readOnly");var p=l.style;p.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",p.color=r.get("textColor"),p.borderColor=r.get("textareaBorderColor"),p.backgroundColor=r.get("textareaColor"),l.value=h.value,s.appendChild(l)}var f=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),m=document.createElement("div");y+=";background-color:"+r.get("buttonColor"),y+=";color:"+r.get("buttonTextColor");var _=this;function x(){n.removeChild(i),_._dom=null}ia(v,"click",x),ia(m,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)x();else{var t;try{t=Hi(c)?c(s,e.getOption()):BG(l.value,f)}catch(t){throw x(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),x()}})),v.innerHTML=a[1],m.innerHTML=a[2],m.style.cssText=v.style.cssText=y,!r.get("readOnly")&&g.appendChild(m),g.appendChild(v),i.appendChild(o),i.appendChild(s),i.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title: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"}},e}(wG);function FG(t,e){return zi(t,(function(t,n){var r=e&&e[n];if(Xi(r)&&!Wi(r)){Xi(t)&&!Wi(t)||(t={value:t});var i=null!=r.name&&null==t.name;return t=Pi(t,r),i&&delete t.name,t}return t}))}jw({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];Ni(t.newOption.series,(function(t){var r=e.getSeriesByName(t.name)[0];if(r){var i=r.get("data");n.push({name:t.name,data:FG(t.data,i)})}else n.push(Di({type:"scatter"},t))})),e.mergeOption(Pi({series:n},t.newOption))}));var GG=Ni,jG=uc();function WG(t){var e=jG(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var HG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.onclick=function(t,e){!function(t){jG(t).snapshots=null}(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(wG);jw({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var UG=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ZG=function(){function t(t,e,n){var r=this;this._targetInfoList=[];var i=XG(e,t);Ni(qG,(function(t,e){(!n||!n.include||Ri(n.include,e)>=0)&&t(i,r._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var r=QG[t.brushType](0,n,e);t.__rangeOffset={offset:tj[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Ni(t,(function(t){var r=this.findTargetInfo(t,e);r&&!0!==r&&Ni(r.coordSyses,(function(r){var i=QG[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Ni(t,(function(t){var n,r,i,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=QG[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?tj[t.brushType](l.values,u.offset,(n=l.xyMinMax,r=u.xyMinMax,i=nj(n),o=nj(r),a=[i[0]/o[0],i[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return zi(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:GE(r),isTargetByCursor:WE(r,t,n.coordSysModel),getLinearBrushOtherExtent:jE(r)}}))},t.prototype.controlSeries=function(t,e,n){var r=this.findTargetInfo(t,n);return!0===r||r&&Ri(r.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=XG(e,t),i=0;i<n.length;i++){var o=n[i],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<KG.length;s++)if(KG[s](r,o))return o}return!0},t}();function YG(t){return t[0]>t[1]&&t.reverse(),t}function XG(t,e){return hc(t,e,{includeMainTypes:UG})}var qG={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,o=fo(),a={},s={};(n||r||i)&&(Ni(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Ni(r,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),Ni(i,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var i=t.coordinateSystem,o=[];Ni(i.getCartesians(),(function(t,e){(Ri(n,t.getAxis("x").model)>=0||Ri(r,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:$G.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Ni(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:$G.geo})}))}},KG=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],$G={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(ug(t)),e}},QG={lineX:ji(JG,0),lineY:ji(JG,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[YG([i[0],o[0]]),YG([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:zi(n,(function(n){var o=t?e.pointToData(n,r):e.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o})),xyMinMax:i}}};function JG(t,e,n,r){var i=n.getAxis(["x","y"][t]),o=YG(zi([0,1],(function(t){return e?i.coordToData(i.toLocalCoord(r[t]),!0):i.toGlobalCoord(i.dataToCoord(r[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var tj={lineX:ji(ej,0),lineY:ji(ej,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return zi(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}};function ej(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function nj(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var rj,ij,oj=Ni,aj=Ku+"toolbox-dataZoom_",sj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(t,e,n,r){this._brushController||(this._brushController=new cE(n.getZr()),this._brushController.on("brush",Gi(this._onBrush,this)).mount()),function(t,e,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new ZG(uj(t),e,{include:["grid"]}),s=a.makePanelOpts(i,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,r,n),function(t,e){t.setIconStatus("back",function(t){return WG(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){lj[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new ZG(uj(this.model),r,{include:["grid"]}).matchOutputRanges(e,r,(function(t,e,n){if("cartesian2d"===n.type){var r=t.brushType;"rect"===r?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[r],n,e)}})),function(t,e){var n=WG(t);GG(e,(function(e,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var a=o.getPercentRange();n[0][r]={dataZoomId:r,start:a[0],end:a[1]}}}})),n.push(e)}(r,n),this._dispatchZoomAction(n)}function i(t,e,i){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(r=n)})),r}(t,a,r),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=VO(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];oj(t,(function(t,n){e.push(Ti(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(wG),lj={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=WG(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return GG(n,(function(t,n){for(var i=e.length-1;i>=0;i--)if(t=e[i][n]){r[n]=t;break}})),r}(this.ecModel))}};function uj(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}rj="dataZoom",ij=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var r=e.getModel(n),i=[],o=hc(t,uj(r));return oj(o.xAxisModels,(function(t){return a(t,"xAxis","xAxisIndex")})),oj(o.yAxisModels,(function(t){return a(t,"yAxis","yAxisIndex")})),i}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:aj+e+o};a[n]=o,i.push(a)}},oo(null==Av.get(rj)&&ij),Av.set(rj,ij);var cj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(ov);function hj(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function dj(t){if(si.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var pj=dj(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function fj(t,e){if(!t)return e;e=Vy(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var gj=fj(dj(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),yj=fj(pj,"transform"),vj="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(si.transform3dSupported?"will-change:transform;":"");function mj(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!si.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=si.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+yj+":"+a+";":[["top",0],["left",0],[pj,a]]}function _j(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=N_(t,"html"),d=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+d),e&&i&&r.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=si.transformSupported?","+yj+r:",left"+r+",top"+r),gj+":"+i}(i,n)),o&&r.push("background-color:"+o),Ni(["width","color","radius"],(function(e){var n="border-"+e,i=Vy(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(function(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont());var i=eo(t.get("lineHeight"),Math.round(3*n/2));n&&e.push("line-height:"+i+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),Ni(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}(c)),null!=h&&r.push("padding:"+Fy(h).join("px ")+"px"),r.join(";")+";"}function xj(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,r,i){Zo(Uo,e,r,i,!0)&&Zo(t,n,Uo[0],Uo[1])}(t,a,n,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var bj=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,si.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=t.getZr(),i=e.appendTo,o=i&&(Ui(i)?document.querySelector(i):$i(i)?i:Hi(i)&&i(t.getDom()));xj(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;ra(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(o="position",(a=(i=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?a[o]:null),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=vj+_j(t,!this._firstShow,this._longHide)+mj(i[0],i[1],!0)+"border-color:"+Uy(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(Ui(i)&&"item"===n.get("trigger")&&!hj(n)&&(a=function(t,e,n){if(!Ui(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=Uy(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=yj+":";Ri(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,d=l+i,p=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),f=e+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-d)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),Ui(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Wi(t)||(t=[t]);for(var s=0;s<t.length;s++)$i(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(xj(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style;Ni(mj(n[0],n[1]),(function(t){r[t[0]]=t[1]}))}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",si.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Gi(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}(),wj=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Ij(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var o=this;Xi(t)&&Yu(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new yd({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:N_(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),Ni(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),Ni(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=Mj(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;Ij(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=Sj(i.borderWidth||0),a=Mj(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Gi(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Sj(t){return Math.max(0,t)}function Mj(t){var e=Sj(t.shadowBlur||0),n=Sj(t.shadowOffsetX||0),r=Sj(t.shadowOffsetY||0);return{left:Sj(e-n),right:Sj(e+n),top:Sj(e-r),bottom:Sj(e+r)}}function Ij(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Cj=new pd({shape:{x:-1,y:-1,width:2,height:2}}),Aj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(t,e){if(!si.node&&e.getDom()){var n,r=t.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?si.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new wj(e):new bj(e,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!si.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?cx(this,"_updatePosition",50,"fixRate"):hx(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");DV("itemTooltip",this._api,Gi((function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!si.node&&n.getDom()){var i=kj(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(t,e,n){var r=dc(t).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o=gc(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse((function(e){var n=kd(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=Cj;l.x=r.x,l.y=r.y,l.update(),kd(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=NV(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(kj(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s)if("axis"===Tj([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var i,o;if("legend"===kd(n).ssrType)return;this._lastDataByCoordSys=null,eb(n,(function(t){return null!=kd(t).dataIndex?(i=t,!0):null!=kd(t).tooltipConfig?(o=t,!0):void 0}),!0),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Gi(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=Tj([e.tooltipOption],r),a=this._renderMode,s=[],l=C_("section",{blocks:[],noHeader:!0}),u=[],c=new z_;Ni(t,(function(t){Ni(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=mV(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=C_("section",{header:o,noHeader:!ao(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Ni(t.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=OM(e.axis,{value:i}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",Uy(f.color),a);var g=jm(d.formatTooltip(p,!0,null)),y=g.frag;if(y){var v=Tj([d],r).get("valueFormatter");h.blocks.push(v?Di({valueFormatter:v},y):y)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,d=o.get("order"),p=P_(l,c,a,d,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=kd(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,p=Tj([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),y=new z_;g.marker=y.makeTooltipMarker("item",Uy(g.color),h);var v=jm(s.formatTooltip(l,!1,u)),m=p.get("order"),_=p.get("valueFormatter"),x=v.frag,b=x?P_(_?Di({valueFormatter:_},x):x,y,h,m,r.get("useUTC"),p.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,b,g,w,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r="html"===this._renderMode,i=kd(e),o=i.tooltipConfig.option||{},a=o.encodeHTMLContent;if(Ui(o)){o={content:o,formatter:o},a=!0}a&&r&&o.content&&((o=Ti(o)).content=Ko(o.content));var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=Tj(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),d=Math.random()+"",p=new z_;this._showOrMove(c,(function(){var n=Ti(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,d,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")).color;if(c)if(Ui(c)){var p=t.ecModel.get("useUTC"),f=Wi(n)?n[0]:n;h=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(h=by(f.axisValue,h,p)),h=Hy(h,n,!0)}else if(Hi(c)){var g=Gi((function(e,r){e===this._ticket&&(u.setContent(r,l,t,d,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,h=c(n,r,g)}else h=c;u.setContent(h,l,t,d,a),u.show(t,d),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Wi(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Wi(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),Hi(e)&&(e=e([n,r],o,i.el,d,{viewSize:[s,l],contentSize:u.slice()})),Wi(e))n=Au(e[0],s),r=Au(e[1],l);else if(Xi(e)){var p=e;p.width=u[0],p.height=u[1];var f=Qy(p,{width:s,height:l});n=f.x,r=f.y,c=null,h=null}else if(Ui(e)&&a){var g=function(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,d,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=function(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>r?t-=l+o:t+=o);null!=a&&(e+u+a>i?e-=u+a:e+=a);return[t,e]}(n,r,i,s,l,c?null:20,h?null:20);n=g[0],r=g[1]}if(c&&(n-=Lj(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=Lj(h)?u[1]/2:"bottom"===h?u[1]:0),hj(t)){g=function(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Ni(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&Ni(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&Ni(a,(function(t,e){var n=l[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Ni(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!si.node&&e.getDom()&&(hx(this,"_updatePosition"),this._tooltipContent.dispose(),OV("itemTooltip",e))},e.type="tooltip",e}(K_);function Tj(t,e,n){var r,i=e.ecModel;n?(r=new Kg(n,i,i),r=new Kg(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Kg&&(a=a.get("tooltip",!0)),Ui(a)&&(a={formatter:a}),a&&(r=new Kg(a,r,i)))}return r}function kj(t,e){return t.dispatchAction||Gi(e.dispatchAction,e)}function Lj(t){return"center"===t||"middle"===t}var Dj=["rect","polygon","keep","clear"];function Pj(t,e){var n=$u(t?t.brush:[]);if(n.length){var r=[];Ni(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(r=r.concat(e))}));var i=t&&t.toolbox;Wi(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),function(t){var e={};Ni(t,(function(t){e[t]=1})),t.length=0,Ni(e,(function(e,n){t.push(n)}))}(s),e&&!s.length&&s.push.apply(s,Dj)}}var Rj=Ni;function Oj(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function Ej(t,e,n){var r={};return Rj(e,(function(e){var i,o=r[e]=((i=function(){}).prototype.__hidden=i.prototype,new i);Rj(t[e],(function(t,r){if(PP.isValidType(r)){var i={type:r,visual:t};n&&n(i,e),o[r]=new PP(i),"opacity"===r&&((i=Ti(i)).type="colorAlpha",o.__hidden.__alphaForOpacity=new PP(i))}}))})),r}function Nj(t,e,n){var r;Ni(n,(function(t){e.hasOwnProperty(t)&&Oj(e[t])&&(r=!0)})),r&&Ni(n,(function(n){e.hasOwnProperty(n)&&Oj(e[n])?t[n]=Ti(e[n]):delete t[n]}))}var zj={lineX:Bj(0),lineY:Bj(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&GM(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var i=t.x,o=t.y,a=t.width,s=t.height,l=r[0];return!!(GM(r,i,o)||GM(r,i+a,o)||GM(r,i,o+s)||GM(r,i+a,o+s)||Ca.create(t).contain(l[0],l[1])||yg(i,o,i+a,o,r)||yg(i,o,i,o+s,r)||yg(i+a,o,i+a,o+s,r)||yg(i,o+s,i+a,o+s,r))||void 0}}};function Bj(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,r){if(e){var i=r.range;return Vj(e[t],i)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]<s[0]&&s.reverse(),Vj(s[0],a)||Vj(s[1],a)||Vj(a[0],s)||Vj(a[1],s)}}}}function Vj(t,e){return e[0]<=t&&t<=e[1]}var Fj=["inBrush","outOfBrush"],Gj="__ecBrushSelect",jj="__ecInBrushSelectEvent";function Wj(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new ZG(e.option,t)).setInputRanges(e.areas,t)}))}function Hj(t,e,n){var r,i,o=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),Wj(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:Ti(e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,u=[],c=[],h=[],d=!1;n||(r=s.throttleType,i=s.throttleDelay);var p=zi(e.areas,(function(t){var e=Yj[t.brushType],n=Pi({boundingRect:e?e(t):void 0},t);return n.selectors=function(t){var e=t.brushType,n={point:function(r){return zj[e].point(r,n,t)},rect:function(r){return zj[e].rect(r,n,t)}};return n}(n),n})),f=Ej(e.option,Fj,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!u[t]}function y(t){return!!t.length}Wi(l)&&Ni(l,(function(t){u[t]=1})),t.eachSeries((function(n,r){var i=h[r]=[];"parallel"===n.subType?function(t,e){var n=t.coordinateSystem;d=d||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}(n,r):function(n,r,i){if(!n.brushSelector||function(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(Wi(n)?Ri(n,e)<0:e!==n)}(e,r))return;if(Ni(p,(function(r){e.brushTargetManager.controlSeries(r,n,t)&&i.push(r),d=d||y(i)})),g(r)&&y(i)){var o=n.getData();o.each((function(t){Zj(n,i,o,t)&&(c[t]=1)}))}}(n,r,i)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var r=h[e],i=t.getData(),o=g(e)?function(t){return c[t]?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return Zj(t,r,i,e)?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?d:y(r))&&function(t,e,n,r,i){var o,a={};function s(t){return Kx(n,o,t)}function l(t,e){Qx(n,o,t,e)}Ni(t,(function(t){var n=PP.prepareVisualTypes(e[t]);a[t]=n})),n.each((function(t,u){o=t;var c=n.getRawDataItem(o);if(!c||!1!==c.visualMap)for(var h=r.call(i,t),d=e[h],p=a[h],f=0,g=p.length;f<g;f++){var y=p[f];d[y]&&d[y].applyVisual(t,s,l)}}))}(Fj,f,i,o)}))})),function(t,e,n,r,i){if(!i)return;var o=t.getZr();if(o[jj])return;o[Gj]||(o[Gj]=Uj);var a=cx(o,Gj,n,e);a(t,r)}(e,r,i,o,n)}function Uj(t,e){if(!t.isDisposed()){var n=t.getZr();n[jj]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[jj]=!1}}function Zj(t,e,n,r){for(var i=0,o=e.length;i<o;i++){var a=e[i];if(t.brushSelector(r,n,a.selectors,a))return!0}}var Yj={rect:function(t){return Xj(t.range)},polygon:function(t){for(var e,n=t.range,r=0,i=n.length;r<i;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&Xj(e)}};function Xj(t){return new Ca(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var qj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new cE(e.getZr())).on("brush",Gi(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,r){this.model=t,this._updateController(t,e,n,r)},e.prototype.updateTransform=function(t,e,n,r){Wj(e),this._updateController(t,e,n,r)},e.prototype.updateVisual=function(t,e,n,r){this.updateTransform(t,e,n,r)},e.prototype.updateView=function(t,e,n,r){this._updateController(t,e,n,r)},e.prototype._updateController=function(t,e,n,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:Ti(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:Ti(n),$from:e})},e.type="brush",e}(K_),Kj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return a(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&Nj(n,t,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=zi(t,(function(t){return $j(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=$j(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}(ov);function $j(t,e){return ki({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Kg(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var Qj=["rect","polygon","lineX","lineY","keep","clear"],Jj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(t,e,n){var r,i,o;e.eachComponent({mainType:"brush"},(function(t){r=t.brushType,i=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=r,this._brushMode=i,Ni(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===i:"clear"===e?o:e===r)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return Ni(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var r=this._brushType,i=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},e.getDefaultOption=function(t){return{show:!0,type:Qj.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"])}},e}(wG);var tW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return a(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(ov),eW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=eo(t.get("textBaseline"),t.get("textVerticalAlign")),l=new yd({style:Tg(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new yd({style:Tg(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,h.silent=!p&&!f,d&&l.on("click",(function(){Zy(d,"_"+t.get("target"))})),p&&h.on("click",(function(){Zy(p,"_"+t.get("subtarget"))})),kd(l).eventData=kd(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(h);var g=r.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=Qy(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),r.x=v.x,r.y=v.y,r.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=r.getBoundingRect();var _=v.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new pd({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});r.add(b)}},e.type="title",e}(K_);var nW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return a(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],r=e.axisType,i=this._names=[];"category"===r?(t=[],Ni(n,(function(e,n){var r,o=oc(tc(e),"");Xi(e)?(r=Ti(e)).value=n:r=n,t.push(r),i.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new SS([{name:"value",type:o}],this)).initData(t,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(ov),rW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="timeline.slider",e.defaultOption=Jg(nW.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}(nW);Oi(rW,Gm.prototype);var iW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="timeline",e}(K_),oW=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.type=i||"value",o}return a(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(cI),aW=Math.PI,sW=uc(),lW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return C_("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},Ni(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,i,a,t)}),this),this._renderAxisLabel(r,o,a,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,r,i,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return Qy(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<e.getHeight()/2?"-":"+":l.x+l.width/2<e.getWidth()/2?"+":"-":Ui(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:aW/2},d="vertical"===s?l.height:l.width,p=t.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,y=f?p.get("itemGap"):0,v=g+y,m=t.get(["label","rotate"])||0;m=m*aW/180;var _=p.get("position",!0),x=f&&p.get("showPlayBtn",!0),b=f&&p.get("showPrevBtn",!0),w=f&&p.get("showNextBtn",!0),S=0,M=d;"left"===_||"bottom"===_?(x&&(r=[0,0],S+=v),b&&(i=[S,0],S+=v),w&&(o=[M-g,0],M-=v)):(x&&(r=[M-g,0],M-=v),b&&(i=[0,0],S+=v),w&&(o=[M-g,0],M-=v));var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:h[s],labelRotation:m,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:r,prevBtnPosition:i,nextBtnPosition:o,axisExtent:I,controlSize:g,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,r=this._labelGroup,i=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=i.x,s=i.y+i.height;pa(o,o,[-a,-s]),fa(o,o,-aW/2),pa(o,o,[a,s]),(i=i.clone()).applyTransform(o)}var l=y(i),u=y(n.getBoundingRect()),c=y(r.getBoundingRect()),h=[n.x,n.y],d=[r.x,r.y];d[0]=h[0]=l[0][0];var p,f=t.labelPosOpt;null==f||Ui(f)?(v(h,u,l,1,p="+"===f?0:1),v(d,c,l,1,1-p)):(v(h,u,l,1,p=f>=0?0:1),d[1]=h[1]+f);function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,r,i){t[r]+=n[r][i]-e[r][i]}n.setPosition(h),r.setPosition(d),n.rotation=r.rotation=t.rotation,g(n),g(r)},e.prototype._createAxis=function(t,e){var n=e.getData(),r=e.get("axisType"),i=function(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new US({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new sM({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new YS}}(e,r);i.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new oW("value",i,t.axisExtent,r);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new xu;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new wf({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Di({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new wf({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Pi({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,r){var i=this,o=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],Ni(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:Gi(i._changeTimeline,i,t.value)},d=uW(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),vp(d);var p=kd(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=r):p.dataIndex=p.dataModel=null,i._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,r){var i=this;if(n.getLabelModel().get("show")){var o=r.getData(),a=n.getViewLabels();this._tickLabels=[],Ni(a,(function(r){var a=r.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(r.tickValue),d=new yd({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Gi(i._changeTimeline,i,a),silent:!1,style:Tg(l,{text:r.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=Tg(u),d.ensureState("progress").style=Tg(c),e.add(d),vp(d),sW(d).dataIndex=a,i._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,n,r){var i=t.controlSize,o=t.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),l=r.getPlayState(),u=r.get("inverse",!0);function c(t,n,l,u){if(t){var c=lu(eo(r.get(["controlStyle",n+"BtnSize"]),i),i),h=function(t,e,n,r){var i=r.style,o=gg(t.get(["controlStyle",e]),r||{},new Ca(n[0],n[1],n[2],n[3]));i&&o.setStyle(i);return o}(r,n+"Icon",[0,-c/2,c,c],{x:t[0],y:t[1],originX:i/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,e.add(h),vp(h)}}c(t.nextBtnPosition,"next",Gi(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",Gi(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",Gi(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Gi(s._handlePointerDrag,s),t.ondragend=Gi(s._handlePointerDragend,s),cW(t,s._progressLine,o,n,r,!0)},onUpdate:function(t){cW(t,s._progressLine,o,n,r)}};this._currentPointer=uW(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],r=ku(this._axis.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var i=this._progressLine;i&&(i.shape.x2=n,i.dirty());var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){return cg(t,this._mainGroup.getLocalTransform(),!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,o){var a=i.dataToCoord(n),s=Math.abs(a-t);s<r&&(r=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var r=0;r<e.length;r++)e&&e[r]&&e[r].toggleState("progress",r<t);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",sW(n[r]).dataIndex<=t)},e.type="timeline.slider",e}(iW);function uW(t,e,n,r,i,o){var a=e.get("color");i?(i.setColor(a),n.add(i),o&&o.onUpdate(i)):((i=pb(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i));var s=e.getItemStyle(["color"]);i.setStyle(s),r=ki({rectHover:!0,z2:100},r,!0);var l=fb(t.get("symbolSize"));r.scaleX=l[0]/2,r.scaleY=l[1]/2;var u=gb(t.get("symbolOffset"),l);u&&(r.x=(r.x||0)+u[0],r.y=(r.y||0)+u[1]);var c=t.get("symbolRotate");return r.rotation=(c||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function cW(t,e,n,r,i,o){if(!t.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function hW(t){var e=t&&t.timeline;Wi(e)||(e=e?[e]:[]),Ni(e,(function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};n[e]&&(t.axisType=n[e],delete t.type);if(dW(t),pW(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});pW(r,"position")||(r.position=t.controlPosition),"none"!==r.position||pW(r,"show")||(r.show=!1,delete r.position),delete t.controlPosition}Ni(t.data||[],(function(t){Xi(t)&&!Wi(t)&&(!pW(t,"value")&&pW(t,"name")&&(t.value=t.name),dW(t))}))}(t)}))}function dW(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};Ni(r,(function(t,e){o[e]||pW(i,e)||(i[e]=t)})),n.label&&!pW(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function pW(t,e){return t.hasOwnProperty(e)}function fW(t,e){if(!t)return!1;for(var n=Wi(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function gW(t){Qu(t,"label",["show"])}var yW=uc(),vW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return a(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(si.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,r){var i=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=yW(t)[i];n&&n.data?(o?o._mergeOption(n,e,!0):(r&&gW(n),Ni(n.data,(function(t){t instanceof Array?(gW(t[0]),gW(t[1])):gW(t)})),Di(o=this.createMarkerModelFromSeries(n,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),yW(t)[i]=o):yW(t)[i]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return C_("section",{header:this.name,blocks:[C_("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,e){var n=Gm.prototype.getDataParams.call(this,t,e),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},e.getMarkerModelFromSeries=function(t,e){return yW(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(ov);Oi(vW,Gm.prototype);var mW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},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}(vW);function _W(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function xW(t,e,n,r,i,o){var a=[],s=LS(e,r)?e.getCalculationInfo("stackResultDimension"):r,l=CW(e,s,t),u=e.indicesOfNearest(s,l)[0];a[i]=e.get(n,u),a[o]=e.get(s,u);var c=e.get(r,u),h=Lu(e.get(r,u));return(h=Math.min(h,20))>=0&&(a[o]=+a[o].toFixed(h)),[a,c]}var bW={min:ji(xW,"min"),max:ji(xW,"max"),average:ji(xW,"average"),median:ji(xW,"median")};function wW(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,i=r&&r.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Wi(e.coord)&&Wi(i)){var o=SW(e,n,r,t);if((e=Ti(e)).type&&bW[e.type]&&o.baseAxis&&o.valueAxis){var a=Ri(i,o.baseAxis.dim),s=Ri(i,o.valueAxis.dim),l=bW[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Wi(i))for(var u=e.coord,c=0;c<2;c++)bW[u[c]]&&(u[c]=CW(n,n.mapDimension(i[c]),u[c]));else e.coord=[];return e}}function SW(t,e,n,r){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function MW(t,e){return!(t&&t.containData&&e.coord&&!_W(e))||t.containData(e.coord)}function IW(t,e){return t?function(t,n,r,i){return Zm(i<2?t.coord&&t.coord[i]:t.value,e[i])}:function(t,n,r,i){return Zm(t.value,e[i])}}function CW(t,e,n){if("average"===n){var r=0,i=0;return t.each(e,(function(t,e){isNaN(t)||(r+=t,i++)})),r/i}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var AW=uc(),TW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(){this.markerGroupMap=fo()},e.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each((function(t){AW(t).keep=!1})),e.eachSeries((function(t){var i=vW.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!AW(t).keep&&r.group.remove(t.group)}))},e.prototype.markKeep=function(t){AW(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Ni(t,(function(t){var r=vW.getMarkerModelFromSeries(t,n.type);r&&r.getData().eachItemGraphicEl((function(t){t&&(e?ap(t):sp(t))}))}))},e.type="marker",e}(K_);function kW(t,e,n){var r=e.coordinateSystem;t.each((function(i){var o,a=t.getItemModel(i),s=Au(a.get("x"),n.getWidth()),l=Au(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(r){var u=t.get(r.dimensions[0],i),c=t.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(i,o)}))}var LW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=vW.getMarkerModelFromSeries(t,"markPoint");e&&(kW(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new wA),u=function(t,e,n){var r;r=t?zi(t&&t.dimensions,(function(t){return Di(Di({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new SS(r,n),o=zi(n.get("data"),ji(wW,e));t&&(o=Vi(o,ji(MW,t)));var a=IW(!!t,r);return i.initData(o,null,a),i}(i,t,e);e.setData(u),kW(e.getData(),t,r),u.each((function(t){var n=u.getItemModel(t),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Hi(r)||Hi(i)||Hi(o)||Hi(s)){var c=e.getRawValue(t),h=e.getDataParams(t);Hi(r)&&(r=r(c,h)),Hi(i)&&(i=i(c,h)),Hi(o)&&(o=o(c,h)),Hi(s)&&(s=s(c,h))}var d=n.getModel("itemStyle").getItemStyle(),p=$x(a,"color");d.fill||(d.fill=p),u.setItemVisual(t,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){kd(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(TW);var DW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},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}(vW),PW=uc(),RW=function(t,e,n,r){var i,o=t.getData();if(Wi(r))i=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var s=void 0,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=e.getAxis(null!=r.yAxis?"y":"x"),l=to(r.yAxis,r.xAxis);else{var u=SW(r,o,e,t);s=u.valueAxis,l=CW(o,DS(o,u.valueDataDim),a)}var c="x"===s.dim?0:1,h=1-c,d=Ti(r),p={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,p.coord[h]=1/0;var f=n.get("precision");f>=0&&Yi(l)&&(l=+l.toFixed(Math.min(f,20))),d.coord[c]=p.coord[c]=l,i=[d,p,{type:a,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[wW(t,i[0]),wW(t,i[1]),Di({},i[2])];return g[2].type=g[2].type||null,ki(g[2],g[0]),ki(g[2],g[1]),g};function OW(t){return!isNaN(t)&&!isFinite(t)}function EW(t,e,n,r){var i=1-t,o=r.dimensions[t];return OW(e[i])&&OW(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function NW(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(EW(1,n,r,t)||EW(0,n,r,t)))return!0}return MW(t,e[0])&&MW(t,e[1])}function zW(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=Au(s.get("x"),i.getWidth()),u=Au(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),d=t.get(c[1],e);o=a.dataToPoint([h,d])}if(NA(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;OW(t.get(c[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):OW(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var BW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=vW.getMarkerModelFromSeries(t,"markLine");if(e){var r=e.getData(),i=PW(e).from,o=PW(e).to;i.each((function(e){zW(i,e,!0,t,n),zW(o,e,!1,t,n)})),r.each((function(t){r.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new ZR);this.group.add(l.group);var u=function(t,e,n){var r;r=t?zi(t&&t.dimensions,(function(t){return Di(Di({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new SS(r,n),o=new SS(r,n),a=new SS([],n),s=zi(n.get("data"),ji(RW,e,t,n));t&&(s=Vi(s,ji(NW,t)));var l=IW(!!t,r);return i.initData(zi(s,(function(t){return t[0]})),null,l),o.initData(zi(s,(function(t){return t[1]})),null,l),a.initData(zi(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:i,to:o,line:a}}(i,t,e),c=u.from,h=u.to,d=u.line;PW(e).from=c,PW(e).to=h,e.setData(d);var p=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),y=e.get("symbolOffset");function v(e,n,i){var o=e.getItemModel(n);zW(e,n,i,t,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=$x(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:eo(o.get("symbolOffset",!0),y[i?0:1]),symbolRotate:eo(o.get("symbolRotate",!0),g[i?0:1]),symbolSize:eo(o.get("symbolSize"),f[i?0:1]),symbol:eo(o.get("symbol",!0),p[i?0:1]),style:s})}Wi(p)||(p=[p,p]),Wi(f)||(f=[f,f]),Wi(g)||(g=[g,g]),Wi(y)||(y=[y,y]),u.from.each((function(t){v(c,t,!0),v(h,t,!1)})),d.each((function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(d),u.line.eachItemGraphicEl((function(t){kd(t).dataModel=e,t.traverse((function(t){kd(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(TW);var VW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},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}(vW),FW=uc(),GW=function(t,e,n,r){var i=r[0],o=r[1];if(i&&o){var a=wW(t,i),s=wW(t,o),l=a.coord,u=s.coord;l[0]=to(l[0],-1/0),l[1]=to(l[1],-1/0),u[0]=to(u[0],1/0),u[1]=to(u[1],1/0);var c=Li([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function jW(t){return!isNaN(t)&&!isFinite(t)}function WW(t,e,n,r){var i=1-t;return jW(e[i])&&jW(n[i])}function HW(t,e){var n=e.coord[0],r=e.coord[1],i={coord:n,x:e.x0,y:e.y0},o={coord:r,x:e.x1,y:e.y1};return NA(t,"cartesian2d")?!(!n||!r||!WW(1,n,r)&&!WW(0,n,r))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!_W(e)&&!_W(n))||t.containZone(e.coord,n.coord)}(t,i,o):MW(t,i)||MW(t,o)}function UW(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=Au(s.get(n[0]),i.getWidth()),u=Au(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition){var c=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),d=a.clampData(c),p=a.clampData(h),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?h[0]:c[0]:f[0]=d[0]>p[0]?c[0]:h[0],"y0"===n[1]?f[1]=d[1]>p[1]?h[1]:c[1]:f[1]=d[1]>p[1]?c[1]:h[1],o=r.getMarkerPosition(f,n,!0)}else{var g=[m=t.get(n[0],e),_=t.get(n[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(NA(a,"cartesian2d")){var y=a.getAxis("x"),v=a.getAxis("y"),m=t.get(n[0],e),_=t.get(n[1],e);jW(m)?o[0]=y.toGlobalCoord(y.getExtent()["x0"===n[0]?0:1]):jW(_)&&(o[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var ZW=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],YW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=vW.getMarkerModelFromSeries(t,"markArea");if(e){var r=e.getData();r.each((function(e){var i=zi(ZW,(function(i){return UW(r,e,i,t,n)}));r.setItemLayout(e,i),r.getItemGraphicEl(e).setShape("points",i)}))}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new xu});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var r,i,o=["x0","y0","x1","y1"];if(t){var a=zi(t&&t.dimensions,(function(t){var n=e.getData();return Di(Di({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})}));i=zi(o,(function(t,e){return{name:t,type:a[e%2].type}})),r=new SS(i,n)}else r=new SS(i=[{name:"value",type:"float"}],n);var s=zi(n.get("data"),ji(GW,e,t,n));t&&(s=Vi(s,ji(HW,t)));var l=t?function(t,e,n,r){return Zm(t.coord[Math.floor(r/2)][r%2],i[r])}:function(t,e,n,r){return Zm(t.value,i[r])};return r.initData(s,null,l),r.hasItemOption=!0,r}(i,t,e);e.setData(u),u.each((function(e){var n=zi(ZW,(function(n){return UW(u,e,n,t,r)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];ku(h),ku(d);var p=!!(l[0]>h[1]||l[1]<h[0]||c[0]>d[1]||c[1]<d[0]);u.setItemLayout(e,{points:n,allClipped:p});var f=u.getItemModel(e).getModel("itemStyle").getItemStyle(),g=$x(a,"color");f.fill||(f.fill=g,Ui(f.fill)&&(f.fill=Gs(f.fill,.4))),f.stroke||(f.stroke=g),u.setItemVisual(e,"style",f)})),u.diff(FW(l).data).add((function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new vf({shape:{points:e.points}});u.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var r=FW(l).data.getItemGraphicEl(n),i=u.getItemLayout(t);i.allClipped?r&&l.group.remove(r):(r?Wf(r,{shape:{points:i.points}},e,t):r=new vf({shape:{points:i.points}}),u.setItemGraphicEl(t,r),l.group.add(r))})).remove((function(t){var e=FW(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var r=u.getItemModel(n),i=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),Cg(t,Ag(r),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:Ui(i.fill)?Gs(i.fill,1):"#000"}),wp(t,r),mp(t,null,null,r.get(["emphasis","disabled"])),kd(t).dataModel=e})),FW(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(TW);var XW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return a(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),Wi(e)&&Ni(e,(function(t,r){Ui(t)&&(t={type:t}),e[r]=ki(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(a)),a.length?e=e.concat(a):i=!0}else i=!0;i&&ac(r)&&e.push(r.name)})),this._availableNames=n;var r=this.get("data")||e,i=fo(),o=zi(r,(function(t){return(Ui(t)||Yi(t))&&(t={name:t}),i.get(t.name)?null:(i.set(t.name,!0),new Kg(t,this,this.ecModel))}),this);this._data=Vi(o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&Ni(this._data,(function(t){e[t.get("name")]=!1}));e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;Ni(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;Ni(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&Ri(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(ov),qW=ji,KW=Ni,$W=xu,QW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return a(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new $W),this.group.add(this._selectorGroup=new $W),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=Qy(l,u,c),d=this.layoutInner(t,i,h,r,a,s),p=Qy(Pi({width:d.width,height:d.height},l),u,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=AG(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=fo(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),KW(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new $W;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(a)[0];if(!l.get(a))if(d){var p=d.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),y=p.getVisual("style"),v=this._createItem(d,a,o,i,e,t,f,y,g,u,r);v.on("click",qW(JW,a,null,r,c)).on("mouseover",qW(eH,d.name,null,r,c)).on("mouseout",qW(nH,d.name,null,r,c)),n.ssr&&v.eachChild((function(t){var e=kd(t);e.seriesIndex=d.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var h=s.legendVisualProvider;if(!h.containName(a))return;var d=h.indexOfName(a),p=h.getItemVisual(d,"style"),f=h.getItemVisual(d,"legendIcon"),g=Ns(p.fill);g&&0===g[3]&&(g[3]=.2,p=Di(Di({},p),{fill:js(g,"rgba")}));var y=this._createItem(s,a,o,i,e,t,{},p,f,u,r);y.on("click",qW(JW,null,a,r,c)).on("mouseover",qW(eH,null,a,r,c)).on("mouseout",qW(nH,null,a,r,c)),n.ssr&&y.eachChild((function(t){var e=kd(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}}),this)}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();KW(t,(function(t){var r=t.type,i=new yd({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(i),Cg(i,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),vp(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,c){var h=t.visualDrawType,d=i.get("itemWidth"),p=i.get("itemHeight"),f=i.isSelected(e),g=r.get("symbolRotate"),y=r.get("symbolKeepAspect"),v=r.get("icon"),m=function(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),KW(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?Fb(h,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]);"inherit"===u.stroke&&(u.stroke=r[c]);"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity);s(u,r);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(l=v||l||"roundRect",r,a,s,h,f,c),_=new $W,x=r.getModel("textStyle");if(!Hi(t.getLegendIcon)||v&&"inherit"!==v){var b="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(function(t){var e=t.icon||"roundRect",n=pb(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:d,itemHeight:p,icon:l,iconRotate:b,itemStyle:m.itemStyle,symbolKeepAspect:y}))}else _.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}));var w="left"===o?d+5:-5,S=o,M=i.get("formatter"),I=e;Ui(M)&&M?I=M.replace("{name}",null!=e?e:""):Hi(M)&&(I=M(e));var C=f?x.getTextColor():r.get("inactiveColor");_.add(new yd({style:Tg(x,{text:I,x:w,y:p/2,fill:C,align:S,verticalAlign:"middle"},{inheritColor:C})}));var A=new pd({shape:_.getBoundingRect(),style:{fill:"transparent"}}),T=r.getModel("tooltip");return T.get("show")&&_g({el:A,componentModel:i,itemName:e,itemTooltipOption:T.option}),_.add(A),_.eachChild((function(t){t.silent=!0})),A.silent=!u,this.getContentGroup().add(_),vp(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();$y(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){$y("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",y=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+d+c[f],v[g]=Math.max(l[g],c[g]),v[y]=Math.min(0,c[y]+h[1-p]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(K_);function JW(t,e,n,r){nH(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),eH(t,e,n,r)}function tH(t){for(var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(e=n[r].states.emphasis);)r++;return e&&e.hoverLayer}function eH(t,e,n,r){tH(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function nH(t,e,n,r){tH(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}function rH(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function iH(t,e,n){var r="allSelect"===t||"inverseSelect"===t,i={},o=[];n.eachComponent({mainType:"legend",query:e},(function(n){r?n[t]():n[t](e.name),oH(n,i),o.push(n.componentIndex)}));var a={};return n.eachComponent("legend",(function(t){Ni(i,(function(e,n){t[e?"select":"unSelect"](n)})),oH(t,a)})),r?{selected:a,legendIndex:o}:{name:e.name,selected:a}}function oH(t,e){var n=e||{};return Ni(t.getData(),(function(e){var r=e.get("name");if("\n"!==r&&""!==r){var i=t.isSelected(r);mo(n,r)?n[r]=n[r]&&i:n[r]=i}})),n}function aH(t){t.registerComponentModel(XW),t.registerComponentView(QW),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,rH),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",ji(iH,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",ji(iH,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",ji(iH,"inverseSelect")),t.registerAction("legendSelect","legendselected",ji(iH,"select")),t.registerAction("legendUnSelect","legendunselected",ji(iH,"unSelect"))}(t)}var sH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=nv(e);t.prototype.init.call(this,e,n,r),lH(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),lH(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Jg(XW.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}(XW);function lH(t,e,n){var r=[1,1];r[t.getOrient().index]=0,ev(e,n,{type:"box",ignoreSize:!!r})}var uH=xu,cH=["width","height"],hH=["x","y"],dH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return a(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new uH),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new uH)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,r,i,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=Wi(c)?c:[c,c];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(t,e){var r=t+"DataIndex",o=gg(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:Gi(l._pageGo,l,r,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new yd({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=cH[s],u=hH[s],c=cH[1-s],h=hH[1-s];i&&$y("horizontal",a,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=Ti(n);i&&(g[l]=n[l]-p[l]-d);var y=this._layoutContentAndController(t,r,g,s,l,c,h,u);if(i){if("end"===o)f[s]+=y[l]+d;else{var v=p[l]+d;f[s]-=v,y[u]-=v}y[l]+=p[l]+d,f[1-s]+=y[h]+y[c]/2-p[c]/2,y[c]=Math.max(y[c],p[c]),y[h]=Math.min(y[h],p[h]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;$y(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),$y("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[i]>n[i],f=[-h.x,-h.y];e||(f[r]=l[s]);var g=[0,0],y=[-d.x,-d.y],v=eo(t.get("pageButtonGap",!0),t.get("itemGap",!0));p&&("end"===t.get("pageButtonPosition",!0)?y[r]+=n[i]-d[i]:g[r]+=d[i]+v);y[1-r]+=h[o]/2-d[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(y);var m={x:0,y:0};if(m[i]=p?n[i]:h[i],m[o]=Math.max(h[o],d[o]),m[a]=Math.min(0,d[a]+y[1-r]),u.__rectSize=n[i],p){var _={x:0,y:0};_[i]=Math.max(n[i]-d[i]-v,0),_[o]=m[o],u.setClipPath(new pd({shape:_})),u.__rectSize=_[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&Wf(l,{x:x.contentPosition[0],y:x.contentPosition[1]},p?t:null),this._updatePageInfoView(t,x),m},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;Ni(["pagePrev","pageNext"],(function(r){var i=null!=e[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",Ui(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=cH[i],a=hH[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=m(u);d.contentPosition[i]=-p.s;for(var f=s+1,g=p,y=p,v=null;f<=c;++f)(!(v=m(l[f]))&&y.e>g.s+r||v&&!_(v,g.s))&&(g=y.i>g.i?y:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),y=v;for(f=s-1,g=p,y=p,v=null;f>=-1;--f)(v=m(l[f]))&&_(y,v.s)||!(g.i<y.i)||(y=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function m(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(QW);function pH(t){Kw(aH),t.registerComponentModel(sH),t.registerComponentView(dH),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}var fH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="dataZoom.inside",e.defaultOption=Jg(cG.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(cG),gH=uc();function yH(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function vH(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function mH(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function _H(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=gH(e),r=n.coordSysRecordMap||(n.coordSysRecordMap=fo());r.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){Ni(lG(t).infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,function(t,e){var n={model:e,containsPoint:ji(mH,e),dispatchAction:ji(vH,t),dataZoomInfoMap:null,controller:null},r=n.controller=new iL(t.getZr());return Ni(["pan","zoom","scrollMove"],(function(t){r.on(t,(function(e){var r=[];n.dataZoomInfoMap.each((function(i){if(e.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[t],a=o&&o(i.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!i.model.get("disabled",!0)&&a&&r.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}})),r.length&&n.dispatchAction(r)}))})),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=fo())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),r.each((function(t){var e,n=t.controller,i=t.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(e=i.get(o))}if(e){var a=function(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");r[n+a]>r[n+e]&&(e=a),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}(i);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),cx(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else yH(r,t)}))}))}var xH=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return a(e,t),e.prototype.render=function(e,n,r){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){gH(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}(r,e,{pan:Gi(bH.pan,this),zoom:Gi(bH.zoom,this),scrollMove:Gi(bH.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=gH(t).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||yH(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(pG),bH={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=SH[e](null,[r.originX,r.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return VO(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:wH((function(t,e,n,r,i,o){var a=SH[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:wH((function(t,e,n,r,i,o){return SH[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n).signal*(t[1]-t[0])*o.scrollDelta}))};function wH(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return VO(t(a,s,e,n,r,i),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var SH={grid:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function MH(t){xG(t),t.registerComponentModel(fH),t.registerComponentView(xH),_H(t)}var IH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Jg(cG.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}(cG),CH=pd,AH="horizontal",TH="vertical",kH=["line","bar","candlestick","scatter"],LH={easing:"cubicOut",duration:100,delay:0},DH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return a(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Gi(this._onBrush,this),this._onBrushEnd=Gi(this._onBrushEnd,this)},e.prototype.render=function(e,n,r,i){if(t.prototype.render.apply(this,arguments),cx(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hx(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new xu;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,r=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},o=this._orient===AH?{right:i.width-r.x-r.width,top:i.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},a=nv(t.option);Ni(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=Qy(a,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===TH&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==AH||i?n===AH&&i?{scaleY:a?1:-1,scaleX:-1}:n!==TH||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,r=t.get("brushSelect");n.add(new CH({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new CH({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Gi(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],r=t.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,d=[0,e[1]],p=[0,e[0]],f=[[e[0],0],[0,0]],g=[],y=p[1]/(i.count()-1),v=0,m=Math.round(i.count()/e[0]);i.each([a],(function(t,e){if(m>0&&e%m)v+=y;else{var n=null==t||isNaN(t)||""===t,r=n?0:Cu(t,u,d,!0);n&&!h&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(f.push([v,0]),g.push([v,0])),f.push([v,r]),g.push([v,r]),v+=y,h=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var _=this.dataZoomModel,x=0;x<3;x++){var b=w(1===x);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function w(t){var e=_.getModel(t?"selectedDataBackground":"dataBackground"),n=new xu,r=new vf({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new _f({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis((function(i,o){Ni(t.getAxisProxy(i,o).getTargetSeriesModels(),(function(t){if(!(n||!0!==e&&Ri(kH,t.get("type"))<0)){var a,s=r.getComponent(aG(i),o).axis,l=function(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}(i),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:i,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],r=e.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new CH({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new CH({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),Ni([0,1],(function(e){var o=a.get("handleIcon");!cb[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=pb(o,-1,0,2,2,null,!0);s.attr({cursor:PH(this._orient),draggable:!0,drift:Gi(this._onDragMove,this,e),ondragend:Gi(this._onDragEnd,this),onmouseover:Gi(this._showDataInfo,this,!0),onmouseout:Gi(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Au(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),vp(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[e]=s);var h=a.getModel("textStyle"),d=(a.get("handleLabel")||{}).show||!1;t.add(r[e]=new yd({silent:!0,invisible:!d,style:Tg(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var d=Au(a.get("moveHandleSize"),o[1]),p=e.moveHandle=new pd({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=pb(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(d,10));(h=e.moveZone=new pd({invisible:!0,shape:{y:o[1]-y,height:d+y}})).on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),i.add(p),i.add(g),i.add(h)}h.attr({draggable:!0,cursor:PH(this._orient),drift:Gi(this._onDragMove,this,"all"),ondragstart:Gi(this._showDataInfo,this,!0),ondragend:Gi(this._onDragEnd,this),onmouseover:Gi(this._showDataInfo,this,!0),onmouseout:Gi(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Cu(t[0],[0,100],e,!0),Cu(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];VO(e,r,i,n.get("zoomLock")?"all":t,null!=o.minSpan?Cu(o.minSpan,a,i,!0):null,null!=o.maxSpan?Cu(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=ku([Cu(r[0],i,a,!0),Cu(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,r=ku(n.slice()),i=this._size;Ni([0,1],(function(t){var r=e.handles[t],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:i[1]/2-o/2})}),this),e.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new pd,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=ku(this._handleEnds.slice());function h(t){var e=ug(n.handles[t].parent,this.group),a=hg(0===t?"right":"left",e),s=this._handleWidth/2+5,l=cg([c[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],verticalAlign:i===AH?"middle":a,align:i===AH?a:"center",text:o[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(i,20));return Hi(r)?r(t,o):Ui(r)?r.replace("{value}",o):o},e.prototype._showDataInfo=function(t){var e=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,r=t||this._dragging?n:e,i=this._displayables,o=i.handleLabels;o[0].attr("invisible",!r),o[1].attr("invisible",!r),i.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](i.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,r){this._dragging=!0,oa(r.event);var i=cg([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(t,i[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new va(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=ku([Cu(n.x,r,i,!0),Cu(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(oa(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new CH({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?LH:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=lG(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var r=this.api.getWidth(),i=this.api.getHeight();t={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return t},e.type="dataZoom.slider",e}(pG);function PH(t){return"vertical"===t?"ns-resize":"ew-resize"}function RH(t){t.registerComponentModel(IH),t.registerComponentView(DH),xG(t)}var OH=function(t,e,n){var r=Ti((EH[t]||{})[e]);return n&&Wi(r)?r[r.length-1]:r},EH={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]}},NH=PP.mapVisual,zH=PP.eachVisual,BH=Wi,VH=Ni,FH=ku,GH=Cu,jH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return a(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&Nj(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=Gi(t,this),this.controllerVisuals=Ej(this.option.controller,e,t),this.targetVisuals=Ej(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=$u(t),e},e.prototype.eachTargetSeries=function(t,e){Ni(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],Wi(t)&&(t=t.slice(),r=!0);var l=e?t:r?[u(t[0]),u(t[1])]:u(t);return Ui(s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):Hi(s)?r?s(t[0],t[1]):s(t):r?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=FH([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=t.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},r=e.target||(e.target={}),i=e.controller||(e.controller={});ki(r,n),ki(i,n);var o=this.isCategory();function a(n){BH(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,r),a.call(this,i),function(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},VH(r,(function(t,e){if(PP.isValidType(e)){var n=OH(e,"inactive",o);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";VH(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?r:[r]}),null==l.symbol&&(l.symbol=e&&Ti(e)||(o?i:[i])),null==l.symbolSize&&(l.symbolSize=n&&Ti(n)||(o?s[0]:[s[0],s[0]])),l.symbol=NH(l.symbol,(function(t){return"none"===t?i:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;zH(u,(function(t){t>c&&(c=t)})),l.symbolSize=NH(u,(function(t){return GH(t,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,i)},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}(ov),WH=[20,140],HH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=WH[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=WH[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):Wi(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),Ni(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=ku((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(e,n){t[0]<=e&&e<=t[1]&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},e.prototype.getVisualMeta=function(t){var e=UH(this,"outOfRange",this.getExtent()),n=UH(this,"inRange",this.option.range.slice()),r=[];function i(e,n){r.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&i(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(e[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Jg(jH.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}(jH);function UH(t,e,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],o=[],a=0;a<=200&&i<n[1];a++)o.push(i),i+=r;return o.push(n[1]),o}var ZH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return a(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,r){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,r):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Fy(e.get("padding")||0),r=t.getBoundingRect();t.add(new pd({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var r=(n=n||{}).forceState,i=this.visualMapModel,o={};if("color"===e){var a=i.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=i.controllerVisuals[r||i.getValueState(t)];return Ni(PP.prepareVisualTypes(u),(function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),PP.dependsOn(r,e)&&i&&i.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Jy(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,r){},e.type="visualMap",e}(K_),YH=[["left","right","width"],["top","bottom","height"]];function XH(t,e,n){var r=t.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===r.orient?1:0,s=YH[a],l=[0,null,10],u={},c=0;c<3;c++)u[YH[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var h=[["x","width",3],["y","height",0]][a],d=Qy(u,o,r.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*o[h[1]]?0:1]}function qH(t,e){return Ni(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var KH=Cu,$H=Ni,QH=Math.min,JH=Math.max,tU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return a(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=Gi(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Gi(this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var r=e[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new yd({style:Tg(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,i=this._orient,o=this._useHandle,a=XH(e,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new xu;s.add(l),l.add(n.outOfRange=eU()),l.add(n.inRange=eU(null,o?rU(this._orient):null,Gi(this._dragHandle,this,"all",!1),Gi(this._dragHandle,this,"all",!0))),l.setClipPath(new pd({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=JH(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,r,c,i),this._createHandle(e,s,1,r,c,i)),this._createIndicator(e,s,r,c,i),t.add(s)},e.prototype._createHandle=function(t,e,n,r,i,o){var a=Gi(this._dragHandle,this,n,!1),s=Gi(this._dragHandle,this,n,!0),l=lu(t.get("handleSize"),r[0]),u=pb(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=rU(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){oa(t.event)}}),u.x=r[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Sp(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,d=new yd({cursor:c,draggable:!0,drift:a,onmousemove:function(t){oa(t.event)},ondragend:s,style:Tg(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=p,f.handleLabels[n]=d},e.prototype._createIndicator=function(t,e,n,r,i){var o=lu(t.get("indicatorSize"),n[0]),a=pb(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof ad){var l=a.style;a.useStyle(Di({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,c=new yd({silent:!0,invisible:!0,style:Tg(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===i?r/2:6)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,r){if(this._useHandle){if(this._dragging=!e,!e){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(t,i[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():nU(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[KH(e[0],n,r,!0),KH(e[1],n,r,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];VO(e,r,i,t,0);var o=n.getExtent();this._dataInterval=[KH(r[0],i,o,!0),KH(r[1],i,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),r=this._shapes,i=[0,e.itemSize[1]],o=t?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,i),a=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new Df(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],r=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var i=1;i<100;i++){var o=t[0]+r*i;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:i/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new xu("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent(),l=this._applyTransform("left",n.mainGroup);$H([0,1],(function(u){var c=i[u];c.setStyle("fill",e.handlesColor[u]),c.y=t[u];var h=KH(t[u],[0,a[1]],s,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/a[0],c.x=a[0]-d/2;var p=cg(n.handleLabelPoints[u],ug(c,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(a[0]-d)/2:(a[0]-d)/-2;p[1]+=f}o[u].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),d=KH(t,o,s,!0),p=a[0]-h/2,f={x:u.x,y:u.y};u.y=d,u.x=p;var g=cg(l.indicatorLabelPoint,ug(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;y.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:m?v:"middle",align:m?"center":v});var _={x:p,y:d,style:{fill:c}},x={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(_,b),y.animateTo(x,b)}else u.attr(_),y.attr(x);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this.api.enterBlur(w[S])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,r=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);r[1]=QH(JH(0,r[1]),n[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();t=QH(JH(i[0],t),i[1]);var a=function(t,e,n){var r=6,i=t.get("hoverLinkDataSize");i&&(r=KH(i,e,n,!0)/2);return r}(n,o,i),s=[t-a,t+a],l=KH(t,i,o,!0),u=[KH(s[0],i,o,!0),KH(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||nU(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=function(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[o(n),o(r)];function i(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=oc(t[r].seriesId,null);if(null==o)return;for(var a=$u(t[r].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}}function o(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var i=o(t[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}(c,h);this._dispatchHighDown("downplay",qH(d[0],n)),this._dispatchHighDown("highlight",qH(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(eb(t.target,(function(t){var n=kd(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(e.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",qH(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,r){var i=ug(e,r?null:this.group);return Wi(t)?cg(t,i,n):hg(t,i,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(ZH);function eU(t,e,n,r){return new vf({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){oa(t.event)},ondragend:r})}function nU(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function rU(t){return"vertical"===t?"ns-resize":"ew-resize"}var iU={type:"selectDataRange",event:"dataRangeSelected",update:"update"},oU=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},aU=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var r,i,o,a,s,l=t.pipelineContext;!e.isTargetSeries(t)||l&&l.large||n.push((r=e.stateList,i=e.targetVisuals,o=Gi(e.getValueState,e),a=e.getDataDimensionIndex(t.getData()),s={},Ni(r,(function(t){var e=PP.prepareVisualTypes(i[t]);s[t]=e})),{progress:function(t,e){var n,r;function l(t){return Kx(e,r,t)}function u(t,n){Qx(e,r,t,n)}null!=a&&(n=e.getDimensionIndex(a));for(var c=e.getStore();null!=(r=t.next());){var h=e.getRawDataItem(r);if(!h||!1!==h.visualMap)for(var d=null!=a?c.get(n,r):r,p=o(d),f=i[p],g=s[p],y=0,v=g.length;y<v;y++){var m=g[y];f[m]&&f[m].applyVisual(d,l,u)}}}}))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var i=e.getVisualMeta(Gi(sU,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}})),t.getData().setVisual("visualMeta",r)}}];function sU(t,e,n,r){for(var i=e.targetVisuals[r],o=PP.prepareVisualTypes(i),a={color:$x(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return a.color;function h(t){return a[t]}function d(t,e){a[t]=e}}var lU=Ni;function uU(t){var e=t&&t.visualMap;Wi(e)||(e=e?[e]:[]),lU(e,(function(t){if(t){cU(t,"splitList")&&!cU(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&Wi(e)&&lU(e,(function(t){Xi(t)&&(cU(t,"start")&&!cU(t,"min")&&(t.min=t.start),cU(t,"end")&&!cU(t,"max")&&(t.max=t.end))}))}}))}function cU(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var hU=!1;function dU(t){hU||(hU=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(iU,oU),Ni(aU,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(uU))}function pU(t){t.registerComponentModel(HH),t.registerComponentView(tU),dU(t)}var fU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return a(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],gU[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual((function(t,e){"categories"===r?(t.mappingMethod="category",t.categories=Ti(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=zi(this._pieceList,(function(t){return t=Ti(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},r=PP.listVisualTypes(),i=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}Ni(e.pieces,(function(t){Ni(r,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),Ni(n,(function(t,n){var r=!1;Ni(this.stateList,(function(t){r=r||o(e,t,n)||o(e.target,t,n)}),this),!r&&Ni(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=OH(n,"inRange"===t?"active":"inactive",i)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,r=this._pieceList,i=(e?n:t).selected||{};if(n.selected=i,Ni(r,(function(t,e){var n=this.getSelectedMapKey(t);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;Ni(r,(function(t,e){var n=this.getSelectedMapKey(t);i[n]&&(o?i[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ti(t)},e.prototype.getValueState=function(t){var e=PP.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(e,r){PP.findPieceIndex(e,n)===t&&i.push(r)}),this),e.push({seriesId:r.id,dataIndex:i})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),(o=i[i.length-1].interval[1])!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return Ni(i,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=t(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:e.push({value:i[0],color:s},{value:i[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Jg(jH.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}(jH),gU={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),Gu(t),Ni(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;Ni(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),yU(e,t)},pieces:function(t){var e=this.option;Ni(e.pieces,(function(e,n){Xi(e)||(e={value:e});var r={text:"",index:n};if(null!=e.label&&(r.text=e.label),e.hasOwnProperty("value")){var i=r.value=e.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==o[c];d++)o[c]=e[h[d]],a[c]=s[d],u[c]=2===d;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=PP.retrieveVisuals(e),t.push(r)}),this),yU(e,t),Gu(t),Ni(t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function yU(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var vU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=to(e.get("showLabel",!0),!u),h=!e.get("selectedMode");u&&this._renderEndsText(t,u[0],s,c,a),Ni(l.viewPieceList,(function(r){var l=r.piece,u=new xu;u.onclick=Gi(this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var d=e.getRepresentValue(l);if(this._createItemSymbol(u,d,[0,0,s[0],s[1]],h),c){var p=this.visualMapModel.getValueState(d);u.add(new yd({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===p?.5:1},silent:h}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),$y(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(t){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:t,batch:qH(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return XH(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,r,i){if(e){var o=new xu,a=this.visualMapModel.textStyleModel;o.add(new yd({style:Tg(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=zi(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),i=t.get("inverse");return("horizontal"===r?i:!i)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n,r){var i=pb(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));i.silent=r,t.add(i)},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,r=n.selectedMode;if(r){var i=Ti(n.selected),o=e.getSelectedMapKey(t);"single"===r||!0===r?(i[o]=!0,Ni(i,(function(t,e){i[e]=e===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},e.type="visualMap.piecewise",e}(ZH);function mU(t){t.registerComponentModel(fU),t.registerComponentView(vU),dU(t)}var _U={label:{enabled:!0},decal:{show:!1}},xU=uc(),bU={};function wU(t,e){var n=t.getModel("aria");if(n.get("enabled")){var r=Ti(_U);ki(r.label,t.getLocaleModel().get("aria"),!1),ki(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var e=fo();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),xU(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(Hi(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var r=Ov(e.ecModel,e.name,bU,t.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",u(i,r))}else{var o=e.getRawData(),a={},s=xU(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var r=a[t],i=o.getName(t)||t+"",c=Ov(e.ecModel,i,s,l),h=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",u(h,c))}))}}function u(t,e){var n=t?Di(Di({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var r=e.getZr().dom;if(!r)return;var o=t.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=Pi(a.option,o),!a.get("enabled"))return;if(r.setAttribute("role","img"),a.get("description"))return void r.setAttribute("aria-label",a.get("description"));var s,l=t.getSeriesCount(),u=a.get(["data","maxCount"])||10,c=a.get(["series","maxCount"])||10,h=Math.min(l,c);if(l<1)return;var d=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();s=d?i(a.get(["general","withTitle"]),{title:d}):a.get(["general","withoutTitle"]);var p=[];s+=i(l>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries((function(e,n){if(n<h){var r=void 0,o=e.get("name")?"withName":"withoutName";r=i(r=l>1?a.get(["series","multiple",o]):a.get(["series","single",o]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(x=e.subType,b=t.getLocaleModel().get(["series","typeNames"]),b[x]||b.chart)});var s=e.getData();if(s.count()>u)r+=i(a.get(["data","partialData"]),{displayCnt:u});else r+=a.get(["data","allData"]);for(var c=a.get(["data","separator","middle"]),d=a.get(["data","separator","end"]),f=a.get(["data","excludeDimensionId"]),g=[],y=0;y<s.count();y++)if(y<u){var v=s.getName(y),m=f?Vi(s.getValues(y),(function(t,e){return-1===Ri(f,e)})):s.getValues(y),_=a.get(["data",v?"withName":"withoutName"]);g.push(i(_,{name:v,value:m.join(c)}))}r+=g.join(c)+d,p.push(r)}var x,b}));var f=a.getModel(["series","multiple","separator"]),g=f.get("middle"),y=f.get("end");s+=p.join(g)+y,r.setAttribute("aria-label",s)}()}function i(t,e){if(!Ui(t))return t;var n=t;return Ni(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}}function SU(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},Ni(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}var MU={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},IU=function(){function t(t){var e;if(null==(this._condVal=Ui(t)?new RegExp(t):(e=t,"[object RegExp]"===yi.call(e)?t:null))){Yu("")}}return t.prototype.evaluate=function(t){var e=typeof t;return Ui(e)?this._condVal.test(t):!!Yi(e)&&this._condVal.test(t+"")},t}(),CU=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),AU=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),TU=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),kU=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),LU=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(t?n:e))return!1;return!0},t}();function DU(t,e){if(!0===t||!1===t){var n=new CU;return n.value=t,n}return RU(t)||Yu(""),t.and?PU("and",t,e):t.or?PU("or",t,e):t.not?function(t,e){var n=t.not,r="";RU(n)||Yu(r);var i=new kU;i.child=DU(n,e),i.child||Yu(r);return i}(t,e):function(t,e){for(var n="",r=e.prepareGetValue(t),i=[],o=Fi(t),a=t.parser,s=a?Xm(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var c=mo(MU,u)?MU[u]:u,h=t[u],d=s?s(h):h,p=Jm(c,d)||"reg"===c&&new IU(d);p||Yu(n),i.push(p)}}i.length||Yu(n);var f=new LU;return f.valueGetterParam=r,f.valueParser=s,f.getValue=e.getValue,f.subCondList=i,f}(t,e)}function PU(t,e,n){var r=e[t];Wi(r)||Yu(""),r.length||Yu("");var i="and"===t?new AU:new TU;return i.children=zi(r,(function(t){return DU(t,n)})),i.children.length||Yu(""),i}function RU(t){return Xi(t)&&!Ei(t)}var OU=function(){function t(t,e){this._cond=DU(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();var EU={type:"echarts:filter",transform:function(t){for(var e,n,r,i=t.upstream,o=(n=t.config,r={valueGetterAttrMap:fo({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;mo(t,"dimension")||Yu("");var n=i.getDimensionInfo(e);return n||Yu(""),{dimIdx:n.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new OU(n,r)),a=[],s=0,l=i.count();s<l;s++)e=i.getRawDataItem(s),o.evaluate()&&a.push(e);return{data:a}}},NU={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",i=$u(n);i.length||Yu(r);var o=[];Ni(i,(function(t){var n=t.dimension,i=t.order,a=t.parser,s=t.incomparable;if(null==n&&Yu(r),"asc"!==i&&"desc"!==i&&Yu(r),s&&"min"!==s&&"max"!==s){Yu("")}if("asc"!==i&&"desc"!==i){Yu("")}var l=e.getDimensionInfo(n);l||Yu(r);var u=a?Xm(a):null;a&&!u&&Yu(r),o.push({dimIdx:l.index,parser:u,comparator:new $m(i,s)})}));var a=e.sourceFormat;a!==hv&&a!==dv&&Yu(r);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var r=0;r<o.length;r++){var i=o[r],a=e.retrieveValueFromItem(t,i.dimIdx),s=e.retrieveValueFromItem(n,i.dimIdx);i.parser&&(a=i.parser(a),s=i.parser(s));var l=i.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};var zU=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return a(e,t),e.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new m_(this),__(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),__(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:yv},e}(ov),BU=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return a(e,t),e.type="dataset",e}(K_);var VU=Eh.CMD;function FU(t,e){return Math.abs(t-e)<1e-5}function GU(t){var e,n,r,i,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,d=0;function p(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,r,i){FU(t,r)&&FU(n,i)||e.push(t,n,r,i,r,i)}function g(t,n,r,i,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),d=Math.cos(n),p=Math.sin(n),f=c*o+r,g=h*a+i,y=d*o+r,v=p*a+i,m=o*l*u,_=a*l*u;e.push(f-m*h,g+_*c,y+m*p,v-_*d,y,v)}for(var y=0;y<s;){var v=a[y++],m=1===y;switch(m&&(h=u=a[y],d=c=a[y+1],v!==VU.L&&v!==VU.C&&v!==VU.Q||(e=[h,d])),v){case VU.M:u=h=a[y++],c=d=a[y++],p(h,d);break;case VU.L:f(u,c,n=a[y++],r=a[y++]),u=n,c=r;break;case VU.C:e.push(a[y++],a[y++],a[y++],a[y++],u=a[y++],c=a[y++]);break;case VU.Q:n=a[y++],r=a[y++],i=a[y++],o=a[y++],e.push(u+2/3*(n-u),c+2/3*(r-c),i+2/3*(n-i),o+2/3*(r-o),i,o),u=i,c=o;break;case VU.A:var _=a[y++],x=a[y++],b=a[y++],w=a[y++],S=a[y++],M=a[y++]+S;y+=1;var I=!a[y++];n=Math.cos(S)*b+_,r=Math.sin(S)*w+x,m?p(h=n,d=r):f(u,c,n,r),u=Math.cos(M)*b+_,c=Math.sin(M)*w+x;for(var C=(I?-1:1)*Math.PI/2,A=S;I?A>M:A<M;A+=C){g(A,I?Math.max(A+C,M):Math.min(A+C,M),_,x,b,w)}break;case VU.R:h=u=a[y++],d=c=a[y++],n=h+a[y++],r=d+a[y++],p(n,d),f(n,d,n,r),f(n,r,h,r),f(h,r,h,d),f(h,d,n,d);break;case VU.Z:e&&f(u,c,h,d),u=h,c=d}}return e&&e.length>2&&l.push(e),l}function jU(t,e,n,r,i,o,a,s,l,u){if(FU(t,n)&&FU(e,r)&&FU(i,a)&&FU(o,s))l.push(a,s);else{var c=2/u,h=c*c,d=a-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-t,y=r-e,v=i-a,m=o-s,_=g*g+y*y,x=v*v+m*m;if(_<h&&x<h)l.push(a,s);else{var b=d*g+p*y,w=-d*v-p*m;if(_-b*b<h&&b>=0&&x-w*w<h&&w>=0)l.push(a,s);else{var S=[],M=[];us(t,n,i,a,.5,S),us(e,r,o,s,.5,M),jU(S[0],M[0],S[1],M[1],S[2],M[2],S[3],M[3],l,u),jU(S[4],M[4],S[5],M[5],S[6],M[6],S[7],M[7],l,u)}}}}function WU(t,e,n){var r=t[e],i=t[1-e],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=n-a*s;if(c>0)for(u=0;u<c;u++)l[u%a]+=1;return l}function HU(t,e,n){for(var r=t.r0,i=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*i,u=i-r,c=l>Math.abs(u),h=WU([l,u],c?0:1,e),d=(c?s:u)/h.length,p=0;p<h.length;p++)for(var f=(c?u:s)/h[p],g=0;g<h[p];g++){var y={};c?(y.startAngle=o+d*p,y.endAngle=o+d*(p+1),y.r0=r+f*g,y.r=r+f*(g+1)):(y.startAngle=o+f*g,y.endAngle=o+f*(g+1),y.r0=r+d*p,y.r=r+d*(p+1)),y.clockwise=t.clockwise,y.cx=t.cx,y.cy=t.cy,n.push(y)}}function UU(t,e,n,r){return t*r-n*e}function ZU(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,d=UU(c,h,l,u);if(Math.abs(d)<1e-6)return null;var p=UU(t-i,e-o,c,h)/d;return p<0||p>1?null:new va(p*l+t,p*u+e)}function YU(t,e,n){var r=new va;va.sub(r,n,e),r.normalize();var i=new va;return va.sub(i,t,e),i.dot(r)}function XU(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function qU(t){var e=t.points,n=[],r=[];ch(e,n,r);var i=new Ca(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,l=i.y,u=new va,c=new va;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),function(t,e,n){for(var r=t.length,i=[],o=0;o<r;o++){var a=t[o],s=t[(o+1)%r],l=ZU(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&i.push({projPt:YU(l,e,n),pt:l,idx:o})}if(i.length<2)return[{points:t},{points:t}];i.sort((function(t,e){return t.projPt-e.projPt}));var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var d=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],f=[d],g=[p];for(o=u.idx+1;o<=c.idx;o++)XU(f,t[o].slice());for(XU(f,p),XU(f,d),o=c.idx+1;o<=u.idx+r;o++)XU(g,t[o%r].slice());return XU(g,d),XU(g,p),[{points:f},{points:g}]}(e,u,c)}function KU(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);KU(t,o[0],i,r),KU(t,o[1],n-i,r)}return r}function $U(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function QU(t,e){var n,r=[],i=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var r=t.width,i=t.height,o=r>i,a=WU([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,d=0;d<a.length;d++)for(var p=t[l]/a[d],f=0;f<a[d];f++){var g={};g[u]=d*h,g[c]=f*p,g[s]=h,g[l]=p,g.x+=t.x,g.y+=t.y,n.push(g)}}(i,e,r),n=pd;break;case"sector":HU(i,e,r),n=df;break;case"circle":HU({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},e,r),n=df;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=zi(function(t,e){var n=GU(t),r=[];e=e||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],h=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++];jU(s,l,c,h,d,p,f,g,a,e),s=f,l=g}r.push(a)}return r}(t.getUpdatedPathProxy(),a),(function(t){return function(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}(t)})),l=s.length;if(0===l)KU(qU,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,h=zi(s,(function(t){var e=[],n=[];ch(t,e,n);var r=(n[1]-e[1])*(n[0]-e[0]);return c+=r,{poly:t,area:r}}));h.sort((function(t,e){return e.area-t.area}));var d=e;for(u=0;u<l;u++){var p=h[u];if(d<=0)break;var f=u===l-1?d:Math.ceil(p.area/c*e);f<0||(KU(qU,{points:p.poly},f,r),d-=f)}}n=vf}if(!n)return function(t,e){for(var n=[],r=0;r<e;r++)n.push(Zp(t));return n}(t,e);var g=[];for(u=0;u<r.length;u++){var y=new n;y.setShape(r[u]),$U(t,y),g.push(y)}return g}function JU(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var i=[],o=[],a=n<r?t:e,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],d=l,p=2;p<s;){var f=a[p-2],g=a[p-1],y=a[p++],v=a[p++],m=a[p++],_=a[p++],x=a[p++],b=a[p++];if(d<=0)h.push(y,v,m,_,x,b);else{for(var w=Math.min(d,c-1)+1,S=1;S<=w;S++){var M=S/w;us(f,y,m,x,M,i),us(g,v,_,b,M,o),f=i[3],g=o[3],h.push(i[1],o[1],i[2],o[2],f,g),y=i[5],v=o[5],m=i[6],_=o[6]}d-=w-1}}return a===t?[h,e]:[t,h]}function tZ(t,e){for(var n=t.length,r=t[n-2],i=t[n-1],o=[],a=0;a<e.length;)o[a++]=r,o[a++]=i;return o}function eZ(t){for(var e=0,n=0,r=0,i=t.length,o=0,a=i-2;o<i;a=o,o+=2){var s=t[a],l=t[a+1],u=t[o],c=t[o+1],h=s*c-u*l;e+=h,n+=(s+u)*h,r+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function nZ(t,e,n,r){for(var i=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,u=0;u<i;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var p=0===d?c:(c+d-2)%l+2,f=t[p]-n[0],g=t[p+1]-n[1],y=e[d]-r[0]-f,v=e[d+1]-r[1]-g;h+=y*y+v*v}h<o&&(o=h,a=u)}return a}function rZ(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function iZ(t){return t.__isCombineMorphing}var oZ="__mOriginal_";function aZ(t,e,n){var r=oZ+e,i=t[r]||t[e];t[r]||(t[r]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):i.apply(this,e),a&&a.apply(this,e),t}}function sZ(t,e){var n=oZ+e;t[n]&&(t[e]=t[n],t[n]=null)}function lZ(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=e[0]*o+e[2]*a+e[4],r[i++]=e[1]*o+e[3]*a+e[5]}}function uZ(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=function(t,e){for(var n,r,i,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(r=c=(n=JU(l,u))[0],i=h=n[1]):(h=tZ(i||l,l),c=l):(c=tZ(r||u,u),h=u),o.push(c),a.push(h)}return[o,a]}(GU(n),GU(r)),o=i[0],a=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&lZ(o,s),l&&lZ(a,l),aZ(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var u=function(t,e,n,r){for(var i,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],u=eZ(s),c=eZ(l);null==i&&(i=u[2]<0!=c[2]<0);var h=[],d=[],p=0,f=1/0,g=[],y=s.length;i&&(s=rZ(s));for(var v=6*nZ(s,l,u,c),m=y-2,_=0;_<m;_+=2){var x=(v+_)%m+2;h[_+2]=s[x]-u[0],h[_+3]=s[x+1]-u[1]}h[0]=s[v]-u[0],h[1]=s[v+1]-u[1];for(var b=r/n,w=-r/2;w<=r/2;w+=b){var S=Math.sin(w),M=Math.cos(w),I=0;for(_=0;_<s.length;_+=2){var C=h[_],A=h[_+1],T=l[_]-c[0],k=l[_+1]-c[1],L=T*M-k*S,D=T*S+k*M;g[_]=L,g[_+1]=D;var P=L-C,R=D-A;I+=P*P+R*R}if(I<f){f=I,p=w;for(var O=0;O<g.length;O++)d[O]=g[O]}}o.push({from:h,to:d,fromCp:u,toCp:c,rotation:-p})}return o}(o,a,10,Math.PI),c=[];aZ(e,"buildPath",{replace:function(t){for(var n=e.__morphT,r=1-n,i=[],o=0;o<u.length;o++){var a=u[o],s=a.from,l=a.to,h=a.rotation*n,d=a.fromCp,p=a.toCp,f=Math.sin(h),g=Math.cos(h);Oo(i,d,p,n);for(var y=0;y<s.length;y+=2){var v=s[y],m=s[y+1],_=v*r+(S=l[y])*n,x=m*r+(M=l[y+1])*n;c[y]=_*g-x*f+i[0],c[y+1]=_*f+x*g+i[1]}var b=c[0],w=c[1];t.moveTo(b,w);for(y=2;y<s.length;){var S=c[y++],M=c[y++],I=c[y++],C=c[y++],A=c[y++],T=c[y++];b===S&&w===M&&I===A&&C===T?t.lineTo(A,T):t.bezierCurveTo(S,M,I,C,A,T),b=A,w=T}}}})}function cZ(t,e,n){if(!t||!e)return e;var r=n.done,i=n.during;return uZ(t,e),e.__morphT=0,e.animateTo({__morphT:1},Pi({during:function(t){e.dirtyShape(),i&&i(t)},done:function(){sZ(e,"buildPath"),sZ(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),r&&r()}},n)),e}function hZ(t,e,n,r,i,o){t=i===n?0:Math.round(32767*(t-n)/(i-n)),e=o===r?0:Math.round(32767*(e-r)/(o-r));for(var a,s=0,l=32768;l>0;l/=2){var u=0,c=0;(t&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function dZ(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=zi(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]}));return zi(o,(function(o,a){return{cp:o,z:hZ(o[0],o[1],e,n,r,i),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function pZ(t){return QU(t.path,t.count)}function fZ(t){return Wi(t[0])}function gZ(t,e){for(var n=[],r=t.length,i=0;i<r;i++)n.push({one:t[i],many:[]});for(i=0;i<e.length;i++){var o=e[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(e[i][a])}var s=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var yZ={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var i=Zp(t.path);i.setStyle("opacity",n),e.push(i)}return e},split:null};function vZ(t,e,n,r,i,o){if(t.length&&e.length){var a=Gf("update",r,i);if(a&&a.duration>0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);fZ(t)&&(s=t,l=e),fZ(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,d=s?gZ(l,s):gZ(h?e:t,[h?t:e]),p=0,f=0;f<d.length;f++)p+=d[f].many.length;var g=0;for(f=0;f<d.length;f++)y(d[f],h,g,p),g+=d[f].many.length}}function y(t,e,r,i,a){var s=t.many,l=t.one;if(1!==s.length||a)for(var h=Pi({dividePath:yZ[n],individualDelay:u&&function(t,e,n,o){return u(t+r,i)}},c),d=e?function(t,e,n){var r=[];!function t(e){for(var n=0;n<e.length;n++){var i=e[n];iZ(i)?t(i.childrenRef()):i instanceof ed&&r.push(i)}}(t);var i=r.length;if(!i)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(n.dividePath||pZ)({path:e,count:i});if(o.length!==i)return{fromIndividuals:[],toIndividuals:[],count:0};r=dZ(r),o=dZ(o);for(var a=n.done,s=n.during,l=n.individualDelay,u=new Ql,c=0;c<i;c++){var h=r[c],d=o[c];d.parent=e,d.copyTransform(u),l||uZ(h,d)}function p(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function f(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,sZ(e,"addSelfToZr"),sZ(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},aZ(e,"addSelfToZr",{after:function(t){p(t)}}),aZ(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var g=o.length;if(l){var y=g,v=function(){0==--y&&(f(),a&&a())};for(c=0;c<g;c++){var m=l?Pi({delay:(n.delay||0)+l(c,g,r[c],o[c]),done:v},n):n;cZ(r[c],o[c],m)}}else e.__morphT=0,e.animateTo({__morphT:1},Pi({during:function(t){for(var n=0;n<g;n++){var r=o[n];r.__morphT=e.__morphT,r.dirtyShape()}s&&s(t)},done:function(){f();for(var e=0;e<t.length;e++)sZ(t[e],"updateTransform");a&&a()}},n));return e.__zr&&p(e.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}(s,l,h):function(t,e,n){var r=e.length,i=[],o=n.dividePath||pZ;if(iZ(t)){!function t(e){for(var n=0;n<e.length;n++){var r=e[n];iZ(r)?t(r.childrenRef()):r instanceof ed&&i.push(r)}}(t.childrenRef());var a=i.length;if(a<r)for(var s=0,l=a;l<r;l++)i.push(Zp(i[s++%a]));i.length=r}else{i=o({path:t,count:r});var u=t.getComputedTransform();for(l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return{fromIndividuals:[],toIndividuals:[],count:0}}i=dZ(i),e=dZ(e);var c=n.individualDelay;for(l=0;l<r;l++){var h=c?Pi({delay:(n.delay||0)+c(l,r,i[l],e[l])},n):n;cZ(i[l],e[l],h)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}(l,s,h),p=d.fromIndividuals,f=d.toIndividuals,g=p.length,v=0;v<g;v++){m=u?Pi({delay:u(v,g)},c):c;o(p[v],f[v],e?s[v]:t.one,e?t.one:s[v],m)}else{var m,_=e?s[0]:l,x=e?l:s[0];if(iZ(_))y({many:[_],one:x},!0,r,i,!0);else cZ(_,x,m=u?Pi({delay:u(r,i)},c):c),o(_,x,_,x,m)}}}function mZ(t){if(!t)return[];if(Wi(t)){for(var e=[],n=0;n<t.length;n++)e.push(mZ(t[n]));return e}var r=[];return t.traverse((function(t){t instanceof ed&&!t.disableMorphing&&!t.invisible&&!t.ignore&&r.push(t)})),r}var _Z=uc();function xZ(t,e,n,r){var i=function(t,e){for(var n=t.dimensions,r=0;r<n.length;r++){var i=t.getDimensionInfo(n[r]);if(i&&0===i.otherDims[e])return n[r]}}(t,r?"itemChildGroupId":"itemGroupId");if(i){var o=function(t,e,n){var r=t.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var o=t.get(r.name,e);return i&&i.categories[o]||o+""}}(t,e,i);return o}var a=t.getRawDataItem(e),s=r?"childGroupId":"groupId";return a&&a[s]?a[s]+"":r?void 0:n||t.getId(e)}function bZ(t){var e=[];return Ni(t,(function(t){var n=t.data,r=t.dataGroupId;if(!(n.count()>1e4))for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:xZ(n,o,r,!1),childGroupId:xZ(n,o,r,!0),divide:t.divide,dataIndex:o})})),e}function wZ(t,e,n){t.traverse((function(t){t instanceof ed&&Hf(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function SZ(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function MZ(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function IZ(t,e,n){var r=Gf("update",n,e);r&&t.traverse((function(t){if(t instanceof Jc){var e=function(t){return Ff(t).oldStyle}(t);e&&t.animateFrom({style:e},r)}}))}function CZ(t,e,n){var r=bZ(t),i=bZ(e);function o(t,e,n,r,i){(n||t)&&e.animateFrom({style:n&&n!==t?Di(Di({},n.style),t.style):t.style},i)}var a=!1,s=0,l=fo(),u=fo();r.forEach((function(t){t.groupId&&l.set(t.groupId,!0),t.childGroupId&&u.set(t.childGroupId,!0)}));for(var c=0;c<i.length;c++){var h=i[c].groupId;if(u.get(h)){s=1;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=2;break}}function p(t,e){return function(n){var r=n.data,i=n.dataIndex;return e?r.getId(i):t?1===s?n.childGroupId:n.groupId:2===s?n.childGroupId:n.groupId}}var f=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var i=t[r],o=e[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(r,i),g={};if(!f)for(c=0;c<i.length;c++){var y=i[c],v=y.data.getItemGraphicEl(y.dataIndex);v&&(g[v.id]=!0)}function m(t,e){var n=r[e],s=i[t],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&g[u.id]||c&&(MZ(c),u?(MZ(u),SZ(u),a=!0,vZ(mZ(u),mZ(c),s.divide,l,t,o)):wZ(c,l,t)):c&&IZ(c,s.dataIndex,l)}new Jw(r,i,p(!0,f),p(!1,f),null,"multiple").update(m).updateManyToOne((function(t,e){var n=i[t],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),c=Vi(zi(e,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==u&&!g[t.id]}));u&&(MZ(u),c.length?(Ni(c,(function(t){MZ(t),SZ(t)})),a=!0,vZ(mZ(c),mZ(u),n.divide,l,t,o)):wZ(u,l,n.dataIndex))})).updateOneToMany((function(t,e){var n=r[e],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=Vi(zi(t,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==s})),u=i[t[0]].data.hostModel;l.length&&(Ni(l,(function(t){return MZ(t)})),s?(MZ(s),SZ(s),a=!0,vZ(mZ(s),mZ(l),n.divide,u,t[0],o)):Ni(l,(function(e){return wZ(e,u,t[0])})))}})).updateManyToMany((function(t,e){new Jw(e,t,(function(t){return r[t].data.getId(r[t].dataIndex)}),(function(t){return i[t].data.getId(i[t].dataIndex)})).update((function(n,r){m(t[n],e[r])})).execute()})).execute(),a&&Ni(e,(function(t){var e=t.data.hostModel,r=e&&n.getViewOfSeriesModel(e),i=Gf("update",e,0);r&&e.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse((function(t){t instanceof ed&&!t.animators.length&&t.animateFrom({style:{opacity:0}},i)}))}))}function AZ(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function TZ(t){return Wi(t)?t.sort().join(","):t}function kZ(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function LZ(t,e){for(var n=0;n<t.length;n++){if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}}Kw([function(t){t.registerPainter("canvas",pA)}]),Kw([function(t){t.registerPainter("svg",sA)}]),Kw([function(t){t.registerChartView(YA),t.registerSeriesModel(fA),t.registerLayout(XA("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,$A("line"))},function(t){t.registerChartView(sT),t.registerSeriesModel(JA),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,ji(rM,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,iM("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,$A("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))},function(t){t.registerChartView(NT),t.registerSeriesModel(FT),Jx("pie",t.registerAction),t.registerLayout(ji(AT,"pie")),t.registerProcessor(kT("pie")),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(Yi(r)&&!isNaN(r)&&r<0)}))}}}("pie"))},function(t){Kw(Fk),t.registerSeriesModel(GT),t.registerChartView(UT),t.registerLayout(XA("scatter"))},function(t){Kw(tL),t.registerChartView(Uk),t.registerSeriesModel(Zk),t.registerLayout(Gk),t.registerProcessor(kT("radar")),t.registerPreprocessor(Hk)},function(t){Kw(kD),t.registerChartView(cD),t.registerSeriesModel(hD),t.registerLayout(pD),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dD),Jx("map",t.registerAction)},function(t){t.registerChartView(GD),t.registerSeriesModel(uP),t.registerLayout(hP),t.registerVisual(dP),function(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,r=e.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var r=CD(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}(t)},function(t){t.registerSeriesModel(gP),t.registerChartView(TP),t.registerVisual(UP),t.registerLayout(iR),function(t){for(var e=0;e<pP.length;e++)t.registerAction({type:pP[e],update:"updateView"},_o);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,n){var r=oP(t,["treemapZoomToNode","treemapRootToNode"],e);if(r){var i=e.getViewRoot();i&&(t.direction=sP(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}))}))}(t)},function(t){t.registerChartView(oO),t.registerSeriesModel(dO),t.registerProcessor(cR),t.registerVisual(hR),t.registerVisual(pR),t.registerLayout(SR),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,DR),t.registerLayout(RR),t.registerCoordinateSystem("graphView",{dimensions:gD.dimensions,create:OR}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},_o),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},_o),t.registerAction(pO,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var r=CD(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))},function(t){t.registerChartView(vO),t.registerSeriesModel(mO)},function(t){t.registerChartView(bO),t.registerSeriesModel(wO),t.registerLayout(SO),t.registerProcessor(kT("funnel"))},function(t){Kw(qE),t.registerChartView(MO),t.registerSeriesModel(kO),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,PO)},function(t){t.registerChartView(QE),t.registerSeriesModel(tN),t.registerLayout(eN),t.registerVisual(pN),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},function(t){t.registerSeriesModel(gN),t.registerChartView(yN),t.registerLayout(SN),t.registerTransform(MN)},function(t){t.registerChartView(ON),t.registerSeriesModel(UN),t.registerPreprocessor(ZN),t.registerVisual(PN),t.registerLayout(YN)},function(t){t.registerChartView($N),t.registerSeriesModel(QN),t.registerLayout(XA("effectScatter"))},function(t){t.registerChartView(az),t.registerSeriesModel(cz),t.registerLayout(oz),t.registerVisual(dz)},function(t){t.registerChartView(gz),t.registerSeriesModel(yz)},function(t){t.registerChartView(xz),t.registerSeriesModel(Bz),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,ji(rM,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,iM("pictorialBar"))},function(t){t.registerChartView(Vz),t.registerSeriesModel(Fz),t.registerLayout(Gz),t.registerProcessor(kT("themeRiver"))},function(t){t.registerChartView(Zz),t.registerSeriesModel(Yz),t.registerLayout(ji(Kz,"sunburst")),t.registerProcessor(ji(kT,"sunburst")),t.registerVisual(Qz),function(t){t.registerAction({type:Hz,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var r=oP(t,[Hz],e);if(r){var i=e.getViewRoot();i&&(t.direction=sP(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}))})),t.registerAction({type:Uz,update:"none"},(function(t,e,n){t=Di({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){var n=oP(t,[Uz],e);n&&(t.dataIndex=n.node.dataIndex)})),n.dispatchAction(Di(t,{type:"highlight"}))})),t.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(t,e,n){t=Di({},t),n.dispatchAction(Di(t,{type:"downplay"}))}))}(t)},function(t){t.registerChartView(WB),t.registerSeriesModel(nB)}]),Kw((function(t){Kw(Fk),Kw(HV)})),Kw((function(t){Kw(HV),Tk.registerAxisPointerClass("PolarAxisPointer",UV),t.registerCoordinateSystem("polar",oF),t.registerComponentModel(YV),t.registerComponentView(bF),JT(t,"angle",qV,_F),JT(t,"radius",KV,xF),t.registerComponentView(cF),t.registerComponentView(fF),t.registerLayout(ji(mF,"bar"))})),Kw(kD),Kw((function(t){Kw(HV),Tk.registerAxisPointerClass("SingleAxisPointer",EF),t.registerComponentView(VF),t.registerComponentView(IF),t.registerComponentModel(AF),JT(t,"single",AF,AF.defaultOption),t.registerCoordinateSystem("single",PF)})),Kw(qE),Kw((function(t){t.registerComponentModel(FF),t.registerComponentView(jF),t.registerCoordinateSystem("calendar",HF)})),Kw((function(t){t.registerComponentModel(KF),t.registerComponentView(JF),t.registerPreprocessor((function(t){var e=t.graphic;Wi(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))})),Kw((function(t){t.registerComponentModel(CG),t.registerComponentView(TG),MG("saveAsImage",kG),MG("magicType",PG),MG("dataView",VG),MG("dataZoom",sj),MG("restore",HG),Kw(bG)})),Kw((function(t){Kw(HV),t.registerComponentModel(cj),t.registerComponentView(Aj),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},_o),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},_o)})),Kw(HV),Kw((function(t){t.registerComponentView(qj),t.registerComponentModel(Kj),t.registerPreprocessor(Pj),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Hj),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},_o),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},_o),MG("brush",Jj)})),Kw((function(t){t.registerComponentModel(tW),t.registerComponentView(eW)})),Kw((function(t){t.registerComponentModel(rW),t.registerComponentView(lW),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var r=e.getComponent("timeline");return r&&null!=t.currentIndex&&(r.setCurrentIndex(t.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),Pi({currentIndex:r.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}(t),t.registerPreprocessor(hW)})),Kw((function(t){t.registerComponentModel(mW),t.registerComponentView(LW),t.registerPreprocessor((function(t){fW(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))})),Kw((function(t){t.registerComponentModel(DW),t.registerComponentView(BW),t.registerPreprocessor((function(t){fW(t.series,"markLine")&&(t.markLine=t.markLine||{})}))})),Kw((function(t){t.registerComponentModel(VW),t.registerComponentView(YW),t.registerPreprocessor((function(t){fW(t.series,"markArea")&&(t.markArea=t.markArea||{})}))})),Kw((function(t){Kw(aH),Kw(pH)})),Kw((function(t){Kw(MH),Kw(RH)})),Kw(MH),Kw(RH),Kw((function(t){Kw(pU),Kw(mU)})),Kw(pU),Kw(mU),Kw((function(t){t.registerPreprocessor(SU),t.registerVisual(t.PRIORITY.VISUAL.ARIA,wU)})),Kw((function(t){t.registerTransform(EU),t.registerTransform(NU)})),Kw((function(t){t.registerComponentModel(zU),t.registerComponentView(BU)})),Kw((function(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Ni($u(n.seriesTransition),(function(t){Ni($u(t.to),(function(t){for(var e=n.updatedSeries,r=0;r<e.length;r++)(null!=t.seriesIndex&&t.seriesIndex===e[r].seriesIndex||null!=t.seriesId&&t.seriesId===e[r].id)&&(e[r][G_]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var r=_Z(e);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Ni($u(i),(function(t){!function(t,e,n,r){var i=[],o=[];Ni($u(t.from),(function(t){var n=LZ(e.oldSeries,t);n>=0&&i.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:kZ(e.oldData[n]),groupIdDim:t.dimension})})),Ni($u(t.to),(function(t){var r=LZ(n.updatedSeries,t);if(r>=0){var i=n.updatedSeries[r].getData();o.push({dataGroupId:e.oldDataGroupIds[r],data:i,divide:kZ(i),groupIdDim:t.dimension})}})),i.length>0&&o.length>0&&CZ(i,o,r)}(t,r,n,e)}));else{var o=function(t,e){var n=fo(),r=fo(),i=fo();return Ni(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=AZ(e),l=TZ(s);r.set(l,{dataGroupId:o,data:a}),Wi(s)&&Ni(s,(function(t){i.set(t,{key:l,dataGroupId:o,data:a})}))})),Ni(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=AZ(t),s=TZ(a),l=r.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:kZ(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:kZ(o),data:o}]});else if(Wi(a)){var u=[];Ni(a,(function(t){var e=r.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:kZ(e.data),data:e.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:o,divide:kZ(o)}]})}else{var c=i.get(a);if(c){var h=n.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:kZ(c.data)}],newSeries:[]},n.set(c.key,h)),h.newSeries.push({dataGroupId:e,data:o,divide:kZ(o)})}}}})),n}(r,n);Ni(o.keys(),(function(t){var n=o.get(t);CZ(n.oldSeries,n.newSeries,e)}))}Ni(n.updatedSeries,(function(t){t[G_]&&(t[G_]=!1)}))}for(var a=t.getSeries(),s=r.oldSeries=[],l=r.oldDataGroupIds=[],u=r.oldData=[],c=0;c<a.length;c++){var h=a[c].getData();h.count()<1e4&&(s.push(a[c]),l.push(a[c].get("dataGroupId")),u.push(h))}}))})),Kw((function(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=qI(e).labelManager;r||(r=qI(e).labelManager=new XI),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=qI(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}));var DZ={};function PZ(t,e){DZ[t]||(DZ[t]=[]),DZ[t].push(e)}function RZ(t,e){if(DZ[t])for(var n=0;n<DZ[t].length;n++)DZ[t][n](e)}function OZ(t,e){DZ?DZ[t]&&(DZ[t]=DZ[t].filter((function(t){return t!==e}))):DZ[t]=[]}var EZ=function(){function t(t,e,n){this.scale=1,this.wrapper=t,this.pptx=e,this.options=n,this._calcScaleAndRenderPort()}return t.prototype._calcScaleAndRenderPort=function(){var t=this.options.viewPort.width/this.pptx.width;this.scale=t;var e=this.options.viewPort.width,n=this.pptx.height*this.scale;this.renderPort={width:e,height:n,left:0,top:0}},t.prototype.renderSlide=function(t){var e=this.pptx.slides[t],n=document.createElement("div");n.classList.add("pptx-preview-slide-wrapper"),n.classList.add("pptx-preview-slide-wrapper-".concat(t)),n.style.setProperty("width",this.renderPort.width+"px"),n.style.setProperty("height",this.renderPort.height+"px"),n.style.setProperty("position","slide"===this.options.mode?"absolute":"relative"),"slide"===this.options.mode&&n.style.setProperty("top",(this.options.viewPort.height-this.renderPort.height)/2+"px"),n.style.margin="0 auto 10px",n.style.setProperty("background","#fff"),n.style.setProperty("overflow","hidden"),this._renderBackground(e,n),this._renderSlideMaster(e.slideMaster,n),this._renderSlideLayout(e.slideLayout,n),this._renderSlide(e,n),this.wrapper.append(n)},t.prototype._renderSlideMaster=function(t,e){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 r=c([],t.nodes,!0).filter((function(t){return t.userDrawn}));r.sort((function(t,e){return t.order>e.order?1:-1}));for(var i=0;i<r.length;i++){var o=this._renderNode(r[i]);o&&n.append(o)}e.append(n)},t.prototype._renderSlideLayout=function(t,e){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 r=c([],t.nodes,!0).filter((function(t){return t.userDrawn}));r.sort((function(t,e){return t.order>e.order?1:-1}));for(var i=0;i<r.length;i++){var o=this._renderNode(r[i]);o&&n.append(o)}e.append(n)},t.prototype._renderSlide=function(t,e){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 r=c([],t.nodes,!0);r.sort((function(t,e){return t.order>e.order?1:-1}));for(var i=0;i<r.length;i++){var o=this._renderNode(r[i]);o&&n.append(o)}e.append(n)},t.prototype._renderNode=function(t){return t instanceof Mr?zr(t):t instanceof Sr?ii(t):t instanceof Cr?oi(t):t instanceof Ar?function(t){var e=document.createElement("div"),n=t.extend,r=t.offset,i=t.flipV,o=t.flipH,a=t.rotate,s=r.x,l=r.y,u=n.w,c=n.h;e.className="smart-chart-diagram",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 h=[];o&&h.push("scaleX(-1)"),i&&h.push("scaleY(-1)"),a&&h.push("rotate(".concat(a,"deg)")),e.style.transformOrigin="center center",e.style.transform=h.join(" ");for(var d=0;d<t.nodes.length;d++){var p=t.nodes[d],f=void 0;p instanceof Mr?f=zr(p):p instanceof Sr&&(f=ii(p)),f&&e.appendChild(f)}return e}(t):t instanceof Ir?function(t){var e=t.extend,n=t.offset,r=t.tr,i=t.tableGrid.gridCol,o=document.createElement("div");o.style.position="absolute",o.style.left=n.x+"px",o.style.top=n.y+"px",o.style.width=e.w+"px",o.style.height=e.h+"px";var a=document.createElement("table");return a.style.borderCollapse="collapse",r.forEach((function(t){var e=t.props,n=t.td,r=e.height,o=document.createElement("tr");o.style.height=r+"px",n.forEach((function(t,e){var n,r,a=t.props,l=t.inheritTcStyle,u=t.inheritTcTxStyle,c=t.paragraphs;if(!a.vMerge&&!a.hMerge){var h=document.createElement("td");h.style.width=((null===(n=i[e])||void 0===n?void 0:n.width)||30)+"px",a.rowSpan&&h.setAttribute("rowspan",a.rowSpan+""),a.gridSpan&&h.setAttribute("colspan",a.gridSpan+"");var d=a.background||l.background;d&&(h.style.background=dr(d));var p=s(s({},l.border),a.border),f=function(t){return t?t.toLowerCase().includes("dash")?"dashed":t.toLowerCase().includes("dot")?"dotted":"solid":"solid"};p.bottom&&(h.style.borderBottom="".concat(p.bottom.width,"px ").concat(f(p.bottom.type)," ").concat(dr(p.bottom.color))),p.top&&(h.style.borderTop="".concat(p.top.width,"px ").concat(f(p.top.type)," ").concat(dr(p.top.color))),p.left&&(h.style.borderLeft="".concat(p.left.width,"px ").concat(f(p.left.type)," ").concat(dr(p.left.color))),p.right&&(h.style.borderRight="".concat(p.right.width,"px ").concat(f(p.right.type)," ").concat(dr(p.right.color)));var g=document.createElement("div");switch(g.className="text-wrapper",g.style.boxSizing="border-box",g.style.width="100%",g.style.height="100%",g.style.overflow="hidden",g.style.display="flex",g.style.flexDirection="column",a.anchor){case"b":g.style.justifyContent="flex-end";break;case"t":g.style.justifyContent="flex-start";break;case"ctr":g.style.justifyContent="center"}var y=[a.hasOwnProperty("marT")?Math.floor(a.marT)+"px":"3px",a.hasOwnProperty("marR")?Math.floor(a.marR-1)+"px":"5px",a.hasOwnProperty("marB")?Math.floor(a.marB)+"px":"3px",a.hasOwnProperty("marL")?Math.floor(a.marL-1)+"px":"5px"];g.style.padding=y.join(" ");for(var v=s({},a),m={},_=c.map((function(t){return s(s({},t),{props:s({align:"l"},t.props),inheritRProps:s(s({},t.inheritRProps),u)})})),x=0,b=function(t){var e=s(s({},t.inheritProps),t.props),n=void 0;if(e.buAutoNum){var i=e.level?+e.level:0;m[i]||(m[i]=0),(null===(r=t.rows)||void 0===r?void 0:r.length)&&m[i]++,Object.keys(m).forEach((function(t){+t>i&&(m[t]=0)})),n=Fr(t,m[i],{isFirst:0===x,isLast:c.length-1===x,bodyProps:v})}else n=Fr(t,0,{isFirst:0===x,isLast:c.length-1===x,bodyProps:v});g.appendChild(n),x++},w=0,S=_;w<S.length;w++)b(S[w]);h.append(g),o.append(h)}})),a.append(o)})),o.append(a),o}(t):t instanceof Tr?function(t){var e=document.createElement("div"),n=t.extend,r=t.offset,i=t.flipV,o=t.flipH,a=t.rotate,s=t.options,l=r.x,u=r.y,c=n.w,h=n.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=h+"px";var d=[];return o&&d.push("scaleX(-1)"),i&&d.push("scaleY(-1)"),a&&d.push("rotate(".concat(a,"deg)")),e.style.transformOrigin="center center",e.style.transform=d.join(" "),setTimeout((function(){var t=zw(e,null,{renderer:"svg"});t.setOption(s),PZ("destroy",(function(){t&&t.dispose(),t&&(t=null)})),PZ("removeSlide",(function(){t&&t.dispose(),t&&(t=null)}))}),0),e}(t):void 0},t.prototype._renderBackground=function(t,e){var n,r=document.createElement("div");r.classList.add("slide-background"),r.style.setProperty("position","absolute"),r.style.setProperty("left","0"),r.style.setProperty("top","0"),r.style.setProperty("width","100%"),r.style.setProperty("height","100%");var i=t.background;if("none"===i.type&&(i=t.slideLayout.background),"none"===i.type&&(i=t.slideMaster.background),"blipFill"===i.type){var o=i,a=o.base64,s=o.alpha,l=o.fillRect,u=void 0===l?{}:l,c=u.b,h=void 0===c?0:c,d=u.t,p=void 0===d?0:d,f=u.l,g=void 0===f?0:f,y=u.r,v=void 0===y?0:y,m=this.renderPort.width*g,_=this.renderPort.height*p,x=this.renderPort.width*(1-g-v),b=this.renderPort.height*(1-p-h);r.style.backgroundImage="url(".concat(a,")"),r.style.backgroundSize="".concat(x," ").concat(b),r.style.backgroundPosition="".concat(m,"px ").concat(_,"px"),s&&(r.style.opacity=s+""),r.style.backgroundRepeat="no-repeat"}else if("solidFill"===i.type){var w=dr(t.background)||dr(t.slideLayout.background)||dr(t.slideMaster.background);w?r.style.setProperty("background",w):r.style.setProperty("background","#fff")}else if("gradFill"===i.type)if("circle"===i.path){var S=i.tileRect||{},M=(h=S.b,p=S.t,g=S.l,"radial-gradient(circle at ");-1===(v=S.r)?M+=" right":-1===g&&(M+=" left"),-1===p?M+=" top":-1===h&&(M+=" bottom"),h||p||g||v||(M+=" center"),M+=",",M+=i.gsList.map((function(t){return"".concat(dr(t.color)," ").concat(100*t.pos+"%")})).join(","),r.style.setProperty("background",M)}else{var I=(null===(n=null==i?void 0:i.lin)||void 0===n?void 0:n.ang)||0;M="linear-gradient(".concat(I+90,"deg,");M+=i.gsList.map((function(t){return"".concat(dr(t.color)," ").concat(100*t.pos+"%")})).join(","),r.style.setProperty("background",M)}e.append(r)},t}(),NZ=function(){function t(t,e){this.currentIndex=-1,this.dom=t,this.options=e,this._renderWrapper()}return Object.defineProperty(t.prototype,"slideCount",{get:function(){var t,e;return null===(e=null===(t=this.pptx)||void 0===t?void 0:t.slides)||void 0===e?void 0:e.length},enumerable:!1,configurable:!0}),t.prototype._renderWrapper=function(){var t=document.createElement("div");t.classList.add("pptx-preview-wrapper"),t.setAttribute("position","relative"),t.style.setProperty("background","#000"),t.style.setProperty("width",this.options.width+"px"),this.options.height&&t.style.setProperty("height",this.options.height+"px"),t.style.setProperty("position","relative"),t.style.setProperty("margin","0 auto"),this.options.height&&t.style.setProperty("overflow-y","auto"),this.dom.append(t),this.wrapper=t},t.prototype.renderNextButton=function(){var t=document.createElement("div");t.classList.add("pptx-preview-wrapper-next"),t.style.setProperty("position","absolute"),t.style.setProperty("bottom","20px"),t.style.setProperty("right","80px"),t.style.setProperty("z-index","100"),t.style.setProperty("cursor","pointer"),t.style.setProperty("width","40px"),t.style.setProperty("height","40px"),t.style.setProperty("background","#666666"),t.style.setProperty("border-radius","100%");var e=document.createElement("div");return e.style.setProperty("width","10px"),e.style.setProperty("height","10px"),e.style.setProperty("border-left","2px solid #fff"),e.style.setProperty("border-bottom","2px solid #fff"),e.style.setProperty("transform","rotate(225deg)"),e.style.setProperty("position","absolute"),e.style.setProperty("top","15px"),e.style.setProperty("left","15px"),t.append(e),t},t.prototype.renderPreButton=function(){var t=document.createElement("div");t.classList.add("pptx-preview-wrapper-next"),t.style.setProperty("position","absolute"),t.style.setProperty("bottom","20px"),t.style.setProperty("right","140px"),t.style.setProperty("z-index","100"),t.style.setProperty("cursor","pointer"),t.style.setProperty("width","40px"),t.style.setProperty("height","40px"),t.style.setProperty("background","#666666"),t.style.setProperty("border-radius","100%");var e=document.createElement("div");return e.style.setProperty("width","10px"),e.style.setProperty("height","10px"),e.style.setProperty("border-left","2px solid #fff"),e.style.setProperty("border-bottom","2px solid #fff"),e.style.setProperty("transform","rotate(45deg)"),e.style.setProperty("position","absolute"),e.style.setProperty("top","15px"),e.style.setProperty("left","15px"),t.append(e),t},t.prototype.updatePagination=function(){var t=this.wrapper.querySelector(".pptx-preview-wrapper-pagination");t&&(t.innerText="".concat(this.currentIndex+1,"/").concat(this.slideCount))},t.prototype.renderPagination=function(t){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper-pagination"),e.innerText="".concat(this.currentIndex+1,"/").concat(this.slideCount),e.style.setProperty("position","absolute"),e.style.setProperty("bottom","33px"),e.style.setProperty("right","20px"),e.style.setProperty("color","#666666"),e.style.setProperty("font-size","14px"),e.style.setProperty("z-index","100"),t.append(e)},t.prototype.removeCurrentSlide=function(){var t=this.wrapper.querySelector(".pptx-preview-slide-wrapper-".concat(this.currentIndex));t&&this.wrapper.removeChild(t),RZ("removeSlide")},t.prototype.renderNextSlide=function(){this.removeCurrentSlide(),this.currentIndex=this.currentIndex<this.slideCount-1?this.currentIndex+1:0,this.htmlRender.renderSlide(this.currentIndex),this.updatePagination()},t.prototype.renderPreSlide=function(){this.removeCurrentSlide(),this.currentIndex=this.currentIndex>0?this.currentIndex-1:this.slideCount-1,this.htmlRender.renderSlide(this.currentIndex),this.updatePagination()},t.prototype._addPre=function(t){},t.prototype.preview=function(t){var e=this;return RZ("destroy"),OZ("destroy"),new Promise((function(n,r){e.wrapper.innerHTML="";var i=e.pptx=new Nr;i.load(t).then((function(){try{var t=e.htmlRender=new EZ(e.wrapper,i,{viewPort:{width:e.options.width,height:e.options.height},mode:e.options.mode});if("slide"===e.options.mode){var o=e.renderNextButton();o.onclick=function(){e.renderNextSlide()},e.wrapper.append(o);var a=e.renderPreButton();a.onclick=function(){e.renderPreSlide()},e.wrapper.append(a),e.renderPagination(e.wrapper),e._addPre(e.wrapper),e.currentIndex=0,t.renderSlide(0)}else for(var s=0;s<i.slides.length;s++)t.renderSlide(s);n(i)}catch(t){r(t)}})).catch((function(t){r(t)}))}))},t.prototype.load=function(t){var e=this;return RZ("destroy"),OZ("destroy"),new Promise((function(n,r){e.wrapper.innerHTML="";var i=e.pptx=new Nr;i.load(t).then((function(){try{e.htmlRender=new EZ(e.wrapper,i,{viewPort:{width:e.options.width,height:e.options.height},mode:e.options.mode}),n(i)}catch(t){r(t)}})).catch((function(t){r(t)}))}))},t.prototype.renderSingleSlide=function(t){this.removeCurrentSlide(),this.currentIndex=t,this.htmlRender.renderSlide(this.currentIndex)},t.prototype.destroy=function(){RZ("destroy"),OZ("destroy")},t}();t.init=function(t,e){return new NZ(t,e)}}));